Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromInventoryBase(ref DataRow row, InventoryBase entity)
 {
     row.SetField("id", entity.id);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("pallet_id", entity.palletId);
     row.SetField("abs_num", entity.absNum);
     row.SetField("ns_comment", entity.nsComment);
     row.SetField("uom", entity.uom);
     row.SetField("bin_num", entity.binNum);
     row.SetField("date_time", entity.dateTime);
     row.SetField("expiration", entity.expiration);
     row.SetField("total_qty", entity.totalQty);
     row.SetField("reserved_qty", entity.reservedQty);
     row.SetField("truck_id", entity.truckId);
     row.SetField("lot", entity.lot);
     row.SetField("cycle_flag", entity.cycleFlag);
     row.SetField("cycle_level", entity.cycleLevel);
     row.SetField("cycle_emp_num", entity.cycleEmpNum);
     row.SetField("cycle_id", entity.cycleId);
     row.SetField("rtn_category", entity.rtnCategory);
     row.SetField("rtn_pallet_full", entity.rtnPalletFull);
     row.SetField("attributes", entity.attributes);
     row.SetField("task_id", entity.taskId);
     row.SetField("suggested_bin", entity.suggestedBin);
     row.SetField("emp_num", entity.empNum);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("po_number", entity.poNumber);
     row.SetField("po_suffix", entity.poSuffix);
     row.SetField("country_code", entity.countryCode);
     row.SetField("order", entity.order);
     row.SetField("order_suffix", entity.orderSuffix);
     row.SetField("cargo_control", entity.cargoControl);
     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("stock_stat", entity.stockStat);
     row.SetField("cross_dock_order", entity.crossDockOrder);
     row.SetField("cross_dock_order_suffix", entity.crossDockOrderSuffix);
     row.SetField("case_quantity", entity.caseQuantity);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("inventoryRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, InventoryBase entity)
 {
     row.SetField("inventoryRowID", entity.rowID.ToByteArray());
 }