X-Git-Url: https://harishankar.org/repos/?p=habeas.git;a=blobdiff_plain;f=src%2Fhabeas%2FMainFrame.java;fp=src%2Fhabeas%2FMainFrame.java;h=070a7f7de9d41d01d457dacd13de00082d8ce298;hp=3e844307b760da688c38b988d68a6568c021c191;hb=2d04b06ea9a39c05dd3db560f3fc573696c7e36e;hpb=bc2309fb0a6c83daa94320d06619c1f8b153696c diff --git a/src/habeas/MainFrame.java b/src/habeas/MainFrame.java index 3e84430..070a7f7 100644 --- a/src/habeas/MainFrame.java +++ b/src/habeas/MainFrame.java @@ -39,6 +39,7 @@ public class MainFrame extends javax.swing.JFrame { 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(); @@ -99,6 +100,14 @@ public class MainFrame extends javax.swing.JFrame { 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() { @@ -271,6 +280,23 @@ public class MainFrame extends javax.swing.JFrame { 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 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"; @@ -327,6 +353,7 @@ public class MainFrame extends javax.swing.JFrame { 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