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