Exemplo n.º 1
0
        public ListaPrecoController(ContexDataService db, IHttpContextAccessor httpContext)
        {
            this.listaPrecoData = new ListaPrecoData(db);

            // this.contexto = new ContextPage(httpContext.HttpContext.Session.GetString("email"), httpContext.HttpContext.Session.GetString("organizacao"));
            this.contexto = new ContextPage().ExtractContext(httpContext);
        }
Exemplo n.º 2
0
 public PedidoController(ContexDataService db, IHttpContextAccessor httpContext)
 {
     this.pedidoData        = new PedidoData(db);
     this.produtoPedidoData = new ProdutoPedidoData(db);
     this.listaprecoData    = new ListaPrecoData(db);
     // this.contexto = new ContextPage(httpContext.HttpContext.Session.GetString("email"), httpContext.HttpContext.Session.GetString("organizacao"));
     this.contexto   = new ContextPage().ExtractContext(httpContext);
     this.Sqlservice = new SqlGenericData();
 }
Exemplo n.º 3
0
        public OrdemServicoController(SqlGenericData _sqlData, ContexDataService db, IHttpContextAccessor httpContext)
        {
            this.sqlData          = _sqlData;
            this.ordemServicoData = new OrdemServicoData(db);
            this.servicoOrdemData = new ServicoOrdemData(db);
            this.listaprecoData   = new ListaPrecoData(db);
            this.produtoOrdemData = new ProdutoOrdemData(db);

            this.contexto = new ContextPage().ExtractContext(httpContext);
        }
Exemplo n.º 4
0
 public BalcaoVendasController(ContexDataService db, IHttpContextAccessor httpContext)
 {
     this.balcaoVendasData = new BalcaoVendasData(db);
     this.listaprecoData   = new ListaPrecoData(db);
     this.clienteData      = new ClienteData(db);
     this.organizacaoData  = new OrganizacaoData(db);
     this.orgConfigData    = new OrgConfigData(db);
     this.produtoData      = new ProdutoData(db);
     this.contexto         = new ContextPage().ExtractContext(httpContext);
     this.Sqlservice       = new SqlGenericData();
     this.sqlGeneric       = new SqlGeneric();
 }