Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCartonmstBase(ref DataRow row, CartonmstBase entity)
 {
     row.SetField("carton_num", entity.cartonNum);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("carton_id", entity.cartonId);
     row.SetField("tracking_id", entity.trackingId);
     row.SetField("box_id", entity.boxId);
     row.SetField("package_code", entity.packageCode);
     row.SetField("last_order", entity.lastOrder);
     row.SetField("last_order_suffix", entity.lastOrderSuffix);
     row.SetField("cust_code", entity.custCode);
     row.SetField("carrier_id", entity.carrierId);
     row.SetField("full", entity.full);
     row.SetField("print_form", entity.printForm);
     row.SetField("batch", entity.batch);
     row.SetField("sequence", entity.sequence);
     row.SetField("weight", entity.weight);
     row.SetField("height", entity.height);
     row.SetField("width", entity.width);
     row.SetField("length", entity.length);
     row.SetField("x_of_y", entity.xOfY);
     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("reference", entity.reference);
     row.SetField("bin_num", entity.binNum);
     row.SetField("return_reason", entity.returnReason);
     row.SetField("row_status", entity.rowStatus);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("cartonmstRowID", entity.rowID.ToByteArray());
 }
Esempio n. 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, CartonmstBase entity)
 {
     row.SetField("cartonNum", entity.cartonNum);
     row.SetField("cartonmstRowID", entity.rowID.ToByteArray());
 }