Example #1
0
        /// <summary>
        /// 传入项目ID(一个或全部) 、 任务审核者ID(一个或全部)得到待审核任务列表 
        /// </summary>
        /// <param name="proijId">可传入0,0表示忽略此条件</param>
        /// <param name="checkerId">可传入null,null表示忽略此条件</param>
        /// <param name="status">任务处理状态</param>
        /// <returns></returns>
        public ActionResult GetTasksUncheckedByProjAndChecker(int proijId, string checkerId)
        {
            RRWMEntities er = new RRWMEntities();
            TaskService ts = new TaskService(er);
            EnumTaskProcessStatus status = EnumTaskProcessStatus.Confirmed;
            List<Task> list = ts.FindByProjectIDCheckerIDTaskProcessStatus(proijId, checkerId, status);
            List<ComplexTask> comList = ConvertToComplexTaskList(list);
            for (int i = 0; i < comList.Count; i++)
            {
                comList[i].TaskStatus = list[i].TaskStatus;
                if (list[i].ConfirmedFinishTime == null)
                {
                    comList[i].ConfirmedFinishTime = null;
                }
                else
                {
                    comList[i].ConfirmedFinishTime = list[i].ConfirmedFinishTime.ToString();
                }

            }
            return Json(comList);
        }