protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack && !string.IsNullOrEmpty(base.Request.QueryString["Codigo"])) { string idcobranza = base.Request.QueryString["Codigo"].ToString(); this.hiddidCobranza.Value = idcobranza.ToString(); this.Grilla.PagerSettings.Mode = PagerButtons.Numeric; this.CargaGrilla(idcobranza); CabezaPrejudicialDTO ldto = new CabezaPrejudicialDTO(); ldto = (CabezaPrejudicialDTO)this.Session["CabezeraActividadesPrejudicial"]; if (ldto != null) { this.txtDeudor.Text = ldto.Nom_Deudor.ToString(); this.txtrutdeudor.Text = ldto.Rut_Deudor.ToString(); this.txtcliente.Text = ldto.Nom_Cli.ToString(); this.txtNrooperacion.Text = ldto.NroOperacion.ToString(); } } }
private void MostrarDatosActividadCobranza(string id_cobranza) { DataTable table = null; table = ConsultasEspecificas.MostrarDatosActividadCobranza(id_cobranza); if ((table.Rows.Count > 0) && (table != null)) { this.txtNroOperacion.Text = table.Rows[0]["nrooperacion"].ToString(); this.txtCliente.Text = table.Rows[0]["cliente"].ToString(); this.txtRutDeudor.Text = table.Rows[0]["rut_deudor"].ToString(); this.txtNomDeudor.Text = table.Rows[0]["deudor"].ToString(); CabezaPrejudicialDTO ldto = new CabezaPrejudicialDTO { NroOperacion = table.Rows[0]["nrooperacion"].ToString(), Nom_Cli = table.Rows[0]["cliente"].ToString(), Rut_Deudor = table.Rows[0]["rut_deudor"].ToString(), Nom_Deudor = table.Rows[0]["deudor"].ToString() }; this.Session["CabezeraActividadesPrejudicial"] = ldto; } }
private void MostrarDatosCobranzaPrejudicial(string id_cobranza) { string str = ""; DataTable table = null; table = ConsultasEspecificas.MostrarDatosCobranzaPrejudicial(id_cobranza); if ((table.Rows.Count > 0) && (table != null)) { this.lblCliente.Text = table.Rows[0]["cliente"].ToString(); this.lblDeudor.Text = table.Rows[0]["deudor"].ToString(); this.lblRutDeudor.Text = table.Rows[0]["rut_deudor"].ToString(); str = table.Rows[0]["rut_deudor"].ToString(); this.lblnrooperacion.Text = table.Rows[0]["nrooperacion"].ToString(); this.lblfechaingresocob.Text = table.Rows[0]["fproceso"].ToString(); this.lbltipodoc.Text = table.Rows[0]["producto"].ToString(); this.lblcantidad.Text = table.Rows[0]["contador"].ToString(); this.lblnumero.Text = table.Rows[0]["codigo"].ToString(); DataTable table2 = null; table2 = ConsultasEspecificas.MostrarTelefonoDeudor(str); if ((table2.Rows.Count > 0) && (table2 != null)) { this.lbltelefono1.Text = table2.Rows[0]["telefono1"].ToString(); this.lbltelefono2.Text = table2.Rows[0]["telefono2"].ToString(); this.lblcelular.Text = table2.Rows[0]["celular1"].ToString(); } CabezaPrejudicialDTO ldto = new CabezaPrejudicialDTO { NroOperacion = table.Rows[0]["nrooperacion"].ToString(), Nom_Cli = table.Rows[0]["cliente"].ToString(), Rut_Deudor = table.Rows[0]["rut_deudor"].ToString(), Nom_Deudor = table.Rows[0]["deudor"].ToString() }; this.Session["CabezeraActividadesPrejudicial"] = ldto; string str2 = string.Format("{0:N0}", table.Rows[0]["montocapital"]); this.lblMontoCapital.Text = str2.Replace(",", "."); str2 = ""; this.lblSaldoDeuda.Text = string.Format("{0:N0}", table.Rows[0]["saldodeuda"]).Replace(",", "."); } }