예제 #1
0
        public async Task <ActionResult> DeepenReportDetail(int totalReportSn, SelectedMentorTotalReportParmModel selectParam)
        {
            ViewBag.naviLeftMenu = Global.Report;

            var scMentoringTotalReport = await _scMentoringTotalReportService.GetMentoringTotalReportById(totalReportSn);

            var listscFileInfo = scMentoringTotalReport.ScMentoringTrFileInfoes.Select(mtfi => mtfi.ScFileInfo).Where(fi => fi.Status == "N");

            var listFileContent =
                Mapper.Map <List <FileContent> >(listscFileInfo);

            var totalReportViewModel =
                Mapper.Map <MentoringTotalReportViewModel>(scMentoringTotalReport);

            totalReportViewModel.FileContents = listFileContent;

            // compSn을 통해 기업명 가져오기
            var compSn   = totalReportViewModel.CompSn;
            var compInfo = await vcCompInfoService.getVcCompInfoByCompSn(compSn);

            ViewBag.CompNm = compInfo.CompNm;
            //totalReportViewModel.CompNm = compNm.ToString();

            //검색조건 유지를 위해
            ViewBag.SelectParam = selectParam;

            return(View(totalReportViewModel));
        }
        public async Task <ActionResult> MentoringTotalReportDetail(int totalReportSn, SelectedMentorTotalReportParmModel selectParam)
        {
            ViewBag.LeftMenu = Global.MentoringReport;

            var scMentoringTotalReport = await _scMentoringTotalReportService.GetMentoringTotalReportById(totalReportSn);

            var listscFileInfo = scMentoringTotalReport.ScMentoringTrFileInfoes.Select(mtfi => mtfi.ScFileInfo).Where(fi => fi.Status == "N");

            var listFileContent =
                Mapper.Map <List <FileContent> >(listscFileInfo);

            var totalReportViewModel =
                Mapper.Map <MentoringTotalReportViewModel>(scMentoringTotalReport);

            totalReportViewModel.FileContents = listFileContent;

            //검색조건 유지를 위해
            ViewBag.SelectParam = selectParam;

            return(View(totalReportViewModel));
        }