Example #1
0
        //-----------------------------------------------------------------------------------
        // Inserta Registros
        //-----------------------------------------------------------------------------------
        private void InsertaRegistro()
        {
            string Rta = string.Empty;

            try
            {
                Rta = NacfRTRt_Reparotributario.Insertar(this.txtRTRperiodo.Text, this.txtRTRfecha.Text, this.txtRTRresponsable.Text, this.cb1.Checked, this.txtRTRcodigo.Text);

                if (Rta.Equals("OK"))
                {
                    this.MensajeOk("Regsitro Acgregado Correctamente");
                }
                else
                {
                    this.MensajeError("Error al Insertar Registro ");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.StackTrace);
            }
        }
        private void InsertaRegistro()
        {
            string Rta = string.Empty;

            try
            {
                Rta = NacfRTRt_Reparotributario.Insertar(this.txtRTRperiodo.Text, this.dtRTRfecha.Text, this.txtRTRresponsable.Text, this.txtRTRestado.Checked, this.txtRTRcodigo.Text);

                if (Rta.Equals("OK"))
                {
                    this.MensajeOk("Registro Agregado Correctamente");
                }
                else
                {
                    this.MensajeError(Rta);
                }
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.StackTrace);
            }



            if (checkBox1.Checked == true && checkBox2.Checked == false)
            {
                Form Frm_Excel_Reparo = new Frm_Excel_Reparo();
                Frm_Excel_Reparo.ShowDialog();
            }
            if (checkBox2.Checked == true && checkBox1.Checked == false)
            {
                NacfDRTt_detallereparotributario.Copiar(txtRTRcodigo.Text);
                mostrar();
            }
        }