Commit cf98e965 authored by dhirajchavan's avatar dhirajchavan

REQID-D15LSUN033 FOR DATAWARE HOUSE,IC updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101025 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b76fe204
...@@ -387,7 +387,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw ...@@ -387,7 +387,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
int currentFormNo = 0; int currentFormNo = 0;
GenericUtility genericUtility; GenericUtility genericUtility;
String itemCode = "", itemdescr = "",itemParent="",item_parntDesc="",itemUnitDesc="",itemUnit=""; String itemCode = "", itemdescr = "",itemParent="",item_parntDesc="",itemUnitDesc="",itemUnit="",itemUnitDescUom="";
try { try {
genericUtility = GenericUtility.getInstance(); genericUtility = GenericUtility.getInstance();
...@@ -435,28 +435,25 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw ...@@ -435,28 +435,25 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
pStmt.close(); pStmt.close();
pStmt = null; pStmt = null;
/*sql = " select descr from uom where unit = ? "; sql = " select descr from uom where unit = ? ";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, itemUnit); pStmt.setString(1, itemUnitDesc);
rs = pStmt.executeQuery(); rs = pStmt.executeQuery();
if (rs.next()) { if (rs.next()) {
itemUnitDesc= (rs.getString("descr")); itemUnitDescUom= (rs.getString("descr"));
} }
System.out.println("item Unit Description" + itemUnitDesc); System.out.println("item Unit Description" + itemUnitDesc);
rs.close(); rs.close();
rs = null; rs = null;
pStmt.close(); pStmt.close();
pStmt = null;*/ pStmt = null;
itemdescr = (itemdescr == null) ? "" : itemdescr.trim(); itemdescr = (itemdescr == null) ? "" : itemdescr.trim();
valueXmlString.append("<descr >").append("<![CDATA[" + itemdescr + "]]>").append("</descr>"); valueXmlString.append("<descr >").append("<![CDATA[" + itemdescr + "]]>").append("</descr>");
itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim(); itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim();
valueXmlString.append("<item_unit >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</item_unit>"); valueXmlString.append("<item_unit >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</item_unit>");
itemUnitDescUom = (itemUnitDescUom == null) ? "" : itemUnitDescUom.trim();
itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim(); valueXmlString.append("<uom_descr >").append("<![CDATA[" + itemUnitDescUom + "]]>").append("</uom_descr>");
valueXmlString.append("<uom_descr >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</uom_descr>");
item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim(); item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim();
valueXmlString.append("<item_parent >").append("<![CDATA[" + item_parntDesc + "]]>").append("</item_parent>"); valueXmlString.append("<item_parent >").append("<![CDATA[" + item_parntDesc + "]]>").append("</item_parent>");
item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim(); item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim();
......
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