protected void lstNegocios_SelectedIndexChanged(object sender, EventArgs e) { if (this.lstNegocios.SelectedIndex > 0) { this._breporte = new GestorDocumental.Controllers.ReportesController(); Captura cap = new Captura { NegId = int.Parse(this.lstNegocios.SelectedValue) }; this.lstDocs.DataSource = this._breporte.DocumentosNegocio(cap); this.lstDocs.DataTextField = "DocDescripcion"; this.lstDocs.DataValueField = "DocId"; this.lstDocs.DataBind(); this.UpdatePanel4.Update(); } }
protected void btnBuscar_Click(object sender, EventArgs e) { this._breporte = new GestorDocumental.Controllers.ReportesController(); List <ConsultaPorCedula_Result> lst = this._breporte.ConsultaPorCedula((Clientes)this.Session["CLIENTE"], this.txtCedula.Text); if (lst.Count == 1) { this.lblError.Text = "No existen negocios asociados al numero de cedula digitado"; this.lstNegocios.SelectedIndex = 0; this.lstNegocios.Enabled = false; this.lstDocs.Enabled = false; this.UpdatePanel3.Update(); this.UpdatePanel2.Update(); this.UpdatePanel4.Update(); } else { this.CargarNegocios(lst); this.lstNegocios.Enabled = true; this.lstDocs.Enabled = true; } }