示例#1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PalletmstBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("palletId", entity.palletId);
     row.SetField("palletmstRowID", entity.rowID.ToByteArray());
 }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPalletmstBase(ref DataRow row, PalletmstBase entity)
 {
     row.SetField("pallet_num", entity.palletNum);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("pallet_id", entity.palletId);
     row.SetField("tracking_id", entity.trackingId);
     row.SetField("wh_zone", entity.whZone);
     row.SetField("full", entity.full);
     row.SetField("pallet_type", entity.palletType);
     row.SetField("cart_id", entity.cartId);
     row.SetField("cart_bin", entity.cartBin);
     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("carrier_id", entity.carrierId);
     row.SetField("cust_code", entity.custCode);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("palletmstRowID", entity.rowID.ToByteArray());
 }