Пример #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SerialHistoryBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("order", entity.order);
     row.SetField("orderSuffix", entity.orderSuffix);
     row.SetField("line", entity.line);
     row.SetField("lineSequence", entity.lineSequence);
     row.SetField("serialNum", entity.serialNum);
     row.SetField("serial_historyRowID", entity.rowID.ToByteArray());
 }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSerialHistoryBase(ref DataRow row, SerialHistoryBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("order", entity.order);
     row.SetField("order_suffix", entity.orderSuffix);
     row.SetField("type", entity.type);
     row.SetField("line", entity.line);
     row.SetField("line_sequence", entity.lineSequence);
     row.SetField("abs_num", entity.absNum);
     row.SetField("serial_num", entity.serialNum);
     row.SetField("rma", entity.rma);
     row.SetField("pick_id", entity.pickId);
     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("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("serial_historyRowID", entity.rowID.ToByteArray());
 }