예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromItemHistoryBase(ref DataRow row, ItemHistoryBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("rec_date", entity.recDate);
     row.SetField("rec_type", entity.recType);
     row.SetField("stock_stat", entity.stockStat);
     row.SetField("abs_num", entity.absNum);
     row.SetField("lot", entity.lot);
     row.SetField("start_bal", entity.startBal);
     row.SetField("receipts", entity.receipts);
     row.SetField("returns", entity.returns);
     row.SetField("adjustments", entity.adjustments);
     row.SetField("shipments", entity.shipments);
     row.SetField("shipments_unsent", entity.shipmentsUnsent);
     row.SetField("end_bal", entity.endBal);
     row.SetField("rec_id", entity.recId);
     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("item_historyRowID", entity.rowID.ToByteArray());
 }
예제 #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ItemHistoryBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("recDate", entity.recDate);
     row.SetField("recType", entity.recType);
     row.SetField("stockStat", entity.stockStat);
     row.SetField("absNum", entity.absNum);
     row.SetField("item_historyRowID", entity.rowID.ToByteArray());
 }