Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEodSetupBase(ref DataRow row, EodSetupBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("transrptfl", entity.transrptfl);
     row.SetField("fileretfl", entity.fileretfl);
     row.SetField("allocfxfl", entity.allocfxfl);
     row.SetField("cyclecntfl", entity.cyclecntfl);
     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("commentclrfl", entity.commentclrfl);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("disc_cyclefl", entity.discCyclefl);
     row.SetField("item_histfl", entity.itemHistfl);
     row.SetField("eod_setupRowID", entity.rowID.ToByteArray());
 }
Exemple #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, EodSetupBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("eod_setupRowID", entity.rowID.ToByteArray());
 }