Reporting Functionality - added few reports
[habeas.git] / src / habeas / Utility.java
index 8795204..d54ace3 100644 (file)
@@ -30,7 +30,16 @@ public class Utility {
     
             "SELECT ReferenceNumber, Description, SentDate, RPADReference, "
             + "ClientName FROM legalnotices INNER JOIN clients ON ClientId=clients.id"
-            + " WHERE NoticeSent=1 AND NoticeDelivered=0;"
+            + " WHERE NoticeSent=1 AND NoticeDelivered=0;",
+            
+            "SELECT ReferenceNumber, Description, EntrustmentDate, ClientName FROM legalnotices"
+            + " INNER JOIN clients ON ClientId=clients.id"
+            + " WHERE DraftCreated=1 AND DraftApproved=0;",
+            
+            "SELECT ReferenceNumber, Description, EntrustmentDate, "
+            + "ClarificationRemarks, ClientName FROM legalnotices INNER JOIN clients ON"
+            + " ClientId=clients.id WHERE ClarificationPending=1;"
+            
     } ;
 
     private static final String[] REPORTS_FILTERED = { "SELECT ReferenceNumber, Description"
@@ -40,7 +49,15 @@ public class Utility {
     
             "SELECT ReferenceNumber, Description, SentDate, RPADReference, "
             + "ClientName FROM legalnotices INNER JOIN clients ON ClientId=clients.id"
-            + " WHERE NoticeSent=1 AND NoticeDelivered=0 AND ClientId=?;"
+            + " WHERE NoticeSent=1 AND NoticeDelivered=0 AND ClientId=?;",
+            
+            "SELECT ReferenceNumber, Description, EntrustmentDate, ClientName FROM legalnotices"
+            + " INNER JOIN clients ON ClientId=clients.id"
+            + " WHERE DraftCreated=1 AND DraftApproved=0 AND ClientId=?;",
+
+            "SELECT ReferenceNumber, Description, EntrustmentDate, "
+            + "ClarificationRemarks, ClientName FROM legalnotices INNER JOIN clients ON"
+            + " ClientId=clients.id WHERE ClarificationPending=1 AND ClientId=?;"            
     } ;    
     
     static void saveStationerySettings (String left_header,