Ejemplo n.º 1
0
        protected void btnDetallePagos_Click(object sender, EventArgs e)
        {
            try
            {
                string rut = lblRutDeudor.Text;

                string idMandante = Session["IdMandante"].ToString();
                LinkButton btn = (LinkButton)sender;
                GridViewRow row = (GridViewRow)btn.NamingContainer;

                Label _lblIdSucursal = (Label)grvPagos.Rows[row.RowIndex].FindControl("lblIdSucursal");
                
                DataTable dt = new DataTable();
                dt = dal.getBuscarDetallePagoRut(_lblIdSucursal.Text, null, 0, null, null, rut).Tables[0];
                Session["sessionDetallePagoExcel"] = dt;
                grvDetallePagos.DataSource = dt;
                grvDetallePagos.DataBind();
                grvDetallePagos.HeaderRow.TableSection = TableRowSection.TableHeader;
                
                ScriptManager.RegisterStartupScript(UpdatePanel12, UpdatePanel12.GetType(), "show", "$(function () { $('#" + Panel11.ClientID + "').modal('show'); });", true);
                UpdatePanel12.Update();
            }
            catch (Exception ex)
            {
                divAlerta.Visible = true;
                lblInfo.Text = ex.Message;
            }
        }
Ejemplo n.º 2
0
        protected void btnDetallePagosTotal_Click(object sender, EventArgs e)
        {
            try
            {
                string rut = lblRutDeudor.Text;

                DataTable dt = new DataTable();
                dt = dal.getBuscarDetallePagoRut(null, null, 0, null, null, rut).Tables[0];
                grvDetallePagos.DataSource = dt;
                grvDetallePagos.DataBind();
                grvDetallePagos.HeaderRow.TableSection = TableRowSection.TableHeader;

                ScriptManager.RegisterStartupScript(UpdatePanel12, UpdatePanel12.GetType(), "show", "$(function () { $('#" + Panel11.ClientID + "').modal('show'); });", true);
                UpdatePanel12.Update();
            }
            catch (Exception ex)
            {
                divAlerta.Visible = true;
                lblInfo.Text = ex.Message;
            }
        }