예제 #1
0
 public InsumoEntity GetById(
     Guid id,
     [FromServices] IInsumoRepository repository
     )
 {
     return(repository.GetById(id));
 }
예제 #2
0
 public InsumoController(IInsumoRepository insumoRepository,
                         IHttpContextAccessor httpContextAccessor,
                         IHostingEnvironment hostingEnvironment)
 {
     _insumoRepository    = insumoRepository;
     _httpContextAccessor = httpContextAccessor;
     _hostingEnvironment  = hostingEnvironment;
 }
예제 #3
0
 public InsumoController(
     IInsumoRepository insumoRepository,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     // _usuarioRepository = userRepository;
     _insumoRepository = insumoRepository;
     _mapper           = mapper;
     _appSettings      = appSettings.Value;
 }
예제 #4
0
 public ProduccionRepository(DataContext context,
                             IEmpleadoProduccionRepository empleadoProduccionRepository,
                             IFaseRepository faseRepository,
                             IPedidoRepository pedidoRepository,
                             IInsumoRepository insumoRepository,
                             IInsumoUsadoRepository insumoUsadoRepository) : base(context)
 {
     this.context = context;
     this.empleadoProduccionRepository = empleadoProduccionRepository;
     this.faseRepository        = faseRepository;
     this.pedidoRepository      = pedidoRepository;
     this.insumoRepository      = insumoRepository;
     this.insumoUsadoRepository = insumoUsadoRepository;
 }
예제 #5
0
 public ConverterHelper(
     DataContext dataContext,
     ICombosHelper combosHelper,
     IFaseRepository faseRepository,
     IEmpleadoProduccionRepository empleadoProduccionRepository,
     IUserHelper userHelper,
     IPedidoRepository pedidoRepository,
     IInsumoRepository insumoRepository,
     IProduccionRepository produccionRepository)
 {
     _dataContext        = dataContext;
     _combosHelper       = combosHelper;
     this.faseRepository = faseRepository;
     this.empleadoProduccionRepository = empleadoProduccionRepository;
     this.userHelper           = userHelper;
     this.pedidoRepository     = pedidoRepository;
     this.insumoRepository     = insumoRepository;
     this.produccionRepository = produccionRepository;
 }
예제 #6
0
 public InsumoService(IInsumoRepository insumoRepository, IAgendaManutencaoRepository agendaManutRepository)
 {
     _insumoRepository      = insumoRepository;
     _agendaManutRepository = agendaManutRepository;
 }
 public InsumosController(IInsumoRepository insumoRepository)
 {
     this.insumoRepository = insumoRepository;
 }
예제 #8
0
 public ManutencaoService(IManutencaoRepository manutencaoRepository, IInsumoRepository insumoRepository, IAgendaManutencaoRepository agendaManutRepository)
 {
     _manutencaoRepository  = manutencaoRepository;
     _agendaManutRepository = agendaManutRepository;
     _insumoRepository      = insumoRepository;
 }
예제 #9
0
 public InsumosProcessor(IInsumoRepository insumosRepository)
 {
     _insumoRepository = insumosRepository;
 }
예제 #10
0
 public IList <InsumoEntity> GetAllInativos(
     [FromServices] IInsumoRepository repository
     )
 {
     return(repository.GetAllInativos());
 }
예제 #11
0
 public IList <InsumoEntity> GetAllEmManutencao(
     [FromServices] IInsumoRepository repository
     )
 {
     return(repository.GetAllEmManutencao());
 }