Ejemplo n.º 1
0
 public MachineService(IMachineRepository machineRepository, IMachineTypeService machineTypeService, IMachineTypeRepository machineTypeRepository)
 {
     _machineRepository     = machineRepository ?? throw new ArgumentNullException(nameof(machineRepository));
     _machineTypeService    = machineTypeService ?? throw new ArgumentNullException(nameof(machineTypeService));
     _machineTypeRepository =
         machineTypeRepository ?? throw new ArgumentNullException(nameof(machineTypeRepository));
 }
 // Конструктор
 public MachinesController(IMachineRepository machineRepository,
                           IMachineTypeRepository machineTypeRepository,
                           IReadedNoticeRepository readedNoticeRepository,
                           IHubContext <NotificationHub> hub)
 {
     _machineRepository      = machineRepository;
     _machineTypeRepository  = machineTypeRepository;
     _readedNoticeRepository = readedNoticeRepository;
     _hub = hub;
 } // MachinesController
Ejemplo n.º 3
0
 public MachineTypeService(IMachineTypeRepository machineTypeRepository,
                           IOperationRepository operationRepository,
                           IMachineTypeOperationRepository machineTypeOperationRepository,
                           IToolRepository toolRepository
                           )
 {
     _machineTypeRepository =
         machineTypeRepository ?? throw new ArgumentNullException(nameof(machineTypeRepository));
     _operationRepository            = operationRepository ?? throw new ArgumentNullException(nameof(operationRepository));
     _machineTypeOperationRepository = machineTypeOperationRepository ??
                                       throw new ArgumentNullException(nameof(_machineTypeOperationRepository));
     _toolRepository = toolRepository ?? throw new ArgumentNullException(nameof(_toolRepository));
 }
Ejemplo n.º 4
0
 // Конструктор
 public RequisitionsController(IRequisitionRepository requisitionRepository,
                               IProposalRepository proposalRepository,
                               IMachineRepository machineRepository,
                               IMachineTypeRepository machineTypeRepository,
                               IReadedNoticeRepository readedNoticeRepository,
                               IHubContext <NotificationHub> hub)
 {
     _requisitionRepository  = requisitionRepository;
     _proposalRepository     = proposalRepository;
     _machineRepository      = machineRepository;
     _machineTypeRepository  = machineTypeRepository;
     _readedNoticeRepository = readedNoticeRepository;
     _hub = hub;
 } // RequisitionsController
Ejemplo n.º 5
0
 // Конструктор
 public ProposalsController(IProposalRepository proposalRepository,
                            IRequisitionRepository requisitionRepository,
                            IProposalImageRepository proposalImageRepository,
                            IMachineRepository machineRepository,
                            IMachineTypeRepository machineTypeRepository,
                            IReadedNoticeRepository readedNoticeRepository,
                            IWebHostEnvironment environment,
                            IHubContext <NotificationHub> hub)
 {
     _proposalRepository      = proposalRepository;
     _requisitionRepository   = requisitionRepository;
     _proposalImageRepository = proposalImageRepository;
     _machineRepository       = machineRepository;
     _machineTypeRepository   = machineTypeRepository;
     _readedNoticeRepository  = readedNoticeRepository;
     _environment             = environment;
     _hub = hub;
 } // ProposalsController
Ejemplo n.º 6
0
 public CommonService(IMapper mapper,
                      MapperConfiguration configMapper,
                      IFactoryRepository repoFactory,
                      IShiftRepository repoShift,
                      IActionTimeForOEERepository repoActionTime,
                      IMachineInformationRepository repoMachineInfomation,
                      IMachineTypeRepository repoMachineType,
                      IOEE_VNRepository repoOee_VN,
                      IOEE_MMRepository repoOee_MM,
                      IOEE_IDRepository repoOee_ID
                      )
 {
     _repoFactory           = repoFactory;
     _repoShift             = repoShift;
     _mapper                = mapper;
     _configMapper          = configMapper;
     _repoActionTime        = repoActionTime;
     _repoMachineInfomation = repoMachineInfomation;
     _repoMachineType       = repoMachineType;
     _repoOee_VN            = repoOee_VN;
     _repoOee_MM            = repoOee_MM;
     _repoOee_ID            = repoOee_ID;
 }
 public MachineTypeController(IMachineTypeRepository IMachineTypeRepository, IOperationsRepository IOperationsRepository)
 {
     _IMachineTypeRepository = IMachineTypeRepository;
     _IOperationsRepository  = IOperationsRepository;
 }
Ejemplo n.º 8
0
 public MachineTypeController(IMachineTypeRepository context)
 {
     _machineTypeRepository = context;
 }
Ejemplo n.º 9
0
 public MachineController(IMachineRepository IMachineRepository, IMachineTypeRepository IMachineTypeRepository)
 {
     _IMachineRepository     = IMachineRepository;
     _IMachineTypeRepository = IMachineTypeRepository;
 }
Ejemplo n.º 10
0
 public MachineTypeService(Context context)
 {
     _machineTypeRepository            = new MachineTypeRepository(context);
     _machineTypesOperationsRepository = new MachineTypeOperationRepository(context);
     _serviceOperations = new OperationService(context);
 }
Ejemplo n.º 11
0
 public MachineTypesController(IMachineTypeRepository repository, ILoggerFactory loggerFactory)
 {
     this._repository = repository ?? throw new ArgumentNullException(nameof(MachineTypesController));
     this._logger     = loggerFactory.CreateLogger(nameof(MachineTypesController));
 }