Commit 692710a1 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@101052 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2c33f5e2
......@@ -70,7 +70,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
String userId = null;
int cnt = 0;
int ctr = 0;
String itemCode = "";
String itemCode = "",itemFamily="";
String itemUnit ="";
String itemParent="";
String itemParentUnit="";
......@@ -272,7 +272,41 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
}
}
}else if (childNodeName.equalsIgnoreCase("item_family"))
{
itemFamily = genericUtility.getColumnValue("item_family", dom);
/*if (item_family == null)
{
errString = getErrorString(" ", "VMITMPUCB", userId);
break;
}*/
if(itemFamily != null && itemFamily.trim().length() > 0)
{
sql = "select count(1) from item where item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemFamily);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
if (cnt == 0) {
errCode = "VMITMFC";//item_family
errString = getErrorString("item_family",
errCode, userId);
break;
}
}
}
else if (childNodeName.equalsIgnoreCase("item_family_unit"))
{
......@@ -483,6 +517,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
itemUnitDesc = (itemUnitDesc == null) ? "" : itemUnitDesc.trim();
valueXmlString.append("<item_parent_unit >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</item_parent_unit>");
valueXmlString.append("<item_family >").append("<![CDATA[" + itemCode + "]]>").append("</item_family>");
}else if(currentColumn.trim().equalsIgnoreCase("item_unit")){
......
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