Esempio n. 1
0
        /// <summary>
        /// 项目进度管理
        /// </summary>
        /// <returns></returns>
        public ActionResult WorkSchedule()
        {
            this.pageSize = GetPageSize(15); //每页数量
            this.page = DTRequest.GetQueryInt("page", 1);
            ViewBag.txtKeywords = this.keywords;
            List<Work_Schedule> list = new Work_ScheduleLogic().GetScheduleList(this.pageSize, this.page, out this.totalCount);

            //绑定页码
            ViewBag.txtPageNum = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("../DailyWork/WorkSchedule", "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);
        }
Esempio n. 2
0
 /// <summary>
 /// 编辑项目进度条目
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult EditSchedule(int id)
 {
     Work_Schedule wn = new Work_ScheduleLogic().GetScheduleModel(id);
     if (wn == null)
     {
         wn = new Work_Schedule();
     }
     return View(wn);
 }