/// <summary>
 /// Ctor
 /// </summary>
 public WorkOrderService(IRepository <WorkOrder> workOrderRepository,
                         IRepository <User> userRepository,
                         IRepository <Assignment> assignmentRepository,
                         IRepository <Attachment> attachmentRepository,
                         IRepository <Asset> assetRepository,
                         IRepository <TaskGroup> taskGroupRepository,
                         IServiceRequestService serviceRequestService,
                         IPreventiveMaintenanceService pmService,
                         ICalendarService calendarService,
                         IAutoNumberService autoNumberService,
                         IAttachmentService attachmentService,
                         DapperContext dapperContext,
                         IWorkContext workContext,
                         IDbContext dbContext,
                         IDateTimeHelper dateTimeHelper)
 {
     this._workOrderRepository   = workOrderRepository;
     this._userRepository        = userRepository;
     this._assignmentRepository  = assignmentRepository;
     this._attachmentRepository  = attachmentRepository;
     this._assetRepository       = assetRepository;
     this._taskGroupRepository   = taskGroupRepository;
     this._serviceRequestService = serviceRequestService;
     this._pmService             = pmService;
     this._calendarService       = calendarService;
     this._autoNumberService     = autoNumberService;
     this._attachmentService     = attachmentService;
     this._dapperContext         = dapperContext;
     this._workContext           = workContext;
     this._dbContext             = dbContext;
     this._dateTimeHelper        = dateTimeHelper;
 }
예제 #2
0
 public PMJob(IRepository <PreventiveMaintenance> pmRepository,
              IRepository <PMMeterFrequency> pMMeterFrequencyRepository,
              IRepository <PointMeterLineItem> pointMeterLineItemRepository,
              IRepository <MeterEventHistory> meterEventHistoryRepository,
              IPreventiveMaintenanceService pmService,
              IWorkOrderService workOrderService)
 {
     this._pmRepository = pmRepository;
     this._pMMeterFrequencyRepository   = pMMeterFrequencyRepository;
     this._pointMeterLineItemRepository = pointMeterLineItemRepository;
     this._meterEventHistoryRepository  = meterEventHistoryRepository;
     this._pmService        = pmService;
     this._workOrderService = workOrderService;
 }
예제 #3
0
 public PreventiveMaintenanceController(IPreventiveMaintenanceService preventiveMaintenanceService)
 {
     _preventiveMaintenanceService = preventiveMaintenanceService;
 }