/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, StntblBase entity) { row.SetField("coNum", entity.coNum); row.SetField("whNum", entity.whNum); row.SetField("stnNum", entity.stnNum); row.SetField("stntblRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromStntblBase(ref DataRow row, StntblBase entity) { row.SetField("co_num", entity.coNum); row.SetField("row_status", entity.rowStatus); row.SetField("wh_num", entity.whNum); row.SetField("stn_num", entity.stnNum); row.SetField("stn_type", entity.stnType); row.SetField("label_printer", entity.labelPrinter); row.SetField("label_queue", entity.labelQueue); row.SetField("line_printer", entity.linePrinter); row.SetField("line_queue", entity.lineQueue); row.SetField("last_pid", entity.lastPid); row.SetField("last_activation", entity.lastActivation); row.SetField("last_emp_num", entity.lastEmpNum); row.SetField("last_login", entity.lastLogin); row.SetField("last_logout", entity.lastLogout); 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("stntblRowID", entity.rowID.ToByteArray()); }