public ActionResult ChequeReceipts(string errMsg) { if (Session["UserID"] != null) { ViewBag.BranchCode = new SelectList(_branchService.All().ToList(), "BranchCode", "BranchName"); ViewBag.Accode = LoadDropDown.LoadMRAgainstDDL(); ViewBag.SubCode = new SelectList(_subsidiaryService.All().Where(x => x.SubType == "1").ToList(), "SubCode", "SubName");//LoadDropDown.LoadSubsidiaryByPurpuse("", _subsidiaryService, _subsidiaryCtrlService); ViewBag.BankCode = new SelectList(_bankInfoService.All().ToList(), "BankCode", "BankName"); ViewBag.DepositBank = LoadDropDown.LoadDepositBankDDL(); ViewBag.UpdateBy = new SelectList(_employeeInfoService.All().ToList(), "Id", "UserName"); 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(); var VchrConv = _vchrSetService.All().ToList().FirstOrDefault().VchrConv; Session["VchrConv"] = VchrConv; ViewBag.errMsg = errMsg; return(View()); } else { return(RedirectToAction("SecUserLogin", "SecUserLogin")); } }
// 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")); } }