//31p 3.위험관리 역량 - 31p. 전문가 평가 public async Task<ActionResult> RiskMgmtEvalProfession(BasicSurveyReportViewModel paramModel) { ViewBag.LeftMenu = Global.Report; RiskMgmtViewModel viewModel = new RiskMgmtViewModel(); //검토결과 데이터 생성 var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "31"); //레포트 체크리스트 var enumRptCheckList = await rptCheckListService.GetRptCheckListBySmallClassCd("31"); //CommentList 채우기 var CommentList = ReportHelper.MakeCommentViewModel(enumRptCheckList.Where(cl => cl.Type == "C"), listRptMentorComment.Where(rmc => rmc.RptCheckList.Type == "C").ToList()); //체크박스 List 채우기 var ChekcBoxList = ReportHelper.MakeCheckBoxViewModel(enumRptCheckList.Where(cl => cl.Type == "B"), listRptMentorComment.Where(rmc => rmc.RptCheckList.Type == "B").ToList()); viewModel.CommentList = CommentList; viewModel.CheckBoxList = ChekcBoxList; ViewBag.paramModel = paramModel; return View(viewModel); }
public async Task<ActionResult> RiskMgmtEvalProfession(BasicSurveyReportViewModel paramModel, RiskMgmtViewModel viewModel) { ViewBag.LeftMenu = Global.Report; var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "31"); foreach (var item in viewModel.CommentList) { var comment = listRptMentorComment.SingleOrDefault(i => i.DetailCd == item.DetailCd); if (comment == null) { rptMentorCommentService.Insert(ReportHelper.MakeRptMentorcomment(item, paramModel)); } else { comment.Comment = item.Comment; } } foreach (var item in viewModel.CheckBoxList) { var comment = listRptMentorComment.SingleOrDefault(i => i.DetailCd == item.DetailCd); if (comment == null) { rptMentorCommentService.Insert(ReportHelper.MakeRptMentorcomment(item, paramModel)); } else { comment.Comment = item.CheckVal.ToString(); } } await rptMentorCommentService.SaveDbContextAsync(); if (viewModel.SubmitType == "T") //임시저장 { return RedirectToAction("RiskMgmtEvalProfession", "BasicSurveyReport", new { BizWorkSn = paramModel.BizWorkSn, CompSn = paramModel.CompSn, BizWorkYear = paramModel.BizWorkYear, Status = paramModel.Status, QuestionSn = paramModel.QuestionSn }); } else { return RedirectToAction("GrowthRoadMapCover", "BasicSurveyReport", new { BizWorkSn = paramModel.BizWorkSn, CompSn = paramModel.CompSn, BizWorkYear = paramModel.BizWorkYear, Status = paramModel.Status, QuestionSn = paramModel.QuestionSn }); } }
//P29 3.위험관리역량 - 정보시스템활용 public async Task<ActionResult> RiskMgmtITSystem(BasicSurveyReportViewModel paramModel) { ViewBag.LeftMenu = Global.Report; ReportUtil reportUtil = new ReportUtil(scBizWorkService, quesResult1Service, quesResult2Service, quesMasterService, sboFinancialIndexTService); RiskMgmtViewModel viewModel = new RiskMgmtViewModel(); viewModel.CheckList = await reportUtil.getGrowthStepPointCheckList(paramModel, "A1A203"); //검토결과 데이터 생성 var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "29"); //레포트 체크리스트 var enumRptCheckList = await rptCheckListService.GetRptCheckListBySmallClassCd("29"); //CommentList 채우기 var CommentList = ReportHelper.MakeCommentViewModel(enumRptCheckList, listRptMentorComment); viewModel.CommentList = CommentList; ViewBag.paramModel = paramModel; return View(viewModel); }