コード例 #1
0
 public ProfileReportsController(IAccountTypeService accountTypeService, IReportsCompanyProfileService reportsCompanyProfileService, IReportsCandidateProfileService reportsCandidateProfileService, ICompanyInfoService companyInfoService)
 {
     this.accountTypeService             = accountTypeService;
     this.reportsCompanyProfileService   = reportsCompanyProfileService;
     this.reportsCandidateProfileService = reportsCandidateProfileService;
     this.companyInfoService             = companyInfoService;
 }
コード例 #2
0
 public CompanyProfileController(ICompanyProfileService companyProfileService, UserManager <ApplicationUser> userManager, ICompanyInfoService companyInfoService, IAccountTypeService accountTypeService)
 {
     this.companyProfileService = companyProfileService;
     this.userManager           = userManager;
     this.companyInfoService    = companyInfoService;
     this.accountTypeService    = accountTypeService;
 }
コード例 #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());
 }
コード例 #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;
 }
コード例 #5
0
ファイル: ReportController.cs プロジェクト: usruk/AttPayroll
 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());
 }
コード例 #6
0
ファイル: BranchOfficeValidator.cs プロジェクト: sajidur/erp
        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);
        }
コード例 #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);
        }
コード例 #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);
 }
コード例 #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;
 }
コード例 #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);
 }
コード例 #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;
 }
コード例 #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);
 }
コード例 #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);
        }
コード例 #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));
 }
コード例 #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());
 }
コード例 #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);
 }
コード例 #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));
        }
コード例 #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));
        }
コード例 #19
0
 public BranchOffice UpdateObject(BranchOffice branchOffice, ICompanyInfoService _companyInfoService)
 {
     //branchOffice.Errors.Clear();
     return(branchOffice = _validator.ValidUpdateObject(branchOffice, this, _companyInfoService) ? _repository.UpdateObject(branchOffice) : branchOffice);
 }
コード例 #20
0
 public CompanyInfoAppService(ICompanyInfoService companyInfoService)
 {
     _service = companyInfoService;
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #23
0
 public CompanyInfoController(ICompanyInfoService iCompanyInfoService)
 {
     _iCompanyInfoService = iCompanyInfoService;
 }
コード例 #24
0
 public CompanyInfoController(DataContext context, IHttpContextAccessor accessor, ICompanyInfoService companyInfoService)
 {
     _context            = context;
     _accessor           = accessor;
     _companyInfoService = companyInfoService;
 }
コード例 #25
0
ファイル: BranchOfficeValidator.cs プロジェクト: sajidur/erp
 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));
 }
コード例 #26
0
 /// <summary>
 /// 初始化 CompanyInfoController 类的新实例
 /// </summary>
 /// <param name="CompanyInfoService"></param>
 public CompanyInfoController(ICompanyInfoService CompanyInfoService)
 {
     _CompanyInfoService = CompanyInfoService;
 }
コード例 #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,
     });
 }
コード例 #28
0
 public ContactController(ICompanyInfoService iCompanyInfoService)
 {
     _companyInfoService = iCompanyInfoService;
 }
コード例 #29
0
ファイル: CompanyInfoController.cs プロジェクト: sajidur/erp
 public CompanyInfoController()
 {
     _companyInfoService  = new CompanyInfoService(new CompanyInfoRepository(), new CompanyInfoValidator());
     _branchOfficeService = new BranchOfficeService(new BranchOfficeRepository(), new BranchOfficeValidator());
 }
コード例 #30
0
ファイル: BranchOfficeValidator.cs プロジェクト: sajidur/erp
 public bool ValidUpdateObject(BranchOffice branchOffice, IBranchOfficeService _branchOfficeService, ICompanyInfoService _companyInfoService)
 {
     // branchOffice.Errors.Clear();
     return(ValidCreateObject(branchOffice, _branchOfficeService, _companyInfoService));
 }
コード例 #31
0
 public bool ValidUpdateObject(CompanyInfo companyInfo, ICompanyInfoService _companyInfoService)
 {
     companyInfo.Errors.Clear();
     return(ValidCreateObject(companyInfo, _companyInfoService));
 }