コード例 #1
0
        public ActionResult CheckInList(int BranchId, string UserName)
        {
            //ViewBag.HrefAssignment = "popupStudentCheckIn";
            ViewBag.Title = "Check In List";
            BranchModel b = BranchModel.GetBranchById(BranchId);
            CounslerModel counsler = Utils.Utils.GetCounslerFromRequest(UserName);

            var studentLightList = StudentLight.BuildStudentLight(b.StudentsList);
            StudentLightModelToView studentModelToView = new StudentLightModelToView(studentLightList, counsler);
            return View(studentModelToView);
        }
コード例 #2
0
        public ActionResult LunchList(int BranchId, string UserName)
        {
            ViewBag.Message = "LunchList.";
            BranchModel b = BranchModel.GetBranchById(BranchId);
            CounslerModel counsler = Utils.Utils.GetCounslerFromRequest(UserName);

            var studentLightList = StudentLight.BuildStudentLight(b.StudentsList);
            StudentLightModelToView studentModelToView = new StudentLightModelToView(studentLightList, counsler);
            return View(studentModelToView);
            return View("CheckInList", studentModelToView);
        }
コード例 #3
0
        public ActionResult PickUpList(int BranchId, string UserName)
        {
            ViewBag.Title = "Pick Up Student List";
            //ViewBag.Message = "PickUpList.";
            //ViewBag.RedirectMethodName = "StudentsInfoList";
            //ViewBag.DataRel = "";

            BranchModel b = BranchModel.GetBranchById(BranchId);
            CounslerModel counsler = Utils.Utils.GetCounslerFromRequest(UserName);

            var studentLightList = StudentLight.BuildStudentLight(b.StudentsList);
            StudentLightModelToView studentModelToView = new StudentLightModelToView(studentLightList, counsler);
            return View(studentModelToView);
        }
コード例 #4
0
        public ActionResult StudentsInfo(int BranchId, string UserName)
        {
            ViewBag.Title = "Students Info";

            BranchModel b = BranchModel.GetBranchById(BranchId);
            CounslerModel counsler = Utils.Utils.GetCounslerFromRequest(UserName);

            var studentLightList = StudentLight.BuildStudentLight(b.StudentsList);
            StudentLightModelToView studentModelToView = new StudentLightModelToView(studentLightList, counsler);
            return View(studentModelToView);
        }