Exemplo n.º 1
0
        public Admin()

        {
            InitializeComponent();

            this.label5.Text = UserLog.getUserName();
            this.label1.Text = UserLog.getRole();
            this.label6.Text = SchoolYearModel.getSchoolYear();
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            yearC.updateSY(int.Parse(dgSY.SelectedRows[0].Cells[0].Value.ToString()));
            yearC.fillDataGridSY(ref dgSY);
            SchoolYearModel.setSchoolYear(dgSY.SelectedRows[0].Cells[1].Value.ToString());
            string          sy = yearC.getSyActivated();
            SchoolYearModel sc = new SchoolYearModel(sy);

            auditTrail.addAudit(label7.Text, "Activate School Year" + " " + sy);
            MessageBox.Show("Succesfully Updated School Year");
        }
Exemplo n.º 3
0
        public EnrollmentAdmin()
        {
            InitializeComponent();
            this.label5.Text = UserLog.getUserName();
            this.label1.Text = UserLog.getRole();
            this.label6.Text = SchoolYearModel.getSchoolYear();

            statusEnrollment = en.getStatusEnrollment();
            if (statusEnrollment == 0)
            {
                btnEnroll.Enabled = true;
                btnRecord.Enabled = true;
                button2.Enabled   = true;
                button1.Enabled   = true;
            }
            else
            {
                btnEnroll.Enabled = false;
                btnRecord.Enabled = false;
                button2.Enabled   = false;
                button1.Enabled   = false;
            }
        }
Exemplo n.º 4
0
 public GradeLevel()
 {
     InitializeComponent();
     timer1.Start();
     label4.Text = SchoolYearModel.getSchoolYear();
 }