Commit 1d0bb3f1 authored by kmandhre's avatar kmandhre

add CDATA in itemchange


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92344 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b35e199c
...@@ -150,11 +150,11 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -150,11 +150,11 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
listType = genericUtility.getColumnValue("list_type",dom) ; listType = genericUtility.getColumnValue("list_type",dom) ;
slabno = genericUtility.getColumnValue("slab_no",dom) ; slabno = genericUtility.getColumnValue("slab_no",dom) ;
valueXmlString.append("<price_list protect=\"1\">").append(priceList).append("</price_list>"); valueXmlString.append("<price_list protect=\"1\">").append("<![CDATA["+priceList+"]]>").append("</price_list>");
valueXmlString.append("<item_code protect=\"1\">").append(itemCode).append("</item_code>"); valueXmlString.append("<item_code protect=\"1\">").append("<![CDATA["+itemCode+"]]>").append("</item_code>");
valueXmlString.append("<unit protect=\"1\">").append(unit).append("</unit>"); valueXmlString.append("<unit protect=\"1\">").append("<![CDATA["+unit+"]]>").append("</unit>");
valueXmlString.append("<list_type protect=\"1\">").append(listType).append("</list_type>"); valueXmlString.append("<list_type protect=\"1\">").append("<![CDATA["+listType+"]]>").append("</list_type>");
valueXmlString.append("<slab_no protect=\"1\">").append(slabno).append("</slab_no>"); valueXmlString.append("<slab_no protect=\"1\">").append("<![CDATA["+slabno+"]]>").append("</slab_no>");
/* sql = "SELECT DISTINCT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'"; /* sql = "SELECT DISTINCT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'";
...@@ -175,9 +175,9 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -175,9 +175,9 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
long mslab_no=0; long mslab_no=0;
priceList = genericUtility.getColumnValue("price_list",dom) ; priceList = genericUtility.getColumnValue("price_list",dom) ;
String mprice_list,mitem_code,munit,mlist_type; String mprice_list,mitem_code,munit,mlist_type;
valueXmlString.append("<price_list protect=\"1\">").append(priceList).append("</price_list>"); valueXmlString.append("<price_list protect=\"1\">").append("<![CDATA["+priceList+"]]>").append("</price_list>");
valueXmlString.append("<item_code protect=\"0\">").append("<![CDATA[").append(" ").append("]]>").append("</item_code>"); valueXmlString.append("<item_code protect=\"0\">").append("<![CDATA[").append(" ").append("]]>").append("</item_code>");
valueXmlString.append("<unit protect=\"0\">").append(" ").append("</unit>"); valueXmlString.append("<unit protect=\"0\">").append("<![CDATA[ ]]>").append("</unit>");
// 31/01/2008 manoharan distinct not required // 31/01/2008 manoharan distinct not required
//sql = "SELECT DISTINCT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'"; //sql = "SELECT DISTINCT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'";
sql = "SELECT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'"; sql = "SELECT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'";
...@@ -187,7 +187,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -187,7 +187,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
if (rs.next()) if (rs.next())
{ {
listType = rs.getString("list_type"); listType = rs.getString("list_type");
valueXmlString.append("<list_type protect=\"1\">").append(listType).append("</list_type>"); valueXmlString.append("<list_type protect=\"1\">").append("<![CDATA["+listType+"]]>").append("</list_type>");
} }
else else
{ {
...@@ -201,11 +201,11 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -201,11 +201,11 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
if (rs.next()) if (rs.next())
{ {
listType = rs.getString("list_type"); listType = rs.getString("list_type");
valueXmlString.append("<list_type protect=\"1\">").append(listType).append("</list_type>"); valueXmlString.append("<list_type protect=\"1\">").append("<![CDATA["+listType+"]]>").append("</list_type>");
} }
else else
{ {
valueXmlString.append("<list_type protect=\"0\">").append(" ").append("</list_type>"); valueXmlString.append("<list_type protect=\"0\">").append("<![CDATA[ ]]>").append("</list_type>");
} }
// end 31/01/2008 manoharan // end 31/01/2008 manoharan
} }
...@@ -271,7 +271,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -271,7 +271,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
rs.close(); rs.close();
rs = null; rs = null;
valueXmlString.append("<list_type protect=\"1\">").append(mlist_type).append("</list_type>"); valueXmlString.append("<list_type protect=\"1\">").append("<![CDATA["+mlist_type+"]]>").append("</list_type>");
} }
else else
if(currentColumn.trim().equals("item_code")) if(currentColumn.trim().equals("item_code"))
...@@ -290,9 +290,9 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -290,9 +290,9 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
rs.close(); rs.close();
rs = null; rs = null;
valueXmlString.append("<item_descr>").append(mdescr).append("</item_descr>"); valueXmlString.append("<item_descr>").append("<![CDATA["+mdescr+"]]>").append("</item_descr>");
valueXmlString.append("<unit>").append(munit).append("</unit>"); valueXmlString.append("<unit>").append("<![CDATA["+munit+"]]>").append("</unit>");
valueXmlString.append("<site_code>").append(msite_code).append("</site_code>"); valueXmlString.append("<site_code>").append("<![CDATA["+msite_code+"]]>").append("</site_code>");
} }
else else
...@@ -310,7 +310,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -310,7 +310,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
rs.close(); rs.close();
rs = null; rs = null;
valueXmlString.append("<descr>").append(mdescr).append("</descr>"); valueXmlString.append("<descr>").append("<![CDATA["+mdescr+"]]>").append("</descr>");
} }
else else
if(currentColumn.trim().equals("list_type") ) if(currentColumn.trim().equals("list_type") )
...@@ -323,15 +323,15 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -323,15 +323,15 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
mrate_type = genericUtility.getColumnValue("rate_type",dom); mrate_type = genericUtility.getColumnValue("rate_type",dom);
mlot_no__from = genericUtility.getColumnValue("lot_no__from",dom); mlot_no__from = genericUtility.getColumnValue("lot_no__from",dom);
mlot_no__to = genericUtility.getColumnValue("mlot_no__to",dom); mlot_no__to = genericUtility.getColumnValue("mlot_no__to",dom);
valueXmlString.append("<rate_type protect = \"1\">").append(mrate_type).append("</rate_type>"); valueXmlString.append("<rate_type protect = \"1\">").append("<![CDATA["+mrate_type+"]]>").append("</rate_type>");
valueXmlString.append("<lot_no__from protect = \"1\">").append(mlot_no__from).append("</lot_no__from>"); valueXmlString.append("<lot_no__from protect = \"1\">").append("<![CDATA["+mlot_no__from+"]]>").append("</lot_no__from>");
valueXmlString.append("<lot_no__to protect= \"1\">").append(mlot_no__to).append("</lot_no__to>"); valueXmlString.append("<lot_no__to protect= \"1\">").append("<![CDATA["+mlot_no__to+"]]>").append("</lot_no__to>");
} }
else else
{ {
valueXmlString.append("<rate_type protect = \"1\">").append(mrate_type).append("</rate_type>"); valueXmlString.append("<rate_type protect = \"1\">").append("<![CDATA["+mrate_type+"]]>").append("</rate_type>");
valueXmlString.append("<lot_no__from protect = \"0\">").append(mlot_no__from).append("</lot_no__from>"); valueXmlString.append("<lot_no__from protect = \"0\">").append("<![CDATA["+mlot_no__from+"]]>").append("</lot_no__from>");
valueXmlString.append("<lot_no__to protect = \"0\">").append(mlot_no__to).append("</lot_no__to>"); valueXmlString.append("<lot_no__to protect = \"0\">").append("<![CDATA["+mlot_no__to+"]]>").append("</lot_no__to>");
} }
......
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