Пример #1
0
        public PayCodeBatchRunner(ISessionStorage store, ISystemService system, ICompanyStructureService main, IPayrollService payrollService) : base(system, main)
        {
            this.SessionStore = store;
            SessionHelper h = new SessionHelper(store, new APIKeyBasedTokenGenerator());



            BatchStatus = new BatchOperationStatus()
            {
                classId = ClassId.PYPC, processed = 0, tableSize = 0, status = 0
            };
            _payrollService = payrollService;
            payCodes        = new Dictionary <string, string>();
        }
Пример #2
0
        public DepartmentBatchRunner(ISessionStorage store, ISystemService system, ICompanyStructureService main, IEmployeeService employeeService) : base(system, main)
        {
            this.SessionStore = store;
            SessionHelper h = new SessionHelper(store, new APIKeyBasedTokenGenerator());



            BatchStatus = new BatchOperationStatus()
            {
                classId = ClassId.CSDE, processed = 0, tableSize = 0, status = 0
            };
            _employeeService = employeeService;
            departmentsIds   = new Dictionary <string, string>();
            empIds           = new Dictionary <string, string>();
        }
 public ConsoleApplication(ICompanyStructureService companyStructureService, IEmployeeService employeeService)
 {
     _companyStructureService = companyStructureService;
     _employeeService         = employeeService;
 }