public string GetDeptDirectPersMembers(string pRequest)
        {
            var rd     = new APIResponse <GetDeptDirectPersMembersRD>();
            var rdData = new GetDeptDirectPersMembersRD();

            List <PersonListItemInfo> list   = new List <PersonListItemInfo>();
            PersonListItemInfo        member = new PersonListItemInfo
            {
                UserID      = "7C62A039D6FD4CC58F0E054394A78C7F",
                UserName    = "******",
                UnitName    = "部门1",
                JobFuncName = ".net工程师",
                UserEmail   = "*****@*****.**"
            };

            list.Add(member);

            member = new PersonListItemInfo
            {
                UserID      = "7C62A039D6FD4CC58F0E054394A78C7G",
                UserName    = "******",
                UnitName    = "部门1",
                JobFuncName = "ios工程师",
                UserEmail   = "*****@*****.**"
            };
            list.Add(member);

            rdData.PersonMemberList = list;
            rd.Data       = rdData;
            rd.ResultCode = 0;
            return(rd.ToJSON());
        }
        public string GetDeptDirectMembers(string pRequest)
        {
            var rd     = new APIResponse <GetDeptDirectMembersRD>();
            var rdData = new GetDeptDirectMembersRD();

            List <PersonListItemInfo> list   = new List <PersonListItemInfo>();
            PersonListItemInfo        member = new PersonListItemInfo
            {
                UserID      = "7C62A039D6FD4CC58F0E054394A78C7F",
                UserName    = "******",
                UnitName    = "部门1",
                JobFuncName = ".net工程师",
                UserEmail   = "*****@*****.**"
            };

            list.Add(member);
            member = new PersonListItemInfo
            {
                UserID      = "7C62A039D6FD4CC58F0E054394A78C7G",
                UserName    = "******",
                UnitName    = "部门1",
                JobFuncName = "ios工程师",
                UserEmail   = "*****@*****.**"
            };
            list.Add(member);

            List <DepartmentTotalMember> list2 = new List <DepartmentTotalMember>();
            DepartmentTotalMember        mb    = new DepartmentTotalMember
            {
                UnitID = "B0A786BC-F343-4748-A726-F31A0B164686",
                DeptDirectPersMemberList = list
            };

            rdData.DeptDirectMemberList = list2;

            rd.Data       = rdData;
            rd.ResultCode = 0;
            return(rd.ToJSON());
        }
        public string GetDeptAllMembers(string pRequest)
        {
            var rd     = new APIResponse <GetDeptAllMembersRD>();
            var rdData = new GetDeptAllMembersRD();

            #region 根
            List <PersonListItemInfo> list   = new List <PersonListItemInfo>();
            PersonListItemInfo        member = new PersonListItemInfo
            {
                UserID      = "7C62A039D6FD4CC58F0E054394A78C7F",
                UserName    = "******",
                UnitName    = "部门1",
                JobFuncName = ".net工程师",
                UserEmail   = "*****@*****.**"
            };
            list.Add(member);

            member = new PersonListItemInfo
            {
                UserID      = "7C62A039D6FD4CC58F0E054394A78C7G",
                UserName    = "******",
                UnitName    = "部门1",
                JobFuncName = "ios工程师",
                UserEmail   = "*****@*****.**"
            };
            list.Add(member);

            #endregion

            #region 子级1
            List <PersonListItemInfo> listPersSub = new List <PersonListItemInfo>();
            PersonListItemInfo        memberSub   = new PersonListItemInfo
            {
                UserID      = "7C62A039D6FD4CC58F0E054394A78C7A",
                UserName    = "******",
                UnitName    = "部门1子部门",
                JobFuncName = "ios工程师",
                UserEmail   = "*****@*****.**"
            };
            listPersSub.Add(memberSub);

            List <DepartmentTotalMember> listDeptSub = new List <DepartmentTotalMember>();
            DepartmentTotalMember        deptSub     = new DepartmentTotalMember
            {
                UnitID = "A0B06B2D-3327-4C06-A8B0-FF17FD0B61E6",
                DeptDirectPersMemberList = listPersSub
            };
            listDeptSub.Add(deptSub);

            #endregion

            List <DepartmentTotalMember> list2 = new List <DepartmentTotalMember>();
            DepartmentTotalMember        mb    = new DepartmentTotalMember
            {
                UnitID = "B0A786BC-F343-4748-A726-F31A0B164686",
                DeptDirectPersMemberList = list,
                SubDepartmentList        = listDeptSub
            };
            rdData.Member = list2;
            rd.Data       = rdData;
            rd.ResultCode = 0;
            return(rd.ToJSON());
        }