本文整理汇总了C#中BizOneShot.Light.Models.ViewModels.BasicSurveyReportViewModel类的典型用法代码示例。如果您正苦于以下问题:C# BasicSurveyReportViewModel类的具体用法?C# BasicSurveyReportViewModel怎么用?C# BasicSurveyReportViewModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BasicSurveyReportViewModel类属于BizOneShot.Light.Models.ViewModels命名空间,在下文中一共展示了BasicSurveyReportViewModel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: BasicSurveyReport
public async Task<ActionResult> BasicSurveyReport(BasicSurveyReportViewModel paramModel, string curPage)
{
ViewBag.LeftMenu = Global.Report;
//사업년도 DownDown List Data
ViewBag.SelectBizWorkYearList = ReportHelper.MakeYear(2015);
var mentorId = Session[Global.LoginID].ToString();
if (string.IsNullOrEmpty(paramModel.Status))
paramModel.Status = "";
//사업 DropDown List Data
var listScMentorMapping = await scMentorMappingService.GetMentorMappingListByMentorId(mentorId, paramModel.BizWorkYear);
var listScBizWork = listScMentorMapping.Select(mmp => mmp.ScBizWork).ToList();
ViewBag.SelectBizWorkList = ReportHelper.MakeBizWorkList(listScBizWork);
var listScCompMapping = await scCompMappingService.GetCompMappingListByMentorId(mentorId, "A", paramModel.BizWorkSn, paramModel.BizWorkYear);
var listScCompInfo = listScCompMapping.Select(cmp => cmp.ScCompInfo).ToList();
ViewBag.SelectCompInfoList = ReportHelper.MakeCompanyList(listScCompInfo);
ViewBag.SelectStatusList = ReportHelper.MakeReportStatusList();
//기초역량 보고서 조회
int pagingSize = int.Parse(ConfigurationManager.AppSettings["PagingSize"]);
var rptMsters = await rptMasterService.GetRptMasterList(int.Parse(curPage ?? "1"), pagingSize, mentorId, paramModel.BizWorkYear, paramModel.BizWorkSn, paramModel.CompSn, paramModel.Status);
//뷰모델 맵핑
var rptMasterListView = Mapper.Map<List<BasicSurveyReportViewModel>>(rptMsters);
return View(new StaticPagedList<BasicSurveyReportViewModel>(rptMasterListView, int.Parse(curPage ?? "1"), pagingSize, rptMsters.TotalItemCount));
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:34,代码来源:ReportController.cs
示例2: Cover
public async Task<ActionResult> Cover(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
if (paramModel.CompSn == 0 || paramModel.BizWorkSn == 0)
{
return View(paramModel);
}
var scCompMapping = await scCompMappingService.GetCompMappingAsync(paramModel.BizWorkSn, paramModel.CompSn);
paramModel.CompNm = scCompMapping.ScCompInfo.CompNm;
paramModel.BizWorkNm = scCompMapping.ScBizWork.BizWorkNm;
return View(paramModel);
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:17,代码来源:BasicSurveyReportController.cs
示例3: BasicSurveyReport
public async Task<ActionResult> BasicSurveyReport(BasicSurveyReportViewModel paramModel, string curPage)
{
ViewBag.LeftMenu = Global.Report;
//사업관리기관 DownDown List Data
var loginId = Session[Global.LoginID].ToString();
var expertMappings = await scExpertMappingService.GetExpertsAsync(loginId);
var bizMngList = expertMappings.Select(s => s.ScBizWork.ScCompInfo).GroupBy(s => new { s.CompSn, s.CompNm });
var bizWorkMngr = new List<SelectListItem>();
bizWorkMngr.Add(new SelectListItem { Value = "0", Text = "사업관리기관 선택", Selected = true });
if (bizMngList != null)
{
foreach (var item in bizMngList)
{
bizWorkMngr.Add(new SelectListItem { Value = item.Key.CompSn.ToString(), Text = item.Key.CompNm.ToString() });
}
}
SelectList list = new SelectList(bizWorkMngr, "Value", "Text");
ViewBag.SelectBizWorkMngrList = list;
//사업 DropDown List Data
if (paramModel.BizWorkMngr == 0)
ViewBag.SelectBizWorkList = ReportHelper.MakeBizWorkList(null);
else
{
var bizWorkList = expertMappings.Where(i => i.ScBizWork.MngCompSn == paramModel.BizWorkMngr).Select(s => s.ScBizWork).ToList();
ViewBag.SelectBizWorkList = ReportHelper.MakeBizWorkList(bizWorkList);
}
//기초역량 보고서 조회
int pagingSize = int.Parse(ConfigurationManager.AppSettings["PagingSize"]);
var rptMsters = await rptMasterService.GetRptMasterListForExpert(int.Parse(curPage ?? "1"), pagingSize, loginId, paramModel.BizWorkSn, paramModel.BizWorkMngr, "C");
//뷰모델 맵핑
var rptMasterListView = Mapper.Map<List<BasicSurveyReportViewModel>>(rptMsters);
return View(new StaticPagedList<BasicSurveyReportViewModel>(rptMasterListView, int.Parse(curPage ?? "1"), pagingSize, rptMsters.TotalItemCount));
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:45,代码来源:ReportController.cs
示例4: BasicSurveyReport
public async Task<ActionResult> BasicSurveyReport(BasicSurveyReportViewModel paramModel, string curPage)
{
ViewBag.LeftMenu = Global.Report;
//사업관리기관 DownDown List Data
var bizMngList = await scUsrService.GetBizManagerAsync();
var bizMngDropDown =
Mapper.Map<List<BizMngDropDownModel>>(bizMngList);
BizMngDropDownModel title = new BizMngDropDownModel();
title.CompSn = 0;
title.CompNm = "사업관리기관 선택";
bizMngDropDown.Insert(0, title);
SelectList bizList = new SelectList(bizMngDropDown, "CompSn", "CompNm");
ViewBag.SelectBizWorkMngrList = bizList;
//사업 DropDown List Data
if (paramModel.BizWorkMngr == 0)
ViewBag.SelectBizWorkList = ReportHelper.MakeBizWorkList(null);
else
{
var listScBizWork = await scBizWorkService.GetBizWorkList(paramModel.BizWorkMngr, null, 0);
ViewBag.SelectBizWorkList = ReportHelper.MakeBizWorkList(listScBizWork);
}
//기초역량 보고서 조회
int pagingSize = int.Parse(ConfigurationManager.AppSettings["PagingSize"]);
//var rptMsters = await rptMasterService.GetRptMasterListForSysManager(int.Parse(curPage ?? "1"), pagingSize, paramModel.BizWorkSn, paramModel.BizWorkMngr, "C");
var compMappings = await scCompMappingService.GetPagedListCompMappingsForBasicReportAsync(int.Parse(curPage ?? "1"), pagingSize, paramModel.BizWorkMngr, null, paramModel.BizWorkSn);
//뷰모델 맵핑
var rptMasterListView = Mapper.Map<List<BasicSurveyReportViewModel>>(compMappings);
return View(new StaticPagedList<BasicSurveyReportViewModel>(rptMasterListView, int.Parse(curPage ?? "1"), pagingSize, compMappings.TotalItemCount));
}
开发者ID:OhYoonLee,项目名称:LightBizOneShot,代码行数:40,代码来源:ReportController.cs
示例5: OverallResultCover
public ActionResult OverallResultCover(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
return View(paramModel);
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:5,代码来源:BasicSurveyReportController.cs
示例6: RndEmp
public async Task<ActionResult> RndEmp(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
ReportUtil reportUtil = new ReportUtil(scBizWorkService, quesResult1Service, quesResult2Service, quesMasterService, sboFinancialIndexTService);
var viewModel = new RndEmpViewModel();
viewModel.rndEmpRatio = new CheckListViewModel();
viewModel.rndEmpLevelRatio = new CheckListViewModel();
//1) 현재 사업에 참여한 업체 평균
//사업참여 기업들의 레벨(창업보육, 보육성장, 자립성장) 분류
Dictionary<int, int> dicStartUpRndEmp = new Dictionary<int, int>();
Dictionary<int, int> dicGrowthRndEmp = new Dictionary<int, int>();
Dictionary<int, int> dicIndependentRndEmp = new Dictionary<int, int>();
Dictionary<int, int> dicStartUpTotalEmp = new Dictionary<int, int>();
Dictionary<int, int> dicGrowthTotalEmp = new Dictionary<int, int>();
Dictionary<int, int> dicIndependentTotalEmp = new Dictionary<int, int>();
Dictionary<int, int> dicStartUpHighRnd = new Dictionary<int, int>();
Dictionary<int, int> dicGrowthHighRnd = new Dictionary<int, int>();
Dictionary<int, int> dicIndependentHighRnd = new Dictionary<int, int>();
var curBizWork = await scBizWorkService.GetBizWorkByBizWorkSn(paramModel.BizWorkSn);
{
var compMappings = curBizWork.ScCompMappings;
foreach (var compMapping in compMappings)
{
var quesMaster = await quesMasterService.GetQuesMasterAsync(compMapping.ScCompInfo.RegistrationNo, paramModel.BizWorkYear);
if (quesMaster == null)
{
continue;
}
//다래 재무정보 유무 체크하는 로직 추가해야함.(문진표정보, 재무정보가 있어야 보고서 생성가능.)
//다래 재무정보 조회해야 함.
var sboFinacialIndexT = await sboFinancialIndexTService.GetSHUSER_SboFinancialIndexT(compMapping.ScCompInfo.RegistrationNo, ConfigurationManager.AppSettings["CorpCode"], ConfigurationManager.AppSettings["BizCode"], paramModel.BizWorkYear.ToString());
if (sboFinacialIndexT == null)
{
continue;
}
//연구개발 인력의 비율
var quesResult2sEmpRate = await quesResult2Service.GetQuesResult2sAsync(quesMaster.QuestionSn, "A1B102");
//전체임직원수
var TotalEmp = quesResult2sEmpRate.SingleOrDefault(i => i.QuesCheckList.DetailCd == "A1B10202");
//연구개발인력
var RndEmp = quesResult2sEmpRate.SingleOrDefault(i => i.QuesCheckList.DetailCd == "A1B10201");
//연구개발 인력의 능력
var quesResult2sEmpCapa = await quesResult2Service.GetQuesResult2sAsync(quesMaster.QuestionSn, "A1B103");
//박사급
var DoctorEmp = quesResult2sEmpCapa.SingleOrDefault(i => i.QuesCheckList.DetailCd == "A1B10301");
//석사급
var MasterEmp = quesResult2sEmpCapa.SingleOrDefault(i => i.QuesCheckList.DetailCd == "A1B10302");
if (quesMaster.QuestionSn == paramModel.QuestionSn)
{
if(TotalEmp.D == "0")
{
viewModel.rndEmpRatio.Company = "0";
}
else
{
viewModel.rndEmpRatio.Company = Math.Round((double.Parse(RndEmp.D) / double.Parse(TotalEmp.D) * 100), 1).ToString();
}
if (RndEmp.D == "0")
{
viewModel.rndEmpLevelRatio.Company = "0";
}
else
{
viewModel.rndEmpLevelRatio.Company = Math.Round(((double.Parse(DoctorEmp.D) + double.Parse(MasterEmp.D)) / double.Parse(RndEmp.D) * 100), 1).ToString();
}
}
//종합점수 조회하여 분류별로 딕셔너리 저장
var point = await reportUtil.GetCompanyTotalPoint(quesMaster.QuestionSn, sboFinacialIndexT);
if (point >= 0 && point <= 50)
{
dicStartUpRndEmp.Add(compMapping.CompSn, int.Parse(RndEmp.D));
dicStartUpTotalEmp.Add(compMapping.CompSn, int.Parse(TotalEmp.D));
dicStartUpHighRnd.Add(compMapping.CompSn, int.Parse(DoctorEmp.D) + int.Parse(MasterEmp.D));
}
else if (point > 50 && point <= 75)
{
dicGrowthRndEmp.Add(compMapping.CompSn, int.Parse(RndEmp.D));
dicGrowthTotalEmp.Add(compMapping.CompSn, int.Parse(TotalEmp.D));
dicGrowthHighRnd.Add(compMapping.CompSn, int.Parse(DoctorEmp.D) + int.Parse(MasterEmp.D));
}
else
{
dicIndependentRndEmp.Add(compMapping.CompSn, int.Parse(RndEmp.D));
dicIndependentTotalEmp.Add(compMapping.CompSn, int.Parse(TotalEmp.D));
dicIndependentHighRnd.Add(compMapping.CompSn, int.Parse(DoctorEmp.D) + int.Parse(MasterEmp.D));
}
}
}
//.........这里部分代码省略.........
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:101,代码来源:BasicSurveyReportController.cs
示例7: GrowthTotalProposal
public async Task<ActionResult> GrowthTotalProposal(BasicSurveyReportViewModel paramModel, GrowthStrategyViewModel viewModel)
{
ViewBag.LeftMenu = Global.Report;
var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "36");
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;
}
}
if (viewModel.SubmitType == "T") //임시저장
{
await rptMentorCommentService.SaveDbContextAsync();
return RedirectToAction("GrowthTotalProposal", "BasicSurveyReport", new { BizWorkSn = paramModel.BizWorkSn, CompSn = paramModel.CompSn, BizWorkYear = paramModel.BizWorkYear, Status = paramModel.Status, QuestionSn = paramModel.QuestionSn });
}
else
{
var rptMater = await rptMasterService.GetRptMasterAsync(paramModel.QuestionSn, paramModel.CompSn, paramModel.BizWorkYear);
rptMater.Status = "C";
rptMasterService.ModifyRptMaster(rptMater);
await rptMentorCommentService.SaveDbContextAsync();
return RedirectToAction("BasicSurveyReport", "Report", new { area = "Mentor" });
}
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:35,代码来源:BasicSurveyReportController.cs
示例8: RndCost
public async Task<ActionResult> RndCost(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
ReportUtil reportUtil = new ReportUtil(scBizWorkService, quesResult1Service, quesResult2Service, quesMasterService, sboFinancialIndexTService);
var viewModel = new RndCostViewModel();
viewModel.value = new CheckListViewModel();
viewModel.percent = new CheckListViewModel();
//1) 현재 사업에 참여한 업체 평균
//사업참여 기업들의 레벨(창업보육, 보육성장, 자립성장) 분류
Dictionary<int, decimal> dicStartUpRnd = new Dictionary<int, decimal>();
Dictionary<int, decimal> dicGrowthRnd = new Dictionary<int, decimal>();
Dictionary<int, decimal> dicIndependentRnd = new Dictionary<int, decimal>();
Dictionary<int, decimal> dicStartUpSales = new Dictionary<int, decimal>();
Dictionary<int, decimal> dicGrowthSales = new Dictionary<int, decimal>();
Dictionary<int, decimal> dicIndependentSales = new Dictionary<int, decimal>();
var curBizWork = await scBizWorkService.GetBizWorkByBizWorkSn(paramModel.BizWorkSn);
{
var compMappings = curBizWork.ScCompMappings;
foreach (var compMapping in compMappings)
{
var quesMaster = await quesMasterService.GetQuesMasterAsync(compMapping.ScCompInfo.RegistrationNo, paramModel.BizWorkYear);
if (quesMaster == null)
{
continue;
}
//다래 재무정보 유무 체크하는 로직 추가해야함.(문진표정보, 재무정보가 있어야 보고서 생성가능.)
//다래 재무정보 조회해야 함.
var sboFinacialIndexT = await sboFinancialIndexTService.GetSHUSER_SboFinancialIndexT(compMapping.ScCompInfo.RegistrationNo, ConfigurationManager.AppSettings["CorpCode"], ConfigurationManager.AppSettings["BizCode"], paramModel.BizWorkYear.ToString());
if (sboFinacialIndexT == null)
{
continue;
}
if (quesMaster.QuestionSn == paramModel.QuestionSn)
{
viewModel.value.Company = Math.Truncate(sboFinacialIndexT.ReserchAmt.Value / 1000).ToString();
viewModel.percent.Company = (sboFinacialIndexT.CurrentSale.Value == 0) ? "0" : Math.Round((sboFinacialIndexT.ReserchAmt.Value / sboFinacialIndexT.CurrentSale.Value * 100), 1).ToString();
}
//종합점수 조회하여 분류별로 딕셔너리 저장
var point = await reportUtil.GetCompanyTotalPoint(quesMaster.QuestionSn, sboFinacialIndexT);
if (point >= 0 && point <= 50)
{
dicStartUpRnd.Add(compMapping.CompSn, sboFinacialIndexT.ReserchAmt.Value);
dicStartUpSales.Add(compMapping.CompSn, sboFinacialIndexT.CurrentSale.Value);
}
else if (point > 50 && point <= 75)
{
dicGrowthRnd.Add(compMapping.CompSn, sboFinacialIndexT.ReserchAmt.Value);
dicGrowthSales.Add(compMapping.CompSn, sboFinacialIndexT.CurrentSale.Value);
}
else
{
dicIndependentRnd.Add(compMapping.CompSn, sboFinacialIndexT.ReserchAmt.Value);
dicIndependentSales.Add(compMapping.CompSn, sboFinacialIndexT.CurrentSale.Value);
}
}
}
viewModel.value.StartUpAvg = Math.Truncate(((dicStartUpRnd.Values.Sum() + 1095260958) /(dicStartUpRnd.Count + 19)) / 1000).ToString();
viewModel.percent.StartUpAvg = Math.Round(((dicStartUpRnd.Values.Sum() + 1095260958) / (dicStartUpSales.Values.Sum() + 34089625773) * 100), 1).ToString();
viewModel.value.GrowthAvg = Math.Truncate(((dicGrowthRnd.Values.Sum() + 3405773678) / (dicGrowthRnd.Count + 18)) / 1000).ToString();
viewModel.percent.GrowthAvg = Math.Round(((dicGrowthRnd.Values.Sum() + 3405773678) / (dicGrowthSales.Values.Sum() + 124570092683) * 100), 1).ToString();
viewModel.value.IndependentAvg = Math.Truncate(((dicIndependentRnd.Values.Sum() + 1998306254) / (dicIndependentRnd.Count + 2)) / 1000).ToString();
viewModel.percent.IndependentAvg = Math.Round(((dicIndependentRnd.Values.Sum() + 1998306254) / (dicIndependentSales.Values.Sum() + 9817345650) * 100), 1).ToString();
viewModel.value.BizInCompanyAvg = Math.Truncate(((dicIndependentRnd.Values.Sum() + dicGrowthRnd.Values.Sum() + dicStartUpRnd.Values.Sum()) / (dicIndependentRnd.Count + dicStartUpRnd.Count + dicGrowthRnd.Count)) / 1000).ToString();
viewModel.percent.BizInCompanyAvg = Math.Round(((dicIndependentRnd.Values.Sum() + dicGrowthRnd.Values.Sum() + dicStartUpRnd.Values.Sum()) / (dicIndependentSales.Values.Sum() + dicGrowthSales.Values.Sum() + dicStartUpSales.Values.Sum()) * 100), 1).ToString();
viewModel.value.TotalAvg = Math.Truncate(((dicIndependentRnd.Values.Sum() + dicGrowthRnd.Values.Sum() + dicStartUpRnd.Values.Sum() + 6499340890) / (dicIndependentRnd.Count + dicStartUpRnd.Count + dicGrowthRnd.Count + 39)) / 1000).ToString();
viewModel.percent.TotalAvg = Math.Round(((dicIndependentRnd.Values.Sum() + dicGrowthRnd.Values.Sum() + dicStartUpRnd.Values.Sum() + 6499340890) / (dicIndependentSales.Values.Sum() + dicGrowthSales.Values.Sum() + dicStartUpSales.Values.Sum() + 168477064106) * 100), 1).ToString();
//검토결과 데이터 생성
var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "10");
//레포트 체크리스트
var enumRptCheckList = await rptCheckListService.GetRptCheckListBySmallClassCd("10");
//CommentList 채우기
var CommentList = ReportHelper.MakeCommentViewModel(enumRptCheckList, listRptMentorComment);
viewModel.CommentList = CommentList;
ViewBag.paramModel = paramModel;
return View(viewModel);
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:97,代码来源:BasicSurveyReportController.cs
示例9: BasicSurveyCover
public async Task<ActionResult> BasicSurveyCover(BasicSurveyReportViewModel paramModel, int curPage = 0)
{
ViewBag.LeftMenu = Global.Report;
if (paramModel.CompSn == 0 || paramModel.BizWorkSn == 0)
{
return View(paramModel);
}
var scCompMapping = await scCompMappingService.GetCompMappingAsync(paramModel.BizWorkSn, paramModel.CompSn);
paramModel.CompNm = scCompMapping.ScCompInfo.CompNm;
paramModel.BizWorkNm = scCompMapping.ScBizWork.BizWorkNm;
var rptMaster = scCompMapping.ScCompInfo.RptMasters.Where(rm => rm.BasicYear == paramModel.BizWorkYear && rm.BizWorkSn == paramModel.BizWorkSn && rm.CompSn == paramModel.CompSn).SingleOrDefault();
paramModel.QuestionSn = rptMaster.QuestionSn;
paramModel.Status = rptMaster.Status;
var rptMaters = scCompMapping.ScCompInfo.RptMasters.Where(rm => rm.BizWorkSn == paramModel.BizWorkSn && rm.Status == "C").ToList();
ViewBag.SelectReportYearList = ReportHelper.MakeBasicSurveyYear(rptMaters, paramModel.BizWorkYear);
return View(paramModel);
}
开发者ID:OhYoonLee,项目名称:LightBizOneShot,代码行数:25,代码来源:ReportController.cs
示例10: print_03
public ActionResult print_03(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
return View(paramModel);
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:5,代码来源:BasicSurveyReportController.cs
示例11: BasicSurveyReport
public async Task<ActionResult> BasicSurveyReport(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
var compSn = Session[Global.CompSN].ToString();
var rptMaster = await _rptMasterService.GetRptMasterAsyncForCompany(paramModel.BizWorkSn, int.Parse(compSn), paramModel.BizWorkYear);
return RedirectToAction("Cover", "BasicSurveyReport", new { area = "", BizWorkSn = rptMaster.BizWorkSn, CompSn = rptMaster.CompSn, BizWorkYear = rptMaster.BasicYear, Status = rptMaster.Status, QuestionSn = rptMaster.QuestionSn });
}
开发者ID:OhYoonLee,项目名称:LightBizOneShot,代码行数:10,代码来源:ReportController.cs
示例12: ProductivityRelation2
// p23 2.상품화 역량 - 역량별 검토결과 - 제품생산.판매 관계망검토
public async Task<ActionResult> ProductivityRelation2(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
ProductivityRelationViewModel viewModel = new ProductivityRelationViewModel();
//검토결과 데이터 생성
var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "23");
//레포트 체크리스트
var enumRptCheckList = await rptCheckListService.GetRptCheckListBySmallClassCd("23");
//CommentList 채우기
var CommentList = ReportHelper.MakeCommentViewModel(enumRptCheckList.Where(cl => cl.Type == "C"), listRptMentorComment.Where(rmc => rmc.RptCheckList.Type == "C").ToList());
//SCP 입력값 가져오는 로직 있어야함(테이블도 생성해야함)
viewModel.CommentList = CommentList;
ViewBag.paramModel = paramModel;
return View(viewModel);
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:25,代码来源:BasicSurveyReportController.cs
示例13: RiskMgmtOrgSatisfaction
public async Task<ActionResult> RiskMgmtOrgSatisfaction(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
ReportUtil reportUtil = new ReportUtil(scBizWorkService, quesResult1Service, quesResult2Service, quesMasterService, sboFinancialIndexTService);
var viewModel = new RiskMgmtOrgSatisfactionViewModel();
viewModel.orgSatisfaction = new CheckListViewModel();
//1) 현재 사업에 참여한 업체 평균
//사업참여 기업들의 레벨(창업보육, 보육성장, 자립성장) 분류
Dictionary<int, int> dicStartUpTotal = new Dictionary<int, int>();
Dictionary<int, int> dicStartUpMove = new Dictionary<int, int>();
Dictionary<int, int> dicGrowthTotal = new Dictionary<int, int>();
Dictionary<int, int> dicGrowthMove = new Dictionary<int, int>();
Dictionary<int, int> dicIndependentTotal = new Dictionary<int, int>();
Dictionary<int, int> dicIndependentMove = new Dictionary<int, int>();
var curBizWork = await scBizWorkService.GetBizWorkByBizWorkSn(paramModel.BizWorkSn);
{
var compMappings = curBizWork.ScCompMappings;
foreach (var compMapping in compMappings)
{
var quesMaster = await quesMasterService.GetQuesMasterAsync(compMapping.ScCompInfo.RegistrationNo, paramModel.BizWorkYear);
if (quesMaster == null)
{
continue;
}
//다래 재무정보 유무 체크하는 로직 추가해야함.(문진표정보, 재무정보가 있어야 보고서 생성가능.)
//다래 재무정보 조회해야 함.
var sboFinacialIndexT = await sboFinancialIndexTService.GetSHUSER_SboFinancialIndexT(compMapping.ScCompInfo.RegistrationNo, ConfigurationManager.AppSettings["CorpCode"], ConfigurationManager.AppSettings["BizCode"], paramModel.BizWorkYear.ToString());
if (sboFinacialIndexT == null)
{
continue;
}
// A1A202 : 조직만족도
var quesResult2s = await quesResult2Service.GetQuesResult2sAsync(quesMaster.QuestionSn, "A1A202");
//총직원
var totalEmp = quesResult2s.SingleOrDefault(i => i.QuesCheckList.DetailCd == "A1A20201");
//이직직원
var moveEmp = quesResult2s.SingleOrDefault(i => i.QuesCheckList.DetailCd == "A1A20202");
if (quesMaster.QuestionSn == paramModel.QuestionSn)
{
if (totalEmp.D451 == "0")
{
viewModel.orgSatisfaction.Company = Math.Round(Convert.ToDouble((int.Parse(moveEmp.D) / int.Parse(totalEmp.D)) * 100), 1).ToString();
}
else if (totalEmp.D452 == "0")
{
viewModel.orgSatisfaction.Company = Math.Round(Convert.ToDouble((((int.Parse(moveEmp.D) / int.Parse(totalEmp.D)) + (int.Parse(moveEmp.D451) / int.Parse(totalEmp.D451))) / 2) * 100), 1).ToString();
}
else
{
viewModel.orgSatisfaction.Company = Math.Round(Convert.ToDouble((((int.Parse(moveEmp.D) / int.Parse(totalEmp.D)) + (int.Parse(moveEmp.D451) / int.Parse(totalEmp.D451)) + (int.Parse(moveEmp.D452) / int.Parse(totalEmp.D452))) / 3) * 100), 1).ToString();
}
}
//종합점수 조회하여 분류별로 딕셔너리 저장
var point = await reportUtil.GetCompanyTotalPoint(quesMaster.QuestionSn, sboFinacialIndexT);
if (point >= 0 && point <= 50)
{
dicStartUpTotal.Add(compMapping.CompSn, int.Parse(totalEmp.D));
dicStartUpMove.Add(compMapping.CompSn, int.Parse(moveEmp.D));
}
else if (point > 50 && point <= 75)
{
dicGrowthTotal.Add(compMapping.CompSn, int.Parse(totalEmp.D));
dicGrowthMove.Add(compMapping.CompSn, int.Parse(moveEmp.D));
}
else
{
dicIndependentTotal.Add(compMapping.CompSn, int.Parse(totalEmp.D));
dicIndependentMove.Add(compMapping.CompSn, int.Parse(moveEmp.D));
}
}
}
viewModel.orgSatisfaction.StartUpAvg = Math.Round(Convert.ToDouble(((dicStartUpMove.Values.Sum() + 28.0) / (dicStartUpTotal.Values.Sum() + 207)) * 100), 1).ToString();
viewModel.orgSatisfaction.GrowthAvg = Math.Round(Convert.ToDouble(((dicGrowthMove.Values.Sum() + 57.0) / (dicGrowthTotal.Values.Sum() + 443)) * 100), 1).ToString();
viewModel.orgSatisfaction.IndependentAvg = Math.Round(Convert.ToDouble(((dicIndependentMove.Values.Sum() + 12.0) / (dicIndependentTotal.Values.Sum() + 79)) * 100), 1).ToString();
viewModel.orgSatisfaction.BizInCompanyAvg = Math.Round(Convert.ToDouble(((dicStartUpMove.Values.Sum() + dicGrowthMove.Values.Sum() + dicIndependentMove.Values.Sum() + 0.0) / (dicStartUpTotal.Values.Sum() + dicGrowthTotal.Values.Sum() + dicIndependentTotal.Values.Sum())) * 100), 1).ToString();
viewModel.orgSatisfaction.TotalAvg = Math.Round(Convert.ToDouble(((dicStartUpMove.Values.Sum() + dicGrowthMove.Values.Sum() + dicIndependentMove.Values.Sum() + 97.0) / (dicStartUpTotal.Values.Sum() + dicGrowthTotal.Values.Sum() + dicIndependentTotal.Values.Sum() + 729)) * 100), 1).ToString();
//검토결과 데이터 생성
var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "28");
//.........这里部分代码省略.........
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:101,代码来源:BasicSurveyReportController.cs
示例14: RiskMgmtLiquidity
public async Task<ActionResult> RiskMgmtLiquidity(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
ReportUtil reportUtil = new ReportUtil(scBizWorkService, quesResult1Service, quesResult2Service, quesMasterService, sboFinancialIndexTService);
RiskMgmtLiquidityViewModel viewModel = new RiskMgmtLiquidityViewModel();
viewModel.Liquidity = new BarChartViewModel();
viewModel.Stability = new BarChartViewModel();
//1) 현재 사업에 참여한 업체 평균
var curBizWork = await scBizWorkService.GetBizWorkByBizWorkSn(paramModel.BizWorkSn);
//유동자산
Dictionary<string, decimal> dicCurrentAsset = new Dictionary<string, decimal>();
//유동부채
Dictionary<string, decimal> dicCurrentLiability = new Dictionary<string, decimal>();
//부채총계
Dictionary<string, decimal> dicTotalLiability = new Dictionary<string, decimal>();
//자본총계
Dictionary<string, decimal> dicTotalCapital = new Dictionary<string, decimal>();
{
var compMappings = curBizWork.ScCompMappings;
foreach (var compMapping in compMappings)
{
//문진표 작성내역 조회
var quesMaster = await quesMasterService.GetQuesOgranAnalysisAsync(compMapping.ScCompInfo.RegistrationNo, paramModel.BizWorkYear);
if (quesMaster == null)
{
continue;
}
//다래 재무정보 조회해야 함.
var sboFinacialIndexT = await sboFinancialIndexTService.GetSHUSER_SboFinancialIndexT(compMapping.ScCompInfo.RegistrationNo, ConfigurationManager.AppSettings["CorpCode"], ConfigurationManager.AppSettings["BizCode"], paramModel.BizWorkYear.ToString());
if (sboFinacialIndexT == null)
{
continue;
}
//해당기업을 찾아 점수를 별도로 저장한다.
if (quesMaster.QuestionSn == paramModel.QuestionSn)
{
viewModel.Liquidity.Dividend = Math.Truncate(Convert.ToDouble(sboFinacialIndexT.CurrentAsset.Value / 1000));
viewModel.Liquidity.Divisor = Math.Truncate(Convert.ToDouble(sboFinacialIndexT.CurrentLiability.Value / 1000));
viewModel.Liquidity.Result = (sboFinacialIndexT.CurrentLiability.Value == 0) ? 0 : Math.Round(Convert.ToDouble(sboFinacialIndexT.CurrentAsset.Value / sboFinacialIndexT.CurrentLiability.Value * 100), 1);
viewModel.Liquidity.Company = viewModel.Liquidity.Result;
viewModel.Liquidity.AvgSMCompany = 136.3;
viewModel.Stability.Dividend = Math.Truncate(Convert.ToDouble(sboFinacialIndexT.TotalLiability.Value / 1000));
viewModel.Stability.Divisor = Math.Truncate(Convert.ToDouble(sboFinacialIndexT.TotalCapital.Value / 1000));
viewModel.Stability.Result = (sboFinacialIndexT.TotalCapital.Value == 0) ? 0 : Math.Round(Convert.ToDouble(sboFinacialIndexT.TotalLiability.Value / sboFinacialIndexT.TotalCapital.Value * 100), 1);
viewModel.Stability.Company = viewModel.Stability.Result;
viewModel.Stability.AvgSMCompany = 141.7;
}
dicCurrentAsset.Add(compMapping.ScCompInfo.RegistrationNo, sboFinacialIndexT.CurrentSale.Value);
dicCurrentLiability.Add(compMapping.ScCompInfo.RegistrationNo, sboFinacialIndexT.OperatingEarning.Value);
dicTotalLiability.Add(compMapping.ScCompInfo.RegistrationNo, sboFinacialIndexT.PrevSale.Value);
dicTotalCapital.Add(compMapping.ScCompInfo.RegistrationNo, sboFinacialIndexT.PrevSale.Value);
}
}
//평균값 계산
viewModel.Liquidity.AvgBizInCompany = (dicCurrentLiability.Values.Sum() == 0) ? 0 : Math.Round(Convert.ToDouble(dicCurrentAsset.Values.Sum() / dicCurrentLiability.Values.Sum() * 100), 1);
viewModel.Liquidity.AvgTotal = Math.Round(Convert.ToDouble((dicCurrentAsset.Values.Sum() + 26161408957) / (dicCurrentLiability.Values.Sum() + 5869940384) * 100), 1);
viewModel.Stability.AvgBizInCompany = (dicTotalCapital.Values.Sum() == 0) ? 0 : Math.Round(Convert.ToDouble(dicTotalLiability.Values.Sum() / dicTotalCapital.Values.Sum() * 100), 1);
viewModel.Stability.AvgTotal = Math.Round(Convert.ToDouble((dicTotalLiability.Values.Sum() + 21887099526) / (dicTotalCapital.Values.Sum() + 24998683648) * 100), 1);
//검토결과 데이터 생성
var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "30");
//레포트 체크리스트
var enumRptCheckList = await rptCheckListService.GetRptCheckListBySmallClassCd("30");
//CommentList 채우기
var CommentList = ReportHelper.MakeCommentViewModel(enumRptCheckList, listRptMentorComment);
viewModel.CommentList = CommentList;
ViewBag.paramModel = paramModel;
return View(viewModel);
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:87,代码来源:BasicSurveyReportController.cs
示例15: ProductivityProfitability
public async Task<ActionResult> ProductivityProfitability(BasicSurveyReportViewModel paramModel)
{
ViewBag.LeftMenu = Global.Report;
ReportUtil reportUtil = new ReportUtil(scBizWorkService, quesResult1Service, quesResult2Service, quesMasterService, sboFinancialIndexTService);
ProductivityProfitabilityViewModel viewModel = new ProductivityProfitabilityViewModel();
viewModel.Profitability = new BarChartViewModel();
viewModel.Growth = new BarChartViewModel();
//1) 현재 사업에 참여한 업체 평균
var curBizWork = await scBizWorkService.GetBizWorkByBizWorkSn(paramModel.BizWorkSn);
//당기매출액
Dictionary<string, decimal> dicSales = new Dictionary<string, decimal>();
//영업이익
Dictionary<string, decimal> dicOperatingEarning = new Dictionary<string, decimal>();
//전기매출액
Dictionary<string, decimal> dicPrevSales = new Dictionary<string, decimal>();
{
var compMappings = curBizWork.ScCompMappings;
foreach (var compMapping in compMappings)
{
//문진표 작성내역 조회
var quesMaster = await quesMasterService.GetQuesOgranAnalysisAsync(compMapping.ScCompInfo.RegistrationNo, paramModel.BizWorkYear);
if (quesMaster == null)
{
continue;
}
//다래 재무정보 조회해야 함.
var sboFinacialIndexT = await sboFinancialIndexTService.GetSHUSER_SboFinancialIndexT(compMapping.ScCompInfo.RegistrationNo, ConfigurationManager.AppSettings["CorpCode"], ConfigurationManager.AppSettings["BizCode"], paramModel.BizWorkYear.ToString());
if (sboFinacialIndexT == null)
{
continue;
}
//해당기업을 찾아 점수를 별도로 저장한다.
if (quesMaster.QuestionSn == paramModel.QuestionSn)
{
viewModel.Profitability.Dividend = Math.Truncate(Convert.ToDouble(sboFinacialIndexT.OperatingEarning.Value / 1000));
viewModel.Profitability.Divisor = Math.Truncate(Convert.ToDouble(sboFinacialIndexT.CurrentSale.Value / 1000));
viewModel.Profitability.Result = (sboFinacialIndexT.CurrentSale.Value == 0) ? 0 : Math.Round(Convert.ToDouble(sboFinacialIndexT.OperatingEarning.Value / sboFinacialIndexT.CurrentSale.Value * 100), 1);
viewModel.Profitability.Company = viewModel.Profitability.Result;
viewModel.Profitability.AvgSMCompany = 5.2;
viewModel.Growth.Dividend = Math.Truncate(Convert.ToDouble((sboFinacialIndexT.CurrentSale.Value - sboFinacialIndexT.PrevSale.Value) / 1000));
viewModel.Growth.Divisor = Math.Truncate(Convert.ToDouble(sboFinacialIndexT.PrevSale.Value / 1000));
viewModel.Growth.Result = (sboFinacialIndexT.PrevSale.Value == 0) ? 0 : Math.Round(Convert.ToDouble((sboFinacialIndexT.CurrentSale.Value - sboFinacialIndexT.PrevSale.Value) / sboFinacialIndexT.PrevSale.Value * 100), 1);
viewModel.Growth.Company = viewModel.Growth.Result;
viewModel.Growth.AvgSMCompany = 4.9;
}
dicSales.Add(compMapping.ScCompInfo.RegistrationNo, sboFinacialIndexT.CurrentSale.Value);
dicOperatingEarning.Add(compMapping.ScCompInfo.RegistrationNo, sboFinacialIndexT.OperatingEarning.Value);
dicPrevSales.Add(compMapping.ScCompInfo.RegistrationNo, sboFinacialIndexT.PrevSale.Value);
}
}
//평균값 계산
viewModel.Profitability.AvgBizInCompany = (dicSales.Values.Sum() == 0) ? 0 : Math.Round(Convert.ToDouble(dicOperatingEarning.Values.Sum() / dicSales.Values.Sum() * 100), 1);
viewModel.Profitability.AvgTotal = Math.Round(Convert.ToDouble((dicOperatingEarning.Values.Sum() + 6748926334) / (dicSales.Values.Sum() + 111666772288) * 100), 1);
viewModel.Growth.AvgBizInCompany = (dicPrevSales.Values.Sum() == 0) ? 0 : Math.Round(Convert.ToDouble((dicSales.Values.Sum() - dicPrevSales.Values.Sum()) / dicPrevSales.Values.Sum() * 100), 1);
viewModel.Growth.AvgTotal = Math.Round(Convert.ToDouble(((dicSales.Values.Sum() - dicPrevSales.Values.Sum()) + 9517105574) / (dicPrevSales.Values.Sum() + 102192958532) * 100), 1);
//검토결과 데이터 생성
var listRptMentorComment = await rptMentorCommentService.GetRptMentorCommentListAsync(paramModel.QuestionSn, paramModel.BizWorkSn, paramModel.BizWorkYear, "19");
//레포트 체크리스트
var enumRptCheckList = await rptCheckListService.GetRptCheckListBySmallClassCd("19");
//CommentList 채우기
var CommentList = ReportHelper.MakeCommentViewModel(enumRptCheckList, listRptMentorComment);
viewModel.CommentList = CommentList;
ViewBag.paramModel = paramModel;
return View(viewModel);
}
开发者ID:songseulgi,项目名称:Boss_Project,代码行数:84,代码来源:BasicSurveyReportController.cs
-
六六分期app的软件客服如何联系?不知道吗?加qq群【895510560】即可!标题:六六分期
阅读:18209|2023-10-27
-
今天小编告诉大家如何处理win10系统火狐flash插件总是崩溃的问题,可能很多用户都不知
阅读:9656|2022-11-06
-
今天小编告诉大家如何对win10系统删除桌面回收站图标进行设置,可能很多用户都不知道
阅读:8168|2022-11-06
-
今天小编告诉大家如何对win10系统电脑设置节能降温的设置方法,想必大家都遇到过需要
阅读:8543|2022-11-06
-
我们在使用xp系统的过程中,经常需要对xp系统无线网络安装向导设置进行设置,可能很多
阅读:8449|2022-11-06
-
今天小编告诉大家如何处理win7系统玩cf老是与主机连接不稳定的问题,可能很多用户都不
阅读:9374|2022-11-06
-
电脑对日常生活的重要性小编就不多说了,可是一旦碰到win7系统设置cf烟雾头的问题,很
阅读:8418|2022-11-06
-
我们在日常使用电脑的时候,有的小伙伴们可能在打开应用的时候会遇见提示应用程序无法
阅读:7855|2022-11-06
-
今天小编告诉大家如何对win7系统打开vcf文件进行设置,可能很多用户都不知道怎么对win
阅读:8403|2022-11-06
-
今天小编告诉大家如何对win10系统s4开启USB调试模式进行设置,可能很多用户都不知道怎
阅读:7391|2022-11-06
|
请发表评论