Beispiel #1
0
 // GET: CustAdjustment
 public ActionResult CustAdjustment()
 {
     if (Session["UserID"] != null)
     {
         DateTime datetime = DateTime.Now;
         ViewBag.GLProvition = Counter("JB");
         ViewBag.GLEntries   = CountEntries("JB", datetime);
         var sysSet = _sysSetService.All().ToList().FirstOrDefault();
         ViewBag.MaintJob  = sysSet.MaintJob;
         ViewBag.CustCode  = new SelectList(_subsidiaryInfoService.All().ToList().Where(x => x.SubType == "1").OrderBy(x => x.SubName), "SubCode", "SubName");
         ViewBag.InvNo     = LoadDropDown.LoadEmpDlList();
         ViewBag.AdjReason = LoadDropDown.LoadAdjReason();
         ViewBag.ApprBy    = new SelectList(_EmployeeService.All().ToList(), "Id", "UserName");
         ViewBag.JobNo     = LoadDropDown.LoadJobInfo();
         var VchrConv = _vchrSetService.All().ToList().FirstOrDefault().VchrConv;
         Session["VchrConv"] = VchrConv;
         ViewBag.AdjNo       = LoadDropDown.GenerateAdjustmentNo(_custAdjustmentService, "", Session["BranchCode"].ToString(), "", Session["VchrConv"].ToString());
         return(View());
     }
     else
     {
         return(RedirectToAction("SecUserLogin", "SecUserLogin"));
     }
 }
Beispiel #2
0
 public ActionResult GenerateAdjustmentNo()
 {
     return(Json(LoadDropDown.GenerateAdjustmentNo(_custAdjustmentService, "", Session["BranchCode"].ToString(), "", Session["VchrConv"].ToString()), JsonRequestBehavior.AllowGet));
 }