Example #1
0
        private void LoadControls()
        {
            var documents           = documentService.GetDocumentsByProjectType(projectTypeId);
            var projectDocuments    = projectDocumentService.GetProjectDocumentsByProjectType(projectTypeId);
            var documentsWithFields = documentService.GetDocumentsByProjectTypeWithFields(projectTypeId);

            ViewBag.SectorList    = sectorService.GetProjectSectorParentList();
            ViewBag.SubSectorList = "";

            ViewBag.Type1DocumentList        = documents.Where(d => d.DocumentTabId == 1 && d.HasFields == false).OrderBy(d => d.DisplayOrder).ToList();
            ViewBag.StatusList               = statusService.GetStatusList();
            ViewBag.ProjectTypeFullList      = projectTypeService.GetProjectTypeList();
            ViewBag.MethodOfIntroductionList = methodOfIntroductionService.GetMethodOfIntroductionList();
            ViewBag.PriorityFrameworkList    = priorityFrameworkService.GetPriorityFrameworkList();
            ViewBag.OrganizationList         = organizationService.GetOrganizationList();
            ViewBag.ContactList              = contactService.GetContactList();
            ViewBag.DivisionList             = divisionService.GetDivisionList();
            ViewBag.EmployeeList             = employeeService.GetEmployeeList();

            ViewBag.TenderTypeList              = commonDataService.GetCommonData((int)CommonDataType.TenderType);
            ViewBag.TypeOfSaleList              = commonDataService.GetCommonData((int)CommonDataType.TypeOfSale);
            ViewBag.DocStatusList               = commonDataService.GetCommonData((int)CommonDataType.DocStatus);
            ViewBag.ContinentList               = commonDataService.GetCommonData((int)CommonDataType.Continent);
            ViewBag.PriorityList                = commonDataService.GetCommonData((int)CommonDataType.Priority);
            ViewBag.FileStatusList              = commonDataService.GetCommonData((int)CommonDataType.FileStatus);
            ViewBag.SLICCopyList                = commonDataService.GetCommonData((int)CommonDataType.SLICCopy);
            ViewBag.DocStatusExtendedList       = commonDataService.GetCommonData((int)CommonDataType.DocStatusExtended);
            ViewBag.SourceList                  = commonDataService.GetCommonData((int)CommonDataType.Source);
            ViewBag.ProceedStatusList           = commonDataService.GetCommonData((int)CommonDataType.ProceedStatus);
            ViewBag.ProjectDivisionalStatusList = commonDataService.GetCommonData((int)CommonDataType.ProjectDivisionalStatus);
            ViewBag.HotPickList                 = commonDataService.GetCommonData((int)CommonDataType.HotPick);

            ViewBag.ProjectTypeList = projectTypeService.GetProjectTypeList().Where(pt => pt.ShowInMenu == true);
        }
        private void LoadControls()
        {
            var documents           = documentService.GetDocumentsByProjectType(projectTypeId);
            var projectDocuments    = projectDocumentService.GetProjectDocumentsByProjectType(projectTypeId);
            var documentsWithFields = documentService.GetDocumentsByProjectTypeWithFields(projectTypeId);

            ViewBag.SectorList = sectorService.GetProjectSectorParentList();

            ViewBag.Type1DocumentList = documents.Where(d => d.DocumentTabId == 1 && d.HasFields == false).OrderBy(d => d.DisplayOrder).ToList();
            ViewBag.Type2DocumentList = documents.Where(d => d.DocumentTabId == 2 && d.HasFields == false).OrderBy(d => d.DisplayOrder).ToList();
            ViewBag.Type3DocumentList = documents.Where(d => d.DocumentTabId == 3 && d.HasFields == false).OrderBy(d => d.DisplayOrder).ToList();
            ViewBag.Type6DocumentList = documents.Where(d => d.DocumentTabId == 6 && d.HasFields == false).OrderBy(d => d.DisplayOrder).ToList();

            ViewBag.Type1ProjectDocumentList = projectDocuments.Where(d => d.WFM_Document.DocumentTabId == 1 && d.WFM_Document.HasFields == false).OrderBy(d => d.WFM_Document.DisplayOrder).ToList();
            ViewBag.Type2ProjectDocumentList = projectDocuments.Where(d => d.WFM_Document.DocumentTabId == 2 && d.WFM_Document.HasFields == false).OrderBy(d => d.WFM_Document.DisplayOrder).ToList();

            ViewBag.Form8B = documentsWithFields.Where(d => d.DocumentTabId == 4 && d.Id == 22).OrderBy(d => d.DisplayOrder).ToList();

            ViewBag.SourcingPartners = sourcingPartnerService.GetSourdingPartnerList();
            ViewBag.Principals       = principalService.GetPrincipalList();
        }