Commit d43bb720 authored by smanohar's avatar smanohar

Bug fixing invalid character in sql statement in bill of quantity action button

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@212707 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5e7383c0
...@@ -314,6 +314,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -314,6 +314,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
XmlString = itmCodeItmChanges(dom,dom1,ditemCode,contractNo,siteCode,quantity,unitStd,rate,acctCode,cctrCode,conn); XmlString = itmCodeItmChanges(dom,dom1,ditemCode,contractNo,siteCode,quantity,unitStd,rate,acctCode,cctrCode,conn);
System.out.println("valueXmlString:::"+XmlString); System.out.println("valueXmlString:::"+XmlString);
valueXmlString.append(XmlString); // 26-nov-2019 manoharan
valueXmlString.append("<Detail>\r\n"); valueXmlString.append("<Detail>\r\n");
valueXmlString.append("<item_code>").append("<![CDATA[").append(ditemCode).append("]]>").append("</item_code>\r\n"); valueXmlString.append("<item_code>").append("<![CDATA[").append(ditemCode).append("]]>").append("</item_code>\r\n");
...@@ -368,7 +369,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -368,7 +369,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
} }
System.out.println("value of valueXmlString 1"+valueXmlString); System.out.println("value of valueXmlString 1"+valueXmlString);
valueXmlString.append(XmlString);// = itmCodeItmChanges(dom, dom1, dItemCode, contractNo, hsitecode); //valueXmlString.append(XmlString);// = itmCodeItmChanges(dom, dom1, dItemCode, contractNo, hsitecode);
System.out.println("value of valueXmlString 2 "+valueXmlString); System.out.println("value of valueXmlString 2 "+valueXmlString);
...@@ -516,7 +517,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -516,7 +517,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
} catch (Exception localException1) { } catch (Exception localException1) {
} }
} }
return valueXmlString.toString(); return genericUtility.serializeDom(genericUtility.parseString(valueXmlString.toString()));
} }
private StringBuffer itmCodeItmChanges(Document dom, Document dom1,String ditemCode, String contractNo,String siteCode,double quantity,String unitStd,double rate,String boqAcctCode,String boqCctrCode, Connection conn) throws ITMException private StringBuffer itmCodeItmChanges(Document dom, Document dom1,String ditemCode, String contractNo,String siteCode,double quantity,String unitStd,double rate,String boqAcctCode,String boqCctrCode, Connection conn) throws ITMException
...@@ -1092,7 +1093,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -1092,7 +1093,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
int cnt = 0; int cnt = 0;
String priceListParent = ""; String priceListParent = "";
priceList =genericUtility.getColumnValue("price_list", dom1); priceList =genericUtility.getColumnValue("price_list", dom1);
sql = "select count(*) from pricelist where price_list = ? and item_code = ? and (list_type = 'F' or list_type = 'B'); " ; sql = "select count(*) from pricelist where price_list = ? and item_code = ? and (list_type = 'F' or list_type = 'B') " ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,priceList); pstmt.setString(1,priceList);
pstmt.setString(2,ditemCode); pstmt.setString(2,ditemCode);
......
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