public IList <CondicoesPagamentoDTO> selectPagina(int primeiroResultado, int quantidadeResultados, CondicoesPagamentoDTO condicoesPagamento)
 {
     try
     {
         IList <CondicoesPagamentoDTO> resultado = base.selectPagina <CondicoesPagamentoDTO>(primeiroResultado, quantidadeResultados, condicoesPagamento);
         foreach (CondicoesPagamentoDTO condicoesPag in resultado)
         {
             NHibernateDAL <CondicoesParcelaDTO> DAL = new NHibernateDAL <CondicoesParcelaDTO>(session);
             condicoesPag.ListaCondicoesParcela = DAL.select <CondicoesParcelaDTO>(
                 new CondicoesParcelaDTO {
                 IdCondicoesPagamento = condicoesPag.Id
             });
         }
         return(resultado);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public IList <VendaCabecalhoDTO> selectPagina(int primeiroResultado, int quantidadeResultados, VendaCabecalhoDTO objeto)
 {
     try
     {
         IList <VendaCabecalhoDTO> resultado = base.selectPagina <VendaCabecalhoDTO>(primeiroResultado, quantidadeResultados, objeto);
         foreach (VendaCabecalhoDTO objLista in resultado)
         {
             NHibernateDAL <VendaDetalheDTO> DAL = new NHibernateDAL <VendaDetalheDTO>(session);
             objLista.ListaVendaDetalhe = DAL.select <VendaDetalheDTO>(
                 new VendaDetalheDTO {
                 IdVendaCabecalho = objLista.Id
             });
         }
         return(resultado);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public IList <CondicoesPagamentoDTO> select(CondicoesPagamentoDTO condicoesPagamento)
        {
            try
            {
                IList <CondicoesPagamentoDTO> resultado = base.select <CondicoesPagamentoDTO>(condicoesPagamento);

                foreach (CondicoesPagamentoDTO condicoesPag in resultado)
                {
                    NHibernateDAL <CondicoesParcelaDTO> DAL = new NHibernateDAL <CondicoesParcelaDTO>(session);
                    condicoesPag.ListaCondicoesParcela = DAL.select <CondicoesParcelaDTO>(
                        new CondicoesParcelaDTO {
                        IdCondicoesPagamento = condicoesPag.Id
                    });
                }
                return(resultado);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public IList <VendaCabecalhoDTO> select(VendaCabecalhoDTO objeto)
        {
            try
            {
                IList <VendaCabecalhoDTO> resultado = base.select <VendaCabecalhoDTO>(objeto);

                foreach (VendaCabecalhoDTO objP in resultado)
                {
                    NHibernateDAL <VendaDetalheDTO> DAL = new NHibernateDAL <VendaDetalheDTO>(session);
                    objP.ListaVendaDetalhe = DAL.select <VendaDetalheDTO>(
                        new VendaDetalheDTO {
                        IdVendaCabecalho = objP.Id
                    });
                }
                return(resultado);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }