/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPickBase(ref DataRow row, PickBase entity) { row.SetField("id", entity.id); row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("batch", entity.batch); row.SetField("order", entity.order); row.SetField("order_suffix", entity.orderSuffix); row.SetField("line", entity.line); row.SetField("line_sequence", entity.lineSequence); row.SetField("carton_id", entity.cartonId); row.SetField("abs_num", entity.absNum); row.SetField("serial_num", entity.serialNum); row.SetField("lot", entity.lot); row.SetField("pick_sequence", entity.pickSequence); row.SetField("wh_zone", entity.whZone); row.SetField("aisle", entity.aisle); row.SetField("bin_num", entity.binNum); row.SetField("qty", entity.qty); row.SetField("orig_qty", entity.origQty); row.SetField("date_time", entity.dateTime); row.SetField("reserved", entity.reserved); row.SetField("printed", entity.printed); row.SetField("pallet_num", entity.palletNum); row.SetField("pallet_id", entity.palletId); row.SetField("stock_stat", entity.stockStat); 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("pick_status", entity.pickStatus); row.SetField("trans_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("pick_seq2", entity.pickSeq2); row.SetField("pick_seq3", entity.pickSeq3); row.SetField("weight", entity.weight); row.SetField("altwhse", entity.altwhse); row.SetField("pickRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, PickBase entity) { row.SetField("pickRowID", entity.rowID.ToByteArray()); }