Example #1
0
        private void printBtn_Click(object sender, EventArgs e)
        {
            LetterOfRequestDialog dialog = new LetterOfRequestDialog();
            dialog.setSchoolName(searchByLastSchoolAttcb.Text);
            DialogResult result = dialog.ShowDialog();

            if (result.Equals(DialogResult.OK))
            {
                ReportViewer viewer = new ReportViewer();
                loadingScreen.Show();
                viewer.loadLetterOfRequest(Session.getInstance().SelectedCustomerList,dialog.schoolName,
                    dialog.schoolAddress,dialog.attainment, dialog.schoolYear);
                loadingScreen.Hide();
                viewer.Show();
            }
        }
Example #2
0
        private void basicEducationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EnrollmentReportDialog dialog = new EnrollmentReportDialog();
            DialogResult result = dialog.ShowDialog();

            if (result.Equals(DialogResult.OK))
            {
                ReportViewer viewer = new ReportViewer();
                loadingScreen.Show();
                List<Customer> students =
                    SQLData.getInstance().getAllCustomers(dialog.enrollmentStatus, dialog.level, dialog.section);
                viewer.loadAgeProfile(students);
                loadingScreen.Hide();
                viewer.Show();
            }
        }