Beispiel #1
0
 public ActionResult Create(string errMsg)
 {
     if (Session["UserID"] != null)
     {
         ViewBag.SubCode     = GenerateSubsidiaryCode();
         ViewBag.Items       = GetSubInfo();
         ViewBag.SubType     = new SelectList(_subsidiaryTypeAppService.All().ToList(), "TypeCode", "SubType");
         ViewBag.CountryCode = LoadDropDown.LoadCountryDDL();
         ViewBag.SubGrp      = LoadDropDown.LoadSubGrpDDL();
         ViewBag.errMsg      = errMsg;
         return(View());
     }
     else
     {
         return(RedirectToAction("SecUserLogin", "SecUserLogin"));
     }
 }
 public ActionResult RateChart(string errMsg)
 {
     if (Session["UserID"] != null)
     {
         ViewBag.CustGroup = LoadDropDown.LoadSubGrpDDL();
         ViewBag.CustCode  = LoadDropDown.LoadSubsidiary(_ISubsidiaryInfoService);
         ViewBag.ItemCode  = LoadDropDown.LoadItem(_IItemInfoAppService);
         ViewBag.CustType  = new SelectList(ISubsidiaryTypeService.All().ToList(), "TypeCode", "SubType");
         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"));
     }
 }