Beispiel #1
0
        private void readSheetToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (parkList.SelectedIndex != -1) {
                ParkReport report = new ParkReport(parkId);
                SelectDate obj = new SelectDate(parkId);
                obj.ShowDialog();

                report.generateReadSheet(obj.readDateSelected);
                MessageBox.Show("Read Sheet generated!");
            }
        }
Beispiel #2
0
        private void utilBtn_Click(object sender, EventArgs e)
        {
            if (parkList.SelectedIndex != -1) {
                ParkReport report = new ParkReport(parkId);
                Object[] read = DatabaseControl.getSingleRecord(new String[] { "DueDate" }, DatabaseControl.meterReadsTable,
                    "ParkID=@value0 ORDER BY MeterReadDate DESC", new Object[] { parkId });
                report.generateUtilReport((DateTime)read[0]);

                MessageBox.Show("Park Utility Report is generated!");
            }
        }
Beispiel #3
0
 private void eCReportToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (parkList.SelectedIndex != -1) {
         ParkReport report = new ParkReport(parkId);
         Object[] read = DatabaseControl.getSingleRecord(new String[] { "StartDate", "MeterReadDate" }, DatabaseControl.meterReadsTable,
             "ParkID=@value0 ORDER BY MeterReadDate DESC", new Object[] { parkId });
         report.generateExtraChargesReport((DateTime)read[0], (DateTime)read[1]);
         MessageBox.Show("Extra Charges Report is generated!");
     }
 }