Esempio n. 1
0
        public addEnrollmentSched()
        {
            InitializeComponent();
            int currentYear = yearController.getSchoolYearId();

            dateTimePicker1.MinDate = new DateTime(DateTime.Now.Year, 1, 1);
        }
Esempio n. 2
0
        private void Classroom_Load(object sender, EventArgs e)
        {
            label5.Hide();
            label7.Hide();
            timer1.Start();
            label5.Text = yr.getSyActivated();
            syid        = yr.getSchoolYearId();

            refreshGrid();
        }
Esempio n. 3
0
 private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox3.SelectedIndex == 1)
     {
         comboBox1.Visible   = true;
         txtUsername.Visible = false;
         button12.Visible    = false;
         selectedYrid        = 0;
     }
     else
     {
         comboBox1.Visible   = false;
         txtUsername.Visible = true;
         button12.Visible    = true;
         selectedYrid        = yr.getSchoolYearId();
     }
 }
Esempio n. 4
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count > 0)
            {
                DialogResult form1 = MessageBox.Show("Do you really want to Remove?",
                                                     "Exit", MessageBoxButtons.YesNo);


                if (form1 == DialogResult.Yes)
                {
                    sectionController.removeSection(int.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()),
                                                    yr.getSchoolYearId());

                    MessageBox.Show("Succesfully Remove a section");
                    auditTrail.addAudit(label7.Text, "Remove Section");
                    refreshGrid();
                }
            }
        }
Esempio n. 5
0
 public studentreserve()
 {
     InitializeComponent();
     syid = YearController.getSchoolYearId();
 }
Esempio n. 6
0
 private void refreshGrid()
 {
     gradeLevelController.fillDataGridGrade(ref dataGridView1, YearController.getSchoolYearId());
 }
Esempio n. 7
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool isValid = checkValidation();

            if (isValid)
            {
                if (!isEdited)
                {
                    sect.addSection(comboBox1.SelectedItem.ToString(), teacherId, textBox1.Text.Trim(), int.Parse(textBox2.Text.ToString().Trim()));
                    auditTrail.addAudit(label5.Text, "Added Section " + textBox1.Text.Trim() + " For " + comboBox1.SelectedItem.ToString());

                    this.Hide();
                }
                else
                {
                    sect.updateSection(sect_id, comboBox1.SelectedItem.ToString(), teacherId, textBox1.Text.Trim(), yr.getSchoolYearId(), int.Parse(textBox2.Text.Trim()));
                    auditTrail.addAudit(label5.Text, "Updated Section For " + comboBox1.SelectedItem.ToString());
                    this.Hide();
                }
            }
        }
Esempio n. 8
0
 private void SchoolRequirements_Load(object sender, EventArgs e)
 {
     schoolYrId = yearController.getSchoolYearId();
     refreshGrid();
 }
Esempio n. 9
0
 public ModeOfPaymentDiscount()
 {
     InitializeComponent();
     syid = YearController.getSchoolYearId();
 }
Esempio n. 10
0
 public PanelViewTeacherSched()
 {
     InitializeComponent();
     syid        = yrController.getSchoolYearId();
     teachersIds = specializationController.fillDataTeacherCombo(ref comboBox1);
 }
Esempio n. 11
0
 private void refreshGrid()
 {
     timestampController.fillDataTime(ref dataGridView1, yearController.getSchoolYearId());
 }