/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromInvProbBase(ref DataRow row, InvProbBase entity) { row.SetField("inv_prob_id", entity.invProbId); row.SetField("trans_num", entity.transNum); row.SetField("trans_type", entity.transType); row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("bin_num", entity.binNum); row.SetField("exp_bin", entity.expBin); row.SetField("pallet_id", entity.palletId); row.SetField("exp_pallet", entity.expPallet); row.SetField("abs_num", entity.absNum); row.SetField("lot", entity.lot); row.SetField("item_num", entity.itemNum); row.SetField("actual_qty", entity.actualQty); row.SetField("exp_qty", entity.expQty); row.SetField("printed", entity.printed); 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("case_quantity", entity.caseQuantity); row.SetField("trans_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("lot_before", entity.lotBefore); row.SetField("inv_probRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, InvProbBase entity) { row.SetField("inv_probRowID", entity.rowID.ToByteArray()); }