Commit dc40a964 authored by ppatro's avatar ppatro

src for Pick assign


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93575 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8c12f873
package ibase.webitm.ejb.wms;
import ibase.ejb.*;
import ibase.system.config.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.io.*;
import java.rmi.RemoteException;
import java.sql.*;
import java.text.*;
import org.w3c.dom.*;
import java.net.InetAddress;
import org.xml.sax.InputSource;
import java.util.Calendar;
import java.util.HashMap;
import java.text.SimpleDateFormat;
@javax.ejb.Stateless
public class PickAssignIC extends ValidatorEJB implements PickAssignICRemote,PickAssignICLocal
{
public String itemChanged() throws RemoteException, ITMException
{
return "";
}
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;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
if (xmlString != null && xmlString.trim().length()!=0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length()!=0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length()!=0)
{
dom2 = genericUtility.parseString(xmlString2);
}
errString = itemChanged( dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams );
System.out.println ( "ErrString :" + errString);
}
catch (Exception e)
{
System.out.println ( "Exception :PickAssignIC :itemChanged(String,String):" + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e);
}
System.out.println ( "returning from PickAssignIC itemChanged" );
return errString;
}
public String itemChanged( Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
{
String sql = "";
String columnValue = "";
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
StringBuffer valueXmlString = new StringBuffer();
String orddatFrom = "";
String orddatTo = "";
String pickOrderFrom = "";
String pickOrderTo = "";
int currentFormNo = 0;
GenericUtility genericUtility = GenericUtility.getInstance();
java.sql.Date dateFrom = null;
java.sql.Date dateTo = null;
HashMap hm = new HashMap();
try
{
String applDateFmt = genericUtility.getApplDateFormat();
String dbDateFmt = genericUtility.getDBDateFormat();
System.out.println("**********ITEM CHANGE CALLED************");
columnValue = genericUtility.getColumnValue( currentColumn, dom );
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator");
if( objContext != null && objContext.trim().length() > 0 )
{
currentFormNo = Integer.parseInt( objContext );
}
valueXmlString = new StringBuffer( "<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<editFlag>" );
valueXmlString.append( editFlag ).append( "</editFlag>\r\n</Header>\r\n" );
switch ( currentFormNo )
{
case 1:
{
valueXmlString.append( "<Detail1>\r\n" );
if( currentColumn.trim().equalsIgnoreCase( "pick_order_to" ) )
{
pickOrderFrom = checkNull( genericUtility.getColumnValue("pick_order_from",dom) );
System.out.println("PICKORDERFROM====="+pickOrderFrom);
pickOrderTo = checkNull( genericUtility.getColumnValue("pick_order_to",dom) );
System.out.println("PICKORDERTO======="+pickOrderTo);
hm = getOrderDate( pickOrderFrom,pickOrderTo,conn);
dateFrom = ((java.sql.Date)hm.get("MIN_DATE"));
orddatFrom = genericUtility.getValidDateString( dateFrom.toString() , dbDateFmt, applDateFmt );
dateTo =(java.sql.Date)hm.get("MAX_DATE");
orddatTo = genericUtility.getValidDateString( dateTo.toString() , dbDateFmt, applDateFmt );
System.out.println("orddatFrom"+dateFrom);
System.out.println("orddatTo"+dateTo);
}
if( dateFrom == null || dateTo == null )
{
valueXmlString.append( "<from_date><![CDATA[" ).append( "" ).append( "]]></from_date>\r\n" );
valueXmlString.append( "<to_date><![CDATA[" ).append( "" ).append( "]]></to_date>\r\n" );
}
else
{
valueXmlString.append( "<from_date><![CDATA[" ).append( orddatFrom ).append( "]]></from_date>\r\n" );
valueXmlString.append( "<to_date><![CDATA[" ).append( orddatTo ).append( "]]></to_date>\r\n" );
}
}
valueXmlString.append( "</Detail1>\r\n" );
break;
}//switch statement ends here
}//try block ends here
catch(Exception e)
{
System.out.println( "Exception :PickAssignIC :itemChanged(Document,String):" + e.getMessage() + ":" );
valueXmlString = valueXmlString.append( genericUtility.createErrorString( e ) );
}
finally
{
try
{
if( conn != null && ! conn.isClosed() )
{
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
conn.close();
}
}
catch(Exception e)
{
System.out.println( "Exception :PickAssignIC:itemChanged :==>\n"+e.getMessage());
throw new ITMException(e);
}
}
valueXmlString.append( "</Root>\r\n" );
System.out.println( "\n****ValueXmlString :" + valueXmlString.toString() + ":********" );
return valueXmlString.toString();
}
public HashMap getOrderDate( String pickOrderFrom, String pickOrderTo,Connection conn )throws RemoteException, ITMException
{
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
java.sql.Date minOrderDate = null;
java.sql.Date maxOrderDate = null;
HashMap hm = new HashMap();
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
sql = " SELECT MIN( ORDER_DATE ), MAX( ORDER_DATE ) FROM PICK_ORD_HDR WHERE PICK_ORDER BETWEEN ? AND ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrderFrom);
pstmt.setString(2, pickOrderTo);
rs = pstmt.executeQuery();
if(rs.next())
{
minOrderDate = rs.getDate(1);
maxOrderDate = rs.getDate(2);
hm.put("MIN_DATE",minOrderDate);
hm.put("MAX_DATE",maxOrderDate);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
finally
{
try
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
}
catch ( Exception e )
{
e.printStackTrace();
throw new ITMException(e);
}
}
return hm;
}
private String checkNull( String input )
{
if ( input == null )
{
input = "";
}
return input;
}
}
\ No newline at end of file
package ibase.webitm.ejb.wms;
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 PickAssignICLocal extends ValidatorLocal
{
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;
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 PickAssignICRemote extends ValidatorRemote
{
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;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ProcessEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.net.URL;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import java.util.ArrayList;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.adsionline.ADSIShippingWS.ADSIShippingLocator;
import com.adsionline.ADSIShippingWS.ADSIShippingSoap;
import com.adsionline.ADSIShippingWS.StringDictionaryReturn;
@javax.ejb.Stateless
public class PickOrderPrc extends ProcessEJB implements PickOrderPrcLocal,PickOrderPrcRemote
{
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{
GenericUtility genericUtility = GenericUtility.getInstance();
System.out.println("INSIDE GET DATA");
String rtrStr = "";
Document headerDom = null;
Document detailDom = null;
System.out.println("getData(xmlString,xmlString2,windowName,xtraParams CALLED..."+ xmlString);
try
{
if(xmlString != null && xmlString.trim().length()!=0)
{
System.out.println("XML String :"+xmlString);
headerDom = genericUtility.parseString(xmlString);
}
if(xmlString2 != null && xmlString2.trim().length()!=0)
{
System.out.println("XML String :"+xmlString2);
detailDom = genericUtility.parseString(xmlString2);
}
rtrStr = getData(headerDom, detailDom, windowName, xtraParams);
}
catch (Exception e)
{
System.out.println("Exception :PickOrderPrcEJB :getData(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
rtrStr = e.getMessage();
}
return rtrStr;
}
public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{
String fromDate = "";
String toDate="";
String waveId = "";
String saleOrder = "";
String pickOrder = "";
String assingTo = "";
String status = "";
String ptcn = "";
String pickOrderFrom = "";
String pickOrderTo = "";
String orderDate = "";
String errCode = "";
String errString = "";
PreparedStatement pstmt=null;
String getDataSql=null;
String resultString = "";
Connection conn = null;
ResultSet rs=null;
boolean rsflag=false;
java.sql.Timestamp dateFr = null;
java.sql.Timestamp dateTo = null;
StringBuffer valueXmlString=new StringBuffer();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
valueXmlString = new StringBuffer( "<?xml version='1.0' encoding='UTF-8'?>\r\n<DocumentRoot>\r\n<description>Datawindow Root</description>\r\n<group0>\r\n" +
"<description>Group0 description</description>\r\n<Header0>\r\n<description>Header0 members</description>\r\n");
try
{
GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
String userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
pickOrderFrom = checkNull(genericUtility.getColumnValue("pick_order_from",headerDom));
System.out.println("PICKORDERFROM==="+pickOrderFrom);
pickOrderTo = checkNull(genericUtility.getColumnValue("pick_order_to",headerDom));
System.out.println("PICKORDERTO==="+pickOrderTo);
fromDate = checkNull(genericUtility.getColumnValue("from_date",headerDom));
System.out.println("FROMDATE==="+fromDate);
toDate = checkNull(genericUtility.getColumnValue("to_date",headerDom));
System.out.println("TODATE==="+toDate);
System.out.println("headerDom:"+headerDom);
System.out.println("detailDom:"+detailDom);
System.out.println("windowName:"+windowName);
System.out.println("xtraParams:"+xtraParams);
if ( fromDate == null || fromDate.trim().length() == 0 )
{
errCode = "VPFROMBTBK";
errString = itmDBAccessEJB.getErrorString("","VPFROMBTBK",userId);
return errString;
}
fromDate = genericUtility.getValidDateString(fromDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
System.out.println("FROMDATE==="+fromDate);
dateFr = java.sql.Timestamp.valueOf(fromDate + " 00:00:00");
if ( toDate == null || toDate.trim().length() == 0 )
{
errCode = "VPTODADTBK";
errString = itmDBAccessEJB.getErrorString("","VPTODADTBK",userId);
return errString;
}
toDate = genericUtility.getValidDateString(toDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
System.out.println("TODATE==="+toDate);
dateTo = java.sql.Timestamp.valueOf(toDate + " 00:00:00");
int i = toDate.compareTo(fromDate);
System.out.println("DATEVALIDATE==="+i);
orderDate = Integer.toString(i);
if(orderDate.contains("-"))
{
errCode = "VPINVLDATE";
errString = itmDBAccessEJB.getErrorString("","VPINVLDATE",userId);
return errString;
}
getDataSql = " SELECT DISTINCT P.PICK_ORDER, P.SALE_ORDER, P.WAVE_ID, WD.PTCN, P.ASSIGN_TO, P.STATUS " +
" FROM PICK_ORD_HDR P, WAVE_TASK W, WAVE_TASK_DET WD, PICK_ISS_HDR PH, PICK_ORD_DET PT " +
" WHERE P.PICK_ORDER = WD.REF_ID AND P.PICK_ORDER = PT.PICK_ORDER AND P.WAVE_ID = W.WAVE_ID " +
//changed by sankara on 05-sep-13 for getting pick order start.
// " AND P.WAVE_ID = WD.WAVE_ID AND P.PICK_ORDER = PH.PICK_ORDER AND WD.STATUS = 'N' AND W.CANCEL = 'N' " +
// " AND PH.CONFIRMED = 'N' AND P.PICK_ORDER BETWEEN ? AND ? AND P.ORDER_DATE BETWEEN ? AND ? " ;
" AND P.WAVE_ID = WD.WAVE_ID AND WD.STATUS = 'N' AND W.CANCEL = 'N' " +
" AND ( PH.CONFIRMED = 'N' OR PH.PICK_ORDER IS NULL ) AND P.PICK_ORDER BETWEEN ? AND ? AND P.ORDER_DATE BETWEEN ? AND ? " ;
//changed by sankara on 05-sep-13 for getting pick order end.
System.out.println("**************getDataSql="+getDataSql);
pstmt = conn.prepareStatement(getDataSql);
pstmt.setString(1,pickOrderFrom);
pstmt.setString(2,pickOrderTo);
pstmt.setTimestamp(3,dateFr);
pstmt.setTimestamp(4,dateTo);
rs = pstmt.executeQuery();
rsflag=false;
while(rs.next())
{
rsflag=true;
valueXmlString.append( "<Detail2>\r\n" );
pickOrder = checkNull(rs.getString(1));
saleOrder = checkNull(rs.getString(2));
waveId = checkNull(rs.getString(3));
ptcn = checkNull(rs.getString(4));
assingTo = checkNull(rs.getString(5));
status = checkNull(rs.getString(6));
valueXmlString.append( "<pick_order><![CDATA[" ).append(pickOrder).append( "]]></pick_order>\r\n" );
valueXmlString.append( "<sale_order><![CDATA[" ).append (saleOrder).append( "]]></sale_order>\r\n" );
valueXmlString.append( "<wave_id><![CDATA[" ).append( waveId ).append( "]]></wave_id>\r\n" );
valueXmlString.append( "<ptcn><![CDATA[" ).append(ptcn).append( "]]></ptcn>\r\n" );
valueXmlString.append( "<assign_to><![CDATA[" ).append(assingTo).append( "]]></assign_to>\r\n" );
valueXmlString.append( "<status><![CDATA[" ).append(status).append( "]]></status>\r\n" );
valueXmlString.append("\n");
valueXmlString.append( "</Detail2>\r\n" );
}
valueXmlString.append( "</Header0>\r\n</group0>\r\n</DocumentRoot>\r\n" );
resultString=valueXmlString.toString();
if(rsflag == false)
{
errCode = "VPINVLDATA";
errString = itmDBAccessEJB.getErrorString("","VPINVLDATA",userId);
return errString;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
catch(Exception e)
{
System.out.println("Exception occured while getData()");
e.printStackTrace();
}
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 ex)
{
System.out.println("Exception occured while getData()");
ex.printStackTrace();
}
}
return resultString;
} //get data method closed
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();
System.out.println("***Testing Process Method***");
System.out.println("below genericUtility--------------->>>>>>>>>");
try
{
if(xmlString != null && xmlString.trim().length()!=0)
{
headerDom = genericUtility.parseString(xmlString);
System.out.println("headerDom" + headerDom);
}
if(xmlString2 != null && xmlString2.trim().length()!=0)
{
detailDom = genericUtility.parseString(xmlString2);
System.out.println("detailDom" + detailDom);
}
retStr = process(headerDom, detailDom, windowName, xtraParams);
}
catch (Exception e)
{
System.out.println("Exception :PickOrderPrcEJB :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace();
retStr = e.getMessage();
throw new ITMException(e);
}
return retStr;
}
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{
Connection conn = null;
ResultSet rs = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
PreparedStatement pstmt = null;
String updateSql = null;
String sql = null;
int parentNodeListLength = 0;
int childNodeListLength = 0;
NodeList parentNodeList = null;
String childNodeName = null;
String ptcn = "";
String waveId = "";
String pickOrder = "";
String saleOrder = "";
String status = "";
String assignTo = "";
int count = 0;
int totalCount = 0;
int pickIssCount = 0;
String errCode = "";
String errString = "";
boolean isError = false;
GenericUtility genericUtility = GenericUtility.getInstance();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
try
{
String userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
conn.setAutoCommit(false);
System.out.println("headerDom:"+headerDom);
System.out.println("detailDom:"+detailDom);
System.out.println("windowName:"+windowName);
System.out.println("xtraParams:"+xtraParams);
parentNodeList = detailDom.getElementsByTagName("Detail2");
parentNodeListLength = parentNodeList.getLength();
for (int selectedRow = 0; selectedRow < parentNodeListLength; selectedRow++)
{
parentNode = parentNodeList.item(selectedRow);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
System.out.println("childNodeListLength---->>> "+ childNodeListLength);
for (int childRow = 0; childRow < childNodeListLength; childRow++)
{
childNode = childNodeList.item(childRow);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName---->>> "+ childNodeName);
if("pick_order".equalsIgnoreCase(childNodeName))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
pickOrder = checkNull(childNode.getFirstChild().getNodeValue());
}
}
else if("sale_order".equalsIgnoreCase(childNodeName))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
saleOrder = checkNull(childNode.getFirstChild().getNodeValue());
}
}
else if("wave_id".equalsIgnoreCase(childNodeName))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
waveId = checkNull(childNode.getFirstChild().getNodeValue());
}
}
else if("ptcn".equalsIgnoreCase(childNodeName))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
ptcn = checkNull(childNode.getFirstChild().getNodeValue());
}
}
else if("assign_to".equalsIgnoreCase(childNodeName))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
assignTo = checkNull(childNode.getFirstChild().getNodeValue());
if ( assignTo != null && assignTo.trim().length() != 0 )
{
System.out.println("assignTo==="+assignTo);
sql = " SELECT COUNT(*) FROM USERS WHERE CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,assignTo.trim());
rs = pstmt.executeQuery();
if(rs.next())
{
count = rs.getInt(1);
}
if(count == 0)
{
errString = itmDBAccessEJB.getErrorString("","VPINVUSRCD",userId);
return errString;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
}
}
else if("status".equalsIgnoreCase(childNodeName))
{
if ( childNode != null && childNode.getFirstChild() != null )
{
status = checkNull(childNode.getFirstChild().getNodeValue());
}
}
}
System.out.println(" WAVEID=["+waveId+"] PTCN=["+ptcn+"] SALEORDER=["+saleOrder+"] PICKORDER=["+pickOrder+"] ASSIGNTO=["+assignTo+"] STATUS=["+status+"] ");
if ( pickOrder != null && pickOrder.trim().length() != 0 )
{
System.out.println("PICKORDER===="+pickOrder);
updateSql= " UPDATE PICK_ORD_HDR SET ASSIGN_TO = ? WHERE PICK_ORDER = ? ";
pstmt = conn.prepareStatement(updateSql);
pstmt.setString(1,assignTo);
pstmt.setString(2,pickOrder);
count = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
updateSql= " UPDATE PICK_ISS_HDR SET CHG_USER = ? WHERE PICK_ORDER = ? ";
pstmt = conn.prepareStatement(updateSql);
pstmt.setString(1,assignTo);
pstmt.setString(2,pickOrder);
count = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
}
totalCount = count+totalCount;
}
if( totalCount > 0 )
{
errString = itmDBAccessEJB.getErrorString("","VPPRCESFUL",userId);
}
else
{
System.out.println("Updated Rows Count in Pick Ord Hdr and Pick Iss Hdr"+totalCount);
}
}
catch (Exception e)
{
isError = true;
try
{
conn.rollback();
}
catch (Exception e1)
{
System.out.println("Gem Message="+e.getCause());
System.out.println("Complete Message="+e.getMessage());
e1.printStackTrace();
}
e.printStackTrace();
System.out.println("******Exception"+e.getMessage());
}
finally
{
try
{
if(!isError)
{
conn.commit();
}
else
{
conn.rollback();
}
if(conn != null)
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
conn.close();
}
conn = null;
}
catch (Exception ex)
{
isError = true;
System.out.println("Exception is "+ex.getMessage());
}
}
return errString;
} //process method
private String checkNull( String input )
{
if( input == null )
{
input = "";
}
else
{
input = input.trim();
}
return input;
}
} // class closed
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ProcessLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.Document;
@javax.ejb.Local
public interface PickOrderPrcLocal extends ProcessLocal
{
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) 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
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
@javax.ejb.Remote
public interface PickOrderPrcRemote extends ProcessRemote
{
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) 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
...@@ -79,8 +79,958 @@ import com.adsionline.ADSIShippingWS.StringDictionaryReturn; ...@@ -79,8 +79,958 @@ import com.adsionline.ADSIShippingWS.StringDictionaryReturn;
public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ShipmentConfRemote public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ShipmentConfRemote
{ {
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
//start new
public String confirm(String tranId, String xtraParam, String forcedFlag) throws RemoteException,ITMException public String confirm(String tranId, String xtraParam, String forcedFlag) throws RemoteException,ITMException
{ {
String errString = "";
String sql = "",sSQLUpdatSord = "";
String refId = "",proNo = "",tranProNo = "";
String lorryNo = "";
String tranCode = "";
String lrNo = "";
String confirmed = "";
String chDigitYn = "";
String refSer = "", refSerNew = "";
int noOfPallet = 0, count = 0;
Timestamp lrDate = null;
ConnDriver connDriver = new ConnDriver();
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
PreparedStatement pstmt1 = null,pstmtSord = null;
String winName = "";
String objName = "";
String adsiShippingURL = "";
DistCommon discommon = new DistCommon();
ADSIShippingLocator locator = null;
ADSIShippingSoap soap = null;
Shipment2 shipment2 = null;
Address recipient = null;
Package2 pkg2 = null;
CommodityInfo comInfo = null;
ArrayList<String> cartonNoList = new ArrayList<String>();
String custName = "";
String shipAdd1 = "";
String shipAdd2 = "";
String shipAdd3 = "";
String shipCity = "";
String stateCodeDlv = "";
String shipCountry = "";
String serviceCode = "";
String saleOrder = "";
String cartonNo = "";
String sqlNoPkg = "";
String strlen = "";
String widthStr = "";
String heightStr = "";
String defPh = "";
String shipPin = "";
String palleNo = "";
String pkgDescr = "";
String status = "";
String phone = "";
String itemDescr = "";
int pkg = 0;
int noOfPkgs = 0;
int commCnt = 0;
double caseWeightTotal = 0.0;
double slength = 0.0;
double width = 0.0;
double height = 0.0;
double noArt = 0.0;
double caseWeight = 0.0;
double unitValue = 0.0;
double dimensionDouble = 0.0;
CommodityInfo[] infoCom1 = null;
PreparedStatement pstmt2 = null;
PreparedStatement pstmtTransetUp = null;
ResultSet rs2 = null,rsSet = null;
ResultSet rs3 = null;
boolean isAllDespConfirmed = false;
try
{
conn = connDriver.getConnectDB( "DriverITM" );
String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParam, "LoginCode" );
System.out.println(" forced flag:::>>>>:: ["+forcedFlag+"]");
ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB();
sql = "SELECT SHIPMENT.CONFIRMED, SHIPMENT.NO_PALLET FROM SHIPMENT WHERE SHIPMENT.SHIPMENT_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next())
{
confirmed = rs.getString("CONFIRMED");
noOfPallet = rs.getInt("NO_PALLET");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
sql = "SELECT REF_SER FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next())
{
refSer = checkNull(rs.getString("REF_SER"));
}
System.out.println("-- confirmed ["+confirmed+"] noOfPallet ["+noOfPallet+"] refSer ["+refSer.trim()+"]");
rs.close();rs = null;
pstmt.close();pstmt = null;
if( "Y".equalsIgnoreCase(confirmed))
{
errString = itmDBAccessLocal.getErrorString("","SHIPALLCON","");
}
else
{
if( "S-DSP".equalsIgnoreCase(refSer.trim()) && "N".equalsIgnoreCase(forcedFlag))
{
errString = itmDBAccessLocal.getErrorString("","SDSPCONFIR","");
}
else
{
if(("".equalsIgnoreCase(refSer.trim())) || ("D-ISS".equalsIgnoreCase(refSer.trim()) || "C-ISS".equalsIgnoreCase(refSer.trim()) || "P-RET".equalsIgnoreCase(refSer.trim()) ))
{
if(noOfPallet <= 0 && !refSer.trim().equalsIgnoreCase("S-DSP"))
{
errString = itmDBAccessLocal.getErrorString("","VTINVPALNO","");
return errString;
}
sql = "SELECT STATUS FROM PALLET_NO WHERE PALLET_NO IN ( SELECT PALLET_NO FROM SHIPMENT_CONTENT WHERE SHIPMENT_ID = ? ) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while( rs.next() )
{
status = checkNull(rs.getString("STATUS"));
if((!"".equalsIgnoreCase(status) || status != null ) && !"A".equalsIgnoreCase(status) )
{
errString = itmDBAccessLocal.getErrorString("","VTINVPALET","");
return errString;
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = "SELECT STATUS FROM CARTON_MASTER WHERE CARTON_NO IN ( SELECT CARTON_NO FROM SHIPMENT_CONTENT WHERE SHIPMENT_ID = ? ) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while( rs.next() )
{
status = checkNull(rs.getString("STATUS"));
if((!"".equalsIgnoreCase(status) || status != null ) && !"A".equalsIgnoreCase(status) )
{
errString = itmDBAccessLocal.getErrorString("","VTINVCARTN","");
return errString;
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = "SELECT CONSIGNEE_NAME,ADDR1,ADDR2,ADDR3 FROM SHIPMENT WHERE SHIPMENT_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
custName = checkNull(rs.getString("CONSIGNEE_NAME")).trim();
shipAdd1 = checkNull(rs.getString("ADDR3")).trim();
shipAdd2 = checkNull(rs.getString("ADDR2")).trim();
shipAdd3 = checkNull(rs.getString("ADDR1")).trim();
}
if("".equalsIgnoreCase(custName) && custName.trim().length() <= 0)
{
errString = itmDBAccessLocal.getErrorString("","VTINVCONSE","");
return errString;
}
if(("".equalsIgnoreCase(shipAdd1) && shipAdd1.trim().length() <= 0 ) && ("".equalsIgnoreCase(shipAdd2) && shipAdd2.trim().length() <= 0 ) && ("".equalsIgnoreCase(shipAdd3) && shipAdd3.trim().length() <= 0 ))
{
errString = itmDBAccessLocal.getErrorString("","VTINVADDR","");
return errString;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
sql = "SELECT COUNT(*) as COUNT FROM SHIPMENT_CONTENT WHERE SHIPMENT_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next())
{
count = rs.getInt("COUNT");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if( noOfPallet != count && !("S-DSP".equalsIgnoreCase(refSer.trim())))
{
errString = itmDBAccessLocal.getErrorString("","NOOFPALLET","");
}
else
{
if(("".equalsIgnoreCase(refSer.trim()) || ("D-ISS".equalsIgnoreCase(refSer.trim()) || "C-ISS".equalsIgnoreCase(refSer.trim()) || "P-RET".equalsIgnoreCase(refSer.trim())) ) && ( "".equalsIgnoreCase(tranCode.trim()) || tranCode == null) && tranCode.trim().length() <= 0 )
{
errString = itmDBAccessLocal.getErrorString("","VTTRANCDBK","");
return errString;
}
sql = "SELECT PRONO_LAST,CHK_DIGIT_YN FROM transporter WHERE tran_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranCode);
rs = pstmt.executeQuery();
if( rs.next() )
{
tranProNo = rs.getString(1);
chDigitYn = rs.getString("CHK_DIGIT_YN");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sSQLUpdatSord = " UPDATE SORDER SET SHIP_STATUS = ? WHERE "
+ " SALE_ORDER IN (SELECT SORD_NO FROM DESPATCH D,SHIP_DOCS S "
+ " WHERE D.DESP_ID = S.REF_ID AND S.SHIPMENT_ID = ?) ";
pstmtSord = conn.prepareStatement(sSQLUpdatSord);
sql = " SELECT TRAN_WINDOW FROM TRANSETUP WHERE REF_SER = ? ";
pstmtTransetUp = conn.prepareStatement(sql);
pstmtTransetUp.setString(1, refSer.trim());
rsSet = pstmtTransetUp.executeQuery();
if( rsSet.next() )
{
winName = rsSet.getString("TRAN_WINDOW");
}
objName = winName != null ? winName.substring(2):objName;
System.out.println("OBJNAME=="+objName);
if(pstmtTransetUp != null)
{
pstmtTransetUp.close();
pstmtTransetUp = null;
}
if(rsSet != null)
{
rsSet.close();
rsSet = null;
}
sql = " SELECT S.REF_ID, S.REF_SER FROM SHIP_DOCS S,DESPATCH D WHERE "
+" S.SHIPMENT_ID = ? AND D.DESP_ID = S.REF_ID AND D.CONFIRMED = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setString(2, "N");
rs = pstmt.executeQuery();
while( rs.next() )
{
refId = rs.getString(1);
refSerNew = checkNull(rs.getString("REF_SER"));
System.out.println("ref_id " +refId+" refSer: ["+refSerNew.trim()+"]");
if(refId != null && refId.trim().length() > 0)
{
errString = confirmShipment( objName, refId.trim(), xtraParam, forcedFlag, conn);
System.out.println(" errString ---------------- > ["+errString);
updateShipDocs(refId,refSerNew, findError(errString));
}
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
isAllDespConfirmed = isCountSame(tranId, conn);
if( isAllDespConfirmed || !("S-DSP".equalsIgnoreCase(refSer.trim())))
{
if("D-ISS".equalsIgnoreCase(refSer.trim()) || "C-ISS".equalsIgnoreCase(refSer.trim()) || "P-RET".equalsIgnoreCase(refSer.trim()) || "".equalsIgnoreCase(refSer.trim()))
{
sql = "SELECT T.SERVICE_CODE,S.PACK_SIZE FROM SHIPMENT S,TRANSPORTER T WHERE T.TRAN_CODE = S.TRAN_CODE AND"
+" S.SHIPMENT_ID = ? ";
PreparedStatement pstmtTrans = conn.prepareStatement(sql);
pstmtTrans.setString(1, tranId);
ResultSet rsTrans = pstmtTrans.executeQuery();
if(rsTrans.next())
{
serviceCode = checkNull(rsTrans.getString("SERVICE_CODE"));
dimensionDouble = rsTrans.getDouble("PACK_SIZE");
}
if(pstmtTrans != null)
{
pstmtTrans.close();
pstmtTrans = null;
}
if(rsTrans != null)
{
rsTrans.close();
rsTrans = null;
}
if(serviceCode != null && serviceCode.trim().length() > 0)
{
System.out.println("Enetr in manual Shipment whit shipment ID"+tranId);
adsiShippingURL = discommon.getDisparams("999999","WMS_ADSI_SOAP_URL",conn);
defPh = discommon.getDisparams("999999","SHIPPER_DEFAULT_PH",conn);
com.adsionline.ADSIShippingWS.Service service = new com.adsionline.ADSIShippingWS.Service();
NameValuePair[] additionalFields = new NameValuePair[1];
Package2[] packgeList = null;
ArrayList<CommodityInfo> comodityInfoList = new ArrayList<CommodityInfo>();
System.out.println("After disparm value"+adsiShippingURL);
long timeBefore = System.currentTimeMillis();
locator = new ADSIShippingLocator();
soap = locator.getADSIShippingSoap(new URL(adsiShippingURL));
long timeAfter = System.currentTimeMillis();
System.out.println("Differance In Tme for connecting to ADSI Server time differance in seconds["+(timeAfter-timeBefore)/1000+"]");
if(soap.testADSIServer())
{
System.out.println("---ADSI Server Connected---");
System.out.println("************Enter in manual shiment ******************************");
sql = "SELECT S.CONSIGNEE_NAME,S.ADDR1,S.ADDR2,S.ADDR3,S.CITY,S.COUNT_CODE,S.STATE_CODE,S.PIN,S.NO_ART,S.PKG_DESCR,S.UNIT_VALUE,S.ITEM_DESCR,S.FRT_LIST,S.TELE1,S.GROSS_WEIGHT "
+" FROM SHIPMENT S WHERE S.SHIPMENT_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if(rs.next())
{
custName = checkNull(rs.getString("CONSIGNEE_NAME"));
shipAdd1 = checkNull(rs.getString("ADDR1"));
shipAdd2 = checkNull(rs.getString("ADDR2"));
shipAdd3 = checkNull(rs.getString("ADDR3"));
shipCity = checkNull(rs.getString("CITY"));
shipCountry = checkNull(rs.getString("COUNT_CODE"));
stateCodeDlv = checkNull(rs.getString("STATE_CODE"));
shipPin = checkNull(rs.getString("PIN"));
pkgDescr = checkNull(rs.getString("PKG_DESCR"));
itemDescr = checkNull(rs.getString("ITEM_DESCR"));
unitValue = rs.getDouble("UNIT_VALUE");
noArt = rs.getDouble("NO_ART");
phone = checkNull(rs.getString("TELE1"));
caseWeight = rs.getDouble("GROSS_WEIGHT");
}
pstmt.close();
pstmt = null;
rs.close();
rs = null;
shipment2 = new Shipment2();
recipient = new Address();
shipment2.setID(refId);
recipient.setID(custName);
recipient.setContact(custName);
recipient.setCompany("");
if(!"".equalsIgnoreCase(shipAdd3) && shipAdd3.trim().length() > 0)
{
recipient.setAddress1(shipAdd3);//Customer Adress1
recipient.setAddress2(shipAdd2);//Customer Adress2
recipient.setAddress3(shipAdd1);//Customer Adress3
}
else if(!"".equalsIgnoreCase(shipAdd2) && shipAdd2.trim().length() > 0)
{
recipient.setAddress1(shipAdd2);//Customer Adress1
recipient.setAddress2(shipAdd1);//Customer Adress2
recipient.setAddress3("");
}
else
{
recipient.setAddress1(shipAdd1);//Customer Adress1
recipient.setAddress2("");//Customer Adress2
recipient.setAddress3("");
}
recipient.setCity(shipCity);//Customer Adress City
sql = "SELECT T.SERVICE_CODE,S.PACK_SIZE FROM SHIPMENT S,TRANSPORTER T WHERE T.TRAN_CODE = S.TRAN_CODE AND"
+" S.SHIPMENT_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if(rs.next())
{
serviceCode = checkNull(rs.getString("SERVICE_CODE"));
dimensionDouble = rs.getDouble("PACK_SIZE");
}
pstmt.close();
pstmt = null;
rs.close();
rs = null;
recipient.setState(stateCodeDlv);//Customer Adress State
Country country = soap.getCountry("ISO3", shipCountry).getResponseCountry();
recipient.setCountry(country);//Customer Adress Country
if(!"".equalsIgnoreCase(phone) && phone.trim().length() > 0)
{
recipient.setPhone(phone);
}
else
{
recipient.setPhone(defPh);
}
recipient.setEMail("");
recipient.setFax("");
recipient.setPostalCode(shipPin);
shipment2.setRecipient(recipient);
service.setFriendlyName(serviceCode);
shipment2.setService(service);
System.out.println("Service name is :"+shipment2.getService());
System.out.println("Service code is :"+serviceCode);
shipment2.setTerms(EnumTerms.trmSHIPPER);
shipment2.setSignatureReleaseFlag(false);//false As per Taro
shipment2.setSignatureRequiredFlag(false);//true Required As per Taro
shipment2.setSaturdayDeliveryFlag(false);// Taro Need To clerify "what is based on service level?"
java.util.Date date = new java.util.Date();
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
shipment2.setShipDate(calendar);
shipment2.setConsigneeAccount("");//Not Required As per Taro
shipment2.setThirdPartyBillingFlag(false);//Not Required As per Taro
shipment2.setThirdPartyBillingAccount("");//Not Required As per Taro
Address addrs = new Address();//Need to capture if required
shipment2.setThirdPartyBillingAddress(addrs);//Not Required As per Taro
shipment2.setHALFlag(false);//Need clarification from Taro
shipment2.setHALAddress(addrs);//Need clarification from Taro
shipment2.setManifestAction(EnumManifestAction.maRELEASE);//As per taro by default its maRELEASE
shipment2.setConsigneeBillingFlag(false);//As per Taro Not Required
shipment2.setConsigneeBillingFlag(false);//As per Taro Not Required
//shipment2.setShipperReference(ptcn);//As per Taro use PTCN(Pick Ticket Control No)
shipment2.setShipperReference(tranId);
//shipment2.setConsigneeReference(custPord);//As per Taro it is sorder.cust_pord
shipment2.setConsigneeReference(refId);//As per Taro it is sorder.cust_pord
shipment2.setShipperName("Taro Fulfillment");//Needs to change after clarity
shipment2.setTimeInTransit(EnumTimeInTransit.tntFOREVER);//As per taro its tntFOREVER
shipment2.setSaturdayDeliveryFlag(false);//Need to discuss with Taro
sqlNoPkg = "SELECT COUNT(*) AS NO_OF_PKG FROM SHIPMENT_CONTENT WHERE SHIPMENT_ID = ? ";
pstmt2 = conn.prepareStatement(sqlNoPkg);
pstmt2.setString(1, tranId);
rs2 = pstmt2.executeQuery();
if(rs2.next())
{
noOfPkgs = rs2.getInt("NO_OF_PKG");
}
packgeList = new Package2[noOfPkgs];
infoCom1 = new CommodityInfo[noOfPkgs] ;
sql = "SELECT C.CARTON_NO,C.PALLET_NO,C.LENGTH,C.WIDTH,C.HEIGHT FROM SHIPMENT_CONTENT C WHERE C.SHIPMENT_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while(rs.next())
{
cartonNo = checkNull(rs.getString("CARTON_NO"));
palleNo = checkNull(rs.getString("PALLET_NO"));
slength = rs.getDouble("LENGTH");
width = rs.getDouble("WIDTH");;
height = rs.getDouble("HEIGHT");
caseWeightTotal = noArt * caseWeight;
cartonNoList.add(cartonNo);
pkg2 = new Package2();
pkg2.setID(cartonNo);
pkg2.setWeight(caseWeightTotal);
System.out.println("Case total weight"+caseWeightTotal);
strlen = Double.toString(slength);
widthStr =Double.toString(width);
heightStr = Double.toString(height);
System.out.println("strlen"+strlen+"widthStr"+widthStr+"heightStr"+heightStr);
additionalFields[0] = new NameValuePair("carton_no", cartonNo);
pkg2.setDimension(strlen+"x"+widthStr+"x"+heightStr);
System.out.println("Dimension of master package----< :"+pkg2.getDimension());
pkg2.setTrackingNumber("");//Not Required Optional
if(!"".equalsIgnoreCase(pkgDescr.trim()) && pkgDescr.trim().length() > 0)
{
pkg2.setDescription(pkgDescr);//As per Taro
}
else
{
pkg2.setDescription("Pharmaceuticals");
}
pkg2.setOversizeFlag(false);//As per Taro
pkg2.setDeclaredValueFlag(false);//As per Taro
pkg2.setDeclaredValueAmount(0.0);//As per Taro not required
pkg2.setDeclaredValueCustoms(0.0);//As per Taro not required
pkg2.setBillOfLadingComment("");//As per Taro not required
pkg2.setAdditionalHandlingFlag(false);//As per Taro false
pkg2.setPackaging(EnumPackageType.pkgCUSTOM);//As per Taro default pkgCUSTOM
pkg2.setCODFlag(false);//As per Taro false
pkg2.setCODAmount(0.0);//As per Taro not required
pkg2.setCODPaymentType(0);//As per Taro not required
Address addr = new Address();
pkg2.setCODReturnAddress(addr);//As per Taro not required
pkg2.setAdditionalFields(additionalFields);
//originCountry = checkNull(rs3.getString("COUNT_CODE__MFG"));
pkg2.setHazmatFlag(false);
pkg2.setCODReturnAddress(addr);//As per Taro not required
comInfo = new CommodityInfo();
comInfo.setDescription("");//As per taro Harmonization description
comInfo.setQuantity(noArt);
comInfo.setHarmonizedCode("");//As per Taro Haromonization code
if(unitValue > 0)
{
comInfo.setUnitValue(unitValue);
}
else
{
comInfo.setUnitValue(0);
}
comInfo.setUnitWeight(caseWeight);
Country originCountryMfg = soap.getCountry("ISO3", shipCountry).getResponseCountry();
comInfo.setOriginCountry(originCountryMfg);
comInfo.setNaftaFlag(false);
comInfo.setExportNumberExpireDate(calendar);
comInfo.setUnitOfMeasure(EnumUnitOfMeasure.uomPCS);
infoCom1[commCnt] = comInfo;
commCnt++;
pkg2.setCommodityInfos(infoCom1);
packgeList[pkg]=pkg2;
pkg++;
}
pstmt.close();
pstmt = null;
rs.close();
rs = null;
if(pstmt2 != null)
{
pstmt2.close();
pstmt2 = null;
}
if(rs2 != null)
{
rs2.close();
rs2 = null;
}
//}
//Changed by Rohan on 30-07-13 for generating UPS/FEDEX lable in case of non inventory manual shipment.end
if(packgeList.length != 0 || packgeList.length > 0)
{
Timestamp currDate = new Timestamp(System.currentTimeMillis());
shipment2.setPackages2(packgeList);
ShipmentResultReturn2 objReturn2=soap.shipWithLabel(shipment2, ShipWithLabelType.PNG, ImageRotation.Rotation_180);
System.out.println("Is successfully Executed ["+objReturn2.isSuccess()+"]");
System.out.println("Message String ["+objReturn2.getMessage()+"]");
if(!objReturn2.isSuccess())
{
//errString = getError(saleOrder + "[" + objReturn2.getMessage() +"]", "ADSISRVERR", conn);
errString = getError(saleOrder + "[" + objReturn2.getMessage() +"]", "ADSISRVERR", conn);
return errString;
}
else
{
//Updating ADSI getting the images.start
ShipmentResult2 objShipResult = objReturn2.getShipmentResultResponse2();
int lenPacakges = objShipResult.getPackageResults2().length;
String value = "";
String pckgId = "";
String trackNo="";
double msnNo=0.0;
String imagePath =null;
imagePath = discommon.getDisparams("999999","SHIP_WITH_PATH",conn);
for(int pCtr = 0;pCtr < lenPacakges;pCtr++)
{
PackageResult2 pkg2frm = (PackageResult2)objShipResult.getPackageResults2()[pCtr];
value = pkg2frm.getBase64Label();
pckgId = pkg2frm.getPackageID();
//change by rekha on 23-05-13.start
pkg2frm.getAdditionalFields();
trackNo=pkg2frm.getTrackingNumber();
cartonNo = cartonNoList.get(pCtr);
System.out.println("cnumber is :"+cartonNo);
System.out.println("Package ID["+pckgId+"]");
System.out.println("Tracking No ["+pkg2frm.getTrackingNumber()+"]");
System.out.println("BASE64lABEL Length["+value.length()+"]");
BASE64Decoder decoder = new BASE64Decoder();
System.out.println("Package id for carton no is :[" +decoder.decodeBuffer(pckgId) +"]");
msnNo = pkg2frm.getMSN();
System.out.println("MSN NO IN EACH PACKAGE IS :" +msnNo);
byte[] imgBytes = decoder.decodeBuffer(value);
System.out.println("IMAGE Byte Length ["+imgBytes.length+"]");
BufferedImage bufImg = ImageIO.read(new ByteArrayInputStream(imgBytes));
File imgOutFile = new File(imagePath+ File.separator+"Manual_Ship_Label"+File.separator+ tranId + File.separator + tranId+"_"+cartonNo +".png");
String path = imgOutFile.getPath();
System.out.println("Get Path ["+path+"]");
File createFolder = new File(path);
if(!createFolder.exists())
{
createFolder.mkdirs();
}
sql = "UPDATE CARTON_MASTER SET TRACKING_NO = ? , SHIP_LABEL= ? , MSN_NO = ? ,STATUS = 'U' "
+ " WHERE CARTON_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, trackNo);
pstmt.setString(2, path );
pstmt.setDouble(3, msnNo);
pstmt.setString(4, cartonNo);
System.out.println("carton number in for loop: "+cartonNo);
System.out.println("msn no for pkg result is :" +msnNo);
int updateCnt = pstmt.executeUpdate();
System.out.println("update statement is :"+updateCnt);
if(updateCnt > 0)
{
System.out.println("carton master update succesfully");
}
else
{
System.out.println("Error in carton master updation");
}
//update tracking number in shipment contents.start
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
sql = " UPDATE SHIPMENT_CONTENT SET TRACKING_NO = ? WHERE SHIPMENT_ID = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, trackNo);
pstmt.setString(2,tranId);
pstmt.setInt(3, (pCtr+1));
updateCnt = pstmt.executeUpdate();
System.out.println("update statement is :"+updateCnt);
if(updateCnt > 0)
{
System.out.println("SHIPMENT_CONTENT update succesfully");
}
else
{
System.out.println("Error in SHIPMENT_CONTENTr updation");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
sql = " UPDATE PALLET_NO SET STATUS = 'U' WHERE PALLET_NO IN (SELECT PALLET_NO FROM SHIPMENT_CONTENT WHERE SHIPMENT_ID = ? AND LINE_NO = ? )";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setInt(2, (pCtr+1));
updateCnt = pstmt.executeUpdate();
System.out.println("update statement is :"+updateCnt);
if(updateCnt > 0)
{
System.out.println("PALLET_NO update succesfully");
}
else
{
System.out.println("Error in PALLET_NO updation");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
String n = pkg2frm.getTrackingNumber();
System.out.println("new tracking no of master package :"+n);
double n1 = pkg2.getWeight();
System.out.println("new weight of master package :"+n1);
imgOutFile.createNewFile();
ImageIO.write(bufImg, "png", imgOutFile);
System.out.println("Write File Complete----");
}
OutputStream file = new FileOutputStream(imagePath+ File.separator+"Manual_Ship_Label"+File.separator+ tranId + File.separator + tranId+"_"+"Ship"+".ser" );
OutputStream buffer = new BufferedOutputStream( file );
ObjectOutput output = new ObjectOutputStream( buffer );
output.writeObject(shipment2);
output.flush();
output.close();
file = new FileOutputStream( imagePath+ File.separator+"Manual_Ship_Label"+File.separator+ tranId + File.separator + tranId+"_"+"ShipRslt"+".ser" );
buffer = new BufferedOutputStream( file );
output = new ObjectOutputStream( buffer );
output.writeObject(objReturn2);
output.flush();
output.close();
}
}
else
{
System.out.println("---Packages not set succesfully---");
//errString = itmDBAccessEJB.getErrorString("","ADSISRVERR","","",conn);
errString = itmDBAccessLocal.getErrorString("","VTADSIPKGE","");
return errString;
}
}
else
{
System.out.println("---ADSI Server Not Connected throw error---");
//errString = itmDBAccessEJB.getErrorString("","ADSISRVERR","","",conn);
errString = itmDBAccessLocal.getErrorString("","ADSISRVERR","");
return errString;
}
}
}
sql = "UPDATE SHIPMENT SET CONFIRMED = ? , CONF_DATE = ? WHERE SHIPMENT_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "Y");
pstmt.setDate(2, new java.sql.Date(new java.util.Date().getTime()));
pstmt.setString(3, tranId);
pstmt.executeUpdate();
pstmt.close();
pstmt = null;
//conn.commit();
if(isAllDespConfirmed)
{
if( updateShipment(tranId , conn, xtraParam) > 0)
{
System.out.println(" update sucessfully ");
}
sql = "SELECT LORRY_NO,TRAN_CODE,LR_NO,LR_DATE, pro_no FROM SHIPMENT WHERE SHIPMENT_ID = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
lorryNo = checkNull(rs.getString(1));
tranCode = checkNull(rs.getString(2));
lrNo = checkNull(rs.getString(3));
lrDate = rs.getTimestamp(4);
proNo = checkNull(rs.getString(5));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = "UPDATE DESPATCH SET LORRY_NO = ?, SHIPMENT_ID = ?, TRAN_CODE = ?,"
+ " LR_NO = ?, LR_DATE = ?, PRO_NO = ? WHERE "
+ " DESP_ID IN (SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ?)";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, lorryNo);
pstmt1.setString(2, tranId);
pstmt1.setString(3, tranCode);
pstmt1.setString(4, lrNo);
pstmt1.setTimestamp(5, lrDate);
pstmt1.setString(6, proNo);
pstmt1.setString(7, tranId);
pstmt1.executeUpdate();
pstmt1.close();
pstmt1 = null;
sql = " UPDATE INVOICE SET LR_NO = ? WHERE DESP_ID IN "
+ " (SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ?)";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, lrNo);
pstmt1.setString(2, tranId);
pstmt1.executeUpdate();
pstmt1.close();
pstmt1 = null;
if((tranProNo != null && proNo != null) && proNo.length() > tranProNo.length())
{
proNo = proNo.substring(0,tranProNo.length());
}
else if( tranProNo == null && "Y".equalsIgnoreCase(chDigitYn))
{
proNo = proNo.substring(0,proNo.length() - 1);
}
System.out.println(" pro_no ["+proNo+"]");
sql = "UPDATE TRANSPORTER SET PRONO_LAST = ? WHERE TRAN_CODE = ?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, proNo);
pstmt1.setString(2, tranCode);
pstmt1.executeUpdate();
pstmt1.close();
pstmt1 = null;
pstmtSord.setString(1, "C");
pstmtSord.setString(2, tranId);
int updateSorder = pstmtSord.executeUpdate();
if(updateSorder > 0)
{
System.out.println(" SORDER UPDATE COUNT ["+updateSorder+"]");
}
if( pstmtSord!= null)
{
pstmtSord.close();
pstmtSord = null;
}
}
if(conn != null)
{
conn.commit();
}
errString = itmDBAccessLocal.getErrorString("","VTCONFIRM","");
}
}
}
}
if( pstmtSord!= null)
{
pstmtSord.close();
pstmtSord = null;
}
}
catch(Exception e)
{
try{
conn.rollback();
}
catch(SQLException es)
{
System.out.println("Rollback exception : " + es.getMessage() + ":");
}
System.out.println("Exception : Shipment Confirm():" + e.getMessage() + ":");
throw new ITMException(e);
}
finally
{
System.out.println("!! Closing Connection in Shipment Confirm() !!");
try
{
if( pstmtSord!= null)
{
pstmtSord.close();
pstmtSord = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmtTransetUp != null)
{
pstmtTransetUp.close();
pstmtTransetUp = null;
}
if(rsSet != null)
{
rsSet.close();
rsSet = null;
}
conn.close();
conn = null;
}
catch(Exception se){
System.out.println(se.getMessage());
throw new ITMException(se);
}
}
return errString;
}
//end new
/*public String confirm(String tranId, String xtraParam, String forcedFlag) throws RemoteException,ITMException
{
int cnt = 0; int cnt = 0;
String errString = ""; String errString = "";
String sql = "",sSQLUpdatSord = ""; String sql = "",sSQLUpdatSord = "";
...@@ -187,11 +1137,11 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -187,11 +1137,11 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
System.out.println(" forced flag:::>>>>:: ["+forcedFlag+"]"); System.out.println(" forced flag:::>>>>:: ["+forcedFlag+"]");
ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB(); ITMDBAccessLocal itmDBAccessLocal = new ITMDBAccessEJB();
//Changed by Rohan on 30-07-13 for non inventory manual shipment //Changed by Rohan on 30-07-13 for non inventory manual shipment
/*
sql = "SELECT SHIPMENT.CONFIRMED, SHIPMENT.NO_PALLET, SHIP_DOCS.REF_SER " + sql = "SELECT SHIPMENT.CONFIRMED, SHIPMENT.NO_PALLET, SHIP_DOCS.REF_SER " +
" FROM SHIPMENT, SHIP_DOCS WHERE SHIPMENT.SHIPMENT_ID = ? " + " FROM SHIPMENT, SHIP_DOCS WHERE SHIPMENT.SHIPMENT_ID = ? " +
" AND SHIP_DOCS.SHIPMENT_ID = SHIPMENT.SHIPMENT_ID"; " AND SHIP_DOCS.SHIPMENT_ID = SHIPMENT.SHIPMENT_ID";
*/
sql = "SELECT SHIPMENT.CONFIRMED, SHIPMENT.NO_PALLET FROM SHIPMENT WHERE SHIPMENT.SHIPMENT_ID = ? "; sql = "SELECT SHIPMENT.CONFIRMED, SHIPMENT.NO_PALLET FROM SHIPMENT WHERE SHIPMENT.SHIPMENT_ID = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId); pstmt.setString(1, tranId);
...@@ -415,8 +1365,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -415,8 +1365,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
System.out.println(" errString ---------------- > ["+errString); System.out.println(" errString ---------------- > ["+errString);
//Changed by sumit on 05/10/12 updating desp_confirmed in ship docs table //Changed by sumit on 05/10/12 updating desp_confirmed in ship docs table
/*if ( newErro == null || newErro.trim().length() == 0) if ( newErro == null || newErro.trim().length() == 0)
{*/ {
//Changed by Rohan on 14-08-13 for passing argument in refser //Changed by Rohan on 14-08-13 for passing argument in refser
//updateShipDocs(refId, findError(errString)); //updateShipDocs(refId, findError(errString));
updateShipDocs(refId,refSerNew, findError(errString)); updateShipDocs(refId,refSerNew, findError(errString));
...@@ -426,10 +1376,10 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -426,10 +1376,10 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
// check digit to be removed from pro_no before update // check digit to be removed from pro_no before update
//if(proNo.length() > tranProNo.length()) //if(proNo.length() > tranProNo.length())
//Changed by sumit on 13/03/13 of Req.Id [WM3ASUN007] commenting this, as not required for despatch start //Changed by sumit on 13/03/13 of Req.Id [WM3ASUN007] commenting this, as not required for despatch start
/*if((tranProNo != null && proNo != null) && proNo.length() > tranProNo.length()) if((tranProNo != null && proNo != null) && proNo.length() > tranProNo.length())
{ {
proNo = proNo.substring(0,tranProNo.length()); proNo = proNo.substring(0,tranProNo.length());
}*/ }
//Changed by sumit on 13/03/13 of Req.Id [WM3ASUN007] commenting this, as not required for despatch end //Changed by sumit on 13/03/13 of Req.Id [WM3ASUN007] commenting this, as not required for despatch end
sql = "UPDATE DESPATCH SET LORRY_NO = ?, SHIPMENT_ID = ?, TRAN_CODE = ?, LR_NO = ?, LR_DATE = ?, pro_no = ? WHERE DESP_ID = ?"; sql = "UPDATE DESPATCH SET LORRY_NO = ?, SHIPMENT_ID = ?, TRAN_CODE = ?, LR_NO = ?, LR_DATE = ?, pro_no = ? WHERE DESP_ID = ?";
...@@ -509,13 +1459,13 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -509,13 +1459,13 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
updateShipDocs(refId,refSerNew, findError(errString)); updateShipDocs(refId,refSerNew, findError(errString));
//or id="VTSUCC1" type="P" column_name=""> //or id="VTSUCC1" type="P" column_name="">
/*<message><![CDATA[Prompt : Transaction confirmed!]]></message> <message><![CDATA[Prompt : Transaction confirmed!]]></message>
<description><![CDATA[Transaction Confirmed Sucessfully.]]></description> <description><![CDATA[Transaction Confirmed Sucessfully.]]></description>
<trace><![CDATA[]]></trace> <trace><![CDATA[]]></trace>
<redirect>1</redirect> <redirect>1</redirect>
</error> </error>
</Errors> </Errors>
</Root>]*/ </Root>]
//if(errString != "" && errString.)error string should not check as it will call for multiple times. //if(errString != "" && errString.)error string should not check as it will call for multiple times.
...@@ -603,7 +1553,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -603,7 +1553,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
System.out.println("---ADSI Server Connected---"); System.out.println("---ADSI Server Connected---");
//Changed by Rohan on 30-07-13 for generating UPS/FEDEX lable in case of inventory manual shipment.start //Changed by Rohan on 30-07-13 for generating UPS/FEDEX lable in case of inventory manual shipment.start
/*
if("D-ISS".equalsIgnoreCase(refSer.trim()) || "C-ISS".equalsIgnoreCase(refSer.trim()) || "P-RET".equalsIgnoreCase(refSer.trim())) if("D-ISS".equalsIgnoreCase(refSer.trim()) || "C-ISS".equalsIgnoreCase(refSer.trim()) || "P-RET".equalsIgnoreCase(refSer.trim()))
{ {
System.out.println("************Enter in manual shiment for inventory item ******************************"); System.out.println("************Enter in manual shiment for inventory item ******************************");
...@@ -660,8 +1610,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -660,8 +1610,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
rs.close();rs = null; rs.close();rs = null;
} }
*/
/*
shipment2 = new Shipment2(); shipment2 = new Shipment2();
recipient = new Address();//To set the Address recipient = new Address();//To set the Address
//Setting Shipment ID //Setting Shipment ID
...@@ -690,8 +1640,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -690,8 +1640,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
pstmt = null; pstmt = null;
rs.close(); rs.close();
rs = null; rs = null;
*/
/*
recipient.setState(stateCodeDlv);//Customer Adress State recipient.setState(stateCodeDlv);//Customer Adress State
Country country = soap.getCountry("ISO3", shipCountry).getResponseCountry(); Country country = soap.getCountry("ISO3", shipCountry).getResponseCountry();
recipient.setCountry(country);//Customer Adress Country recipient.setCountry(country);//Customer Adress Country
...@@ -727,8 +1677,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -727,8 +1677,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
{ {
shipment2.setTerms(EnumTerms.trmSHIPPER); shipment2.setTerms(EnumTerms.trmSHIPPER);
} }
*/
/*
shipment2.setTerms(EnumTerms.trmSHIPPER); shipment2.setTerms(EnumTerms.trmSHIPPER);
//HardCoded valus needs to be change later. //HardCoded valus needs to be change later.
shipment2.setSignatureReleaseFlag(false);//false As per Taro shipment2.setSignatureReleaseFlag(false);//false As per Taro
...@@ -770,8 +1720,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -770,8 +1720,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
/* /*
sqlSize = "SELECT LENGTH , WIDTH , HEIGHT FROM PACKING WHERE PACK_CODE = (SELECT PACK_CODE FROM CARTON_MASTER WHERE CARTON_NO = ? )"; sqlSize = "SELECT LENGTH , WIDTH , HEIGHT FROM PACKING WHERE PACK_CODE = (SELECT PACK_CODE FROM CARTON_MASTER WHERE CARTON_NO = ? )";
pstmt2 = conn.prepareStatement(sqlSize); pstmt2 = conn.prepareStatement(sqlSize);
*/
/*
if("D-ISS".equalsIgnoreCase(refSer.trim())) if("D-ISS".equalsIgnoreCase(refSer.trim()))
{ {
//Changed By Rohan on 12-08-13 for considering carton no and pallet no from shipment content.start //Changed By Rohan on 12-08-13 for considering carton no and pallet no from shipment content.start
...@@ -781,10 +1731,10 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -781,10 +1731,10 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
+" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) " +" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) "
+" AND P.CARTON_NO = ? AND P.PALLET_NO = ? AND D.DIST_ORDER = P.DIST_ORDER AND P.LINE_NO_DIST_ORDER = D.LINE_NO " +" AND P.CARTON_NO = ? AND P.PALLET_NO = ? AND D.DIST_ORDER = P.DIST_ORDER AND P.LINE_NO_DIST_ORDER = D.LINE_NO "
+" AND I.ITEM_CODE = D.ITEM_CODE AND I.ITEM_CODE = L.ITEM_CODE"; +" AND I.ITEM_CODE = D.ITEM_CODE AND I.ITEM_CODE = L.ITEM_CODE";
*/
//Changed By Rohan on 12-08-13 for considering carton no and pallet no from shipment content.start //Changed By Rohan on 12-08-13 for considering carton no and pallet no from shipment content.start
/*
sqlItem = "SELECT I.HARMONIZATION_DESCR,I.HARMONIZATION_NO,I.HAZARDOUS,L.SHIPPER_SIZE,L.GROSS_WEIGHT,I.COUNT_CODE__MFG, " sqlItem = "SELECT I.HARMONIZATION_DESCR,I.HARMONIZATION_NO,I.HAZARDOUS,L.SHIPPER_SIZE,L.GROSS_WEIGHT,I.COUNT_CODE__MFG, "
+" P.ITEM_CODE FROM DISTORD_ISSDET P,ITEM I,ITEM_LOT_PACKSIZE L,SHIPMENT_CONTENT C,SHIP_DOCS S " +" P.ITEM_CODE FROM DISTORD_ISSDET P,ITEM I,ITEM_LOT_PACKSIZE L,SHIPMENT_CONTENT C,SHIP_DOCS S "
+" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) " +" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) "
...@@ -804,9 +1754,9 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -804,9 +1754,9 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
+" WHERE P.CONS_ISSUE IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) " +" WHERE P.CONS_ISSUE IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) "
+ " AND P.CARTON_NO = ? and P.PALLET_NO = ? " + " AND P.CARTON_NO = ? and P.PALLET_NO = ? "
+" AND I.ITEM_CODE = P.ITEM_CODE AND I.ITEM_CODE = L.ITEM_CODE "; +" AND I.ITEM_CODE = P.ITEM_CODE AND I.ITEM_CODE = L.ITEM_CODE ";
*/
//Changed By Rohan on 12-08-13 for considering carton no and pallet no from shipment content.end //Changed By Rohan on 12-08-13 for considering carton no and pallet no from shipment content.end
/*
sqlItem =" SELECT I.HARMONIZATION_DESCR,I.HARMONIZATION_NO,I.HAZARDOUS,L.SHIPPER_SIZE,L.GROSS_WEIGHT,I.COUNT_CODE__MFG, " sqlItem =" SELECT I.HARMONIZATION_DESCR,I.HARMONIZATION_NO,I.HAZARDOUS,L.SHIPPER_SIZE,L.GROSS_WEIGHT,I.COUNT_CODE__MFG, "
+" P.ITEM_CODE FROM CONSUME_ISS_DET P,ITEM I,ITEM_LOT_PACKSIZE L, SHIPMENT_CONTENT C,SHIP_DOCS S " +" P.ITEM_CODE FROM CONSUME_ISS_DET P,ITEM I,ITEM_LOT_PACKSIZE L, SHIPMENT_CONTENT C,SHIP_DOCS S "
+" WHERE P.CONS_ISSUE IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) " +" WHERE P.CONS_ISSUE IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) "
...@@ -822,8 +1772,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -822,8 +1772,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
+" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) " +" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) "
+ " AND P.CARTON_NO = ? and P.PALLET_NO = ? " + " AND P.CARTON_NO = ? and P.PALLET_NO = ? "
+" AND I.ITEM_CODE = P.ITEM_CODE AND I.ITEM_CODE = L.ITEM_CODE "; +" AND I.ITEM_CODE = P.ITEM_CODE AND I.ITEM_CODE = L.ITEM_CODE ";
*/
/*
sqlItem ="SELECT I.HARMONIZATION_DESCR,I.HARMONIZATION_NO,I.HAZARDOUS,L.SHIPPER_SIZE,L.GROSS_WEIGHT,I.COUNT_CODE__MFG, " sqlItem ="SELECT I.HARMONIZATION_DESCR,I.HARMONIZATION_NO,I.HAZARDOUS,L.SHIPPER_SIZE,L.GROSS_WEIGHT,I.COUNT_CODE__MFG, "
+" P.ITEM_CODE FROM PORCPDET P,ITEM I,ITEM_LOT_PACKSIZE L ,SHIPMENT_CONTENT C,SHIP_DOCS S " +" P.ITEM_CODE FROM PORCPDET P,ITEM I,ITEM_LOT_PACKSIZE L ,SHIPMENT_CONTENT C,SHIP_DOCS S "
+" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) AND C.SHIPMENT_ID = S.SHIPMENT_ID" +" WHERE P.TRAN_ID IN(SELECT REF_ID FROM SHIP_DOCS WHERE SHIPMENT_ID = ? ) AND C.SHIPMENT_ID = S.SHIPMENT_ID"
...@@ -990,7 +1940,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -990,7 +1940,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
rs2 = null; rs2 = null;
} }
}//if close for refser }//if close for refser
*/
//Changed by Rohan on 30-07-13 for generating UPS/FEDEX lable in case of inventory manual shipment.end //Changed by Rohan on 30-07-13 for generating UPS/FEDEX lable in case of inventory manual shipment.end
//Changed by Rohan on 30-07-13 for generating UPS/FEDEX lable in case of non inventory manual shipment.start //Changed by Rohan on 30-07-13 for generating UPS/FEDEX lable in case of non inventory manual shipment.start
...@@ -1034,7 +1984,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1034,7 +1984,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
pstmt = null; pstmt = null;
rs.close(); rs.close();
rs = null; rs = null;
/*
if(!"".equalsIgnoreCase(frtList) && frtList.trim().length() > 0) if(!"".equalsIgnoreCase(frtList) && frtList.trim().length() > 0)
{ {
sql = "SELECT FRT_TERM FROM FREIGHT_LIST WHERE FRT_LIST = ? "; sql = "SELECT FRT_TERM FROM FREIGHT_LIST WHERE FRT_LIST = ? ";
...@@ -1049,7 +1999,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1049,7 +1999,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
rs.close();rs = null; rs.close();rs = null;
} }
*/
shipment2 = new Shipment2(); shipment2 = new Shipment2();
recipient = new Address();//To set the Address recipient = new Address();//To set the Address
//Setting Shipment ID //Setting Shipment ID
...@@ -1062,18 +2012,18 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1062,18 +2012,18 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
recipient.setCompany("");//Customer Company Name recipient.setCompany("");//Customer Company Name
//Chnaged by Rohan on 14-07-13 for ship label show address in revers order.start //Chnaged by Rohan on 14-07-13 for ship label show address in revers order.start
/*
recipient.setAddress1(shipAdd1);//Customer Adress1 recipient.setAddress1(shipAdd1);//Customer Adress1
recipient.setAddress2(shipAdd2);//Customer Adress2 recipient.setAddress2(shipAdd2);//Customer Adress2
recipient.setAddress3(shipAdd3);//Customer Adress3 recipient.setAddress3(shipAdd3);//Customer Adress3
*/
//Chnaged by Rohan on 21-08-13 for shipAddrs 3 is blank then set address 2.start //Chnaged by Rohan on 21-08-13 for shipAddrs 3 is blank then set address 2.start
/*
recipient.setAddress1(shipAdd3);//Customer Adress1 recipient.setAddress1(shipAdd3);//Customer Adress1
recipient.setAddress2(shipAdd2);//Customer Adress2 recipient.setAddress2(shipAdd2);//Customer Adress2
recipient.setAddress3(shipAdd1);//Customer Adress3 recipient.setAddress3(shipAdd1);//Customer Adress3
*/
if(!"".equalsIgnoreCase(shipAdd3) && shipAdd3.trim().length() > 0) if(!"".equalsIgnoreCase(shipAdd3) && shipAdd3.trim().length() > 0)
{ {
recipient.setAddress1(shipAdd3);//Customer Adress1 recipient.setAddress1(shipAdd3);//Customer Adress1
...@@ -1136,7 +2086,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1136,7 +2086,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
shipment2.setService(service); shipment2.setService(service);
System.out.println("Service name is :"+shipment2.getService()); System.out.println("Service name is :"+shipment2.getService());
System.out.println("Service code is :"+serviceCode); System.out.println("Service code is :"+serviceCode);
/*
if(!"".equalsIgnoreCase(frtTerm) && frtTerm.trim().length() > 0) if(!"".equalsIgnoreCase(frtTerm) && frtTerm.trim().length() > 0)
{ {
shipment2.setTerms(EnumTerms.fromString(frtTerm)); shipment2.setTerms(EnumTerms.fromString(frtTerm));
...@@ -1146,7 +2096,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1146,7 +2096,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
{ {
shipment2.setTerms(EnumTerms.trmSHIPPER); shipment2.setTerms(EnumTerms.trmSHIPPER);
} }
*/
shipment2.setTerms(EnumTerms.trmSHIPPER); shipment2.setTerms(EnumTerms.trmSHIPPER);
//HardCoded valus needs to be change later. //HardCoded valus needs to be change later.
shipment2.setSignatureReleaseFlag(false);//false As per Taro shipment2.setSignatureReleaseFlag(false);//false As per Taro
...@@ -1442,7 +2392,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1442,7 +2392,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
///update tracking number in pallet number stauas.end ///update tracking number in pallet number stauas.end
///update carton no status in carton no.start ///update carton no status in carton no.start
/*
sql = " UPDATE CARTON_MASTER SET STATUS = 'U' WHERE CARTON_NO IN (SELECT CARTON_NO FROM SHIPMENT_CONTENT WHERE SHIPMENT_ID = ? AND LINE_NO = ? )"; sql = " UPDATE CARTON_MASTER SET STATUS = 'U' WHERE CARTON_NO IN (SELECT CARTON_NO FROM SHIPMENT_CONTENT WHERE SHIPMENT_ID = ? AND LINE_NO = ? )";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId); pstmt.setString(1, tranId);
...@@ -1465,7 +2415,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1465,7 +2415,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
pstmt = null; pstmt = null;
} }
///update carton no status in carton no.end ///update carton no status in carton no.end
*/
String n = pkg2frm.getTrackingNumber(); String n = pkg2frm.getTrackingNumber();
System.out.println("new tracking no of master package :"+n); System.out.println("new tracking no of master package :"+n);
double n1 = pkg2.getWeight(); double n1 = pkg2.getWeight();
...@@ -1589,7 +2539,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1589,7 +2539,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
} }
} }
return errString; return errString;
} }*/
private String getError(String message,String Code,Connection conn) throws ITMException, Exception private String getError(String message,String Code,Connection conn) throws ITMException, Exception
...@@ -1797,7 +2747,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -1797,7 +2747,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
rs.close();rs = null; rs.close();rs = null;
pstmt.close();pstmt = null; pstmt.close();pstmt = null;
sql = " SELECT COUNT(*) AS COUNT FROM SHIP_DOCS WHERE SHIPMENT_ID = ? AND DESP_CONFIRMED = ? "; sql = " SELECT COUNT(*) AS COUNT FROM SHIP_DOCS S,DESPATCH D WHERE " +
" S.SHIPMENT_ID = ? AND D.CONFIRMED = ? AND D.DESP_ID = S.REF_ID ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, shipId); pstmt.setString(1, shipId);
pstmt.setString(2, "Y"); pstmt.setString(2, "Y");
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>1</height>
<color>536870912</color>
</Footer>
<Detail>
<height>180</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>pick_order_from</name>
<dbname>pick_order_from</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>pick_order_to</name>
<dbname>pick_order_to</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>from_date</name>
<dbname>from_date</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>to_date</name>
<dbname>to_date</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>6</border>
<color>0</color>
<x>5</x>
<y>7</y>
<height>63</height>
<width>376</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Pick Order From:</text>
<border>0</border>
<color>33554432</color>
<x>9</x>
<y>26</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order_from_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Pick Order To</text>
<border>0</border>
<color>33554432</color>
<x>215</x>
<y>26</y>
<height>16</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order_to_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>From Date:</text>
<border>0</border>
<color>33554432</color>
<x>9</x>
<y>49</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>108</x>
<y>49</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>To Date:</text>
<border>0</border>
<color>33554432</color>
<x>215</x>
<y>49</y>
<height>16</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>298</x>
<y>49</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>108</x>
<y>26</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order_from</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>upper</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>298</x>
<y>26</y>
<height>16</height>
<width>75</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order_to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>upper</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>23</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>pick_order</name>
<dbname>pick_order</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>sale_order</name>
<dbname>sale_order</dbname>
</table_column>
<table_column>
<type size="12">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_id</name>
<dbname>wave_id</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>ptcn</name>
<dbname>ptcn</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>assign_to</name>
<dbname>assign_to</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>status</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Pick Order</text>
<border>6</border>
<color>0</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>114</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Sale Order</text>
<border>6</border>
<color>0</color>
<x>118</x>
<y>2</y>
<height>16</height>
<width>130</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Wave Id</text>
<border>6</border>
<color>0</color>
<x>250</x>
<y>2</y>
<height>16</height>
<width>154</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_id_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Ptcn</text>
<border>6</border>
<color>0</color>
<x>406</x>
<y>2</y>
<height>16</height>
<width>152</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Assign To</text>
<border>6</border>
<color>0</color>
<x>560</x>
<y>2</y>
<height>16</height>
<width>210</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>assign_to_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Status</text>
<border>6</border>
<color>0</color>
<x>772</x>
<y>2</y>
<height>16</height>
<width>355</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>19</height>
<width>114</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>118</x>
<y>2</y>
<height>19</height>
<width>130</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>250</x>
<y>2</y>
<height>19</height>
<width>154</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>406</x>
<y>2</y>
<height>19</height>
<width>152</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>560</x>
<y>2</y>
<height>19</height>
<width>210</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>assign_to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>772</x>
<y>2</y>
<height>19</height>
<width>355</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
...@@ -42987,3 +42987,1186 @@ INSERT INTO messages ( ...@@ -42987,3 +42987,1186 @@ INSERT INTO messages (
'Base ', 'Base ',
NULL, NULL,
NULL); NULL);
///Shankara 05/sep/13
ALTER TABLE PICK_ORD_HDR ADD ASSIGN_TO CHAR(10);
INSERT INTO itm2menu (
application ,
level_1 ,
level_2 ,
level_3 ,
level_4 ,
level_5 ,
win_name ,
descr ,
comments ,
menu_path ,
icon_path ,
close_icon ,
open_icon ,
obj_type ,
chg_date ,
chg_term ,
chg_user ,
mob_deploy )
VALUES (
'WMS',
2,
54,
0,
0,
0,
'w_pick_assignto',
'Unconfirmed Pick Order',
'PickOrdHdr',
'WMS.2.54.0.0.0',
'e12_logo.gif',
NULL,
NULL,
'P',
fn_sysdate(),
'Base ',
'Base ',
NULL);
INSERT INTO transetup (
tran_window,
save_flag,
val_flag,
key_flag,
key_string,
udf_1,
udf_2,
udf_3,
udf_4,
udf_5,
repeate_add,
chg_date,
chg_user,
chg_term,
edi_option,
site_acc_col,
confirm_col,
confirm_val,
repeat_add_det,
repeatadddet,
load_mode,
auto_confirm,
ledg_post_conf,
chg_date_on_conf,
tran_id_col,
mail_option,
confirm_mode,
garbage_opt,
val_flag_edi,
verify_password,
cust_acc_col,
sales_pers_acc_col,
supp_acc_col,
item_ser_acc_code,
emp_acc_col,
item_ser_acc_col,
workflow_opt,
table_name,
application,
table_desc,
tran_date_col,
tran_id__from,
tran_id__to,
table_name_det1,
table_name_det2,
table_name_det3,
multitire_opt,
ref_ser,
view_mode,
tax_forms,
sign_status,
user_tran_window,
custom_preview_obj,
ignoreerrlist_onload,
childdata_argopt,
edit_tmplt,
wrkflw_init,
edittax,
formal_args,
audit_trail_opt,
edit_opt,
cache_opt,
optimize_mode,
edit_expr,
rate_col,
qty_col,
edit_expr_inp,
rcp_cache_status,
print_control,
transfer_mode,
profile_id__res,
tran_compl_msg,
period_option,
wrkflw_priority,
exec_type,
disp_meta_data,
allow_attach,
start_form,
isattachment)
VALUES (
'w_pick_assignto',
'2',
'2',
'M',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'N',
fn_sysdate(),
'Base ',
'Base ',
'0',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'0',
'0',
'N',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'DIS',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'P-HDR',
'F',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
INSERT INTO obj_forms(
win_name ,
title ,
obj_brow_name ,
obj_edit_name ,
cross_update_expr ,
expr_fld_info ,
target_fld_info ,
expr_comment ,
form_no ,
scr_flag ,
auto_accept_scan ,
scan_flag ,
scan_metadata ,
property_info ,
scan_delimiter ,
column_on_save ,
after_save ,
ext_setup ,
ext_metadata ,
ext_com ,
auto_accept_weighdata ,
form_type ,
disp_metadata ,
parent_key_col ,
qty_col ,
rate_col ,
assisted_mode ,
storage_key_metadata )
VALUES (
'w_pick_assignto',
'Pick Order',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'1',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
INSERT INTO obj_forms(
win_name ,
title ,
obj_brow_name ,
obj_edit_name ,
cross_update_expr ,
expr_fld_info ,
target_fld_info ,
expr_comment ,
form_no ,
scr_flag ,
auto_accept_scan ,
scan_flag ,
scan_metadata ,
property_info ,
scan_delimiter ,
column_on_save ,
after_save ,
ext_setup ,
ext_metadata ,
ext_com ,
auto_accept_weighdata ,
form_type ,
disp_metadata ,
parent_key_col ,
qty_col ,
rate_col ,
assisted_mode ,
storage_key_metadata )
VALUES (
'w_pick_assignto',
'Pick Order',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'2',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
INSERT INTO obj_actions (
obj_name ,
line_no ,
image ,
description ,
service_code ,
interactive ,
rights_char ,
title ,
form_no ,
service_handler ,
placement ,
action_type ,
tran_type ,
chg_date ,
chg_term ,
chg_user )
VALUES (
'pick_assignto',
1,
NULL,
'GetData',
'get_data',
'a',
'R',
'GetData',
'1',
'3',
NULL,
'U',
NULL,
fn_sysdate(),
'BASE ',
'BASE ');
INSERT INTO obj_actions (
obj_name ,
line_no ,
image ,
description ,
service_code ,
interactive ,
rights_char ,
title ,
form_no ,
service_handler ,
placement ,
action_type ,
tran_type ,
chg_date ,
chg_term ,
chg_user )
VALUES (
'pick_assignto',
2,
NULL,
'Process',
'process',
'a',
'R',
'Process',
'1',
'3',
NULL,
'U',
NULL,
fn_sysdate(),
'BASE ',
'BASE ');
INSERT INTO system_events (
obj_name,
event_code,
event_context,
service_code,
method_rule,
overwrite_core,
chg_date,
chg_user,
chg_term,
result_handle,
comp_type,
comp_name,
comm_format)
VALUES (
'pick_assignto',
'get_data',
'1',
'pick_get_data',
NULL,
'0',
fn_sysdate(),
'Base ',
'Base',
'2',
'EJB',
'PickOrderPrc',
NULL);
INSERT INTO system_events (
obj_name,
event_code,
event_context,
service_code,
method_rule,
overwrite_core,
chg_date,
chg_user,
chg_term,
result_handle,
comp_type,
comp_name,
comm_format)
VALUES (
'pick_assignto',
'process',
'1',
'pick_process',
NULL,
'0',
fn_sysdate(),
'Base ',
'Base',
'2',
'EJB',
'PickOrderPrc',
NULL);
INSERT INTO system_event_services (
service_code ,
service_descr ,
service_uri ,
service_provider ,
method_name ,
return_value ,
return_type ,
return_descr ,
return_xfrm ,
chg_date ,
chg_user ,
chg_term )
VALUES (
'pick_get_data',
'GetData',
'http://localhost/axis/services/ProcessService',
'BASE',
'getData',
'String',
'S',
NULL,
NULL,
fn_sysdate(),
'BASE ',
'BASE');
INSERT INTO system_event_services (
service_code ,
service_descr ,
service_uri ,
service_provider ,
method_name ,
return_value ,
return_type ,
return_descr ,
return_xfrm ,
chg_date ,
chg_user ,
chg_term )
VALUES (
'pick_process',
'process',
'http://localhost/axis/services/ProcessService',
'BASE',
'process',
'String',
'S',
NULL,
NULL,
fn_sysdate(),
'BASE ',
'BASE');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_get_data',
1,
'COMPONENT_TYPE',
'I',
NULL,
'S',
NULL,
fn_sysdate(),
'Base',
'Base',
'EJB');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_get_data',
2,
'COMPONENT_NAME',
'I',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
'PickOrderPrc');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_get_data',
3,
'XML_DATA',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_get_data',
4,
'XML_DATA_1',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_get_data',
5,
'WINNAME',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_get_data',
6,
'XTRA_PARAMS',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_process',
1,
'COMPONENT_TYPE',
'I',
NULL,
'C.String',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
'EJB');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_process',
2,
'COMPONENT_NAME',
'I',
NULL,
'C.String',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
'PickOrderPrc');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_process',
3,
'XML_DATA_1',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_process',
4,
'XML_DATA__ALL',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_process',
5,
'OBJ_CONTEXT',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
descr ,
arg_type ,
arg_xfrm ,
chg_date ,
chg_user ,
chg_term ,
arg_value )
VALUES (
'pick_process',
6,
'XTRA_PARAMS',
'l',
NULL,
'S',
NULL,
fn_sysdate(),
'BASE ',
'BASE',
NULL);
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VPFROMBTBK',
'From Date Blank',
'From Date Should not be Blank',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base ',
'Base ',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VPTODADTBK',
'To Date Blank',
'To Date Should not be Blank',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base ',
'Base ',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VPINVLDATA',
'No Data Found',
'No Data Found For Given Arguments',
'E',
'0',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base ',
'Base ',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VPINVLDATE',
'Invalid Date',
'Please specify the Proper Date',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base ',
'Base ',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VPPRCESFUL',
'PROCESS OVER!',
'Process Successful, Selected Row Updated Sucessfully',
'P',
NULL,
NULL,
NULL,
NULL,
fn_sysdate(),
'Base ',
'Base ',
NULL,
NULL);
INSERT INTO messages(
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VPINVUSRCD',
'Invalid User Code',
'Invalid User Code, Entered User Code does not exist in the Users Table',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base ',
'Base ',
NULL,
NULL);
commit;
-----------------------system table entry for item change----------------
INSERT INTO system_events (
obj_name ,
event_code ,
event_context,
service_code ,
chg_date ,
chg_user ,
chg_term ,
result_handle ,
overwrite_core ,
comp_type ,
comp_name )
VALUES (
'pick_assignto',
'post_item_change',
'1',
'poic_pick_assign',
fn_sysdate(),
'Base',
'Base',
'2',
'0',
'EJB',
'PickAssignIC');
INSERT INTO system_event_services (
service_code ,
service_descr ,
service_uri ,
service_provider ,
method_name ,
return_value ,
return_type ,
chg_date ,
chg_user ,
chg_term)
VALUES (
'poic_pick_assign',
'post item change',
'http://localhost:9090/axis/services/ValidatorService',
'BASE',
'itemChanged',
'String',
'S',
fn_sysdate(),
'Base',
'Base');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term ,
arg_value )
VALUES (
'poic_pick_assign',
1,
'COMPONENT_TYPE',
'I',
'S',
fn_sysdate(),
'Base',
'Base',
'EJB');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term ,
arg_value )
VALUES (
'poic_pick_assign',
2,
'COMPONENT_NAME',
'I',
'S',
fn_sysdate(),
'Base',
'Base',
'PickAssignIC');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term )
VALUES (
'poic_pick_assign',
3,
'XML_DATA',
'I',
'S',
fn_sysdate(),
'Base ',
'Base');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term )
VALUES (
'poic_pick_assign',
4,
'XML_DATA_1',
'I',
'S',
fn_sysdate(),
'Base',
'Base');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term )
VALUES (
'poic_pick_assign',
5,
'XML_DATA_ALL',
'I',
'S',
fn_sysdate(),
'Base',
'Base');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term )
VALUES (
'poic_pick_assign',
6,
'OBJ_CONTEXT',
'I',
'S',
fn_sysdate(),
'Base',
'Base');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term )
VALUES (
'poic_pick_assign',
7,
'FOCUSED_COLUMN',
'I',
'S',
fn_sysdate(),
'Base',
'Base');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term )
VALUES (
'poic_pick_assign',
8,
'EDIT_FLAG',
'I',
'S',
fn_sysdate(),
'Base',
'Base');
INSERT INTO system_service_args (
service_code ,
line_no ,
arg_name ,
arg_mode ,
arg_type ,
chg_date ,
chg_user,
chg_term )
VALUES(
'poic_pick_assign',
9,
'XTRA_PARAMS',
'I',
'S',
fn_sysdate(),
'Base',
'Base');
INSERT INTO obj_itemchange(
obj_name ,
form_no ,
field_name ,
mandatory )
VALUES (
'pick_assignto',
'1 ',
'pick_order_to',
NULL);
commit;
\ No newline at end of file
$PBExportHeader$d_pick_assignto11.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=1 color="536870912" )
detail(height=180 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=pick_order_from dbname="pick_order_from" )
column=(type=char(10) updatewhereclause=no name=pick_order_to dbname="pick_order_to" )
column=(type=date updatewhereclause=no name=from_date dbname="from_date" )
column=(type=date updatewhereclause=no name=to_date dbname="to_date" )
)
groupbox(band=detail text="Basic"border="6" color="0" x="5" y="7" height="63" width="376" name=gb_1 visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Pick Order From:" border="0" color="33554432" x="9" y="26" height="16" width="95" html.valueishtml="0" name=pick_order_from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Pick Order To" border="0" color="33554432" x="215" y="26" height="16" width="79" html.valueishtml="0" name=pick_order_to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="From Date:" border="0" color="33554432" x="9" y="49" height="16" width="95" html.valueishtml="0" name=from_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=10 border="5" color="33554432" x="108" y="49" height="16" width="76" format="[general]" html.valueishtml="0" name=from_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="To Date:" border="0" color="33554432" x="215" y="49" height="16" width="79" html.valueishtml="0" name=to_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=20 border="5" color="33554432" x="298" y="49" height="16" width="76" format="[general]" html.valueishtml="0" name=to_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=30 border="5" color="33554432" x="108" y="26" height="16" width="76" format="[general]" html.valueishtml="0" name=pick_order_from visible="1" edit.limit=0 edit.case=upper edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=2 alignment="0" tabsequence=40 border="5" color="33554432" x="298" y="26" height="16" width="75" format="[general]" html.valueishtml="0" name=pick_order_to visible="1" edit.limit=0 edit.case=upper edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_pick_assignto12.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=pick_order dbname="pick_order" )
column=(type=char(10) updatewhereclause=yes name=sale_order dbname="sale_order" )
column=(type=char(12) updatewhereclause=yes name=wave_id dbname="wave_id" )
column=(type=char(10) updatewhereclause=yes name=ptcn dbname="ptcn" )
column=(type=char(10) updatewhereclause=yes name=assign_to dbname="assign_to" )
column=(type=char(1) updatewhereclause=yes name=status dbname="status" )
)
text(band=header alignment="0" text="Pick Order" border="6" color="0" x="2" y="2" height="16" width="114" html.valueishtml="0" name=pick_order_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Sale Order" border="6" color="0" x="118" y="2" height="16" width="130" html.valueishtml="0" name=sale_order_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Wave Id" border="6" color="0" x="250" y="2" height="16" width="154" html.valueishtml="0" name=wave_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Ptcn" border="6" color="0" x="406" y="2" height="16" width="152" html.valueishtml="0" name=ptcn_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Assign To" border="6" color="0" x="560" y="2" height="16" width="210" html.valueishtml="0" name=assign_to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Status" border="6" color="0" x="772" y="2" height="16" width="355" html.valueishtml="0" name=status_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="2" y="2" height="19" width="114" format="[general]" html.valueishtml="0" name=pick_order visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="118" y="2" height="19" width="130" format="[general]" html.valueishtml="0" name=sale_order visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="250" y="2" height="19" width="154" format="[general]" html.valueishtml="0" name=wave_id visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="33554432" x="406" y="2" height="19" width="152" format="[general]" html.valueishtml="0" name=ptcn visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=10 border="5" color="33554432" x="560" y="2" height="19" width="210" format="[general]" html.valueishtml="0" name=assign_to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="33554432" x="772" y="2" height="19" width="355" format="[general]" html.valueishtml="0" name=status visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ 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