예제 #1
0
 public ActionResult Search(string errMsg)
 {
     if (Session["UserID"] != null)
     {
         ViewBag.LedgerTypeCode = new SelectList(_SumRptTypeService.All().ToList(), "ReportTypeCode", "ReportTypeName");
         ViewBag.BranchCode     = PermittedBranch();//new SelectList(_BranchService.All().ToList(), "BranchCode", "BranchName");
         ViewBag.BookType       = LoadDropDown.LoadBookType();
         var Fydd = _FYDDService.All().FirstOrDefault(s => s.FinYear == Session["FinYear"].ToString());
         ViewBag.FyddFDate = Fydd.FYDF;
         ViewBag.FyddTDate = Fydd.FYDT;
         ViewBag.Message   = errMsg;
         return(View());
     }
     else
     {
         return(RedirectToAction("SecUserLogin", "SecUserLogin"));
     }
 }