Exemple #1
0
        public static JobIndexGroup CreateJobIndexGroup(IJobIndexRepository jobIndexRepository, string name, string dictionaryName)
        {
            var jobIndexGroup = new JobIndexGroup(jobIndexRepository.GetNextId(), Period, null, name, dictionaryName);

            jobIndexRepository.Add(jobIndexGroup);
            return(jobIndexGroup);
        }
Exemple #2
0
 public PeriodServiceFacade(IPeriodService periodService,
                            IMapper <Period, PeriodDescriptionDTO> periodDescriptionMapper,
                            IMapper <Period, PeriodDTOWithAction> periodDTOWithActionsMapper,
                            IMapper <Period, PeriodDTO> periodDTOMapper,
                            IMapper <InquiryInitializingProgress, PeriodStateWithIntializeInquirySummaryDTO>
                            periodInitializeInquiryStateReportMapper,
                            IMapper <BasicDataCopyingProgress, PeriodStateWithCopyingSummaryDTO> periodCopyingStateReportMapper,
                            IPeriodRepository periodRep, IPeriodEngineService periodEngine, IEmployeeRepository employeeRepository,
                            IJobPositionRepository jobPositionRepository, IUnitRepository unitRepository,
                            IJobIndexPointRepository jobIndexPointRepository, ICalculationRepository calculationRepository, IJobIndexRepository jobIndexRepository)
 {
     this.periodService              = periodService;
     this.periodDescriptionMapper    = periodDescriptionMapper;
     this.periodDTOWithActionsMapper = periodDTOWithActionsMapper;
     this.periodDTOMapper            = periodDTOMapper;
     this.periodInitializeInquiryStateReportMapper = periodInitializeInquiryStateReportMapper;
     this.periodCopyingStateReportMapper           = periodCopyingStateReportMapper;
     this.periodRep               = periodRep;
     this.periodEngine            = periodEngine;
     this.employeeRepository      = employeeRepository;
     this.jobPositionRepository   = jobPositionRepository;
     this.unitRepository          = unitRepository;
     this.jobIndexPointRepository = jobIndexPointRepository;
     this.calculationRepository   = calculationRepository;
     this.jobIndexRepository      = jobIndexRepository;
 }
 public static void CreateJobIndexCategory(IJobIndexRepository jobIndexRepository)
 {
     if (jobIndexCategory == null)
     {
         jobIndexCategory = new JobIndexCategory(jobIndexRepository.GetNextId(), null, "شاخص های شغل/فردی",
                                                 "JobIndexCategory");
         jobIndexRepository.Add(jobIndexCategory);
     }
 }
 public InquiryJobIndexPointCreatorService(IJobPositionRepository jobPositionRep,
                                           IJobRepository jobRep,
                                           IJobIndexRepository jobIndexRep,
                                           IInquiryJobIndexPointRepository inquiryJobIndexPointRep, IEventPublisher publisher)
 {
     this.jobPositionRep          = jobPositionRep;
     this.jobRep                  = jobRep;
     this.jobIndexRep             = jobIndexRep;
     this.inquiryJobIndexPointRep = inquiryJobIndexPointRep;
     this.publisher               = publisher;
 }
 public InquiryServiceFacade(IInquiryService inquiryService,
                             IMapper <InquirySubjectWithJobPosition, InquirySubjectDTO> inquiySubjectMapper,
                             IJobIndexRepository jobIndexRep, IJobPositionRepository jobPositionRepository, IEmployeeRepository employeeRepository, IInquiryJobIndexPointRepository inquiryJobIndexPointRepository)
 {
     this.inquiryService                 = inquiryService;
     this.inquiySubjectMapper            = inquiySubjectMapper;
     this.jobIndexRep                    = jobIndexRep;
     this.jobPositionRepository          = jobPositionRepository;
     this.employeeRepository             = employeeRepository;
     this.inquiryJobIndexPointRepository = inquiryJobIndexPointRepository;
 }
Exemple #6
0
        public JobIndexService(

            IJobIndexRepository jobIndexRep,
            IPeriodRepository periodRep,
            IPMSAdminService ipmsAdminService,
            IPeriodManagerService periodChecker
            )
        {
            this.periodRep       = periodRep;
            this.pmsAdminService = ipmsAdminService;
            this.periodChecker   = periodChecker;
            this.jobIndexRep     = jobIndexRep;
        }
Exemple #7
0
 public PeriodJobIndexFacadeService(
     IJobIndexService jobIndexService,
     IMapper <AbstractJobIndex, AbstractIndexInPeriodDTO> jobIndexMapper,
     IMapper <AbstractJobIndex, AbstractIndexInPeriodDTOWithActions> jobIndexWithActionsMapper,
     IMapper <SharedJobIndexCustomField, AbstractCustomFieldDescriptionDTO> abstractCustomFieldDtoMapper,
     IJobIndexRepository jobIndexRep
     )
 {
     this.jobIndexService              = jobIndexService;
     this.jobIndexMapper               = jobIndexMapper;
     this.jobIndexWithActionsMapper    = jobIndexWithActionsMapper;
     this.abstractCustomFieldDtoMapper = abstractCustomFieldDtoMapper;
     this.jobIndexRep = jobIndexRep;
 }
Exemple #8
0
 public PeriodService(
     IPeriodRepository periodRep,
     IUnitIndexRepository unitIndexRepository,
     IJobIndexRepository jobIndexRepository,
     IPeriodManagerService periodManagerService,
     IJobIndexServiceFactory jobIndexServiceFactory,
     IUnitIndexServiceFactory unitIndexServiceFactory
     )
 {
     this.periodRep               = periodRep;
     this.periodManagerService    = periodManagerService;
     this.jobIndexServiceFactory  = jobIndexServiceFactory;
     this.unitIndexServiceFactory = unitIndexServiceFactory;
     this.unitIndexRepository     = unitIndexRepository;
     this.jobIndexRepository      = jobIndexRepository;
 }
 public JobIndexFacadeService(
     IJobIndexService jobIndexService,
     ICustomFieldRepository customFieldRep,
     IMapper <AbstractJobIndex, AbstractIndex> jobIndexMapper,
     IMapper <AbstractJobIndex, AbstractJobIndexDTOWithActions> jobIndexWithActionsMapper,
     IMapper <CustomFieldType, CustomFieldDTO> customFieldDtoMapper,
     IJobIndexRepository jobIndexRep
     )
 {
     this.jobIndexService           = jobIndexService;
     this.customFieldRep            = customFieldRep;
     this.jobIndexMapper            = jobIndexMapper;
     this.jobIndexWithActionsMapper = jobIndexWithActionsMapper;
     this.customFieldDtoMapper      = customFieldDtoMapper;
     this.jobIndexRep = jobIndexRep;
 }
        public static void CreateJobIndex(IJobIndexRepository jobIndexRepository, string name, string dictionaryName, string group)
        {
            if (jobIndexCategory == null)
            {
                jobIndexCategory = new JobIndexCategory(jobIndexRepository.GetNextId(), null, "شاخص های شغل/فردی",
                                                        "JobIndices");
                jobIndexRepository.Add(jobIndexCategory);
            }

            var jobIndex = new JobIndex(jobIndexRepository.GetNextId(), jobIndexCategory,
                                        name, dictionaryName);

            jobIndex.AssignCustomFields(DefinedCustomFields.Where(dc => dc.EntityId == EntityTypeEnum.JobIndex).ToList());
            jobIndexRepository.Add(jobIndex);
            JobIndices.Add(jobIndex, group);
        }
Exemple #11
0
        public static void CreateJobIndex(IJobIndexRepository jobIndexRepository, PMSAdmin.Domain.Model.JobIndices.JobIndex adminJobIndex,
                                          JobIndexGroup jobIndexGroup, bool isInquireable, Dictionary <PMSAdmin.Domain.Model.CustomFieldTypes.CustomFieldType, string> customFieldsDictionary, long clacLevel)
        {
            var sharedJobIndex = new SharedJobIndex(new SharedJobIndexId(adminJobIndex.Id.Id), adminJobIndex.Name,
                                                    adminJobIndex.DictionaryName);
            var jobIndex = new JobIndex(jobIndexRepository.GetNextId(), Period, sharedJobIndex, jobIndexGroup,
                                        isInquireable, clacLevel);
            var sharedCustomFieldsDic =
                customFieldsDictionary.ToDictionary(
                    c =>
                    new SharedJobIndexCustomField(new SharedJobIndexCustomFieldId(c.Key.Id.Id), c.Key.Name,
                                                  c.Key.DictionaryName, c.Key.MinValue, c.Key.MaxValue),
                    c => c.Value);

            jobIndex.UpdateCustomFields(sharedCustomFieldsDic);
            jobIndexRepository.Add(jobIndex);
            jobIndices.Add(jobIndex);
        }
Exemple #12
0
 public InquiryService(IJobPositionInquiryConfiguratorService configurator,
                       IEmployeeRepository employeeRep,
                       IInquiryJobIndexPointRepository inquiryJobIndexPointRep,
                       IJobPositionRepository jobPositionRep,
                       IJobRepository jobRep,
                       IJobIndexRepository jobIndexRep,
                       IInquiryJobIndexPointService inquiryJobIndexPointService,
                       IInquiryJobIndexPointRepository inquiryJobIndexPointRepository,
                       IPeriodManagerService periodChecker
                       )
 {
     this.configurator            = configurator;
     this.employeeRep             = employeeRep;
     this.inquiryJobIndexPointRep = inquiryJobIndexPointRep;
     this.jobPositionRep          = jobPositionRep;
     this.jobRep      = jobRep;
     this.jobIndexRep = jobIndexRep;
     this.inquiryJobIndexPointService    = inquiryJobIndexPointService;
     this.inquiryJobIndexPointRepository = inquiryJobIndexPointRepository;
     this.periodChecker = periodChecker;
 }
Exemple #13
0
 public JobIndexService(IJobIndexRepository jobIndexRep
                        , ICustomFieldRepository customFieldRep)
 {
     this.jobIndexRep    = jobIndexRep;
     this.customFieldRep = customFieldRep;
 }