- private static final String ERROR_RETRIEVING_RAISED_BILLS = "Error retrieving bills"
- + " or no bills are raised at this time.";
- private static final String FODT_EXT = "fodt";
- private static final String FLAT_OPENDOCUMENT_TEXT = "Flat OpenDocument text";
- private static final String ERROR_GENERATING = "Error generating";
+
+ private void menuAwaitingPaymentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuAwaitingPaymentActionPerformed
+ // TODO add your handling code here:
+ NoticesReportViewDialog frm = new NoticesReportViewDialog(this, false);
+ String [] cols = {"Reference Number", "Description", "Bill Date", "Bill Amount", "Client"};
+ ArrayList<Object> data = Utility.getPendingPaymentBills ();
+ if (data == null) {
+ JOptionPane.showMessageDialog(this, ERROR_DISPLAYING_REPORT);
+ return;
+ }
+ frm.setupReportTable(REPORT_TITLE_BILLS_AWAITING_PAYMENT, cols, data);
+ frm.setVisible(true);
+ }//GEN-LAST:event_menuAwaitingPaymentActionPerformed
+ private static final String ERROR_DISPLAYING_REPORT = "Error displaying report";
+ private static final String REPORT_TITLE_BILLS_AWAITING_PAYMENT = "Bills Awaiting Payment";