コード例 #1
0
ファイル: NoShowController.cs プロジェクト: kylin589/EmePro
        //
        // GET: /Study/NoShow/
        //[Authorization(true)]
        public ActionResult Index()
        {
            var model = new SearchNoShowModel()
            {
                EndDate = DateTime.Now,
                BeginDate = DateTime.Now.Date.AddDays(-7).AddMilliseconds(-1)

            };
            return View(model);
        }
コード例 #2
0
ファイル: NoShowController.cs プロジェクト: kylin589/EmePro
        public ActionResult NoShowList(SearchNoShowModel search, [DefaultValue(1)]int pageIndex)
        {
            var saCCInfos = new List<SACCInfo>();
            var userInfos = new List<UserInfo>();
            Paging paging = new Paging
            {
                PageIndex = pageIndex,
                PageSize = 15
            };
            var model = StudyBLL.GetNoShow(search.BranchId, search.isCurrentBranch, search.ProductId
                , search.IsMyStudent, Eme.WebCommon.LoginUserManager.CurrLoginUser.UserId
                , search.SearchKey, search.SearchKeyword
                , search.BeginDate, search.EndDate, paging,
                out saCCInfos, out userInfos);
            ViewBag.SACCInfos = saCCInfos;
            ViewBag.UserInfos = userInfos;

            Session["SearchBookRecordModel"] = search;
            return PartialView("_List", model);
        }