示例#1
0
文件: TenantBill.cs 项目: mchuang/PUB
        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!");
            }
        }
示例#2
0
文件: TenantBill.cs 项目: mchuang/PUB
        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!");
            }
        }
示例#3
0
文件: TenantBill.cs 项目: mchuang/PUB
 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!");
     }
 }