Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, RtmstBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("rtNum", entity.rtNum);
     row.SetField("rtmstRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromRtmstBase(ref DataRow row, RtmstBase entity)
 {
     row.SetField("rt_id", entity.rtId);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("rt_num", entity.rtNum);
     row.SetField("task_id", entity.taskId);
     row.SetField("type", entity.type);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("comments", entity.comments);
     row.SetField("delivery", entity.delivery);
     row.SetField("order", entity.order);
     row.SetField("order_suffix", entity.orderSuffix);
     row.SetField("packing_list", entity.packingList);
     row.SetField("truck_id", entity.truckId);
     row.SetField("carrier", entity.carrier);
     row.SetField("clearance_code", entity.clearanceCode);
     row.SetField("cargo_control", entity.cargoControl);
     row.SetField("clearance_required", entity.clearanceRequired);
     row.SetField("release_id", entity.releaseId);
     row.SetField("unplanned", entity.unplanned);
     row.SetField("created_by", entity.createdBy);
     row.SetField("num_cartons", entity.numCartons);
     row.SetField("percent_fill", entity.percentFill);
     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("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("rtmstRowID", entity.rowID.ToByteArray());
 }