public UCRequestEntry(UserInformation userInfo) { this.userInfo = userInfo; InitializeComponent(); ServiceCategoryJobPresenter serviceJobPresenter = new ServiceCategoryJobPresenter(); serviceJobContainer = serviceJobPresenter.GetServiceJobTree(); var treeNodes = LoadServiceTree(serviceJobContainer.ServiceCategoryDtos); treeServices.Nodes.AddRange(treeNodes.ToArray()); txtRequester.Text = userInfo.FirstName + " " + userInfo.LastName; dtpDate.Value = DateTime.Now; person = myView.baseDataPresenter.getPersonel(userInfo.PerId); txtOwnername.Text = person.FullName; txtOwnername.Tag = person; attachBs.DataSource = attachBlist; igridAtch.DataSource = attachBs; if (userInfo.ActionId == (int)RequestAction.All || userInfo.ActionId == (int)RequestAction.IndChart) { btnSelectOwner.Enabled = true; } else { btnSelectOwner.Enabled = false; } grpDeviceList.Enabled = false; grpOwner.Enabled = false; SetGrid(); }
public UCSelectServiceCategoryJob() { InitializeComponent(); ServiceCategoryJobPresenter serviceJobPresenter = new ServiceCategoryJobPresenter(); var serviceJobContainer = serviceJobPresenter.GetServiceJobTree(); var treeNodes = LoadServiceTree(serviceJobContainer.ServiceCategoryDtos); treeServices.Nodes.AddRange(treeNodes.ToArray()); }
private void InitializeData() { ServiceCategoryJobPresenter serviceJobPresenter = new ServiceCategoryJobPresenter(); serviceJobContainer = serviceJobPresenter.GetServiceJobTree(); var treeNodes = LoadServiceTree(serviceJobContainer.ServiceCategoryDtos); treeServices.Nodes.AddRange(treeNodes.ToArray()); }