protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack && !string.IsNullOrEmpty(base.Request.QueryString["Codigo"])) { string idJuico = base.Request.QueryString["Codigo"].ToString(); this.hiddidjuicio.Value = idJuico.ToString(); this.Grilla.PagerSettings.Mode = PagerButtons.Numeric; this.CargaGrilla(idJuico); CabezeraGastosDTO sdto = new CabezeraGastosDTO(); sdto = (CabezeraGastosDTO)this.Session["CabezeraGastos"]; if (sdto != null) { this.txtDeudor.Text = sdto.Deudor.ToString(); this.txtNoperacion.Text = sdto.Noperacion.ToString(); this.txtRol.Text = sdto.Rol.ToString(); this.txtTribunal.Text = sdto.Tribunal.ToString(); } } }
private void MostrarDatosJuicioActividad(int idCobranza) { DataTable table = ConsultasEspecificas.MostrarDatosCabezeraGastos(idCobranza.ToString()); if (table != null && table.Rows.Count > 0) { this.txtNroOperacion.Text = table.Rows[0]["nrooperacion"].ToString(); this.txtCliente.Text = table.Rows[0]["nomcliente"].ToString(); this.txtRutDeudor.Text = table.Rows[0]["rut_deudor"].ToString(); this.txtNomDeudor.Text = table.Rows[0]["nomdeudor"].ToString(); this.txtRol.Text = table.Rows[0]["rol"].ToString(); this.txtTribunal.Text = table.Rows[0]["tribunal"].ToString(); CabezeraGastosDTO sdto = new CabezeraGastosDTO { Deudor = table.Rows[0]["nomdeudor"].ToString(), Noperacion = table.Rows[0]["nrooperacion"].ToString(), Rol = table.Rows[0]["rol"].ToString(), Tribunal = table.Rows[0]["tribunal"].ToString() }; this.Session["CabezeraGastos"] = sdto; } }