Exemplo n.º 1
0
        public virtual ActionResult Index()
        {
            FindingRecomendationsReportModel fRReportModel = new FindingRecomendationsReportModel();
            var ListPMRCycles           = ClientPMRForCycleModel.GetAllCyclesSeptemberAndMarchCycles(Lang).OrderByDescending(x => x.PmrCycleId).ToList();
            var ListContry              = ClientGenericRepository.GetCountries(Lang).OrderBy(x => x.Name).ToList();
            var ListContryDepartment    = ClientGenericRepository.GetCountryDepartments(Lang).OrderBy(x => x.Name).ToList();
            var ListSectorDepartment    = ClientGenericRepository.GetSectorDepartment(Lang).OrderBy(x => x.Name).ToList();
            var ListDivision            = ClientGenericRepository.GetDivisions(Lang).OrderBy(x => x.Name).ToList();
            var ListDelayTypes          = _ClientDelayAchievementModelRepository.GetTypesDelay(Lang).OrderBy(x => x.Name).ToList();
            var ListClassification      = ClientMasterDataModelRepository.GetMasterDataModels("PMI_CLASSIFICATION").OrderBy(x => x.Name).ToList();
            var ListDraftClassification = ClientMasterDataModelRepository.GetMasterDataModels("PMI_CLASSIFICATION").OrderBy(x => x.Name).ToList();

            ListDraftClassification[0].ConvergenceMasterDataId = 1;
            ListDraftClassification[1].ConvergenceMasterDataId = 2;
            ListDraftClassification[2].ConvergenceMasterDataId = 3;
            ListDraftClassification[3].ConvergenceMasterDataId = 4;

            ViewBag.ListPMRCycle            = new SelectList(ListPMRCycles, "PMRCycleId", "PmrCycleName");
            ViewBag.ListContry              = new MultiSelectList(ListContry, "ConvergenceMasterDataId", "Name");
            ViewBag.ListContryDepartment    = new MultiSelectList(ListContryDepartment, "ConvergenceMasterDataId", "Name");
            ViewBag.ListSectorDepartment    = new MultiSelectList(ListSectorDepartment, "ConvergenceMasterDataId", "Name");
            ViewBag.ListDivision            = new MultiSelectList(ListDivision, "ConvergenceMasterDataId", "Name");
            ViewBag.ListDelayTyeps          = new MultiSelectList(ListDelayTypes, "ConvergenceMasterDataId", "Name");
            ViewBag.ListClassification      = new MultiSelectList(ListClassification, "ConvergenceMasterDataId", "NameEn");
            ViewBag.ListDraftClassification = new MultiSelectList(ListDraftClassification, "ConvergenceMasterDataId", "NameEn");

            return(View());
        }
Exemplo n.º 2
0
        public virtual ActionResult IndexReport()
        {
            FindingRecomendationsReportModel fRReportModel = new FindingRecomendationsReportModel();
            var ListPMRCycles        = ClientPMRForCycleModel.GetAllCyclesSeptemberAndMarchCycles(Lang).OrderByDescending(x => x.PmrCycleId).ToList();
            var ListContry           = ClientGenericRepository.GetCountries(Lang).OrderBy(x => x.Name).ToList();
            var ListContryDepartment = ClientGenericRepository.GetCountryDepartments(Lang).OrderBy(x => x.Name).ToList();
            var ListSectorDepartment = ClientGenericRepository.GetSectorDepartment(Lang).OrderBy(x => x.Name).ToList();
            var ListDivision         = ClientGenericRepository.GetDivisions(Lang).OrderBy(x => x.Name).ToList();
            var ListStage            = _ClientFindingRecommendationModelRepository.GetStages(Lang).OrderBy(x => x.Name).ToList();
            var ListClassification   = ClientMasterDataModelRepository.GetMasterDataModels("PMI_CLASSIFICATION").OrderBy(x => x.Name).ToList();
            var ListDimesion         = _ClientFindingRecommendationModelRepository.GetDimensions(Lang).OrderBy(x => x.Name).ToList();
            var contIndices          = 1;

            foreach (var itemDimension in ListDimesion)
            {
                itemDimension.Name = contIndices.ToString() + ". " + itemDimension.Name;
                itemDimension.ConvergenceMasterDataId = Convert.ToInt32(itemDimension.ConvergenceMasterDataId.ToString() + contIndices.ToString());
                contIndices++;
            }

            var ListCategories          = _ClientFindingRecommendationModelRepository.GetCategories(Lang).OrderBy(x => x.Name).ToList();
            var ListDraftClassification = ClientMasterDataModelRepository.GetMasterDataModels("PMI_CLASSIFICATION").OrderBy(x => x.Name).ToList();

            ListDraftClassification[0].ConvergenceMasterDataId = 1;
            ListDraftClassification[1].ConvergenceMasterDataId = 2;
            ListDraftClassification[2].ConvergenceMasterDataId = 3;
            ListDraftClassification[3].ConvergenceMasterDataId = 4;

            ViewBag.ListPMRCycle            = new SelectList(ListPMRCycles, "PMRCycleId", "PmrCycleName");
            ViewBag.ListContry              = new MultiSelectList(ListContry, "ConvergenceMasterDataId", "Name");
            ViewBag.ListContryDepartment    = new MultiSelectList(ListContryDepartment, "ConvergenceMasterDataId", "Name");
            ViewBag.ListSectorDepartment    = new MultiSelectList(ListSectorDepartment, "ConvergenceMasterDataId", "Name");
            ViewBag.ListDivision            = new MultiSelectList(ListDivision, "ConvergenceMasterDataId", "Name");
            ViewBag.ListStage               = new MultiSelectList(ListStage, "ConvergenceMasterDataId", "Name");
            ViewBag.ListClassification      = new MultiSelectList(ListClassification, "ConvergenceMasterDataId", "NameEn");
            ViewBag.ListDimesion            = new MultiSelectList(ListDimesion, "ConvergenceMasterDataId", "Name");
            ViewBag.ListCategories          = new MultiSelectList(ListCategories, "ConvergenceMasterDataId", "Name");
            ViewBag.ListDraftClassification = new MultiSelectList(ListDraftClassification, "ConvergenceMasterDataId", "NameEn");

            return(View());
        }