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 ...@@ -71,20 +71,20 @@ public class SCMWebServiceDao extends ValidatorEJB
String CustCode = (this.e12GenericUtility.getColumnValueFromNode("cust_code", detail1Node)); String CustCode = (this.e12GenericUtility.getColumnValueFromNode("cust_code", detail1Node));
//Added By PriyankaC on 16JAN2019. //Added By PriyankaC on 16JAN2019.
String uniqueId = (this.e12GenericUtility.getColumnValueFromNode("unique_id", detail1Node)); String uniqueId = (this.e12GenericUtility.getColumnValueFromNode("unique_id", detail1Node));
this.setUserInfo(userInfoBean); this.setUserInfo(userInfoBean);
conn = getConnection(); conn = getConnection();
if(RefNo == null || RefNo.trim().length() ==0) 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 = conn.prepareStatement(sql);
pstmt.setString(1, uniqueId); pstmt.setString(1, uniqueId);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
tranid = E12GenericUtility.checkNull(rs.getString("tran_id")); 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) if (pstmt != null)
{ {
pstmt.close(); pstmt.close();
...@@ -95,6 +95,11 @@ public class SCMWebServiceDao extends ValidatorEJB ...@@ -95,6 +95,11 @@ public class SCMWebServiceDao extends ValidatorEJB
rs.close(); rs.close();
rs = null; 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. //Added By PriyankaC on 16JAN2019.
else else
...@@ -120,12 +125,10 @@ public class SCMWebServiceDao extends ValidatorEJB ...@@ -120,12 +125,10 @@ public class SCMWebServiceDao extends ValidatorEJB
rs = null; rs = null;
} }
} }
System.out.println("Calling setNodeValue :"); System.out.println("Calling setNodeValue :");
setNodeValue( dataXMLDom, "receipt_no", tranid ); setNodeValue( dataXMLDom, "receipt_no", tranid );
dataXML = e12GenericUtility.serializeDom(dataXMLDom); dataXML = e12GenericUtility.serializeDom(dataXMLDom);
System.out.println("Calling Final dataXML :" +dataXML);
} }
// Added By PriyankaC on 10April2018 [END]. // Added By PriyankaC on 10April2018 [END].
if( CommonConstants.UPLOAD_LOC == null && CommonConstants.J2EE_VERSION.equals( "1" )) 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