public DepartmentController(IDepartmentBll departmentBll, IFlexDeskBll flexDeskBll, IFloorBll floorBll, IUserBll userBll)
 {
     this.departmentBll = departmentBll;
     this.flexDeskBll   = flexDeskBll;
     this.floorBll      = floorBll;
     this.userBll       = userBll;
 }
Example #2
0
 private void BindBll()
 {
     _IPosition   = BllInstance.PositionBllInstance;
     _IDepartment = BllInstance.DepartmentBllInstance;
     _IAccount    = BllInstance.AccountBllInstance;
     _IBulletin   = BllInstance.BulletinBllInstance;
 }
        private void SetStatisticsAuth()
        {
            List <Auth> authList = new List <Auth>();

            if (LoginUser.Id != Account.AdminPkid)
            {
                IDepartmentBll    iDepartmentBll = BllInstance.DepartmentBllInstance;
                List <Department> DepartmentList = iDepartmentBll.GetManageDepts(LoginUser.Id);
                Auth auth;
                auth             = new Auth(0, "考勤统计");
                auth.NavigateUrl = "../AttendancePages/MonthAttendance.aspx";
                authList.Add(auth);
                if (DepartmentList != null && DepartmentList.Count != 0)
                {
                    auth             = new Auth(0, "员工统计");
                    auth.NavigateUrl = "../EmployeeStatisticsPages/EmployeeStatistics.aspx";
                    authList.Add(auth);
                    auth             = new Auth(0, "薪资统计");
                    auth.NavigateUrl = "../PayModulePages/EmployeeSalaryStatistics.aspx";
                    authList.Add(auth);
                }
                auth             = new Auth(0, "查询员工");
                auth.NavigateUrl = "../EmployeePages/SearchEmployee.aspx";
                authList.Add(auth);
            }
            _ItsView.rptStatisticsDataSrc = authList;
        }
Example #4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public GetCompanyInvolve(IEmployee mockIEmployee, IAccountBll mockIAccountBll,
                          IDepartmentBll mockIDepartmentBll)
 {
     _dalEmployee    = mockIEmployee;
     _IAccountBll    = mockIAccountBll;
     _IDepartmentBll = mockIDepartmentBll;
 }
Example #5
0
 /// <summary>
 /// 为AddEmployeeProxy调用
 /// </summary>
 /// <param name="employee"></param>
 /// <param name="operatoraccount"></param>
 public AddEmployee(Employee employee, Account operatoraccount)
 {
     _IAccountBll     = BllInstance.AccountBllInstance;
     _IDepartmentBll  = BllInstance.DepartmentBllInstance;
     _Employee        = employee;
     _Operatoraccount = operatoraccount;
 }
Example #6
0
 /// <summary>
 /// 构造函数 为测试
 /// </summary>
 /// <param name="mockIDiyProcessDal"></param>
 /// <param name="mockIEmployeeDiyProcessDal"></param>
 /// <param name="mockIAccountBll"></param>
 /// <param name="mockIDepartmentBll"></param>
 public GetDiyProcess(IDiyProcessDal mockIDiyProcessDal, IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal,
                      IAccountBll mockIAccountBll, IDepartmentBll mockIDepartmentBll)
 {
     _DiyProcessDal         = mockIDiyProcessDal;
     _DiyEmployeeProcessDal = mockIEmployeeDiyProcessDal;
     _IAccountBll           = mockIAccountBll;
     _IDepartmentBll        = mockIDepartmentBll;
 }
Example #7
0
 /// <summary>
 /// 获取员工信息方法构造函数 测试
 /// </summary>
 public GetEmployee(IEmployee mockIEmployee, IAccountBll mockIAccountBll, IEmployeeSkill mockIEmployeeSkill,
                    IDepartmentBll mockIDepartmentBll, IEmployeeAdjustRule mockIEmployeeAdjustRule)
 {
     _dalEmployee           = mockIEmployee;
     _IAccountBll           = mockIAccountBll;
     _dalEmployeeSkill      = mockIEmployeeSkill;
     _IDepartmentBll        = mockIDepartmentBll;
     _EmployeeAdjustRuleDal = mockIEmployeeAdjustRule;
 }
Example #8
0
 /// <summary>
 /// 获得请假的方法
 /// </summary>
 /// <param name="mockLeaveRequest"></param>
 /// <param name="mockLeaveRequestFlow"></param>
 /// <param name="mockILeaveRequestType"></param>
 /// <param name="mockIAccountBll"></param>
 /// <param name="mockIDepartmentBll"></param>
 public GetLeaveRequest(ILeaveRequestDal mockLeaveRequest, ILeaveRequestFlowDal mockLeaveRequestFlow,
                        ILeaveRequestType mockILeaveRequestType, IAccountBll mockIAccountBll,
                        IDepartmentBll mockIDepartmentBll)
 {
     _DalLeaveRequest     = mockLeaveRequest;
     _DalLeaveRequestFlow = mockLeaveRequestFlow;
     _DalLeaveRequestType = mockILeaveRequestType;
     _IAccountBll         = mockIAccountBll;
     _IDepartmentBll      = mockIDepartmentBll;
 }
 public ReservationController(IAbsenceBll absenceBll, IReservationBll reservationBll, IUserBll userBll, IFloorBll floorBll, IBuildingBll buildingBll, IDepartmentBll departmentBll, IFlexDeskBll flexDeskBll)
 {
     this.absenceBll     = absenceBll;
     this.reservationBll = reservationBll;
     this.userBll        = userBll;
     this.buildingBll    = buildingBll;
     this.floorBll       = floorBll;
     this.departmentBll  = departmentBll;
     this.flexDeskBll    = flexDeskBll;
     this.rvm            = new ReservationViewModel();
 }
Example #10
0
        /// <summary>
        /// 为InitEmployeeProxy调用
        /// </summary>
        /// <param name="newEmployeeAccountID"></param>
        /// <param name="operatoraccount"></param>
        public AddEmployee(int newEmployeeAccountID, Account operatoraccount)
        {
            _IAccountBll     = BllInstance.AccountBllInstance;
            _IDepartmentBll  = BllInstance.DepartmentBllInstance;
            _Operatoraccount = operatoraccount;

            _Employee = new Employee(newEmployeeAccountID, EmployeeTypeEnum.All);
            #region default EmployeeDetails

            _Employee.EmployeeDetails = null;
            #endregion
        }
Example #11
0
 /// <summary>
 /// 获取员工合同信息构造函数
 /// </summary>
 public GetEmployeeContract(IEmployee mockIEmployee, IAccountBll mockIAccountBll, IContract mockIContract,
                            IContractBookMark mockIContractBookMark, IEmployeeContractBookMark mockIEmployeeContractBookMark,
                            IEmployeeSkill mockIEmployeeSkill, IDepartmentBll mockIDepartmentBll, IEmployeeAdjustRule mockIEmployeeAdjustRule)
 {
     _dalEmployee                 = mockIEmployee;
     _IAccountBll                 = mockIAccountBll;
     _dalContract                 = mockIContract;
     _dalContractBookMark         = mockIContractBookMark;
     _dalEmployeeContractBookMark = mockIEmployeeContractBookMark;
     _dalEmployeeSkill            = mockIEmployeeSkill;
     _IDepartmentBll              = mockIDepartmentBll;
     _EmployeeAdjustRuleDal       = mockIEmployeeAdjustRule;
 }
Example #12
0
        private void GetDeptAndChildrenDeptByAccountID(int accountid)
        {
            string result = String.Empty;


            IDepartmentBll    _IDepartmentBll = BllInstance.DepartmentBllInstance;
            List <Department> all             = _IDepartmentBll.GetDepartmentAndChildrenDeptByLeaderID(accountid);

            foreach (Department item in all)
            {
                result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
            }

            Response.Write(result);
            Response.End();
        }
Example #13
0
        private void GetAllDepartment()
        {
            string result = String.Empty;


            IDepartmentBll    _IDepartmentBll = BllInstance.DepartmentBllInstance;
            List <Department> all             = _IDepartmentBll.GetAllDepartmentOrderName();

            foreach (Department item in all)
            {
                result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
            }

            Response.Write(result);
            Response.End();
        }
Example #14
0
 /// <summary>
 /// AddEmployee的构造函数,专为测试提供
 /// </summary>
 public AddEmployee(Employee employee, Account operatoraccount, IEmployee mockDalEmployee,
                    IAccountBll mockDalAccounts,
                    IEmployeeHistory mochEmployeeHistory, IEmployeeSkill mockEmployeeSkill,
                    IDepartmentBll mockDepartments, IEmployeeWelfare mockEmployeeWelfare,
                    IEmployeeWelfareHistory mockEmployeeWelfareHistory)
 {
     _Employee                  = employee;
     _Operatoraccount           = operatoraccount;
     _DalEmployee               = mockDalEmployee;
     _DalEmployeeHistory        = mochEmployeeHistory;
     _IAccountBll               = mockDalAccounts;
     _DalEmployeeSkill          = mockEmployeeSkill;
     _IDepartmentBll            = mockDepartments;
     _DalEmployeeWelfare        = mockEmployeeWelfare;
     _DalEmployeeWelfareHistory = mockEmployeeWelfareHistory;
 }
Example #15
0
        /// <summary>
        /// 为employee填充account的信息,其中包括account中的dept
        /// </summary>
        /// <param name="accountID"></param>
        /// <param name="employee"></param>
        /// <param name="_IAccountBll"></param>
        /// <returns></returns>
        /// <param name="_IDepartmentBll"></param>
        public static Employee SetEmployeeAccountInfo(int accountID, Employee employee, IAccountBll _IAccountBll,
                                                      IDepartmentBll _IDepartmentBll)
        {
            PositionGrade grade = null;

            if (employee.Account != null && employee.Account.Position != null &&
                employee.Account.Position.Grade != null)
            {
                grade = employee.Account.Position.Grade;
            }
            employee.Account = _IAccountBll.GetAccountById(accountID);
            if (grade != null)
            {
                employee.Account.Position.Grade = grade;
            }
            employee.Account.Dept = _IDepartmentBll.GetDepartmentById(employee.Account.Dept.Id, null);

            return(employee);
        }
Example #16
0
        ///<summary>
        ///</summary>
        ///<param name="accountID"></param>
        ///<param name="employee"></param>
        ///<param name="_IAccountBll"></param>
        ///<param name="_IDepartmentBll"></param>
        ///<param name="_IPositionBll"></param>
        ///<returns></returns>
        public static Employee SetEmployeeAccountInfo(int accountID, Employee employee, IAccountBll _IAccountBll,
                                                      IDepartmentBll _IDepartmentBll, IPositionBll _IPositionBll)
        {
            int gradeID = -1;

            if (employee.Account.Position != null && employee.Account.Position.Grade != null)
            {
                gradeID = employee.Account.Position.Grade.Id;
            }

            employee.Account = _IAccountBll.GetAccountById(accountID);
            if (employee.Account.Position != null)
            {
                employee.Account.Position = _IPositionBll.GetPositionById(employee.Account.Position.Id, null);

                employee.Account.Position.Grade =
                    _IPositionBll.GetPositionGradeById(gradeID, null);
            }
            employee.Account.Dept = _IDepartmentBll.GetDepartmentById(employee.Account.Dept.Id, null);

            return(employee);
        }
 public DepartmentController(IDepartmentBll departmentBll)
 {
     this.departmentBll = departmentBll;
 }
Example #18
0
 /// <summary>
 /// </summary>
 public GetEmployee(IEmployee mockIEmployee, IAccountBll mockIAccountBll, IEmployeeSkill mockIEmployeeSkill,
                    IDepartmentBll mockIDepartmentBll, IEmployeeAdjustRule mockIEmployeeAdjustRule, IPositionBll mockIPositionBll)
     : this(mockIEmployee, mockIAccountBll, mockIEmployeeSkill, mockIDepartmentBll, mockIEmployeeAdjustRule)
 {
     _IPositionBll = mockIPositionBll;
 }
Example #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var account = Session[SessionKeys.LOGININFO] as Account;

            AllAuth        = new List <AuthEntity>();
            AllAccountAuth = new List <AccountAuthEntity>();
            AllAuth.Add(new AuthEntity()
            {
                AuthName = "自助服务", AuthParentId = 0, IfHasDepartment = 0, NavigateUrl = "", PKID = 80
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "请假管理",
                AuthParentId = 80,
                NavigateUrl  = "../LeaveRequestPages/MyLeaveRequest.aspx",
                PKID         = 81
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName        = "外出管理",
                AuthParentId    = 80,
                IfHasDepartment = 0,
                NavigateUrl     = "../OutApplicationPages/OutApplicationList.aspx",
                PKID            = 82
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "加班管理",
                AuthParentId = 80,
                NavigateUrl  = "../OverWorkPages/OverWorkList.aspx",
                PKID         = 83
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "报销管理",
                AuthParentId = 80,
                NavigateUrl  = "../ReimbursePages/MyReimburse.aspx",
                PKID         = 84
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName        = "申请绩效考核",
                AuthParentId    = 80,
                IfHasDepartment = 0,
                NavigateUrl     = "../AssessPages/ManagerApplyEmployeeAssess.aspx",
                PKID            = 85
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "填写绩效考核",
                AuthParentId = 80,
                NavigateUrl  = "../AssessPages/GetCurrentAssess.aspx",
                PKID         = 86
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "绩效考核历史",
                AuthParentId = 80,
                NavigateUrl  = "../AssessPages/GetAssessActivityHistory.aspx",
                PKID         = 87
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "解密工资单",
                AuthParentId = 80,
                NavigateUrl  = "../PayModulePages/DECEmployeeSalary.aspx",
                PKID         = 88
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "我的培训反馈",
                AuthParentId = 80,
                NavigateUrl  = "../TrainingPages/MyFeedBack.aspx",
                PKID         = 89
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "我的培训申请",
                AuthParentId = 80,
                NavigateUrl  = "../TrianApplicationPages/MyTrainApplication.aspx",
                PKID         = 89
            });

            AllAuth.Add(new AuthEntity()
            {
                AuthName        = "统计管理",
                AuthParentId    = 0,
                IfHasDepartment = 0,
                NavigateUrl     = "",
                PKID            = 8801
            });
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "考勤统计",
                AuthParentId = 8801,
                NavigateUrl  = "../AttendancePages/MonthAttendance.aspx",
                PKID         = 8802
            });
            IDepartmentBll    iDepartmentBll = BllInstance.DepartmentBllInstance;
            List <Department> DepartmentList = iDepartmentBll.GetManageDepts(account.Id);

            if (DepartmentList != null && DepartmentList.Count != 0)
            {
                AllAuth.Add(new AuthEntity()
                {
                    AuthName     = "员工统计",
                    AuthParentId = 8801,
                    NavigateUrl  = "../EmployeeStatisticsPages/EmployeeStatistics.aspx",
                    PKID         = 8803
                });
                AllAuth.Add(new AuthEntity()
                {
                    AuthName     = "薪资统计",
                    AuthParentId = 8801,
                    NavigateUrl  = "../PayModulePages/EmployeeSalaryStatistics.aspx",
                    PKID         = 8804
                });
            }
            AllAuth.Add(new AuthEntity()
            {
                AuthName     = "查询员工",
                AuthParentId = 8801,
                NavigateUrl  = "../EmployeePages/SearchEmployee.aspx",
                PKID         = 8805
            });
            foreach (var authEntity in AllAuth)
            {
                AllAccountAuth.Add(new AccountAuthEntity {
                    AccountId = account.Id, AuthId = authEntity.PKID
                });
            }
            AllAuth.AddRange(AuthLogic.GetAllAuth());
            AllAccountAuth.AddRange(AccountAuthLogic.GetAccountAuthByAccountId(account.Id));
        }
Example #20
0
        /// <summary>
        /// 绑定
        /// </summary>
        /// <returns></returns>
        public string ToBind()
        {
            string result = String.Empty;

            if (ContractFieldPara.ContractType.Id.ToString() == _FieldParaBaseId)
            {
                List <ContractType> all = new GetContractType().GetContractTypeByCondition(-1, "");
                foreach (ContractType item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.ContractTypeName : "\n" + item.ContractTypeName;
                }
            }
            if (ContractFieldPara.PositionGrade.Id.ToString() == _FieldParaBaseId)
            {
                List <PositionGrade> all = BllInstance.PositionBllInstance.GetAllPositionGrade();
                foreach (PositionGrade item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (ContractFieldPara.EmployeeType.Id.ToString() == _FieldParaBaseId)
            {
                Dictionary <string, string> AllEmployeeType = EmployeeTypeUtility.GetAllEmployeeTypeEnum();
                foreach (KeyValuePair <string, string> item in AllEmployeeType)
                {
                    result += string.IsNullOrEmpty(result) ? item.Value : "\n" + item.Value;
                }
            }
            if (ContractFieldPara.Position.Id.ToString() == _FieldParaBaseId)
            {
                IPositionBll    _IPositionBll = BllInstance.PositionBllInstance;
                List <Position> all           = _IPositionBll.GetAllPosition();
                foreach (Position item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (ContractFieldPara.Department.Id.ToString() == _FieldParaBaseId)
            {
                IDepartmentBll    _IDepartmentBll = BllInstance.DepartmentBllInstance;
                List <Department> all             = _IDepartmentBll.GetAllDepartment();
                all = Tools.RemoteUnAuthDeparetment(all, AuthType.HRMIS, _OperatorAccount, HrmisPowers.A402);
                foreach (Department item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (ContractFieldPara.Company.Id.ToString() == _FieldParaBaseId)
            {
                GetCompanyInvolve _GetCompanyInvolve = new GetCompanyInvolve();
                List <Department> all = _GetCompanyInvolve.GetAllCompanyHaveEmployee();
                foreach (Department item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (ContractFieldPara.WorkType.Id.ToString() == _FieldParaBaseId)
            {
                List <WorkType> all = WorkType.GetAll();
                foreach (WorkType item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            return(result);
        }
Example #21
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="operatorAccount"></param>
 /// <param name="mockDepartmentBll"></param>
 /// <param name="mockDalDepartmentHistory"></param>
 public AddDepartmentHistory(Account operatorAccount, IDepartmentBll mockDepartmentBll, IDepartmentHistory mockDalDepartmentHistory)
 {
     _DalDepartmentHistory = mockDalDepartmentHistory;
     _IDepartmentBll       = mockDepartmentBll;
     _OperatorAccount      = operatorAccount;
 }
Example #22
0
        /// <summary>
        /// 绑定
        /// </summary>
        /// <returns></returns>
        public string ToBind()
        {
            string result = String.Empty;

            if (EmployeeFieldPara.Skill.Id.ToString() == _FieldParaBaseId)
            {
                List <Skill> all = new GetSkill().GetSkillByCondition("", -1);
                foreach (Skill item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.SkillName : "\n" + item.SkillName;
                }
            }
            if (EmployeeFieldPara.PositionGrade.Id.ToString() == _FieldParaBaseId)
            {
                List <PositionGrade> all = BllInstance.PositionBllInstance.GetAllPositionGrade();
                foreach (PositionGrade item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.EmployeeType.Id.ToString() == _FieldParaBaseId)
            {
                Dictionary <string, string> AllEmployeeType = EmployeeTypeUtility.GetAllEmployeeTypeEnum();
                foreach (KeyValuePair <string, string> item in AllEmployeeType)
                {
                    result += string.IsNullOrEmpty(result) ? item.Value : "\n" + item.Value;
                }
            }
            if (EmployeeFieldPara.Position.Id.ToString() == _FieldParaBaseId)
            {
                IPositionBll    _IPositionBll = BllInstance.PositionBllInstance;
                List <Position> all           = _IPositionBll.GetAllPosition();
                foreach (Position item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.Grades.Id.ToString() == _FieldParaBaseId)
            {
                var all = GradesType.GetAll();
                foreach (var item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.Department.Id.ToString() == _FieldParaBaseId)
            {
                IDepartmentBll    _IDepartmentBll = BllInstance.DepartmentBllInstance;
                List <Department> all             = _IDepartmentBll.GetAllDepartment();
                all = Tools.RemoteUnAuthDeparetment(all, AuthType.HRMIS, _OperatorAccount, HrmisPowers.A401);
                foreach (Department item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.Company.Id.ToString() == _FieldParaBaseId)
            {
                GetCompanyInvolve _GetCompanyInvolve = new GetCompanyInvolve();
                List <Department> all = _GetCompanyInvolve.GetAllCompanyHaveEmployee();
                foreach (Department item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.Gender.Id.ToString() == _FieldParaBaseId)
            {
                List <Gender> all = Gender.AllGenders;
                foreach (Gender item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.DimissionReasonType.Id.ToString() == _FieldParaBaseId)
            {
                List <DimissionReasonType> all = DimissionReasonType.GetAll();
                foreach (DimissionReasonType item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.DiyProcessApplicationTypeOut.Id.ToString() == _FieldParaBaseId)
            {
                GetDiyProcess     _GetDiyProcess = new GetDiyProcess();
                List <DiyProcess> all            =
                    _GetDiyProcess.GetDiyProcessByProcessType(ProcessType.ApplicationTypeOut.Id);
                foreach (DiyProcess item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.DiyProcessApplicationTypeOverTime.Id.ToString() == _FieldParaBaseId)
            {
                GetDiyProcess     _GetDiyProcess = new GetDiyProcess();
                List <DiyProcess> all            =
                    _GetDiyProcess.GetDiyProcessByProcessType(ProcessType.ApplicationTypeOverTime.Id);
                foreach (DiyProcess item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.DiyProcessAssess.Id.ToString() == _FieldParaBaseId)
            {
                GetDiyProcess     _GetDiyProcess = new GetDiyProcess();
                List <DiyProcess> all            =
                    _GetDiyProcess.GetDiyProcessByProcessType(ProcessType.Assess.Id);
                foreach (DiyProcess item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.DiyProcessHRPrincipal.Id.ToString() == _FieldParaBaseId)
            {
                GetDiyProcess     _GetDiyProcess = new GetDiyProcess();
                List <DiyProcess> all            =
                    _GetDiyProcess.GetDiyProcessByProcessType(ProcessType.HRPrincipal.Id);
                foreach (DiyProcess item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.DiyProcessLeaveRequest.Id.ToString() == _FieldParaBaseId)
            {
                GetDiyProcess     _GetDiyProcess = new GetDiyProcess();
                List <DiyProcess> all            =
                    _GetDiyProcess.GetDiyProcessByProcessType(ProcessType.LeaveRequest.Id);
                foreach (DiyProcess item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.DiyProcessTraineeApplication.Id.ToString() == _FieldParaBaseId)
            {
                GetDiyProcess     _GetDiyProcess = new GetDiyProcess();
                List <DiyProcess> all            =
                    _GetDiyProcess.GetDiyProcessByProcessType(ProcessType.TraineeApplication.Id);
                foreach (DiyProcess item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.EducationalBackground.Id.ToString() == _FieldParaBaseId)
            {
                List <EducationalBackground> all = EducationalBackground.AllEducationalBackgrounds;
                foreach (EducationalBackground item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.MaritalStatus.Id.ToString() == _FieldParaBaseId)
            {
                List <MaritalStatus> all = MaritalStatus.GetAllMaritalStatus();
                foreach (MaritalStatus item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.PoliticalAffiliation.Id.ToString() == _FieldParaBaseId)
            {
                List <PoliticalAffiliation> all = PoliticalAffiliation.AllPoliticalAffiliations;
                foreach (PoliticalAffiliation item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.WorkType.Id.ToString() == _FieldParaBaseId)
            {
                List <WorkType> all = WorkType.GetAll();
                foreach (WorkType item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            if (EmployeeFieldPara.CountryNationality.Id.ToString() == _FieldParaBaseId)
            {
                GetNationality     _GetNationality = new GetNationality();
                List <Nationality> all             = _GetNationality.GetNationalityByCondition(-1, "");
                foreach (Nationality item in all)
                {
                    result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
                }
            }
            return(result);
        }