Ejemplo n.º 1
0
        public ComprobanteXCliente_DatosInicialesBE ListarDatosIniciales(string usuario)//, int idCliente)
        {
            ComprobanteXCliente_DatosInicialesBE obe  = new ComprobanteXCliente_DatosInicialesBE();
            List <ComprobanteXClienteBE>         lobe = new List <ComprobanteXClienteBE>();
            List <ListaComboBE>     loCliente         = new List <ListaComboBE>();
            List <ListaComboTextBE> loComprobante     = new List <ListaComboTextBE>();

            using (SqlConnection con = new SqlConnection(strCnxRule))
            {
                con.Open();
                loCliente     = oMaestrosDA.Cliente(con, usuario, 0);
                loComprobante = oMaestrosDA.Comprobante(con, usuario);                     //, idCliente);
                lobe          = oComprobanteXClienteDA.ListarDatosIniciales(con, usuario); //, idCliente);
            }

            obe.loListado      = lobe;
            obe.loCliente      = loCliente;
            obe.loTipoDocVenta = loComprobante;

            return(obe);
        }