Exemplo n.º 1
0
        public DataTable Consultar_DataTable_Grid()
        {
            TransactionManager objTransaction = null;

            try
            {
                objTransaction = new TransactionManager(TransactionManager.OpcoesDeDataSource.ServidoDaLojaAtual);

                // TODO - Adaptar código comentado para a consulta que preenche telas do tipo GRID
                // Consultas.ComprasBUS busConsulta = new Consultas.ComprasBUS();
                // return busConsulta.Consultar_DataTable_Grid(objTransaction);
                return(null);
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                if (objTransaction != null)
                {
                    objTransaction.CloseConnection();
                }
            }
        }
Exemplo n.º 2
0
        public DataRow Selecionar_Por_Loja(int intLojasID)
        {
            TransactionManager objTransaction = null;

            try
            {
                objTransaction = new TransactionManager(TransactionManager.OpcoesDeDataSource.ServidoDaLojaAtual);

                return(this.Selecionar_Por_Loja(intLojasID, ref objTransaction));
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                if (objTransaction != null)
                {
                    objTransaction.CloseConnection();
                }
            }
        }
Exemplo n.º 3
0
        public DataTable Consultar_DataTable()
        {
            TransactionManager objTransaction = null;

            try
            {
                objTransaction = new TransactionManager(TransactionManager.OpcoesDeDataSource.ServidoDaLojaAtual);

                return(this.Consultar_DataTable(ref objTransaction));
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                if (objTransaction != null)
                {
                    objTransaction.CloseConnection();
                }
            }
        }
Exemplo n.º 4
0
        public List <Solicitacao_Pagamento_Forma_PagtoDO> Obter_DataObject_Forma_Pagamento()
        {
            TransactionManager objTransaction = null;

            try
            {
                objTransaction = new TransactionManager(TransactionManager.OpcoesDeDataSource.ServidorCentral);

                return(this.Obter_DataObject_Forma_Pagamento(ref objTransaction));
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                if (objTransaction != null)
                {
                    objTransaction.CloseConnection();
                }
            }
        }