private void MostrarRegistro() { try { DataTable dat = NacfPDFt_procesodiferido.Mostrar(); if (dat.Rows.Count > 0) { DataRow row = dat.Rows[0]; txtPDFcodigo.Text = Convert.ToString(row["PDFcodigo"]); txtPDFperiodo.Text = Convert.ToString(row["PDFperiodo"]); dtpPDFfecha.Text = Convert.ToString(row["PDFfecha"]); txtPDFreponsable.Text = Convert.ToString(row["PDFreponsable"]); txtPDFestado.Text = Convert.ToString(row["PDFestado"]); } else { MessageBox.Show("No Existe", "Registro"); } } catch (Exception ex) { MessageBox.Show(ex.Message + ex.StackTrace); } }
private void mostrar() { this.Configura(); this.Activo = 1; this.tomaTab(); this.Botones(true); this.dataListado.DataSource = NacfPDFt_procesodiferido.Mostrar(); lblTotal.Text = "Total de Registros: " + Convert.ToString(dataListado.Rows.Count); if (dataListado.Rows.Count == 0) { BotonesSinReg(false); } else { BotonesSinReg(true); this.toolStripAgregar.Enabled = true; } this.dataListado.Select(); this.dataListado.Focus(); }
private void BotonImprimir() { FrmReportes rptalu = new FrmReportes("Reportes\\Rpt_PDFProcesoDiferido.rdlc", NacfPDFt_procesodiferido.Mostrar(), "ip"); rptalu.ShowDialog(); }