Esempio n. 1
0
 public ActionResult Search(string errMsg)
 {
     if (Session["UserID"] != null)
     {
         ViewBag.LedgerTypeCode = new SelectList(_LedgerTypeService.All().ToList(), "LedgerTypeCode", "LedgerTypeName");
         ViewBag.BranchCode     = new SelectList(_BranchService.All().ToList(), "BranchCode", "BranchName"); //GardenSelection();
         ViewBag.AccountCode    = LoadDropDown.LoadAccount("", _ItemService, _SubsidiaryService, _NewChartService);
         var Fydd = _FYDDService.All().FirstOrDefault(s => s.FinYear == Session["FinYear"].ToString());
         ViewBag.FyddFDate = Fydd.FYDF;
         ViewBag.FyddTDate = Fydd.FYDT;
         //var sysSet = _sysSetService.All().ToList().FirstOrDefault();
         ViewBag.Message = errMsg;
         return(View());
     }
     else
     {
         return(RedirectToAction("SecUserLogin", "SecUserLogin"));
     }
 }
Esempio n. 2
0
 public ActionResult GetAccountByLedgType(string ledgTypeCode)
 {
     return(Json(LoadDropDown.LoadAccount(ledgTypeCode, _ItemService, _SubsidiaryService, _NewChartService), JsonRequestBehavior.AllowGet));
 }