Example #1
0
        /// <summary>
        /// 公告管理
        /// </summary>
        /// <returns></returns>
        public ActionResult NoticeReport()
        {
            this.pageSize = GetPageSize(15); //每页数量
            this.page = DTRequest.GetQueryInt("page", 1);
            ViewBag.txtKeywords = this.keywords;
            List<Work_Notice> list = new Work_NoticeLogic().GetNoticeList(this.pageSize, this.page, out this.totalCount);

            //绑定页码
            ViewBag.txtPageNum = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("../admin/DailyReport", "group_id={0}&keywords={1}&page={2}", this.group_id.ToString(), this.keywords, "__id__");
            ViewBag.PageContent = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
            return View(list);
        }
Example #2
0
 /// <summary>
 /// 编辑公告
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult EditNotice(int id)
 {
     Work_Notice wn = new Work_NoticeLogic().GetNoticeModel(id);
     if (wn == null)
     {
         wn = new Work_Notice();
     }
     return View(wn);
 }