Commit a9fd3ff1 authored by prane's avatar prane

bug fixed in sql aliase xmlwrite added protect in itmDefaultEdit()

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@190054 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ee749656
...@@ -11448,7 +11448,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -11448,7 +11448,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
valueXmlString.append("<descr>").append("<![CDATA[" + lsOtypeDescr + "]]>").append("</descr>"); valueXmlString.append("<descr>").append("<![CDATA[" + lsOtypeDescr + "]]>").append("</descr>");
mkeyval = checkNull(genericUtility.getColumnValue("sale_order", dom)); mkeyval = checkNull(genericUtility.getColumnValue("sale_order", dom));
sql = "select count(*) from sorddet where sale_order = ?"; sql = "select count(*) as CNT from sorddet where sale_order = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mkeyval); pstmt.setString(1, mkeyval);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -11522,26 +11522,26 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -11522,26 +11522,26 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if (cnt > 0) { if (cnt > 0) {
valueXmlString.append("<cust_code protect = \"1\">").append("<![CDATA[" + lsCustCode + "]]>") valueXmlString.append("<cust_code protect = \"1\">").append("<![CDATA[" + lsCustCode + "]]>")
.append("</cust_code>"); .append("</cust_code>");
valueXmlString.append("<cust_code__bil = \"1\">").append("<![CDATA[" + custCodeBil + "]]>") valueXmlString.append("<cust_code__bil protect = \"1\">").append("<![CDATA[" + custCodeBil + "]]>")
.append("</cust_code__bil>"); .append("</cust_code__bil>");
valueXmlString.append("<item_ser = \"1\">").append("<![CDATA[" + itemSer + "]]>").append("</item_ser>"); valueXmlString.append("<item_ser protect = \"1\">").append("<![CDATA[" + itemSer + "]]>").append("</item_ser>");
valueXmlString.append("<price_list = \"1\">").append("<![CDATA[" + priceList + "]]>") valueXmlString.append("<price_list protect = \"1\">").append("<![CDATA[" + priceList + "]]>")
.append("</price_list>"); .append("</price_list>");
valueXmlString.append("<price_list__disc = \"1\">").append("<![CDATA[" + priceListDisc + "]]>") valueXmlString.append("<price_list__disc protect = \"1\">").append("<![CDATA[" + priceListDisc + "]]>")
.append("</price_list__disc>"); .append("</price_list__disc>");
valueXmlString.append("<order_type = \"1\">").append("<![CDATA[" + orderType + "]]>") valueXmlString.append("<order_type protect = \"1\">").append("<![CDATA[" + orderType + "]]>")
.append("</order_type>"); .append("</order_type>");
valueXmlString.append("<price_list__clg = \"1\">").append("<![CDATA[" + priceListClg + "]]>") valueXmlString.append("<price_list__clg protect = \"1\">").append("<![CDATA[" + priceListClg + "]]>")
.append("</price_list__clg>"); .append("</price_list__clg>");
} else { } else {
valueXmlString.append("<cust_code protect = \"0\">").append("<![CDATA[" + lsCustCode + "]]>") valueXmlString.append("<cust_code protect = \"0\">").append("<![CDATA[" + lsCustCode + "]]>")
.append("</cust_code>"); .append("</cust_code>");
valueXmlString.append("<cust_code__bil = \"0\">").append("<![CDATA[" + custCodeBil + "]]>") valueXmlString.append("<cust_code__bil protect = \"0\">").append("<![CDATA[" + custCodeBil + "]]>")
.append("</cust_code__bil>"); .append("</cust_code__bil>");
valueXmlString.append("<item_ser = \"0\">").append("<![CDATA[" + itemSer + "]]>").append("</item_ser>"); valueXmlString.append("<item_ser protect = \"0\">").append("<![CDATA[" + itemSer + "]]>").append("</item_ser>");
valueXmlString.append("<price_list__disc = \"0\">").append("<![CDATA[" + priceListDisc + "]]>") valueXmlString.append("<price_list__disc protect = \"0\">").append("<![CDATA[" + priceListDisc + "]]>")
.append("</price_list__disc>"); .append("</price_list__disc>");
valueXmlString.append("<order_type = \"0\">").append("<![CDATA[" + orderType + "]]>") valueXmlString.append("<order_type protect = \"0\">").append("<![CDATA[" + orderType + "]]>")
.append("</order_type>"); .append("</order_type>");
} }
exchRate = Double.parseDouble(genericUtility.getColumnValue("exch_rate", dom) == null ? "0" exchRate = Double.parseDouble(genericUtility.getColumnValue("exch_rate", dom) == null ? "0"
......
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