Commit a313effa authored by pchavan's avatar pchavan

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195995 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 51134492
......@@ -71,20 +71,20 @@ public class SCMWebServiceDao extends ValidatorEJB
String CustCode = (this.e12GenericUtility.getColumnValueFromNode("cust_code", detail1Node));
//Added By PriyankaC on 16JAN2019.
String uniqueId = (this.e12GenericUtility.getColumnValueFromNode("unique_id", detail1Node));
this.setUserInfo(userInfoBean);
conn = getConnection();
if(RefNo == null || RefNo.trim().length() ==0)
{
sql = "select tran_id from receipt where GUID = ? ";
sql = "select tran_id ,ref_no from receipt where GUID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, uniqueId);
rs = pstmt.executeQuery();
if (rs.next())
{
tranid = E12GenericUtility.checkNull(rs.getString("tran_id"));
RefNo = E12GenericUtility.checkNull(rs.getString("ref_no"));
}
System.out.println("tranid["+tranid+"]");
System.out.println("tranid["+tranid+"]" + "RefNo["+RefNo+"]");
if (pstmt != null)
{
pstmt.close();
......@@ -95,6 +95,11 @@ public class SCMWebServiceDao extends ValidatorEJB
rs.close();
rs = null;
}
System.out.println("Calling setNodeValue in RefNo.:");
setNodeValue( dataXMLDom, "ref_no", RefNo );
dataXML = e12GenericUtility.serializeDom(dataXMLDom);
System.out.println("Calling dataXML :" +dataXML);
}
//Added By PriyankaC on 16JAN2019.
else
......@@ -120,12 +125,10 @@ public class SCMWebServiceDao extends ValidatorEJB
rs = null;
}
}
System.out.println("Calling setNodeValue :");
setNodeValue( dataXMLDom, "receipt_no", tranid );
dataXML = e12GenericUtility.serializeDom(dataXMLDom);
System.out.println("Calling Final dataXML :" +dataXML);
}
// Added By PriyankaC on 10April2018 [END].
if( CommonConstants.UPLOAD_LOC == null && CommonConstants.J2EE_VERSION.equals( "1" ))
......
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