Ejemplo n.º 1
0
        public EmployeeRelationManager(Employee employee, IEmployeeRelationDao employeeRelationDao, IEmployeeDao employeeDao, IEmployeeContractService contractservice)
        {
            if (employeeRelationDao == null)
            {
                throw new ArgumentNullException("employeeRelationDao");
            }
            _employeeRelationsDao = employeeRelationDao;
            if (employeeDao == null)
            {
                throw new ArgumentNullException("employeeDao");
            }
            _employeeDao = employeeDao;
            if (employee == null)
            {
                throw new ArgumentNullException("employee");
            }

            _contractservice = contractservice;
            if (_contractservice == null)
            {
                throw new ArgumentNullException("EmployeeContractService");
            }

            _employee = employee;
            //
            LoadRelations();
        }
 public EmployeeContractController(IEmployeeContractService employeeContractService, ICompanyDetailService companyDetailService, IUnitOfWork unitOfWork)
 {
     _employeeContractService = employeeContractService;
     _companyDetailService    = companyDetailService;
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 3
0
 public ListEmployeeContracts(IEmployeeContractService contractservice)
 {
     _contractservice = contractservice;
 }
Ejemplo n.º 4
0
 public ListEmployeeContracts(IEmployeeContractService contractservice, long emplid)
 {
     _contractservice = contractservice;
     LoadContracts(emplid);
 }
Ejemplo n.º 5
0
 public void LoadContracts(IEmployeeContractService service)
 {
     BuildDiction(service.LoadAllSorted());
 }