Example #1
0
        /// <summary>
        /// 获取下级人员的所有缺陷
        /// </summary>
        /// <param name="employeeId">员工编号</param>
        /// <param name="PageSize">页面大小</param>
        /// <param name="PageIndex">分页码</param>
        /// <param name="recordCount">查询总数</param>
        /// <returns></returns>
        public List <TB_Project_Bug> GetChildUserBug(int employeeId, int pageSize, int pageIndex, ref int recordCount)
        {
            Employee_Employees_BLL duty = new Employee_Employees_BLL();
            string employeeIds          = duty.GetAllChildEmployeeIds(employeeId);

            List <Expression> expression = new List <Expression>();

            expression.Add(new Expression("EmployeeID", "in", employeeIds));

            return(Search(pageSize, pageIndex, expression, "ID desc,AddDate desc", ref recordCount));
        }
Example #2
0
        /// <summary>
        /// 获取下级人员的所有任务
        /// </summary>
        /// <param name="employeeId">员工编号</param>
        /// <param name="PageSize">页面大小</param>
        /// <param name="PageIndex">分页码</param>
        /// <param name="recordCount">查询总数</param>
        /// <returns></returns>
        public List <TB_Project_Task> GetChildUserTask(int employeeId, int pageSize, int pageIndex, ref int recordCount)
        {
            Employee_Employees_BLL duty = new Employee_Employees_BLL();
            string employeeIds          = duty.GetAllChildEmployeeIds(employeeId);

            //任务可以审批自己的
            employeeIds = employeeIds == "" ? employeeId.ToStr() : (employeeIds + "," + employeeId);

            List <Expression> expression = new List <Expression>();

            expression.Add(new Expression("EmployeeID", "in", employeeIds));

            return(Search(pageSize, pageIndex, expression, "ID desc,AddDate desc", ref recordCount));
        }
Example #3
0
        /// <summary>
        /// 获取下级人员的所有办公用品申请
        /// </summary>
        /// <param name="employeeId">员工编号</param>
        /// <param name="childID">搜索员工编号</param>
        /// <param name="PageSize">页面大小</param>
        /// <param name="PageIndex">分页码</param>
        /// <param name="recordCount">查询总数</param>
        /// <returns></returns>
        public List <TB_Employee_OfficeSupplies> GetChildOfficeSupplies(int employeeId, int childID, int pageSize, int pageIndex, ref int recordCount)
        {
            Employee_Employees_BLL duty = new Employee_Employees_BLL();
            string employeeIds          = duty.GetAllChildEmployeeIds(employeeId);

            List <Expression> expression = new List <Expression>();

            expression.Add(new Expression("EmployeeID", "in", employeeIds));

            if (childID > 0)
            {
                expression.Add(new Expression("EmployeeID", "=", childID));
            }

            return(Search(pageSize, pageIndex, expression, "ID desc,AddDate desc", ref recordCount));
        }