Ejemplo n.º 1
0
        public List <EmployeeRelation> InsertDeligationToStore(EmployeeRelation entity)
        {
            DoValidateRelationWithContract(entity);
            Employee employee = _employeeDao.GetEmployeeByID(entity.EmployeeID, DateTime.Today);
            EmployeeRelationManager manager = new EmployeeRelationManager(employee, RelationDao, _employeeDao, ServerEnvironment.EmployeeContractService);

            manager.InsertDeligationToStore(entity);
            manager.Commit();

            return(GetEmployeeRelations(entity.EmployeeID));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 获取Employee列表(包含父对象)
 /// </summary>
 /// <param name="id">自增型ID</param>
 /// <returns>Employee</returns>
 public Employee GetEmployeeByID(int id)
 {
     return(_employeeDao.GetEmployeeByID(id));
 }