Commit 756eed46 authored by ppatro's avatar ppatro

To merge src for WMS


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91930 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f2d50df2
This diff is collapsed.
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
@javax.ejb.Local
public interface AsnConfLocal extends ActionHandlerLocal
{
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String generatePurcReceipt(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String generatePurcOrder(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ActionHandlerRemote;
@javax.ejb.Remote
public interface AsnConfRemote extends ActionHandlerRemote
{
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String generatePurcReceipt(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String generatePurcOrder(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
}
\ No newline at end of file
This diff is collapsed.
package ibase.webitm.ejb.wms;
/*
* Author: Pawan
* Date: 23/08/11
*/
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.ejb.EJBObject;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Local
public interface AsnICLocal extends ValidatorLocal
{
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.wms;
/*
* Author: Pawan
* Date: 23/08/11
*/
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.ejb.EJBObject;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Remote
public interface AsnICRemote 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;
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.
/**
* Author : Chaitali Parab
* Date : 25/08/2011
*
* */
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import java.sql.Connection;
import org.w3c.dom.*;
import javax.ejb.EJBObject;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Local
public interface AsnLotStatConfLocal extends ValidatorLocal
{
public String postSave()throws RemoteException,ITMException;
public String postSave( String domString,String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
}
\ No newline at end of file
/**
* Author : Chaitali Parab
* Date : 25/08/2011
*
* */
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import java.sql.Connection;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Remote
public interface AsnLotStatConfRemote extends ValidatorRemote
{
public String postSave()throws RemoteException,ITMException;
public String postSave( String domString, String tranId,String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
}
This diff is collapsed.
/**
* Author : Chaitali Parab
* Date : 25/08/2011
*
* */
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import org.w3c.dom.*;
@javax.ejb.Local
public interface AsnLotStatICLocal extends ValidatorLocal
{
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;
}
\ No newline at end of file
/**
* Author : Chaitali Parab
* Date : 25/08/2011
*
* */
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import org.w3c.dom.*;
@javax.ejb.Remote
public interface AsnLotStatICRemote 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;
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.
/********************************************************
Title :
Date :13/10/2011
Developer: Dipak Chattar
********************************************************/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local; // added for ejb3
@Local // added for ejb3
public interface BolValLocal extends ValidatorLocal
{
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 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;
}
/********************************************************
Title :
Date :13/10/2011
Developer: Dipak Chattar
********************************************************/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3
public interface BolValRemote extends ValidatorRemote
{
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 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;
}
/**
* PURPOSE : EJB component CartonNoGenIC for carton no generation
* AUTHOR : Changed By Chaitali On 25/11/2011
*/
package ibase.webitm.ejb.wms;
import ibase.system.config.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.*;
import org.w3c.dom.*;
@javax.ejb.Stateless
public class CartonNoGenIC extends ValidatorEJB implements CartonNoGenICLocal, CartonNoGenICRemote
{
/**
* The method defined with no paramter and returns nothing
*/
public String wfValData() throws RemoteException, ITMException
{
return "";
}//end of wfVAlData
/**
* The public method is used for validation of required fields which inturn called overloded method
* Returns validation string if exist otherwise returns null in XML format
* @param currXmlDataStr contains the current form data in XML format
* @param hdrXmlDataStr contains always header form data in XML format
* @param allXmlDataStr contains all forms data in XML format
* @param objContext represents form no
* @param editFlag the mode of the transaction(A-Add or E-Edit)
* @param xtraParams contais additional information such as loginEmpCode,loginCode,chgTerm etc
*/
public String wfValData(String currXmlDataStr, String hdrXmlDataStr, String allXmlDataStr, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document currDom = null;
Document hdrDom = null;
Document allDom = null;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
if(currXmlDataStr != null && currXmlDataStr.trim().length()!=0)
{
currDom = genericUtility.parseString(currXmlDataStr);
}
if(hdrXmlDataStr != null && hdrXmlDataStr.trim().length()!=0)
{
hdrDom = genericUtility.parseString(hdrXmlDataStr);
}
if(allXmlDataStr != null && allXmlDataStr.trim().length()!=0)
{
allDom = genericUtility.parseString(allXmlDataStr);
}
errString = wfValData( currDom, hdrDom, allDom, objContext, editFlag, xtraParams );
System.out.println ( "ErrString: " + errString);
}//end of try
catch(Exception e)
{
System.out.println ( "Exception:CartonNoGenIC: wfValData(): " + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}//end of catch
System.out.println ( "Returning from EJB wfValData" );
return ( errString );
}//end of wfvalData() of xml string
/**
* The public overloded method is used for validation of required fields
* Returns validation string if exist otherwise returns null in XML format
* @param currDom contains the current form data
* @param hdrDom contains always header form data
* @param allDom contains all forms data
* @param objContext represents form no
* @param editFlag the mode of the transaction(A-Add or E-Edit)
* @param xtraParams contais additional information such as loginEmpCode,loginCode,chgTerm etc
*/
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag,String xtraParams) throws RemoteException, ITMException
{
String errString = "";
ResultSet rSet = null;
Connection connObject = null;
PreparedStatement pstmt = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
String columnValue = "";
int currentFormNo = 0;
ConnDriver connDriver = null;
connDriver = new ConnDriver();
connObject = connDriver.getConnectDB("DriverValidator");
NodeList parentList = null;
NodeList childList = null;
int noOfChilds = 0;
String childNodeName = "";
Node childNode =null;
boolean isNumber = true;
String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" );
if ( objContext != null && objContext.trim().length() > 0 )
{
currentFormNo = Integer.parseInt( objContext );
}
parentList = currDom.getElementsByTagName( "Detail" + currentFormNo );
childList = parentList.item( 0 ).getChildNodes();
noOfChilds = childList.getLength();
for (int ctr = 0; ctr < noOfChilds; ctr++)
{
childNode = childList.item( ctr );
childNodeName = childNode.getNodeName();
if ( childNode != null && childNode.getFirstChild() != null )
{
columnValue = childNode.getFirstChild().getNodeValue();
}
if ( "no_of_cartons".equalsIgnoreCase( childNodeName ) )
{
if (childNode.getFirstChild()==null)//checking for null no_of_cartons
{
errString = getErrorString("no_of_cartons","INVCRTN",userID);
break;
}
else
{
isNumber = checkNumeric( columnValue );
System.out.println("isNumber =["+isNumber+"]");
if ( !isNumber )
{
errString = getErrorString("no_of_cartons","NOTANUMBR1",userID);
break;
}
}
}
//ADDED BY MAHESH PATIDAR ON 05/06/12
if ( "no_of_pallet".equalsIgnoreCase( childNodeName ) )
{
if (childNode.getFirstChild()==null)//checking for null no_of_cartons
{
errString = getErrorString("no_of_pallet","VTPNOEMPTY",userID);
break;
}
else
{
isNumber = checkNumeric( columnValue );
System.out.println("isNumber =["+isNumber+"]");
if ( !isNumber )
{
errString = getErrorString("no_of_pallet","NOTANUMBR1",userID);
break;
}
}
}
//ENDED BY MAHESH PATIDAR
}
}
catch(Exception e)
{
System.out.println("Exception in CartonNoGenIC == >");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( rSet != null )
{
rSet.close();
rSet = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if( connObject != null && ! connObject.isClosed() )
{
connObject.close();
connObject = null;
}
}
catch(Exception e)
{
System.out.println( "Exception :CartonNoGenIC:wfValData :==>\n"+e.getMessage());
throw new ITMException(e);
}//end of catch
} //end of finally
return (errString);
}
private boolean checkNumeric( String noOfLabel ) throws Exception
{
char[] cArray = noOfLabel.toCharArray();
boolean isNumber = true;
for(int i = 0; i < cArray.length;i++)
{
if( !Character.isDigit(cArray[i]) )
{
isNumber = false;
}
}
return isNumber;
}
}
/**
* PURPOSE : Local Interface for CartonNoGenIC
* AUTHOR : Changed By Chaitali On 25/11/2011
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.*;
@javax.ejb.Local
public interface CartonNoGenICLocal extends ValidatorLocal
{
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
/**
* PURPOSE : Local Interface for CartonNoGenIC
* AUTHOR : Changed By Chaitali On 25/11/2011
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.*;
@javax.ejb.Remote
public interface CartonNoGenICRemote 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
/**
* PURPOSE : EJB for Carton no Process
* AUTHOR : Changed By Chaitali On 25/11/2011
*/
package ibase.webitm.ejb.wms;
import java.sql.*;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.system.config.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.sql.PreparedStatement;
import ibase.webitm.utility.TransIDGenerator;
import ibase.utility.CommonConstants;
@javax.ejb.Stateless
public class CartonNoGenPrc extends ProcessEJB implements CartonNoGenPrcLocal,CartonNoGenPrcRemote
{
String siteCode = "";
String noOfCarton = "";
String noOfPallet = "";
String labelType = "";
String labelID = "";
String keyString = "";
String tranIDCol = "";
String refSer = "";
String retString = "";
public String process() throws RemoteException,ITMException
{
return "";
}
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{
String retStr = "";
Document detailDom = null;
Document headerDom = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
System.out.println("xmlString ["+xmlString+"]");
System.out.println("xmlString2 ["+xmlString2+"]");
System.out.println("windowName ["+windowName+"]");
System.out.println("xtraParams ["+xtraParams+"]");
if(xmlString != null && xmlString.trim().length()!=0)
{
headerDom = genericUtility.parseString(xmlString);
}
if(xmlString2 != null && xmlString2.length()!=0)
{
detailDom = genericUtility.parseString(xmlString2);
}
retStr = process(headerDom, detailDom, windowName, xtraParams);
}
catch (Exception e)
{
System.out.println("Exception :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return retStr;
}//end of StringProcess
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{
String sSel = "";
String sIns = "";
String cartonID = "";
String palletNo = "";
int numCarton = 0;
int numPallet = 0;
PreparedStatement pSel = null;
PreparedStatement pIns = null;
ResultSet rsSel = null;
Connection conn = null;
GenericUtility genericUtility = GenericUtility.getInstance();
/*setting LabelType using window name*/
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
if ( windowName == null || windowName.trim().length() == 0 )
{
windowName = "w_carton_no_gen";
}
/*selectin Key_string, Ref_ser &trns_id_col from transetup Table*/
sSel = "SELECT KEY_STRING, TRAN_ID_COL,REF_SER FROM TRANSETUP WHERE TRAN_WINDOW = ? ";
pSel = conn.prepareStatement(sSel);
pSel.setString(1, windowName);
rsSel = pSel.executeQuery();
if( rsSel.next() )
{
keyString = rsSel.getString( "KEY_STRING" );
tranIDCol = rsSel.getString("TRAN_ID_COL");
refSer = rsSel.getString("REF_SER");
}
String chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
String chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm");
StringBuffer xmlValues = new StringBuffer("<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>");
xmlValues = xmlValues.append("<Header></Header>");
xmlValues = xmlValues.append("<Detail1>");
//commented by Mahesh Patidar on 05/06/12
//xmlValues = xmlValues.append("<carton_no></carton_no>");
//ended By Mahesh Patidar
//Added By Mahesh Patidar on 05/06/12
if(windowName.trim().equals("w_palletprc"))
{
noOfPallet = checkNull(genericUtility.getColumnValue("no_of_pallet",headerDom));
if ( noOfPallet.length() > 0 )
{
numPallet = Integer.parseInt(noOfPallet);
}
xmlValues = xmlValues.append("<pallet_no></pallet_no>");
}
else
{
noOfCarton = checkNull(genericUtility.getColumnValue("no_of_cartons",headerDom));
if ( noOfCarton.length() > 0 )
{
numCarton = Integer.parseInt(noOfCarton);
}
xmlValues = xmlValues.append("<carton_no></carton_no>");
}
//ended By Mahesh Patidar
xmlValues = xmlValues.append( "</Detail1></Root>");
Timestamp currDate = new Timestamp(System.currentTimeMillis());
int updCnt[] = null;
TransIDGenerator tg = new TransIDGenerator(xmlValues.toString(), "BASE",CommonConstants.DB_NAME);
//CHANGED BY MAHESH PATIDAR ON 05/06/12 FOR REQUEST 'WM2CSUN001'
/*
String sIns = " INSERT INTO CARTON_MASTER (CARTON_NO, STATUS, CHG_DATE, CHG_USER, CHG_TERM) VALUES (?,?,?,?,?) ";
pIns = conn.prepareStatement(sIns);
for( int i = 1; i <= numCarton ; i++ )
{
cartonID = tg.generateTranSeqID(refSer, tranIDCol, keyString, conn);
System.out.println(cartonID);
pIns.setString(1,cartonID);
pIns.setString(2,"A");
pIns.setTimestamp(3,currDate);
pIns.setString(4,chgUser);
pIns.setString(5,chgTerm);
pIns.addBatch();
pIns.clearParameters();
}//end of for
*/
//END COMMENT BY MAHESH PATIDAR
//ADDED BY MAHESH PATIDAR ON 05/06/12 FOR REQUEST 'WM2CSUN001'
if(windowName.trim().equals("w_palletprc"))
{
sIns = " INSERT INTO PALLET_NO (PALLET_NO,STATUS) VALUES (?,'A') "; //change by Kunal Mandhre on 28/07/12 insert status as per S Manoharan instruction
pIns = conn.prepareStatement(sIns);
for( int i = 1; i <= numPallet ; i++ )
{
palletNo = tg.generateTranSeqID(refSer, tranIDCol, keyString, conn);
System.out.println(palletNo);
pIns.setString(1,palletNo);
pIns.addBatch();
pIns.clearParameters();
}
}
else
{
sIns = " INSERT INTO CARTON_MASTER (CARTON_NO, STATUS, CHG_DATE, CHG_USER, CHG_TERM) VALUES (?,?,?,?,?) ";
pIns = conn.prepareStatement(sIns);
for( int i = 1; i <= numCarton ; i++ )
{
cartonID = tg.generateTranSeqID(refSer, tranIDCol, keyString, conn);
System.out.println(cartonID);
pIns.setString(1,cartonID);
pIns.setString(2,"A");
pIns.setTimestamp(3,currDate);
pIns.setString(4,chgUser);
pIns.setString(5,chgTerm);
pIns.addBatch();
pIns.clearParameters();
}
}
//ENDED BY MAHESH PATIDAR
updCnt = pIns.executeBatch();
pIns.clearBatch();
System.out.println(":ROWS INSERTED:["+updCnt.length+"]");
if ( updCnt.length > 0 )
{
conn.commit();
ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB();
retString = itmDBAccessLocal.getErrorString("","PRCSUCCESS","");
}
}//end of try
catch(BatchUpdateException buex)
{
try
{
conn.rollback();
int [] updateCounts = buex.getUpdateCounts();
for (int i = 0; i < updateCounts.length; i++)
{
System.err.println(" Statement " + i + ":" + updateCounts[i]);
}
System.err.println(" Message: " + buex.getMessage());
System.err.println(" SQLSTATE: " + buex.getSQLState());
System.err.println(" Error code: " + buex.getErrorCode());
SQLException ex = buex.getNextException();
while (ex != null)
{
System.err.println("SQL exception:");
System.err.println(" Message: " + ex.getMessage());
System.err.println(" SQLSTATE: " + ex.getSQLState());
System.err.println(" Error code: " + ex.getErrorCode());
ex = ex.getNextException();
}
}
catch ( Exception e)
{
e.printStackTrace();
}
throw new ITMException(buex);
}
catch (Exception e)
{
try
{
if (conn != null)
{
conn.rollback();
}
}
catch (Exception exe)
{
exe.printStackTrace();
}
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rsSel != null)
{
rsSel.close();
rsSel = null;
}
if(pSel != null)
{
pSel.close();
pSel = null;
}
if(pIns != null)
{
pIns.close();
pIns = null;
}
if( conn != null && !conn.isClosed() )
{
conn.close();
conn = null;
}
}
catch (Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return retString ;
}//end of DOCProcess
private String checkNull( String input )
{
if( input == null )
{
input = "";
}
else
{
input = input.trim();
}
return input;
}
}
\ No newline at end of file
/**
* PURPOSE : Local Interface for LpnPlt process
* AUTHOR : Changed By Dharmesh On 7/5/2011 [DI1DSUN001] & [DI1DSUN002]
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.*;
@javax.ejb.Local
public interface CartonNoGenPrcLocal extends ProcessLocal
{
public String process() throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
/**
* PURPOSE : Remote Interface for Carton no process
* AUTHOR : Changed By Dharmesh On 25/11/11
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import javax.ejb.EJBObject;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.*;
@javax.ejb.Remote
public interface CartonNoGenPrcRemote extends ProcessRemote
{
public String process() throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
This diff is collapsed.
/*
* CaseTransferICLocal.java
* Developer - Mahesh Patidar
* Date - 23/08/12
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
@Local
public interface CaseTransferICLocal extends ValidatorLocal
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlCurrFrmString, String xmlHdrFrmString, String xmlAllFrmString, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
/*
* CaseTransferICRemote.java
* Developer - Mahesh Patidar
* Date - 23/08/12
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
@Remote
public interface CaseTransferICRemote extends ValidatorRemote
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlCurrFrmString, String xmlHdrFrmString, String xmlAllFrmString, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/**
* Author: Sumit Sarkar 23/09/11 of Req: WM1FSUN004
* Reason: Interface Local for EJB Component DespPacPostEJB
*/
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.sql.Connection;
@javax.ejb.Local
public interface DespPackPostEJBLocal extends ValidatorLocal {
public String postSave()throws RemoteException,ITMException;
public String postSave( String domString, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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