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; } }