Example #1
0
 public frmAvControlar(Usuario user)
 {
     InitializeComponent();
     msmDia = true;
     ava = new Avaliacao();
     status = "Todas";
     ttbAluno.Enabled = false;
     ttbAvaliador.Enabled = false;
     chAllAluno.Checked = true;
     rbTodas.Checked = true;
     dtpFim.Value = DateTime.Today;
     dtpInicio.Value = DateTime.Today;
     func = new Funcionario();
     alu = new Aluno();
     this.user = user;
     chkPeriodo.Checked = true;
     atualizaInfo();
     if (!user.hasPermissionField("escolher funcionário"))
     {
         isADM = false;
         func = func.getFuncByUser(user.Id);
         this.Text = "Agenda " + func.Nome;
         ttbAvaliador.Text = func.Nome;
         ava.FuncId = func.Id;
         gpbAvaliador.Enabled = false;
         gpbInfo.Visible = false;
     }
     else
         isADM = true;
     buscar();
 }