Commit 9477de71 authored by rpawar's avatar rpawar

changes made in AdjReceiptIC.java

-parameter name changed in protectRate method 
-parameter changed in valAcct method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@172884 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a85532f7
...@@ -1340,8 +1340,8 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj ...@@ -1340,8 +1340,8 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
//Modified by Rupesh on[24/10/2017][As Instructed by Piyush Sir][Start]. //Modified by Rupesh on[24/10/2017][As Instructed by Piyush Sir][Start].
//protectRate(dom,valueXmlString,conn);//done //protectRate(dom,valueXmlString,conn);//done
//ArrayList<String> tempList= protectRate(dom2,valueXmlString,conn);
ArrayList<String> tempList= protectRate(dom2,valueXmlString,conn); ArrayList<String> tempList= protectRate(dom,valueXmlString,conn);
rate = tempList.get(0); rate = tempList.get(0);
valueXmlString.append(tempList.get(1)); valueXmlString.append(tempList.get(1));
...@@ -1807,8 +1807,8 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj ...@@ -1807,8 +1807,8 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
valueXmlString.append(valAcct); valueXmlString.append(valAcct);
//protectRate(dom,valueXmlString,conn); //protectRate(dom,valueXmlString,conn);
//ArrayList<String> tempList= protectRate(dom2,valueXmlString,conn);
ArrayList<String> tempList= protectRate(dom2,valueXmlString,conn); ArrayList<String> tempList= protectRate(dom,valueXmlString,conn);
rate = tempList.get(0); rate = tempList.get(0);
valueXmlString.append(tempList.get(1)); valueXmlString.append(tempList.get(1));
...@@ -2206,7 +2206,9 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj ...@@ -2206,7 +2206,9 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
//Modified by Rupesh on [24/10/2017][as instructed by Piyush sir] //Modified by Rupesh on [24/10/2017][as instructed by Piyush sir]
//private String protectRate(Document dom,StringBuffer valueXmlString,Connection conn) throws RemoteException, ITMException //private String protectRate(Document dom,StringBuffer valueXmlString,Connection conn) throws RemoteException, ITMException
private ArrayList<String> protectRate(Document dom,StringBuffer valueXmlString,Connection conn) throws RemoteException, ITMException //private ArrayList<String> protectRate(Document dom,StringBuffer valueXmlString,Connection conn) throws RemoteException, ITMException
//Modified by Rupesh on [02/11/2017][As Instructed by Piyush Sir].
private ArrayList<String> protectRate(Document dom,StringBuffer sb,Connection conn) throws RemoteException, ITMException
{ {
PreparedStatement pstmt1 = null; PreparedStatement pstmt1 = null;
PreparedStatement pstmt2 = null; PreparedStatement pstmt2 = null;
...@@ -2217,6 +2219,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj ...@@ -2217,6 +2219,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
double mQty=0,mRate=0; double mQty=0,mRate=0;
DistCommon distCommon = new DistCommon(); DistCommon distCommon = new DistCommon();
ArrayList<String> retList = new ArrayList<String>();//added by Rupesh on[24/10/2017] ArrayList<String> retList = new ArrayList<String>();//added by Rupesh on[24/10/2017]
StringBuffer valueXmlString = new StringBuffer();//added by Rupesh on[02/11/2017]
try try
{ {
...@@ -2335,7 +2338,9 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj ...@@ -2335,7 +2338,9 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
//Modified by Rupesh on [24/10/2017][As Instructed by Piyush Sir]. //Modified by Rupesh on [24/10/2017][As Instructed by Piyush Sir].
//private Void valAcct(String itemCode, String siteCode, String locCode, String lotNo, String lotSl,StringBuffer valueXmlString ,Document dom,Connection conn) throws ITMException //private Void valAcct(String itemCode, String siteCode, String locCode, String lotNo, String lotSl,StringBuffer valueXmlString ,Document dom,Connection conn) throws ITMException
private String valAcct(String itemCode, String siteCode, String locCode, String lotNo, String lotSl,StringBuffer valueXmlString ,Document dom,Connection conn) throws ITMException //private String valAcct(String itemCode, String siteCode, String locCode, String lotNo, String lotSl,StringBuffer valueXmlString ,Document dom,Connection conn) throws ITMException
//Modified by Rupesh on [02/11/2017][As Instructed by Piyush Sir].
private String valAcct(String itemCode, String siteCode, String locCode, String lotNo, String lotSl,StringBuffer sb ,Document dom,Connection conn) throws ITMException
{ {
//Connection conn = null; //Connection conn = null;
PreparedStatement pstmt1 = null,pstmt2 = null; PreparedStatement pstmt1 = null,pstmt2 = null;
...@@ -2361,6 +2366,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj ...@@ -2361,6 +2366,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
DistCommon distCommon=new DistCommon(); DistCommon distCommon=new DistCommon();
SimpleDateFormat sdf; SimpleDateFormat sdf;
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>"); StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
StringBuffer valueXmlString = new StringBuffer();//added by Rupesh on[02/11/2017]
try try
{ {
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
......
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