+
+ 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"};
+ int rep = 0;
+ ArrayList<Object> data = Utility.getReportData(rep, -1);
+ if (data == null) {
+ JOptionPane.showMessageDialog(this, ERROR_DISPLAYING_REPORT);
+ return;
+ }
+ frm.setupReportTable(rep, REPORT_TITLE_BILLS_AWAITING_PAYMENT, cols, data);
+ frm.setVisible(true);
+ }//GEN-LAST:event_menuAwaitingPaymentActionPerformed
+
+ private void menuNoticesSentNotYetDeliveredActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNoticesSentNotYetDeliveredActionPerformed
+ // TODO add your handling code here:
+ NoticesReportViewDialog frm = new NoticesReportViewDialog(this, false);
+ String[] cols = {"Reference Number", "Description", "Sent Date", "RPAD Reference", "Client"};
+ int rep = 1;
+ ArrayList<Object> data = Utility.getReportData (rep, -1);
+ if (data == null) {
+ JOptionPane.showMessageDialog(this, ERROR_DISPLAYING_REPORT);
+ return;
+ }
+ frm.setupReportTable(rep, REPORT_TITLE_NOTICES_SENT_NOT_DELIVERED, cols, data);
+ frm.setVisible (true);
+ }//GEN-LAST:event_menuNoticesSentNotYetDeliveredActionPerformed
+
+ private void menuNoticeDraftAwaitingApprovalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNoticeDraftAwaitingApprovalActionPerformed
+ // TODO add your handling code here:
+ NoticesReportViewDialog frm = new NoticesReportViewDialog(this, false);
+ String cols[] = {"Reference Number", "Description", "Entrustment Date", "Client"};
+ int rep = 2;
+ ArrayList<Object> data = Utility.getReportData(rep, -1);
+ if (data == null) {
+ JOptionPane.showMessageDialog(this, ERROR_DISPLAYING_REPORT);
+ return;
+ }
+ frm.setupReportTable(rep, REPORT_TITLE_DRAFTS_AWAITING_APPROVAL, cols, data);
+ frm.setVisible(true);
+ }//GEN-LAST:event_menuNoticeDraftAwaitingApprovalActionPerformed
+
+ private void menuNoticesClarificationPendingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNoticesClarificationPendingActionPerformed
+ // TODO add your handling code here:
+ NoticesReportViewDialog frm = new NoticesReportViewDialog(this, false);
+ String cols[] = {"Reference Number", "Description", "Entrustment Date",
+ "Clarification Remarks", "Client" };
+ int rep = 3;
+ ArrayList<Object> data = Utility.getReportData(rep, -1);
+ if (data == null) {
+ JOptionPane.showMessageDialog(this, ERROR_DISPLAYING_REPORT);
+ return;
+ }
+ frm.setupReportTable(rep, REPORT_TITLE_CLARIFICATIONS_PENDING, cols, data);
+ frm.setVisible(true);
+ }//GEN-LAST:event_menuNoticesClarificationPendingActionPerformed
+ private static final String REPORT_TITLE_CLARIFICATIONS_PENDING = "Clarifications Pending";
+ private static final String REPORT_TITLE_DRAFTS_AWAITING_APPROVAL = "Drafts To Be Approved";
+ public static final String REPORT_TITLE_NOTICES_SENT_NOT_DELIVERED = "Notices Sent Not Yet Delivered";
+ public static final String ERROR_DISPLAYING_REPORT = "Error displaying report";
+ public static final String REPORT_TITLE_BILLS_AWAITING_PAYMENT = "Bills Awaiting Payment";