Commit 069b8dd8 authored by dpawar's avatar dpawar

trim prd_code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94000 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5cec70ce
...@@ -29,7 +29,10 @@ import org.w3c.dom.NodeList; ...@@ -29,7 +29,10 @@ import org.w3c.dom.NodeList;
public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLocal,ProofOfDeliveryRemote public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLocal,ProofOfDeliveryRemote
{ {
String str,confirmedInv=""; String str,confirmedInv="";
public static ProofOfDelivery getInstance()
{
return new ProofOfDelivery();
}
public String wfValData(String xmlString, String xmlString1, String xmlString2,String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException public String wfValData(String xmlString, String xmlString1, String xmlString2,String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("------------ wfvalData method called-----------------"); System.out.println("------------ wfvalData method called-----------------");
...@@ -651,6 +654,8 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca ...@@ -651,6 +654,8 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
exchRate=rs.getDouble(5); exchRate=rs.getDouble(5);
prdCode=rs.getString(6); prdCode=rs.getString(6);
} }
prdCode=prdCode==null ? "" : prdCode.trim();
currencyCode=currencyCode==null ? "" : currencyCode.trim();
rs.close();pstmt.close(); rs.close();pstmt.close();
rs=null;pstmt=null; rs=null;pstmt=null;
...@@ -943,7 +948,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca ...@@ -943,7 +948,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) protected int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal)
{ {
int count=-1; int count=-1;
...@@ -1280,7 +1285,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca ...@@ -1280,7 +1285,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
} }
private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) protected String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal)
{ {
String descr = null; String descr = null;
......
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