Ejemplo n.º 1
0
 public function compare_for_sql($sql_record)
 {
     $this->set_sql_fields($sql_record);
     $record = array();
     foreach ($this->mapping as $sql_field => $force_field) {
         switch ($sql_field) {
             case 'MURASPEC_YN':
             case 'BHS_YN':
             case 'GOODRICH_YN':
             case 'HITECH_YN':
             case 'NEWMORE_YN':
             case 'VESCOM_YN':
             case 'EDGE_YN':
             case 'DECORE_YN':
             case 'CASANA_YN':
             case 'SELTEX_YN':
                 if (get_boolean($this->sql_fields[$sql_field]) != $this->force_fields[$force_field]) {
                     $record[$sql_field] = get_yn($this->force_fields[$force_field]);
                 }
                 break;
             default:
                 if ($this->sql_fields[$sql_field] != $this->force_fields[$force_field]) {
                     $record[$sql_field] = $this->force_fields[$force_field];
                 }
                 break;
         }
     }
     $this->sql_fields['SYNCH_STATUS'] = '3';
     return $record;
 }
Ejemplo n.º 2
0
        ?>
</td>
                <td class="td_num"><?php 
        echo number_format($ct_point['stotal']);
        ?>
</td>
                <td class="td_sendcost_by"><?php 
        echo $ct_send_cost;
        ?>
</td>
                <td class="td_mngsmall"><?php 
        echo get_yn($opt['ct_point_use']);
        ?>
</td>
                <td class="td_mngsmall"><?php 
        echo get_yn($opt['ct_stock_use']);
        ?>
</td>
            </tr>
            <?php 
        $chk_cnt++;
    }
    ?>
        <?php 
}
?>
        </tbody>
        </table>

    </div>
Ejemplo n.º 3
0
 public function compare_for_force($frecord)
 {
     $this->set_sf_fields($frecord);
     $record = new stdClass();
     foreach ($this->mapping as $sql_field => $force_field) {
         switch ($sql_field) {
             case 'MOVED_YN':
                 if (get_boolean($this->sql_fields[$sql_field]) != $this->force_fields[$force_field]) {
                     $record->{$force_field} = get_yn($this->sql_fields[$sql_field]);
                 }
                 break;
             default:
                 if ($this->sql_fields[$sql_field] != $this->force_fields[$force_field]) {
                     $record->{$force_field} = $this->sql_fields[$sql_field];
                 }
                 break;
         }
     }
     return $record;
 }