Exemplo n.º 1
0
 public InsumoEntity GetById(
     Guid id,
     [FromServices] IInsumoRepository repository
     )
 {
     return(repository.GetById(id));
 }
Exemplo n.º 2
0
 public InsumoController(IInsumoRepository insumoRepository,
                         IHttpContextAccessor httpContextAccessor,
                         IHostingEnvironment hostingEnvironment)
 {
     _insumoRepository    = insumoRepository;
     _httpContextAccessor = httpContextAccessor;
     _hostingEnvironment  = hostingEnvironment;
 }
Exemplo n.º 3
0
 public InsumoController(
     IInsumoRepository insumoRepository,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     // _usuarioRepository = userRepository;
     _insumoRepository = insumoRepository;
     _mapper           = mapper;
     _appSettings      = appSettings.Value;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 6
0
 public InsumoService(IInsumoRepository insumoRepository, IAgendaManutencaoRepository agendaManutRepository)
 {
     _insumoRepository      = insumoRepository;
     _agendaManutRepository = agendaManutRepository;
 }
 public InsumosController(IInsumoRepository insumoRepository)
 {
     this.insumoRepository = insumoRepository;
 }
Exemplo n.º 8
0
 public ManutencaoService(IManutencaoRepository manutencaoRepository, IInsumoRepository insumoRepository, IAgendaManutencaoRepository agendaManutRepository)
 {
     _manutencaoRepository  = manutencaoRepository;
     _agendaManutRepository = agendaManutRepository;
     _insumoRepository      = insumoRepository;
 }
Exemplo n.º 9
0
 public InsumosProcessor(IInsumoRepository insumosRepository)
 {
     _insumoRepository = insumosRepository;
 }
Exemplo n.º 10
0
 public IList <InsumoEntity> GetAllInativos(
     [FromServices] IInsumoRepository repository
     )
 {
     return(repository.GetAllInativos());
 }
Exemplo n.º 11
0
 public IList <InsumoEntity> GetAllEmManutencao(
     [FromServices] IInsumoRepository repository
     )
 {
     return(repository.GetAllEmManutencao());
 }