Пример #1
0
        private void Button1_Click_1(object sender, EventArgs e)
        {
            SQL_tramites tramite = new SQL_tramites();


            tramite.Ingresar_Transacciones(noCui, DateTime.Now.ToString("yyyy-MM-dd"));
            tramite.Ingresar_Progreso(noCui);
            this.Hide();
            Tramites tra = new Tramites(noCui, tramite.ConsultarIdTramites(noCui));

            tra.Show();
        }
Пример #2
0
        private void Button1_Click_1(object sender, EventArgs e)
        {
            SQL_tramites tramite = new SQL_tramites();

            if (txtNom.Text != "" && txtNom.Text != " ")
            {
                tramite.Ingresar_Transacciones(txtNom.Text, noCui, DateTime.Now.ToString("yyyy-MM-dd"));
                this.Hide();
                Tramites nuevo = new Tramites(noCui, txtNom.Text);
                nuevo.Show();
            }
            else
            {
                MessageBox.Show("Por favor coloque un nombre al tramite");
            }
        }