Example #1
0
        private void Button1_Click_1(object sender, EventArgs e)
        {
            setButtonsColors(button1);
            SQL_tramites tra = new SQL_tramites();

            progreso    = tra.ConsultarProgreso(nom);
            label4.Text = progreso;
            ConsultarPasos(progreso);
            tabControl1.SelectedIndex = 0;
        }
Example #2
0
        private void Button6_Click(object sender, EventArgs e)
        {
            setButtonsColors(button6);
            SQL_tramites tra = new SQL_tramites();

            tra.ActualizarProgreso(nom, "100%");
            progreso    = tra.ConsultarProgreso(nom);
            label4.Text = progreso;
            ConsultarPasos(progreso);
            tabControl1.SelectedIndex = 5;
            entregaPasaporte1.getCUI(noCui, noTramite);
        }
Example #3
0
        private void Button3_Click(object sender, EventArgs e)
        {
            setButtonsColors(button3);
            SQL_tramites tra = new SQL_tramites();

            tra.ActualizarProgreso(nom, "40%");
            progreso    = tra.ConsultarProgreso(nom);
            label4.Text = progreso;
            ConsultarPasos(progreso);
            tabControl1.SelectedIndex = 2;
            button4.Enabled           = true;
        }
Example #4
0
        private void Button2_Click(object sender, EventArgs e)
        {
            setButtonsColors(button2);
            tabControl1.SelectedIndex = 1;
            SQL_tramites tra = new SQL_tramites();

            tra.ActualizarProgreso(nom, "20%");
            progreso    = tra.ConsultarProgreso(nom);
            label4.Text = progreso;
            ConsultarPasos(progreso);
            recepcion1.ObtenerCui(noCui);
            recepcion1.ObtenerTramite(noTramite);
            button3.Enabled = true;
        }
Example #5
0
        public Principal(string nomT, string Cui)
        {
            nom   = nomT;
            noCui = Cui;
            InitializeComponent();
            SQL_tramites tra   = new SQL_tramites();
            SQL_Usuarios users = new SQL_Usuarios();

            progreso    = tra.ConsultarProgreso(nom);
            label4.Text = progreso;
            ConsultarPasos(progreso);
            label3.Text = users.ConsultarNombre(noCui);
            setButtonsColors(button1);
            verifica1.cui = noCui;
        }
Example #6
0
        private void Button4_Click(object sender, EventArgs e)
        {
            SQL_Citas cita = new SQL_Citas();

            if (cita.ConsultarCita(noCui) != "0")
            {
                button7.Enabled = false;
                lblCita.Text    = cita.ConsultarCita(noCui);
            }
            button8.Enabled = true;
            setButtonsColors(button4);
            SQL_tramites tra = new SQL_tramites();

            tra.ActualizarProgreso(nom, "60%");
            progreso    = tra.ConsultarProgreso(nom);
            label4.Text = progreso;
            ConsultarPasos(progreso);
            tabControl1.SelectedIndex = 3;
            button5.Enabled           = true;
        }
Example #7
0
        private void Button5_Click(object sender, EventArgs e)
        {
            SQL_Requisitos requisitos = new SQL_Requisitos();

            // ENTREVISTA
            if (requisitos.ConsultarEntrevista(nom) == "SI")
            {
                pictureBox12.BackgroundImage = global::migracion_2020.Properties.Resources.correct;
            }
            else
            {
                pictureBox12.BackgroundImage = global::migracion_2020.Properties.Resources.no_completo;
            }
            // FOTO
            if (requisitos.ConsultarPasaporte(noCui) == "SI")
            {
                pictureBox13.BackgroundImage = global::migracion_2020.Properties.Resources.correct;
            }
            else
            {
                pictureBox13.BackgroundImage = global::migracion_2020.Properties.Resources.no_completo;
            }
            //ORDEN
            if (requisitos.ConsultarOrdendeImpresion(noCui) == "SI")
            {
                pictureBox14.BackgroundImage = global::migracion_2020.Properties.Resources.correct;
            }
            else
            {
                pictureBox14.BackgroundImage = global::migracion_2020.Properties.Resources.no_completo;
            }
            setButtonsColors(button5);
            SQL_tramites tra = new SQL_tramites();

            tra.ActualizarProgreso(nom, "80%");
            progreso    = tra.ConsultarProgreso(nom);
            label4.Text = progreso;
            ConsultarPasos(progreso);
            tabControl1.SelectedIndex = 4;
            button6.Enabled           = true;
        }