Beispiel #1
0
        //[CheckUserAccess("GradeSelection/GradeSelection")]
        public ActionResult GradeSelection()
        {
            var         usrList = _dalUser.GetAllUser();
            List <User> lst     = new List <User>();

            foreach (var item in usrList)
            {
                User ob = new User();
                ob.UserID   = item.UserID;
                ob.UserCode = item.Title + " " + item.FirstName + " " + item.MiddleName + " " + item.LastName;
                lst.Add(ob);
            }

            ViewBag.GradeList = _dalSysGrade.GetAll();
            ViewBag.UnitList  = new DalSysUnit().GetAllActiveUnit().Select(cl => new SelectListItem {
                Text = cl.UnitName, Value = Convert.ToString(cl.UnitID)
            }).ToList();
            ViewBag.CheckedBy  = new SelectList(lst, "UserID", "UserCode");
            ViewBag.ApprovedBy = new SelectList(lst, "UserID", "UserCode");
            ViewBag.formTiltle = "Grade Selection Form";
            return(View());
        }
Beispiel #2
0
        public JsonResult GetGradeList()
        {
            var AllData = _dalGrade.GetAll().OrderByDescending(s => s.GradeID);

            return(Json(AllData, JsonRequestBehavior.AllowGet));
        }