X-Git-Url: https://harishankar.org/repos/?p=habeas.git;a=blobdiff_plain;f=src%2Fhabeas%2FUtility.java;h=8602583be2c111cf3a72cb3b5406c62782929847;hp=d54ace3098ba2ba47f7bcc552df89bb7e29baa3e;hb=703ad2090595c7cf19f92a58b95ce197c60bf5ea;hpb=bc2309fb0a6c83daa94320d06619c1f8b153696c diff --git a/src/habeas/Utility.java b/src/habeas/Utility.java index d54ace3..8602583 100644 --- a/src/habeas/Utility.java +++ b/src/habeas/Utility.java @@ -38,8 +38,15 @@ public class Utility { "SELECT ReferenceNumber, Description, EntrustmentDate, " + "ClarificationRemarks, ClientName FROM legalnotices INNER JOIN clients ON" - + " ClientId=clients.id WHERE ClarificationPending=1;" + + " ClientId=clients.id WHERE ClarificationPending=1;", + "SELECT ReferenceNumber, Description, EntrustmentDate, ClarificationRemarks" + + ", ClientName from legalnotices INNER JOIN clients ON ClientId=clients.id " + + "WHERE DraftCreated=0;", + + "SELECT ReferenceNumber, Description, EntrustmentDate, ClientName FROM" + + " legalnotices INNER JOIN clients ON ClientId=clients.id WHERE " + + " DraftApproved=1 AND NoticeSent=0;" } ; private static final String[] REPORTS_FILTERED = { "SELECT ReferenceNumber, Description" @@ -57,7 +64,15 @@ public class Utility { "SELECT ReferenceNumber, Description, EntrustmentDate, " + "ClarificationRemarks, ClientName FROM legalnotices INNER JOIN clients ON" - + " ClientId=clients.id WHERE ClarificationPending=1 AND ClientId=?;" + + " ClientId=clients.id WHERE ClarificationPending=1 AND ClientId=?;", + + "SELECT ReferenceNumber, Description, EntrustmentDate, ClarificationRemarks" + + ", ClientName from legalnotices INNER JOIN clients ON ClientId=clients.id " + + "WHERE DraftCreated=0 AND ClientId=?;", + + "SELECT ReferenceNumber, Description, EntrustmentDate, ClientName FROM" + + " legalnotices INNER JOIN clients ON ClientId=clients.id WHERE " + + " DraftApproved=1 AND NoticeSent=0 AND ClientId=?;" } ; static void saveStationerySettings (String left_header,