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; }
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()); }
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; }
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()); }
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); }
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); }
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); }
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; }
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); }
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; }
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); }
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); }
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)); }
public BranchOfficeController() { _companyInfoService = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator()); _branchOfficeService = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator()); _departmentService = new DepartmentService(new DepartmentRepository(), new DepartmentValidator()); }
public BranchOffice CreateObject(BranchOffice branchOffice, ICompanyInfoService _companyInfoService) { branchOffice.Errors = new Dictionary <String, String>(); return(_validator.ValidCreateObject(branchOffice, this, _companyInfoService) ? _repository.CreateObject(branchOffice) : branchOffice); }
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)); }
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)); }
public BranchOffice UpdateObject(BranchOffice branchOffice, ICompanyInfoService _companyInfoService) { //branchOffice.Errors.Clear(); return(branchOffice = _validator.ValidUpdateObject(branchOffice, this, _companyInfoService) ? _repository.UpdateObject(branchOffice) : branchOffice); }
public CompanyInfoAppService(ICompanyInfoService companyInfoService) { _service = companyInfoService; }
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)); }
public bool ValidCreateObject(FPMachine fpMachine, IFPMachineService _fpMachineService, ICompanyInfoService _companyInfoService) { VHasCompany(fpMachine, _companyInfoService); if (!isValid(fpMachine)) { return(false); } VHasUniqueName(fpMachine, _fpMachineService); return(isValid(fpMachine)); }
public CompanyInfoController(ICompanyInfoService iCompanyInfoService) { _iCompanyInfoService = iCompanyInfoService; }
public CompanyInfoController(DataContext context, IHttpContextAccessor accessor, ICompanyInfoService companyInfoService) { _context = context; _accessor = accessor; _companyInfoService = companyInfoService; }
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)); }
/// <summary> /// 初始化 CompanyInfoController 类的新实例 /// </summary> /// <param name="CompanyInfoService"></param> public CompanyInfoController(ICompanyInfoService CompanyInfoService) { _CompanyInfoService = CompanyInfoService; }
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, }); }
public ContactController(ICompanyInfoService iCompanyInfoService) { _companyInfoService = iCompanyInfoService; }
public CompanyInfoController() { _companyInfoService = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator()); _branchOfficeService = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator()); }
public bool ValidUpdateObject(BranchOffice branchOffice, IBranchOfficeService _branchOfficeService, ICompanyInfoService _companyInfoService) { // branchOffice.Errors.Clear(); return(ValidCreateObject(branchOffice, _branchOfficeService, _companyInfoService)); }
public bool ValidUpdateObject(CompanyInfo companyInfo, ICompanyInfoService _companyInfoService) { companyInfo.Errors.Clear(); return(ValidCreateObject(companyInfo, _companyInfoService)); }