예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromItemAllocBase(ref DataRow row, ItemAllocBase entity)
 {
     row.SetField("id", entity.id);
     row.SetField("date_time", entity.dateTime);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("type", entity.type);
     row.SetField("key1", entity.key1);
     row.SetField("key2", entity.key2);
     row.SetField("key3", entity.key3);
     row.SetField("abs_num", entity.absNum);
     row.SetField("lot", entity.lot);
     row.SetField("quantity", entity.quantity);
     row.SetField("emp_num", entity.empNum);
     row.SetField("trans_num", entity.transNum);
     row.SetField("comment", entity.comment);
     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("altparentwhse", entity.altparentwhse);
     row.SetField("item_allocRowID", entity.rowID.ToByteArray());
 }
예제 #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ItemAllocBase entity)
 {
     row.SetField("item_allocRowID", entity.rowID.ToByteArray());
 }