コード例 #1
0
        public async Task <IActionResult> ChooseLoan()
        {
            ViewData["CurrencyId"] = new SelectList(await _ICurrencyService.GetAll(), "Id", "Name");
            var model = await _ILoanTypeService.GetLoanTypes();

            return(View(model));
        }
コード例 #2
0
        public IActionResult loadLoanDisc()
        {
            var loan = loanRegisterService.getListofLoanRegisterByBatchDrp().Result;

            ViewBag.batch = loan.OrderBy(x => x.LoanTypeID);
            var con = new ContrDiscUpload
            {
                Batchno          = context.pf_loandisc.FirstOrDefault().batchno,
                processingperiod = HttpContext.Session.GetInt32("processingYear") + "" + HttpContext.Session.GetInt32("processingMonth"),
                getloan          = loantypeService.GetLoanTypes().ToList()
            };

            return(View(con));
        }
コード例 #3
0
        public async Task <IActionResult> printLoanPerRank(string loancode)
        {
            var fg = fundService.GetLoanTypes();

            ViewBag.contributionList = new SelectList(fg, "Code", "Description", loancode);

            if (string.IsNullOrEmpty(loancode))
            {
                return(View());
            }

            var result = services.GetAll(loancode);

            return(await generatePdf.GetPdf("Views/LoanPerRank/LoanPerRankReport.cshtml", result));
        }
コード例 #4
0
        public async Task <IActionResult> printloan()
        {
            var listloan = loantypeService.GetLoanTypes();

            return(await generatePdf.GetPdf("Views/LoanType/LoanReport.cshtml", listloan));
        }
コード例 #5
0
 public IEnumerable <Pf_loanType> Get()
 {
     return(loantypeService.GetLoanTypes());
 }
コード例 #6
0
 public ActionResult <List <LoanType> > GetLoanTypes()
 {
     return(_loanTypeService.GetLoanTypes());
 }
コード例 #7
0
 public async Task <IActionResult> Index()
 {
     return(View(await _loanTypeService.GetLoanTypes()));
 }