public void DisplayRecord(string loadNumber) { var loadresult = GlobalConfig.Load_MainTable.GetByLoadNumber(loadNumber); if (loadresult != null) { if (loadresult.InUseBy == "0") // Record not in use { // Hold the record for current user GlobalConfig.Load_MainTable.TakeOwnership(loadresult.LoadMainId, UserId); // Store the LoadMainId of the current record CurrentRecordId = loadresult.LoadMainId; // Populate form _firstPickUpAccountCode = loadresult.FirstPickUpAccountCode; _lastDeliveryAccountCode = loadresult.LastDeliveryAccountCode; loadNumberValue.Text = loadresult.LoadNumber;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)