/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSerialBase(ref DataRow row, SerialBase entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("abs_num", entity.absNum); row.SetField("serial_num", entity.serialNum); row.SetField("bin_num", entity.binNum); row.SetField("date_time", entity.dateTime); row.SetField("adjust_type", entity.adjustType); 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("pallet_id", entity.palletId); row.SetField("order", entity.order); row.SetField("order_suffix", entity.orderSuffix); row.SetField("order_line", entity.orderLine); row.SetField("order_line_sequence", entity.orderLineSequence); row.SetField("po_number", entity.poNumber); row.SetField("po_suffix", entity.poSuffix); row.SetField("po_line", entity.poLine); row.SetField("po_line_sequence", entity.poLineSequence); 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("serialRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SerialBase entity) { row.SetField("coNum", entity.coNum); row.SetField("whNum", entity.whNum); row.SetField("absNum", entity.absNum); row.SetField("serialNum", entity.serialNum); row.SetField("serialRowID", entity.rowID.ToByteArray()); }