コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            c.avaliaçao_aluno_professor("Professor", Convert.ToInt32(texto_id_aluno.Text), Convert.ToInt32(texto_id_professor.Text), Convert.ToInt32(texto_ano.Text), Convert.ToInt32(texto_bimestre.Text), Convert.ToInt32(texto_nota.Text));
            Close();
            MessageBox.Show("Avaliação enviada com sucesso!");
            Homepage_Prof home_prof = new Homepage_Prof();

            home_prof.Show();
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (c.confirmaçao_aluno(Convert.ToInt32(texto_id_aluno.Text)) == true)
     {
         c.controle_frequencia(Convert.ToInt32(texto_id_aluno.Text), texto_ano.Text, texto_mes.Text, texto_dia.Text);
         Close();
         MessageBox.Show("Presença registrada com sucesso!");
         Homepage_Prof home_prof = new Homepage_Prof();
         home_prof.Show();
     }
 }
コード例 #3
0
 private void bt_login_Click(object sender, EventArgs e)
 {
     if (c.login(textbox_usuario.Text, textbox_senha.Text, "Professor") == true)
     {
         Hide();
         var homepageProf = new Homepage_Prof();
         homepageProf.Show();
     }
     else
     {
         MessageBox.Show("Usuário ou Senha não existem!");
     }
 }
コード例 #4
0
        private void botão_emitirboletim_Click(object sender, EventArgs e)
        {
            b.Id_Aluno = Convert.ToInt32(texto_id_aluno.Text);
            b.Ano      = Convert.ToInt32(texto_ano.Text);
            b.Bimestre = Convert.ToInt32(texto_bimestre.Text);

            if (c.confirmaçao_aluno(b.Id_Aluno) == true)
            {
                c.Emitir_Boletim(b.Id_Aluno, b.Ano, b.Bimestre);
                Close();
                MessageBox.Show("Boletim gerado com sucesso");
                Homepage_Prof home_prof = new Homepage_Prof();
                home_prof.Show();
            }
        }
コード例 #5
0
        private void botão_lançamento_Click(object sender, EventArgs e)
        {
            _ln.Id_Aluno = Convert.ToInt32(texto_idaluno.Text);
            _ln.Ano      = Convert.ToInt32(texto_ano.Text);
            _ln.Bimestre = Convert.ToInt32(texto_bimestre.Text);
            _ln.Nota     = Convert.ToInt32(texto_nota.Text);
            switch (combobox_materia.SelectedItem)
            {
            case "Português":
                _ln.Materia = 1;
                break;

            case "Matemática":
                _ln.Materia = 2;
                break;

            case "Biologia":
                _ln.Materia = 3;
                break;

            case "Geografia":
                _ln.Materia = 4;
                break;

            case "História":
                _ln.Materia = 5;
                break;
            }
            if (_ln.Nota > 10)
            {
                MessageBox.Show("A nota deve ser menor ou igual a 10!");
            }
            else
            {
                if (c.confirmaçao_aluno(_ln.Id_Aluno) == true)
                {
                    c.Lançamento_Nota(_ln.Id_Aluno, _ln.Materia, _ln.Ano, _ln.Bimestre, _ln.Nota);
                    Close();
                    MessageBox.Show("Nota inserida com sucesso!");
                    Homepage_Prof home_prof = new Homepage_Prof();
                    home_prof.Show();
                }
            }
        }