public EmployeeTypeController(IEmployeeTypeRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.EmployeeTypeRepository = repository;
        }
        public EmployeeTypeController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.EmployeeTypeRepository = new MixERP.Net.Core.Modules.HRM.Data.EmployeeType
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Beispiel #3
0
 /// <summary>
 /// Method whose purpose is to set
 /// _employeeTypeRepository variable.
 /// </summary>
 /// <param name="employeeTypeRepository">
 /// Existing IEmployeeTypeRepository object.
 /// </param>
 public EmployeeTypeLogic(IEmployeeTypeRepository employeeTypeRepository)
 {
     _employeeTypeRepository = employeeTypeRepository;
 }
Beispiel #4
0
 public EmployeeTypeManager(IEmployeeTypeRepository repository) : base(repository)
 {
     this._employeeTypeRepository = repository;
 }
Beispiel #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="employeeRepository"></param>
 /// <param name="employeeTypeRepository"></param>
 public EmployeeController(IEmployeeRepository employeeRepository, IEmployeeTypeRepository employeeTypeRepository)
 {
     this.employeeRepository     = employeeRepository;
     this.employeeTypeRepository = employeeTypeRepository;
 }
 public EmployeeService(IEmployeeRepository employeeRepository, IEmployeeTypeRepository employeeTypeRepository, IUnitOfWork unitOfWork)
 {
     this.employeeRepository     = employeeRepository;
     this.unitOfWork             = unitOfWork;
     this.employeeTypeRepository = employeeTypeRepository;
 }
Beispiel #7
0
 public CustomerKeysService(ICustomerKeysRepository customerKeysRepository, IEmployeeTypeRepository employeeTypeRepository, IUnitOfWork unitOfWork)
 {
     this.customerKeysRepository = customerKeysRepository;
     this.unitOfWork             = unitOfWork;
     this.employeeTypeRepository = employeeTypeRepository;
 }
 /// <summary>
 /// this is the default constructor for the Skill service
 /// </summary>
 /// <param name="skillRepository">skillRepository interface object for dependency injection</param>
 public EmployeeTypeService(IEmployeeTypeRepository employeeTypeRepository, IMapper mapper)
 {
     _employeeTypeRepository = employeeTypeRepository;
     _mapper = mapper;
 }