public async Task<ActionResult> FinanceCheck02(FinanceCheckViewModel fcvm)
        {
            ViewBag.Left = Global.Report;
            int QuestionSn = fcvm.QuestionSn;
            string compSn = Session[Global.CompSN].ToString(); // 기업식별자
            int basicYear = fcvm.BasicYear;                    // 입력된 년도

            if (QuestionSn > 0)
            {
                if (fcvm.SubmitType == "N")
                {
                    fcvm.SaveStatus = 0;
                }

                // ScCompanyFinance 테이블에 값을 저장하는 부분
                // 당기
                fcvm.Current.CompSn = int.Parse(compSn);
                fcvm.Current.FnYear = basicYear;
                var scfCur = Mapper.Map<ScCompanyFinance>(fcvm.Current);
                // 전기
                fcvm.Previous.CompSn = int.Parse(compSn);
                fcvm.Previous.FnYear = basicYear - 1;
                var scfPre = Mapper.Map<ScCompanyFinance>(fcvm.Previous);

                var saveFinanceCur = await _scCompanyFinanceService.AddScCompanyFinanceAsync(scfCur);
                var saveFinancePre = await _scCompanyFinanceService.AddScCompanyFinanceAsync(scfPre);
                // ScCompanyFinance 테이블에 값 넣기 완료

                // FinancialIndexT에 값 넣기 필요
                ScFinancialIndexT sit = new ScFinancialIndexT(); // 객체에 값 할당 필요
                sit.CompSn = int.Parse(compSn);         // 기업일련번호
                sit.Year = basicYear + "";                // 기준년도
                sit.ReserchAmt = (scfCur.FpARndcost - scfPre.FpARndcost) + (scfCur.CiOrdevexp + scfCur.CiResearch) + scfCur.McRndexp;   // 연구개발투자비
                sit.CurrentSale = scfCur.CiSales;       // 당기매출액
                sit.PrevSale = scfPre.CiSales;          // 전기매출액
                sit.CurrentEarning = scfCur.CiProfit;   // 당기순이익
                sit.PrevEarning = scfPre.CiProfit;      // 전기순이익
                sit.OperatingEarning = scfCur.CiOpincome; // 영업이익
                sit.TotalCapital = scfCur.FpCSum;         // 자본총계
                sit.CurrentAsset = scfCur.FpACa;          // 유동자산
                sit.InventoryAsset = scfCur.FpAIntent;    // 재고자산
                sit.CurrentLiability = scfCur.FpLCurrent; // 유동부채
                sit.TotalLiability = scfCur.FpLSum;       // 부채총계
                sit.TotalAsset = scfCur.FpASum;           // 자산총계
                sit.NonOperEar = scfCur.CiOthergains;     // 영업외손익
                sit.InterstCost = scfCur.CiIntexpanses;   // 이자비용
                sit.SalesCredit = scfCur.FpATraderecv;    // 매출채권
                sit.ValueAdded = scfCur.CiPlt + scfCur.CiWages + (scfCur.CiIntincome - scfCur.CiIntexpanses) + scfCur.CiRental + scfCur.CiTax + scfCur.CiDepexp;    // 부가가치
                sit.MaterialCost = scfCur.McRaw + scfCur.McPart;    // 재료비 

                // 종업원수 구해오기 추가 필요





                var saveFinancialIndexT = await _scFinancialIndexTService.AddScFinancialIndexTAsync(sit);
            }

            else
            {
                return View(fcvm);
            }

            return RedirectToAction("OrgCheck01", "Report", new { area = "Company" });
        }
        public ActionResult FinanceCheck02(string questionSn, string status)
        {
            ViewBag.LeftMenu = Global.Report;

            var viewModel = new FinanceCheckViewModel();
            viewModel.QuestionSn = int.Parse(questionSn);
            viewModel.Status = status;
            return View(viewModel);
        }