jSeparator1 = new javax.swing.JPopupMenu.Separator();
menuGenerateRaisedBills = new javax.swing.JMenuItem();
menuNoticesReports = new javax.swing.JMenu();
+ menuNoticesToBeDrafted = new javax.swing.JMenuItem();
menuNoticesClarificationPending = new javax.swing.JMenuItem();
menuNoticeDraftAwaitingApproval = new javax.swing.JMenuItem();
menuNoticesSentNotYetDelivered = new javax.swing.JMenuItem();
menuNoticesReports.setMnemonic('r');
menuNoticesReports.setText("Reports");
+ menuNoticesToBeDrafted.setText("To Be Drafted...");
+ menuNoticesToBeDrafted.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ menuNoticesToBeDraftedActionPerformed(evt);
+ }
+ });
+ menuNoticesReports.add(menuNoticesToBeDrafted);
+
menuNoticesClarificationPending.setMnemonic('c');
menuNoticesClarificationPending.setText("Clarifications pending...");
menuNoticesClarificationPending.addActionListener(new java.awt.event.ActionListener() {
frm.setupReportTable(rep, REPORT_TITLE_CLARIFICATIONS_PENDING, cols, data);
frm.setVisible(true);
}//GEN-LAST:event_menuNoticesClarificationPendingActionPerformed
+
+ private void menuNoticesToBeDraftedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNoticesToBeDraftedActionPerformed
+ // TODO add your handling code here:
+ NoticesReportViewDialog frm = new NoticesReportViewDialog(this, false);
+ String cols[] = {"Reference Number", "Description", "Entrustment Date",
+ "Clarification Remarks", "Client" };
+ int rep = 4;
+ ArrayList<Object> data = Utility.getReportData(rep, -1);
+ if (data == null) {
+ JOptionPane.showMessageDialog(this , ERROR_DISPLAYING_REPORT);
+ return;
+ }
+ frm.setupReportTable(rep, REPORT_TITLE_TO_BE_DRAFTED, cols, data);
+ frm.setVisible(true);
+
+ }//GEN-LAST:event_menuNoticesToBeDraftedActionPerformed
+ private static final String REPORT_TITLE_TO_BE_DRAFTED = "To Be Drafted";
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";
private javax.swing.JMenuItem menuNoticesClarificationPending;
private javax.swing.JMenu menuNoticesReports;
private javax.swing.JMenuItem menuNoticesSentNotYetDelivered;
+ private javax.swing.JMenuItem menuNoticesToBeDrafted;
private javax.swing.JMenu menuSettings;
private javax.swing.JMenuItem menuStationery;
// End of variables declaration//GEN-END:variables