private void Imprimir_Click(object sender, EventArgs e) { if (Clases.Variables.CheckSeleccionado == "1") { ReporteSaldos reportesaldos = new ReporteSaldos(); reportesaldos.Show(); } else { ReporteValor reporte = new ReporteValor(); reporte.Show(); } }
private void ImprimirPorFecha_Click(object sender, EventArgs e) { ReportePorFecha reporte = new ReportePorFecha(); reporte.ShowDialog(); if (reporte.DialogResult == DialogResult.OK) { Clases.LLenadoGrids.llenarGrid(GridCosto, Clases.Variables.ConsultaBuscar, "bienes"); decimal x = 0; foreach (DataGridViewRow row in GridCosto.Rows) { x = x + decimal.Parse(row.Cells[5].Value.ToString()); } Total.Text = x.ToString("C"); Clases.Variables.Total = Total.Text; LBTotalBienes.Text = GridCosto.RowCount.ToString(); ReporteValor reportes = new ReporteValor(); reportes.Show(); } }