Example #1
0
 public AlterarSistemaCommand(Guid idSistema, string nome, string descricao, ISistemaRepository sistema_repository)
 {
     IdSistema           = idSistema;
     Nome                = nome.ToUpper();
     Descricao           = descricao;
     _sistema_repository = sistema_repository;
 }
Example #2
0
 public GenericCommandResult AtualizarOrdem([FromBody] AtualizarOrdemSistemaCommand command,
                                            [FromServices] SistemaHandler handler,
                                            [FromServices] ISistemaRepository sistema_repository)
 {
     return((GenericCommandResult)handler.Handle(new AtualizarOrdemSistemaCommand(command.SistemasOrdem,
                                                                                  sistema_repository)));
 }
Example #3
0
 public GenericCommandResult AtivarDesativar([FromBody] AtivarDesativarSistemaCommand command,
                                             [FromServices] SistemaHandler handler,
                                             [FromServices] ISistemaRepository sistema_repository)
 {
     return((GenericCommandResult)handler.Handle(new AtivarDesativarSistemaCommand(command.IdSistema,
                                                                                   command.Ativo,
                                                                                   sistema_repository)));
 }
Example #4
0
 public InspecaoController(IInspecaoRepository inspecao_repository,
                           IMapper mapper,
                           ISistemaRepository sistema_repository)
 {
     _inspecao_repository = inspecao_repository;
     _mapper             = mapper;
     _sistema_repository = sistema_repository;
 }
 //Construtor informando as dependências necessárias para o funcionamento.
 public ControleChamadoDomainService(
     ISistemaRepository sistemaRepository,
     IChamadoRepository chamadoRepository,
     IAnalistaRepository analistaRepository)
 {
     //Repasse da injeção.
     _sistemaRepository  = sistemaRepository;
     _chamadoRepository  = chamadoRepository;
     _analistaRepository = analistaRepository;
 }
Example #6
0
 public GenericCommandResult Alterar([FromBody] AtualizarSistemaCommand command,
                                     [FromServices] SistemaHandler handler,
                                     [FromServices] ISistemaRepository sistema_repository)
 {
     return((GenericCommandResult)handler.Handle(new AtualizarSistemaCommand(
                                                     HttpContext.User.Identities.FirstOrDefault().Claims.FirstOrDefault(c => c.Type.Contains("user_id")).Value,
                                                     command.Id,
                                                     command.Nome,
                                                     command.Descricao,
                                                     command.Ativo,
                                                     command.ItensSistema
                                                     )));
 }
Example #7
0
 public SistemaHandler(ISistemaRepository sistema_repository,
                       IEstabelecimentoRepository estabelecimento_repository,
                       ISistemaItemRepository sistema_item_repository,
                       IUnidadeMedidaRepository unidade_medida_repository,
                       IUsuarioRepository usuario_repository,
                       IMapper mapper)
 {
     _sistema_repository         = sistema_repository;
     _estabelecimento_repository = estabelecimento_repository;
     _sistema_item_repository    = sistema_item_repository;
     _unidade_medida_repository  = unidade_medida_repository;
     _usuario_repository         = usuario_repository;
     _mapper = mapper;
 }
Example #8
0
 public CriarItemSistemaCommand(string nome,
                                string descricao,
                                Guid idUnidadeMedida,
                                Guid idSistema,
                                ISistemaRepository sistema_repository,
                                IUnidadeMedidaRepository unidade_medida_repository)
 {
     Nome                       = nome.ToUpper();
     Descricao                  = descricao;
     IdUnidadeMedida            = idUnidadeMedida;
     IdSistema                  = idSistema;
     _sistema_repository        = sistema_repository;
     _unidade_medida_repository = unidade_medida_repository;
 }
Example #9
0
 public GenericCommandResult CriarItemSistema([FromBody] CriarItemSistemaCommand command,
                                              [FromServices] SistemaHandler handler,
                                              [FromServices] ISistemaRepository sistema_repository,
                                              [FromServices] IUnidadeMedidaRepository unidade_medida_repository
                                              )
 {
     return((GenericCommandResult)handler.Handle(new CriarItemSistemaCommand(
                                                     command.Nome,
                                                     command.Descricao,
                                                     command.IdUnidadeMedida,
                                                     command.IdSistema,
                                                     sistema_repository,
                                                     unidade_medida_repository
                                                     )));
 }
Example #10
0
 public InspecaoHandler(IInspecaoRepository inspecao_repository,
                        IUsuarioRepository usuario_repository,
                        IMapper mapper,
                        IInspecaoStatusRepository inspecao_status_repository,
                        ITurnoRepository turno_repository,
                        ISistemaRepository sistema_repository,
                        IInspecaoItemRepository inspecao_item_repository,
                        ISistemaItemRepository sistema_item_repository)
 {
     _usuario_repository  = usuario_repository;
     _inspecao_repository = inspecao_repository;
     _mapper = mapper;
     _inspecao_status_repository = inspecao_status_repository;
     _turno_repository           = turno_repository;
     _sistema_repository         = sistema_repository;
     _inspecao_item_repository   = inspecao_item_repository;
     _sistema_item_repository    = sistema_item_repository;
 }
Example #11
0
 public EstandarService(
     IEstandarRepository estandarRepository,
     IEventLogService eventLogService,
     IGrupoEstandarRepository grupoEstandarRepository,
     ICalificacionRepository calificacionRepository,
     ICategoriaRepository categoriaRepository,
     INivelRepository nivelRepository,
     IOpcionRepository opcionRepository,
     ISistemaRepository sistemaRepository,
     IClasificacionRepository clasificacionRepository)
 {
     _estandarRepository      = estandarRepository;
     _eventLogService         = eventLogService;
     _grupoEstandarRepository = grupoEstandarRepository;
     _calificacionRepository  = calificacionRepository;
     _categoriaRepository     = categoriaRepository;
     _nivelRepository         = nivelRepository;
     _opcionRepository        = opcionRepository;
     _sistemaRepository       = sistemaRepository;
     _clasificacionRepository = clasificacionRepository;
 }
Example #12
0
 public AtivarDesativarSistemaCommand(Guid idSistema, bool ativo, ISistemaRepository sistema_repository)
 {
     IdSistema           = idSistema;
     Ativo               = ativo;
     _sistema_repository = sistema_repository;
 }
 public SistemaController(ISistemaRepository sistemaRepository,
                          IMapper mapper)
 {
     _sistemaRepository = sistemaRepository;
     _mapper            = mapper;
 }
Example #14
0
 public SistemaController(ISistemaRepository contextDAO)
 {
     _contextDAO = contextDAO;
 }
Example #15
0
 public SistemaAppService(ISistemaRepository repo, IUnitOfWork uow) : base(uow)
 {
     _sistemaRepository = repo;
 }
Example #16
0
 public AtualizarOrdemSistemaCommand(List <SistemasOrdem> sistemasOrdem,
                                     ISistemaRepository sistema_repository)
 {
     SistemasOrdem       = sistemasOrdem;
     _sistema_repository = sistema_repository;
 }
Example #17
0
 public SistemaService(ISistemaRepository sistemaRepository,
                       IVariablesToken variables)
 {
     _sistemaRepository = sistemaRepository;
     _variables         = variables;
 }
 public SistemaController(ISistemaService sistemaService,
                          ISistemaRepository sistemaRepository)
 {
     _sistemaService    = sistemaService;
     _sistemaRepository = sistemaRepository;
 }
Example #19
0
 public SistemaService()
 {
     _repository = new SistemaRepository(new VisualTicketContext());
 }