Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromMovemstBase(ref DataRow row, MovemstBase entity)
 {
     row.SetField("id", entity.id);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("task_id", entity.taskId);
     row.SetField("machine", entity.machine);
     row.SetField("pallet_id", entity.palletId);
     row.SetField("abs_num", entity.absNum);
     row.SetField("lot", entity.lot);
     row.SetField("quantity", entity.quantity);
     row.SetField("bin_from", entity.binFrom);
     row.SetField("bin_to", entity.binTo);
     row.SetField("zone_to", entity.zoneTo);
     row.SetField("to_wh_num", entity.toWhNum);
     row.SetField("urgent", entity.urgent);
     row.SetField("movement_type", entity.movementType);
     row.SetField("prod_id", entity.prodId);
     row.SetField("prod_line", entity.prodLine);
     row.SetField("batch", entity.batch);
     row.SetField("wh_zone", entity.whZone);
     row.SetField("dept_num", entity.deptNum);
     row.SetField("truck_id", entity.truckId);
     row.SetField("date_time", entity.dateTime);
     row.SetField("doc_id", entity.docId);
     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("order", entity.order);
     row.SetField("order_suffix", entity.orderSuffix);
     row.SetField("movemstRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, MovemstBase entity)
 {
     row.SetField("movemstRowID", entity.rowID.ToByteArray());
 }