Commit 0af1d18a authored by smestry's avatar smestry

W15FSUN008, Create transaction screen Palletization and palletization Confirm for AWMS.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98779 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d25fafc7
/**
* PURPOSE : PalletizationConf component
* AUTHOR : Sneha Mestry
* DATE : 12-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import ibase.webitm.utility.wms.CommonWmsUtil;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import org.w3c.dom.*;
@javax.ejb.Stateless
public class PalletizationConf extends ValidatorEJB implements PalletizationConfLocal, PalletizationConfRemote
{
public String postSave()throws RemoteException,ITMException
{
return "";
}
public String postSave( String domString, String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException
{
String errString = "", siteCode = "";
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = "" ;
int ctr = 0, childNodeListLength = 0, cnt = 0;
boolean isError = false;
String userId = "", errorType = "", errCode = "";
ArrayList <String> errList = new ArrayList<String>();
ArrayList <String> errFields = new ArrayList <String> ();
ArrayList<String> tranIdList = new ArrayList<String>();
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
try
{
System.out.println("::::::::::::::::: Inside postSave for palletization confirm :::::::::::::::: ");
System.out.println("::::::::::::::::: Inside if loop for connection :::::::::::::::: ");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
//CommonWmsUtil commonWmsUtility = CommonWmsUtil.getInstance();
GenericUtility genericUtility = GenericUtility.getInstance();
Document dom = null;
dom = genericUtility.parseString(domString);
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
System.out.println("siteCode ::::::::::::: " + siteCode);
System.out.println("userId ::::::::::::: " + userId);
System.out.println("domString ::::::::::::: " + domString);
System.out.println("xtraParams ::::::::::::: " + xtraParams);
System.out.println("tranId----------->>["+tranId+"]");
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
System.out.println("childNodeListLength----------->>["+childNodeListLength+"]");
tranIdList = getTranId(conn, siteCode);
for (ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName ------->>["+childNodeName+"]");
if("tran_id".equalsIgnoreCase(childNodeName))
{
System.out.println("Inside tran_id ::::::::::: ");
if(tranId.length() <= 0)
{
System.out.println("Tran Id found blank :::::::::: ");
errCode = "VTTRANIDNL";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
else if(!tranIdList.contains(tranId) && tranId.length() > 0)
{
System.out.println("Tran Id does not exist in pallet hdr :::::::::: ");
errCode = "VTSTRTRIDA";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
if(tranIdList.contains(tranId))
{
System.out.println("Calling confirm :::::::::::::::::::: ");
confirm(tranId, siteCode, conn);
}
}
}
int errListSize = errList.size();
cnt =0;
String errFldName = null;
if ( errList != null && errListSize > 0 )
{
for (cnt = 0; cnt < errListSize; cnt++ )
{
errCode = errList.get(cnt);
errFldName = errFields.get(cnt);
System.out.println("errCode .........." + errCode);
errString = getErrorString( errFldName, errCode, userId );
errorType = errorType( conn, errCode );
if ( errString.length() > 0)
{
String bifurErrString = errString.substring( errString.indexOf("<Errors>") + 8, errString.indexOf("<trace>"));
bifurErrString =bifurErrString+errString.substring( errString.indexOf("</trace>") + 8, errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
System.out.println("errStringXml .........."+errStringXml);
errString = "";
}
if ( errorType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors></Root>\r\n");
}
else
{
errStringXml = new StringBuffer( "" );
}
errString = errStringXml.toString();
}
catch(Exception e)
{
try
{
System.out.println("Exception "+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
catch (Exception e1)
{
e1.printStackTrace();
throw new ITMException(e1);
}
}
finally
{
try
{
if( !isError )
{
System.out.println("commmit");
conn.commit();
}
else if ( isError )
{
System.out.println("rollback");
conn.rollback();
}
if (conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
return errString;
}
private String checkNull( String input )
{
if ( input == null )
{
input = "";
}
return input.trim();
}
private String checkNullAndTrim( String inputVal )
{
if ( inputVal == null )
{
inputVal = "";
}
else
{
inputVal = inputVal.trim();
}
return inputVal;
}
private String errorType( Connection conn , String errorCode )
{
String msgType = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
try
{
String sql = " SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString(1, errorCode);
rs = pstmt.executeQuery();
while( rs.next() )
{
msgType = rs.getString("MSG_TYPE");
}
}
catch (Exception ex)
{
ex.printStackTrace();
}
finally
{
try
{
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
catch ( Exception e )
{
e.printStackTrace();
}
}
return msgType;
}
private ArrayList<String> getTranId(Connection conn, String siteCode) throws Exception
{
ArrayList<String> colVal = new ArrayList<String>();
PreparedStatement pstmt = null ;
ResultSet rs = null ;
String sql = "";
try
{
sql = "SELECT TRAN_ID FROM PALLET_HDR WHERE CONFIRMED = 'N' AND SITE_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
rs = pstmt.executeQuery();
while(rs.next())
{
colVal.add(checkNull(rs.getString("TRAN_ID")));
}
rs.close();rs = null;
pstmt.close();pstmt = null;
}
catch(Exception e)
{
System.out.println("Exception in locCode " + e);
e.printStackTrace();
throw new Exception(e);
}
finally
{
if(rs!=null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
}
System.out.println("Return List from getTranId ------>>" + colVal);
return colVal;
}
private String generateTranTd( String windowName, String tranDate, String siteCode, Connection conn )throws ITMException, SQLException
{
System.out.println("inside generateTranTd@@.........");
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "";
String tranId = "";
String tranSer1 = "",keyString = "",keyCol = "";
CommonConstants commonConstants = new CommonConstants();
try
{
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE TRAN_WINDOW = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, windowName);
rs = pstmt.executeQuery();
System.out.println("keyString :"+sql);
if (rs.next())
{
keyString = rs.getString(1);
keyCol = rs.getString(2);
tranSer1 = rs.getString(3);
}
else
{
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE TRAN_WINDOW = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "GENERAL");
rs = pstmt.executeQuery();
System.out.println("keyString :"+sql);
if (rs.next())
{
keyString = rs.getString(1);
keyCol = rs.getString(2);
tranSer1 = rs.getString(3);
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("keyString :"+keyString);
System.out.println("keyCol :"+keyCol);
System.out.println("tranSer1 :"+tranSer1);
String xmlValues = "";
xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
xmlValues = xmlValues + "<Header></Header>";
xmlValues = xmlValues + "<Detail1>";
xmlValues = xmlValues + "<tran_id></tran_id>";
xmlValues = xmlValues + "<site_code>" + siteCode + "</site_code>";
xmlValues = xmlValues + "<tran_date>"+ tranDate + "</tran_date>";
xmlValues = xmlValues + "<tran_type>"+"U"+"</tran_type>";
xmlValues = xmlValues + "</Detail1></Root>";
System.out.println("xmlValues :["+xmlValues+"]");
TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", commonConstants.DB_NAME);
tranId = tg.generateTranSeqID(tranSer1, keyCol, keyString, conn);
System.out.println("tranId ::"+tranId);
}
catch (SQLException ex)
{
System.out.println("Exception ::" +sql+ ex.getMessage() + ":");
ex.printStackTrace();
throw new ITMException(ex);
}
catch (Exception e)
{
System.out.println("Exception ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
if(rs!=null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
}
return tranId;
}
private void confirm( String tranId, String siteCode, Connection conn ) throws ITMException, SQLException
{
String errString = "", sql = "", interfaceTranId = "", tranDate = "", objName = "", invStat = "", available = "";
double quantity = 0, holdQuantity = 0;
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null, pstmt3 = null;
ResultSet rs = null, rs1 = null, rs2 = null, rs3 = null;
DistCommon distComm = new DistCommon();
String nexpLoc = "", lockCode = "", expLoc = "";
ArrayList interfaceArrList = new ArrayList();
try
{
System.out.println("::::::::::::::::: Inside confirm :::::::::::::::: ");
System.out.println("tranId :::::::::::::::: " + tranId);
System.out.println("siteCode :::::::::::::::: " + siteCode);
if(conn == null)
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
}
CommonWmsUtil commonWmsUtility = CommonWmsUtil.getInstance();
GenericUtility genericUtility = GenericUtility.getInstance();
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat simpleDateFormatObj = new SimpleDateFormat(genericUtility.getApplDateFormat());
tranDate = simpleDateFormatObj.format(currentDate.getTime());
System.out.println("tranDate ::::::::::::: " + tranDate);
sql = "update pallet_hdr set confirmed = ?, conf_date = ? where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "Y");
pstmt.setTimestamp(2, new Timestamp(System.currentTimeMillis()));
pstmt.setString(3, tranId);
pstmt.executeUpdate();
System.out.println("Confirmed the transaction in pallet_hdr table for tran_id ::::::::: " + tranId);
pstmt.close();
pstmt = null;
sql = "select det.item_code as ITEM_CODE, det.lot_no as LOT_NO, det.lot_sl as LOT_SL, det.quantity as QTY, hdr.pallet_no as PALLET_NO, "
+ "hdr.inv_stat as INV_STAT, det.site_code as SITE_CODE, det.loc_code as LOC_CODE, hdr.tran_date as TRAN_DATE "
+ "from pallet_hdr hdr, pallet_det det where hdr.tran_id = det.tran_id and det.tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while(rs.next())
{
sql = "select hold_qty from stock where quantity > 0 and site_code = ? and loc_code = ? and "
+ "item_code = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, rs.getString("SITE_CODE"));
pstmt1.setString(2, rs.getString("LOC_CODE"));
pstmt1.setString(3, rs.getString("ITEM_CODE"));
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
holdQuantity = rs1.getDouble("HOLD_QTY");
}
System.out.println("holdQuantity ::::::::::::: " + holdQuantity);
pstmt1.close();
pstmt1 = null;
rs1.close();
rs1 = null;
if(holdQuantity > 0)
{
System.out.println("inside hold quantity greater than zero :::::::::::::::::: ");
nexpLoc = distComm.getDisparams("999999","NEAR_EXP_LOCK",conn);
expLoc = distComm.getDisparams("999999","EXP_LOCK",conn);
System.out.println("nexpLoc :::::::::::::::::: " + nexpLoc);
System.out.println("expLoc :::::::::::::::::: " + expLoc);
sql = "select i.lock_code from inv_hold i, inv_hold_det d where i.tran_id = d.tran_id and i.site_code = d.site_code and "
+ "d.item_code = ? and d.site_code = ? and d.loc_code = ? and d.lot_no = ? and d.lot_sl = ? and d.hold_status = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, rs.getString("ITEM_CODE"));
pstmt1.setString(2, rs.getString("SITE_CODE"));
pstmt1.setString(3, rs.getString("LOC_CODE"));
pstmt1.setString(4, rs.getString("LOT_NO"));
pstmt1.setString(5, rs.getString("LOT_SL"));
pstmt1.setString(6, "H");
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
lockCode = checkNullAndTrim(rs1.getString("lock_code"));
}
System.out.println("lockCode ::::::::::::: " + lockCode);
pstmt1.close();
pstmt1 = null;
rs1.close();
rs1 = null;
if(lockCode.equalsIgnoreCase(nexpLoc))
{
invStat = "N";
System.out.println("invStat in 1st if::::::::::::: " + invStat);
}
else if(lockCode.equalsIgnoreCase(expLoc))
{
invStat = "E";
System.out.println("invStat in 2nd if::::::::::::: " + invStat);
}
else
{
invStat = "H";
System.out.println("invStat in 3rd if::::::::::::: " + invStat);
}
}
System.out.println("invStat final ::::::::::::: " + invStat);
/*sql = "select available from invstat where inv_stat = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, rs.getString("INV_STAT"));
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
available = checkNullAndTrim(rs1.getString("available"));
}
System.out.println("available ::::::::::::: " + available);
pstmt1.close();
pstmt1 = null;
rs1.close();
rs1 = null;*/
/*
sql = "select sum(quantity) as QTY, sum(hold_qty) as HOLD_QTY from stock where quantity > 0 and site_code = ? and loc_code = ? and "
+ "item_code = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, rs.getString("SITE_CODE"));
pstmt1.setString(2, rs.getString("LOC_CODE"));
pstmt1.setString(3, rs.getString("ITEM_CODE"));
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
quantity = rs1.getDouble("QTY");
holdQuantity = rs1.getDouble("HOLD_QTY");
}
System.out.println("quantity ::::::::::::: " + quantity);
System.out.println("holdQuantity ::::::::::::: " + holdQuantity);
pstmt1.close();
pstmt1 = null;
rs1.close();
rs1 = null;*/
/*
if("Y".equalsIgnoreCase(available) && quantity == holdQuantity)
{
System.out.println("invStat in 1st if ::::::::::::: " + invStat);
invStat = "H";
}
else if("Y".equalsIgnoreCase(available))
{
System.out.println("invStat in 2nd if::::::::::::: " + invStat);
invStat = "A";
}
else if(quantity == holdQuantity)
{
System.out.println("invStat in 3rd if ::::::::::::: " + invStat);
invStat = "H";
}*/
interfaceTranId = generateTranTd("w_interface2", tranDate, siteCode, conn);
System.out.println("interface2TranId ::::::::::::: " + interfaceTranId);
HashMap hm = new HashMap();
hm.put("IN_OUT", "I");
hm.put("ERR_COD", "");
hm.put("MSG_STAT", "N");
hm.put("TRANS_DT_ACK", checkNullAndTrim(String.valueOf(rs.getString("TRAN_DATE"))));
hm.put("TRAN_ID", interfaceTranId);
hm.put("ITEM_CODE", rs.getString("ITEM_CODE"));
hm.put("DESCR", "");
hm.put("UNIT", "");
hm.put("ITEM_TYPE", "");
hm.put("FAMILY_GRP", "");
hm.put("REF_SER", "PZ");
hm.put("LOT_NO", rs.getString("LOT_NO"));
hm.put("REF_ID", tranId);
hm.put("LOT_SL", rs.getString("LOT_SL"));
hm.put("QUANTITY", rs.getString("QTY"));
hm.put("EXP_DATE", "");
hm.put("MFG_DATE", "");
hm.put("PALLET_NO", rs.getString("PALLET_NO"));
hm.put("PALLET_STATUS", "");
hm.put("LOCK_STAT", invStat);
hm.put("QC_TYPE", "");
hm.put("STRO_PREF", "");
hm.put("PALLET_REJ", "");
hm.put("QC_TYPE", "");
hm.put("PALLET_REJ_DESC", "");
hm.put("REF_LINE_NO", "");
interfaceArrList.add(hm);
}
commonWmsUtility.updateAwmsInterface(interfaceArrList, conn);
System.out.println("Inserted into interface2 table ::::::::::::: ");
pstmt.close();
pstmt = null;
rs.close();
rs = null;
}
catch (SQLException ex)
{
System.out.println("Exception ::" +sql+ ex.getMessage() + ":");
ex.printStackTrace();
throw new ITMException(ex);
}
catch (Exception e)
{
System.out.println("Exception ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
if(rs!=null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
}
}
}
/**
* PURPOSE : Local Interface for PalletizationConf component
* AUTHOR : Sneha Mestry
* DATE : 12-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
@javax.ejb.Local
public interface PalletizationConfLocal extends ValidatorLocal
{
public String postSave()throws RemoteException,ITMException;
public String postSave( String domString, String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
}
\ No newline at end of file
/**
* PURPOSE : Remote Interface for PalletizationConf component
* AUTHOR : Sneha Mestry
* DATE : 12-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
@javax.ejb.Remote
public interface PalletizationConfRemote extends ValidatorRemote
{
public String postSave()throws RemoteException,ITMException;
public String postSave( String domString, String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
}
/**
* PURPOSE : PalletizationIC component
* AUTHOR : Sneha Mestry
* DATE : 02-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.system.config.*;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.wms.CommonWmsUtil;
import java.rmi.RemoteException;
import java.sql.*;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.*;
import org.w3c.dom.*;
@javax.ejb.Stateless
public class PalletizationIC extends ValidatorEJB implements PalletizationICLocal, PalletizationICRemote
{
/**
* The method is defined without any parameter and returns blank string
*/
@Override
public String wfValData() throws RemoteException, ITMException
{
return "";
}
/**
* The public method is used for converting the current form data into a document(DOM)
* The dom is then given as argument to the overloaded function wfValData to perform validation
* Returns validation string if exists else returns null in XML format
* @param xmlString contains the current form data in XML format
* @param xmlString1 contains all the header information in the XML format
* @param xmlString2 contains the data of all the forms in XML format
* @param objContext represents the form number
* @param editFlag represents the mode of transaction(A-Add or E-Edit)
* @param xtraParams contains additional information such as loginEmpCode,loginCode,chgTerm etc
*/
@Override
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
System.out.println( "xmlString ::" + xmlString);
System.out.println( "xmlString1 ::" + xmlString1);
System.out.println( "xmlString2 ::" + xmlString2);
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 = wfValData( dom, dom1, dom2, objContext, xtraParams);
System.out.println( "ErrString: " + errString);
}
catch(Exception e)
{
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
return (errString);
}
/**
* The public overloaded method takes a document as input and is used for the validation of required fields
* Returns validation string if exist otherwise returns null in XML format
* @param currFormDataDom contains the current form data as a document object model
* @param hdrDataDom contains all the header information
* @param allFormDataDom contains the field data of all the forms
* @param objContext represents form number
* @param editFlag represents the mode of transaction(A-Add or E-Edit)
* @param xtraParams contains additional information such as loginEmpCode,loginCode,chgTerm etc
*/
@Override
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String xtraParams) throws RemoteException, ITMException
{
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
Connection conn = null;
GenericUtility genericUtility;
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
String loginSite = "", userId = "", childNodeName = "", errorType = "", errCode = "", errString = "";
int currentFormNo = 0, childNodeListLength = 0, cnt = 0, ctr = 0;
ArrayList <String> errList = new ArrayList<String>();
ArrayList <String> errFields = new ArrayList <String> ();
try
{
genericUtility = GenericUtility.getInstance();
System.out.println("xtraParam----->>["+xtraParams+"]");
System.out.println("DOM---->>["+genericUtility.serializeDom(dom).toString()+"]");
System.out.println("DOM1----->>["+genericUtility.serializeDom(dom1).toString()+"]");
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
switch ( currentFormNo )
{
case 1:
System.out.println("------in detail1 validation----------------");
System.out.println("DOM---->>["+genericUtility.serializeDom(dom).toString()+"]");
System.out.println("DOM1----->>["+genericUtility.serializeDom(dom1).toString()+"]");
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
String locationCode ="", palletNo = "", palletNoSource = "";
ArrayList<String> locStockList = new ArrayList<String>();
ArrayList<String> locList = new ArrayList<String>();
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
locationCode = checkNullAndTrim(genericUtility.getColumnValue("loc_code",dom));
palletNoSource = checkNullAndTrim(genericUtility.getColumnValue("pallet_no__source",dom));
palletNo = checkNullAndTrim(genericUtility.getColumnValue("pallet_no",dom));
System.out.println("locationCode ------->>["+locationCode+"]");
System.out.println("palletNoSource ------->>["+palletNoSource+"]");
System.out.println("palletNo ------->>["+palletNo+"]");
locStockList = getLocationCode(conn, loginSite);
locList = getLocation(conn, loginSite);
for (ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName ------->>["+childNodeName+"]");
if("loc_code".equalsIgnoreCase(childNodeName))
{
System.out.println("Inside loc_code ::::::::::: ");
if(!locStockList.contains(locationCode) && locationCode.length() > 0)
{
System.out.println("Location Code does not exist in stock table :::::::::: ");
errCode = "INVLOCCODE";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
}
if("pallet_no__source".equalsIgnoreCase(childNodeName))
{
System.out.println("Inside pallet_no__source ::::::::::: ");
if(locationCode.length() <= 0 && palletNoSource.length() <= 0)
{
System.out.println("Blank for Location Code and pallet No Source :::::::::: ");
errCode = "VTINVLPNo";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
else if(locationCode.length() > 0 && palletNoSource.length() > 0)
{
System.out.println(" value found for Location Code and pallet No Source :::::::::: ");
errCode = "VTINVLPNo";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
else if(!locStockList.contains(palletNoSource) && palletNoSource.length() > 0)
{
System.out.println("Pallet No Source does not exist in stock table :::::::::: ");
errCode = "INVPALTSRC";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
}
if("pallet_no".equalsIgnoreCase(childNodeName))
{
if(palletNo.length() <= 0)
{
System.out.println("Empty Pallet No :::::::::: ");
errCode = "VTNLPALLET";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
else if(!locList.contains(palletNo) && palletNo.length() > 0)
{
System.out.println("Invalid Pallet No :::::::::: ");
errCode = "INVPALTNO";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
if(locationCode.equals(palletNo) || palletNoSource.equals(palletNo))
{
System.out.println("Location Code or Pallet No Source and Pallet No is same :::::::::: ");
errCode = "VTLOCPLT";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
}
}
break;
case 2:
System.out.println("------in detail2 validation----------------");
System.out.println("DOM---->>["+genericUtility.serializeDom(dom).toString()+"]");
System.out.println("DOM1----->>["+genericUtility.serializeDom(dom1).toString()+"]");
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
String tranType = "", palletType = "";
parentNodeList = dom2.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
tranType = checkNullAndTrim(genericUtility.getColumnValue("tran_type",dom));
palletType = checkNullAndTrim(genericUtility.getColumnValue("pallet_type",dom));
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println("value of child node name ["+childNodeName + "]");
if("".equalsIgnoreCase(tranType))
{
System.out.println(" Blank Transcation Type :::::::::: ");
errCode = "VMNULLTT";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
if("".equalsIgnoreCase(palletType))
{
System.out.println("Blank Pallet Type :::::::::: ");
errCode = "VMNULLPT";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
} //end detail2 for loop
break;
case 3:
System.out.println("------in detail3 validation----------------");
System.out.println("DOM---->>["+genericUtility.serializeDom(dom).toString()+"]");
System.out.println("DOM1----->>["+genericUtility.serializeDom(dom1).toString()+"]");
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
String itemCode = "", itemCodeDB = "", quantity = "";
PreparedStatement pstmt = null ;
ResultSet rs = null ;
String sql = "";
String familyGrp = "", qcType = "", stroPref = "", familyGrpDB = "", qcTypeDB = "", stroPrefDB = "", lotNo = "", lotSl = "";
double quantityDB = 0, parseQuantity = 0;
HashMap hm = new HashMap();
HashMap hm1 = new HashMap();
parentNodeList = dom.getElementsByTagName("Detail3");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
itemCode = checkNullAndTrim(genericUtility.getColumnValue("item_code",dom));
quantity = checkNullAndTrim(genericUtility.getColumnValue("quantity",dom));
lotNo = checkNullAndTrim(genericUtility.getColumnValue("lot_no",dom));
lotSl = checkNullAndTrim(genericUtility.getColumnValue("lot_sl",dom));
locationCode = checkNullAndTrim(genericUtility.getColumnValue("loc_code",dom1));
palletNoSource = checkNullAndTrim(genericUtility.getColumnValue("pallet_no__source",dom1));
palletNo = checkNullAndTrim(genericUtility.getColumnValue("pallet_no",dom1));
System.out.println("itemCode :::::::::::::: " + itemCode);
System.out.println("quantity :::::::::::::: " + quantity);
System.out.println("lotNo :::::::::::::: " + lotNo);
System.out.println("lotSl :::::::::::::: " + lotSl);
System.out.println("locationCode :::::::::::::: " + locationCode);
System.out.println("palletNoSource :::::::::::::: " + palletNoSource);
System.out.println("palletNo :::::::::::::: " + palletNo);
sql ="select item_code from pallet_hdr h, pallet_det d where d.loc_code in (?, ?) and d.pallet_no = ? and "
+ "h.confirmed = 'N' and d.tran_id = h.tran_id and rownum < 2 ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locationCode);
pstmt.setString(2, palletNoSource);
pstmt.setString(3, palletNo);
rs = pstmt.executeQuery();
if(rs.next())
{
itemCodeDB = checkNullAndTrim(rs.getString("item_code"));
}
if(pstmt != null){pstmt.close();pstmt = null;}
if(rs != null){rs.close();rs = null;}
//System.out.println("itemCodeDB ------->>["+itemCodeDB+"]");
parseQuantity = Double.parseDouble(quantity);
System.out.println("parseQuantity ------->>["+parseQuantity+"]");
sql = "select (quantity - (alloc_qty + hold_qty)) as quantity from stock where loc_code in (?,?) "
+ "and (quantity - (alloc_qty + hold_qty)) > 0 and site_code = ? and item_code = ? and lot_no = ? and lot_sl = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locationCode);
pstmt.setString(2, palletNoSource);
pstmt.setString(3, loginSite);
pstmt.setString(4, itemCode);
pstmt.setString(5, lotNo);
pstmt.setString(6, lotSl);
rs = pstmt.executeQuery();
if(rs.next())
{
quantityDB = rs.getDouble("quantity");
}
if(pstmt != null){pstmt.close();pstmt = null;}
if(rs != null){rs.close();rs = null;}
for (ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName ------->>["+childNodeName+"]");
if("quantity".equalsIgnoreCase(childNodeName))
{
System.out.println("Inside quantity ::::::::::: ");
if(parseQuantity <= 0)
{
System.out.println("quantity less than zero :::::::::: ");
errCode = "VTISS1";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
else if(parseQuantity > quantityDB)
{
System.out.println("quantity greater than available quantity in stock :::::::::: ");
errCode = "VTSTKQTY";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
if( itemCodeDB != null && itemCodeDB.trim().length() > 0 )
{
System.out.println("Inside if loop for analysis class :::::::::: ");
hm = getInterface2Data(itemCode, conn, loginSite);
familyGrp = (String) hm.get("LOC_ZONE__PREF");
qcType = (String) hm.get("PROC_MTH");
stroPref = (String) hm.get("ANALYSIS_CLASS");
hm1 = getInterface2Data(itemCodeDB, conn, loginSite);
familyGrpDB = (String) hm1.get("LOC_ZONE__PREF");
qcTypeDB = (String) hm1.get("PROC_MTH");
stroPrefDB = (String) hm1.get("ANALYSIS_CLASS");
System.out.println("familyGrp :::::::::: " + familyGrp);
System.out.println("qcType :::::::::: " + qcType);
System.out.println("stroPref :::::::::: " + stroPref);
System.out.println("familyGrpDB :::::::::: " + familyGrpDB);
System.out.println("qcTypeDB :::::::::: " + qcTypeDB);
System.out.println("stroPrefDB :::::::::: " + stroPrefDB);
if(!familyGrpDB.equals(familyGrp) || !qcTypeDB.equals(qcType) || !stroPrefDB.equals(stroPref))
{
System.out.println("Error Message item code is not of same analysis grp :::::::::: ");
errCode = "VTINVAC";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
else
{
System.out.println("Same analysis class for the scaned item code :::::::::: ");
}
}
}
}
break;
}//End of switch statement
int errListSize = errList.size();
cnt =0;
String errFldName = null;
if ( errList != null && errListSize > 0 )
{
for (cnt = 0; cnt < errListSize; cnt++ )
{
errCode = errList.get(cnt);
errFldName = errFields.get(cnt);
System.out.println("errCode .........." + errCode);
errString = getErrorString( errFldName, errCode, userId );
errorType = errorType( conn, errCode );
if ( errString.length() > 0)
{
String bifurErrString = errString.substring( errString.indexOf("<Errors>") + 8, errString.indexOf("<trace>"));
bifurErrString =bifurErrString+errString.substring( errString.indexOf("</trace>") + 8, errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
System.out.println("errStringXml .........."+errStringXml);
errString = "";
}
if ( errorType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors></Root>\r\n");
}
else
{
errStringXml = new StringBuffer( "" );
}
errString = errStringXml.toString();
}
catch ( Exception e )
{
System.out.println ( "Exception: PalletizationIC: wfValData( Document currFormDataDom ): " + e.getMessage() + ":" );
//throw new ITMException(e);
e.printStackTrace();
}
finally
{
try
{
if (conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
System.out.println( "Exception : MultiplePtcnWiz:wfValData : " + e.getMessage() );
throw new ITMException(e);
}
}
System.out.println( "errString>>>>>>>::" + errString );
return errString;
}
private String errorType( Connection conn , String errorCode )
{
String msgType = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
try
{
String sql = " SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString(1, errorCode);
rs = pstmt.executeQuery();
while( rs.next() )
{
msgType = rs.getString("MSG_TYPE");
}
}
catch (Exception ex)
{
ex.printStackTrace();
}
finally
{
try
{
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
catch ( Exception e )
{
e.printStackTrace();
}
}
return msgType;
}
private ArrayList<String> getLocationCode(Connection conn, String loginSite) throws Exception
{
ArrayList<String> colVal = new ArrayList<String>();
PreparedStatement pstmt = null ;
ResultSet rs = null ;
String sql = "";
try
{
sql ="select distinct(loc_code) AS LOC_CODE from stock where (quantity - (alloc_qty + hold_qty)) > 0 and site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSite);
rs = pstmt.executeQuery();
while(rs.next())
{
colVal.add(checkNull(rs.getString("LOC_CODE")));
}
}
catch(Exception e)
{
System.out.println("Exception in locCode " + e);
e.printStackTrace();
throw new Exception(e);
}
finally
{
if(rs!=null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
}
System.out.println("Return List from getLocationCode------>>" + colVal);
return colVal;
}
private ArrayList<String> getLocation(Connection conn, String loginSite) throws Exception
{
ArrayList<String> colVal = new ArrayList<String>();
PreparedStatement pstmt = null ;
ResultSet rs = null ;
String sql = "";
String location = "";
try
{
sql = "select distinct(loc_code) as LOC_CODE from location where site_code = ? and inv_stat = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSite);
pstmt.setString(2, "AWMS");
rs = pstmt.executeQuery();
while(rs.next())
{
colVal.add(checkNull(rs.getString("LOC_CODE")));
}
System.out.println("Location in getLocation :::::::::: " + location);
}
catch(Exception e)
{
System.out.println("Exception in locCode " + e);
e.printStackTrace();
throw new Exception(e);
}
finally
{
if(rs!=null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
}
System.out.println("Return List from getLocation------>>" + colVal);
return colVal;
}
public HashMap getInterface2Data(String itemCode, Connection conn, String siteCode) throws ITMException, SQLException
{
HashMap hm = new HashMap();
PreparedStatement pstmt=null;
ResultSet rs = null;
String sql = "";
String familyGrp = "", qcType = "", stroPref = "";
try
{
sql = "SELECT LOC_ZONE__PREF, PROC_MTH, ANALYSIS_CLASS FROM SITEITEM WHERE ITEM_CODE = ? and site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
rs = pstmt.executeQuery();
if (rs.next())
{
familyGrp = rs.getString("LOC_ZONE__PREF");
qcType = rs.getString("PROC_MTH");
stroPref = rs.getString("ANALYSIS_CLASS");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
sql = "SELECT LOC_ZONE__PREF, PROC_MTH, ANALYSIS_CLASS FROM ITEM WHERE ITEM_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if (rs.next())
{
if(familyGrp == null || familyGrp.length() <= 0)
{
familyGrp = rs.getString("LOC_ZONE__PREF");
}
if(qcType == null || qcType.length() <= 0)
{
qcType = rs.getString("PROC_MTH");
}
if(stroPref == null || stroPref.length() <= 0)
{
stroPref = rs.getString("ANALYSIS_CLASS");
}
}
rs.close();rs = null;
pstmt.close();pstmt = null;
hm.put("LOC_ZONE__PREF", familyGrp);
hm.put("PROC_MTH", qcType);
hm.put("ANALYSIS_CLASS", stroPref);
}
catch(Exception e)
{
System.out.println("Exception ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
if(pstmt != null){pstmt.close();pstmt = null;}
if(rs != null){rs.close();rs = null;}
}
return hm;
}
/**
* The public method is defined without any parameters and returns blank string
*/
@Override
public String itemChanged() throws RemoteException, ITMException
{
return "";
}
/**
* The public method is used for converting the current form data into a document(dom)
* The dom is then given as argument to the overloaded function wfValData to perform validation
* Returns validation string if exists else returns null in XML format
* @param xmlString contains the current form data in XML format
* @param xmlString1 contains all the header information in the XML format
* @param xmlString2 contains the data of all the forms in XML format
* @param objContext represents the form number
* @param editFlag represents the mode of transaction(A-Add or E-Edit)
* @param xtraParams contains additional information such as loginEmpCode,loginCode,chgTerm etc
*/
@Override
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document currFormDataDom = null;
Document hdrDataDom = null;
Document allFormDataDom = null;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
System.out.println("xmlString ["+xmlString+"]");
System.out.println("xmlString1 ["+xmlString1+"]");
System.out.println("xmlString2 ["+xmlString2+"]");
try
{
if (xmlString != null && xmlString.trim().length()!=0)
{
currFormDataDom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length()!=0)
{
hdrDataDom = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length()!=0)
{
allFormDataDom = genericUtility.parseString(xmlString2);
}
System.out.println ( "Calling itemChanged( currFormDataDom, hdrDataDom, allFormDataDom, objContext, currentColumn, editFlag, xtraParams )");
errString = itemChanged( currFormDataDom, hdrDataDom, allFormDataDom, objContext, currentColumn, editFlag, xtraParams );
System.out.println ( "ErrString :" + errString);
}
catch (Exception e)
{
System.out.println ( "Exception : PalletizationIC:itemChanged(String,String):" + e.getMessage() + ":" );
throw new ITMException(e);
}
System.out.println ( "returning from PalletizationIC itemChanged \n[" + errString + "]" );
return errString;
}
/**
* The public overloaded method takes a document as input and is used for the validation of required fields
* Returns validation string if exist otherwise returns null in XML format
* @param currFormDataDom contains the current form data as a document object model
* @param hdrDataDom contains all the header information
* @param allFormDataDom contains the field data of all the forms
* @param objContext represents form number
* @param currentColumn represents the current field
* @param editFlag represents the mode of transaction(A-Add or E-Edit)
* @param xtraParams contains additional information
*/
@Override
public String itemChanged( Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String currentColumn,String editFlag, String xtraParams ) throws RemoteException,ITMException
{
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
int currentFormNo = 0, domId = 0, childNodeListLength = 0;
String sql = "", tranId = "", chgUser = "", chgTerm = "", loginEmpCode = "",loginSite = "";
StringBuffer valueXmlString;
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
System.out.println("xtraParams=["+xtraParams+"]");
System.out.println("PalletizationCalled123........................... : ["+currentColumn+"]");
GenericUtility genericUtility = GenericUtility.getInstance();
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<editFlag>").append( editFlag );
try
{
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
String currDate = sdf.format(currentDate.getTime());
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
loginEmpCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"));
chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
System.out.println("loginEmpCode---->>["+loginEmpCode+"] chgUser---->>["+chgUser+"]");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
if( objContext != null && objContext.trim().length() > 0 )
{
currentFormNo = Integer.parseInt( objContext );
}
System.out.println("current form no["+currentFormNo+"]");
valueXmlString.append("</editFlag>\r\n</Header>\r\n");
switch ( currentFormNo )
{
case 1:
{
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
System.out.println("------------------ inside case 1 itemchange --------------- ");
}
} //Case 1. End
break;
case 2:
{
System.out.println("-------------- itemchanged in Details 2 ----------------------");
System.out.println("Tran_id123@----------->>["+tranId+"]");
System.out.println("hdrDataDom------->>["+genericUtility.serializeDom(hdrDataDom)+"]");
System.out.println("currFormDataDom------>>["+genericUtility.serializeDom(currFormDataDom)+"]");
System.out.println("allFormDataDom------>>["+genericUtility.serializeDom(allFormDataDom)+"]");
String locationCode ="", palletNo = "", palletNoSource = "";
String siteCodeEdit = "", tranTypeEdit = "", locCodeEdit = "", palletTypeEdit = "", invStatEdit = "", palletNoEdit = "",
palletNoSourceEdit = "", remarksEdit = "", confirmEdit = "", chgUserEdit = "",
chgTermEdit = "", invStat = "", tranIdEdit = "";
Date confirmDateEdit = null, chgDateEdit = null, tranDateEdit = null;
locationCode = checkNullAndTrim(genericUtility.getColumnValue("loc_code", hdrDataDom));
palletNoSource = checkNullAndTrim(genericUtility.getColumnValue("pallet_no__source", hdrDataDom));
palletNo = checkNullAndTrim(genericUtility.getColumnValue("pallet_no", hdrDataDom));
/*String tranId1 = checkNullAndTrim(genericUtility.getColumnValue("tran_id", allFormDataDom));
System.out.println("Tran_id----------->>["+tranId1+"]");
*/
//tranId = checkNull(genericUtility.getColumnValue("tran_id", allFormDataDom, "2" ));
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
System.out.println(" Inside if details 2 for itm_default ::::::::::::::::: ");
sql = "select tran_id, tran_date, site_code, tran_type, loc_code, pallet_type, inv_stat, pallet_no, pallet_no__source, remarks, "
+ "confirmed, conf_date, chg_user, chg_date, chg_term from pallet_hdr where (loc_code = ? or pallet_no__source = ?) and pallet_no = ? "
+ "and site_code = ? and add_user = ? "
+ "AND CASE WHEN CONFIRMED IS NULL THEN 'N' ELSE CONFIRMED END = 'N' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locationCode);
pstmt.setString(2, palletNoSource);
pstmt.setString(3, palletNo);
pstmt.setString(4, loginSite);
pstmt.setString(5, chgUser);
rs = pstmt.executeQuery();
if(rs.next())
{
tranIdEdit = checkNullAndTrim(rs.getString("tran_id"));
tranDateEdit = rs.getDate("tran_date");
siteCodeEdit = checkNullAndTrim(rs.getString("site_code"));
tranTypeEdit = checkNullAndTrim(rs.getString("tran_type"));
locCodeEdit = checkNullAndTrim(rs.getString("loc_code"));
palletTypeEdit = checkNullAndTrim(rs.getString("pallet_type"));
invStatEdit = checkNullAndTrim(rs.getString("inv_stat"));
palletNoEdit = checkNullAndTrim(rs.getString("pallet_no"));
palletNoSourceEdit = checkNullAndTrim(rs.getString("pallet_no__source"));
remarksEdit = checkNullAndTrim(rs.getString("remarks"));
confirmEdit = checkNullAndTrim(rs.getString("confirmed"));
confirmDateEdit = rs.getDate("conf_date");
chgUserEdit = checkNullAndTrim(rs.getString("chg_user"));
chgDateEdit = rs.getDate("chg_date");
chgTermEdit = checkNullAndTrim(rs.getString("chg_term"));
System.out.println("-------------- itemchanged Edit mode in Details 2 ----------------------");
System.out.println("in itm_default@@@@@.........." + tranId);
valueXmlString.append("<Detail2 domID=\"1\" selected=\"Y\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"O\" pkNames=\"\" />\r\n");
valueXmlString.append( "<tran_id><![CDATA[" ).append( tranIdEdit ).append( "]]></tran_id>\r\n" );
valueXmlString.append( "<tran_date><![CDATA[" ).append( sdf.format(tranDateEdit).toString() ).append( "]]></tran_date>\r\n" );
valueXmlString.append( "<site_code><![CDATA[" ).append( siteCodeEdit ).append( "]]></site_code>\r\n" );
valueXmlString.append( "<tran_type><![CDATA[" ).append( tranTypeEdit ).append( "]]></tran_type>\r\n" );
valueXmlString.append( "<loc_code><![CDATA[" ).append( locCodeEdit ).append( "]]></loc_code>\r\n" );
valueXmlString.append( "<pallet_type><![CDATA[" ).append( palletTypeEdit ).append( "]]></pallet_type>\r\n" );
valueXmlString.append( "<inv_stat><![CDATA[" ).append( invStatEdit ).append( "]]></inv_stat>\r\n" );
valueXmlString.append( "<pallet_no><![CDATA[" ).append( palletNoEdit ).append( "]]></pallet_no>\r\n" );
valueXmlString.append( "<pallet_no__source><![CDATA[" ).append( palletNoSourceEdit ).append( "]]></pallet_no__source>\r\n" );
valueXmlString.append( "<remarks><![CDATA[" ).append( remarksEdit ).append( "]]></remarks>\r\n" );
valueXmlString.append( "<confirmed><![CDATA[" ).append( "N" ).append( "]]></confirmed>\r\n" );
valueXmlString.append( "<conf_date><![CDATA[" ).append( "" ).append( "]]></conf_date>\r\n" );
valueXmlString.append( "<emp_code__aprv><![CDATA[" ).append( loginEmpCode ).append( "]]></emp_code__aprv>\r\n" );
valueXmlString.append( "<status><![CDATA[" ).append( "" ).append( "]]></status>\r\n" );
valueXmlString.append( "<add_user><![CDATA[" ).append( chgUser ).append( "]]></add_user>\r\n" );
valueXmlString.append( "<add_date><![CDATA[" ).append( currDate ).append( "]]></add_date>\r\n" );
valueXmlString.append( "<add_term><![CDATA[" ).append( chgTerm ).append( "]]></add_term>\r\n" );
valueXmlString.append( "<chg_user><![CDATA[" ).append( chgUserEdit ).append( "]]></chg_user>\r\n" );
valueXmlString.append( "<chg_date><![CDATA[" ).append( sdf.format(chgDateEdit).toString() ).append( "]]></chg_date>\r\n" );
valueXmlString.append( "<chg_term><![CDATA[" ).append( chgTermEdit ).append( "]]></chg_term>\r\n" );
valueXmlString.append("</Detail2>\r\n");
}
else
{
System.out.println("in itm_default@@@@@.........." + tranId);
System.out.println("-------------- itemchanged Add mode in Details 2 ----------------------");
sql = "select inv_stat from location where loc_code in (?, ?) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locationCode);
pstmt.setString(2, palletNoSource);
rs = pstmt.executeQuery();
if(rs.next())
{
invStat = checkNullAndTrim(rs.getString("inv_stat"));
}
valueXmlString.append("<Detail2 domID=\"1\" selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n");
valueXmlString.append( "<tran_id><![CDATA[" ).append( "" ).append( "]]></tran_id>\r\n" );
valueXmlString.append( "<tran_date><![CDATA[" ).append( currDate ).append( "]]></tran_date>\r\n" );
valueXmlString.append( "<site_code><![CDATA[" ).append( loginSite ).append( "]]></site_code>\r\n" );
valueXmlString.append( "<tran_type><![CDATA[" ).append( "" ).append( "]]></tran_type>\r\n" );
valueXmlString.append( "<loc_code><![CDATA[" ).append( locationCode ).append( "]]></loc_code>\r\n" );
valueXmlString.append( "<pallet_type><![CDATA[" ).append( "" ).append( "]]></pallet_type>\r\n" );
valueXmlString.append( "<inv_stat><![CDATA[" ).append( invStat ).append( "]]></inv_stat>\r\n" );
valueXmlString.append( "<pallet_no><![CDATA[" ).append( palletNo ).append( "]]></pallet_no>\r\n" );
valueXmlString.append( "<pallet_no__source><![CDATA[" ).append( palletNoSource ).append( "]]></pallet_no__source>\r\n" );
valueXmlString.append( "<remarks><![CDATA[" ).append( "" ).append( "]]></remarks>\r\n" );
valueXmlString.append( "<confirmed><![CDATA[" ).append( "N" ).append( "]]></confirmed>\r\n" );
valueXmlString.append( "<conf_date><![CDATA[" ).append( "" ).append( "]]></conf_date>\r\n" );
valueXmlString.append( "<emp_code__aprv><![CDATA[" ).append( loginEmpCode ).append( "]]></emp_code__aprv>\r\n" );
valueXmlString.append( "<status><![CDATA[" ).append( "" ).append( "]]></status>\r\n" );
valueXmlString.append( "<add_user><![CDATA[" ).append( chgUser ).append( "]]></add_user>\r\n" );
valueXmlString.append( "<add_date><![CDATA[" ).append( currDate ).append( "]]></add_date>\r\n" );
valueXmlString.append( "<add_term><![CDATA[" ).append( chgTerm ).append( "]]></add_term>\r\n" );
valueXmlString.append( "<chg_user><![CDATA[" ).append( chgUser ).append( "]]></chg_user>\r\n" );
valueXmlString.append( "<chg_date><![CDATA[" ).append( currDate ).append( "]]></chg_date>\r\n" );
valueXmlString.append( "<chg_term><![CDATA[" ).append( chgTerm ).append( "]]></chg_term>\r\n" );
valueXmlString.append("</Detail2>\r\n");
}
}
} //Case 2. End
break;
case 3://Case 3. Start
{
System.out.println("-------------- itemchanged in Details 3 ----------------------");
System.out.println("hdrDataDom------->>["+genericUtility.serializeDom(hdrDataDom)+"]");
System.out.println("currFormDataDom------>>["+genericUtility.serializeDom(currFormDataDom)+"]");
System.out.println("allFormDataDom------>>["+genericUtility.serializeDom(allFormDataDom)+"]");
double quantity = 0;
String itemCode = "", lotNo = "", lotSl = "", locationCode ="", palletNo = "", palletNoSource = "";
tranId = checkNull(genericUtility.getColumnValue("tran_id", allFormDataDom, "2" ));
System.out.println("Tran_id----------->>["+tranId+"]");
locationCode = checkNullAndTrim(genericUtility.getColumnValue("loc_code", hdrDataDom));
palletNoSource = checkNullAndTrim(genericUtility.getColumnValue("pallet_no__source", hdrDataDom));
palletNo = checkNullAndTrim(genericUtility.getColumnValue("pallet_no", hdrDataDom));
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
System.out.println(" Inside if details 3 for itm_default :::::::::::::::::: ");
sql = "select item_code, lot_no, lot_sl, (quantity - (alloc_qty + hold_qty)) as quantity from stock where loc_code in (?,?) "
+ "and (quantity - (alloc_qty + hold_qty)) > 0 and site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locationCode);
pstmt.setString(2, palletNoSource);
pstmt.setString(3, loginSite);
rs = pstmt.executeQuery();
if( tranId != null && tranId.trim().length() > 0 )
{
while(rs.next())
{
itemCode = checkNullAndTrim(rs.getString("item_code"));
lotNo = checkNullAndTrim(rs.getString("lot_no"));
lotSl = checkNullAndTrim(rs.getString("lot_sl"));
quantity = rs.getDouble("quantity");
System.out.println("-------------- itemchanged Edit mode in Details 3 ----------------------");
domId++;
if(isScanningDone(tranId, itemCode, loginSite, locationCode, lotNo, lotSl, palletNo, quantity, conn))
{
valueXmlString.append("<Detail3 domID='"+domId+"' selected=\"Y\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"O\" pkNames=\"\" />\r\n");
}
else
{
valueXmlString.append("<Detail3 domID='"+domId+"' selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n");
}
valueXmlString.append( "<tran_id><![CDATA[" ).append( tranId ).append( "]]></tran_id>\r\n" );
valueXmlString.append( "<line_no><![CDATA[" ).append( domId ).append( "]]></line_no>\r\n" );
valueXmlString.append( "<item_code><![CDATA[" ).append( itemCode ).append( "]]></item_code>\r\n" );
valueXmlString.append( "<site_code><![CDATA[" ).append( loginSite ).append( "]]></site_code>\r\n" );
valueXmlString.append( "<loc_code><![CDATA[" ).append( locationCode ).append( "]]></loc_code>\r\n" );
valueXmlString.append( "<lot_no><![CDATA[" ).append( lotNo ).append( "]]></lot_no>\r\n" );
valueXmlString.append( "<lot_sl><![CDATA[" ).append( lotSl ).append( "]]></lot_sl>\r\n" );
valueXmlString.append( "<pallet_no><![CDATA[" ).append( palletNo ).append( "]]></pallet_no>\r\n" );
valueXmlString.append( "<quantity><![CDATA[" ).append( quantity ).append( "]]></quantity>\r\n" );
valueXmlString.append( "<no_art><![CDATA[" ).append( "").append( "]]></no_art>\r\n" );
valueXmlString.append("</Detail3>\r\n");
}
}
else
{
while(rs.next())
{
itemCode = checkNullAndTrim(rs.getString("item_code"));
lotNo = checkNullAndTrim(rs.getString("lot_no"));
lotSl = checkNullAndTrim(rs.getString("lot_sl"));
quantity = rs.getDouble("quantity");
System.out.println("-------------- itemchanged Add mode in Details 3 ----------------------");
domId++;
/*if(isScanningDone(tranId, itemCode, loginSite, locationCode, lotNo, lotSl, palletNo, quantity, conn))
{
valueXmlString.append("<Detail3 domID='"+domId+"' selected=\"Y\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"N\" pkNames=\"\" />\r\n");
}
else
{
valueXmlString.append("<Detail3 domID='"+domId+"' selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n");
}*/
valueXmlString.append("<Detail3 domID='"+domId+"' selected=\"N\">\r\n");
valueXmlString.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\" />\r\n");
valueXmlString.append( "<tran_id><![CDATA[" ).append( "").append( "]]></tran_id>\r\n" );
valueXmlString.append( "<line_no><![CDATA[" ).append( "").append( "]]></line_no>\r\n" );
valueXmlString.append( "<item_code><![CDATA[" ).append( itemCode ).append( "]]></item_code>\r\n" );
valueXmlString.append( "<site_code><![CDATA[" ).append( loginSite ).append( "]]></site_code>\r\n" );
valueXmlString.append( "<loc_code><![CDATA[" ).append( locationCode ).append( "]]></loc_code>\r\n" );
valueXmlString.append( "<lot_no><![CDATA[" ).append( lotNo ).append( "]]></lot_no>\r\n" );
valueXmlString.append( "<lot_sl><![CDATA[" ).append( lotSl ).append( "]]></lot_sl>\r\n" );
valueXmlString.append( "<pallet_no><![CDATA[" ).append( palletNo ).append( "]]></pallet_no>\r\n" );
valueXmlString.append( "<quantity><![CDATA[" ).append( quantity ).append( "]]></quantity>\r\n" );
valueXmlString.append( "<no_art><![CDATA[" ).append( "").append( "]]></no_art>\r\n" );
valueXmlString.append("</Detail3>\r\n");
}
}
}
} //Case 3. End
break;
}//End of switch block
valueXmlString.append( "</Root>\r\n" );
}
catch (Exception e)
{
e.printStackTrace();
}
finally
{
try
{
if ( conn != null )
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
System.out.println( "valueXmlString.toString()>>>>>>>::"+valueXmlString.toString());
return valueXmlString.toString();
}
/**
* The function checks whether the input string is null.
* If null, the function returns blank string.
* @param input
*/
private String checkNull( String input )
{
if ( input == null )
{
input = "";
}
return input.trim();
}
/**
* The function checks whether the input string is null.
* If null, the function returns blank string otherwise trim the input string and return.
* @param input
*/
private String checkNullAndTrim( String inputVal )
{
if ( inputVal == null )
{
inputVal = "";
}
else
{
inputVal = inputVal.trim();
}
return inputVal;
}
private boolean isScanningDone(String tranId, String itemCode, String loginSite, String locationCode, String lotNo, String lotSl, String palletNo, Double quantity, Connection conn) throws ITMException,Exception
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = "";
int count = 0;
tranId = tranId == null ? "" : tranId.trim();
System.out.println("in isScanningDone--------->" + tranId);
sql = "select count(*) from pallet_det where tran_id = ? and item_code = ? and site_code = ? and loc_code = ? and lot_no = ? and lot_sl = ? "
+ " and pallet_no = ? and quantity = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
pstmt.setString(2,itemCode);
pstmt.setString(3,loginSite);
pstmt.setString(4,locationCode);
pstmt.setString(5,lotNo);
pstmt.setString(6,lotSl);
pstmt.setString(7,palletNo);
pstmt.setDouble(8,quantity);
rs = pstmt.executeQuery();
if(rs.next())
{
count = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("count in isScanningDone@@----->>["+count+"]");
if(count > 0)
{
return true;
}
return false;
}
}
/**
* PURPOSE : Local Interface for PalletizationIC component
* AUTHOR : Sneha Mestry
* DATE : 02-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.ejb.*;
@javax.ejb.Local
public interface PalletizationICLocal extends ValidatorLocal
{
public String wfValData() throws RemoteException, ITMException;
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String xtraParams) throws RemoteException, ITMException;
public String itemChanged() throws RemoteException, ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged( Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String currentColumn,String editFlag, String xtraParams ) throws RemoteException, ITMException;
}
/**
* PURPOSE : Remote Interface for PalletizationIC component
* AUTHOR : Sneha Mestry
* DATE : 02-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import javax.ejb.*;
@javax.ejb.Remote
public interface PalletizationICRemote extends ValidatorRemote
{
public String wfValData() throws RemoteException, ITMException;
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String xtraParams) throws RemoteException, ITMException;
public String itemChanged() throws RemoteException, ITMException;
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged( Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String currentColumn,String editFlag, String xtraParams ) throws RemoteException, ITMException;
}
/**
* PURPOSE : PalletizationPos component
* AUTHOR : Sneha Mestry
* DATE : 05-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.dis.InvAllocTraceBean;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.HashMap;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@javax.ejb.Stateless
public class PalletizationPos extends ValidatorEJB implements PalletizationPosLocal, PalletizationPosRemote
{
public String postSave()throws RemoteException,ITMException
{
return "";
}
public String postSave( String domString, String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException
{
InvAllocTraceBean invAllocTrace = new InvAllocTraceBean();
String errString = "", sql = "", siteCode = "", interfaceTranId = "", tranDate = "", objName = "";
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null, pstmt3 = null;
ResultSet rs = null, rs1 = null, rs2 = null, rs3 = null;
HashMap strAllocate = new HashMap();
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
GenericUtility genericUtility = GenericUtility.getInstance();
System.out.println("Calling Post Save ::::::::::::: " );
System.out.println("domString ::::::::::::: " + domString);
System.out.println("xtraParams ::::::::::::: " + xtraParams);
Document dom = null;
dom = genericUtility.parseString(domString);
String lineNo = checkNull(genericUtility.getColumnValue("line_no", dom, "3" ));
System.out.println("line no----------->>["+lineNo+"]");
if( tranId != null && tranId.trim().length() > 0 && lineNo != null && lineNo.trim().length() > 0)
{
System.out.println("tranId for post save ::::::::::::: " + tranId);
sql = "select site_code, item_code, loc_code, lot_no, lot_sl, quantity from pallet_det where tran_id = ? "
+ "and line_no = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setString(2, lineNo);
rs = pstmt.executeQuery();
if(rs.next())
{
System.out.println("Inside while loop::::::::::: ");
//strAllocate.put("tran_date", new Timestamp(System.currentTimeMillis()));
strAllocate.put("ref_ser","PZ");
strAllocate.put("ref_id", tranId);
strAllocate.put("ref_line", lineNo);
strAllocate.put("site_code", checkNullAndTrim(rs.getString("site_code")));
strAllocate.put("item_code", checkNullAndTrim(rs.getString("item_code")));
strAllocate.put("loc_code",checkNullAndTrim(rs.getString("loc_code")));
strAllocate.put("lot_no", checkNullAndTrim(rs.getString("lot_no")));
strAllocate.put("lot_sl", checkNullAndTrim(rs.getString("lot_sl")));
strAllocate.put("alloc_qty", rs.getDouble("quantity")) ;
strAllocate.put("chg_user", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
strAllocate.put("chg_term", GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"termId"));
strAllocate.put("chg_win", "W_PALLETIZATION");
errString = invAllocTrace.updateInvallocTrace(strAllocate, conn);
System.out.println("errString ::: " + errString);
if (errString != null && errString.trim().length() > 0 )
{
return errString;
}
strAllocate = null;
System.out.println("Allocated the quantity in stock::::::::::: ");
}
}
}
catch(Exception e)
{
try
{
System.out.println("Exception "+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
catch (Exception e1)
{
e1.printStackTrace();
throw new ITMException(e1);
}
}
finally
{
try
{
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if (conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
return errString;
}
private String checkNull( String input )
{
if ( input == null )
{
input = "";
}
return input.trim();
}
private String checkNullAndTrim( String inputVal )
{
if ( inputVal == null )
{
inputVal = "";
}
else
{
inputVal = inputVal.trim();
}
return inputVal;
}
private String generateTranTd( String windowName, String tranDate, String siteCode, Connection conn )throws ITMException
{
System.out.println("inside generateTranTd@@.........");
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "";
String tranId = "";
String tranSer1 = "",keyString = "",keyCol = "";
CommonConstants commonConstants = new CommonConstants();
try
{
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE TRAN_WINDOW = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, windowName);
rs = pstmt.executeQuery();
System.out.println("keyString :"+sql);
if (rs.next())
{
keyString = rs.getString(1);
keyCol = rs.getString(2);
tranSer1 = rs.getString(3);
}
else
{
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE TRAN_WINDOW = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "GENERAL");
rs = pstmt.executeQuery();
System.out.println("keyString :"+sql);
if (rs.next())
{
keyString = rs.getString(1);
keyCol = rs.getString(2);
tranSer1 = rs.getString(3);
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("keyString :"+keyString);
System.out.println("keyCol :"+keyCol);
System.out.println("tranSer1 :"+tranSer1);
String xmlValues = "";
xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
xmlValues = xmlValues + "<Header></Header>";
xmlValues = xmlValues + "<Detail1>";
xmlValues = xmlValues + "<tran_id></tran_id>";
xmlValues = xmlValues + "<site_code>" + siteCode + "</site_code>";
xmlValues = xmlValues + "<tran_date>"+ tranDate + "</tran_date>";
xmlValues = xmlValues + "<tran_type>"+"U"+"</tran_type>";
xmlValues = xmlValues + "</Detail1></Root>";
System.out.println("xmlValues :["+xmlValues+"]");
TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", commonConstants.DB_NAME);
tranId = tg.generateTranSeqID(tranSer1, keyCol, keyString, conn);
System.out.println("tranId ::"+tranId);
}
catch (SQLException ex)
{
System.out.println("Exception ::" +sql+ ex.getMessage() + ":");
ex.printStackTrace();
throw new ITMException(ex);
}
catch (Exception e)
{
System.out.println("Exception ::" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
return tranId;
}
}
/**
* PURPOSE : Local Interface for PalletizationPos component
* AUTHOR : Sneha Mestry
* DATE : 05-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
@javax.ejb.Local
public interface PalletizationPosLocal extends ValidatorLocal
{
public String postSave()throws RemoteException,ITMException;
public String postSave( String domString,String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
}
\ No newline at end of file
/**
* PURPOSE : Remote Interface for PalletizationPos component
* AUTHOR : Sneha Mestry
* DATE : 05-10-2015
*/
package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
@javax.ejb.Remote
public interface PalletizationPosRemote extends ValidatorRemote
{
public String postSave()throws RemoteException,ITMException;
public String postSave( String domString,String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException;
}
<?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>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>101</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="8">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code</name>
<dbname>loc_code</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no__source</name>
<dbname>pallet_no__source</dbname>
</table_column>
<table_column>
<type size="30">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no</name>
<dbname>pallet_no</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Location Code:</text>
<border>0</border>
<color>33554432</color>
<x>10</x>
<y>14</y>
<height>15</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No Source:</text>
<border>0</border>
<color>33554432</color>
<x>10</x>
<y>33</y>
<height>15</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No:</text>
<border>0</border>
<color>33554432</color>
<x>10</x>
<y>52</y>
<height>16</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>127</x>
<y>14</y>
<height>16</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code</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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>126</x>
<y>33</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source</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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>127</x>
<y>53</y>
<height>16</height>
<width>180</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no</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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>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>
<Header>
<height>5</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>662</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name>
<dbname>pallet_hdr.tran_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_date</name>
<dbname>pallet_hdr.tran_date</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>pallet_hdr.site_code</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_type</name>
<dbname>pallet_hdr.tran_type</dbname>
</table_column>
<table_column>
<type size="8">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code</name>
<dbname>pallet_hdr.loc_code</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_type</name>
<dbname>pallet_hdr.pallet_type</dbname>
<values>
<item display="Cage" data="C"/>
<item display="Normal" data="N"/>
<item display="System Cage" data="S"/>
</values>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>inv_stat</name>
<dbname>pallet_hdr.inv_stat</dbname>
</table_column>
<table_column>
<type size="30">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no</name>
<dbname>pallet_hdr.pallet_no</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no__source</name>
<dbname>pallet_hdr.pallet_no__source</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>remarks</name>
<dbname>pallet_hdr.remarks</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>confirmed</name>
<dbname>pallet_hdr.confirmed</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>conf_date</name>
<dbname>pallet_hdr.conf_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code__aprv</name>
<dbname>pallet_hdr.emp_code__aprv</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>pallet_hdr.status</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_user</name>
<dbname>pallet_hdr.add_user</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_date</name>
<dbname>pallet_hdr.add_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_term</name>
<dbname>pallet_hdr.add_term</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>pallet_hdr.chg_user</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>pallet_hdr.chg_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>pallet_hdr.chg_term</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;pallet_hdr&quot; ) COLUMN(NAME=&quot;pallet_hdr.tran_id&quot;) COLUMN(NAME=&quot;pallet_hdr.tran_date&quot;) COLUMN(NAME=&quot;pallet_hdr.site_code&quot;) COLUMN(NAME=&quot;pallet_hdr.tran_type&quot;) COLUMN(NAME=&quot;pallet_hdr.loc_code&quot;) COLUMN(NAME=&quot;pallet_hdr.pallet_type&quot;) COLUMN(NAME=&quot;pallet_hdr.inv_stat&quot;) COLUMN(NAME=&quot;pallet_hdr.pallet_no&quot;) COLUMN(NAME=&quot;pallet_hdr.pallet_no__source&quot;) COLUMN(NAME=&quot;pallet_hdr.remarks&quot;) COLUMN(NAME=&quot;pallet_hdr.confirmed&quot;) COLUMN(NAME=&quot;pallet_hdr.conf_date&quot;) COLUMN(NAME=&quot;pallet_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;pallet_hdr.status&quot;) COLUMN(NAME=&quot;pallet_hdr.add_user&quot;) COLUMN(NAME=&quot;pallet_hdr.add_date&quot;) COLUMN(NAME=&quot;pallet_hdr.add_term&quot;) COLUMN(NAME=&quot;pallet_hdr.chg_user&quot;) COLUMN(NAME=&quot;pallet_hdr.chg_date&quot;) COLUMN(NAME=&quot;pallet_hdr.chg_term&quot;)) </retrieve>
<update>PALLET_HDR</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>13</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Transaction Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>33</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Site Code</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>53</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Transaction Type</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>73</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Location Code</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>93</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet Type</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>113</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Inventory Status</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>133</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>inv_stat_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>153</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No Source</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>173</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Remarks</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>193</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Confirmed</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>213</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Confirmed Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>233</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Employee Code</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>253</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Status</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>273</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Add User</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>293</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Add Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>313</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Add Term</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>333</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Change User</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>353</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Change Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>373</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Change Term</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>393</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>116</x>
<y>14</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<tag>Unique Transaction Id</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>34</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</name>
<tag>Transaction date</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>54</y>
<height>16</height>
<width>36</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<tag>Site code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>2</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>74</y>
<height>16</height>
<width>24</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type</name>
<tag>Transaction type</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>3</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>94</y>
<height>16</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code</name>
<tag>Location code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>8</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>2</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>114</y>
<height>16</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_type</name>
<tag>Pallet type i.e. C - Cage, N - Normal, S - System Cage</tag>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>134</y>
<height>16</height>
<width>57</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>inv_stat</name>
<tag>Inventory status i.e. A - Approved, E - Expired, N - Near Expired, D - Damaged, H - Hold, R - Rejected</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>154</y>
<height>16</height>
<width>186</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no</name>
<tag>Pallet number</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>30</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>174</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source</name>
<tag>Source pallet no</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>2</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>194</y>
<height>16</height>
<width>366</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<tag>Remarks if any</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>60</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>214</y>
<height>16</height>
<width>34</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed</name>
<tag>Trnsaction confirmation (Y/N)</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>234</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date</name>
<tag>Transaction confirmation date</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>254</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv</name>
<tag>Employee Code approver</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>274</y>
<height>16</height>
<width>38</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</name>
<tag>Current Status -P Pending [Scan status]/Held (H)[waiting for acknowledgment]/Verify (V)</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>294</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user</name>
<tag>User who added the transaction.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>314</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date</name>
<tag>Date when the tranction was added.</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>334</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term</name>
<tag>Terminal from which the transaction has been added.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>354</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<tag>User who has last modified the transaction. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>374</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<tag>Date when the transaction was last modified.</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>394</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<tag>Terminal from which transaction has been modified. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>19</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name>
<dbname>pallet_det.tran_id</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>line_no</name>
<dbname>pallet_det.line_no</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>item_code</name>
<dbname>pallet_det.item_code</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>pallet_det.site_code</dbname>
</table_column>
<table_column>
<type size="8">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code</name>
<dbname>pallet_det.loc_code</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>lot_no</name>
<dbname>pallet_det.lot_no</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>lot_sl</name>
<dbname>pallet_det.lot_sl</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no</name>
<dbname>pallet_det.pallet_no</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>quantity</name>
<dbname>pallet_det.quantity</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>no_art</name>
<dbname>pallet_det.no_art</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;pallet_det&quot; ) COLUMN(NAME=&quot;pallet_det.tran_id&quot;) COLUMN(NAME=&quot;pallet_det.line_no&quot;) COLUMN(NAME=&quot;pallet_det.item_code&quot;) COLUMN(NAME=&quot;pallet_det.site_code&quot;) COLUMN(NAME=&quot;pallet_det.loc_code&quot;) COLUMN(NAME=&quot;pallet_det.lot_no&quot;) COLUMN(NAME=&quot;pallet_det.lot_sl&quot;) COLUMN(NAME=&quot;pallet_det.pallet_no&quot;) COLUMN(NAME=&quot;pallet_det.quantity&quot;) COLUMN(NAME=&quot;pallet_det.no_art&quot;)) </retrieve>
<update>PALLET_DET</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>tran_id</text>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>15</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>line_no</text>
<border>0</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>15</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>item_code</text>
<border>0</border>
<color>33554432</color>
<x>144</x>
<y>2</y>
<height>15</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>site_code</text>
<border>0</border>
<color>33554432</color>
<x>212</x>
<y>2</y>
<height>15</height>
<width>56</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>loc_code</text>
<border>0</border>
<color>33554432</color>
<x>270</x>
<y>2</y>
<height>15</height>
<width>54</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>lot_no</text>
<border>0</border>
<color>33554432</color>
<x>326</x>
<y>2</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>lot_sl</text>
<border>0</border>
<color>33554432</color>
<x>424</x>
<y>2</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_sl_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>pallet_no</text>
<border>0</border>
<color>33554432</color>
<x>522</x>
<y>2</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>quantity</text>
<border>0</border>
<color>33554432</color>
<x>620</x>
<y>2</y>
<height>15</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>no_art</text>
<border>0</border>
<color>33554432</color>
<x>694</x>
<y>2</y>
<height>15</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>2</alignment>
<tabsequence>10</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>18</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<tag>Unique transaction Id.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>2</alignment>
<tabsequence>20</tabsequence>
<border>0</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>18</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<tag>Line number</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>2</alignment>
<tabsequence>30</tabsequence>
<border>0</border>
<color>33554432</color>
<x>144</x>
<y>2</y>
<height>18</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<tag>Item code to be palletized</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>2</alignment>
<tabsequence>40</tabsequence>
<border>0</border>
<color>33554432</color>
<x>212</x>
<y>2</y>
<height>18</height>
<width>56</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<tag>Site code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>2</alignment>
<tabsequence>50</tabsequence>
<border>0</border>
<color>33554432</color>
<x>270</x>
<y>2</y>
<height>18</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code</name>
<tag>Location code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>8</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>2</alignment>
<tabsequence>60</tabsequence>
<border>0</border>
<color>33554432</color>
<x>326</x>
<y>2</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no</name>
<tag>Lot number</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>2</alignment>
<tabsequence>70</tabsequence>
<border>0</border>
<color>33554432</color>
<x>424</x>
<y>2</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_sl</name>
<tag>Lot serial No</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>2</alignment>
<tabsequence>80</tabsequence>
<border>0</border>
<color>33554432</color>
<x>522</x>
<y>2</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no</name>
<tag>Pallet number</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>2</alignment>
<tabsequence>90</tabsequence>
<border>0</border>
<color>33554432</color>
<x>620</x>
<y>2</y>
<height>18</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</name>
<tag>Quantity</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>2</alignment>
<tabsequence>100</tabsequence>
<border>0</border>
<color>33554432</color>
<x>694</x>
<y>2</y>
<height>18</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art</name>
<tag>No of article</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>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>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>101</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="8">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code</name>
<dbname>loc_code</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no__source</name>
<dbname>pallet_no__source</dbname>
</table_column>
<table_column>
<type size="30">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no</name>
<dbname>pallet_no</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Location Code:</text>
<border>0</border>
<color>33554432</color>
<x>10</x>
<y>14</y>
<height>15</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No Source:</text>
<border>0</border>
<color>33554432</color>
<x>10</x>
<y>33</y>
<height>15</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No:</text>
<border>0</border>
<color>33554432</color>
<x>10</x>
<y>52</y>
<height>16</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>127</x>
<y>14</y>
<height>16</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code</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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>126</x>
<y>33</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source</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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>127</x>
<y>53</y>
<height>16</height>
<width>180</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no</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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>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>
<Header>
<height>5</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>662</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name>
<dbname>pallet_hdr.tran_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_date</name>
<dbname>pallet_hdr.tran_date</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>pallet_hdr.site_code</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_type</name>
<dbname>pallet_hdr.tran_type</dbname>
</table_column>
<table_column>
<type size="8">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code</name>
<dbname>pallet_hdr.loc_code</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_type</name>
<dbname>pallet_hdr.pallet_type</dbname>
<values>
<item display="Cage" data="C"/>
<item display="Normal" data="N"/>
<item display="System Cage" data="S"/>
</values>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>inv_stat</name>
<dbname>pallet_hdr.inv_stat</dbname>
</table_column>
<table_column>
<type size="30">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no</name>
<dbname>pallet_hdr.pallet_no</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no__source</name>
<dbname>pallet_hdr.pallet_no__source</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>remarks</name>
<dbname>pallet_hdr.remarks</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>confirmed</name>
<dbname>pallet_hdr.confirmed</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>conf_date</name>
<dbname>pallet_hdr.conf_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code__aprv</name>
<dbname>pallet_hdr.emp_code__aprv</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>pallet_hdr.status</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_user</name>
<dbname>pallet_hdr.add_user</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_date</name>
<dbname>pallet_hdr.add_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_term</name>
<dbname>pallet_hdr.add_term</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>pallet_hdr.chg_user</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>pallet_hdr.chg_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>pallet_hdr.chg_term</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;pallet_hdr&quot; ) COLUMN(NAME=&quot;pallet_hdr.tran_id&quot;) COLUMN(NAME=&quot;pallet_hdr.tran_date&quot;) COLUMN(NAME=&quot;pallet_hdr.site_code&quot;) COLUMN(NAME=&quot;pallet_hdr.tran_type&quot;) COLUMN(NAME=&quot;pallet_hdr.loc_code&quot;) COLUMN(NAME=&quot;pallet_hdr.pallet_type&quot;) COLUMN(NAME=&quot;pallet_hdr.inv_stat&quot;) COLUMN(NAME=&quot;pallet_hdr.pallet_no&quot;) COLUMN(NAME=&quot;pallet_hdr.pallet_no__source&quot;) COLUMN(NAME=&quot;pallet_hdr.remarks&quot;) COLUMN(NAME=&quot;pallet_hdr.confirmed&quot;) COLUMN(NAME=&quot;pallet_hdr.conf_date&quot;) COLUMN(NAME=&quot;pallet_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;pallet_hdr.status&quot;) COLUMN(NAME=&quot;pallet_hdr.add_user&quot;) COLUMN(NAME=&quot;pallet_hdr.add_date&quot;) COLUMN(NAME=&quot;pallet_hdr.add_term&quot;) COLUMN(NAME=&quot;pallet_hdr.chg_user&quot;) COLUMN(NAME=&quot;pallet_hdr.chg_date&quot;) COLUMN(NAME=&quot;pallet_hdr.chg_term&quot;)) </retrieve>
<update>PALLET_HDR</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>13</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Transaction Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>33</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Site Code</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>53</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Transaction Type</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>73</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Location Code</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>93</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet Type</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>113</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Inventory Status</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>133</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>inv_stat_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>153</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Pallet No Source</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>173</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Remarks</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>193</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Confirmed</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>213</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Confirmed Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>233</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Employee Code</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>253</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Status</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>273</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Add User</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>293</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Add Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>313</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Add Term</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>333</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Change User</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>353</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Change Date</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>373</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>Change Term</text>
<border>0</border>
<color>33554432</color>
<x>8</x>
<y>393</y>
<height>15</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>116</x>
<y>14</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<tag>Unique Transaction Id</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>34</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</name>
<tag>Transaction date</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>54</y>
<height>16</height>
<width>36</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<tag>Site code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>2</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>74</y>
<height>16</height>
<width>24</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type</name>
<tag>Transaction type</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>3</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>94</y>
<height>16</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code</name>
<tag>Location code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>8</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>2</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>114</y>
<height>16</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_type</name>
<tag>Pallet type i.e. C - Cage, N - Normal, S - System Cage</tag>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>134</y>
<height>16</height>
<width>57</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>inv_stat</name>
<tag>Inventory status i.e. A - Approved, E - Expired, N - Near Expired, D - Damaged, H - Hold, R - Rejected</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>154</y>
<height>16</height>
<width>186</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no</name>
<tag>Pallet number</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>30</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>174</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no__source</name>
<tag>Source pallet no</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>2</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>194</y>
<height>16</height>
<width>366</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<tag>Remarks if any</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>60</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>214</y>
<height>16</height>
<width>34</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed</name>
<tag>Trnsaction confirmation (Y/N)</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>234</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date</name>
<tag>Transaction confirmation date</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>254</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv</name>
<tag>Employee Code approver</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>274</y>
<height>16</height>
<width>38</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</name>
<tag>Current Status -P Pending [Scan status]/Held (H)[waiting for acknowledgment]/Verify (V)</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>294</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user</name>
<tag>User who added the transaction.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>314</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date</name>
<tag>Date when the tranction was added.</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>334</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term</name>
<tag>Terminal from which the transaction has been added.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>354</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<tag>User who has last modified the transaction. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>374</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<tag>Date when the transaction was last modified.</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>117</x>
<y>394</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<tag>Terminal from which transaction has been modified. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>19</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name>
<dbname>pallet_det.tran_id</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>line_no</name>
<dbname>pallet_det.line_no</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>item_code</name>
<dbname>pallet_det.item_code</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>pallet_det.site_code</dbname>
</table_column>
<table_column>
<type size="8">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code</name>
<dbname>pallet_det.loc_code</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>lot_no</name>
<dbname>pallet_det.lot_no</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>lot_sl</name>
<dbname>pallet_det.lot_sl</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pallet_no</name>
<dbname>pallet_det.pallet_no</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>quantity</name>
<dbname>pallet_det.quantity</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>no_art</name>
<dbname>pallet_det.no_art</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;pallet_det&quot; ) COLUMN(NAME=&quot;pallet_det.tran_id&quot;) COLUMN(NAME=&quot;pallet_det.line_no&quot;) COLUMN(NAME=&quot;pallet_det.item_code&quot;) COLUMN(NAME=&quot;pallet_det.site_code&quot;) COLUMN(NAME=&quot;pallet_det.loc_code&quot;) COLUMN(NAME=&quot;pallet_det.lot_no&quot;) COLUMN(NAME=&quot;pallet_det.lot_sl&quot;) COLUMN(NAME=&quot;pallet_det.pallet_no&quot;) COLUMN(NAME=&quot;pallet_det.quantity&quot;) COLUMN(NAME=&quot;pallet_det.no_art&quot;)) </retrieve>
<update>PALLET_DET</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>tran_id</text>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>15</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>line_no</text>
<border>0</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>15</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>item_code</text>
<border>0</border>
<color>33554432</color>
<x>144</x>
<y>2</y>
<height>15</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>site_code</text>
<border>0</border>
<color>33554432</color>
<x>212</x>
<y>2</y>
<height>15</height>
<width>56</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>loc_code</text>
<border>0</border>
<color>33554432</color>
<x>270</x>
<y>2</y>
<height>15</height>
<width>54</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>lot_no</text>
<border>0</border>
<color>33554432</color>
<x>326</x>
<y>2</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>lot_sl</text>
<border>0</border>
<color>33554432</color>
<x>424</x>
<y>2</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_sl_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>pallet_no</text>
<border>0</border>
<color>33554432</color>
<x>522</x>
<y>2</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>quantity</text>
<border>0</border>
<color>33554432</color>
<x>620</x>
<y>2</y>
<height>15</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>no_art</text>
<border>0</border>
<color>33554432</color>
<x>694</x>
<y>2</y>
<height>15</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>2</alignment>
<tabsequence>10</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>18</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<tag>Unique transaction Id.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>2</alignment>
<tabsequence>20</tabsequence>
<border>0</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>18</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<tag>Line number</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>2</alignment>
<tabsequence>30</tabsequence>
<border>0</border>
<color>33554432</color>
<x>144</x>
<y>2</y>
<height>18</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<tag>Item code to be palletized</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>2</alignment>
<tabsequence>40</tabsequence>
<border>0</border>
<color>33554432</color>
<x>212</x>
<y>2</y>
<height>18</height>
<width>56</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<tag>Site code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>2</alignment>
<tabsequence>50</tabsequence>
<border>0</border>
<color>33554432</color>
<x>270</x>
<y>2</y>
<height>18</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>loc_code</name>
<tag>Location code</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>8</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>2</alignment>
<tabsequence>60</tabsequence>
<border>0</border>
<color>33554432</color>
<x>326</x>
<y>2</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no</name>
<tag>Lot number</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>2</alignment>
<tabsequence>70</tabsequence>
<border>0</border>
<color>33554432</color>
<x>424</x>
<y>2</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_sl</name>
<tag>Lot serial No</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>2</alignment>
<tabsequence>80</tabsequence>
<border>0</border>
<color>33554432</color>
<x>522</x>
<y>2</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_no</name>
<tag>Pallet number</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>2</alignment>
<tabsequence>90</tabsequence>
<border>0</border>
<color>33554432</color>
<x>620</x>
<y>2</y>
<height>18</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</name>
<tag>Quantity</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>2</alignment>
<tabsequence>100</tabsequence>
<border>0</border>
<color>33554432</color>
<x>694</x>
<y>2</y>
<height>18</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art</name>
<tag>No of article</tag>
<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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>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>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>35</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id</name>
<dbname>tran_id</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Palletization Id:</text>
<border>0</border>
<color>33554432</color>
<x>0</x>
<y>5</y>
<height>15</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>10</tabsequence>
<border>0</border>
<color>33554432</color>
<x>93</x>
<y>5</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>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>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>35</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id</name>
<dbname>tran_id</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Palletization Id:</text>
<border>0</border>
<color>33554432</color>
<x>0</x>
<y>5</y>
<height>15</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</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>10</tabsequence>
<border>0</border>
<color>33554432</color>
<x>93</x>
<y>5</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_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>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</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>
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