Example #1
0
    //待审核任务
 
  /// <summary>
  /// 传入项目ID(一个或全部) 、 任务承担者ID(一个或全部)得到待审核任务列表 
  /// </summary>
  /// <param name="proijId">可传入0,0表示忽略此条件</param>
  /// <param name="userId">可传入null,null表示忽略此条件</param>
  /// <param name="status">任务处理状态</param>
  /// <returns></returns>
  public ActionResult GetTasksUncheckedByByProjAndUser(int proijId, string userId)
  {
      RRWMEntities er = new RRWMEntities();
      TaskService ts = new TaskService(er);        
      EnumTaskProcessStatus status = EnumTaskProcessStatus.Confirmed;
      List<Task> list = ts.FindByProjectIDUserIDTaskProcessStatus(proijId, userId, status);
      List<ComplexTask> comList = ConvertToComplexTaskList(list);
      return Json(comList);
  }