public UIClientRegistration(Form calledFrom, int icuid) { InitializeComponent(); _calledFrom = calledFrom; var busClientRead = BUSClient.ClientRead(new ClientReadRequest() { clientUID = icuid, headerInfo = HeaderInfo.Instance }); _client = busClientRead.client; // Load User ID // var ua = UserAccess.List(); foreach (var user in ua) { comboUserID.Items.Add(user.UserID); } // Load Contractor Size // var dsl = new DocumentSetList(); dsl.List(); foreach (var documentSet in dsl.documentSetList) { comboContractorSize.Items.Add(documentSet.UIDNameDisplay); } MapFieldsToScreen(); }
public UIClientRegistration(Form calledFrom) { InitializeComponent(); _calledFrom = calledFrom; _client = new Client(HeaderInfo.Instance); // Load User ID // var ua = UserAccess.List(); foreach (var user in ua) { comboUserID.Items.Add(user.UserID); } // Load Contractor Size // var dsl = new DocumentSetList(); dsl.List(); foreach (var documentSet in dsl.documentSetList) { comboContractorSize.Items.Add(documentSet.UIDNameDisplay); } ClearScreenFields(); }
/// <summary> /// Constructor /// </summary> /// <param name="callingForm"></param> public UIClientDetails(Form callingForm) { _callingForm = callingForm; InitializeComponent(); original = new Client(HeaderInfo.Instance); setCurrentRowPosition(0); clientContractList = new List <ClientContract>(); clientContract = new ClientContract(); clientList = new List <Client>(); // bindingSourceClient.DataSource = clientList; bsClient.DataSource = clientList; client = new Client(HeaderInfo.Instance); clientExtraInformation = new ClientExtraInformation(); // Load User ID // var ua = UserAccess.List(); foreach (var user in ua) { comboUserID.Items.Add(user.UserID); } // Load Contractor Size // DocumentSetList dsl = new DocumentSetList(); dsl.List(); foreach (var documentSet in dsl.documentSetList) { comboContractorSize.Items.Add(documentSet.UIDNameDisplay); } // ucClientOtherInfo1.PopulateData(Utils.ClientID); }