def carregarAlunosPorSerie(self):
     aluno = Aluno()
     self.carregarAlunoComTurma()
     lista = aluno.listaDb()
     self.listaAlunos = []
     self.listaAlunosBox = []
     for i in lista:
         aluno.carregar(i[0])
         if i[0] in self.alunosComTurma:continue
         elif aluno.getTurno() == self.getTurno() and aluno.getSerie() == self.getSerie():
             self.listaAlunosBox += [i[1]]
             self.listaAlunos +=[i[0]]
     self.listaAlunosTodos.Set(self.listaAlunosBox)
Пример #2
0
 def carregarAlunosPorSerie(self):
     aluno = Aluno()
     self.carregarAlunoComTurma()
     lista = aluno.listaDb()
     self.listaAlunos = []
     self.listaAlunosBox = []
     for i in lista:
         aluno.carregar(i[0])
         if i[0] in self.alunosComTurma: continue
         elif aluno.getTurno() == self.getTurno() and aluno.getSerie(
         ) == self.getSerie():
             self.listaAlunosBox += [i[1]]
             self.listaAlunos += [i[0]]
     self.listaAlunosTodos.Set(self.listaAlunosBox)
Пример #3
0
 def carregarDados(self):
     aluno = Aluno()
     try:
         if aluno.carregar(self.campoCPFA.GetValue()):
             self.campoCPFA.SetValue(aluno.getCpf())
             self.campoNomeA.SetValue(aluno.getNome())
             self.campoNascimentoA.SetValue(
                 self.invertData(str(aluno.getData())))
             if aluno.getSexo() == 1:
                 self.sexoMAluno.SetValue(True)
             else:
                 self.sexoFAluno.SetValue(True)
             self.campoCEP.SetValue(aluno.getCep())
             self.campoUF.SetValue(aluno.getUf())
             self.campoCidade.SetValue(aluno.getCidade())
             self.campoBairro.SetValue(aluno.getBairro())
             self.campoEndereco.SetValue(aluno.getRua())
             self.campoNumero.SetValue(str(aluno.getNum()))
             self.campoComplemento.SetValue(aluno.getComp())
             self.campoTelefone.SetValue(aluno.getTelefone())
             self.campoCelular.SetValue(aluno.getCelular())
             self.setSerie(aluno.getSerie())
             self.setTurno(aluno.getTurno())
             self.verificador = 1
         else:
             None
     except:
         None
 def carregarDados(self):
     aluno = Aluno()
     try:
         if aluno.carregar(self.campoCPFA.GetValue()):
             self.campoCPFA.SetValue(aluno.getCpf())
             self.campoNomeA.SetValue(aluno.getNome())
             self.campoNascimentoA.SetValue(self.invertData(str(aluno.getData())))
             if aluno.getSexo()== 1:
                 self.sexoMAluno.SetValue(True)
             else:
                 self.sexoFAluno.SetValue(True)
             self.campoCEP.SetValue(aluno.getCep())
             self.campoUF.SetValue(aluno.getUf())
             self.campoCidade.SetValue(aluno.getCidade())
             self.campoBairro.SetValue(aluno.getBairro())
             self.campoEndereco.SetValue(aluno.getRua())
             self.campoNumero.SetValue(str(aluno.getNum()))
             self.campoComplemento.SetValue(aluno.getComp())
             self.campoTelefone.SetValue(aluno.getTelefone())
             self.campoCelular.SetValue(aluno.getCelular())
             self.setSerie(aluno.getSerie())
             self.setTurno(aluno.getTurno())
             self.verificador = 1
         else:
             None
     except:
         None
 def carregarAlunosTurma(self, turmaId):
     turma = Turma()
     aluno = Aluno()
     self.listaAlTurmaNome = []
     turma.carregarAluno(turmaId)
     self.listaAlTurmaId = turma.getAlunos()
     for i in self.listaAlTurmaId:
         if aluno.carregar(i):
             self.listaAlTurmaNome += [aluno.getNome()]
     self.listaAlunosSelecionados.Set(self.listaAlTurmaNome)
Пример #6
0
 def carregarAlunosTurma(self, turmaId):
     turma = Turma()
     aluno = Aluno()
     self.listaAlTurmaNome = []
     turma.carregarAluno(turmaId)
     self.listaAlTurmaId = turma.getAlunos()
     for i in self.listaAlTurmaId:
         if aluno.carregar(i):
             self.listaAlTurmaNome += [aluno.getNome()]
     self.listaAlunosSelecionados.Set(self.listaAlTurmaNome)
 def excluirAlunosTurma(self, alunoId):
     aluno = Aluno()
     aluno.carregar(alunoId)
     self.listaAlTurmaId.remove(alunoId)
     self.listaAlTurmaNome.remove(aluno.getNome())
 def salvarAlunosTurma(self, alunoId):
     aluno = Aluno()
     if aluno.carregar(alunoId):
         self.listaAlTurmaId += [alunoId]
         self.listaAlTurmaNome += [aluno.getNome()]
     self.listaAlunosSelecionados.Set(self.listaAlTurmaNome)
Пример #9
0
 def excluirAlunosTurma(self, alunoId):
     aluno = Aluno()
     aluno.carregar(alunoId)
     self.listaAlTurmaId.remove(alunoId)
     self.listaAlTurmaNome.remove(aluno.getNome())
Пример #10
0
 def salvarAlunosTurma(self, alunoId):
     aluno = Aluno()
     if aluno.carregar(alunoId):
         self.listaAlTurmaId += [alunoId]
         self.listaAlTurmaNome += [aluno.getNome()]
     self.listaAlunosSelecionados.Set(self.listaAlTurmaNome)