Commit 5995b3a8 authored by msalla's avatar msalla

We created bank receipt and mention the contract number in header. But When...

We created bank receipt and mention the contract number in header. But When bank receipt is confirmed then balance amount of advance booking is not updating. 4) system should not allow to use advance booking if balance is not available 5) receipt dishnor is created for receipt where advance booking is used then amount used in receipt needs to be reversed from balance amount.(ponit no 610)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211879 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76a2e7f3
......@@ -50,7 +50,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
try
{
//System.out.println("Val xmlString :: " + xmlString);
// System.out.println("Val xmlString1 :: " + xmlString1);
// System.out.println("Val xmlString1 :: " + xmlString1);
dom = parseString(xmlString);
dom1 = parseString(xmlString1);
errString = wfValData(dom, dom1, dom2, objContext, editFlag, xtraParams);
......@@ -187,9 +187,9 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
Timestamp tranDt = null;
double rcpacctAmtdbl=0;
//Calendar currentDate = Calendar.getInstance();--by monika
//ADDED BY MONIKA 30 SEPT 2019
String itemValue = "",lineNo = "",lineValue= "",updateFlag = "", invTrace = " ",rcpAdvBkingamount="";
//ADDED BY MONIKA 30 SEPT 2019
String itemValue = "",lineNo = "",lineValue= "",updateFlag = "", invTrace = " ",rcppcreditamount="",rcpAdvBkingamount="";
int lineNoInt = 0,lineValueInt = 0;
//NodeList itemNodeList = null,lineNoList = null,detail2List = null,childDetilList = null;
......@@ -197,7 +197,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
NodeList itemNodeList = null,lineNoList = null,detail2List = null,childDetilList = null; //Variables added by Mahesh Saggam on 17-June-2019
Node itemNode = null,lineNoNode = null,detailNode = null,chidDetailNode = null; //Variables added by Mahesh Saggam on 17-June-2019
double rcpAdvBkingAmt=0.0,totAmtdet=0.0,diffvalue=0.0;//END
double rcpAdvBkingAmt=0.0,totAmtdet=0.0,diffvalue=0.0,rcpPkCreditAmt=0.0;//END
try
{
finCommon = new FinCommon();
......@@ -289,7 +289,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
tranId = "@@";
}
// System.out.println("GUID : " +guid);
// System.out.println("GUID : " +guid);
sql = "select count(*) from receipt where guid = ? and tran_id <> ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, guid);
......@@ -595,9 +595,9 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
cctrCodeAdv = this.genericUtility.getColumnValue("cctr_code__adv", dom);
acctCodeAdv = this.genericUtility.getColumnValue("acct_code__adv", dom);
advAmt = Double.parseDouble(this.genericUtility.getColumnValue("adv_amt", dom));
//COMMENTED BY MONIKA ON 25 SEPT 2019
//COMMENTED BY MONIKA ON 25 SEPT 2019
// if ((advAmt != 0.0) && ((acctCodeAdv.trim().length() != 0) && (acctCodeAdv != null)))
if ((advAmt != 0.0) ||((acctCodeAdv != null) && (acctCodeAdv.trim().length() != 0)))
if ((advAmt != 0.0) ||((acctCodeAdv != null) && (acctCodeAdv.trim().length() != 0)))
{
errCode = finCommon.isCctrCode(acctCodeAdv, cctrCodeAdv, "FIN", conn);
//errCode = validateCctrCode(cctrCodeAdv ,acctCodeAdv, conn);
......@@ -1010,7 +1010,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
pstmt.close();
pstmt = null;
// System.out.println("@V@ Tran id receipt :- ["+tranIdRcp+"]");
// System.out.println("@V@ Tran id receipt :- ["+tranIdRcp+"]");
//CHANGES BY MONIKA-20 JUNE-2019--to check refno in bank-receipt header--
if(refNo!= null && refNo.trim().length()>0)
......@@ -1030,7 +1030,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
pstmt.close();
pstmt = null;
// System.out.println("@V@ reference no count:- ["+cnt+"]");
// System.out.println("@V@ reference no count:- ["+cnt+"]");
if(cnt>0 && tranIdRcp!=null && tranIdRcp.trim().length()>0)
{
......@@ -1129,7 +1129,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
pstmt.close();
pstmt = null;
// System.out.println("@V@ confirmed found :-["+rDshCnf+"]");
// System.out.println("@V@ confirmed found :-["+rDshCnf+"]");
if("N".equalsIgnoreCase(rDshCnf))
{
/**
......@@ -1185,7 +1185,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail2>");
childNodeListLength = childNodeList.getLength();
for (ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
......@@ -1270,7 +1270,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
rs = null;
pstmt.close();
pstmt = null;
// System.out.println("refType["+refType+"]");
// System.out.println("refType["+refType+"]");
if (!siteCode.trim().equals(hsiteCode.trim()))
{
errCode = "VTSITE1";
......@@ -1316,14 +1316,14 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
htranDate = sdf.parse(this.genericUtility.getColumnValue("tran_date", dom1));
//added by manish mhatre on 23-july-2019[validation for bank receipt and receivable jv]
//start manish
// System.out.println("RefDate Validation::tranType["+tranType+"]refSer["+refSer+"]refDate["+refDate+"]today["+today+"]");
// System.out.println("RefDate Validation::tranType["+tranType+"]refSer["+refSer+"]refDate["+refDate+"]today["+today+"]");
/*if(tranType.equals("A") || tranType.equals("J") )
{*/
if("MDRCRC".equals(refSer.trim()) || "R-ADV".equals(refSer.trim()) || "P-ADV".equals(refSer.trim()) || "CRNRCP".equals(refSer.trim()))
{
if(refDate.after(today))
{
// System.out.println("In after condition");
// System.out.println("In after condition");
errCode = "VTPRDFDALW";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
......@@ -1542,7 +1542,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
rs = null;
pstmt.close();
pstmt = null;
if (((balAmt < 0.0D) && (rcpAmt < 0.0D) && (Math.abs(balAmt) < Math.abs(rcpAmt))) ||
((balAmt > 0.0D) && (rcpAmt > 0.0D) && (Math.abs(balAmt) < Math.abs(rcpAmt))) || ((balAmt > 0.0D) && (rcpAmt < 0.0D)) || (
(balAmt < 0.0D) && (rcpAmt > 0.0D)))
......@@ -1842,6 +1842,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
valueXmlString.append("</Detail3>");
break;
case 4:
totAmtdet=0.0;
parentNodeList = dom.getElementsByTagName("Detail4");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
......@@ -2036,7 +2037,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
amountBc = doublevalue(this.genericUtility.getColumnValue("amount__bc", dom));
amountBc = (amountBc+doublevalue(this.genericUtility.getColumnValue("diff_amt__exch", dom)));
chequeAmt = doublevalue(this.genericUtility.getColumnValue("cheque_amt", dom1));
chequeAmt = doublevalue(this.genericUtility.getColumnValue("cheque_amt", dom1));// commented by monika 12 nov
exchRate = doublevalue(this.genericUtility.getColumnValue("exch_rate", dom1));
if (chequeAmt == 10.0D)
{
......@@ -2047,7 +2048,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
exchRate = 1.0D;
}
chequeAmt *= exchRate;
for (crt = 1; crt <= parentNodeList.getLength(); crt++)
/*for (crt = 1; crt <= parentNodeList.getLength(); crt++)//ccommented by monika 12 nov19
{
amountBc += Math.abs(doublevalue(this.genericUtility.getColumnValue("amount__bc", dom)));
amountBc += doublevalue(this.genericUtility.getColumnValue("diff_amt__exch", dom));
......@@ -2058,13 +2059,62 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
amountBc += Math.abs(doublevalue(this.genericUtility.getColumnValue("amount__bc", dom)));
amountBc += doublevalue(this.genericUtility.getColumnValue("diff_amt__exch", dom));
}
if (chequeAmt - amountBc >= 0.0D)
*///added by monika 12 nov 2019
detail2List = dom2.getElementsByTagName("Detail4");
for(int t =0; t < detail2List.getLength(); t++ )
{
detailNode = detail2List.item(t);
childDetilList = detailNode.getChildNodes();
for(int p =0; p < childDetilList.getLength(); p++ )
{
chidDetailNode = childDetilList.item(p);
if(chidDetailNode.getNodeName().equalsIgnoreCase("attribute") )
{
//System.out.println("operation node found >>>>>" + chidDetailNode.getNodeName());
updateFlag = chidDetailNode.getAttributes().getNamedItem("updateFlag").getNodeValue();
// System.out.println("Update flag is......."+updateFlag);
}
if(chidDetailNode.getNodeName().equalsIgnoreCase("amount") )
{
//System.out.println("invoiceTrace node found >>>>>" + chidDetailNode.getNodeName());
if(chidDetailNode.getFirstChild() != null )
{
rcppcreditamount = chidDetailNode.getFirstChild().getNodeValue();
System.out.println("child rcpadvbking >>>>>" + rcppcreditamount);
if(rcppcreditamount != null && rcppcreditamount.trim().length() > 0)
{
rcpPkCreditAmt = Double.parseDouble(rcppcreditamount.trim());
}
else
{
rcpPkCreditAmt=0.0;
}
System.out.println("total rcpadvbking >>>>>" + rcpPkCreditAmt);
if(!updateFlag.equalsIgnoreCase("D"))
{
totAmtdet=totAmtdet+rcpPkCreditAmt;
}
System.out.println("total rcpadvbking >>>>>" + totAmtdet+" cheque amount--"+chequeAmt);
}
}
}
}
// if (chequeAmt - amountBc < 0.0D)
if (chequeAmt - totAmtdet < 0.0D)//end
continue;
errCode = "VTAMT1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
......@@ -2143,12 +2193,12 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
else if (childNodeName.equalsIgnoreCase("cctr_code"))
{
cctrCode = this.genericUtility.getColumnValue("cctr_code", dom);
// System.out.println("CTTC CODE "+cctrCode);
// System.out.println("CTTC CODE "+cctrCode);
if(cctrCode != null && cctrCode.trim().length() > 0)
{
acctCode = this.genericUtility.getColumnValue("acct_code", dom);
//if(acctCode == null || acctCode.trim().length() == 0){acctCode="";}
// System.out.println("CTTC CODE 111["+cctrCode+""+acctCode);
// System.out.println("CTTC CODE 111["+cctrCode+""+acctCode);
errCode = finCommon.isCctrCode(acctCode, cctrCode, "FIN", conn);
if(errCode != null && errCode.trim().length() > 0)
{
......@@ -2162,7 +2212,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
else if (childNodeName.equalsIgnoreCase("anal_code"))
{
analCode = this.genericUtility.getColumnValue("anal_code", dom);
// System.out.println("CTTC CODE "+cctrCode);
// System.out.println("CTTC CODE "+cctrCode);
if(analCode != null && analCode.trim().length() > 0)
{
sql = "select count(*) from analysis where anal_code = ?";
......@@ -2235,6 +2285,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
break;
//added by monika-29-july-2019
case 6:
totAmtdet=0.0;
parentNodeList = dom.getElementsByTagName("Detail6");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
......@@ -2318,10 +2369,10 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
balAmt = rs.getDouble("bal_amt");
}
// System.out.println("diffvalue:::]]]"+balAmt+" CHEQUE AMOUNT:::]]]"+chequeAmt+" TOTAMT]]]]"+totAmtdet);
System.out.println("diffvalue:::]]]"+balAmt+" CHEQUE AMOUNT:::]]]"+chequeAmt+" TOTAMT]]]]"+totAmtdet);
rs.close();
rs = null;
pstmt.close();
......@@ -2340,13 +2391,13 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
Amt = 0.0;
}
// System.out.println("amount is amount:::"+Amt);
System.out.println("amount is amount:::"+Amt);
rs.close();
rs = null;
pstmt.close();
pstmt = null;
// if((Math.abs(amount) + Math.abs(pendingAmt))>Math.abs(balAmt))//changes made by monika on26 sept 2019
// if((Math.abs(amount) + Math.abs(pendingAmt))>Math.abs(balAmt))//changes made by monika on26 sept 2019
if((Math.abs(pendingAmt) + Math.abs(Amt))>Math.abs(balAmt))
{
errCode="VTADVBKAMT";
......@@ -2358,8 +2409,13 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
amountBc = doublevalue(this.genericUtility.getColumnValue("amount__bc", dom));
System.out.println("From dom amount Bc---->"+amountBc);
amountBc = (amountBc+doublevalue(this.genericUtility.getColumnValue("diff_amt__exch", dom)));
chaqueAmtStr = this.genericUtility.getColumnValue("cheque_amt", dom1);
System.out.println("From difference exchrate amount Bc-->"+amountBc);
chaqueAmtStr = this.genericUtility.getColumnValue("cheque_amt", dom1);
exchRate = doublevalue(this.genericUtility.getColumnValue("exch_rate", dom1));
if(chaqueAmtStr != null && chaqueAmtStr.trim().length()>0)
{
......@@ -2377,33 +2433,85 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
chequeAmt = chequeAmt * exchRate;
}
for (crt = 1; crt <= parentNodeList.getLength(); crt++)
/*commented by monka 12 nov
* for (crt = 1; crt <= parentNodeList.getLength(); crt++)
{
amountBc += Math.abs(doublevalue(this.genericUtility.getColumnValue("amount__bc", dom)));
System.out.println("in For loop before adding exchrate-->"+amountBc);
amountBc += doublevalue(this.genericUtility.getColumnValue("diff_amt__exch", dom));
System.out.println("in For loop after adding exchrate-->"+amountBc);
}
System.out.println("outer for loop before adding exchrate-->"+amountBc);
if (crt > 0)
{
amountBc += Math.abs(doublevalue(this.genericUtility.getColumnValue("amount__bc", dom)));
System.out.println("in if loop before adding exchrate-->"+amountBc);
amountBc += doublevalue(this.genericUtility.getColumnValue("diff_amt__exch", dom));
System.out.println("in if loop before adding exchrate-->"+amountBc);
}
/*if (chequeAmt - amountBc < 0.0D)
System.out.println("outer if loop before adding exchrate-->"+amountBc);
*/
/* if (chequeAmt - amountBc < 0.0D)
{
errCode = "VTAMT1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}*/
if (chequeAmt - amountBc < 0.0D)
{
errCode = "VTAMT1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
//added by monika 12 nov 2019
detail2List = dom2.getElementsByTagName("Detail6");
for(int t =0; t < detail2List.getLength(); t++ )
{
detailNode = detail2List.item(t);
childDetilList = detailNode.getChildNodes();
for(int p =0; p < childDetilList.getLength(); p++ )
{
chidDetailNode = childDetilList.item(p);
if(chidDetailNode.getNodeName().equalsIgnoreCase("attribute") )
{
//System.out.println("operation node found >>>>>" + chidDetailNode.getNodeName());
updateFlag = chidDetailNode.getAttributes().getNamedItem("updateFlag").getNodeValue();
// System.out.println("Update flag is......."+updateFlag);
}
if(chidDetailNode.getNodeName().equalsIgnoreCase("amount") )
{
//System.out.println("invoiceTrace node found >>>>>" + chidDetailNode.getNodeName());
if(chidDetailNode.getFirstChild() != null )
{
rcpAdvBkingamount = chidDetailNode.getFirstChild().getNodeValue();
System.out.println("child rcpadvbking >>>>>" + rcpAdvBkingamount);
if(rcpAdvBkingamount != null && rcpAdvBkingamount.trim().length() > 0)
{
rcpAdvBkingAmt = Double.parseDouble(rcpAdvBkingamount.trim());
}
else
{
rcpAdvBkingAmt=0.0;
}
if(!updateFlag.equalsIgnoreCase("D"))
{
totAmtdet=totAmtdet+rcpAdvBkingAmt;
}
System.out.println("total rcpadvbking >>>>>" + totAmtdet);
}
}
}
}
//if (chequeAmt - amountBc < 0.0D)
if(chequeAmt - totAmtdet < 0.0D)//end
{
errCode = "VTAMT1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
}
......@@ -3103,13 +3211,13 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
// added by -Monika-13 MAY 2019-To make chq amount protected in Receivable JV
winName = getObjName(parentNode);
// System.out.println( "winName :: " + winName );
// System.out.println( "winName :: " + winName );
//end
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail1>");
childNodeListLength = childNodeList.getLength();
// System.out.println("first receipt mode ------>"+genericUtility.getColumnValue("rcp_mode", dom));
// System.out.println("first receipt mode ------>"+genericUtility.getColumnValue("rcp_mode", dom));
do
{
childNode = childNodeList.item(ctr);
......@@ -3221,7 +3329,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
valueXmlString.append("<curr_code protect = \"0\">").append("<![CDATA["+genericUtility.getColumnValue("curr_code", dom)+"]]>").append("</curr_code>");
valueXmlString.append("<sale_order protect = \"0\">").append("<![CDATA["+checkNull(genericUtility.getColumnValue("sale_order", dom))+"]]>").append("</sale_order>");
}
// System.out.println(" detail count [" + instrPerSlip + "] valueXmlString [" + valueXmlString.toString() + "]" );
// System.out.println(" detail count [" + instrPerSlip + "] valueXmlString [" + valueXmlString.toString() + "]" );
......@@ -3669,7 +3777,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
valueXmlString.append("<cfc_remarks >").append("<![CDATA[" + sumAdvAmt + "]]>").append("</cfc_remarks>");
}
// valueXmlString.append("<curr_code>").append("<![CDATA[" + currCode + "]]>").append("</curr_code>");
// valueXmlString.append("<curr_code>").append("<![CDATA[" + currCode + "]]>").append("</curr_code>");
setNodeValue(dom, "curr_code", getAbsString(currCode));
}
......@@ -3709,7 +3817,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
valueXmlString.append("<exch_rate protect = \"0\">").append("<![CDATA[" + mexchrate + "]]>").append("</exch_rate>");
}
}
else
{
......@@ -3772,14 +3880,14 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
//setNodeValue(dom, "curr_code", getAbsString(currCode));
if((tranIdAdvbking == null) || (tranIdAdvbking.trim().length() == 0))
{
/*valueXmlString.append("<curr_code>").append("<![CDATA[" + CurrCodeFrom + "]]>").append("</curr_code>");
valueXmlString.append("<exch_rate>").append("<![CDATA[" + exchRate + "]]>").append("</exch_rate>");
*///setNodeValue(dom, "cust_code", getAbsString(custCode));
*///setNodeValue(dom, "cust_code", getAbsString(custCode));
//added by monika on 25 sept 2019
if(custCode != null && custCode.trim().length() > 0 )
{
// System.out.println("in cust_code no null"+custCode);
// System.out.println("in cust_code no null"+custCode);
setNodeValue(dom,"curr_code" , currCode);
reStr = itemChanged(dom, dom1, dom2, objContext, "cust_code", editFlag, xtraParams);
int pos = reStr.indexOf("<Detail1>");
......@@ -4356,7 +4464,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
currCode = genericUtility.getColumnValue("curr_code", dom);
exchRate = Double.parseDouble(genericUtility.getColumnValue("exch_rate__rcv", dom));
hexchRate = Double.parseDouble(genericUtility.getColumnValue("exch_rate", dom)); //finCommon.getDailyExchRateSellBuy(currCode,"",siteCode, genericUtility.getColumnValue("tran_date", dom1), "S", conn);
// System.out.println("rcp_amt change calculating diff_amt__exch rcpAmt [" + rcpAmt + "] exchRate[" + exchRate + "] hexchRate ["+ hexchRate+ "]" );
// System.out.println("rcp_amt change calculating diff_amt__exch rcpAmt [" + rcpAmt + "] exchRate[" + exchRate + "] hexchRate ["+ hexchRate+ "]" );
diffAmtExch = (rcpAmt * exchRate) - (rcpAmt * hexchRate);
//valueXmlString.append("<diff_amt__exch>").append("<![CDATA[" + getReqDecimal(diffAmtExch, 3) + "]]>").append("</diff_amt__exch>");
valueXmlString.append("<diff_amt__exch>").append("<![CDATA[" + utl.getReqDecString(diffAmtExch, 3) + "]]>").append("</diff_amt__exch>"); // added by pavan rane on 02/aug/19
......@@ -4825,7 +4933,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
refNo = genericUtility.getColumnValue("rcpadvbking_ref_no", dom);
refSer = genericUtility.getColumnValue("ref_ser", dom);
// System.out.println("rcpepc_ref_no"+refNo);
// System.out.println("rcpepc_ref_no"+refNo);
if((refNo!=null) && (refNo.trim().length()>0))
{
sql="select tran_date,curr_code__from,exch_rate,tot_amt from advbking where tran_id=?";
......@@ -5435,29 +5543,29 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
public String getParentColumnValue(String currColumn, Document dom, String formNo)throws ITMException
{
NodeList parentNodeList=null;
Node parentNode=null;
String Value = "";
try
{
E12GenericUtility genericUtility= new E12GenericUtility();
parentNodeList = dom.getElementsByTagName("Detail"+formNo);
int childNodeListLength = parentNodeList.getLength();
for(int ctr = 0; ctr < childNodeListLength; ctr++)
{
parentNode = parentNodeList.item(ctr);
Value = genericUtility.getColumnValueFromNode(currColumn, parentNode);
break;
} // end for
}//END TRY
catch(Exception e)
{
System.out.println("DistCommon::getParentColumnValue::Exception ::"+e);
e.printStackTrace();
throw new ITMException(e);
}
return Value;
Node parentNode=null;
String Value = "";
try
{
E12GenericUtility genericUtility= new E12GenericUtility();
parentNodeList = dom.getElementsByTagName("Detail"+formNo);
int childNodeListLength = parentNodeList.getLength();
for(int ctr = 0; ctr < childNodeListLength; ctr++)
{
parentNode = parentNodeList.item(ctr);
Value = genericUtility.getColumnValueFromNode(currColumn, parentNode);
break;
} // end for
}//END TRY
catch(Exception e)
{
System.out.println("DistCommon::getParentColumnValue::Exception ::"+e);
e.printStackTrace();
throw new ITMException(e);
}
return Value;
}
......
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