Exemple #1
0
        protected void CargaCatalogos()
        {
            BLCatalogos objCatalogo = new BLCatalogos();

            grdDatos.DataSource = Fijos();
            grdDatos.DataBind();

            objCatalogo.CatalogoEjerciciosCHK(ref chkAnios, (int)DatosGenerales.ReportesSAP.Auxiliares_Acumulados);
            chkAnios.DataBind();

            objCatalogo.CatalogoSociedadesCHK(ref chkSociedades, (int)DatosGenerales.ReportesSAP.Auxiliares_Acumulados);
            chkSociedades.DataBind();

            objCatalogo.CatalogoCuentasCHK(ref chkCuentas, 0);
            chkCuentas.DataBind();

            if (chkAnios.Items.Count > 0)
            {
                chkAnios.SelectedIndex = 0;
            }

            if (chkSociedades.Items.Count > 0)
            {
                chkSociedades.SelectedIndex = 0;
            }

            if (chkCuentas.Items.Count > 0)
            {
                chkCuentas.SelectedIndex = 0;
            }
        }
        protected void CargaCatalogos()
        {
            BLCatalogos objCatalogo = new BLCatalogos();

            grdDatos.DataSource = Fijos();
            grdDatos.DataBind();

            objCatalogo.CatalogoSociedadesCHK(ref chkSociedades, 0);
            chkSociedades.DataBind();

            objCatalogo.CatalogoCuentasCHK(ref chkCuentas, 0);
            chkCuentas.DataBind();

            if (chkSociedades.Items.Count > 0)
            {
                chkSociedades.SelectedIndex = 0;
            }

            if (chkCuentas.Items.Count > 0)
            {
                chkCuentas.SelectedIndex = 0;
            }
        }