コード例 #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, CarrierBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("carrierId", entity.carrierId);
     row.SetField("carrierRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCarrierBase(ref DataRow row, CarrierBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("carrier_id", entity.carrierId);
     row.SetField("name", entity.name);
     row.SetField("addr1", entity.addr1);
     row.SetField("addr2", entity.addr2);
     row.SetField("addr3", entity.addr3);
     row.SetField("city", entity.city);
     row.SetField("state", entity.state);
     row.SetField("zip", entity.zip);
     row.SetField("country", entity.country);
     row.SetField("contact", entity.contact);
     row.SetField("phone", entity.phone);
     row.SetField("pro_use", entity.proUse);
     row.SetField("current_manifest", entity.currentManifest);
     row.SetField("shipper_id", entity.shipperId);
     row.SetField("ship_amount", entity.shipAmount);
     row.SetField("pm_irms", entity.pmIrms);
     row.SetField("req_weight", entity.reqWeight);
     row.SetField("req_size", entity.reqSize);
     row.SetField("carrier_type", entity.carrierType);
     row.SetField("print_packlist", entity.printPacklist);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("row_status", entity.rowStatus);
     row.SetField("pack_scm", entity.packScm);
     row.SetField("trailer_required", entity.trailerRequired);
     row.SetField("sx_printer", entity.sxPrinter);
     row.SetField("scm_printer", entity.scmPrinter);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("load_orderfl", entity.loadOrderfl);
     row.SetField("load_order_classes", entity.loadOrderClasses);
     row.SetField("rowpointer", entity.rowpointer);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("carrierRowID", entity.rowID.ToByteArray());
 }