// GET: OnlineMoneyReceipt public ActionResult OnlineMoneyReceipt() { if (Session["UserID"] != null) { ViewBag.BranchCode = new SelectList(_branchService.All().ToList(), "BranchCode", "BranchName"); ViewBag.MRAgainst = LoadDropDown.LoadMRAgainstDDL(); ViewBag.CustCode = new SelectList(_subsidiaryInfoService.All().Where(x => x.SubType == "1").ToList(), "SubCode", "SubName"); ViewBag.bankCode = new SelectList(_bankInfoService.All().ToList(), "BankCode", "BankName"); ViewBag.DepositBank = LoadDropDown.LoadDepositBankDDL(); ViewBag.CollectedBy = new SelectList(_employeeInfoService.All().ToList(), "Id", "UserName"); var CashAc = _defACService.All().ToList().FirstOrDefault().CashAc; ViewBag.Accode = LoadDropDown.LoadGLAc(CashAc, _newChartService); DateTime datetime = DateTime.Now; ViewBag.GLProvition = Counter("BR"); ViewBag.GLEntries = CountEntries("BR", datetime); var sysSet = _sysSetService.All().ToList().FirstOrDefault(); ViewBag.MaintJob = sysSet.MaintJob; ViewBag.JobNo = LoadDropDown.LoadJobInfo(); ViewBag.GetwayId = LoadDropDown.LoadGetwayProvider(); var VchrConv = _vchrSetService.All().ToList().FirstOrDefault().VchrConv; Session["VchrConv"] = VchrConv; return(View()); } else { return(RedirectToAction("SecUserLogin", "SecUserLogin")); } }