Ejemplo n.º 1
0
        public ActionResult Vat6P9P1_1Rpt(string errMsg)
        {
            if (Session["UserID"] != null)
            {
                AcclineERPContext dbContext = new AcclineERPContext();
                var Fydd = _FYDDService.All().FirstOrDefault(s => s.FinYear == Session["FinYear"].ToString());
                ViewBag.BranchCode      = new SelectList(_BranchService.All().ToList(), "BranchCode", "BranchName");
                ViewBag.ProjCode        = new SelectList(_ProjInfoService.All().ToList(), "ProjCode", "ProjName");
                ViewBag.DesignationCode = new SelectList(dbContext.Designation, "DesigCode", "DesigDesc");

                //ViewBag.DesignationCode = LoadDropDown.LoadAllDesignation(_designationService);
                //ViewBag.des = new SelectList(_designationService.All().ToList(), "DesigCode", "DesigDesc");
                ViewBag.ApprBy = LoadAppBy(_employeeInfoService);

                ViewBag.FyddFDate = Fydd.FYDF;
                ViewBag.FyddTDate = Fydd.FYDT;
                ViewBag.FinYear   = LoadDropDown.LoadAllFinYears(_FYDDService);
                ViewBag.Message   = errMsg;
                return(View());
            }
            else
            {
                return(RedirectToAction("SecUserLogin", "SecUserLogin"));
            }
        }
Ejemplo n.º 2
0
        public ActionResult SecUserLogin()
        {
            //ViewBag.FYDD = new SelectList(_FYDDService.All().ToList().OrderBy(x => x.FinYear).ToList(), "FinYear", "FinYear");

            ViewBag.FinYear = LoadDropDown.LoadAllFinYears(_FYDDService);

            return(View("~/Views/Security/Login.cshtml"));
        }
Ejemplo n.º 3
0
 public ActionResult Vat6P3Rpt(string errMsg)
 {
     if (Session["UserID"] != null)
     {
         //var Fydd = _FYDDService.All().FirstOrDefault(s => s.FinYear == Session["FinYear"].ToString());
         //ViewBag.FyddFDate = Fydd.FYDF;
         //ViewBag.FyddTDate = Fydd.FYDT;
         ViewBag.FinYear = LoadDropDown.LoadAllFinYears(_FYDDService);
         ViewBag.Message = errMsg;
         return(View());
     }
     else
     {
         return(RedirectToAction("SecUserLogin", "SecUserLogin"));
     }
 }
Ejemplo n.º 4
0
 public ActionResult Vat9P1_SF_Ka_2_Rpt(string errMsg)
 {
     if (Session["UserID"] != null)
     {
         var Fydd = _FYDDService.All().FirstOrDefault(s => s.FinYear == Session["FinYear"].ToString());
         ViewBag.FyddFDate  = Fydd.FYDF;
         ViewBag.FyddTDate  = Fydd.FYDT;
         ViewBag.Message    = errMsg;
         ViewBag.FinYear    = LoadDropDown.LoadAllFinYears(_FYDDService);
         ViewBag.BranchCode = new SelectList(_BranchService.All().ToList(), "BranchCode", "BranchName");
         ViewBag.projCode   = new SelectList(_ProjInfoService.All().ToList(), "ProjCode", "ProjName");
         return(View());
     }
     else
     {
         return(RedirectToAction("SecUserLogin", "SecUserLogin"));
     }
 }