Commit e7dd56fb authored by mmhatre's avatar mmhatre

Failes business logic -

1. Home screen feed should show proper details
2.. Edit screen to be re arranged , 
2. Home screen from/to date filter to be added instead of sales order
3. Upload and copy button to be removed
As per mail from Pavitra 1. site code 2. cust code 3. itemser to be added in this table
Also add ref_date

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203264 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 266c865a
...@@ -63,6 +63,7 @@ public class PostOrdCreditChk ...@@ -63,6 +63,7 @@ public class PostOrdCreditChk
String asRunOpt=""; String asRunOpt="";
String asSorder=""; String asSorder="";
Timestamp adtTranDate = null; Timestamp adtTranDate = null;
String refDateStr; //added by manish mhatre on 28/6/2019
String asSiteCode=""; String asSiteCode="";
String asApplyTime=""; String asApplyTime="";
String asDespId=""; String asDespId="";
...@@ -110,6 +111,17 @@ public class PostOrdCreditChk ...@@ -110,6 +111,17 @@ public class PostOrdCreditChk
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
// itmDBAccessEJB = new ITMDBAccessEJB(); // itmDBAccessEJB = new ITMDBAccessEJB();
//added by manish mhatre on 28-6-2019
/*Calendar currentDate = Calendar.getInstance();*/
SimpleDateFormat sdf;
SimpleDateFormat simpleDateFormat = null;
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
refDateStr = sdf.format(adtTranDate.getTime());
//end manish mhatre
/// new product order type should not be consider. /// new product order type should not be consider.
/// amish 01-10-03 /// amish 01-10-03
...@@ -492,7 +504,9 @@ public class PostOrdCreditChk ...@@ -492,7 +504,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); */
} }
writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
...@@ -694,8 +708,11 @@ public class PostOrdCreditChk ...@@ -694,8 +708,11 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equalsIgnoreCase(lsStatus) || lsStatus.trim().length() == 0 ) if (lcCheckAmt > 0 || "F".equalsIgnoreCase(lsStatus) || lsStatus.trim().length() == 0 )
{ {
failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
} }
System.out.println("refDate String:"+refDateStr);
writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
///if the cr check is failed or not failed. ///if the cr check is failed or not failed.
...@@ -820,7 +837,9 @@ public class PostOrdCreditChk ...@@ -820,7 +837,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
} }
writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
...@@ -1004,7 +1023,9 @@ public class PostOrdCreditChk ...@@ -1004,7 +1023,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equalsIgnoreCase(lsStatus) || lsStatus.trim().length() == 0 ) if (lcCheckAmt > 0 || "F".equalsIgnoreCase(lsStatus) || lsStatus.trim().length() == 0 )
{ {
failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
} }
writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, (lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -1181,7 +1202,9 @@ public class PostOrdCreditChk ...@@ -1181,7 +1202,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P05"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P05"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P05"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P05"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
} }
writeLog(asSorder, ("P05"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P05"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -1354,7 +1377,9 @@ public class PostOrdCreditChk ...@@ -1354,7 +1377,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P06"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P06"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P06"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P06"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
} }
writeLog(asSorder, ("P06"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P06"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
...@@ -1513,7 +1538,9 @@ public class PostOrdCreditChk ...@@ -1513,7 +1538,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P07"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P07"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P07"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P07"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P07"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P07"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
} }
...@@ -1621,7 +1648,9 @@ public class PostOrdCreditChk ...@@ -1621,7 +1648,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P08"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P08"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P08"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P08"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P08"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P08"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
} }
...@@ -1819,7 +1848,9 @@ public class PostOrdCreditChk ...@@ -1819,7 +1848,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P09"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P09"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P09"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P09"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P09"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P09"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -1960,7 +1991,9 @@ public class PostOrdCreditChk ...@@ -1960,7 +1991,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P10"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P10"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P10"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P10"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P10"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P10"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -2152,7 +2185,9 @@ public class PostOrdCreditChk ...@@ -2152,7 +2185,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P11"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P11"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P11"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P11"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P11"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P11"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -2293,7 +2328,9 @@ public class PostOrdCreditChk ...@@ -2293,7 +2328,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P12"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P12"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P12"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P12"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P12"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P12"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -2492,7 +2529,9 @@ public class PostOrdCreditChk ...@@ -2492,7 +2529,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P13"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P13"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P13"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P13"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P13"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P13"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -2637,7 +2676,9 @@ public class PostOrdCreditChk ...@@ -2637,7 +2676,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P14"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P14"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P14"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P14"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P14"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P14"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
///if the cr check is failed or not failed. ///if the cr check is failed or not failed.
...@@ -2744,7 +2785,9 @@ public class PostOrdCreditChk ...@@ -2744,7 +2785,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P15"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P15"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/* failedPolicyList.add("P15"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P15"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P15"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P15"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -2896,7 +2939,9 @@ public class PostOrdCreditChk ...@@ -2896,7 +2939,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P16"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P16"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P16"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P16"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P16"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P16"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
} }
...@@ -2998,7 +3043,9 @@ public class PostOrdCreditChk ...@@ -2998,7 +3043,9 @@ public class PostOrdCreditChk
} }
if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0) if (lcCheckAmt > 0 || "F".equals(lsStatus) || lsStatus.trim().length() == 0)
{ {
failedPolicyList.add("P17"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); failedPolicyList.add("P17"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add("P17"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+" "+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add("P17"+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
writeLog(asSorder, ("P17"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr)); writeLog(asSorder, ("P17"+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr));
} }
...@@ -3413,7 +3460,10 @@ public class PostOrdCreditChk ...@@ -3413,7 +3460,10 @@ public class PostOrdCreditChk
//asCheckList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr); //asCheckList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr);
//Pavan R on 14sept18 [to handle NumberFormatException in writeBusinessLogicCheck()] //Pavan R on 14sept18 [to handle NumberFormatException in writeBusinessLogicCheck()]
//failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+lcCheckAmt+"\t"+lsStatus); //failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+lcCheckAmt+"\t"+lsStatus);
failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+lsStatus);
failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+lsStatus+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr); //added by manish mhatre on 28-6-2019
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr+"\t"+lsStatus+"\t"+" "+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
/*failedPolicyList.add(lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lcCheckAmt+"\t"+lsStr+"\t"+lsStatus+"\t"+asCustCodeBil+"\t"+asCustCodeSoldTo+"\t"+asSiteCode+"\t"+asItemSer+"\t"+refDateStr);*/
System.out.println("@@@@@@@@@@@failedPolicyList Size["+failedPolicyList.size()+"]"); System.out.println("@@@@@@@@@@@failedPolicyList Size["+failedPolicyList.size()+"]");
System.out.println("@@@@@@@@@@@ failedPolicyList ["+failedPolicyList+"]"); System.out.println("@@@@@@@@@@@ failedPolicyList ["+failedPolicyList+"]");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment