示例#1
0
        public ActionResult Approve(int pageIndex = 1, int pageSize = 20)
        {
            DM_NGUOIDUNGBusiness  = Get <DM_NGUOIDUNGBusiness>();
            ChiaSeTaiLieuBusiness = Get <ChiaSeTaiLieuBusiness>();
            ChiaSeTaiLieuViewModel model = new ChiaSeTaiLieuViewModel();
            var listUser = DM_NGUOIDUNGBusiness.GetByRole(ConfigurationManager.AppSettings["RoleShare"], user.ID);

            model.ListUserRequest = listUser;
            model.ListUserShare   = listUser;
            model.PageList        = ChiaSeTaiLieuBusiness.GetPage(null, pageIndex, pageSize);
            model.ListStatus      = new List <SelectListItem>()
            {
                new SelectListItem {
                    Text = "Chờ phê duyệt yêu cầu", Value = SHARE_STATUS_CONSTANT.YEU_CAU_CHIA_SE.ToString()
                },
                new SelectListItem {
                    Text = "Chờ chia sẻ", Value = SHARE_STATUS_CONSTANT.PHE_DUYET_CHIA_SE.ToString()
                },
                new SelectListItem {
                    Text = "Đã chia sẻ", Value = SHARE_STATUS_CONSTANT.DA_CHIA_SE.ToString()
                },
            };
            SessionManager.Remove("ShareApproveSearchModel");
            return(View(model));
        }
示例#2
0
        public PartialViewResult FormApprove(int?id = 0)
        {
            ChiaSeTaiLieuBusiness = Get <ChiaSeTaiLieuBusiness>();
            DM_NGUOIDUNGBusiness  = Get <DM_NGUOIDUNGBusiness>();
            var model = new ShareApproveFormModel();

            model.Share = new ChiaSeTaiLieuBO();
            model.Share = ChiaSeTaiLieuBusiness.GetBO(id);
            model.Share.DATE_PHE_DUYET = DateTime.Now;
            model.ListUser             = DM_NGUOIDUNGBusiness.GetByRole(ConfigurationManager.AppSettings["RoleShare"], user.ID);
            return(PartialView("_FormApprove", model));
        }