Beispiel #1
0
        public void LancarNota(GabaritoProva respostas, Aluno aluno)
        {
            double valor = Gabarito.CalcularNota(respostas);

            NotaProva nota = new NotaProva(valor, aluno);

            LancarNota(nota);
        }
Beispiel #2
0
        public void LancarNota(NotaProva nota)
        {
            if (NaoPodeLancarNota(nota.Aluno))
                return;

            nota.Prova = this;

            Notas.Add(nota);
        }
 private object[] ParametrosNota(NotaProva nota)
 {
     return new Object[]
     {
         "ID", nota.Id,
         "ID_PROVA", nota.Prova.Id,
         "ID_ALUNO", nota.Aluno.Id,
         "VALOR", nota.Valor
     };
 }
Beispiel #4
0
 public void ReceberAvaliacao(NotaProva nota)
 {
     Notas.Add(nota);
 }
        private NotaProva ConverterNota(IDataReader reader)
        {
            int idNota = Convert.ToInt32(reader["ID_NOTA"]);
            double valorNota = Convert.ToDouble(reader["VALOR_NOTA"]);

            int idAluno = Convert.ToInt32(reader["ID_ALUNO"]);
            string nomeAluno = Convert.ToString(reader["NOME_ALUNO"]);

            NotaProva nota = new NotaProva(valorNota, new Aluno(idAluno, nomeAluno));

            return nota;
        }