Commit 609a9913 authored by agaikwad's avatar agaikwad

Request_Id-M16CSUN005


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102707 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6e9da733
package ibase.webitm.ejb.mfg;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.ITMException;
@Stateless
public class WoClsePobIC extends ValidatorEJB implements WoClsePobICLocal,WoClsePobICRemote
{
E12GenericUtility genericUtility= new E12GenericUtility();
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag,String xtraParams) throws RemoteException, ITMException
{
String errString = "";
System.out.println("wfValdata() called for WoClsePobIC");
Document dom = null;
Document dom1 = null;
Document dom2 = null;
try {
if (xmlString != null && xmlString.trim().length() > 0) {
dom = parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() > 0) {
dom1 = parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() > 0) {
dom2 = parseString(xmlString2);
}
errString = wfValData(dom, dom1, dom2, objContext, editFlag,
xtraParams);
} catch (Exception e) {
throw new ITMException(e);
}
return (errString);
}
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException {
String childNodeName = null;
String errString = "";
String errCode = "";
String userId = "";
String sql = "";
String errorType = "";
int cnt = 0;
int ctr = 0;
int childNodeListLength;
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
ConnDriver connDriver = new ConnDriver();
StringBuffer errStringXml = new StringBuffer(
"<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
int currentFormNo = 0, recCnt = 0;
int noOfParent = 0, ctr1 = 0;
double maxQty = 0, minQty = 0;
String lsworkorder = "", qorderNo = "", refNo = "", tranId = "", itemCode = "", locCode = "", lotNo = "", lotSl = "", siteCode = "";
String status = "", porcpNo = "", porcpLineNo = "", qcLocCode = "", minQtyStr = "", available = "", keyFlag = "";
Timestamp date2 = null, tranDate = null;
String faciLocCode = "", faciSiteCode = "";
double aprvLeadTime = 0;
Timestamp qcOrderDate = null,WORecTranDate=null; // added by cpatil on 02/11/13
Boolean workOrdCntflag = false ;
String qcOrderItem="";
int countItem=0;
String qcOrdItemUnit="",byprodUnit="";
double qcQty=0,netWeight=0,noArt=0;
try {
System.out.println("@@@@@@@@ wfvaldata called WoClsePobIC");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
connDriver = null;
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0) {
currentFormNo = Integer.parseInt(objContext);
}
DistCommon dcommon=new DistCommon();
switch (currentFormNo) {
case 1:
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for (ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if(childNodeName.equalsIgnoreCase("tran_id"))
{
sql="select key_flag from transetup where tran_window='w_wo_closepob'";
pstmt=conn.prepareStatement(sql);
rs=pstmt.executeQuery();
if(rs.next())
{
keyFlag=rs.getString("key_flag");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(keyFlag.equalsIgnoreCase("M"))
{
tranId= genericUtility.getColumnValue("tran_id", dom);
if(tranId == null || (tranId.length() == 0))
{
errList.add("VMTRANID");
errFields.add(childNodeName.toLowerCase());
}
if(tranId!= null && (tranId.trim().length() > 0))
{
sql = " select count(*) from Wo_Close where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
if(cnt == 0)
{
errCode = "VMTRNIDINV";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
}
}
else if (childNodeName.equalsIgnoreCase("work_order"))
{
lsworkorder = checkNull(genericUtility.getColumnValue("work_order", dom));
System.out.println("@@@@ lsworkorder[ "+lsworkorder+"]");
sql = "Select count(*) from workorder Where work_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsworkorder);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("@@@@ cnt[" + cnt + "]");
if (cnt <1)
{
errCode = "VTWORDER1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
sql = "Select status From workorder Where work_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsworkorder);
rs = pstmt.executeQuery();
if (rs.next()) {
status = rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("status ["+status+"]");
if("X".equalsIgnoreCase(status))
{
errCode = "VTWOCANC1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else if ("C".equalsIgnoreCase(status))
{
errCode = "VTWORDER2";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
} // end for
break; // case 1 end
}
int errListSize = errList.size();
cnt = 0;
String errFldName = null;
if (errList != null && errListSize > 0) {
for (cnt = 0; cnt < errListSize; cnt++) {
errCode = errList.get(cnt);
errFldName = errFields.get(cnt);
System.out.println("errCode .........." + errCode);
errString = getErrorString(errFldName, errCode, userId);
errorType = errorType(conn, errCode);
if (errString.length() > 0) {
String bifurErrString = errString.substring(
errString.indexOf("<Errors>") + 8,
errString.indexOf("<trace>"));
bifurErrString = bifurErrString
+ errString.substring(
errString.indexOf("</trace>") + 8,
errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
errString = "";
}
if (errorType.equalsIgnoreCase("E")) {
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors> </Root> \r\n");
} else {
errStringXml = new StringBuffer("");
}
} catch (Exception e) {
e.printStackTrace();
errString = e.getMessage();
throw new ITMException(e);
} finally {
try {
if (conn != null) {
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
conn.close();
}
conn = null;
} catch (Exception d) {
d.printStackTrace();
throw new ITMException(d);
}
}
errString = errStringXml.toString();
return errString;
}// end of validation
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn,String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
System.out.println("itemChanged() called for WoClsePobIC");
String valueXmlString = "";
try {
if (xmlString != null && xmlString.trim().length() > 0) {
dom = parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() > 0) {
dom1 = parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() > 0) {
dom2 = parseString(xmlString2);
}
valueXmlString = itemChanged(dom, dom1, dom2, objContext,
currentColumn, editFlag, xtraParams);
} catch (Exception e) {
System.out
.println("Exception : [QCTransferIC][itemChanged( String, String )] :==>\n"
+ e.getMessage());
}
return valueXmlString;
}
public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag,String xtraParams) throws RemoteException, ITMException {
String childNodeName = null;
String sql = "";
StringBuffer valueXmlString = new StringBuffer();
int ctr = 0;
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility= new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
int currentFormNo = 0;
String columnValue = "", itemCode = "", itemDescr = "";
String siteDescr = "", lssitecode = "", loginSiteCode = "", lsworkorder = "", lssitecodewo = "";
try {
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
String sysDate = sdf.format(currentDate.getTime());
System.out.println("Now the date is :=> " + sysDate);
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false);
connDriver = null;
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext.trim());
}
valueXmlString = new StringBuffer("<?xml version = \"1.0\"?> <Root> <header> <editFlag>");
valueXmlString.append(editFlag).append("</editFlag> </header>");
System.out.println("################ITEMCHANGE FOR CASE" + currentFormNo+ "##################");
switch (currentFormNo) {
case 1:
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0;
valueXmlString.append("<Detail1>");
int childNodeListLength = childNodeList.getLength();
do {
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if (childNodeName.equals(currentColumn)) {
if (childNode.getFirstChild() != null) {
columnValue = childNode.getFirstChild()
.getNodeValue().trim();
}
}
ctr++;
} while (ctr < childNodeListLength&& !childNodeName.equals(currentColumn));
System.out.println("[" + currentColumn + "] ==> '"+ columnValue + "'");
if (currentColumn.trim().equalsIgnoreCase("itm_default")) {
System.out.println(" #################itm_default called#####################");
loginSiteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
System.out.println("@@@@@@@@loginSiteCode[" + loginSiteCode+ "]");
valueXmlString.append("<tran_date>").append("<![CDATA[" + sysDate + "]]>").append("</tran_date>");
valueXmlString.append("<site_code>").append("<![CDATA[" + loginSiteCode + "]]>").append("</site_code>");
siteDescr = setDescription("descr", "site", "site_code",loginSiteCode, conn);
System.out.println("siteDescr itm_default ["+siteDescr+"]");
valueXmlString.append("<site_descr>").append("<![CDATA[" + siteDescr + "]]>").append("</site_descr>");
}
else if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
lssitecode = checkNull(genericUtility.getColumnValue("site_code", dom));
System.out.println("Site Code is itm_defaultedit ["+lssitecode+"]");
siteDescr = setDescription("descr", "site", "site_code",lssitecode, conn);
System.out.println("siteDescr itm_defaultedit ["+siteDescr+"]");
valueXmlString.append("<site_descr>").append("<![CDATA[" + siteDescr + "]]>").append("</site_descr>");
}
else if (currentColumn.trim().equalsIgnoreCase("work_order"))
{
lsworkorder = checkNull(genericUtility.getColumnValue("work_order",dom));
sql="select site_code from workorder where work_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsworkorder);
rs = pstmt.executeQuery();
if (rs.next())
{
lssitecodewo=rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("Site Code is in Work Worder ["+lssitecodewo+"]");
valueXmlString.append("<site_code>").append("<![CDATA[" + lssitecodewo + "]]>").append("</site_code>");
siteDescr = setDescription("descr", "site", "site_code",lssitecodewo, conn);
System.out.println("siteDescr Work Order Column"+siteDescr+"]");
valueXmlString.append("<site_descr>").append("<![CDATA[" + siteDescr + "]]>").append("</site_descr>");
}
valueXmlString.append("</Detail1>");
break;
} // case 1 end
valueXmlString.append("</Root>");
} catch (Exception e) {
e.printStackTrace();
System.out.println("Exception ::" + e.getMessage());
throw new ITMException(e);
} finally {
try {
if (conn != null) {
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
conn.close();
}
conn = null;
} catch (Exception d) {
d.printStackTrace();
}
}
return valueXmlString.toString();
}
private String setDescription(String descrCol, String table, String field,String value, Connection conn) throws SQLException {
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "", descr = "";
System.out.println("@@@@@@@@table[" + table + "]:::field[" + field+ "]::value[" + value + "]");
sql = "select " + descrCol + " from " + table + " where " + field+ " = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, value);
rs = pstmt.executeQuery();
if (rs.next()) {
descr = checkNull(rs.getString(1));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.print("========>::descr[" + descr + "]");
return descr;
}
private String checkNull(String input) {
if (input == null) {
input = "";
}
return input;
}
private String errorType(Connection conn, String errorCode) {
String msgType = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, errorCode);
rs = pstmt.executeQuery();
while (rs.next()) {
msgType = checkNull(rs.getString("MSG_TYPE"));
}
} catch (Exception ex) {
ex.printStackTrace();
} finally {
try {
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
} catch (Exception e) {
e.printStackTrace();
}
}
return msgType;
}
}
package ibase.webitm.ejb.mfg;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
@Local
public interface WoClsePobICLocal 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;
}
package ibase.webitm.ejb.mfg;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
@Remote
public interface WoClsePobICRemote 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;
}
package ibase.webitm.ejb.mfg.adv;
import ibase.utility.E12GenericUtility;
import ibase.utility.CommonConstants;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.ITMDBAccessEJB;
import java.rmi.RemoteException;
import javax.naming.InitialContext;
import javax.ejb.Stateless;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.w3c.dom.Document;
import javax.xml.rpc.ParameterMode;
import java.text.SimpleDateFormat;
//import ibase.utility.GenericUtility;
import ibase.webitm.ejb.MasterStatefulLocal;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Calendar;
@Stateless
public class WoClosePobConf extends ActionHandlerEJB implements WoClosePobConfLocal,WoClosePobConfRemote
{
E12GenericUtility genericUtility= new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
public String confirm(String tranID, String xtraParams, String forcedFlag) throws RemoteException, ITMException
{
String retString = "";
boolean isConn = false;
Connection conn = null;
try
{
retString = confirm(tranID, xtraParams, forcedFlag, conn, isConn);
if (retString != null && retString.length() > 0)
{
throw new Exception("Exception while calling confirm for tran Id:[" + tranID + "]");
}
} catch (Exception exception)
{
System.out.println("Exception in [WoClosePobConf] getCurrdateAppFormat " + exception.getMessage());
}
return retString;
}
public String confirm(String tranId, String xtraParams, String forcedFlag, Connection conn, boolean connStatus) throws RemoteException, ITMException
{
PreparedStatement pstmt = null;
PreparedStatement pstmt1 = null;
ResultSet rs = null;
String workOrder = null;
String siteCode="";
String errCode = "";
String errString = "";
String chgUser = "";
String userId = null;
String chgTerm = "";
String sql = null;
String remarks="";
String status = "",loginEmpCode="",confirm="";
int cnt = 0,checkCount=0,updateCount=0;
boolean updateFlag = false;
Timestamp sysDate = null;
String tranID="";
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
try {
if (conn == null)
{
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
connStatus = true;
}
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId");
userId = chgUser;
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
String sysDateStr = sdf.format(currentDate.getTime());
sysDate = Timestamp.valueOf(genericUtility.getValidDateString(sysDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
sql = "select Status , WORK_ORDER from Wo_Close where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
confirm = rs.getString("Status");
workOrder=rs.getString("WORK_ORDER");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("confirmed...[" + confirm + "]");
System.out.println("WORK_ORDER...[" + workOrder + "]");
if ("C".equalsIgnoreCase(confirm))
{
System.out.println("Wo CLose already confirm");
errString = itmDBAccessEJB.getErrorString("", "VTRCONF1", "", "", conn);
return errString;
}
else
{
remarks="WorkOrder Close Through WorkOrder Close Pull Out Batches";
sql = "update Workorder set Status = 'C', REMARKS = ?, Status_Date = ? where WORK_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,remarks);
pstmt.setTimestamp(2,sysDate);
pstmt.setString(3,workOrder);
cnt = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
System.out.println("@@@@@@ cnt...[" + cnt + "]");
if (cnt > 0)
{
System.out.println(">>>>>>>>>>>>>>>>Count from update:"+ cnt);
}
sql = "update WO_CLOSE set STATUS='C', emp_code__aprv=? where tran_id=?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, loginEmpCode); // Log in employee code
pstmt1.setString(2, tranId);
updateCount = pstmt1.executeUpdate();
pstmt1.close();
pstmt = null;
System.out.println("Update count :- [" + updateCount + "]");
if(updateCount>0)
{
System.out.println("WO_CLOSEis confirm !!");
errString = itmDBAccessEJB.getErrorString("", "VTCONFIRM", "", "", conn); //Confirm successfully
}
}
System.out.println("@@@@@@Error String is" + errString);
if(errString.indexOf("VTCONFIRM") > -1)
{
conn.commit();
}
else
{
conn.rollback();
}
} catch(Exception e)
{
System.out.println("Exception :WoClosePobConf :Confirm(String xmlString2, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace();
errString = e.getMessage();
throw new ITMException(e);
}
finally
{
System.out.println("Closing Connection....");
try
{
conn.close();
conn = null;
}
catch(Exception e)
{
errString = e.getMessage();
e.printStackTrace();
return errString ;
}
}
/*catch (Exception e)
{
if (conn != null)
{
try
{
conn.rollback();
} catch (java.sql.SQLException e1)
{
e1.printStackTrace();
}
}
System.out.println("Exception : " + e);
e.printStackTrace();
throw new ITMException(e);
} finally
{
try
{
if (errString != null && errString.trim().length() > 0)
{
if (conn != null && !conn.isClosed() && connStatus)
{
if (errString.indexOf("VTCONFIRM") > -1)
{
conn.commit();
} else
{
conn.rollback();
}
conn.close();
conn = null;
}
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
} catch (Exception e)
{
System.out.println("Exception : " + e);
e.printStackTrace();
throw new ITMException(e);
}
}*/
return errString;
}
@Override
public String getData(String arg0, String arg1, String arg2, String arg3)
throws RemoteException, ITMException {
// TODO Auto-generated method stub
return null;
}
@Override
public String getData(Document arg0, Document arg1, String arg2, String arg3)
throws RemoteException, ITMException {
// TODO Auto-generated method stub
return null;
}
@Override
public String process() throws RemoteException, ITMException {
// TODO Auto-generated method stub
return null;
}
@Override
public String process(Document arg0, Document arg1, String arg2, String arg3)
throws RemoteException, ITMException {
// TODO Auto-generated method stub
return null;
}
@Override
public String process(String arg0, String arg1, String arg2, String arg3)
throws RemoteException, ITMException {
// TODO Auto-generated method stub
return null;
}
@Override
public void remove() {
// TODO Auto-generated method stub
}
}
\ No newline at end of file
package ibase.webitm.ejb.mfg.adv;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.sql.Connection;
import java.rmi.RemoteException;
import javax.ejb.Local;
@Local // added for ejb3
public interface WoClosePobConfLocal extends ActionHandlerLocal
{
public String confirm(String tranID, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String confirm( String tranId, String xtraParams,String forcedFlag, Connection conn, boolean connStatus ) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.mfg.adv;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.sql.Connection;
import java.rmi.RemoteException;
import javax.ejb.Remote;
@Remote
public interface WoClosePobConfRemote extends ProcessRemote
{
public String confirm(String tranID, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String confirm( String tranId, String xtraParams,String forcedFlag, Connection conn, boolean connStatus ) throws RemoteException,ITMException;
}
\ No newline at end of file
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