Commit 47c08842 authored by manohar's avatar manohar

This commit was generated by cvs2svn to compensate for changes in r4, which

included commits to RCS files with non-trunk default branches.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91069 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 47c64328
/*
Developed by : HATIM LAXMIDHAR
Discription : Post Save for the Adjustment Issue.
Date : 01/01/2006
*/
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.lang.String;
import java.sql.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import java.util.HashMap;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*;
//public class AdjIssPosEJB extends ValidatorEJB implements SessionBean // commented for ejb3
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
public class AdjIssPos extends ValidatorEJB implements AdjIssPosLocal, AdjIssPosRemote //added for ejb3
{
/* commented for ejb3
public void ejbCreate() throws RemoteException, CreateException
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}*/
public String postSaveRec()throws RemoteException,ITMException
{
return "";
}
public String postSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Document dom = null;
System.out.println("AdjIssPosEJB called");
try
{
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
executepostSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
catch(Exception e)
{
System.out.println("Exception :AdjIssPosEJB ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
private String executepostSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
HashMap hashMap = new HashMap();
String lineNo = ""; //kfld2
String tranSer = "ADJISS";
String line = "";
String siteCode = "", itemCode = "", quantity = "", locCode = "", lotNo = "", lotSl = "";
DistStkUpdLocal distStkUpd = null; // for ejb3
NodeList hdrDom = null;
Node currDetail = null;
String updateStatus = "",tranId = "";
try
{
distStkUpd = getComponent("DistStkUpd");
hdrDom = dom.getElementsByTagName("Detail1");
siteCode = GenericUtility.getInstance().getColumnValueFromNode("site_code",hdrDom.item(0));
tranId = GenericUtility.getInstance().getColumnValueFromNode("tran_id",hdrDom.item(0));
System.out.println("tran_id (kfld1) : " + tranId);
currDetail = getCurrentDetailFromDom(dom,domID);
updateStatus = getCurrentUpdateFlag(currDetail);
if (currDetail != null && !updateStatus.equalsIgnoreCase("D"))
{
itemCode = GenericUtility.getInstance().getColumnValueFromNode("item_code",currDetail);
locCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code",currDetail);
lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",currDetail);
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail);
quantity = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail);
lineNo = GenericUtility.getInstance().getColumnValueFromNode("line_no",currDetail);
System.out.println("lineNo: "+lineNo);
line = " "+lineNo.trim();
hashMap.put("tran_date", new java.sql.Date(System.currentTimeMillis()));
hashMap.put("ref_ser",tranSer);
hashMap.put("ref_id", tranId);
hashMap.put("ref_line", line.substring(line.length()-3));
hashMap.put("item_code", itemCode);
hashMap.put("site_code", siteCode);
hashMap.put("loc_code",locCode);
hashMap.put("lot_no",lotNo);
hashMap.put("lot_sl",lotSl);
hashMap.put("alloc_qty", new Double(quantity.trim().length() == 0?"0":quantity));
hashMap.put("chg_win","W_ADJ_ISS");
hashMap.put("chg_user", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
hashMap.put("chg_term", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams, "termId"));
//Calling DistStkUpdEJB
System.out.println("Calling DistStkUpdEJB.....");
if (distStkUpd.updAllocTrace(hashMap, conn) > 0)
{
System.out.println("distStkUpd.UpdAllocTrace(HashMap, Connection) : Sucessuful!");
//TO BE ASKED!!!
}
}
}
catch(SQLException e)
{
System.out.println("Exception : AdjIssPosEJB : actionStock " +e.getMessage());
throw new ITMException(e);
}
catch(Exception e)
{
System.out.println("Exception : AdjIssPosEJB : actionHandler :" +e.getMessage());
throw new ITMException(e);
}
return "";
}
private Node getCurrentDetailFromDom(Document dom,String domId)
{
NodeList detailList = null;
Node currDetail = null,reqDetail = null;
String currDomId = "";
int detailListLength = 0;
detailList = dom.getElementsByTagName("Detail2");
detailListLength = detailList.getLength();
for (int ctr = 0;ctr < detailListLength;ctr++)
{
currDetail = detailList.item(ctr);
currDomId = currDetail.getAttributes().getNamedItem("domID").getNodeValue();
if (currDomId.equals(domId))
{
reqDetail = currDetail;
break;
}
}
return reqDetail;
}
private String getCurrentUpdateFlag(Node currDetail)
{
NodeList currDetailList = null;
String updateStatus = "",nodeName = "";
int currDetailListLength = 0;
currDetailList = currDetail.getChildNodes();
currDetailListLength = currDetailList.getLength();
for (int i=0;i< currDetailListLength;i++)
{
nodeName = currDetailList.item(i).getNodeName();
if (nodeName.equalsIgnoreCase("Attribute"))
{
updateStatus = currDetailList.item(i).getAttributes().getNamedItem("updateFlag").getNodeValue();
break;
}
}
return updateStatus;
}
private DistStkUpdLocal getComponent(String componentName)throws Exception // for ejb3
{
DistStkUpdLocal comp = null; // for ejb3
try
{
System.out.println("Looking For Component.... :: " + componentName);
AppConnectParm appConnect = new AppConnectParm();
java.util.Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
comp = (DistStkUpdLocal)ctx.lookup("ibase/DistStkUpd/local"); // for ejb3
//comp = distStkUpdHome.create();
System.out.println(componentName+" Found.....");
}
catch(Exception e)
{
throw e;
}
return comp;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
//import javax.ejb.EJBObject;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ValidatorLocal;
import javax.ejb.Local; // added for ejb3
//public interface AdjIssPos extends ValidatorLocal, EJBObject
@Local // added for ejb3
public interface AdjIssPosLocal extends ValidatorLocal
{
public String postSaveRec()throws RemoteException,ITMException;
public String postSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
//import javax.ejb.EJBObject;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ValidatorRemote;
import javax.ejb.Remote;// added for ejb3
//public interface AdjIssPos extends ValidatorRemote, EJBObject //commented for ejb3
@Remote // added for ejb3
public interface AdjIssPosRemote extends ValidatorRemote
{
public String postSaveRec()throws RemoteException,ITMException;
public String postSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
/*
Developed by : HATIM LAXMIDHAR
Discription : Pre Save for the Adjustment Issue.
Date : 01/01/2006
*/
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.lang.String;
import java.sql.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import java.util.HashMap;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*;
import javax.ejb.Stateless; // added for ejb3
//public class AdjIssPrs extends ValidatorEJB implements AdjIssPrsRemote, AdjIssPrsLocal // commentd for ejb3
@Stateless // added for ejb3
public class AdjIssPrs extends ValidatorEJB implements AdjIssPrsRemote, AdjIssPrsLocal // added for ejb3
{
/* comments for ejb3
public void ejbCreate() throws RemoteException, CreateException
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}*/
public String preSaveRec() throws RemoteException,ITMException
{
return "";
}
public String preSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
System.out.println("AdjIssPrsEJB called");
Document dom = null;
try
{
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
executepreSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
catch(Exception e)
{
System.out.println("Exception :AdjIssPrsEJB :preSaveRec() :" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
private String executepreSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
HashMap hashMap = new HashMap();
String errCode = "", errString = "";
String lineNo = ""; //kfld2
String tranSer = "ADJISS";
String line = "";
String siteCode = "", itemCode = "", quantity = "", locCode = "", lotNo = "", lotSl = "";
double allocQty = 0d;
int cnt = 0;
DistStkUpdLocal distStkUpd = null; // for ejb3
String updateStatus = "",tranId = "";
NodeList hdrDom = null;
Node currDetail = null;
Statement stmt = null; // Added by Jiten 19/05/06
ResultSet rs = null; // Added by Jiten 19/05/06
String sql = ""; // Added by Jiten 19/05/06
try
{
stmt = conn.createStatement(); // Added by Jiten 19/05/06
distStkUpd = getComponent("DistStkUpd");
hdrDom = dom.getElementsByTagName("Detail1");
siteCode = GenericUtility.getInstance().getColumnValueFromNode("site_code",hdrDom.item(0));
tranId = GenericUtility.getInstance().getColumnValueFromNode("tran_id",hdrDom.item(0));
System.out.println("tran_id (kfld1) : " + tranId);
currDetail = getCurrentDetailFromDom(dom,domID);
updateStatus = getCurrentUpdateFlag(currDetail);
if (currDetail != null && !updateStatus.equalsIgnoreCase("A"))
{
itemCode = GenericUtility.getInstance().getColumnValueFromNode("item_code",currDetail);
locCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code",currDetail);
lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",currDetail);
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail);
quantity = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail);
lineNo = GenericUtility.getInstance().getColumnValueFromNode("line_no",currDetail);
if (updateStatus.equalsIgnoreCase("E") || updateStatus.equalsIgnoreCase("D")) //if condition added by jiten 19/05/06
{
//Commented And Changes Below - Gulzar 15/05/07
//sql = "SELECT QUANTITY FROM ADJ_ISSRCPDET WHERE TRAN_ID = '"+tranId+"' AND LINE_NO = "+lineNo+""; //Gulzar 15/05/07
sql = "SELECT ITEM_CODE, LOC_CODE, LOT_NO, LOT_SL, QUANTITY FROM ADJ_ISSRCPDET WHERE TRAN_ID = '"+tranId+"' AND LINE_NO = "+lineNo+""; //Gulzar 15/05/07
rs = stmt.executeQuery(sql);
if (rs.next())
{
itemCode = rs.getString("ITEM_CODE"); //Gulzar 15/05/07
locCode = rs.getString("LOC_CODE"); //Gulzar 15/05/07
lotNo = rs.getString("LOT_NO"); //Gulzar 15/05/07
lotSl = rs.getString("LOT_SL"); //Gulzar 15/05/07
quantity = rs.getString("QUANTITY");
}
//End Changes - Gulzar 15/05/07
}
System.out.println("lineNo :"+lineNo+" itemCode :"+itemCode+" locCode :"+locCode+" lotNo :"+lotNo+" lotSl :"+lotSl+" quantity :"+quantity); //Gulzar 15/05/07
allocQty = -1 * Double.parseDouble(quantity);
System.out.println("lineNo: "+lineNo);
line = " " + lineNo;
hashMap.put("tran_date", new java.sql.Date(System.currentTimeMillis()));
hashMap.put("ref_ser",tranSer);
hashMap.put("ref_id", tranId);
hashMap.put("ref_line", line.substring(line.length()-3));
hashMap.put("item_code", itemCode);
hashMap.put("site_code", siteCode);
hashMap.put("loc_code",locCode);
hashMap.put("lot_no",lotNo);
hashMap.put("lot_sl",lotSl);
hashMap.put("alloc_qty", new Double(allocQty));
hashMap.put("chg_win","W_ADJ_ISS");
hashMap.put("chg_user", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
hashMap.put("chg_term", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams, "termId"));
//Calling DistStkUpdEJB
System.out.println("Calling DistStkUpdEJB.....");
if (distStkUpd.updAllocTrace(hashMap, conn) > 0)
{
System.out.println("distStkUpd.UpdAllocTrace(HashMap, Connection) : Sucessuful!");
//TO BE ASKED!!!
}
}
}
catch(SQLException e)
{
System.out.println("Exception : AdjIssPrsEJB : actionStock " +e.getMessage());
throw new ITMException(e);
}
catch(Exception e)
{
System.out.println("Exception : AdjIssPrsEJB : actionHandler :" +e.getMessage());
throw new ITMException(e);
}
finally
{
try
{
if (stmt !=null)
{
stmt.close();
}
if (rs != null)
{
rs.close();
}
}catch(Exception e){}
}
return errString;
}
private Node getCurrentDetailFromDom(Document dom,String domId)
{
NodeList detailList = null;
Node currDetail = null,reqDetail = null;
String currDomId = "";
int detailListLength = 0;
detailList = dom.getElementsByTagName("Detail2");
detailListLength = detailList.getLength();
for (int ctr = 0;ctr < detailListLength;ctr++)
{
currDetail = detailList.item(ctr);
currDomId = currDetail.getAttributes().getNamedItem("domID").getNodeValue();
if (currDomId.equals(domId))
{
reqDetail = currDetail;
break;
}
}
return reqDetail;
}
private String getCurrentUpdateFlag(Node currDetail)
{
NodeList currDetailList = null;
String updateStatus = "",nodeName = "";
int currDetailListLength = 0;
currDetailList = currDetail.getChildNodes();
currDetailListLength = currDetailList.getLength();
for (int i=0;i< currDetailListLength;i++)
{
nodeName = currDetailList.item(i).getNodeName();
if (nodeName.equalsIgnoreCase("Attribute"))
{
updateStatus = currDetailList.item(i).getAttributes().getNamedItem("updateFlag").getNodeValue();
break;
}
}
return updateStatus;
}
private DistStkUpdLocal getComponent(String componentName)throws Exception // for ejb3
{
DistStkUpdLocal distStkUpdLocal = null;
try
{
System.out.println("Looking For Component.... :: " + componentName);
AppConnectParm appConnect = new AppConnectParm();
java.util.Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
//DistStkUpdHome distStkUpdHome = (DistStkUpdHome)ctx.lookup(componentName); for ejb3
distStkUpdLocal = (DistStkUpdLocal)ctx.lookup("ibase/DistStkUpd/local"); //for ejb3
//comp = distStkUpdHome.create();
System.out.println(componentName+" Found.....");
}
catch(Exception e)
{
throw e;
}
return distStkUpdLocal;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
//import javax.ejb.EJBObject; // commented for ejb3
import javax.ejb.Local; //added for ejb3
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ValidatorLocal;
//public interface AdjIssPrs extends ValidatorLocal, EJBObject // commented for ejb3
@Local // added for ejb3
public interface AdjIssPrsLocal extends ValidatorLocal //added for ejb3
{
public String preSaveRec()throws RemoteException,ITMException;
public String preSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
//import javax.ejb.EJBObject; // commented for ejb3
import javax.ejb.Remote; // added for ejb3
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ValidatorRemote;
//public interface AdjIssPrs extends ValidatorRemote, EJBObject // commented for ejb3
@Remote // added for ejb3
public interface AdjIssPrsRemote extends ValidatorRemote //added for ejb3
{
public String preSaveRec()throws RemoteException,ITMException;
public String preSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
This diff is collapsed.
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import org.w3c.dom.*;
//import javax.ejb.EJBObject; //commented for ejb3
import javax.ejb.Local; //added for ejb3
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@Local // added for ejb3
//public interface BarCodeReport extends ValidatorLocal,EJBObject //commented for ejb3
public interface BarCodeReportLocal extends ValidatorLocal //added for ejb3
{
public String wfValData() throws RemoteException,ITMException;
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() 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;
}
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import org.w3c.dom.*;
//import javax.ejb.EJBObject; //commented for ejb3
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
//public interface BarCodeReport extends ValidatorRemote,EJBObject //commented for ejb3
@Remote // added for ejb3
public interface BarCodeReportRemote extends ValidatorRemote //added for ejb3
{
public String wfValData() throws RemoteException,ITMException;
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() 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;
}
This diff is collapsed.
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; //added for ejb3
@Local // added for ejb3
//public interface ChargeBackRemote extends EJBObject // commented for ejb3
public interface ChargeBackLocal //extends ValidatorLocal // added for ejb3
{
public String replaceVal(String xmlString,String targetField,String formNo,String xtraParams)throws RemoteException,ITMException;
}
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
//public interface ChargeBackRemote extends EJBObject // commented for ejb3
@Remote // added for ejb3
public interface ChargeBackRemote //extends ValidatorRemote // added for ejb3
{
public String replaceVal(String xmlString,String targetField,String formNo,String xtraParams)throws RemoteException,ITMException;
}
/*
This EJB is invoked from ActionHandlerService
*/
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.*;
import ibase.utility.*;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import java.rmi.RemoteException;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.*;
import java.util.*;
import java.math.*;
import java.sql.*;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import java.io.*;
import java.io.File;
import java.sql.*;
import java.io.*;
import java.lang.*;
import javax.ejb.Stateless; // added for ejb3
//public class ChargeBackVerifyEJB extends ActionHandlerEJB implements SessionBean // commented for ejb3
@Stateless // added for ejb3
public class ChargeBackVerify extends ActionHandlerEJB implements ChargeBackVerifyLocal, ChargeBackVerifyRemote // added for ejb3
{
/* commented for ejb3
public void ejbCreate() throws RemoteException, CreateException
{
try
{
System.out.println("Entering into ChargeBackVerifyEJB.............");
}
catch (Exception e)
{
System.out.println("Exception :ChargeBackEJB :ejbCreate :==>"+e);
throw new CreateException();
}
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}*/
public String confirm(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
VerifyAllLocal verifyAllLocal = null;
String result = "";
try
{
verifyAllLocal = getComponent("VerifyAll");
System.out.println("Varifying charge back.......");
result = verifyAllLocal.verify(tranID);
}
catch(Exception e)
{
System.out.println("Exception [01]::"+e.getMessage());
throw new ITMException(e);
}
System.out.println();
System.out.println("Returning Result of Varification....::"+result);
return result;
}
// for ejb3
private VerifyAllLocal getComponent(String componentName)throws Exception
{
VerifyAllLocal comp = null;
try
{
System.out.println("Looking For Component.... :: " + componentName);
AppConnectParm appConnect = new AppConnectParm();
java.util.Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
comp = (VerifyAllLocal)ctx.lookup("ibase/verifyAll/local"); // for ejb3
//comp = verifyAllHome.create();
System.out.println(componentName+" Found.....");
}
catch(Exception e)
{
throw e;
}
return comp;
}
}//class
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.ejb.*;
import javax.ejb.Local; // added for ejb3
import ibase.webitm.utility.ITMException;
@Local // added for ejb3
//public interface ChargeBackVerify extends ActionHandlerLocal,EJBObject
public interface ChargeBackVerifyLocal extends ActionHandlerLocal // added for ejb3
{
public String confirm(String tranID, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.ejb.*;
import javax.ejb.Remote; // added for ejb3
import ibase.webitm.utility.ITMException;
//public interface ChargeBackVerify extends ActionHandlerRemote,EJBObject
@Remote // added for ejb3
public interface ChargeBackVerifyRemote extends ActionHandlerRemote // added for ejb3
{
public String confirm(String tranID, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
}
This diff is collapsed.
/*
Developed by : Hatim Laxmidhar
Started On : 23/12/2005
*/
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject; // commented for ejb3
import org.w3c.dom.*;
import javax.ejb.Local; // added for ejb3
//public interface ConsumeIssue extends ValidatorLocal , EJBObject // commented for ejb3
@Local // added for ejb3
public interface ConsumeIssueLocal extends ValidatorLocal // added for ejb3
{
public String wfValData() throws RemoteException,ITMException;
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;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.util.*;
import java.sql.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
import javax.ejb.Stateless; // added for ejb3
//public class ConsumeIssuePos extends ValidatorEJB implements SessionBean //commented for ejb3
@Stateless // added for ejb3
public class ConsumeIssuePos extends ValidatorEJB implements ConsumeIssuePosLocal, ConsumeIssuePosRemote //added for ejb3
{
/* commented for ejb
public void ejbCreate() throws RemoteException, CreateException
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}*/
public String postSaveRec()throws RemoteException,ITMException
{
return "";
}
public String postSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Document dom = null;
System.out.println("ConsumeIssuePosEJB called");
try
{
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
executepostSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
catch(Exception e)
{
System.out.println("Exception :ConsumeIssuePosEJB ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
private String executepostSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Statement stmt = null;
ResultSet rs = null;
String siteCodeReq = "", itemCode = "", lineNo = "",locCode = "", lotNo = "", lotSl = "";
String sql = "", tranType = "", line = "";
HashMap strAllocate = new HashMap();
double quantity = 0d;
int updateCnt = 0, retVal = 0;
java.sql.Date tranDate = null;
GenericUtility genericUtility = GenericUtility.getInstance();
DistStkUpdLocal distStkUpd = null;
NodeList hdrDom = null;
Node currDetail = null;
String updateStatus = "",tranId = "",quantityStr = "";
try
{
stmt = conn.createStatement();
distStkUpd = getComponent("DistStkUpd");
tranDate = new java.sql.Date(System.currentTimeMillis());
System.out.println("\n tranDate :"+tranDate);
hdrDom = dom.getElementsByTagName("Detail1");
tranType = GenericUtility.getInstance().getColumnValueFromNode("tran_type",hdrDom.item(0));
siteCodeReq = GenericUtility.getInstance().getColumnValueFromNode("site_code__req",hdrDom.item(0));
tranId = GenericUtility.getInstance().getColumnValueFromNode("cons_issue",hdrDom.item(0));
currDetail = getCurrentDetailFromDom(dom,domID);
updateStatus = getCurrentUpdateFlag(currDetail);
if (currDetail != null && !updateStatus.equalsIgnoreCase("D"))
{
lineNo = GenericUtility.getInstance().getColumnValueFromNode("line_no",currDetail);
itemCode = GenericUtility.getInstance().getColumnValueFromNode("item_code",currDetail);
locCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code",currDetail);
lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",currDetail);
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail);
quantityStr = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail);
quantity = Double.parseDouble(quantityStr);
if (tranType.equals("I"))
{
line = " " + lineNo;
strAllocate.put("tran_date",tranDate);
strAllocate.put("ref_ser","C-ISS");
strAllocate.put("ref_id",tranId);
strAllocate.put("ref_line",line.substring(line.length()-3));
strAllocate.put("site_code",siteCodeReq);
strAllocate.put("item_code",itemCode);
strAllocate.put("loc_code",locCode);
strAllocate.put("lot_no",lotNo);
strAllocate.put("lot_sl",lotSl);
strAllocate.put("alloc_qty",new Double(quantity));
strAllocate.put("chg_user",genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
strAllocate.put("chg_term",genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"));
strAllocate.put("chg_win","W_CONSUME_ISSUE");
System.out.println("Calling DistStkUpdEJB.....");
//if (distStkUpd.updAllocTrace(strAllocate) > 0)
/*Changed by HATIM on 13/01/2006*/
if (distStkUpd.updAllocTrace(strAllocate, conn) > 0)
{
System.out.println("distStkUpd.UpdAllocTrace(HashMap, Connection) : Sucessuful!");
}
/*END*/
}
}//while end
}//try end
catch (SQLException sqx)
{
System.out.println("The SQLException occurs in ConsumePostSaveEJB :"+sqx);
sqx.printStackTrace();
throw new ITMException(sqx);
}
catch(Exception e)
{
System.out.println("The SQLException occurs in ConsumePostSaveEJB :"+e);
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(stmt != null)
{
stmt.close();
stmt = null;
}
}
catch(Exception e)
{
System.err.println("Exception :DBAccessEJB :getITMVersion :\n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
}
return "";
}
private Node getCurrentDetailFromDom(Document dom,String domId)
{
NodeList detailList = null;
Node currDetail = null,reqDetail = null;
String currDomId = "";
int detailListLength = 0;
detailList = dom.getElementsByTagName("Detail2");
detailListLength = detailList.getLength();
for (int ctr = 0;ctr < detailListLength;ctr++)
{
currDetail = detailList.item(ctr);
currDomId = currDetail.getAttributes().getNamedItem("domID").getNodeValue();
if (currDomId.equals(domId))
{
reqDetail = currDetail;
break;
}
}
return reqDetail;
}
private String getCurrentUpdateFlag(Node currDetail)
{
NodeList currDetailList = null;
String updateStatus = "",nodeName = "";
int currDetailListLength = 0;
currDetailList = currDetail.getChildNodes();
currDetailListLength = currDetailList.getLength();
for (int i=0;i< currDetailListLength;i++)
{
nodeName = currDetailList.item(i).getNodeName();
if (nodeName.equalsIgnoreCase("Attribute"))
{
updateStatus = currDetailList.item(i).getAttributes().getNamedItem("updateFlag").getNodeValue();
break;
}
}
return updateStatus;
}
/*private DistStkUpd getComponent(String componentName)throws Exception
{
DistStkUpd comp = null;
try
{
System.out.println("Looking For Component.... :: " + componentName);
AppConnectParm appConnect = new AppConnectParm();
java.util.Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
DistStkUpdHome distStkUpdHome = (DistStkUpdHome)ctx.lookup(componentName);
comp = distStkUpdHome.create();
System.out.println(componentName+" Found.....");
}
catch(Exception e)
{
throw e;
}
return comp;
}*/
private DistStkUpdLocal getComponent(String componentName)throws Exception
{
DistStkUpdLocal comp = null;
try
{
System.out.println("Looking For Component.... :: " + componentName);
AppConnectParm appConnect = new AppConnectParm();
java.util.Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
comp = (DistStkUpdLocal)ctx.lookup("ibase/DistStkUpd/local"); // for ejb3
//comp = distStkUpdHome.create();
System.out.println(componentName+" Found.....");
}
catch(Exception e)
{
throw e;
}
return comp;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.sql.Connection;
import javax.ejb.Local; // added for ejb3
import ibase.webitm.utility.ITMException;
//public interface ConsumeIssuePos extends ValidatorLocal, EJBObject //commented for ejb3
@Local // added for ejb3
public interface ConsumeIssuePosLocal extends ValidatorLocal // added for ejb3
{
public String postSaveRec()throws RemoteException,ITMException;
public String postSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.sql.Connection;
import javax.ejb.Remote; // added for ejb3
import ibase.webitm.utility.ITMException;
//public interface ConsumeIssuePos extends ValidatorRemote, EJBObject //commented for ejb3
@Remote // added for ejb3
public interface ConsumeIssuePosRemote extends ValidatorRemote // added for ejb3
{
public String postSaveRec()throws RemoteException,ITMException;
public String postSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.util.*;
import java.sql.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
public class ConsumeIssuePrs extends ValidatorEJB implements ConsumeIssuePrsLocal, ConsumeIssuePrsRemote
{
/*public void ejbCreate() throws RemoteException, CreateException
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}*/
public String preSaveRec() throws RemoteException,ITMException
{
return "";
}
public String preSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
System.out.println("ConsumeIssuePrsEJB called");
Document dom = null;
try
{
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
executepreSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
catch(Exception e)
{
System.out.println("Exception :ConsumeIssuePrsEJB ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
private String executepreSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Statement stmt = null;
ResultSet rs = null;
String siteCodeReq = "", itemCode = "", lineNo = "",locCode = "", lotNo = "", lotSl = "";
String sql = "", line = "", tranType = "";
HashMap strAllocate = null;
double quantity = 0d;
int updateCnt = 0, retVal = 0;
java.sql.Date tranDate = null;
DistStkUpdLocal distStkUpd = null;
String updateStatus = "",quantityStr = "",tranId = "";
NodeList hdrDom = null;
Node currDetail = null;
try
{
stmt = conn.createStatement();
distStkUpd = getComponent("DistStkUpd");
tranDate = new java.sql.Date(System.currentTimeMillis());
System.out.println("\n tranDate :"+tranDate);
hdrDom = dom.getElementsByTagName("Detail1");
tranType = GenericUtility.getInstance().getColumnValueFromNode("tran_type",hdrDom.item(0));
siteCodeReq = GenericUtility.getInstance().getColumnValueFromNode("site_code__req",hdrDom.item(0));
tranId = GenericUtility.getInstance().getColumnValueFromNode("cons_issue",hdrDom.item(0));
System.out.println("\n tranId :"+tranId);
currDetail = getCurrentDetailFromDom(dom,domID);
updateStatus = getCurrentUpdateFlag(currDetail);
System.out.println("updateStatus :: "+updateStatus);
if (currDetail != null && !updateStatus.equalsIgnoreCase("A"))
{
lineNo = GenericUtility.getInstance().getColumnValueFromNode("line_no",currDetail);
itemCode = GenericUtility.getInstance().getColumnValueFromNode("item_code",currDetail);
locCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code",currDetail);
lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",currDetail);
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail);
quantityStr = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail);
if (updateStatus.equalsIgnoreCase("E") || updateStatus.equalsIgnoreCase("D"))//if codn added by jiten 19/05/06
{
//Commented And Changes Below - Gulzar 15/05/07
//sql = "SELECT QUANTITY FROM CONSUME_ISS_DET WHERE CONS_ISSUE = '"+tranId+"' AND LINE_NO = "+lineNo+""; //Gulzar 15/05/07
sql = "SELECT ITEM_CODE, LOC_CODE, LOT_NO, LOT_SL, QUANTITY FROM CONSUME_ISS_DET WHERE CONS_ISSUE = '"+tranId+"' AND LINE_NO = "+lineNo+""; //Gulzar 15/05/07
rs = stmt.executeQuery(sql);
if (rs.next())
{
itemCode = rs.getString("ITEM_CODE"); //Gulzar 15/05/07
locCode = rs.getString("LOC_CODE"); //Gulzar 15/05/07
lotNo = rs.getString("LOT_NO"); //Gulzar 15/05/07
lotSl = rs.getString("LOT_SL"); //Gulzar 15/05/07
quantityStr = rs.getString("QUANTITY");
}
//End Changes - Gulzar 15/05/07
}
System.out.println("lineNo :"+lineNo+" itemCode :"+itemCode+" locCode :"+locCode+" lotNo :"+lotNo+" lotSl :"+lotSl+" quantityStr :"+quantityStr); //Gulzar 15/05/07
quantity = Double.parseDouble(quantityStr);
if (tranType.equals("I"))
{
line = " " + lineNo;
System.out.println("line :"+line);
strAllocate = new HashMap();
strAllocate.put("tran_date",tranDate);
strAllocate.put("ref_ser","C-ISS");
strAllocate.put("ref_id",tranId);
strAllocate.put("ref_line",line.substring(line.length()-3));
strAllocate.put("site_code",siteCodeReq);
strAllocate.put("item_code",itemCode);
strAllocate.put("loc_code",locCode);
strAllocate.put("lot_no",lotNo);
strAllocate.put("lot_sl",lotSl);
strAllocate.put("alloc_qty",new Double(-1*quantity));
strAllocate.put("chg_user",GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
strAllocate.put("chg_term",GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"termId"));
strAllocate.put("chg_win","W_CONSUME_ISSUE");
//Calling DistStkUpdEJB
System.out.println("Calling DistStkUpdEJB.....");
//if (distStkUpd.updAllocTrace(strAllocate) > 0)
/*Changed by HATIM on 13/01/2006*/
if (distStkUpd.updAllocTrace(strAllocate, conn) > 0)
{
System.out.println("distStkUpd.UpdAllocTrace(HashMap, Connection) : Sucessuful!");
}
/*END*/
}
}
}//try end
catch (SQLException sqx)
{
System.out.println("The SQLException occurs in ConsumeIssuePrsEJB :"+sqx);
sqx.printStackTrace();
throw new ITMException(sqx);
}
catch(Exception e)
{
System.out.println("The SQLException occurs in ConsumeIssuePrsEJB :"+e);
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(stmt != null)
{
stmt.close();
stmt = null;
}
if (rs != null)//if codn added by Jiten 19/05/06
{
rs.close();
rs = null;
}
}
catch(Exception e)
{
System.err.println("Exception :DBAccessEJB :getITMVersion :\n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
}
return "";
}
private Node getCurrentDetailFromDom(Document dom,String domId)
{
NodeList detailList = null;
Node currDetail = null,reqDetail = null;
String currDomId = "";
int detailListLength = 0;
detailList = dom.getElementsByTagName("Detail2");
detailListLength = detailList.getLength();
for (int ctr = 0;ctr < detailListLength;ctr++)
{
currDetail = detailList.item(ctr);
currDomId = currDetail.getAttributes().getNamedItem("domID").getNodeValue();
if (currDomId.equals(domId))
{
reqDetail = currDetail;
break;
}
}
return reqDetail;
}
private String getCurrentUpdateFlag(Node currDetail)
{
NodeList currDetailList = null;
String updateStatus = "",nodeName = "";
int currDetailListLength = 0;
currDetailList = currDetail.getChildNodes();
currDetailListLength = currDetailList.getLength();
for (int i=0;i< currDetailListLength;i++)
{
nodeName = currDetailList.item(i).getNodeName();
if (nodeName.equalsIgnoreCase("Attribute"))
{
updateStatus = currDetailList.item(i).getAttributes().getNamedItem("updateFlag").getNodeValue();
break;
}
}
return updateStatus;
}
/*
private DistStkUpd getComponent(String componentName)throws Exception
{
DistStkUpd comp = null;
try
{
System.out.println("Looking For Component.... :: " + componentName);
AppConnectParm appConnect = new AppConnectParm();
java.util.Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
DistStkUpdHome distStkUpdHome = (DistStkUpdHome)ctx.lookup(componentName);
comp = distStkUpdHome.create();
System.out.println(componentName+" Found.....");
}
catch(Exception e)
{
throw e;
}
return comp;
}
*/
private DistStkUpdLocal getComponent(String componentName)throws Exception
{
DistStkUpdLocal comp = null;
try
{
System.out.println("Looking For Component.... :: " + componentName);
AppConnectParm appConnect = new AppConnectParm();
java.util.Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
comp = (DistStkUpdLocal)ctx.lookup("ibase/DistStkUpd/local"); // for ejb3
//comp = distStkUpdHome.create();
System.out.println(componentName+" Found.....");
}
catch(Exception e)
{
throw e;
}
return comp;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.sql.Connection;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; // added for ejb3
//public interface ConsumeIssuePrs extends ValidatorLocal, EJBObject //commented for ejb3
@Local // added for ejb3
public interface ConsumeIssuePrsLocal extends ValidatorLocal // added for ejb3
{
public String preSaveRec()throws RemoteException,ITMException;
public String preSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.sql.Connection;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
//public interface ConsumeIssuePrs extends ValidatorRemote, EJBObject //commented for ejb3
@Remote // added for ejb3
public interface ConsumeIssuePrsRemote extends ValidatorRemote // added for ejb3
{
public String preSaveRec()throws RemoteException,ITMException;
public String preSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
/*
Developed by : Hatim Laxmidhar
Started On : 23/12/2005
*/
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject; // commented for ejb3
import org.w3c.dom.*;
import javax.ejb.Remote; // added for ejb3
//public interface ConsumeIssue extends ValidatorRemote , EJBObject
@Remote // added for ejb3
public interface ConsumeIssueRemote extends ValidatorRemote
{
public String wfValData() throws RemoteException,ITMException;
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;
}
\ No newline at end of file
This diff is collapsed.
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ProcessLocal;
import javax.ejb.Local; // added for ejb3
//public interface CopyHierarchy extends ibase.webitm.ejb.Process, EJBObject
@Local // added for ejb3
public interface CopyHierarchyLocal extends ibase.webitm.ejb.ProcessLocal
{
public String process() throws RemoteException,ITMException;
public String process(Document dom, Document dom2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ProcessRemote;
import javax.ejb.Remote; // added for ejb3
//public interface CopyHierarchy extends ibase.webitm.ejb.Process, EJBObject
@Remote // added for ejb3
public interface CopyHierarchyRemote extends ibase.webitm.ejb.ProcessRemote
{
public String process() throws RemoteException,ITMException;
public String process(Document dom, Document dom2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
}
This diff is collapsed.
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
import javax.ejb.Local; // added for ejb3
//public interface CreditNotePrc extends ibase.webitm.ejb.Process, EJBObject
@Local // added for ejb3
public interface CreditNotePrcLocal extends ibase.webitm.ejb.ProcessLocal
{
public String process() throws RemoteException,ITMException;
public String process(Document dom, Document dom2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(Document dom, Document dom2, String windowNamem, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
//public interface CreditNotePrc extends ibase.webitm.ejb.Process, EJBObject
@Remote // added for ejb3
public interface CreditNotePrcRemote extends ibase.webitm.ejb.ProcessRemote
{
public String process() throws RemoteException,ITMException;
public String process(Document dom, Document dom2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(Document dom, Document dom2, String windowNamem, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.*;
import javax.ejb.*;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
//public class CustSerCreditPrsEJB extends ValidatorEJB implements SessionBean
public class CustSerCreditPrs extends ValidatorEJB implements CustSerCreditPrsLocal, CustSerCreditPrsRemote
{
/*public void ejbCreate() throws RemoteException, CreateException
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}*/
public String preSaveForm()throws RemoteException,ITMException
{
return "";
}
public String preSaveForm(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Document dom = null;
System.out.println("CustSerCreditPrsEJB called...");
try
{
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
executepreSaveForm(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
catch(Exception e)
{
System.out.println("Exception :CustSerCreditPrsEJB ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
private String executepreSaveForm(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
String sql = "", bList = "", custCode = "", itemSer = "", updateStatus = "";
GenericUtility genericUtility = GenericUtility.getInstance();
NodeList hdrDom = null;
Node currDetail = null;
try
{
hdrDom = dom.getElementsByTagName("Detail1");
bList = GenericUtility.getInstance().getColumnValueFromNode("black_listed",hdrDom.item(0));
custCode = GenericUtility.getInstance().getColumnValueFromNode("cust_code",hdrDom.item(0));
itemSer = GenericUtility.getInstance().getColumnValueFromNode("item_ser",hdrDom.item(0));
System.out.println("bList :"+bList+" custCode :"+custCode+" itemSer :"+itemSer);
currDetail = hdrDom.item(0);
updateStatus = getCurrentUpdateFlag(currDetail);
System.out.println("currDetail :"+currDetail+" updateStatus :"+updateStatus);
if (currDetail != null && (updateStatus.equalsIgnoreCase("E") || updateStatus.equalsIgnoreCase("A")))
{
if (bList != null && bList.equalsIgnoreCase("Y"))
{
updateSorder(custCode, itemSer, conn);
}
}//end if
}//try end
catch(Exception e)
{
System.out.println("The SQLException occurs in CustSerCreditPrsEJB :"+e);
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
private void updateSorder(String custCode, String itemSer, Connection conn)throws RemoteException,ITMException
{
Statement stmtSorder = null, stmtSorderItem = null;
ResultSet rsSorder = null, rsSorderItem = null;
PreparedStatement pstmt = null;
String sql = "", sql1 = "",sOrder = "", status = "";
double qtyAlloc = 0, qtyDesp = 0;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
stmtSorder = conn.createStatement();
stmtSorderItem = conn.createStatement();
sql = "SELECT SALE_ORDER "
+"FROM SORDER "
+"WHERE CUST_CODE = '"+custCode+"' "
+"AND ITEM_SER = '"+itemSer+"' "
+"AND STATUS = 'P' ";
System.out.println("sql :"+sql);
rsSorder = stmtSorder.executeQuery(sql);
while (rsSorder.next())
{
sOrder = rsSorder.getString("SALE_ORDER");
System.out.println("sOrder :"+sOrder);
sql1 = "SELECT CASE WHEN SUM(QTY_ALLOC) IS NULL THEN 0 ELSE SUM(QTY_ALLOC) END , "
+"CASE WHEN SUM(QTY_DESP) IS NULL THEN 0 ELSE SUM(QTY_DESP) END "
+"FROM SORDITEM "
+"WHERE SALE_ORDER = '"+sOrder+"' "
+"AND LINE_TYPE = 'I' ";
System.out.println("sql1 :"+sql1);
rsSorderItem = stmtSorderItem.executeQuery(sql1);
if (rsSorderItem.next())
{
qtyAlloc = rsSorderItem.getDouble(1);
qtyDesp = rsSorderItem.getDouble(2);
System.out.println("qtyAlloc :"+qtyAlloc+"qtyDesp :"+qtyDesp);
}
if (qtyAlloc == 0 && qtyDesp == 0)
{
status = "X";
}
else
{
status = "C";
}
System.out.println("status :"+status);
sql = "UPDATE SORDER SET STATUS = ? WHERE SALE_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,status);
pstmt.setString(2,sOrder);
int updCnt = pstmt.executeUpdate();
System.out.println(updCnt+" Records Updated");
}
}
catch (SQLException sqx)
{
System.out.println("The SQLException occurs in updateSorder(CustSerCreditPrsEJB) :"+sqx);
sqx.printStackTrace();
throw new ITMException(sqx);
}
catch(Exception e)
{
System.out.println("The SQLException occurs in updateSorder(CustSerCreditPrsEJB) :"+e);
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if (stmtSorder != null)
{
stmtSorder.close();
stmtSorder = null;
}
if (stmtSorderItem != null)
{
stmtSorderItem.close();
stmtSorderItem = null;
}
if (rsSorder != null)
{
rsSorder.close();
rsSorder = null;
}
if (rsSorderItem != null)
{
rsSorderItem.close();
rsSorderItem = null;
}
if (pstmt != null)
{
pstmt = null;
}
}
catch(Exception e)
{
System.err.println("Exception :updateSorder(CustSerCreditPrsEJB) : \n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
}
}
private String getCurrentUpdateFlag(Node currDetail)
{
NodeList currDetailList = null;
String updateStatus = "",nodeName = "";
int currDetailListLength = 0;
currDetailList = currDetail.getChildNodes();
currDetailListLength = currDetailList.getLength();
for (int i=0;i< currDetailListLength;i++)
{
nodeName = currDetailList.item(i).getNodeName();
if (nodeName.equalsIgnoreCase("Attribute"))
{
updateStatus = currDetailList.item(i).getAttributes().getNamedItem("updateFlag").getNodeValue();
break;
}
}
return updateStatus;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.sql.Connection;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; // added for ejb3
//public interface CustSerCreditPrs extends ValidatorLocal, EJBObject
@Local // added for ejb3
public interface CustSerCreditPrsLocal extends ValidatorLocal
{
public String preSaveForm()throws RemoteException,ITMException;
public String preSaveForm(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.sql.Connection;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
//public interface CustSerCreditPrs extends ValidatorRemote, EJBObject
@Remote // added for ejb3
public interface CustSerCreditPrsRemote extends ValidatorRemote
{
public String preSaveForm()throws RemoteException,ITMException;
public String preSaveForm(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; //added for ejb3
@Local // added for ejb3
public interface CustStockItemLocal extends ValidatorLocal//, EJBObject
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
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() throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String objContext, String currentColumn, 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;
}
\ No newline at end of file
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3
public interface CustStockItemRemote extends ValidatorRemote//, EJBObject
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document dom, Document dom1, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
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() 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;
public String itemChanged(String xmlString, String xmlString1, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged(Document dom, Document dom1, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; //added for ejb3
@Local // added for ejb3
public interface CustStockLocal extends ValidatorLocal//, EJBObject
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document dom, String formNo, String editFlag) throws RemoteException,ITMException;
public String wfValData(String xmlString, String formNo, String editFlag) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
/*//Changed by Danish on 06/02/2007
public String itemChanged(String xmlString , String currentColumn, String formNo, String domID) throws RemoteException,ITMException;
public String itemChanged(Document dom , String currentColumn, String formNo, String domID) 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;
}
\ No newline at end of file
package ibase.webitm.ejb.custstock;
import java.rmi.RemoteException;
import java.util.*;
import java.util.Date;
import java.text.DateFormat;
import java.sql.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import java.text.SimpleDateFormat;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.*;
import ibase.system.config.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
//import oracle.jdbc.driver.OraclePreparedStatement;
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
public class CustStockPos extends ValidatorEJB //implements SessionBean
{
/*public void ejbCreate() throws RemoteException, CreateException
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
System.out.println("ejbPassivate() method calling........");
}*/
public String postSave()throws RemoteException,ITMException
{
return "";
}
public String postSave(String tranId, String xtraParams, Connection conn) throws RemoteException,ITMException
{
return postSave(tranId, "A", xtraParams, conn, "");
}
public String postSave(String tranId, String editFlag, String xtraParams, Connection conn, String domString) throws RemoteException,ITMException
{
String retString = "";
boolean isError = false;
PreparedStatement pStmt = null;
String sql="";
boolean isLocalConn = false;
try
{
if(conn == null)
{
System.out.println("connection is null");
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator");
isLocalConn = true;
conn.setAutoCommit( false );
}
int totOpValue = 0;
int totPurValue = 0;
int totSalesValue = 0;
int totClValue = 0;
sql ="SELECT SUM(OP_VALUE) AS OP_VALUE, SUM(PUR_VALUE) AS PUR_VALUE, SUM(SALES_VALUE) AS SALES_VALUE, SUM(CL_VALUE) AS CL_VALUE FROM CUST_STOCK_DET WHERE TRAN_ID = ? ";
System.out.println("sql [" + sql + "]");
pStmt = conn.prepareStatement( sql );
pStmt.setString( 1, tranId);
ResultSet rs = pStmt.executeQuery();
while( rs.next())
{
totOpValue = rs.getInt( "OP_VALUE" );
totPurValue = rs.getInt( "PUR_VALUE" );
totSalesValue = rs.getInt( "SALES_VALUE" );
totClValue = rs.getInt( "CL_VALUE" );
}
if (pStmt != null)
{
pStmt.close();
pStmt = null;
}
sql ="UPDATE CUST_STOCK SET TOT_OP_VALUE = ?, TOT_PUR_VALUE = ?, TOT_SALES_VALUE = ?, TOT_CL_VALUE = ? WHERE TRAN_ID = ? ";
System.out.println("sql [" + sql + "]");
System.out.println( " totOpValue [" + totOpValue + "]");
System.out.println( " totPurValue [" + totPurValue + "]");
System.out.println( " totSalesValue [" + totSalesValue + "]");
System.out.println( " totClValue [" + totClValue + "]");
pStmt = conn.prepareStatement( sql );
pStmt.setInt( 1, totOpValue);
pStmt.setInt( 2, totPurValue);
pStmt.setInt( 3, totSalesValue);
pStmt.setInt( 4, totClValue);
pStmt.setString( 5, tranId);
int updateCnt = pStmt.executeUpdate();
System.out.println( "updateCnt [" + updateCnt + "]" );
}
catch(Exception e)
{
System.out.println("Exception :==>\n"+e.getMessage());
throw new ITMException(e);
}
finally
{
try
{
conn.commit();
System.out.println("isError ["+isError+"]");
System.out.println("isLocalConn ["+isLocalConn+"]");
if( conn != null )
{
if( isError )
{
conn.rollback();
}
if(pStmt != null)
{
pStmt.close();
pStmt = null;
}
if ( isLocalConn )
{
if ( ! isError )
{
conn.commit();
}
conn.close();
conn = null;
}
}
}
catch(Exception e)
{
System.out.println("Exception :==>\n"+e.getMessage());
throw new ITMException(e);
}
}
System.out.println("Return string :"+retString);
return retString;
}
}
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.util.ArrayList;
import java.sql.Connection;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; //added for ejb3
@Local // added for ejb3
public interface CustStockPosLocal extends ValidatorLocal//, EJBObject
{
public String postSave()throws RemoteException,ITMException;
public String postSave(String tranId,String editFlag, String xtraParams, Connection conn, String domString) throws RemoteException,ITMException;
public String postSave(String tranId, String xtraParams, Connection conn) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.util.ArrayList;
import java.sql.Connection;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3
public interface CustStockPosRemote extends ValidatorRemote//, EJBObject
{
public String postSave()throws RemoteException,ITMException;
public String postSave(String tranId,String editFlag, String xtraParams, Connection conn, String domString) throws RemoteException,ITMException;
public String postSave(String tranId, String xtraParams, Connection conn) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3
public interface CustStockRemote extends ValidatorRemote//, EJBObject
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document dom, String formNo, String editFlag) throws RemoteException,ITMException;
public String wfValData(String xmlString, String formNo, String editFlag) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
/*//Changed by Danish on 06/02/2007
public String itemChanged(String xmlString , String currentColumn, String formNo, String domID) throws RemoteException,ITMException;
public String itemChanged(Document dom , String currentColumn, String formNo, String domID) 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;
}
\ No newline at end of file
This diff is collapsed.
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; //added for ejb3
@Local // added for ejb3
public interface CustStockTransitLocal extends ValidatorLocal//, EJBObject
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
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() throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String objContext, String currentColumn, 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;
}
\ No newline at end of file
package ibase.webitm.ejb.custstock;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3
public interface CustStockTransitRemote extends ValidatorRemote//, EJBObject
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document dom, Document dom1, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
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() throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged(Document dom, Document dom1, String objContext, String currentColumn, 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;
}
\ No newline at end of file
This diff is collapsed.
package ibase.webitm.ejb.dis;
import java.util.*;
class CustomerListBean
{
private String custName;
private String custCode;
private String siteCode;
ArrayList custRecordList = new ArrayList();
public void setCustName(String custName)
{
this.custName = custName;
}
public String getCustName()
{
return this.custName;
}
public void setCustCode(String custCode)
{
this.custCode = custCode;
}
public String getCustCode()
{
return this.custCode;
}
public void setSiteCode(String siteCode)
{
this.siteCode = siteCode;
}
public String getSiteCode()
{
return this.siteCode;
}
public void setCustRecordList(CustomerBean customerListBean)
{
this.custRecordList.add(customerListBean);
}
public ArrayList getCustRecordList()
{
return custRecordList;
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.sql.Connection;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
//public interface DespatchPos extends ValidatorRemote, EJBObject
@Remote // added for ejb3
public interface DespatchPosRemote extends ValidatorRemote
{
public String postSaveRec()throws RemoteException,ITMException;
public String postSaveRec(String xmlString1,String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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