private void guardarCorrelativos() { if (string.IsNullOrWhiteSpace(txtCorrelativoActual.Text.ToString())) { MessageBox.Show("El Campo de Correlativo Inicial se encuentra vacio o contiene un espacio, favor de colocar un dato en el campo"); txtCorrelativoActual.Focus(); } else if (string.IsNullOrWhiteSpace(txtCorrelativoFinal.Text.ToString())) { MessageBox.Show("El Campo de Correlativo Final se encuentra vacio o contiene un espacio, favor de colocar un dato en el campo"); txtCorrelativoFinal.Focus(); } else if (string.IsNullOrWhiteSpace(txtSerie.Text.ToString())) { MessageBox.Show("El Campo de Serie se encuentra vacio o contiene un espacio, favor de colocar un dato en el campo"); txtSerie.Focus(); } else if (Convert.ToDecimal(txtCorrelativoActual.Text) > Convert.ToDecimal(txtCorrelativoFinal.Text)) { MessageBox.Show("El Valor del Correlativo Inicial no puede ser Mayor al Valor del Correlativo Final"); txtCorrelativoActual.Focus(); } else { REC01_CORRELATIVO_RECIBO objcorrelativo = new REC01_CORRELATIVO_RECIBO(); objcorrelativo.CORRELATIVO_ACTUAL = Convert.ToDecimal(txtCorrelativoActual.Text); objcorrelativo.CORRELATIVO_FINAL = Convert.ToDecimal(txtCorrelativoFinal.Text); objcorrelativo.SERIE = txtSerie.Text; Recibo objrecibo = new Recibo(); Mensaje <Recibo> objrespuesta = objrecibo.guardarCorrelativoFisico(objcorrelativo); MessageBox.Show(objrespuesta.mensaje); frmReciboEvento fp = new frmReciboEvento(); this.Hide(); fp.ShowDialog(); this.Close(); } }