Exemplo n.º 1
0
 public JobController(IMessageBus messageBus,
                      ITaskIdGenerator taskIdGenerator,
                      IDayAssignProvider dayAssignProvider,
                      IJobService jobService,
                      IJobAssignProvider jobAssignProvider,
                      IMemberService memberService,
                      IDayAssignService dayAssignService,
                      IJobStatusService jobStatusService,
                      IJobStatusLogService jobStatusLogService,
                      IWeekPlanService weekPlanService,
                      IGuideCommentService guideCommentService)
 {
     this.messageBus          = messageBus;
     this.taskIdGenerator     = taskIdGenerator;
     this.dayAssignProvider   = dayAssignProvider;
     this.jobService          = jobService;
     this.jobAssignProvider   = jobAssignProvider;
     this.memberService       = memberService;
     this.dayAssignService    = dayAssignService;
     this.jobStatusService    = jobStatusService;
     this.jobStatusLogService = jobStatusLogService;
     this.weekPlanService     = weekPlanService;
     this.guideCommentService = guideCommentService;
     this.janitorHubs         = GlobalHost.ConnectionManager.GetHubContext <JanitorHub>();
     this.managementHubs      = GlobalHost.ConnectionManager.GetHubContext <ManagementHub>();
 }
 public DayAssignCommandHandler(IAggregateRootRepository <DayAssignDomain> repository,
                                IDayAssignProvider dayAssignProvider,
                                IAppSettingHelper appSettingHelper)
 {
     this.repository        = repository;
     this.dayAssignProvider = dayAssignProvider;
     this.appSettingHelper  = appSettingHelper;
 }
Exemplo n.º 3
0
 public AdminToolsController(
     IMessageBus messageBus,
     IMongoDatabaseRepository dataBaseRepository,
     IDayAssignProvider dayAssignProvider)
 {
     this.messageBus         = messageBus;
     this.dataBaseRepository = dataBaseRepository;
     _dayAssignProvider      = dayAssignProvider;
 }
Exemplo n.º 4
0
 public TimeScheduleService(
     IDayAssignProvider assignProvider,
     IGroupService groupService,
     IMemberService memberService,
     IManagementDepartmentService managementService)
 {
     this.assignProvider    = assignProvider;
     this.groupService      = groupService;
     this.memberService     = memberService;
     this.managementService = managementService;
 }
Exemplo n.º 5
0
 public YearlyPlanService(
     IJobProvider jobProvider,
     ICategoryService categoryService,
     IDayAssignProvider dayAssignProvider,
     IMemberService memberService,
     IJobAssignProvider jobAssignProvider)
 {
     this.jobProvider       = jobProvider;
     this.categoryService   = categoryService;
     this.dayAssignProvider = dayAssignProvider;
     this.memberService     = memberService;
     this.jobAssignProvider = jobAssignProvider;
 }
Exemplo n.º 6
0
 public GroupController(IMessageBus messageBus,
                        IGroupService groupService,
                        IMemberService memberService,
                        ITimeScheduleService timeScheduleService,
                        IAppSettingHelper settingHelper,
                        IDayAssignProvider dayAssignProvider,
                        IEmployeeAbsenceInfoService absenceInfoService)
 {
     this.messageBus          = messageBus;
     this.groupService        = groupService;
     this.memberService       = memberService;
     this.timeScheduleService = timeScheduleService;
     this.settingHelper       = settingHelper;
     this.dayAssignProvider   = dayAssignProvider;
     this.absenceInfoService  = absenceInfoService;
 }
Exemplo n.º 7
0
        public JobProvider(
            IYearlyPlanningConfiguration configuration,
            IDayAssignProvider dayAssignProvider,
            ICategoryService categoryService,
            IJobAssignProvider jobAssignProvider,
            IManagementDepartmentService managementService)
        {
            this.dayAssignProvider = dayAssignProvider;
            this.categoryService   = categoryService;
            this.jobAssignProvider = jobAssignProvider;
            this.managementService = managementService;
            var client   = new MongoClient(configuration.ConnectionString);
            var database = client.GetDatabase(configuration.DatabaseName);

            collection = database.GetCollection <Job>(nameof(Job));
        }
Exemplo n.º 8
0
 public DayAssignService(
     IMessageBus messageBus,
     IJobAssignProvider jobAssignProvider,
     IDayAssignProvider dayAssignProvider,
     IJobStatusService jobStatusService,
     IMemberService memberService,
     IGroupService groupService,
     IRepository <DayAssign> dayAssignRepository)
 {
     this.messageBus          = messageBus;
     this.jobAssignProvider   = jobAssignProvider;
     this.dayAssignProvider   = dayAssignProvider;
     this.jobStatusService    = jobStatusService;
     this.memberService       = memberService;
     this.groupService        = groupService;
     this.dayAssignRepository = dayAssignRepository;
 }