Example #1
0
 /// <summary>
 ///获取有 任意状态 任务的全部成员列表    
 /// </summary>
 /// <returns></returns>
 public List<User> GetUsersContainsTasks()
 {
     TaskService ts = new TaskService();
     Dictionary<User, int> dictionary = ts.FindUserIDsAndTaskCountWithTaskProcessStatus(null, t => t != null);
     List<User> list = new List<User>();
     foreach (var i in dictionary.Keys)
     {
         list.Add(i);
     }
     return list;
 }
Example #2
0
 /// <summary>
 ///获取有 待确认 任务的全部成员列表     
 /// </summary>
 /// <returns></returns>
 public List<User> GetUsersContainsTasksUnconfirmed()
 {
     TaskService ts = new TaskService();
     EnumTaskProcessStatus status = EnumTaskProcessStatus.None;
     Dictionary<User, int> dictionary = ts.FindUserIDsAndTaskCountWithTaskProcessStatus(status, t => t != null);//找出所有有待确认任务的Dictionary
     List<User> list = new List<User>();
     foreach (var i in dictionary.Keys)
     {
         list.Add(i);
     }
     return list;//遍历全部键值对,取出全部成员内容,组成列表,返回
 }
Example #3
0
        public static void TestNotConfirmed()
        {
            TaskService service = new TaskService();
            Dictionary<User,int> dit=service.FindUserIDsAndTaskCountWithTaskProcessStatus(
                EnumTaskProcessStatus.None,t=>t.TaskerID);
            ProjectService service1 = new ProjectService();
            List<Project> lists=service1.FindByTaskProcessStatus(EnumTaskProcessStatus.None);

            TaskService service2 = new TaskService();
            List<Task> tasks = service2.FindByUserGroup(3);

            //TaskService service3 = new TaskService();
            //service3.Repository.Drop(
            
        }
Example #4
0
 /// <summary>
 ///获取所有有待审核任务的审核人及其各自待审核数量的列表 
 /// </summary>
 /// <returns></returns>
 public Dictionary<User, int> GetCheckerWithCount()
 {
     TaskService ts = new TaskService();
     Dictionary<User, int> dictionary = ts.FindUserIDsAndTaskCountWithTaskProcessStatus(EnumTaskProcessStatus.Confirmed, t => t.CheckerID);
     return dictionary;
 }
Example #5
0
 /// <summary>
 ///获取所有有待审核任务的人员ID号,及每个人员的任务数量 
 /// </summary>
 /// <param name="status"></param>
 ///<returns>字典类型,String人员名称,int是该人员待确认的任务数量</returns>
 public Dictionary<User, int> FindUserIDsAndTaskCount_WithTaskUnchecked()
 {
     TaskService ts = new TaskService();
     Dictionary<User, int> result = ts.FindUserIDsAndTaskCountWithTaskProcessStatus(EnumTaskProcessStatus.Confirmed, t => t != null);
     return result;
 }
Example #6
0
 /// <summary>
 ///获取所有有待确认任务的人员ID号,及每个人员的任务数量 
 /// </summary>
 /// <param name="status"></param>
 ///<returns>字典类型,String人员名称,int是该人员待确认的任务数量</returns>
 public Dictionary<User, int> FindUserIDsAndTaskCount_WithTaskUnconfirmed()
 {
     TaskService ts = new TaskService();
     Dictionary<User, int> result = ts.FindUserIDsAndTaskCountWithTaskProcessStatus(EnumTaskProcessStatus.None, t => t != null);
     //ZHAOs 2014年4月22日20:01:57 查出所有有待确认任务的人员ID号 及各自数量,不知道对不对,问Leilei
     return result;
 }