void CargarDetalle(Resumen objresumen) { DataSet ds = new DataSet(); LogicaNegocio Ln = new LogicaNegocio(); ds = Ln.CargarDetalleCertificado(objresumen.idOperacion, objresumen.idEmpresa); if (ds.Tables[0].Rows.Count > 0) { txtEmpresa.Text = ds.Tables[0].Rows[0]["Empresa"].ToString(); txtNroCertificado.Text = ds.Tables[0].Rows[0]["NCF"].ToString(); txtFondo.Text = ds.Tables[0].Rows[0]["Fondo"].ToString(); txtAcreedor.Text = ds.Tables[0].Rows[0]["Acreedor"].ToString(); txtGiro.Text = ds.Tables[0].Rows[0]["Giro"].ToString();; txtDiasMora.Text = ds.Tables[0].Rows[0]["DiasMora"].ToString(); txtTramo.Text = ds.Tables[0].Rows[0]["Tramo"].ToString(); txtCapital.Text = ds.Tables[0].Rows[0]["CapitalMora"].ToString(); txtIntereses.Text = ds.Tables[0].Rows[0]["InteresMora"].ToString(); txtMontoMora.Text = ds.Tables[0].Rows[0]["MontoMora"].ToString(); txtCuotasMora.Text = ds.Tables[0].Rows[0]["CuotasMora"].ToString(); txtCuotasPagadas.Text = ds.Tables[0].Rows[0]["CuotasPagadas"].ToString(); txtCuotasPactadas.Text = ds.Tables[0].Rows[0]["CuotasPactadas"].ToString(); txtSaldoCertificado.Text = ds.Tables[0].Rows[0]["SaldoCertificado"].ToString(); txtGarantia.Text = ds.Tables[0].Rows[0]["GarantiaVA"].ToString(); txtFogape.Text = ds.Tables[0].Rows[0]["Fogape"].ToString(); txtCobertura.Text = ds.Tables[0].Rows[0]["Cobertura"].ToString(); txtDeudaCF.Text = ds.Tables[0].Rows[0]["DeudaCartera"].ToString(); } if (ds.Tables[1].Rows.Count > 0) { gridContactos.DataSource = ds.Tables[1]; gridContactos.DataBind(); } }