X-Git-Url: https://harishankar.org/repos/?p=habeas.git;a=blobdiff_plain;f=src%2Fhabeas%2FUtility.java;h=9df1ab54efd52ddafe63aac7c62152e522092a8d;hp=8795204463730b08014ff741371333ca28b931c8;hb=2d04b06ea9a39c05dd3db560f3fc573696c7e36e;hpb=020bf95644b2f26d9c81d66d2a752e55bcd3ad5b diff --git a/src/habeas/Utility.java b/src/habeas/Utility.java index 8795204..9df1ab5 100644 --- a/src/habeas/Utility.java +++ b/src/habeas/Utility.java @@ -30,7 +30,19 @@ 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;", + + "SELECT ReferenceNumber, Description, EntrustmentDate, ClarificationRemarks" + + ", ClientName from legalnotices INNER JOIN clients ON ClientId=clients.id " + + "WHERE DraftCreated=0;" } ; private static final String[] REPORTS_FILTERED = { "SELECT ReferenceNumber, Description" @@ -40,7 +52,19 @@ 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=?;", + + "SELECT ReferenceNumber, Description, EntrustmentDate, ClarificationRemarks" + + ", ClientName from legalnotices INNER JOIN clients ON ClientId=clients.id " + + "WHERE DraftCreated=0 AND ClientId=?;" } ; static void saveStationerySettings (String left_header,