Commit 02222d52 authored by pbhosale's avatar pbhosale

Updated on [02-03-2020]

w_finent_acctprd.sql
MiscRcpLoanAdjPrc.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217366 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c5761406
...@@ -376,7 +376,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -376,7 +376,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
String adCodeDed = ""; String adCodeDed = "";
String ldTodayStr = "" , ldRecoStr = ""; String ldTodayStr = "" , ldRecoStr = "";
Timestamp ldToday = null, ldReco = null , startReco = null; Timestamp ldToday = null, ldReco = null , startReco = null;
int ctr = 0 , llRow = 0; int llRow = 0;
int parentNodeListLength = 0 , childNodeListLength = 0 ; int parentNodeListLength = 0 , childNodeListLength = 0 ;
String lcRecoAmtStr = ""; String lcRecoAmtStr = "";
double lcRecoAmt = 0.00 , netAmtDbl = 0.00, lcTotRecoAmt = 0.00; double lcRecoAmt = 0.00 , netAmtDbl = 0.00, lcTotRecoAmt = 0.00;
...@@ -388,6 +388,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -388,6 +388,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
System.out.println("userId ===>" +userId); System.out.println("userId ===>" +userId);
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId")); chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
empCode = genericUtility.getColumnValue("emp_code",headerDom); empCode = genericUtility.getColumnValue("emp_code",headerDom);
tranSer = genericUtility.getColumnValue("tran_ser",headerDom); tranSer = genericUtility.getColumnValue("tran_ser",headerDom);
refNo = genericUtility.getColumnValue("ref_no",headerDom); refNo = genericUtility.getColumnValue("ref_no",headerDom);
...@@ -412,6 +413,8 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -412,6 +413,8 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
System.out.println("ldToday ===>" +ldToday); System.out.println("ldToday ===>" +ldToday);
ldReco = utilMethod.dateTime(utilMethod.today()); ldReco = utilMethod.dateTime(utilMethod.today());
System.out.println("ldReco ===>" +ldReco); System.out.println("ldReco ===>" +ldReco);
ldTodayStr = genericUtility.getValidDateString(ldToday, genericUtility.getApplDateFormat());
ldRecoStr = genericUtility.getValidDateString(ldReco, genericUtility.getApplDateFormat());
System.out.println("9999[detailDom "+genericUtility.serializeDom(detailDom)+"]"); System.out.println("9999[detailDom "+genericUtility.serializeDom(detailDom)+"]");
parentNodeList = detailDom.getElementsByTagName("Detail2"); parentNodeList = detailDom.getElementsByTagName("Detail2");
System.out.println("parentNodeList >> "+parentNodeList); System.out.println("parentNodeList >> "+parentNodeList);
...@@ -448,14 +451,14 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -448,14 +451,14 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
System.out.println("in parent loop"); System.out.println("in parent loop");
System.out.println("selectedRow---->>> "+ selectedRow); System.out.println("selectedRow---->>> "+ selectedRow);
parentNode = parentNodeList.item(selectedRow); parentNode = parentNodeList.item(selectedRow);
System.out.println("parentNode ===>" +genericUtility.serializeDom(parentNode)) ; System.out.println("parentNode===>" +genericUtility.serializeDom(parentNode)) ;
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
for (int childRow = 0; childRow < childNodeListLength; childRow++) for (int childRow = 0; childRow < childNodeListLength; childRow++)
{ {
childNode = childNodeList.item(childRow); childNode = childNodeList.item(childRow);
childNodeName = childNode.getNodeName(); childNodeName = childNode.getNodeName();
System.out.println("childNodeListLength-->>["+childNodeListLength+"] \n childNodeName---->>["+childNodeName+"] "); System.out.println("childNodeListLength-->>["+childNodeListLength+"] \t childNodeName---->>["+childNodeName+"] ");
if("reco_amt".equalsIgnoreCase(childNodeName)) if("reco_amt".equalsIgnoreCase(childNodeName))
{ {
lcRecoAmtStr = childNode.getFirstChild().getNodeValue(); lcRecoAmtStr = childNode.getFirstChild().getNodeValue();
...@@ -510,7 +513,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -510,7 +513,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
{ {
System.out.println("in parent loop......"); System.out.println("in parent loop......");
parentNode = parentNodeList.item(selectedRow); parentNode = parentNodeList.item(selectedRow);
System.out.println("parentNode---->>> " +genericUtility.serializeDom(parentNode)); System.out.println("parentNode111---->>> " +genericUtility.serializeDom(parentNode));
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
System.out.println("selectedRow1---->>> "+ selectedRow); System.out.println("selectedRow1---->>> "+ selectedRow);
...@@ -518,11 +521,16 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -518,11 +521,16 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
{ {
childNode = childNodeList.item(childRow); childNode = childNodeList.item(childRow);
childNodeName = childNode.getNodeName(); childNodeName = childNode.getNodeName();
System.out.println("childNodeListLength1-->>["+childNodeListLength+"] \n childNodeName---->>["+childNodeName+"] "); System.out.println("childNodeListLength111-->>["+childNodeListLength+"] \t childNodeName111---->>["+childNodeName+"] ");
if("reco_amt".equalsIgnoreCase(childNodeName)) if("reco_amt".equalsIgnoreCase(childNodeName))
{ {
lcRecoAmtStr = childNode.getFirstChild().getNodeValue(); lcRecoAmtStr = childNode.getFirstChild().getNodeValue();
} }
if("loan_no".equalsIgnoreCase(childNodeName))
{
loanNo = childNode.getFirstChild().getNodeValue();
System.out.println("loanNo===>" +loanNo);
}
} }
if(lcRecoAmtStr != null && lcRecoAmtStr.trim().length() > 0) if(lcRecoAmtStr != null && lcRecoAmtStr.trim().length() > 0)
{ {
...@@ -537,9 +545,6 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -537,9 +545,6 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
} }
System.out.println("lcRecoAmt===>"+lcRecoAmt); System.out.println("lcRecoAmt===>"+lcRecoAmt);
ldTodayStr = genericUtility.getValidDateString(ldToday, genericUtility.getApplDateFormat());
ldRecoStr = genericUtility.getValidDateString(ldReco, genericUtility.getApplDateFormat());
} }
if( lcRecoAmt > 0) if( lcRecoAmt > 0)
{ {
...@@ -561,9 +566,9 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -561,9 +566,9 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
} }
lstrReco.put("reco_no", lsTranid); lstrReco.put("reco_no", lsTranid);
lstrReco.put("reco_date", new Timestamp(System.currentTimeMillis())); lstrReco.put("reco_date", new Timestamp(System.currentTimeMillis()));
loanNo = genericUtility.getColumnValue("loan_no",detailDom); //loanNo = genericUtility.getColumnValue("loan_no",detailDom);
System.out.println("loanNo===>" +loanNo);
lstrReco.put("loan_no",loanNo); lstrReco.put("loan_no",loanNo);
System.out.println("loanNo111===>" +lstrReco.get("loan_no"));
lstrReco.put("remarks","Created from Payment Adjust"); lstrReco.put("remarks","Created from Payment Adjust");
lstrReco.put("reco_amt",lcRecoAmt); lstrReco.put("reco_amt",lcRecoAmt);
lstrReco.put("ref_no__pay",refNo); lstrReco.put("ref_no__pay",refNo);
...@@ -626,11 +631,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -626,11 +631,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
lstrReco.put("mon_inst", monInst); lstrReco.put("mon_inst", monInst);
lstrReco.put("ad_code",adCodeDed); lstrReco.put("ad_code",adCodeDed);
llRow = lstrReco.size(); llRow = lstrReco.size();
System.out.println("Map COUNT[llRow] ===>" +llRow); System.out.println("Map Count[llRow] ===>" +llRow+ "lstrReco:::" +lstrReco.toString());
for (Object name : lstrReco.keySet())
System.out.println("key::::: " + name);
for (Object value : lstrReco.values())
System.out.println("value:::: " + value);
if(cnt == 0) if(cnt == 0)
{ {
resultString = itmDBAccessEJB.getErrorString("" , "DS000" , userId , "" , connection); resultString = itmDBAccessEJB.getErrorString("" , "DS000" , userId , "" , connection);
...@@ -638,15 +639,16 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -638,15 +639,16 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
} }
else else
{ {
System.out.println("Calling gbfInsertReco "+ctr); System.out.println("Before Calling gbfInsertReco ");
resultString = loanRecoConf.gbfInsertReco(lstrReco, "Y", 2, connection); resultString = loanRecoConf.gbfInsertReco(lstrReco, "Y", 2, connection);
System.out.println("Calling gbfInsertReco END"); System.out.println("Calling gbfInsertReco END"+resultString);
if(resultString != null && resultString.trim().length() > 0 ) if(resultString != null && resultString.trim().length() > 0 )
{ {
break; break;
} }
} }
} }
} }
break; break;
}while(true); }while(true);
......
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