Ejemplo n.º 1
0
        private void CargaGrilla()
        {
            DataTable table = ConsultasEspecificas.ConsultaGeneralBieneMuebles(this.txtRut.Text, this.txtNroOperacion.Text, this.ddlCliente.SelectedValue, this.ddlTribunal.SelectedValue);

            if (table.Rows.Count > 0)
            {
                lab_Total_Registros.Text = table.Rows.Count.ToString();
                this.Grilla.DataSource   = table;
                this.Grilla.DataBind();
                this.Session["ReporteExcelConsultaGeneralBieneMuebles"] = Grilla.DataSource;
            }
            else
            {
                this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('No hay registros por los datos consultados');</script>");
            }

            //this.Grilla.DataSource = ALC_FW20.ALCLOCAL.Consulta.ConsultaCobranzaConsulta(this.txtRut.Text, this.txtNroOperacion.Text);
            //this.Grilla.DataBind();
        }