/// <summary> /// 周报管理 /// </summary> /// <returns></returns> public ActionResult WeekReport() { this.pageSize = GetPageSize(15); //每页数量 this.page = DTRequest.GetQueryInt("page", 1); ViewBag.txtKeywords = this.keywords; List<Work_Note> list = new Work_NoteLogic().GetDailyList(KSOAEnum.NoteType.W, 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); }
/// <summary> /// 编辑日报(根据ID读取对象) /// </summary> /// <returns></returns> public ActionResult EditDaily(int id) { Work_Note wn = new Work_NoteLogic().GetWork_NoteModel(id); if (wn == null) { wn = new Work_Note(); } else { //标记为已阅 new Work_NoteLogic().UpdateMark(id); } return View(wn); }