Commit f025e60b 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@101029 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4b8dfe26
......@@ -387,7 +387,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
int currentFormNo = 0;
GenericUtility genericUtility;
String itemCode = "", itemdescr = "",itemParent="",item_parntDesc="",itemUnitDesc="",itemUnit="",itemUnitDescUom="";
String itemCode = "", itemdescr = "",itemParent="",item_parntDesc="",itemUnitDesc="",itemUnitDesc1="",item_parntDesc1 ="",itemUnit="",itemUnitDescUom="",item_parntDescParent="";
try {
genericUtility = GenericUtility.getInstance();
......@@ -448,19 +448,39 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
rs = null;
pStmt.close();
pStmt = null;
sql = " select descr from item where item_parnt = ? ";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, item_parntDesc);
rs = pStmt.executeQuery();
if (rs.next()) {
item_parntDescParent = (rs.getString("descr"));
}
System.out.println("item parent Description" + item_parntDescParent);
rs.close();
rs = null;
pStmt.close();
pStmt = null;
itemdescr = (itemdescr == null) ? "" : itemdescr.trim();
valueXmlString.append("<descr >").append("<![CDATA[" + itemdescr + "]]>").append("</descr>");
itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim();
valueXmlString.append("<item_unit >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</item_unit>");
itemUnitDescUom = (itemUnitDescUom == null) ? "" : itemUnitDescUom.trim();
valueXmlString.append("<uom_descr >").append("<![CDATA[" + itemUnitDescUom + "]]>").append("</uom_descr>");
item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim();
valueXmlString.append("<item_parent >").append("<![CDATA[" + item_parntDesc + "]]>").append("</item_parent>");
item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim();
valueXmlString.append("<item_parnt >").append("<![CDATA[" + item_parntDesc + "]]>").append("</item_parnt>");
item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim();
item_parntDescParent = (item_parntDescParent == null) ? "" : item_parntDescParent.trim();
valueXmlString.append("<item_descr >").append("<![CDATA[" + item_parntDescParent + "]]>").append("</item_descr>");
itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim();
valueXmlString.append("<item_family_unit >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</item_family_unit>");
item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim();
itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim();
valueXmlString.append("<item_parent_unit >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</item_parent_unit>");
......@@ -474,7 +494,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
rs = pStmt.executeQuery();
if (rs.next()) {
itemUnitDesc= (rs.getString("descr"));
itemUnitDesc1= (rs.getString("descr"));
}
System.out.println("item Unit Description" + itemUnitDesc);
rs.close();
......@@ -482,27 +502,28 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
pStmt.close();
pStmt = null;
itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim();
valueXmlString.append("<uom_descr >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</uom_descr>");
valueXmlString.append("<uom_descr >").append("<![CDATA[" + itemUnitDesc1 + "]]>").append("</uom_descr>");
}
else if (currentColumn.trim().equalsIgnoreCase("item_parent")){
else if (currentColumn.trim().equalsIgnoreCase("item_parent"))
{
itemParent = genericUtility.getColumnValue("item_parent", dom);
sql = " select item_parnt from item where item_parnt = ? ";
sql = " select descr from item where item_parnt = ? ";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, itemParent);
rs = pStmt.executeQuery();
if (rs.next()) {
item_parntDesc = (rs.getString("item_parnt"));
item_parntDesc1 = (rs.getString("descr"));
}
System.out.println("item parent Description" + item_parntDesc);
System.out.println("item parent Description" + item_parntDesc1);
rs.close();
rs = null;
pStmt.close();
pStmt = null;
item_parntDesc = (item_parntDesc == null) ? "" : item_parntDesc.trim();
valueXmlString.append("<item_parnt >").append("<![CDATA[" + item_parntDesc + "]]>").append("</item_parnt>");
item_parntDesc1 = (item_parntDesc1 == null) ? "" : item_parntDesc1.trim();
valueXmlString.append("<item_descr >").append("<![CDATA[" + item_parntDesc1 + "]]>").append("</item_descr>");
......
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