Commit eeb96a0f authored by cpatil's avatar cpatil

set current date as sch_rel_date on itemchange of detail as per requirement


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91836 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 98408451
......@@ -31,15 +31,18 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
public void ejbPassivate()
{
}*/
@Override
public String wfValData() throws RemoteException,ITMException
{
return "";
}
@Override
public String itemChanged() throws RemoteException,ITMException
{
return "";
}
@Override
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
......@@ -64,6 +67,7 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
}
return (errString);
}
@Override
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
String errString = " ";
......@@ -628,6 +632,7 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
return errString;
}//END OF VALIDATION
@Override
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
......@@ -655,6 +660,7 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
return valueXmlString;
}
@Override
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Connection conn = null;
......@@ -855,8 +861,10 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
System.out.println("[" + currentColumn + "] ==> '" + columnValue + "'");
if (currentColumn.equals( "itm_default" ))
{
valueXmlString.append("<sch_rel_date>").append("<![CDATA[" + getCurrdateAppFormat() + "]]>").append("</sch_rel_date>"); // added by cpatil on 30-AUG-12 as per suggestion
valueXmlString.append("<hold_status>").append("<![CDATA[" + "H" + "]]>").append("</hold_status>");
valueXmlString.append("<status_date>").append("<![CDATA[" + getCurrdateAppFormat() + "]]>").append("</status_date>");
}
if (currentColumn.equals( "item_code" ))
{
......
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