Ejemplo n.º 1
0
 public PedidoRetiradaController(ContexDataService db, IHttpContextAccessor httpContext)
 {
     this.modeloData      = new PedidoRetiradaData(db);
     this.clienteData     = new ClienteData(db);
     this.orgConfigData   = new OrgConfigData(db);
     this.organizacaoData = new OrganizacaoData(db);
     this.Sqlservice      = new SqlGenericData();
     this.contexto        = new ContextPage().ExtractContext(httpContext);
     this.enderecoData    = new EnderecoData(db);
 }
Ejemplo n.º 2
0
 public BalcaoVendasAPIController(SqlGeneric _sqlGeneric, SqlGenericRules _sqlRules, IHttpContextAccessor httpContext, ContexDataService db)
 {
     this.balcaoVendasData = new BalcaoVendasData(db);
     this.contaReceberData = new ContasReceberData(db);
     this.produtoData      = new ProdutoData(db);
     this.orgConfigData    = new OrgConfigData(db);
     this.sqlServices      = _sqlRules;
     this.sqlGeneric       = _sqlGeneric;
     this.contexto         = new ContextPage().ExtractContext(httpContext);
     this.clienteData      = new ClienteData(db);
     this.orgConfig        = this.orgConfigData.Get(this.contexto.idOrganizacao);
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
0
 public OrgConfigController(ContexDataService db, IHttpContextAccessor httpContext)
 {
     this.modeloData = new OrgConfigData(db);
     // this.contexto = new ContextPage(httpContext.HttpContext.Session.GetString("email"), httpContext.HttpContext.Session.GetString("organizacao"));
     this.contexto = new ContextPage().ExtractContext(httpContext);
 }