public ProfileReportsController(IAccountTypeService accountTypeService, IReportsCompanyProfileService reportsCompanyProfileService, IReportsCandidateProfileService reportsCandidateProfileService, ICompanyInfoService companyInfoService)
 {
     this.accountTypeService             = accountTypeService;
     this.reportsCompanyProfileService   = reportsCompanyProfileService;
     this.reportsCandidateProfileService = reportsCandidateProfileService;
     this.companyInfoService             = companyInfoService;
 }
 public CompanyProfileController(ICompanyProfileService companyProfileService, UserManager <ApplicationUser> userManager, ICompanyInfoService companyInfoService, IAccountTypeService accountTypeService)
 {
     this.companyProfileService = companyProfileService;
     this.userManager           = userManager;
     this.companyInfoService    = companyInfoService;
     this.accountTypeService    = accountTypeService;
 }
Exemplo n.º 3
0
 public FPTemplateController()
 {
     _companyInfoService = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator());
     _employeeService    = new EmployeeService(new EmployeeRepository(), new EmployeeValidator());
     _fpUserService      = new FPUserService(new FPUserRepository(), new FPUserValidator());
     _fpTemplateService  = new FPTemplateService(new FPTemplateRepository(), new FPTemplateValidator());
     _fpAttLogService    = new FPAttLogService(new FPAttLogRepository(), new FPAttLogValidator());
 }
Exemplo n.º 4
0
 public CategoryController(ICategoriesService categoriesService, IAccountTypeService accountTypeService, UserManager <ApplicationUser> userManager, IUserInfoService userInfoService, ICompanyInfoService companyInfoService, IJobPostingsService jobPostingsService)
 {
     this.categoriesService  = categoriesService;
     this.accountTypeService = accountTypeService;
     this.userManager        = userManager;
     this.userInfoService    = userInfoService;
     this.companyInfoService = companyInfoService;
     this.jobPostingsService = jobPostingsService;
 }
Exemplo n.º 5
0
 public ReportController()
 {
     _companyInfoService        = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator());
     _slipGajiDetailService     = new SlipGajiDetailService(new SlipGajiDetailRepository(), new SlipGajiDetailValidator());
     _slipGajiDetail1Service    = new SlipGajiDetail1Service(new SlipGajiDetail1Repository(), new SlipGajiDetail1Validator());
     _slipGajiDetail2AService   = new SlipGajiDetail2AService(new SlipGajiDetail2ARepository(), new SlipGajiDetail2AValidator());
     _slipGajiMiniService       = new SlipGajiMiniService(new SlipGajiMiniRepository(), new SlipGajiMiniValidator());
     _employeeAttendanceService = new EmployeeAttendanceService(new EmployeeAttendanceRepository(), new EmployeeAttendanceValidator());
 }
Exemplo n.º 6
0
        public BranchOffice VHasCompany(BranchOffice branchOffice, ICompanyInfoService _companyInfoService)
        {
            CompanyInfo companyInfo = _companyInfoService.GetObjectById(branchOffice.CompanyInfoId.GetValueOrDefault());

            if (companyInfo == null)
            {
                //  branchOffice.Errors.Add("Generic", "Company Tidak valid");
            }
            return(branchOffice);
        }
Exemplo n.º 7
0
        public FPMachine VHasCompany(FPMachine fpMachine, ICompanyInfoService _companyInfoService)
        {
            CompanyInfo companyInfo = _companyInfoService.GetObjectById(fpMachine.CompanyInfoId);

            if (companyInfo == null)
            {
                fpMachine.Errors.Add("Generic", "Company Tidak valid");
            }
            return(fpMachine);
        }
Exemplo n.º 8
0
 public CompanyInfo VHasUniqueName(CompanyInfo companyInfo, ICompanyInfoService _companyInfoService)
 {
     if (String.IsNullOrEmpty(companyInfo.Name) || companyInfo.Name.Trim() == "")
     {
         companyInfo.Errors.Add("Name", "Tidak boleh kosong");
     }
     else if (_companyInfoService.IsNameDuplicated(companyInfo))
     {
         companyInfo.Errors.Add("Name", "Tidak boleh ada duplikasi");
     }
     return(companyInfo);
 }
Exemplo n.º 9
0
 public JobPostingsController(IJobPostingsService jobPostingService, UserManager <ApplicationUser> userManager, IAccountTypeService accountTypeService, ICategoriesService categoriesService, ICompanyInfoService companyInfoService, ICitiesService citiesService, ICandidatesService candidatesService, IUserInfoService userInfoService, IReportsJobPostingService reportsJobPostingService)
 {
     this.jobPostingService        = jobPostingService;
     this.userManager              = userManager;
     this.accountTypeService       = accountTypeService;
     this.categoriesService        = categoriesService;
     this.companyInfoService       = companyInfoService;
     this.citiesService            = citiesService;
     this.candidatesService        = candidatesService;
     this.userInfoService          = userInfoService;
     this.reportsJobPostingService = reportsJobPostingService;
 }
Exemplo n.º 10
0
 public FPMachine CreateObject(FPMachine fpMachine, ICompanyInfoService _companyInfoService)
 {
     fpMachine.Errors = new Dictionary <String, String>();
     if (_validator.ValidCreateObject(fpMachine, this, _companyInfoService))
     {
         //fpMachine.fpDevice = new FPDevice.ZKEvents();
         _repository.CreateObject(fpMachine);
         if (GetObjectById(fpMachine.Id) != null)
         {
             AddMachine(fpMachine.Id); //FPMachines.fpDevices.Add(fpMachine.Id, new FPDevice.ZKEvents());
         }
     }
     return(fpMachine);
 }
Exemplo n.º 11
0
 public DashboardController(ISettingsService settingsService, IReportsJobPostingService reportsJobPostingService, IReportsCompanyProfileService reportsCompanyProfileService, ICompanyProfileService companyProfileService, IReportsCandidateProfileService reportsCandidateProfileService, ICompanyInfoService companyInfoService, IJobPostingsService jobPostingsService, IUserInfoService userInfoService, ICandidatesService candidatesService, IAccountTypeService accountTypeService, ICandidateProfileService candidateProfileService, ICandidateFavoriteJobPostingsService favoriteJobPostingsService)
 {
     this.settingsService                = settingsService;
     this.reportsJobPostingService       = reportsJobPostingService;
     this.reportsCompanyProfileService   = reportsCompanyProfileService;
     this.companyProfileService          = companyProfileService;
     this.reportsCandidateProfileService = reportsCandidateProfileService;
     this.companyInfoService             = companyInfoService;
     this.jobPostingsService             = jobPostingsService;
     this.userInfoService                = userInfoService;
     this.candidatesService              = candidatesService;
     this.accountTypeService             = accountTypeService;
     this.candidateProfileService        = candidateProfileService;
     this.favoriteJobPostingsService     = favoriteJobPostingsService;
 }
Exemplo n.º 12
0
 public FPMachine UpdateObject(FPMachine fpMachine, ICompanyInfoService _companyInfoService)
 {
     if (_validator.ValidUpdateObject(fpMachine, this, _companyInfoService))
     {
         //if (fpMachine.fpDevice == null) fpMachine.fpDevice = new FPDevice.ZKEvents();
         //if (fpMachine.fpDevice.bIsConnected) fpMachine.fpDevice.Disconnect();
         if (FPMachines.fpDevices[fpMachine.Id] == null)
         {
             AddMachine(fpMachine.Id);                                            //FPMachines.fpDevices.Add(fpMachine.Id, new FPDevice.ZKEvents());
         }
         fpMachine.IsConnected = FPMachines.fpDevices[fpMachine.Id].bIsConnected; // fpMachine.fpDevice.bIsConnected;
         _repository.UpdateObject(fpMachine);
     }
     return(fpMachine);
 }
Exemplo n.º 13
0
        public BranchOffice FindOrCreateObject(BranchOffice branchOffice, ICompanyInfoService _companyInfoService)
        {
            branchOffice.Errors = new Dictionary <String, String>();
            BranchOffice obj = GetObjectByCode(branchOffice.Code);

            if (obj != null)
            {
                obj.Errors = new Dictionary <String, String>();
                return(obj);
            }
            if (_validator.ValidCreateObject(branchOffice, this, _companyInfoService))
            {
                _repository.CreateObject(branchOffice);
            }
            return(branchOffice);
        }
Exemplo n.º 14
0
 public bool ValidCreateObject(CompanyInfo companyInfo, ICompanyInfoService _companyInfoService)
 {
     VHasUniqueName(companyInfo, _companyInfoService);
     if (!isValid(companyInfo))
     {
         return(false);
     }
     VHasAddress(companyInfo);
     if (!isValid(companyInfo))
     {
         return(false);
     }
     VHasPhoneNumber(companyInfo);
     if (!isValid(companyInfo))
     {
         return(false);
     }
     VHasEmail(companyInfo);
     return(isValid(companyInfo));
 }
Exemplo n.º 15
0
 public BranchOfficeController()
 {
     _companyInfoService  = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator());
     _branchOfficeService = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator());
     _departmentService   = new DepartmentService(new DepartmentRepository(), new DepartmentValidator());
 }
Exemplo n.º 16
0
 public BranchOffice CreateObject(BranchOffice branchOffice, ICompanyInfoService _companyInfoService)
 {
     branchOffice.Errors = new Dictionary <String, String>();
     return(_validator.ValidCreateObject(branchOffice, this, _companyInfoService) ? _repository.CreateObject(branchOffice) : branchOffice);
 }
Exemplo n.º 17
0
        public BranchOffice FindOrCreateObject(string Code, string Name, string Address, string City, string PostalCode, string PhoneNumber, string FaxNumber, string Email, ICompanyInfoService _companyInfoService)
        {
            BranchOffice branchOffice = GetObjectByCode(Code);

            if (branchOffice != null)
            {
                branchOffice.Errors = new Dictionary <String, String>();
                return(branchOffice);
            }
            branchOffice = new BranchOffice
            {
                Code        = Code,
                Name        = Name,
                Address     = Address,
                PostalCode  = PostalCode,
                PhoneNumber = PhoneNumber,
                FaxNumber   = FaxNumber,
                Email       = Email,
            };
            return(this.CreateObject(branchOffice, _companyInfoService));
        }
Exemplo n.º 18
0
        public BranchOffice CreateObject(string Code, string Name, string Address, string City, string PostalCode, string PhoneNumber, string FaxNumber, string Email, ICompanyInfoService _companyInfoService)
        {
            BranchOffice branchOffice = new BranchOffice
            {
                Code        = Code,
                Name        = Name,
                Address     = Address,
                PostalCode  = PostalCode,
                PhoneNumber = PhoneNumber,
                FaxNumber   = FaxNumber,
                Email       = Email,
            };

            return(this.CreateObject(branchOffice, _companyInfoService));
        }
Exemplo n.º 19
0
 public BranchOffice UpdateObject(BranchOffice branchOffice, ICompanyInfoService _companyInfoService)
 {
     //branchOffice.Errors.Clear();
     return(branchOffice = _validator.ValidUpdateObject(branchOffice, this, _companyInfoService) ? _repository.UpdateObject(branchOffice) : branchOffice);
 }
Exemplo n.º 20
0
 public CompanyInfoAppService(ICompanyInfoService companyInfoService)
 {
     _service = companyInfoService;
 }
Exemplo n.º 21
0
 public bool ValidUpdateObject(FPMachine fpMachine, IFPMachineService _fpMachineService, ICompanyInfoService _companyInfoService)
 {
     fpMachine.Errors.Clear();
     VIsValidId(fpMachine, _fpMachineService);
     if (!isValid(fpMachine))
     {
         return(false);
     }
     ValidCreateObject(fpMachine, _fpMachineService, _companyInfoService);
     return(isValid(fpMachine));
 }
Exemplo n.º 22
0
 public bool ValidCreateObject(FPMachine fpMachine, IFPMachineService _fpMachineService, ICompanyInfoService _companyInfoService)
 {
     VHasCompany(fpMachine, _companyInfoService);
     if (!isValid(fpMachine))
     {
         return(false);
     }
     VHasUniqueName(fpMachine, _fpMachineService);
     return(isValid(fpMachine));
 }
Exemplo n.º 23
0
 public CompanyInfoController(ICompanyInfoService iCompanyInfoService)
 {
     _iCompanyInfoService = iCompanyInfoService;
 }
 public CompanyInfoController(DataContext context, IHttpContextAccessor accessor, ICompanyInfoService companyInfoService)
 {
     _context            = context;
     _accessor           = accessor;
     _companyInfoService = companyInfoService;
 }
Exemplo n.º 25
0
 public bool ValidCreateObject(BranchOffice branchOffice, IBranchOfficeService _branchOfficeService, ICompanyInfoService _companyInfoService)
 {
     VHasCompany(branchOffice, _companyInfoService);
     if (!isValid(branchOffice))
     {
         return(false);
     }
     VHasUniqueCode(branchOffice, _branchOfficeService);
     if (!isValid(branchOffice))
     {
         return(false);
     }
     VHasUniqueName(branchOffice, _branchOfficeService);
     if (!isValid(branchOffice))
     {
         return(false);
     }
     VHasAddress(branchOffice);
     if (!isValid(branchOffice))
     {
         return(false);
     }
     VHasPhoneNumber(branchOffice);
     if (!isValid(branchOffice))
     {
         return(false);
     }
     VHasEmail(branchOffice);
     return(isValid(branchOffice));
 }
Exemplo n.º 26
0
 /// <summary>
 /// 初始化 CompanyInfoController 类的新实例
 /// </summary>
 /// <param name="CompanyInfoService"></param>
 public CompanyInfoController(ICompanyInfoService CompanyInfoService)
 {
     _CompanyInfoService = CompanyInfoService;
 }
Exemplo n.º 27
0
 public SalaryProcessController()
 {
     _userAccountService          = new UserAccountService(new UserAccountRepository(), new UserAccountValidator());
     _companyInfoService          = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator());
     _branchOfficeService         = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator());
     _departmentService           = new DepartmentService(new DepartmentRepository(), new DepartmentValidator());
     _divisionService             = new DivisionService(new DivisionRepository(), new DivisionValidator());
     _titleInfoService            = new TitleInfoService(new TitleInfoRepository(), new TitleInfoValidator());
     _employeeService             = new EmployeeService(new EmployeeRepository(), new EmployeeValidator());
     _employeeEducationService    = new EmployeeEducationService(new EmployeeEducationRepository(), new EmployeeEducationValidator());
     _salaryItemService           = new SalaryItemService(new SalaryItemRepository(), new SalaryItemValidator());
     _formulaService              = new FormulaService(new FormulaRepository(), new FormulaValidator());
     _workingTimeService          = new WorkingTimeService(new WorkingTimeRepository(), new WorkingTimeValidator());
     _workingDayService           = new WorkingDayService(new WorkingDayRepository(), new WorkingDayValidator());
     _employeeWorkingTimeService  = new EmployeeWorkingTimeService(new EmployeeWorkingTimeRepository(), new EmployeeWorkingTimeValidator());
     _salaryStandardService       = new SalaryStandardService(new SalaryStandardRepository(), new SalaryStandardValidator());
     _salaryStandardDetailService = new SalaryStandardDetailService(new SalaryStandardDetailRepository(), new SalaryStandardDetailValidator());
     _salaryEmployeeService       = new SalaryEmployeeService(new SalaryEmployeeRepository(), new SalaryEmployeeValidator());
     _salaryEmployeeDetailService = new SalaryEmployeeDetailService(new SalaryEmployeeDetailRepository(), new SalaryEmployeeDetailValidator());
     _employeeAttendanceService   = new EmployeeAttendanceService(new EmployeeAttendanceRepository(), new EmployeeAttendanceValidator());
     //_employeeAttendanceDetailService = new EmployeeAttendanceDetailService(new EmployeeAttendanceDetailRepository(), new EmployeeAttendanceDetailValidator());
     _salarySlipService         = new SalarySlipService(new SalarySlipRepository(), new SalarySlipValidator());
     _salarySlipDetailService   = new SalarySlipDetailService(new SalarySlipDetailRepository(), new SalarySlipDetailValidator());
     _employeeLeaveService      = new EmployeeLeaveService(new EmployeeLeaveRepository(), new EmployeeLeaveValidator());
     _generalLeaveService       = new GeneralLeaveService(new GeneralLeaveRepository(), new GeneralLeaveValidator());
     _spklService               = new SPKLService(new SPKLRepository(), new SPKLValidator());
     _ptkpService               = new PTKPService(new PTKPRepository(), new PTKPValidator());
     _pph21sptService           = new PPH21SPTService(new PPH21SPTRepository(), new PPH21SPTValidator());
     _otherExpenseService       = new OtherExpenseService(new OtherExpenseRepository(), new OtherExpenseValidator());
     _otherExpenseDetailService = new OtherExpenseDetailService(new OtherExpenseDetailRepository(), new OtherExpenseDetailValidator());
     _otherIncomeService        = new OtherIncomeService(new OtherIncomeRepository(), new OtherIncomeValidator());
     _otherIncomeDetailService  = new OtherIncomeDetailService(new OtherIncomeDetailRepository(), new OtherIncomeDetailValidator());
     _thrService              = new THRService(new THRRepository(), new THRValidator());
     _thrDetailService        = new THRDetailService(new THRDetailRepository(), new THRDetailValidator());
     _slipGajiMiniService     = new SlipGajiMiniService(new SlipGajiMiniRepository(), new SlipGajiMiniValidator());
     _slipGajiDetailService   = new SlipGajiDetailService(new SlipGajiDetailRepository(), new SlipGajiDetailValidator());
     _slipGajiDetail1Service  = new SlipGajiDetail1Service(new SlipGajiDetail1Repository(), new SlipGajiDetail1Validator());
     _slipGajiDetail2AService = new SlipGajiDetail2AService(new SlipGajiDetail2ARepository(), new SlipGajiDetail2AValidator());
     _salaryProcessService    = new SalaryProcessService(new SalaryProcessValidator()
     {
         _employeeAttendanceService  = _employeeAttendanceService,
         _employeeLeaveService       = _employeeLeaveService,
         _employeeService            = _employeeService,
         _employeeWorkingTimeService = _employeeWorkingTimeService,
         _formulaService             = _formulaService,
         _generalLeaveService        = _generalLeaveService,
         _spklService               = _spklService,
         _ptkpService               = _ptkpService,
         _pph21sptService           = _pph21sptService,
         _otherExpenseService       = _otherExpenseService,
         _otherExpenseDetailService = _otherExpenseDetailService,
         _otherIncomeService        = _otherIncomeService,
         _otherIncomeDetailService  = _otherIncomeDetailService,
         _thrService                  = _thrService,
         _thrDetailService            = _thrDetailService,
         _workingDayService           = _workingDayService,
         _workingTimeService          = _workingTimeService,
         _salaryEmployeeDetailService = _salaryEmployeeDetailService,
         _salaryEmployeeService       = _salaryEmployeeService,
         _salaryItemService           = _salaryItemService,
         _salarySlipDetailService     = _salarySlipDetailService,
         _salarySlipService           = _salarySlipService,
         _slipGajiDetail1Service      = _slipGajiDetail1Service,
         _slipGajiDetail2AService     = _slipGajiDetail2AService,
         _slipGajiDetailService       = _slipGajiDetailService,
         _slipGajiMiniService         = _slipGajiMiniService,
     });
 }
Exemplo n.º 28
0
 public ContactController(ICompanyInfoService iCompanyInfoService)
 {
     _companyInfoService = iCompanyInfoService;
 }
Exemplo n.º 29
0
 public CompanyInfoController()
 {
     _companyInfoService  = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator());
     _branchOfficeService = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator());
 }
Exemplo n.º 30
0
 public bool ValidUpdateObject(BranchOffice branchOffice, IBranchOfficeService _branchOfficeService, ICompanyInfoService _companyInfoService)
 {
     // branchOffice.Errors.Clear();
     return(ValidCreateObject(branchOffice, _branchOfficeService, _companyInfoService));
 }
Exemplo n.º 31
0
 public bool ValidUpdateObject(CompanyInfo companyInfo, ICompanyInfoService _companyInfoService)
 {
     companyInfo.Errors.Clear();
     return(ValidCreateObject(companyInfo, _companyInfoService));
 }