private void BotonGuardar() { if (this.validaCampos()) { if (Graba == 1) { this.InsertaRegistro(); } NacfDDFt_detalledediferido.Copiar(txtPDFcodigo.Text); mostrar(); if (Graba == 2) { this.ActualizaRegistro(); } Graba = 0; this.BotonCancelar(); this.BotonRefrescar(); } else { this.MensajeOk(MensError); } }
private void mostrar() { this.Configura(); this.Activo = 1; this.tomaTab(); this.Botones(true); this.dataListado.DataSource = NacfDDFt_detalledediferido.Mostrar(txtPDFcodigo.Text); 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 PrevDataGRid(String PDFcodigo) { this.dataListado.DataSource = NacfDDFt_detalledediferido.Mostrar(PDFcodigo); }