Пример #1
0
        /// <summary>
        /// 为合同新增界面创建List<EmployeeContractBookMark>
        /// </summary>
        public List <EmployeeContractBookMark> GetEmployeeContractBookMarkByContractTypeID(int ContractTypeId, int employeeID)
        {
            List <ContractBookMark> contractBookMark = _dalContractBookMark.GetContractBookMarkByContractTypeID(ContractTypeId);
            Employee employee =
                new GetEmployee(_dalEmployee, _IAccountBll, _dalEmployeeSkill, _IDepartmentBll, _EmployeeAdjustRuleDal).
                GetEmployeeByAccountID(employeeID);

            if (contractBookMark != null && contractBookMark.Count > 0)
            {
                List <EmployeeContractBookMark> employeeContractBookMark = new List <EmployeeContractBookMark>();
                foreach (ContractBookMark mark in contractBookMark)
                {
                    employeeContractBookMark.Add(new EmployeeContractBookMark(0, 0, mark.BookMarkName, EmployeeContractBookMark.InitBookMarkValue(mark.BookMarkName, employee)));
                }
                return(employeeContractBookMark);
            }
            else
            {
                return(null);
            }
        }
Пример #2
0
 public List <ContractBookMark> GetContractBookMarkByContractTypeID(int contractTypeID)
 {
     return(_dalContractBookMark.GetContractBookMarkByContractTypeID(contractTypeID));
 }