Commit 2c670eed authored by dhirajchavan's avatar dhirajchavan

REQID-D15LSUN033 FOR DATAWARE HOUSE,IC inserted methods in interfaces


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101101 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fb561fad
......@@ -382,6 +382,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
String xmlString2, String objContext, String currentColumn,
String editFlag, String xtraParams) throws RemoteException,
ITMException {
Document dom1 = null;
Document dom = null;
Document dom2 = null;
......@@ -421,7 +422,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
int currentFormNo = 0;
GenericUtility genericUtility;
String itemCode = "", itemdescr = "",itemParent="",item_parntDesc="",itemUnitDesc="",itemUnitDesc1="",item_parntDesc1 ="",itemUnit="",itemUnitDescUom="",item_parntDescParent="";
String itemCode = "",itemFamily="",item_parntDesc2="", itemdescr = "",itemParent="",item_parntDesc="",itemUnitDesc="",itemUnitDesc1="",item_parntDesc1 ="",itemUnit="",itemUnitDescUom="",item_parntDescParent="";
try {
genericUtility = GenericUtility.getInstance();
......@@ -518,6 +519,7 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
valueXmlString.append("<item_parent_unit >").append("<![CDATA[" + itemUnitDesc + "]]>").append("</item_parent_unit>");
valueXmlString.append("<item_family >").append("<![CDATA[" + itemCode + "]]>").append("</item_family>");
valueXmlString.append("<item_family_name >").append("<![CDATA[" + item_parntDescParent + "]]>").append("</item_family_name>");
}else if(currentColumn.trim().equalsIgnoreCase("item_unit")){
......@@ -562,6 +564,28 @@ public class DwhProdItemIC extends ValidatorEJB implements DwhProdItemICLocal,Dw
}
else if (currentColumn.trim().equalsIgnoreCase("item_family"))
{
itemFamily = genericUtility.getColumnValue("item_family", dom);
sql = " select descr from item where item_code = ? ";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, itemFamily);
rs = pStmt.executeQuery();
if (rs.next()) {
item_parntDesc2 = (rs.getString("descr"));
}
System.out.println("item parent Description" + item_parntDesc2);
rs.close();
rs = null;
pStmt.close();
pStmt = null;
item_parntDesc2 = (item_parntDesc2 == null) ? "" : item_parntDesc2.trim();
valueXmlString.append("<item_family_name >").append("<![CDATA[" + item_parntDesc2 + "]]>").append("</item_family_name>");
}
valueXmlString.append("</Detail1 >");
......
......@@ -11,6 +11,9 @@ public interface DwhProdItemICLocal {
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
......@@ -8,5 +8,8 @@ import javax.ejb.Remote;
public interface DwhProdItemICRemote {
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
......@@ -10,6 +10,9 @@ public interface DwhProdPlanICLocal {
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
......@@ -11,5 +11,8 @@ public interface DwhProdPlanICRemote {
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
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