Commit fdb65a74 authored by gahmad's avatar gahmad

changes made at sun


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91572 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dcaed015
This diff is collapsed.
/********************************************************
Title : StockAllocIcLocal
Date : 02/12/2011
Developer: Dipak Chattar
********************************************************/
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; // added for ejb3
@Local // added for ejb3
public interface StockAllocIcLocal extends ValidatorLocal
{
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;
}
/********************************************************
Title : StockAllocRemote
Date : 02/12/2011
Developer: Dipak Chattar
********************************************************/
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3
public interface StockAllocIcRemote extends ValidatorRemote
{
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;
}
...@@ -72,6 +72,9 @@ public class StockTransferPos extends ValidatorEJB implements StockTransferPosLo ...@@ -72,6 +72,9 @@ public class StockTransferPos extends ValidatorEJB implements StockTransferPosLo
Node currDetail = null; Node currDetail = null;
try try
{ {
System.out.println("objContext =[" + objContext + "]");
System.out.println("domID =[" + domID + "]");
distStkUpd = getComponent("DistStkUpd"); distStkUpd = getComponent("DistStkUpd");
hdrDom = dom.getElementsByTagName("Detail1"); hdrDom = dom.getElementsByTagName("Detail1");
...@@ -79,7 +82,8 @@ public class StockTransferPos extends ValidatorEJB implements StockTransferPosLo ...@@ -79,7 +82,8 @@ public class StockTransferPos extends ValidatorEJB implements StockTransferPosLo
tranId = GenericUtility.getInstance().getColumnValueFromNode("tran_id",hdrDom.item(0)); tranId = GenericUtility.getInstance().getColumnValueFromNode("tran_id",hdrDom.item(0));
System.out.println("tran_id : " + tranId); System.out.println("tran_id : " + tranId);
currDetail = getCurrentDetailFromDom(dom,domID); //currDetail = getCurrentDetailFromDom(dom,domID); Commented by gulzar on 12/24/2011
currDetail = getCurrentDetailFromDom( dom, domID, objContext );//Change added by gulzar on 12/24/2011
updateStatus = getCurrentUpdateFlag(currDetail); updateStatus = getCurrentUpdateFlag(currDetail);
if (currDetail != null && !updateStatus.equalsIgnoreCase("D")) if (currDetail != null && !updateStatus.equalsIgnoreCase("D"))
...@@ -191,14 +195,16 @@ public class StockTransferPos extends ValidatorEJB implements StockTransferPosLo ...@@ -191,14 +195,16 @@ public class StockTransferPos extends ValidatorEJB implements StockTransferPosLo
} }
return stkOption; return stkOption;
} }
private Node getCurrentDetailFromDom(Document dom,String domId) //private Node getCurrentDetailFromDom(Document dom,String domId)//Commented by gulzar on 12/24/2011
private Node getCurrentDetailFromDom( Document dom, String domId, String objContext ) //changed added by gulzar on 12/24/2011
{ {
NodeList detailList = null; NodeList detailList = null;
Node currDetail = null,reqDetail = null; Node currDetail = null,reqDetail = null;
String currDomId = ""; String currDomId = "";
int detailListLength = 0; int detailListLength = 0;
detailList = dom.getElementsByTagName("Detail2"); //detailList = dom.getElementsByTagName("Detail2");//Commented by gulzar on 12/24/2011
detailList = dom.getElementsByTagName("Detail"+objContext);//change added by gulzar on 12/24/2011
detailListLength = detailList.getLength(); detailListLength = detailList.getLength();
for (int ctr = 0;ctr < detailListLength;ctr++) for (int ctr = 0;ctr < detailListLength;ctr++)
{ {
......
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