Commit 1678f6fe authored by ppatro's avatar ppatro

Issuetracker point 99(Deallocation sumit),Isutracker (14/17 Hazmet spliting wave)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92846 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ca5614a9
......@@ -243,10 +243,12 @@ public class ConsolidatToDoc {
{
//Changed by rohan on 10-08-12
//isPick = true;
System.out.println(" inside M-PICK ");
//System.out.println(" inside M-PICK ");
sql = "SELECT POD.PICK_ORDER AS ID, POD.LINE_NO AS LINE_NO__ORD, POD.SITE_CODE,"+ //sql added by Kunal On 03/08/12 as per S Monoharan Sir intruction
" POD.ITEM_CODE,P.ITEM_CODE, P.LOC_CODE, P.LOC_CODE__TO, P.LOT_NO, P.LOT_SL,"+
" POD.NO_ART, P.QUANTITY , POD.SALE_ORDER, POD.EXP_LEV, PO.WAVE_ID,"+
//Changed by sumit on 11/03/13 getting quantity = quantity - dealloc_qty
//" POD.NO_ART, P.QUANTITY , POD.SALE_ORDER, POD.EXP_LEV, PO.WAVE_ID,"+
" POD.NO_ART, (P.QUANTITY - CASE WHEN P.DEALLOC_QTY IS NULL THEN 0 ELSE P.DEALLOC_QTY END) AS QUANTITY , POD.SALE_ORDER, POD.EXP_LEV, PO.WAVE_ID,"+
" POD.LINE_NO__SORD,PH.PALLET_NO "+ // change done by Kunal on 03/08/12 select pallet no
" FROM PICK_ISS_DET P, PICK_ORD_HDR PO , PICK_ORD_DET POD,PICK_ISS_HDR PH "+
" WHERE POD.PICK_ORDER = PO.PICK_ORDER "+
......@@ -255,6 +257,8 @@ public class ConsolidatToDoc {
" AND PH.PICK_ORDER = P.PICK_ORDER "+
//Changed By Pragyan 26/12/12 to check the join with detail for valid records.
" AND PH.TRAN_ID = P.TRAN_ID "+
//Changed by sumit on 11/03/13 adding condition only quantity avilable record should be taken
" AND (P.QUANTITY - CASE WHEN P.DEALLOC_QTY IS NULL THEN 0 ELSE P.DEALLOC_QTY END) > 0 "+
" AND PO.PICK_ORDER = ? ";
//End changes by gulzar on 12/27/2011
......@@ -304,7 +308,9 @@ public class ConsolidatToDoc {
else if(key.equalsIgnoreCase("R-TASK") || key.equalsIgnoreCase("S-DOC") || key.equalsIgnoreCase("RS-DSO") || key.equalsIgnoreCase("RO-DSO") || key.equalsIgnoreCase("R-DSO") || key.equalsIgnoreCase("R-PND") || "RP-PND".equalsIgnoreCase(key) )
{
sql = " SELECT P.REPL_ORDER AS ID, P.LINE_NO__ORD, P.SITE_CODE, P.ITEM_CODE,P.LOC_CODE, P.LOC_CODE__TO, " +
" P.LOT_NO, P.LOT_SL, P.NO_ART, P.QUANTITY , PO.SALE_ORDER, POD.EXP_LEV,PO.WAVE_ID, POD.LINE_NO__SORD, RPH.CARTON_NO " + // change done by Kunal on 03/08/12 select carton no
//Changed by sumit on 11/03/13 getting quantity = quantity - dealloc_qty
//" P.LOT_NO, P.LOT_SL, P.NO_ART, P.QUANTITY , PO.SALE_ORDER, POD.EXP_LEV,PO.WAVE_ID, POD.LINE_NO__SORD, RPH.CARTON_NO " + // change done by Kunal on 03/08/12 select carton no
" P.LOT_NO, P.LOT_SL, P.NO_ART, (P.QUANTITY - CASE WHEN P.DEALLOC_QTY IS NULL THEN 0 ELSE P.DEALLOC_QTY END) AS QUANTITY , PO.SALE_ORDER, POD.EXP_LEV,PO.WAVE_ID, POD.LINE_NO__SORD, RPH.CARTON_NO " +
" FROM REPL_ISS_DET P, REPL_ORD_HDR PO , REPL_ORD_DET POD ,REPL_ISS_HDR RPH " +
" WHERE PO.REPL_ORDER = P.REPL_ORDER " +
" AND POD.REPL_ORDER = PO.REPL_ORDER " +
......@@ -314,6 +320,8 @@ public class ConsolidatToDoc {
//Changed By Pragyan 26/12/12 to check the join with detail for valid records.
" AND RPH.TRAN_ID = P.TRAN_ID " +
" AND PO.ORDER_TYPE in ('D','L') " +
//Changed by sumit on 11/03/13 adding condition
" AND (P.QUANTITY - CASE WHEN P.DEALLOC_QTY IS NULL THEN 0 ELSE P.DEALLOC_QTY END) > 0 "+
" AND PO.REPL_ORDER = ?";
}
else
......@@ -354,6 +362,17 @@ public class ConsolidatToDoc {
System.out.println("Wave ID======>"+waveId);
expLev = rs.getString("EXP_LEV");
lineNoSord = rs.getString("LINE_NO__SORD");//Gulzar on 12/28/2011
//Changed by sumit on 12/03/13 calculating number of art start
HashMap itmVolumeMap = new HashMap();
itmVolumeMap = getItemVoumeMap(itemCode,lotNo,conn);
shipperSize = (Double) itmVolumeMap.get("SHIPPER_SIZE");
noArt = (int) (quantity / shipperSize);
if( noArt == 0 )
{
noArt = 1;
}
shipperSize = 0;
//Changed by sumit on 12/03/13 calculating number of art end
//Changed by Rohan on 10-11-12 to call report in at end of despacth populate.start
/*
//Changed by Rohan on 10-06-12 to get reports for hazardous material.start
......@@ -1363,8 +1382,9 @@ public class ConsolidatToDoc {
String key = (String)it.next();
System.out.println("Key ["+key+"]");
//Changed by sumit on 19/03/12 checking confirmation status from wave_task_det start
//if(key.equalsIgnoreCase("P-TASK") || key.equalsIgnoreCase("C-PICK"))
if(key.equalsIgnoreCase("P-TASK") || key.equalsIgnoreCase("C-PICK") || key.equalsIgnoreCase("P-PICK"))
/*if(key.equalsIgnoreCase("P-TASK") || key.equalsIgnoreCase("C-PICK") || key.equalsIgnoreCase("P-PICK"))
{
sql = "select status from pick_ord_hdr where pick_order = ? ";
......@@ -1388,7 +1408,12 @@ public class ConsolidatToDoc {
//Changed By Pragyan 26/12/12 to check the join with detail for valid records.
sql = "SELECT CONFIRMED FROM PACK_HDR WHERE TRAN_ID = ?";
//sql = "SELECT P.CONFIRMED FROM PACK_HDR P,PACK_DET D WHERE P.TRAN_ID = ? AND P.TRAN_ID = D.TRAN_ID";
}*/
if(!"S-DSP".equalsIgnoreCase(key))
{
sql = "SELECT STATUS FROM WAVE_TASK_DET WHERE REF_ID = ? ";
}
//Changed by sumit on 19/03/12 checking confirmation status from wave_task_det end
else
{
continue;
......@@ -1407,10 +1432,11 @@ public class ConsolidatToDoc {
if(rs.next())
{
//Changed by sumit on 19/03/13 changing logic of checking of confirmation start
//if(key.equalsIgnoreCase("P-TASK") || key.equalsIgnoreCase("C-PICK") ) //added by Kunal on 11/09/12
//Changed by sumit on 24/01/13 removed "p-pick" ref ser from if condition
//if(key.equalsIgnoreCase("P-TASK") || key.equalsIgnoreCase("C-PICK") || key.equalsIgnoreCase("P-PICK") ) //added by Kunal on 11/09/12
if(key.equalsIgnoreCase("P-TASK") || key.equalsIgnoreCase("C-PICK") ) //added by Kunal on 11/09/12
/*if(key.equalsIgnoreCase("P-TASK") || key.equalsIgnoreCase("C-PICK") ) //added by Kunal on 11/09/12
{
status = rs.getString("status");
if(!"C".equalsIgnoreCase(status))
......@@ -1464,7 +1490,13 @@ public class ConsolidatToDoc {
{
return isConfirmed = false;
}
}*/
status = rs.getString("status");
if( "N".equalsIgnoreCase(status))
{
return isConfirmed = false;
}
//Changed by sumit on 19/03/13 changing logic of checking of confirmation end
}
else
......@@ -1731,4 +1763,104 @@ public class ConsolidatToDoc {
return newQty;
}
//Changed by sumit on 31/01/12 convert qty as per as unit end
//Changed by sumit on 13/03/12 to reterive shipper size start
private HashMap getItemVoumeMap(String itemCode,String lotNo,Connection con)throws Exception
{
double shipperSize = 0,itemVolume = 0,caseVolume = 0;
PreparedStatement pstmt = null;
String sql="";
ResultSet rs = null;
double itmLen = 0,itmWidth = 0,itmHeight = 0,itemGrossWeight = 0,lotLen = 0 ,lotHeight = 0,lotWidth = 0,caseGrossWeight = 0,itemNetWeight = 0, caseNetWeight = 0;
HashMap dataVolumeMap = new HashMap();
try {
sql = "SELECT I.LENGTH ITEM_LEN,I.WIDTH ITEM_WID,I.HEIGHT ITEM_HEIGHT,I.GROSS_WEIGHT ITEM_GROSS_WEIGHT,I.NET_WEIGHT ITEM_NET_WEIGHT,"
+" L.LENGTH LITEM_LEN,L.WIDTH LITEM_WID,L.HEIGHT LITEM_HEIGHT,L.SHIPPER_SIZE SHIPSIZE,L.GROSS_WEIGHT CASE_GROSS_WEIGHT,L.NET_WEIGHT CASE_NET_WEIGHT FROM"
+" ITEM I,ITEM_LOT_PACKSIZE L"
+" WHERE I.ITEM_CODE = L.ITEM_CODE"
+" AND L.LOT_NO__FROM <= ? AND L.LOT_NO__TO >= ?"
+" AND I.ITEM_CODE = ?";
pstmt = con.prepareStatement(sql);
if(lotNo != null && lotNo.length() > 0)
{
pstmt.setString(1, lotNo);
pstmt.setString(2, lotNo);
}
else
{
pstmt.setString(1, "00");
pstmt.setString(2, "ZZ");
}
pstmt.setString(3, itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
itmLen = rs.getDouble("ITEM_LEN");
itmWidth = rs.getDouble("ITEM_WID");
itmHeight = rs.getDouble("ITEM_HEIGHT");
itemGrossWeight = rs.getDouble("ITEM_GROSS_WEIGHT");
lotLen = rs.getDouble("LITEM_LEN");
lotWidth = rs.getDouble("LITEM_WID");
lotHeight = rs.getDouble("LITEM_HEIGHT");
shipperSize = rs.getDouble("SHIPSIZE");
caseGrossWeight = rs.getDouble("CASE_GROSS_WEIGHT");
itemNetWeight = rs.getDouble("ITEM_NET_WEIGHT");
caseNetWeight = rs.getDouble("CASE_NET_WEIGHT");
}
//shipperSize = (lotHeight * lotWidth * lotLen)/(itmLen * itmWidth * itmHeight);
itemVolume = (itmLen * itmWidth * itmHeight);
caseVolume = (lotHeight * lotWidth * lotLen);
dataVolumeMap.put("SHIPPER_SIZE", shipperSize);
dataVolumeMap.put("ITEM_VOLUME", itemVolume);
dataVolumeMap.put("CASE_VOLUME", caseVolume);
dataVolumeMap.put("ITEM_GROSS_WEIGHT", itemGrossWeight);
dataVolumeMap.put("CASE_GROSS_WEIGHT", caseGrossWeight);
dataVolumeMap.put("ITEM_NET_WEIGHT", itemNetWeight);
dataVolumeMap.put("CASE_NET_WEIGHT", caseNetWeight);
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
} catch (Exception e) {
// TODO: handle exception
throw e;
}
finally
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
return dataVolumeMap;
}
//Changed by sumit on 13/03/12 to reterive shipper size end
}
\ No newline at end of file
......@@ -27,8 +27,39 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
String loginEmpCode = "";
String confDateStr = "";
GenericUtility genericUtility = GenericUtility.getInstance();
@Override
public String confirm( String tranId, String xtraParams, String forcedFlag ) throws RemoteException,ITMException
/**
* The public function is used to confirm a transaction corresponding to the tran id it takes as an argument
* @param : tranId
* @param : xtraParams
*/
public String confirm(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
String retString = "";
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
boolean isConn= true;
try
{
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
retString = this.confirm( tranID,xtraParams, forcedFlag ,conn ,isConn);
if ( retString != null && retString.length() > 0 )
{
throw new Exception("Exception while calling confirm for tran Id:["+tranID+"]");
}
}
catch(Exception exception)
{
System.out.println("Exception in [DeallocArtConf] " + exception.getMessage());
}
return retString;
}
public String confirm( String tranId, String xtraParams, String forcedFlag , Connection conn, boolean conStat ) throws RemoteException,ITMException
{
System.out.println("DeallocArtConf Called........");
......@@ -40,29 +71,37 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
//String siteCode = "";
ResultSet rs = null, rs2 = null ;
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
Connection conn = null;
String errString = "";
String saleOrder = "", saleOrderLine = "", itemCode = "", custCode = "", expLev = "";
String lotSl = "", lotNo = "", locCode = "", waveId = "", pickOrder = "", locCodeTo ="";
String replOrder = "", siteCode = "";
String currentReplOrder = "";
String pickType = "";
String pPickType = "";
String cartonNo = "";
String trfStatus = "";
//String comfirmed = "";
double DeallocQty = 0.0;
double DeallocQty = 0.0, quantity = 0.0;
int pickLineNo = 0;
boolean isIssueDone = false;
int replOrderLine = 0;
int currReplOrdLine = 0;
boolean isPickIssueDone = false;
boolean isReplDone = false;
HashMap replIss = new HashMap();
ITMDBAccessEJB itmdbAccess = new ITMDBAccessEJB();
try
{
conn.setAutoCommit(false);
System.out.println(" force flag ["+forcedFlag+"]");
System.out.println(" xtraParams --> ["+xtraParams+"]");
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"site_code");
String empCode = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginEmpCode" );
System.out.println(" site code ["+siteCode+"]");
ConnDriver connDriver = new ConnDriver();
/*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator");
conn.setAutoCommit(false);
conn.setAutoCommit(false);*/
SimpleDateFormat sdf = new SimpleDateFormat( genericUtility.getDBDateTimeFormat());
Date confDate = new Date();
......@@ -92,7 +131,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
return errString;
}
sql = " SELECT D.CONFIRMED FROM DESPATCH D, WAVE_TASK_DET W , dealloc_art da " +
/*sql = " SELECT D.CONFIRMED FROM DESPATCH D, WAVE_TASK_DET W , dealloc_art da " +
" WHERE W.PTCN = DA.PTCN AND D.WAVE_ID = W.WAVE_ID AND W.REF_ID = D.DESP_ID " +
" and da.tran_id = ? ";
pstmt = conn.prepareStatement(sql);
......@@ -108,7 +147,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
}
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
pstmt.close(); pstmt = null;*/
//Checking is one of the carton is already confirmed
sql = " SELECT C.STATUS FROM CARTON_MASTER C, DEALLOC_ART_DET DRD WHERE DRD.TRAN_ID = ? AND DRD.CARTON_NO = C.CARTON_NO ";
......@@ -127,11 +166,16 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
rs.close(); rs = null;
pstmt.close(); pstmt = null;
sql = " ";
sql = " SELECT DISTINCT D.CARTON_NO, PD.SALE_ORDER , PD.LINE_NO__SORD, PD.ITEM_CODE, PD.EXP_LEV, PD.LOC_CODE__TO, PD.LOT_SL, PD.LOC_CODE, " +
" PD.LOT_NO, D.QUANTITY, S.CUST_CODE, PH.WAVE_ID, D.PICK_ORDER, PD.LINE_NO FROM PICK_ORD_DET PD, PICK_ORD_HDR PH , DEALLOC_ART_DET D, SORDER S " +
" WHERE D.TRAN_ID = ? AND D.PICK_ORDER = PH.PICK_ORDER AND PH.PICK_ORDER = PD.PICK_ORDER "+
" AND D.LINE_NO__PICK = PD.LINE_NO AND PH.SALE_ORDER = S.SALE_ORDER ";
sql = " SELECT DISTINCT D.CARTON_NO, PD.SALE_ORDER , PD.LINE_NO__SORD, PD.ITEM_CODE, PD.EXP_LEV, PD.LOC_CODE__TO, D.LOT_SL, " +
" D.LOC_CODE, PD.LOT_NO, D.QUANTITY, S.CUST_CODE, PH.WAVE_ID, D.PICK_ORDER, D.LINE_NO__PICK, PH.PICK_TYPE " +
//" FROM PICK_ORD_DET PD, PICK_ORD_HDR PH , DEALLOC_ART_DET D, SORDER S , CARTON_MASTER CM " +
" FROM PICK_ORD_DET PD, PICK_ORD_HDR PH , DEALLOC_ART_DET D, SORDER S " +
" WHERE D.TRAN_ID = ? " +
//" AND D.CARTON_NO = CM.CARTON_NO " +
" AND PD.PICK_ORDER = D.PICK_ORDER " +
" AND PD.LINE_NO = D.LINE_NO__PICK " +
" AND PH.PICK_ORDER = PD.PICK_ORDER " +
" AND PH.SALE_ORDER = S.SALE_ORDER ";
sql1 = "UPDATE CARTON_MASTER SET STATUS ='R' WHERE CARTON_NO = ? ";
pstmt1 = conn.prepareStatement(sql1);
......@@ -154,39 +198,63 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
DeallocQty = rs.getDouble("QUANTITY");
waveId = rs.getString("WAVE_ID");
pickOrder = rs.getString("PICK_ORDER");
pickLineNo = rs.getInt("LINE_NO");
pickLineNo = rs.getInt("LINE_NO__PICK");
pPickType = rs.getString("PICK_TYPE");
cartonNo = rs.getString("CARTON_NO");
saleOrderLine = " " + saleOrderLine;
saleOrderLine = saleOrderLine.substring(saleOrderLine.length()-3);
System.out.println(" sord line no ["+saleOrderLine+"] locCode ["+locCode+"] locCodeTo["+locCodeTo+"] pickLineNo ["+pickLineNo+"]");
/*if("S".equalsIgnoreCase(pPickType))
{
deallocatedRepl(pickOrder, pickLineNo, siteCode, itemCode, lotNo, lotSl, DeallocQty, saleOrder, saleOrderLine, expLev, custCode, xtraParams, waveId, conn);
continue;
}*/
sql = "";
sql = " SELECT PIH.PICK_ORDER, PIH.PICK_TYPE, PIH.CONFIRMED, PID.LOC_CODE__TO FROM PICK_ISS_HDR PIH, PICK_ISS_DET PID WHERE PIH.PICK_ORDER = ? " +
" AND PIH.PICK_ORDER = PID.PICK_ORDER";
sql = " SELECT PIH.PICK_ORDER, PIH.PICK_TYPE, PIH.CONFIRMED, PID.LOC_CODE__TO, " +
" (CASE WHEN PIH.TRF_STATUS IS NULL THEN 'N' ELSE PIH.TRF_STATUS END) AS TRF_STATUS ,PID.LOC_CODE " +
" FROM PICK_ISS_HDR PIH, PICK_ISS_DET PID WHERE PIH.PICK_ORDER = ? AND PIH.PICK_ORDER = PID.PICK_ORDER " +
" AND PID.LINE_NO__ORD = ? ";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, pickOrder);
pstmt2.setInt(2, pickLineNo);
rs2 = pstmt2.executeQuery();
confirmed = "";
if( rs2.next())
{
pickType = rs2.getString("PICK_TYPE");
confirmed = rs2.getString("CONFIRMED");
System.out.println(" pickType ["+pickType+"] confirmed["+confirmed+"]");
trfStatus = rs2.getString("TRF_STATUS");
System.out.println(" pickType ["+pickType+"] confirmed["+confirmed+"] trfStatus ["+trfStatus+"]");
if( "Y".equalsIgnoreCase(confirmed))
{
isPickIssueDone = true;
if( ("A".equalsIgnoreCase(pickType) || "M".equalsIgnoreCase(pickType)) && "Y".equalsIgnoreCase(trfStatus))
{
locCode = rs2.getString("LOC_CODE__TO");
isIssueDone = true;
}
else
{
locCode = locCodeTo;
locCode = rs2.getString("LOC_CODE");
}
if( "C".equalsIgnoreCase(pickType) )
{
locCode = rs2.getString("LOC_CODE__TO");
}
}
/*else
{
locCode = locCodeTo;
}*/
}
rs2.close(); rs2 = null;
pstmt2.close(); pstmt2 = null;
System.out.println(" locCode ["+locCode+"] locCodeTo ["+locCodeTo+"]");
//Deallocating from pick order in case of issue not done
if( !isIssueDone )
if( !isPickIssueDone )
{
replIss = new HashMap();
......@@ -194,79 +262,96 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
if("YES".equalsIgnoreCase(replIss.get("isRepl").toString()))
{
replOrder = replIss.get("repl_order").toString();
System.out.println(" 88 replOrder ["+replOrder+"]");
replOrderLine = Integer.parseInt(replIss.get("repl_order_line").toString());
System.out.println(" 88 replOrder ["+replOrder+"] replOrderLine ["+replOrderLine+"]");
HashMap replParent = new HashMap();
replParent = isParentExist(replOrder, conn);
replParent = isParentExist(replOrder,replOrderLine, conn);
confirmed = replParent.get("confirmed").toString();//confirmed
System.out.println(" confirmed ["+confirmed+"] paren_exist ["+replParent.get("paren_exist").toString()+"] ");
if("Y".equalsIgnoreCase(replParent.get("confirmed").toString()))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//locCode = replParent.get("loc_code__to").toString();
//lotNo = replParent.get("lot_no").toString();
//lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//Updating pick_order
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
isReplDone = true;
updateReplOrder(replOrder,replOrderLine, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, isReplDone, "",0);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn, isPickIssueDone,pPickType);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//locCode = replParent.get("loc_code__to").toString();
//lotNo = replParent.get("lot_no").toString();
//lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
isReplDone = false;
updateReplOrder(replOrder,replOrderLine, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, isReplDone, "",0);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn, isPickIssueDone,pPickType);
updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
updateReplOrderForActive(pPickType, replOrder,replOrderLine, empCode, conn);
}
else if ( "N".equalsIgnoreCase(confirmed) && "YES".equalsIgnoreCase(replParent.get("paren_exist").toString()))
{
System.out.println(" repl order going to search it's ["+replOrder+"] parent ");
currentReplOrder = replOrder;
currReplOrdLine = replOrderLine;
replOrder = "";
replOrder = replParent.get("pick_order").toString();
System.out.println(" new repl order going to serch it's parent ["+replOrder+"]");
replOrderLine = Integer.parseInt(replParent.get("line_no__pick").toString());
System.out.println(" new repl order going to serch it's parent ["+replOrder+"] replOrderLine ["+replOrderLine+"]");
replParent.clear();
replParent = isParentExist(replOrder, conn);
replParent = isParentExist(replOrder,replOrderLine, conn);
confirmed = "";
confirmed = replParent.get("confirmed").toString();
System.out.println(" *-* confirmed ["+confirmed+"]");
if("Y".equalsIgnoreCase(confirmed))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
//locCode = replParent.get("loc_code__to").toString();
//lotNo = replParent.get("lot_no").toString();
//lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
isReplDone = true;
updateReplOrder(currentReplOrder,currReplOrdLine, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, isReplDone, replOrder,replOrderLine);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn, isPickIssueDone,pPickType);
updateReplOrderForActive(pPickType, currentReplOrder,currReplOrdLine, empCode, conn);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//locCode = replParent.get("loc_code__to").toString();
//lotNo = replParent.get("lot_no").toString();
//lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
isReplDone = false;
updateReplOrder(currentReplOrder,currReplOrdLine, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, isReplDone, replOrder,replOrderLine);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn, isPickIssueDone,pPickType);
updateReplOrderForActive(pPickType, currentReplOrder,currReplOrdLine, empCode, conn);
}
}
}
else
{
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn, isPickIssueDone,pPickType);
}
}
else
{
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn, isPickIssueDone,pPickType);
}
int update = updateWaveTaskDet(pickOrder, "PICK", conn, pPickType, empCode);
if( update > 0 )
{
System.out.println(update+" wave_task_det update syuccessfully");
}
errString = sorderDeAllocate(saleOrder, saleOrderLine, itemCode, DeallocQty, expLev, custCode, lotSl, lotNo, locCode, xtraParams, waveId, pickOrder);
......@@ -278,13 +363,55 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
}
//Updating carton_no of carton master
pstmt1.setString(1, rs.getString("CARTON_NO"));
System.out.println(" ** cartonNo ["+cartonNo+"]");
if( "A".equalsIgnoreCase(pPickType))
{
sql = " SELECT SUM(QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) AS QUANTITY " +
" FROM PICK_ORD_DET WHERE CARTON_NO = ? ";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, cartonNo);
rs2 = pstmt2.executeQuery();
if( rs2.next())
{
quantity = rs2.getDouble("QUANTITY");
}
rs2.close(); rs2 = null;
pstmt2.close(); pstmt2 = null;
System.out.println( " quantity --> ["+quantity+"]");
if( quantity == 0 )
{
pstmt1.setString(1, cartonNo);
if( pstmt1.executeUpdate() > 0)
{
System.out.println(rs.getString("CARTON_NO")+" carton_no updated successfully ");
}
pstmt1.clearParameters();
}
}
else
{
if("M".equalsIgnoreCase(pPickType))
{
sql = "UPDATE PACK_DET SET STATUS = 'R' WHERE CARTON_NO = ? ";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, cartonNo);
pstmt2.executeUpdate();
if( update > 0 )
{
System.out.println(cartonNo+" cartonNo updated successfully from PACK_DET table ");
}
pstmt2.close(); pstmt2 = null;
}
pstmt1.setString(1, cartonNo);
if( pstmt1.executeUpdate() > 0)
{
System.out.println(rs.getString("CARTON_NO")+" carton_no updated successfully ");
}
pstmt1.clearParameters();
}
}
rs.close(); rs = null;
......@@ -356,15 +483,17 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
{
System.out.println("isError =["+isError+"]");
System.out.println("Commiting and Closing Connection..........");
if ( !(isError) )
if ( !(isError) && conStat == true )
{
conn.commit();
errString = itmdbAccess.getErrorString("","VTSUCC1",loginEmpCode);
}
else
else if(conStat == true || isError)
{
conn.rollback();
}
if (rs != null )
{
rs.close(); rs = null;
......@@ -374,11 +503,12 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
pstmt.close();
pstmt = null;
}
if( conn != null && !conn.isClosed() )
if( conn != null && conStat == true && !conn.isClosed() )
{
conn.close();
conn = null;
}
}
catch( Exception e)
{
......@@ -406,9 +536,18 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
String error = "";
String errCode = "";
String siteCode = "", chgUser = "", chgTerm = "", sql = "", despId = "";
String stockSql = "";
double quantity = 0.0;
double shipperSize = 0;
double totalGrossWeight = 0,totalTareWeight = 0,totalNetWeight = 0;
double grossWeight = 0d, tareWeight = 0d, netWeight = 0d;
double grossWtPerArt = 0d;
double tareWtPerArt = 0d;
double grossWeightItem = 0d;
double netWeightItem = 0d;
int noArt = 0, totalNoArt = 0;
Connection conn = null;
PreparedStatement pstmt=null, pstmt1 = null;
PreparedStatement pstmt=null, pstmt1 = null,pstmtStock = null;
Statement st = null;
ResultSet rsQtyAlloc=null, rs = null, rs1 = null;
HashMap invallocTraceMap = new HashMap();
......@@ -419,7 +558,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "site_code");
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId");
System.out.println(" site code :["+siteCode+"] chgUser:["+chgUser+"] chgTerm:["+chgTerm+"]");
System.out.println(" site code :["+siteCode+"] chgUser:["+chgUser+"] chgTerm:["+chgTerm+"] locCode ["+locCode+"]");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
......@@ -438,6 +577,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
invallocTraceMap.put("chg_term",chgTerm);
//invallocTraceMap.put("chg_win","W_SORD_DEALLOC"); dealloc_art
invallocTraceMap.put("chg_win","W_DEALLOC_ART");
System.out.println(" *******invallocTraceMap****** "+invallocTraceMap);
if (DeallocQty > 0 && saleOrder.trim().length()>0)
{
......@@ -519,6 +659,13 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
}*/
stockSql = "SELECT (CASE WHEN GROSS_WT_PER_ART IS NULL THEN 0 ELSE GROSS_WT_PER_ART END) AS GROSS_WT_PER_ART,"
+ " (CASE WHEN TARE_WT_PER_ART IS NULL THEN 0 ELSE TARE_WT_PER_ART END) AS TARE_WT_PER_ART,"
+ " (CASE WHEN PALLET_WT IS NULL THEN 0 ELSE PALLET_WT END) AS PALLET_WT, "
+ " MFG_DATE, EXP_DATE, SITE_CODE__MFG, PACK_CODE, RETEST_DATE, RATE FROM STOCK "
+ " WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ? ";
pstmtStock = conn.prepareStatement(stockSql);
sql = "";
sql = " SELECT ( QUANTITY - ?) AS QUANTITY, DESP_ID FROM DESPATCHDET WHERE SORD_NO = ? AND LINE_NO__SORD = ? AND EXP_LEV = ? " +
" AND DESP_ID = (SELECT REF_ID FROM WAVE_TASK_DET WHERE WAVE_ID = ? AND REF_SER = 'S-DSP' AND SALE_ORDER = ? )" +
......@@ -590,11 +737,133 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
System.out.println(despId+" updated successfully ");
}
pstmt1.close(); pstmt1 = null;
//Updating no_art if deallocated quantity after despatch populated
System.out.println(" Updating NO_ART in ");
sql = " SELECT QUANTITY, DESP_ID FROM DESPATCHDET WHERE SORD_NO = ? AND LINE_NO__SORD = ? AND EXP_LEV = ? " +
" AND DESP_ID = (SELECT REF_ID FROM WAVE_TASK_DET WHERE WAVE_ID = ? AND REF_SER = 'S-DSP' AND SALE_ORDER = ? )" +
" AND ITEM_CODE = ? AND LOT_NO = ? AND LOT_SL = ? AND LOC_CODE = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, saleOrder);
pstmt1.setString(2, lineNo);
pstmt1.setString(3, expLev);
pstmt1.setString(4, waveId);
pstmt1.setString(5, saleOrder);
pstmt1.setString(6, itemCode);
pstmt1.setString(7, lotNo);
pstmt1.setString(8, lotSl);
pstmt1.setString(9, locCode);
rs1 = pstmt1.executeQuery();
if( rs1.next())
{
quantity = rs1.getDouble("QUANTITY");
}
rs1.close(); rs1 = null;
pstmt1.close(); pstmt1.close();
HashMap itmVolumeMap = new HashMap();
itmVolumeMap = getItemVoumeMap(itemCode,lotNo,conn);
shipperSize = (Double) itmVolumeMap.get("SHIPPER_SIZE");
grossWeightItem = (Double) itmVolumeMap.get("ITEM_GROSS_WEIGHT");
netWeightItem = (Double) itmVolumeMap.get("CASE_GROSS_WEIGHT");
System.out.println("shipperSize ["+shipperSize+"] grossWeightItem ["+grossWeightItem+"] netWeightItem ["+netWeightItem+"]");
//+ " WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ? ";
pstmtStock.setString(1, itemCode);
pstmtStock.setString(2, siteCode);
pstmtStock.setString(3, locCode);
pstmtStock.setString(4, lotNo);
pstmtStock.setString(5, lotSl);
rs1 = pstmtStock.executeQuery();
if( rs1.next())
{
grossWtPerArt = rs1.getDouble("GROSS_WT_PER_ART");
tareWtPerArt = rs1.getDouble("TARE_WT_PER_ART");
}
rs1.close(); rs1 = null;
pstmtStock.clearParameters();
System.out.println("grossWtPerArt ["+grossWtPerArt+"] tareWtPerArt["+tareWtPerArt+"]");
noArt = (int) (quantity / shipperSize);
if(quantity < shipperSize)
{
grossWeight = (grossWeightItem * quantity);
netWeight = (netWeightItem * quantity);
}
else
{
grossWeight = (grossWtPerArt * noArt);
tareWeight = (tareWtPerArt * noArt);
netWeight = grossWeight - tareWeight;
}
System.out.println(" NO_ART ["+noArt+"] grossWeight["+grossWeight+"] tareWeight["+tareWeight+"] netWeight["+netWeight+"]");
/*totalNoArt = totalNoArt + noArt;
totalGrossWeight = totalGrossWeight + grossWeight;
totalTareWeight = totalTareWeight + tareWeight ;
totalNetWeight = totalNetWeight + netWeight;*/
sql = " UPDATE DESPATCHDET SET GROSS_WEIGHT = ?, TARE_WEIGHT = ?, NETT_WEIGHT = ?, NO_ART = ? WHERE SORD_NO = ? AND LINE_NO__SORD = ? AND EXP_LEV = ? " +
" AND DESP_ID = (SELECT REF_ID FROM WAVE_TASK_DET WHERE WAVE_ID = ? AND REF_SER = 'S-DSP' AND SALE_ORDER = ? )" +
" AND ITEM_CODE = ? AND LOT_NO = ? AND LOT_SL = ? AND LOC_CODE = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setDouble(1, grossWeight);
pstmt1.setDouble(2, tareWeight);
pstmt1.setDouble(3, netWeight);
pstmt1.setDouble(4, noArt);
pstmt1.setString(5, saleOrder);
pstmt1.setString(6, lineNo);
pstmt1.setString(7, expLev);
pstmt1.setString(8, waveId);
pstmt1.setString(9, saleOrder);
pstmt1.setString(10, itemCode);
pstmt1.setString(11, lotNo);
pstmt1.setString(12, lotSl);
pstmt1.setString(13, locCode);
if( pstmt1.executeUpdate() > 0 )
{
System.out.println(despId+" updated DESPATCHDET successfully ");
}
pstmt1.close(); pstmt1 = null;
}
sql = " SELECT SUM(NO_ART) AS NO_ART, SUM(GROSS_WEIGHT) AS GROSS_WEIGHT , SUM(TARE_WEIGHT) AS TARE_WEIGHT , " +
" SUM(NETT_WEIGHT) AS NETT_WEIGHT FROM DESPATCHDET WHERE DESP_ID = ?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, despId);
rs1 = pstmt1.executeQuery();
if( rs1.next() )
{
totalNoArt = rs1.getInt("NO_ART");
totalGrossWeight = rs1.getDouble("GROSS_WEIGHT");
totalTareWeight = rs1.getDouble("TARE_WEIGHT");
totalNetWeight = rs1.getDouble("NETT_WEIGHT");
}
rs1.close(); rs1 = null;
pstmt1.close(); pstmt1 = null;
sql = "UPDATE DESPATCH SET GROSS_WEIGHT = ?, TARE_WEIGHT = ? ,NETT_WEIGHT = ?, NO_ART = ? WHERE DESP_ID = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setDouble(1, totalGrossWeight);
pstmt1.setDouble(2, totalTareWeight);
pstmt1.setDouble(3, totalNetWeight);
pstmt1.setInt(4, totalNoArt);
pstmt1.setString(5, despId);
if( pstmt1.executeUpdate() > 0 )
{
System.out.println(despId+" of DESPATCH update successfully");
}
pstmt1.close(); pstmt1 = null;
}
rs.close();rs = null;
pstmt.close(); pstmt = null;
if( pstmtStock != null)
{
pstmtStock.close(); pstmtStock = null;
}
}
st.close();
invallocTraceMap.clear();
......@@ -626,10 +895,23 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
{
rs.close(); rs = null;
}
if( rs1 != null)
{
rs1.close(); rs1 = null;
}
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
if( pstmt1 != null )
{
pstmt1.close(); pstmt1 = null;
}
if( pstmtStock != null )
{
pstmtStock.close();
pstmtStock = null;
}
if(st != null)
{
st.close();
......@@ -660,7 +942,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
String tempReplOrder = "";
try
{
sql = "SELECT REPL_ORDER FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = ? ";
sql = "SELECT REPL_ORDER , LINE_NO__REPL FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
pstmt.setInt(2, pickOrderLine);
......@@ -673,11 +955,13 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
{
replOrder.put("isRepl", "YES");
replOrder.put("repl_order", rs.getString("REPL_ORDER"));
replOrder.put("repl_order_line", rs.getString("LINE_NO__REPL"));
}
else
{
replOrder.put("isRepl", "NO");
replOrder.put("repl_order", "");
replOrder.put("repl_order_line", "" );
}
rs.close();rs = null;
pstmt.close(); pstmt = null;
......@@ -690,34 +974,39 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
}
return replOrder;
}
private HashMap isParentExist(String replOrder, Connection conn) throws ITMException
private HashMap isParentExist(String replOrder,int replOrderLine, Connection conn) throws ITMException
{
String sql = "";
String pickOrder = "";
String confirmed = "";
int lineNoPick = 0;
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
ResultSet rs = null, rs1 = null, rs2 = null;
HashMap parentExist = new HashMap();
try
{
sql = "SELECT PICK_ORDER FROM REPL_ORD_DET WHERE REPL_ORDER = ? ";
sql = "SELECT PICK_ORDER, LINE_NO__PICK FROM REPL_ORD_DET WHERE REPL_ORDER = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
pstmt.setInt(2, replOrderLine);
rs = pstmt.executeQuery();
if( rs.next() )
{
pickOrder = checkNull(rs.getString("PICK_ORDER"));
lineNoPick = rs.getInt("LINE_NO__PICK");
}
if( pickOrder.trim().length() > 0)
{
parentExist.put("paren_exist", "YES");
parentExist.put("pick_order", pickOrder);
parentExist.put("line_no__pick", lineNoPick);
}
else
{
parentExist.put("paren_exist", "NO");
parentExist.put("pick_order", " ");
parentExist.put("line_no__pick", "");
}
rs.close();rs = null;
pstmt.close(); pstmt = null;
......@@ -730,9 +1019,11 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
sql = "";
sql = " SELECT RID.REPL_ORDER, RIH.CONFIRMED, RID.ITEM_CODE, RID.LOT_NO, RID.LOT_SL, RID.LOC_CODE__TO, RID.LOC_CODE " +
" FROM REPL_ISS_DET RID, REPL_ISS_HDR RIH WHERE RIH.REPL_ORDER = ? " +
" AND RIH.TRAN_ID = RID.TRAN_ID ";
" AND RIH.TRAN_ID = RID.TRAN_ID AND RID.REPL_ORDER = ? AND RID.LINE_NO__ORD = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, replOrder);
pstmt1.setString(2, replOrder);
pstmt1.setInt(3, replOrderLine);
rs1 = pstmt1.executeQuery();
if( rs1.next() )
{
......@@ -760,9 +1051,10 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
{
//Getting record from repl_order
sql = "";
sql = " SELECT ITEM_CODE, LOC_CODE, LOT_NO, LOT_SL FROM REPL_ORD_DET WHERE REPL_ORDER = ? ";
sql = " SELECT ITEM_CODE, LOC_CODE, LOT_NO, LOT_SL FROM REPL_ORD_DET WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, replOrder);
pstmt2.setInt(2, replOrderLine);
rs2 = pstmt2.executeQuery();
if( rs2.next() )
{
......@@ -831,7 +1123,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
return parentExist;
}
// Updating repl order
private int updateReplOrder(String replOrder, String siteCode, String itemCode, String locCode, String lotNo, String lotSl, double DeallocQty, Connection conn) throws ITMException
private int updateReplOrder(String currentReplOrder,int replOrderLine, String siteCode, String itemCode, String locCode, String lotNo, String lotSl, double DeallocQty, Connection conn, boolean isReplDone, String parentReplOrder, int parentReplOrdLine) throws ITMException
{
String sql = "";
PreparedStatement pstmt = null;
......@@ -839,19 +1131,102 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
int update = 0;
try
{
System.out.println(" currentReplOrder ["+currentReplOrder+"] isReplDone ["+isReplDone+"] parentReplOrder["+parentReplOrder+"]");
//sql = "";
sql = "UPDATE REPL_ORD_DET SET ACTUAL_QTY = ( ACTUAL_QTY + ?) WHERE REPL_ORDER = ? ";
//sql = "UPDATE REPL_ORD_DET SET ACTUAL_QTY = ( ACTUAL_QTY + ?) WHERE REPL_ORDER = ? ";
if( !isReplDone && parentReplOrder.trim().length() == 0)
{
sql = "UPDATE REPL_ORD_DET SET ACTUAL_QTY = ( ACTUAL_QTY + ?), " +
" DEALLOC_QTY = (CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?) WHERE REPL_ORDER = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setDouble(2, DeallocQty );
pstmt.setString(3, currentReplOrder);
pstmt.setInt(4, replOrderLine);
//pstmt2.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(currentReplOrder+" repl_order updated successfully ");
}
pstmt.close();pstmt = null;
}
else if( !isReplDone && parentReplOrder.trim().length() > 0)
{
sql = "UPDATE REPL_ORD_DET SET DEALLOC_QTY = (CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?) WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setDouble(2, DeallocQty );
pstmt.setString(3, currentReplOrder);
pstmt.setInt(4, replOrderLine);
//pstmt2.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(currentReplOrder+" repl_order updated successfully ");
}
pstmt.close();pstmt = null;
sql = "UPDATE REPL_ORD_DET SET ACTUAL_QTY = ( ACTUAL_QTY + ?) WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setDouble(2, DeallocQty );
pstmt.setString(3, parentReplOrder);
pstmt.setInt(4, parentReplOrdLine);
//pstmt2.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(currentReplOrder+" repl_order updated successfully ");
}
pstmt.close();pstmt = null;
sql = "UPDATE REPL_ISS_DET SET DEALLOC_QTY = (CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?) WHERE REPL_ORDER = ? AND LINE_NO__ORD = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setString(2, parentReplOrder);
pstmt.setInt(3, parentReplOrdLine);
//pstmt2.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(currentReplOrder+" repl_order of REPL_ISS_DET updated successfully ");
}
pstmt.close();pstmt = null;
}
else if( isReplDone && parentReplOrder.trim().length() > 0)
{
sql = " UPDATE REPL_ORD_DET SET ACTUAL_QTY = ( ACTUAL_QTY + ?) WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setString(2, replOrder);
pstmt.setString(2, parentReplOrder);
pstmt.setInt(3, parentReplOrdLine);
//pstmt2.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(replOrder+" repl_order updated successfully ");
System.out.println(parentReplOrder+" repl_order of REPL_ORD_DET updated successfully ");
}
pstmt.close();pstmt = null;
sql = "UPDATE REPL_ISS_DET SET DEALLOC_QTY = (CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?) WHERE REPL_ORDER = ? AND LINE_NO__ORD = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setString(2, parentReplOrder);
pstmt.setInt(3, parentReplOrdLine);
//pstmt2.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(currentReplOrder+" repl_order of REPL_ISS_DET updated successfully ");
}
pstmt.close();pstmt = null;
}
}
catch(Exception e)
{
......@@ -876,15 +1251,20 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
return update;
}
private int updatePickOrder(String pickOrder, int pickLineNo, double DeallocQty, Connection conn) throws ITMException
private int updatePickOrder(String pickOrder, int pickLineNo, double DeallocQty, Connection conn, boolean isPickIssueDone,String pickType) throws ITMException
{
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
int update = 0;
boolean isAllDeallocated = false;
try
{
sql = "UPDATE PICK_ORD_DET SET NO_ART = ( NO_ART - 1), QUANTITY = (QUANTITY - ?) WHERE PICK_ORDER = ? AND LINE_NO = ? ";
System.out.println(" inside updatePickOrder *****");
if( !isPickIssueDone )
{
sql = " UPDATE PICK_ORD_DET SET DEALLOC_QTY = ( CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?)" +
" WHERE PICK_ORDER = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setString(2, pickOrder);
......@@ -892,11 +1272,11 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(pickOrder+" pick_order updated successfully ");
System.out.println(pickOrder+" pick_order OF PICK_ORD_DET updated successfully ");
}
pstmt.close();pstmt = null;
sql = "UPDATE PICK_ISS_DET SET NO_ART = ( NO_ART - 1), QUANTITY = (QUANTITY - ?) WHERE PICK_ORDER = ? AND LINE_NO__ORD = ? ";
sql = "UPDATE PICK_ISS_DET SET DEALLOC_QTY = ( CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?) WHERE PICK_ORDER = ? AND LINE_NO__ORD = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setString(2, pickOrder);
......@@ -904,33 +1284,669 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(pickOrder+" pick_order updated successfully ");
System.out.println(pickOrder+" pick_order OF PICK_ISS_DET updated successfully ");
}
pstmt.close();pstmt = null;
}
catch(Exception e)
//Setting status of pick_ord_det if all case deallocated
sql = "SELECT QUANTITY, (CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) AS DEALLOC_QTY " +
" FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
pstmt.setInt(2, pickLineNo);
rs = pstmt.executeQuery();
if( rs.next())
{
e.printStackTrace();
throw new ITMException(e);
}
finally
if( rs.getDouble("QUANTITY") == rs.getDouble("DEALLOC_QTY") )
{
try
isAllDeallocated = true;
}
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
System.out.println(" isAllDeallocated ["+isAllDeallocated+"]");
if(isAllDeallocated)
{
if( pstmt != null)
sql = " UPDATE PICK_ORD_DET SET STATUS = 'C' WHERE PICK_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
pstmt.setInt(2, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
pstmt.close(); pstmt = null;
System.out.println(pickOrder+" status OF PICK_ORD_DET updated successfully ");
}
pstmt.close();pstmt = null;
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
else
{
sql = "UPDATE PICK_ORD_DET SET DEALLOC_QTY = ( CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?) WHERE PICK_ORDER = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setString(2, pickOrder);
pstmt.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(pickOrder+" pick_order OF PICK_ORD_DET updated successfully ");
}
pstmt.close();pstmt = null;
//sql = "UPDATE PICK_ISS_DET SET NO_ART = ( NO_ART - 1), QUANTITY = (QUANTITY - ?) WHERE PICK_ORDER = ? AND LINE_NO__ORD = ? ";
sql = "UPDATE PICK_ISS_DET SET DEALLOC_QTY = ( CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END + ?) WHERE PICK_ORDER = ? AND LINE_NO__ORD = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, DeallocQty );
pstmt.setString(2, pickOrder);
pstmt.setInt(3, pickLineNo);
update = pstmt.executeUpdate();
if( update > 0 )
{
System.out.println(pickOrder+" pick_order OF PICK_ISS_DET updated successfully ");
}
pstmt.close();pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( pstmt != null)
{
pstmt.close(); pstmt = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return update;
}
private int updateWaveTaskDet(String refId, String task, Connection conn , String pickType, String empCode ) throws ITMException
{
String sql = "";
double quantity = 0.0;
PreparedStatement pstmt = null;
ResultSet rs = null;
int update = 0;
java.sql.Timestamp currDate = new java.sql.Timestamp( System.currentTimeMillis() );
try
{
System.out.println(" refId --- ["+refId+"] pick_type ["+pickType+"]");
if( "PICK".equalsIgnoreCase(task))
{
sql = "SELECT SUM(QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) AS QUANTITY FROM PICK_ORD_DET WHERE PICK_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
if( rs.next())
{
quantity = rs.getDouble("QUANTITY");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
System.out.println(" PICK quantity -- ["+quantity+"]");
if( quantity == 0 )
{
sql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y' WHERE REF_ID = ? AND STATUS = 'N'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
update = pstmt.executeUpdate();
pstmt.close(); pstmt = null;
if(update > 0 )
{
System.out.println(refId+ " WAVE_TASK_DET is updated susessfully ");
}
if("M".equalsIgnoreCase(pickType))
{
sql = "UPDATE PACK_HDR SET CONFIRMED = 'Y', CONF_DATE = ?, EMP_CODE__APRV = ? WHERE PICK_ORDER = ?";
pstmt.setTimestamp(1, currDate);
pstmt.setString(2, empCode);
pstmt.setString(3, refId);
if( pstmt.executeUpdate() > 0 )
{
System.out.println(" PACK_HDR confirmed sussccessfully ");
}
pstmt.close(); pstmt = null;
sql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y' WHERE REF_ID IN (SELECT TRAN_ID FROM PACK_HDR WHERE PICK_ORDER = ? ) AND STATUS = 'N'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
update = pstmt.executeUpdate();
pstmt.close(); pstmt = null;
if(update > 0 )
{
System.out.println(refId+ " WAVE_TASK_DET is updated susessfully ");
}
}
}
}
else if( "REPL".equalsIgnoreCase(task))
{
sql = "SELECT SUM(QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) AS QUANTITY FROM REPL_ORD_DET WHERE REPL_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
if( rs.next())
{
quantity = rs.getDouble("QUANTITY");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
System.out.println(" REPL quantity -- ["+quantity+"]");
if( quantity == 0 )
{
sql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y' WHERE REF_ID = ? AND STATUS = 'N'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
update = pstmt.executeUpdate();
}
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close(); rs = null;
}
if(pstmt != null )
{
pstmt.close(); pstmt = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return update;
}
//Changed by sumit on 13/03/12 to reterive shipper size start
private HashMap getItemVoumeMap(String itemCode,String lotNo,Connection con)throws Exception
{
double shipperSize = 0,itemVolume = 0,caseVolume = 0;
PreparedStatement pstmt = null;
String sql="";
ResultSet rs = null;
double itmLen = 0,itmWidth = 0,itmHeight = 0,itemGrossWeight = 0,lotLen = 0 ,lotHeight = 0,lotWidth = 0,caseGrossWeight = 0,itemNetWeight = 0, caseNetWeight = 0;
HashMap dataVolumeMap = new HashMap();
try {
sql = "SELECT I.LENGTH ITEM_LEN,I.WIDTH ITEM_WID,I.HEIGHT ITEM_HEIGHT,I.GROSS_WEIGHT ITEM_GROSS_WEIGHT,I.NET_WEIGHT ITEM_NET_WEIGHT,"
+" L.LENGTH LITEM_LEN,L.WIDTH LITEM_WID,L.HEIGHT LITEM_HEIGHT,L.SHIPPER_SIZE SHIPSIZE,L.GROSS_WEIGHT CASE_GROSS_WEIGHT,L.NET_WEIGHT CASE_NET_WEIGHT FROM"
+" ITEM I,ITEM_LOT_PACKSIZE L"
+" WHERE I.ITEM_CODE = L.ITEM_CODE"
+" AND L.LOT_NO__FROM <= ? AND L.LOT_NO__TO >= ?"
+" AND I.ITEM_CODE = ?";
pstmt = con.prepareStatement(sql);
if(lotNo != null && lotNo.length() > 0)
{
pstmt.setString(1, lotNo);
pstmt.setString(2, lotNo);
}
else
{
pstmt.setString(1, "00");
pstmt.setString(2, "ZZ");
}
pstmt.setString(3, itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
itmLen = rs.getDouble("ITEM_LEN");
itmWidth = rs.getDouble("ITEM_WID");
itmHeight = rs.getDouble("ITEM_HEIGHT");
itemGrossWeight = rs.getDouble("ITEM_GROSS_WEIGHT"); //GROSS_WEIGHT
lotLen = rs.getDouble("LITEM_LEN");
lotWidth = rs.getDouble("LITEM_WID");
lotHeight = rs.getDouble("LITEM_HEIGHT");
shipperSize = rs.getDouble("SHIPSIZE");
caseGrossWeight = rs.getDouble("CASE_GROSS_WEIGHT");
itemNetWeight = rs.getDouble("ITEM_NET_WEIGHT"); // NET_WEIGHT
caseNetWeight = rs.getDouble("CASE_NET_WEIGHT");
}
//shipperSize = (lotHeight * lotWidth * lotLen)/(itmLen * itmWidth * itmHeight);
itemVolume = (itmLen * itmWidth * itmHeight);
caseVolume = (lotHeight * lotWidth * lotLen);
dataVolumeMap.put("SHIPPER_SIZE", shipperSize);
dataVolumeMap.put("ITEM_VOLUME", itemVolume);
dataVolumeMap.put("CASE_VOLUME", caseVolume);
dataVolumeMap.put("ITEM_GROSS_WEIGHT", itemGrossWeight);
dataVolumeMap.put("CASE_GROSS_WEIGHT", caseGrossWeight);
dataVolumeMap.put("ITEM_NET_WEIGHT", itemNetWeight);
dataVolumeMap.put("CASE_NET_WEIGHT", caseNetWeight);
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
} catch (Exception e) {
// TODO: handle exception
throw e;
}
finally
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
return dataVolumeMap;
}
//Changed by sumit on 13/03/12 to reterive shipper size end
//Changed by sumit on 14/03/12 to findding type of pick start
private String checkForReplOrPick(String refId, Connection conn )throws ITMException
{
String task = "";
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
sql = " SELECT PICK_ORDER FROM PICK_ORD_HDR WHERE PICK_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
if( rs.next())
{
task = "PICK";
}
else
{
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
if( rs != null)
{
rs.close(); rs =null;
}
sql = " SELECT REPL_ORDER FROM REPL_ORD_HDR WHERE REPL_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
if( rs.next())
{
task = "REPL";
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
}
if( rs != null)
{
rs.close(); rs = null;
}
if( pstmt != null)
{
pstmt.close(); pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( rs != null)
{
rs.close(); rs = null;
}
if( pstmt != null)
{
pstmt.close(); pstmt = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return task;
}
private String updateReplOrderForActive(String pickType, String replOrder,int replLine, String empCode, Connection conn) throws ITMException
{
String sql = "";
double quantity = 0.0;
PreparedStatement pstmt = null;
ResultSet rs = null;
java.sql.Timestamp currDate = new java.sql.Timestamp( System.currentTimeMillis() );
try
{
if("A".equalsIgnoreCase(pickType))
{
sql = " SELECT SUM(ROD.QUANTITY - CASE WHEN ROD.ACTUAL_QTY IS NULL THEN 0 ELSE ROD.ACTUAL_QTY END ) AS QUANTITY " +
" FROM REPL_ORD_DET ROD, REPL_ORD_HDR ROH WHERE ROD.REPL_ORDER = ? AND ROD.LINE_NO = ? " +
" AND ROH.REPL_ORDER = ROD.REPL_ORDER AND ROH.ORDER_TYPE = 'Q' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
pstmt.setInt(2, replLine);
rs = pstmt.executeQuery();
if( rs.next())
{
quantity = rs.getDouble("QUANTITY");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if( quantity == 0)
{
sql = " UPDATE REPL_ORD_DET SET CANCEL_MODE = 'Y', ACTUAL_QTY = 0 WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
pstmt.setInt(2, replLine);
if( pstmt.executeUpdate() > 0 )
{
System.out.println(" REPL_ORD_DET updated succesfully");
}
pstmt.close(); pstmt = null;
}
sql = " SELECT SUM(ROD.QUANTITY - CASE WHEN ROD.ACTUAL_QTY IS NULL THEN 0 ELSE ROD.ACTUAL_QTY END ) AS QUANTITY " +
" FROM REPL_ORD_DET ROD, REPL_ORD_HDR ROH WHERE ROD.REPL_ORDER = ? AND ROH.REPL_ORDER = ROD.REPL_ORDER AND ROH.ORDER_TYPE = 'Q' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
rs = pstmt.executeQuery();
if( rs.next() )
{
quantity = rs.getDouble("QUANTITY");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if(quantity == 0)
{
sql = " UPDATE REPL_ISS_HDR SET CONFIRMED ='Y', CONF_DATE = ? , EMP_CODE__APRV = ? WHERE REPL_ORDER = ? AND CONFIRMED = 'N'";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, currDate);
pstmt.setString(2, empCode);
pstmt.setString(3, replOrder);
if( pstmt.executeUpdate() > 0 )
{
System.out.println(" confirmed sussccessfully ");
}
pstmt.close(); pstmt = null;
sql = " UPDATE WAVE_TASK_DET SET STATUS ='Y' WHERE REF_ID = ? AND STATUS = 'N'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
if ( pstmt.executeUpdate() > 0)
{
System.out.println(" wave_task_det updated succesfully");
}
pstmt.close(); pstmt = null;
}
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( rs != null)
{
rs.close(); rs = null;
}
if( pstmt != null)
{
pstmt.close(); pstmt = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return null;
}
private String deallocatedRepl(String refId, int pickLineNo,String siteCode, String itemCode, String lotNo, String lotSl, double DeallocQty,String saleOrder, String saleOrderLine, String expLev,String custCode,String xtraParams,String waveId,Connection conn) throws ITMException
{
String sql = "";
String confirmed ="";
String pickType = "";
String locCode ="";
String locCodeTo = "";
String replOrder = "";
String currentRepl = "";
int currReplLineNo = 0;
String errString = "";
//String lotNo = "";
// lotSl = "";
int replOrderLine = 0;
boolean isIssueDone = false;
PreparedStatement pstmt = null, pstmt2 = null;
ResultSet rs = null; // rs2 = null;
//HashMap replIss = new HashMap();
//HashMap stockDetail = new HashMap();
try
{
sql = " SELECT RIH.CONFIRMED, RID.LOC_CODE__TO FROM REPL_ISS_HDR RIH, REPL_ISS_DET RID WHERE RIH.REPL_ORDER = ? AND RID.LINE_NO__ORD = ? " +
" AND RIH.REPL_ORDER = RID.REPL_ORDER ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
pstmt.setInt(1, pickLineNo);
rs = pstmt.executeQuery();
confirmed = "";
if( rs.next())
{
confirmed = rs.getString("CONFIRMED");
System.out.println(" confirmed["+confirmed+"]");
if( "Y".equalsIgnoreCase(confirmed))
{
locCode = rs.getString("LOC_CODE__TO");
isIssueDone = true;
//return locCode;
}
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if( !isIssueDone )
{
/*replIss = new HashMap();
replIss = isParentReplExist(pickOrder, pickLineNo, conn);
if("YES".equalsIgnoreCase(replIss.get("isRepl").toString()))
{*/
//replOrder = replIss.get("repl_order").toString();
//System.out.println(" 88 replOrder ["+replOrder+"]"); line_no__pick
HashMap replParent = new HashMap();
replParent = isParentExist(refId,pickLineNo, conn);
replOrder = replParent.get("pick_order").toString();
replOrderLine = Integer.parseInt(replParent.get("line_no__pick").toString());
confirmed = replParent.get("confirmed").toString();//confirmed
System.out.println(" confirmed ["+confirmed+"] paren_exist ["+replParent.get("paren_exist").toString()+"] repl_order ["+replOrder+"] replOrderLine ["+replOrderLine+"]");
if("Y".equalsIgnoreCase(replParent.get("confirmed").toString()))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
/*stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", refId);
stockDetail.put("ref_line_no", pickLineNo);*/
updateReplOrder(replOrder, replOrderLine, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, true, "", 0);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
/*stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replParent.get("pick_order").toString());
stockDetail.put("ref_line_no", replOrderLine);*/
updateReplOrder(replOrder, replOrderLine, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, false, "", 0);
}
else if ( "N".equalsIgnoreCase(confirmed) && "YES".equalsIgnoreCase(replParent.get("paren_exist").toString()))
{
System.out.println(" repl order going to search it's ["+replOrder+"] parent ");
currentRepl = replOrder;
currReplLineNo = replOrderLine;
replOrder = "";
replOrder = replParent.get("pick_order").toString();
replOrderLine = Integer.parseInt(replParent.get("line_no__pick").toString());
System.out.println(" new repl order going to serch it's parent ["+replOrder+"] replOrderLine ["+replOrderLine+"]");
replParent.clear();
//replParent = isParentExistAndConfirmed(replOrder,replOrderLine, conn);
replParent = isParentExist(replOrder,replOrderLine, conn);
confirmed = "";
confirmed = replParent.get("confirmed").toString();
System.out.println(" *-* confirmed ["+confirmed+"]");
if("Y".equalsIgnoreCase(confirmed))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
/*stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replOrder);
stockDetail.put("ref_line_no", replOrderLine);*/
updateReplOrder(currentRepl, currReplLineNo, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, true, replOrder, replOrderLine);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
/*stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replParent.get("pick_order").toString());
stockDetail.put("ref_line_no", replOrderLine);*/
updateReplOrder(currentRepl, currReplLineNo, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, true, replOrder, replOrderLine);
}
}
}
else
{
/*sql = "SELECT LOC_CODE FROM REPL_ORD_DET WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,refId);
pstmt.setInt(2, pickLineNo);
rs = pstmt.executeQuery();
if( rs.next())
{
locCode = rs.getString("");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;*/
/*stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", refId);
stockDetail.put("ref_line_no", pickLineNo);*/
updateReplOrder(refId, pickLineNo, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn, true, replOrder, replOrderLine);
}
System.out.println(" final locCode ["+locCode+"]");
errString = sorderDeAllocate(saleOrder, saleOrderLine, itemCode, DeallocQty, expLev, custCode, lotSl, lotNo, locCode, xtraParams, waveId, "");
if (errString != null && errString.trim().length() > 0)
{
System.out.println("errString :"+errString);
return errString;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( rs != null )
{
rs.close(); rs = null;
}
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
}
catch( Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return errString;
}
}
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
@javax.ejb.Local
public interface DeallocArtConfLocal extends ActionHandlerLocal
{
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String confirm( String tranId, String xtraParams, String forcedFlag )throws RemoteException,ITMException;
public String confirm( String tranId, String xtraParams, String forcedFlag, Connection conn, boolean conStat )throws RemoteException,ITMException;
}
package ibase.webitm.ejb.wms;
import java.rmi.RemoteException;
import java.sql.Connection;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ActionHandlerRemote;
@javax.ejb.Remote
public interface DeallocArtConfRemote extends ActionHandlerRemote
{
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String confirm( String tranId, String xtraParams, String forcedFlag )throws RemoteException,ITMException;
public String confirm( String tranId, String xtraParams, String forcedFlag, Connection conn, boolean conStat )throws RemoteException,ITMException;
}
\ No newline at end of file
......@@ -191,7 +191,7 @@ public class DeallocArtIC extends ValidatorEJB implements DeallocArtICRemote, De
if( "N".equalsIgnoreCase(holdStatus) && "N".equalsIgnoreCase(cancelStatus))
{
sql = "";
/*sql = "";
sql = "SELECT WAVE_ID, PTCN, REF_TYPE FROM WAVE_TASK_DET WHERE PTCN = ? AND REF_TYPE IN (?,?) ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, ptcn);
......@@ -205,7 +205,7 @@ public class DeallocArtIC extends ValidatorEJB implements DeallocArtICRemote, De
break;
}
rs1.close(); rs1 = null;
pstmt1.close(); pstmt1 = null;
pstmt1.close(); pstmt1 = null;*/
if("A".equalsIgnoreCase(editFlag))
{
......@@ -215,19 +215,20 @@ public class DeallocArtIC extends ValidatorEJB implements DeallocArtICRemote, De
" FROM CARTON_MASTER CM, PICK_ORD_DET POD , PICK_ORD_HDR POH, WAVE_TASK_DET WTD WHERE CM.PTCN = ? " +
" AND CM.PICK_ORDER = POD.PICK_ORDER AND POH.PICK_ORDER = POD.PICK_ORDER " +
" AND CM.LINE_NO__PICK = POD.LINE_NO AND WTD.PTCN = CM.PTCN " +
" AND WTD.REF_ID = CM.PICK_ORDER AND POH.PICK_TYPE IN (?,?) ";
" AND WTD.REF_ID = CM.PICK_ORDER ";
//" AND POH.PICK_TYPE IN (?,?) ";
//" AND ( FN_CHECK_DEALLOC_ARTDET(CM.PTCN, CM.CARTON_NO ) = 0 ) "+
//" AND CM.STATUS <> ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, ptcn);
pstmt1.setString(2, "C");
pstmt1.setString(3, "M");
//pstmt1.setString(2, "C");
//pstmt1.setString(3, "M");
//pstmt1.setString(4, "R");
rs1 = pstmt1.executeQuery();
if( !rs1.next() )
{
errList.add( "INVPTCASAD" ); //do not have case pick task in this ptcn
errList.add( "INVPTCASAD" );
errFields.add( childNodeName.toLowerCase() );
break;
}
......@@ -705,7 +706,7 @@ public class DeallocArtIC extends ValidatorEJB implements DeallocArtICRemote, De
{
String userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
String chgTerm = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "chgTerm" );
siteCode = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "site_code" );
DateFormat dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
String dbDateFormat = genericUtility.getDBDateFormat();
String applDateFormat = genericUtility.getApplDateFormat();
......@@ -728,7 +729,26 @@ public class DeallocArtIC extends ValidatorEJB implements DeallocArtICRemote, De
case 1:
{
valueXmlString.append( "<Detail1>\r\n" );
if( currentColumn.trim().equalsIgnoreCase( "itm_defaultedit" ) )
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
{
valueXmlString.append( "<site_code><![CDATA[" ).append( siteCode ).append( "]]></site_code>\r\n" );
valueXmlString.append( "<cust_code__fr><![CDATA[" ).append( "00" ).append( "]]></cust_code__fr>\r\n" );
valueXmlString.append( "<cust_code__to><![CDATA[" ).append( "ZZ" ).append( "]]></cust_code__to>\r\n" );
valueXmlString.append( "<cust_code__dlv_fr><![CDATA[" ).append( "00" ).append( "]]></cust_code__dlv_fr>\r\n" );
valueXmlString.append( "<cust_code__dlv_to><![CDATA[" ).append( "ZZ" ).append( "]]></cust_code__dlv_to>\r\n" );
valueXmlString.append( "<item_ser__fr><![CDATA[" ).append( "00" ).append( "]]></item_ser__fr>\r\n" );
valueXmlString.append( "<item_ser__to><![CDATA[" ).append( "ZZ" ).append( "]]></item_ser__to>\r\n" );
valueXmlString.append( "<item_code__fr><![CDATA[" ).append( "00" ).append( "]]></item_code__fr>\r\n" );
valueXmlString.append( "<item_code__to><![CDATA[" ).append( "ZZ" ).append( "]]></item_code__to>\r\n" );
valueXmlString.append( "<lot_no__fr><![CDATA[" ).append( "00" ).append( "]]></lot_no__fr>\r\n" );
valueXmlString.append( "<lot_no__to><![CDATA[" ).append( "ZZ" ).append( "]]></lot_no__to>\r\n" );
valueXmlString.append( "<sale_order__fr><![CDATA[" ).append( "00" ).append( "]]></sale_order__fr>\r\n" );
valueXmlString.append( "<sale_order__to><![CDATA[" ).append( "ZZ" ).append( "]]></sale_order__to>\r\n" );
valueXmlString.append( "<carton_no__fr><![CDATA[" ).append( "00" ).append( "]]></carton_no__fr>\r\n" );
valueXmlString.append( "<carton_no__to><![CDATA[" ).append( "ZZ" ).append( "]]></carton_no__to>\r\n" );
}
else if( currentColumn.trim().equalsIgnoreCase( "itm_defaultedit" ) )
{
tranID = genericUtility.getColumnValue( "tran_id", currDom );
System.out.println("tranID ["+tranID+"]");
......@@ -746,9 +766,13 @@ public class DeallocArtIC extends ValidatorEJB implements DeallocArtICRemote, De
valueXmlString.append( "<ptcn protect ='1'><![CDATA[" ).append( ptcn ).append( "]]></ptcn>\r\n" );
}
else if( currentColumn.trim().equalsIgnoreCase( "itm_default" ) )
else if( currentColumn.trim().equalsIgnoreCase( "sale_order__fr" ) )
{
//valueXmlString.append( "<confirmed><![CDATA[" ).append( "N" ).append( "]]></confirmed>\r\n" );
}
else if( currentColumn.trim().equalsIgnoreCase( "sale_order__to" ) )
{
valueXmlString.append( "<confirmed><![CDATA[" ).append( "N" ).append( "]]></confirmed>\r\n" );
//valueXmlString.append( "<confirmed><![CDATA[" ).append( "N" ).append( "]]></confirmed>\r\n" );
}
else if("ptcn".equalsIgnoreCase(currentColumn.trim()))
{
......
......@@ -111,6 +111,26 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
String ptcn ="";
String lineNoSord = "";
String siteCode = "";
String pickType = "";
String pickOrder = "";
String saleOrderFr = "";
String saleOrderTo = "";
String custCodeFr = "";
String custCodeTo = "";
String custCodeDlvFr = "";
String custCodeDlvTo = "";
String itemSerFr = "";
String itemSerTo = "";
String itemCodeFr = "";
String itemCodeTo = "";
String lotNoFr = "";
String lotNoTo = "";
String cartonNoFr = "";
String cartonNoTo = "";
String locCode = "";
String replOrPick = "";
String itemCode = "", tempItemCode = "";
int lineNoPick = 0;
double quantity = 0.0;
Connection conn = null;
......@@ -118,7 +138,7 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
ResultSet rs1 = null;
PreparedStatement pstmt = null;
Statement st = null;
HashMap stockDetail = new HashMap();
StringBuffer retTabSepStrBuff = new StringBuffer();
try
......@@ -128,44 +148,268 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "site_code");
ptcn = genericUtility.getColumnValue("ptcn",headerDom);
/*ptcn = genericUtility.getColumnValue("ptcn",headerDom);
if ( ptcn == null || ptcn.trim().length() == 0 )
{
ptcn = "";
System.out.println("PTCN From is Null...");
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
} */
saleOrderFr = genericUtility.getColumnValue("sale_order__fr",headerDom);
if ( saleOrderFr == null || saleOrderFr.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
saleOrderTo = genericUtility.getColumnValue("sale_order__to",headerDom);
if ( saleOrderTo == null || saleOrderTo.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
custCodeFr = genericUtility.getColumnValue("cust_code__fr",headerDom);
if ( custCodeFr == null || custCodeFr.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
custCodeTo = genericUtility.getColumnValue("cust_code__to",headerDom);
if ( custCodeTo == null || custCodeTo.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
custCodeDlvFr = genericUtility.getColumnValue("cust_code__dlv_fr",headerDom);
if ( custCodeDlvFr == null || custCodeDlvFr.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
custCodeDlvTo = genericUtility.getColumnValue("cust_code__dlv_to",headerDom);
if ( custCodeDlvTo == null || custCodeDlvTo.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
itemSerFr = genericUtility.getColumnValue("item_ser__fr",headerDom);
if ( itemSerFr == null || itemSerFr.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
itemSerTo = genericUtility.getColumnValue("item_ser__to",headerDom);
if ( itemSerTo == null || itemSerTo.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
itemCodeFr = genericUtility.getColumnValue("item_code__fr",headerDom);
if ( itemCodeFr == null || itemCodeFr.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
itemCodeTo = genericUtility.getColumnValue("item_code__to",headerDom);
if ( itemCodeTo == null || itemCodeTo.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
lotNoFr = genericUtility.getColumnValue("lot_no__fr",headerDom);
if ( lotNoFr == null || lotNoFr.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
lotNoTo = genericUtility.getColumnValue("lot_no__to",headerDom);
if ( lotNoTo == null || lotNoTo.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
cartonNoFr = genericUtility.getColumnValue("carton_no__fr",headerDom);
if ( cartonNoFr == null || cartonNoFr.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
cartonNoTo = genericUtility.getColumnValue("carton_no__to",headerDom);
if ( cartonNoTo == null || cartonNoTo.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMRPPARM","","",conn);
return errString;
}
getDataSql = " SELECT CM.CARTON_NO, POD.SALE_ORDER, POD.LINE_NO__SORD, CM.PICK_ORDER, CM.LINE_NO__PICK, " +
" POD.ITEM_CODE, POD.LOC_CODE, POD.LOT_NO, POD.LOT_SL, WTD.WAVE_ID, POH.PICK_TYPE " +
/*getDataSql = " SELECT CM.CARTON_NO, POD.SALE_ORDER, POD.LINE_NO__SORD, CM.PICK_ORDER, CM.LINE_NO__PICK, " +
" POD.ITEM_CODE, POD.LOC_CODE, POD.LOT_NO, POD.LOT_SL, WTD.WAVE_ID, POH.PICK_TYPE , POD.QUANTITY " +
" FROM CARTON_MASTER CM, PICK_ORD_DET POD , PICK_ORD_HDR POH, WAVE_TASK_DET WTD WHERE CM.PTCN = ? " +
" AND CM.PICK_ORDER = POD.PICK_ORDER AND POH.PICK_ORDER = POD.PICK_ORDER " +
" AND CM.LINE_NO__PICK = POD.LINE_NO AND WTD.PTCN = CM.PTCN " +
" AND WTD.REF_ID = CM.PICK_ORDER AND POH.PICK_TYPE IN (?,?) " +
" AND ( FN_CHECK_DEALLOC_ARTDET(CM.PTCN, CM.CARTON_NO ) = 0 ) "+
" AND CM.STATUS <> ? AND CM.CARTON_TYPE = 'C' ORDER BY CM.CARTON_NO ";
" AND WTD.REF_ID = CM.PICK_ORDER " +
" AND POH.PICK_TYPE IN (?,?) " +
//" AND ( FN_CHECK_DEALLOC_ARTDET(CM.PTCN, CM.CARTON_NO ) = 0 ) "+
" AND CM.STATUS <> ? ORDER BY CM.CARTON_NO ";*/
getDataSql = " SELECT CM.CARTON_NO, POD.SALE_ORDER, POD.LINE_NO__SORD, CM.PICK_ORDER, CM.LINE_NO__PICK," +
" POD.ITEM_CODE, POD.LOC_CODE, POD.LOT_NO, POD.LOT_SL, WTD.WAVE_ID, POD.QUANTITY , CUSTOMER.CUST_CODE, " +
" SORDER.ITEM_SER, WTD.PTCN, POH.PICK_TYPE FROM CARTON_MASTER CM, PICK_ORD_DET POD , PICK_ORD_HDR POH, WAVE_TASK_DET WTD , " +
" WAVE_TASK WAVE_TASK, SORDER SORDER, CUSTOMER CUSTOMER , DESPATCH DESPATCH " +
" WHERE CM.PICK_ORDER = POD.PICK_ORDER " +
" AND POH.PICK_ORDER = POD.PICK_ORDER " +
" AND CM.LINE_NO__PICK = POD.LINE_NO AND WTD.PTCN = CM.PTCN " +
" AND WTD.REF_ID = CM.PICK_ORDER " +
" AND POH.PICK_TYPE IN ('C','M') " +
" AND SORDER.SITE_CODE__SHIP = ? "+
" AND SORDER.SALE_ORDER >= ? AND SORDER.SALE_ORDER <= ? " +
" AND CUSTOMER.CUST_CODE >= ? AND CUSTOMER.CUST_CODE <= ? " +
" AND SORDER.CUST_CODE__DLV >= ? AND SORDER.CUST_CODE__DLV <= ? " +
" AND SORDER.ITEM_SER >= ? AND SORDER.ITEM_SER <= ? "+
" AND POD.ITEM_CODE >= ? AND POD.ITEM_CODE <= ? " +
" AND POD.LOT_NO >= ? AND POD.LOT_NO <= ? " +
" AND CM.CARTON_NO >= ? AND CM.CARTON_NO <= ? " +
" AND SORDER.SALE_ORDER = POH.SALE_ORDER " +
" AND SORDER.CUST_CODE = CUSTOMER.CUST_CODE " +
" AND WAVE_TASK.WAVE_ID = WTD.WAVE_ID " +
" AND DESPATCH.WAVE_ID = WAVE_TASK.WAVE_ID " +
" AND DESPATCH.SORD_NO = WTD.SALE_ORDER " +
" AND DESPATCH.CONFIRMED <> 'Y' AND WAVE_TASK.CANCEL <> 'Y' " +
" AND CM.STATUS <> 'R' AND CM.CARTON_TYPE = 'C' "+
/////////////////////////////////////
" UNION ALL "+
" SELECT DISTINCT CM.CARTON_NO, POD.SALE_ORDER, POD.LINE_NO__SORD, POD.PICK_ORDER, POD.LINE_NO, " +
" POD.ITEM_CODE, POD.LOC_CODE, POD.LOT_NO, POD.LOT_SL, WTD.WAVE_ID, (POD.QUANTITY - CASE WHEN POD.DEALLOC_QTY IS NULL THEN 0 ELSE POD.DEALLOC_QTY END) AS QUANTITY , CUSTOMER.CUST_CODE, " +
" SORDER.ITEM_SER, WTD.PTCN, POH.PICK_TYPE FROM CARTON_MASTER CM, PICK_ORD_DET POD , PICK_ORD_HDR POH, WAVE_TASK_DET WTD, " +
" WAVE_TASK WAVE_TASK, SORDER SORDER, CUSTOMER CUSTOMER , DESPATCH DESPATCH " +
" WHERE CM.PICK_ORDER = POD.PICK_ORDER AND POH.PICK_ORDER = POD.PICK_ORDER " +
//" AND CM.LINE_NO__PICK = POD.LINE_NO
" AND WTD.PTCN = CM.PTCN AND WTD.REF_ID = CM.PICK_ORDER " +
" AND POH.PICK_TYPE = 'A' " +
" AND SORDER.SITE_CODE__SHIP = ? " +
" AND SORDER.SALE_ORDER >= ? AND SORDER.SALE_ORDER <= ? " +
" AND CUSTOMER.CUST_CODE >= ? AND CUSTOMER.CUST_CODE <= ? " +
" AND SORDER.CUST_CODE__DLV >= ? AND SORDER.CUST_CODE__DLV <= ? " +
" AND SORDER.ITEM_SER >= ? AND SORDER.ITEM_SER <= ? " +
" AND POD.ITEM_CODE >= ? AND POD.ITEM_CODE <= ? " +
" AND POD.LOT_NO >= ? AND POD.LOT_NO <= ? " +
" AND CM.CARTON_NO >= ? AND CM.CARTON_NO <= ? " +
" AND SORDER.SALE_ORDER = POH.SALE_ORDER " +
" AND SORDER.CUST_CODE = CUSTOMER.CUST_CODE " +
" AND WAVE_TASK.WAVE_ID = WTD.WAVE_ID " +
" AND DESPATCH.WAVE_ID = WAVE_TASK.WAVE_ID " +
" AND DESPATCH.SORD_NO = WTD.SALE_ORDER " +
" AND DESPATCH.CONFIRMED <> 'Y' AND WAVE_TASK.CANCEL <> 'Y' " +
" AND CM.STATUS <> 'R' AND CM.CARTON_TYPE = 'A' " +
" AND (POD.QUANTITY - CASE WHEN POD.DEALLOC_QTY IS NULL THEN 0 ELSE POD.DEALLOC_QTY END) > 0 "+
/////////////////////////////////////
" UNION ALL "+
" SELECT CM.CARTON_NO, ROD.SALE_ORDER, ROD.LINE_NO__SORD, CM.PICK_ORDER, CM.LINE_NO__PICK, ROD.ITEM_CODE, ROD.LOC_CODE, ROD.LOT_NO, ROD.LOT_SL," +
" WTD.WAVE_ID, ROD.QUANTITY, CUSTOMER.CUST_CODE, SORDER.ITEM_SER, WTD.PTCN, ' ' AS PICK_TYPE " +
" FROM CARTON_MASTER CM, REPL_ORD_DET ROD , REPL_ORD_HDR ROH, WAVE_TASK_DET WTD ," +
" WAVE_TASK WAVE_TASK, SORDER SORDER, CUSTOMER CUSTOMER , DESPATCH DESPATCH " +
" WHERE CM.PICK_ORDER = ROD.REPL_ORDER AND ROH.REPL_ORDER = ROD.REPL_ORDER " +
" AND CM.LINE_NO__PICK = ROD.LINE_NO AND WTD.PTCN = CM.PTCN " +
" AND WTD.REF_ID = CM.PICK_ORDER " +
" AND SORDER.SITE_CODE__SHIP = ? " +
" AND SORDER.SALE_ORDER >= ? AND SORDER.SALE_ORDER <= ?" +
" AND CUSTOMER.CUST_CODE >= ? AND CUSTOMER.CUST_CODE <= ? " +
" AND SORDER.CUST_CODE__DLV >= ? AND SORDER.CUST_CODE__DLV <= ? " +
" AND SORDER.ITEM_SER >= ? AND SORDER.ITEM_SER <= ? " +
" AND ROD.ITEM_CODE >= ? AND ROD.ITEM_CODE <= ? " +
" AND ROD.LOT_NO >= ? AND ROD.LOT_NO <= ? " +
" AND CM.CARTON_NO >= ? AND CM.CARTON_NO <= ? " +
" AND SORDER.SALE_ORDER = ROH.SALE_ORDER " +
" AND SORDER.CUST_CODE = CUSTOMER.CUST_CODE " +
" AND WAVE_TASK.WAVE_ID = WTD.WAVE_ID " +
" AND DESPATCH.WAVE_ID = WAVE_TASK.WAVE_ID " +
" AND DESPATCH.SORD_NO = WTD.SALE_ORDER " +
" AND DESPATCH.CONFIRMED <> 'Y' AND WAVE_TASK.CANCEL <> 'Y' " +
" AND CM.STATUS <> 'R' AND CM.CARTON_TYPE = 'S'";
pstmt = conn.prepareStatement(getDataSql);
pstmt.setString(1, ptcn);
pstmt.setString(2, "C");//FOR CASE PICK
pstmt.setString(3, "M");// FOR MASTER PICK
pstmt.setString(4, "R");
pstmt.setString(1, siteCode);
pstmt.setString(2,saleOrderFr);
pstmt.setString(3,saleOrderTo);
pstmt.setString(4,custCodeFr);
pstmt.setString(5,custCodeTo);
pstmt.setString(6,custCodeDlvFr);
pstmt.setString(7,custCodeDlvTo);
pstmt.setString(8,itemSerFr);
pstmt.setString(9,itemSerTo);
pstmt.setString(10,itemCodeFr);
pstmt.setString(11,itemCodeTo);
pstmt.setString(12,lotNoFr);
pstmt.setString(13,lotNoTo);
pstmt.setString(14,cartonNoFr);
pstmt.setString(15,cartonNoTo);
pstmt.setString(16, siteCode);
pstmt.setString(17,saleOrderFr);
pstmt.setString(18,saleOrderTo);
pstmt.setString(19,custCodeFr);
pstmt.setString(20,custCodeTo);
pstmt.setString(21,custCodeDlvFr);
pstmt.setString(22,custCodeDlvTo);
pstmt.setString(23,itemSerFr);
pstmt.setString(24,itemSerTo);
pstmt.setString(25,itemCodeFr);
pstmt.setString(26,itemCodeTo);
pstmt.setString(27,lotNoFr);
pstmt.setString(28,lotNoTo);
pstmt.setString(29,cartonNoFr);
pstmt.setString(30,cartonNoTo);
pstmt.setString(31, siteCode);
pstmt.setString(32,saleOrderFr);
pstmt.setString(33,saleOrderTo);
pstmt.setString(34,custCodeFr);
pstmt.setString(35,custCodeTo);
pstmt.setString(36,custCodeDlvFr);
pstmt.setString(37,custCodeDlvTo);
pstmt.setString(38,itemSerFr);
pstmt.setString(39,itemSerTo);
pstmt.setString(40,itemCodeFr);
pstmt.setString(41,itemCodeTo);
pstmt.setString(42,lotNoFr);
pstmt.setString(43,lotNoTo);
pstmt.setString(44,cartonNoFr);
pstmt.setString(45,cartonNoTo);
rs = pstmt.executeQuery();
if( rs.next() )
{
do
{
pickType = checkNull(rs.getString("PICK_TYPE"));
lineNoSord = rs.getString("LINE_NO__SORD");
pickOrder = rs.getString("PICK_ORDER");
lineNoPick = rs.getInt("LINE_NO__PICK");
itemCode = rs.getString("ITEM_CODE");
replOrPick = checkForReplOrPick(pickOrder, conn);
System.out.println(" replOrPick ["+replOrPick+"]");
if( "PICK".equalsIgnoreCase(replOrPick))
{
stockDetail.clear();
stockDetail = getLocCodForPick(pickOrder, lineNoPick, conn);
}
else if( "REPL".equalsIgnoreCase(replOrPick))
{
stockDetail.clear();
stockDetail = getLocCodForRepl(pickOrder, lineNoPick, conn);
pickType = "S";
}
System.out.println(" stockDetail "+stockDetail);
//PTCN
retTabSepStrBuff.append(ptcn).append("\t");
//WAVE_ID
retTabSepStrBuff.append(rs.getString("WAVE_ID")).append("\t");
//SITE_CODE
retTabSepStrBuff.append(siteCode).append("\t");
//PTCN
retTabSepStrBuff.append(rs.getString("PTCN")).append("\t");
//SALE_ORDER
retTabSepStrBuff.append(rs.getString("SALE_ORDER")).append("\t");
......@@ -180,21 +424,50 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
retTabSepStrBuff.append(rs.getString("CARTON_NO")).append("\t");
//PICK_ORDER
retTabSepStrBuff.append(rs.getString("PICK_ORDER")).append("\t");
retTabSepStrBuff.append(stockDetail.get("ref_id").toString()).append("\t");
//LINE_NO__PICK
retTabSepStrBuff.append(rs.getString("LINE_NO__PICK")).append("\t");
retTabSepStrBuff.append(stockDetail.get("ref_line_no").toString()).append("\t");
//ITEM_CODE
retTabSepStrBuff.append(rs.getString("ITEM_CODE")).append("\t");
retTabSepStrBuff.append(itemCode).append("\t");
//LOC_CODE
locCode = stockDetail.get("loc_code").toString();
retTabSepStrBuff.append(locCode).append("\t");
//LOT_NO
retTabSepStrBuff.append(rs.getString("LOT_NO")).append("\t");
//QUANTITY
HashMap itmVolumeMap = getItemVoumeMap(rs.getString("ITEM_CODE"),"",conn);
if("A".equalsIgnoreCase(pickType) || "S".equalsIgnoreCase(pickType))
{
quantity = rs.getDouble("QUANTITY");
}
else
{
System.out.println(" tempItemCode ["+tempItemCode+"] itemcode ["+itemCode+"]");
if(!tempItemCode.equalsIgnoreCase(itemCode))
{
HashMap itmVolumeMap = getItemVoumeMap(itemCode,"",conn);
double packSizeActive = (Double)itmVolumeMap.get("PACK_SIZE");
retTabSepStrBuff.append(packSizeActive).append("\t");
quantity = packSizeActive;
}
}
retTabSepStrBuff.append(quantity).append("\t");
//LOT_SL
retTabSepStrBuff.append(rs.getString("LOT_SL")).append("\t");
//PICK_TYPE
retTabSepStrBuff.append(rs.getString("PICK_TYPE") ).append("\n");
retTabSepStrBuff.append( pickType ).append("\t");
//Pick_order
retTabSepStrBuff.append(rs.getString("PICK_ORDER")).append("\t");
//Pick_line
retTabSepStrBuff.append(rs.getString("LINE_NO__PICK")).append("\n");
}while(rs.next());
......@@ -316,17 +589,23 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
String pickType = "";
String sql = "";
double quantity = 0;
double realQty = 0;
String errString = "";
String chgUser = "";
String chgTerm = "";
String siteCode = "";
String tranId = "";
String locCode ="";
String lotNo ="";
String lotSl ="", saleOrder ="";
String lineNoSord = "",cartonPickOrder = "";
String cartonPickLine = "", confirmed = "";
int tranLineNo = 0;
java.sql.Date currDate = new java.sql.Date( System.currentTimeMillis() );
Connection conn = null;
ResultSet rs = null;
PreparedStatement pstmt = null;
ResultSet rs = null, rs1 = null;
PreparedStatement pstmt = null, pstmt1 =null, pstmt2 = null;
int parentNodeListLength = 0;
int childNodeListLength = 0;
......@@ -342,43 +621,45 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId");
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "site_code");
ptcn = genericUtility.getColumnValue("ptcn",headerDom);
//ptcn = genericUtility.getColumnValue("ptcn",headerDom);
System.out.println(" chgUser ["+chgUser+"] chgTerm["+chgTerm+"] siteCode["+siteCode+"] ptcn["+ptcn+"]");
System.out.println(" chgUser ["+chgUser+"] chgTerm["+chgTerm+"] siteCode["+siteCode+"]");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
sql = " SELECT DISTINCT WTD.WAVE_ID FROM CARTON_MASTER CM, PICK_ORD_DET POD , PICK_ORD_HDR POH, WAVE_TASK_DET WTD " +
/*sql = " SELECT DISTINCT WTD.WAVE_ID FROM CARTON_MASTER CM, PICK_ORD_DET POD , PICK_ORD_HDR POH, WAVE_TASK_DET WTD " +
" WHERE CM.PTCN = ? AND CM.PICK_ORDER = POD.PICK_ORDER AND POH.PICK_ORDER = POD.PICK_ORDER " +
" AND CM.LINE_NO__PICK = POD.LINE_NO AND WTD.PTCN = CM.PTCN AND WTD.REF_ID = CM.PICK_ORDER " +
" AND POH.PICK_TYPE IN (?,?) AND CM.CARTON_TYPE = 'C'";
" AND CM.LINE_NO__PICK = POD.LINE_NO AND WTD.PTCN = CM.PTCN AND WTD.REF_ID = CM.PICK_ORDER " ;
//Changed by sumit on 04/mar/13 for all type of pick it will work.
//" AND POH.PICK_TYPE IN (?,?) AND CM.CARTON_TYPE = 'C'";
pstmt =conn.prepareStatement(sql);
pstmt.setString(1, ptcn);
//Changed by sumit on 04/04/13 commenting as per sql.
pstmt.setString(2, "C");
pstmt.setString(3, "M");
rs =pstmt.executeQuery();
if( rs.next() )
{
waveId = rs.getString("WAVE_ID");
}
}*/
tranId = getTranId("w_dealloc_art", siteCode, conn);
sql = "";
sql = " INSERT INTO DEALLOC_ART (TRAN_ID, SITE_CODE, PTCN ,WAVE_ID, CONFIRMED, CHG_DATE, CHG_USER, CHG_TERM) " +
" VALUES (?,?,?,?,?,?,?,?)";
sql = " INSERT INTO DEALLOC_ART (TRAN_ID, SITE_CODE, CONFIRMED, CHG_DATE, CHG_USER, CHG_TERM) " +
" VALUES (?,?,?,?,?,?)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setString(2, siteCode);
pstmt.setString(3, ptcn);
pstmt.setString(4, waveId);
pstmt.setString(5, "N");
pstmt.setDate(6, currDate);
pstmt.setString(7, chgUser );
pstmt.setString(8, chgTerm );
/*pstmt.setString(3, ptcn);
pstmt.setString(4, waveId);*/
pstmt.setString(3, "N");
pstmt.setDate(4, currDate);
pstmt.setString(5, chgUser );
pstmt.setString(6, chgTerm );
if( pstmt.executeUpdate() > 0)
{
System.out.println(" insertion in DEALLOC_ART successfully ");
......@@ -386,10 +667,14 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
pstmt.close();pstmt = null;
sql = "";
sql = "INSERT INTO DEALLOC_ART_DET (TRAN_ID, LINE_NO, CARTON_NO, PICK_ORDER, LINE_NO__PICK, ITEM_CODE, QUANTITY, PICK_TYPE ) " +
" VALUES (?,?,?,?,?,?,?,?)";
sql = "INSERT INTO DEALLOC_ART_DET (TRAN_ID, LINE_NO, CARTON_NO, PICK_ORDER, LINE_NO__PICK, ITEM_CODE, QUANTITY, " +
" LOC_CODE, LOT_NO, WAVE_ID, PTCN, SALE_ORDER, LINE_NO__SORD, LOT_SL, PICK_TYPE) VALUES (?,?,?,?, ?,?,?,?,?,?,?,?,?,?,?)";
pstmt = conn.prepareStatement(sql);
sql = " SELECT (QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) AS QUANTITY " +
" FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = ?";
pstmt2 = conn.prepareStatement(sql);
parentNodeList = detailDom.getElementsByTagName("Detail2");
parentNodeListLength = parentNodeList.getLength();
......@@ -428,26 +713,156 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
itemCode = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("pick_type"))
{
if(childNode.getFirstChild() != null)
{
pickType = childNode.getFirstChild().getNodeValue();
}
}
if (childNodeName.equals("quantity"))
{
if(childNode.getFirstChild() != null)
{
quantity = Double.parseDouble(childNode.getFirstChild().getNodeValue());
System.out.println(" quantity ["+quantity+"]");
}
else
{
quantity = 0.0;
}
//quantity = Double.parseDouble(childNode.getFirstChild().getNodeValue());
System.out.println("quantity *======>"+quantity);
}
if (childNodeName.equals("loc_code"))
{
locCode = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("sale_order"))
{
saleOrder = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("line_no__sord"))
{
lineNoSord = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("lot_no"))
{
lotNo = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("wave_id"))
{
waveId = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("ptcn"))
{
ptcn = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("lot_sl"))
{
lotSl = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("carton_pick_order"))
{
cartonPickOrder = childNode.getFirstChild().getNodeValue();
}
if (childNodeName.equals("carton_pick_line"))
{
cartonPickLine = childNode.getFirstChild().getNodeValue();
}
}
System.out.println("cartonPickOrder ["+cartonPickOrder+"] cartonPickLine ["+cartonPickLine+"]");
if( quantity <= 0)
{
System.out.println(" quantity quantity zero ");
errString="INVDEALLQ1";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
//errString = getError(saleOrder,errString,conn);
return errString;
}
else if( "A".equalsIgnoreCase(pickType))
{
pstmt2.setString(1, cartonPickOrder);
pstmt2.setString(2, cartonPickLine);
rs = pstmt2.executeQuery();
if( rs.next())
{
realQty = rs.getDouble("QUANTITY");
}
rs.close(); rs = null;
pstmt2.clearParameters();
if( quantity > realQty )
{
errString="INVDEALLQ2";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
return errString;
}
}
else if( "C".equalsIgnoreCase(pickType))
{
HashMap itmVolumeMap = getItemVoumeMap(itemCode,"",conn);
double packSizeActive = (Double)itmVolumeMap.get("PACK_SIZE");
System.out.println(" packSizeActive ["+packSizeActive+"] quantity ["+quantity+"]");
if( packSizeActive != quantity)
{
errString="INVDEALLQ3";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
return errString;
}
}
// CHECKING QUANTITY AGAINST
//sql = " "
String refId = checkForReplOrPick(pickOrder, conn);
if("REPL".equalsIgnoreCase(refId))
{
sql = "SELECT (CASE WHEN RIH.CONFIRMED IS NULL THEN 'N' ELSE RIH.CONFIRMED END) AS CONFIRMED " +
" FROM REPL_ISS_DET RID, REPL_ISS_HDR RIH WHERE RID.REPL_ORDER = RIH.REPL_ORDER " +
" AND RID.REPL_ORDER = ? AND RID.LINE_NO__ORD = ? AND RID.SITE_CODE = ? AND RID.ITEM_CODE = ? " +
" AND RID.LOC_CODE = ? AND RID.LOT_NO = ? AND RID.LOT_SL = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, pickOrder);
pstmt1.setString(2, lineNoPick);
pstmt1.setString(3, siteCode);
pstmt1.setString(4, itemCode);
pstmt1.setString(5, locCode);
pstmt1.setString(6, lotNo);
pstmt1.setString(7, lotSl);
rs = pstmt1.executeQuery();
if( rs.next())
{
confirmed = rs.getString("CONFIRMED");
if("N".equalsIgnoreCase(confirmed))
{
errString="INVREFIDDE";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
return errString;
}
}
rs.close(); rs = null;
pstmt1.close(); pstmt1 = null;
}
pstmt.setString(1, tranId);
pstmt.setInt(2, ++tranLineNo);
pstmt.setString(3, cartonNo);
pstmt.setString(4, pickOrder);
pstmt.setString(5, lineNoPick);
/*pstmt.setString(4, pickOrder);
pstmt.setString(5, lineNoPick);*/
pstmt.setString(4, cartonPickOrder);
pstmt.setString(5, cartonPickLine);
pstmt.setString(6, itemCode);
pstmt.setDouble(7, quantity);
pstmt.setString(8, pickType);
pstmt.setString(8, locCode);
pstmt.setString(9, lotNo);
pstmt.setString(10, waveId);
pstmt.setString(11, ptcn);
pstmt.setString(12, saleOrder);
pstmt.setString(13, lineNoSord);
pstmt.setString(14, lotSl);
pstmt.setString(15, pickType);
if( pstmt.executeUpdate() > 0 )
{
System.out.println(" insert in DEALLOC_ART_DET succesfully done ");
......@@ -463,15 +878,19 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
pstmt.close();
pstmt = null;
}
conn.commit();
if(pstmt2 != null)
{
pstmt2.close(); pstmt2 = null;
}
AppConnectParm appConnect = new AppConnectParm();
Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
deallocArtConfLocal = (DeallocArtConfLocal)ctx.lookup("ibase/DeallocArtConf/local");
errString = deallocArtConfLocal.confirm(tranId, xtraParams, "");
errString = deallocArtConfLocal.confirm(tranId, xtraParams, "", conn, false);
System.out.println(" ************ errString ******** ["+errString+"]");
}//try end
catch(Exception e)
{
......@@ -496,11 +915,49 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
System.out.println("Closing Connection....");
try
{
if (errString == null || errString.trim().length() == 0 || errString.contains("VTSUCC1"))
{
conn.commit();
//errString="VTCOMPL";
errString="VTSUCC1";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
//return errString;
}
else
{
System.out.println("errString.indexOf(<Errors>)---------------"+errString.indexOf("<Errors>"));
if(errString.indexOf("<Errors>") == -1 )
{
if( errString.trim().length() > 0)
{
conn.rollback();
System.out.println("Inside Block for ErrOr Not Found---------------");
errString="VTPRCERR";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
}
}
}
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if( pstmt1 != null )
{
pstmt1.close();
pstmt1 = null;
}
if( pstmt2 != null )
{
pstmt2.close();
pstmt2 = null;
}
if( conn != null )
{
conn.close();
......@@ -514,7 +971,7 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
return errString ;
}
if (errString == null || errString.trim().length() == 0 || errString.contains("VTSUCC1"))
/*if (errString == null || errString.trim().length() == 0 || errString.contains("VTSUCC1"))
{
//errString="VTCOMPL";
errString="VTSUCC1";
......@@ -536,7 +993,7 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
return errString;
}
}*/
}
......@@ -738,4 +1195,763 @@ public class DeallocArtPrc extends ProcessEJB implements WaveGenerationPrcLocal,
}
return checkNull( tranId);
}
private String checkForReplOrPick(String refId, Connection conn )throws ITMException
{
String task = "";
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
sql = " SELECT PICK_ORDER FROM PICK_ORD_HDR WHERE PICK_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
if( rs.next())
{
task = "PICK";
}
else
{
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
if( rs != null)
{
rs.close(); rs =null;
}
sql = " SELECT REPL_ORDER FROM REPL_ORD_HDR WHERE REPL_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
if( rs.next())
{
task = "REPL";
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
}
if( rs != null)
{
rs.close(); rs = null;
}
if( pstmt != null)
{
pstmt.close(); pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( rs != null)
{
rs.close(); rs = null;
}
if( pstmt != null)
{
pstmt.close(); pstmt = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return task;
}
private HashMap getLocCodForPick(String pickOrder, int pickLineNo, Connection conn) throws ITMException
{
String sql = "";
String confirmed ="";
String pickType = "";
String locCode ="";
String locCodeTo = "";
String replOrder = "";
String lotNo = "";
String lotSl = "";
String trfStatus = "";
int currentLine = 0;
String currentReplOrder = "";
int replOrderLine = 0;
boolean isIssueDone = false;
PreparedStatement pstmt = null, pstmt2 = null;
ResultSet rs = null, rs2 = null;
HashMap replIss = new HashMap();
HashMap stockDetail = new HashMap();
try
{
sql = " SELECT PIH.PICK_ORDER, PIH.PICK_TYPE, PIH.CONFIRMED, PID.LOC_CODE__TO FROM PICK_ISS_HDR PIH, PICK_ISS_DET PID WHERE PIH.PICK_ORDER = ? " +
" AND PIH.PICK_ORDER = PID.PICK_ORDER";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
rs = pstmt.executeQuery();
confirmed = "";
if( rs.next())
{
pickType = rs.getString("PICK_TYPE");
confirmed = rs.getString("CONFIRMED");
System.out.println(" pickType ["+pickType+"] confirmed["+confirmed+"]");
if( "Y".equalsIgnoreCase(confirmed))
{
locCode = rs.getString("LOC_CODE__TO");
isIssueDone = true;
//return stockDetail;
}
}
if( rs != null )
{
rs.close(); rs = null;
}
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
if( !isIssueDone )
{
replIss = new HashMap();
replIss = isParentReplExist(pickOrder, pickLineNo, conn);
if("YES".equalsIgnoreCase(replIss.get("isRepl").toString()))
{
replOrder = replIss.get("repl_order").toString();
replOrderLine = Integer.parseInt(replIss.get("repl_order_line").toString());
System.out.println(" 88 replOrder ["+replOrder+"] replOrderLine ["+replOrderLine+"]");
HashMap replParent = new HashMap();
replParent = isParentExistAndConfirmed(replOrder,replOrderLine, conn);
confirmed = replParent.get("confirmed").toString();//confirmed
System.out.println(" confirmed ["+confirmed+"] paren_exist ["+replParent.get("paren_exist").toString()+"] ");
if("Y".equalsIgnoreCase(replParent.get("confirmed").toString()))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//Updating pick_order
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", pickOrder);
stockDetail.put("ref_line_no", pickLineNo);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replOrder);
stockDetail.put("ref_line_no", replOrderLine);
}
else if ( "N".equalsIgnoreCase(confirmed) && "YES".equalsIgnoreCase(replParent.get("paren_exist").toString()))
{
System.out.println(" repl order going to search it's ["+replOrder+"] parent ");
currentReplOrder = replOrder;
currentLine = replOrderLine;
replOrder = "";
replOrder = replParent.get("pick_order").toString();
replOrderLine = Integer.parseInt(replParent.get("line_no__pick").toString());
System.out.println(" new repl order going to serch it's parent ["+replOrder+"]");
replParent.clear();
replParent = isParentExistAndConfirmed(replOrder,replOrderLine, conn);
confirmed = "";
confirmed = replParent.get("confirmed").toString();
System.out.println(" *-* confirmed ["+confirmed+"]");
if("Y".equalsIgnoreCase(confirmed))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", currentReplOrder);
stockDetail.put("ref_line_no", currentLine);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replOrder);
stockDetail.put("ref_line_no", replOrderLine);
}
}
}
else
{
sql = "SELECT LOC_CODE FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,pickOrder);
pstmt.setInt(2, pickLineNo);
rs = pstmt.executeQuery();
if( rs.next())
{
locCode = rs.getString("LOC_CODE");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", pickOrder);
stockDetail.put("ref_line_no", pickLineNo);
}
}
else
{
//String status = "";
//sql = "SELECT (CASE WHEN STATUS IS NULL THEN 'N' ELSE STATUS END) AS STATUS FROM PICK_ORD_DET WHERE PICK_ORDER = ? ";
/*sql = " SELECT (CASE WHEN POD.STATUS IS NULL THEN 'N' ELSE POD.STATUS END) AS STATUS, PIH.PICK_TYPE, " +
" ( CASE WHEN PIH.TRF_STATUS IS NULL THEN 'N' ELSE PIH.TRF_STATUS END ) AS TRF_STATUS " +
" FROM PICK_ORD_DET POD, PICK_ISS_DET PID, PICK_ISS_HDR PIH " +
" WHERE POD.PICK_ORDER = ? AND POD.LINE_NO = ? " +
" AND POD.PICK_ORDER = PID.PICK_ORDER AND POD.LINE_NO = PID.LINE_NO__ORD " +
" AND PID.PICK_ORDER = PIH.PICK_ORDER ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,pickOrder);
pstmt.setInt(2,pickLineNo);
rs = pstmt.executeQuery();
while( rs.next())
{
status = rs.getString("STATUS");
trfStatus = rs.getString("TRF_STATUS");
pickType = rs.getString("PICK_TYPE");
if( "N".equalsIgnoreCase(status))
{
break;
}
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;*/
boolean isAllTaskConfirmed = isAllTaskComp(pickOrder, conn);
System.out.println( " isAllTaskConfirmed ["+isAllTaskConfirmed+"]");
//if( ("C".equalsIgnoreCase(pickType) && "C".equalsIgnoreCase(status) ) || ("C".equalsIgnoreCase(status) && "Y".equalsIgnoreCase(trfStatus) && ( "A".equalsIgnoreCase(pickType) || "M".equalsIgnoreCase(pickType))))
if( isAllTaskConfirmed )
{
sql = " SELECT DT.DESP_ID, DT.LINE_NO, DT.LOC_CODE FROM DESPATCH D, DESPATCHDET DT , PICK_ORD_DET POD , WAVE_TASK_DET WTD " +
" WHERE POD.PICK_ORDER = ? AND POD.LINE_NO = ? AND POD.PICK_ORDER = WTD.REF_ID " +
" AND POD.SALE_ORDER = WTD.SALE_ORDER " +
" AND WTD.WAVE_ID = D.WAVE_ID " +
" AND D.DESP_ID = DT.DESP_ID ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,pickOrder);
pstmt.setInt(2, pickLineNo);
rs = pstmt.executeQuery();
if( rs.next())
{
stockDetail.put("loc_code", rs.getString("LOC_CODE"));
stockDetail.put("ref_id", rs.getString("DESP_ID"));
stockDetail.put("ref_line_no", rs.getString("LINE_NO"));
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
}
else
{
boolean isIssAvail = false;
sql = "SELECT LOC_CODE FROM PICK_ISS_DET WHERE PICK_ORDER = ? AND line_no__ord = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,pickOrder);
pstmt.setInt(2, pickLineNo);
rs = pstmt.executeQuery();
if( rs.next())
{
isIssAvail = true;
stockDetail.put("loc_code", rs.getString("LOC_CODE"));
stockDetail.put("ref_id", pickOrder);
stockDetail.put("ref_line_no", pickLineNo);
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if( !isIssAvail )
{
sql = "SELECT LOC_CODE FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,pickOrder);
pstmt.setInt(2, pickLineNo);
rs = pstmt.executeQuery();
if( rs.next())
{
locCode = rs.getString("LOC_CODE");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", pickOrder);
stockDetail.put("ref_line_no", pickLineNo);
}
}
}
//System.out.println(" locCode ["+locCode+"] locCodeTo ["+locCodeTo+"]");
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( rs != null )
{
rs.close(); rs = null;
}
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
}
catch( Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return stockDetail;
}
private HashMap getLocCodForRepl(String refId, int pickLineNo, Connection conn) throws ITMException
{
String sql = "";
String confirmed ="";
String pickType = "";
String locCode ="";
String locCodeTo = "";
String replOrder = "";
String lotNo = "";
String lotSl = "";
int replOrderLine = 0;
boolean isIssueDone = false;
PreparedStatement pstmt = null, pstmt2 = null;
ResultSet rs = null; // rs2 = null;
//HashMap replIss = new HashMap();
HashMap stockDetail = new HashMap();
try
{
sql = " SELECT RIH.CONFIRMED, RID.LOC_CODE__TO FROM REPL_ISS_HDR RIH, REPL_ISS_DET RID WHERE RIH.REPL_ORDER = ? " +
" AND RIH.REPL_ORDER = RID.REPL_ORDER ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
confirmed = "";
if( rs.next())
{
confirmed = rs.getString("CONFIRMED");
System.out.println(" confirmed["+confirmed+"]");
if( "Y".equalsIgnoreCase(confirmed))
{
locCode = rs.getString("LOC_CODE__TO");
isIssueDone = true;
//return locCode;
}
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if( !isIssueDone )
{
/*replIss = new HashMap();
replIss = isParentReplExist(pickOrder, pickLineNo, conn);
if("YES".equalsIgnoreCase(replIss.get("isRepl").toString()))
{*/
//replOrder = replIss.get("repl_order").toString();
//System.out.println(" 88 replOrder ["+replOrder+"]"); line_no__pick
HashMap replParent = new HashMap();
replParent = isParentExistAndConfirmed(refId,pickLineNo, conn);
replOrderLine = Integer.parseInt(replParent.get("line_no__pick").toString());
confirmed = replParent.get("confirmed").toString();//confirmed
System.out.println(" confirmed ["+confirmed+"] paren_exist ["+replParent.get("paren_exist").toString()+"] repl_order ["+replParent.get("pick_order").toString()+"]");
if("Y".equalsIgnoreCase(replParent.get("confirmed").toString()))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
//System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", refId);
stockDetail.put("ref_line_no", pickLineNo);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replParent.get("pick_order").toString());
stockDetail.put("ref_line_no", replOrderLine);
}
else if ( "N".equalsIgnoreCase(confirmed) && "YES".equalsIgnoreCase(replParent.get("paren_exist").toString()))
{
System.out.println(" repl order going to search it's ["+replOrder+"] parent ");
replOrder = "";
replOrder = replParent.get("pick_order").toString();
replOrderLine = Integer.parseInt(replParent.get("line_no__pick").toString());
System.out.println(" new repl order going to serch it's parent ["+replOrder+"] replOrderLine ["+replOrderLine+"]");
replParent.clear();
replParent = isParentExistAndConfirmed(replOrder,replOrderLine, conn);
confirmed = "";
confirmed = replParent.get("confirmed").toString();
System.out.println(" *-* confirmed ["+confirmed+"]");
if("Y".equalsIgnoreCase(confirmed))
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replOrder);
stockDetail.put("ref_line_no", replOrderLine);
}
else if ("N".equalsIgnoreCase(confirmed) && "NO".equalsIgnoreCase(replParent.get("paren_exist").toString())) //parentExist.put("paren_exist", "NO");
{
locCode = replParent.get("loc_code__to").toString();
lotNo = replParent.get("lot_no").toString();
lotSl = replParent.get("lot_sl").toString();
System.out.println(" locCode ["+locCode+"] lotNo ["+lotNo+"] lotSl ["+lotSl+"]");
//updateReplOrder(replOrder, siteCode, itemCode, locCodeTo, lotNo, lotSl, DeallocQty, conn);
//updatePickOrder(pickOrder, pickLineNo, DeallocQty, conn);
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", replParent.get("pick_order").toString());
stockDetail.put("ref_line_no", replOrderLine);
}
}
}
else
{
sql = "SELECT LOC_CODE FROM REPL_ORD_DET WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,refId);
pstmt.setInt(2, pickLineNo);
rs = pstmt.executeQuery();
if( rs.next())
{
locCode = rs.getString("");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
stockDetail.put("loc_code", locCode);
stockDetail.put("ref_id", refId);
stockDetail.put("ref_line_no", pickLineNo);
}
System.out.println(" final locCode ["+locCode+"]");
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if( rs != null )
{
rs.close(); rs = null;
}
if( pstmt != null )
{
pstmt.close(); pstmt = null;
}
}
catch( Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return stockDetail;
}
private HashMap isParentReplExist(String pickOrder, int pickOrderLine, Connection conn) throws ITMException
{
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
boolean isRepl = false;
HashMap replOrder = new HashMap();
String tempReplOrder = "";
try
{
sql = "SELECT REPL_ORDER , LINE_NO__REPL FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
pstmt.setInt(2, pickOrderLine);
rs = pstmt.executeQuery();
if( rs.next() )
{
tempReplOrder = checkNull(rs.getString("REPL_ORDER"));
}
if( tempReplOrder.trim().length() > 0 )
{
replOrder.put("isRepl", "YES");
replOrder.put("repl_order", rs.getString("REPL_ORDER"));
replOrder.put("repl_order_line", rs.getString("LINE_NO__REPL"));
}
else
{
replOrder.put("isRepl", "NO");
replOrder.put("repl_order", "");
replOrder.put("repl_order_line", "");
}
rs.close();rs = null;
pstmt.close(); pstmt = null;
System.out.println(" is replOrder exist ["+replOrder+"]");
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return replOrder;
}
private HashMap isParentExistAndConfirmed(String replOrder,int replOrderLine, Connection conn) throws ITMException
{
String sql = "";
String pickOrder = "";
int lineNoPick = 0;
String confirmed = "";
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
ResultSet rs = null, rs1 = null, rs2 = null;
HashMap parentExist = new HashMap();
try
{
sql = "SELECT PICK_ORDER, LINE_NO__PICK FROM REPL_ORD_DET WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder);
pstmt.setInt(2, replOrderLine);
rs = pstmt.executeQuery();
if( rs.next() )
{
pickOrder = checkNull(rs.getString("PICK_ORDER"));
lineNoPick = rs.getInt("LINE_NO__PICK");
}
if( pickOrder.trim().length() > 0)
{
parentExist.put("paren_exist", "YES");
parentExist.put("pick_order", pickOrder);
parentExist.put("line_no__pick", lineNoPick);
}
else
{
parentExist.put("paren_exist", "NO");
parentExist.put("pick_order", " ");
parentExist.put("line_no__pick", " ");
}
rs.close();rs = null;
pstmt.close(); pstmt = null;
/*if( pickOrder.trim().length() > 0 )
{*/
/*parentExist.put("paren_exist", "YES");
parentExist.put("pick_order", pickOrder);*/
sql = "";
sql = " SELECT RID.REPL_ORDER, RIH.CONFIRMED, RID.ITEM_CODE, RID.LOT_NO, RID.LOT_SL, RID.LOC_CODE__TO, RID.LOC_CODE " +
" FROM REPL_ISS_DET RID, REPL_ISS_HDR RIH WHERE RIH.REPL_ORDER = ? " +
" AND RIH.TRAN_ID = RID.TRAN_ID AND RID.REPL_ORDER = ? AND RID.LINE_NO__ORD = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, replOrder);
pstmt1.setString(2, replOrder);
pstmt1.setInt(3, replOrderLine);
rs1 = pstmt1.executeQuery();
if( rs1.next() )
{
confirmed = checkNull(rs1.getString("CONFIRMED"));
System.out.println( replOrder+" is confirmed ["+confirmed+"]");
if("Y".equalsIgnoreCase(confirmed))
{
parentExist.put("confirmed", confirmed);
parentExist.put("item_code", rs1.getString("ITEM_CODE"));
parentExist.put("lot_no", rs1.getString("LOT_NO"));
parentExist.put("lot_sl", rs1.getString("LOT_SL"));
parentExist.put("loc_code__to", rs1.getString("LOC_CODE__TO"));
}
else
{
parentExist.put("confirmed", "N");
parentExist.put("item_code", rs1.getString("ITEM_CODE"));
parentExist.put("lot_no", rs1.getString("LOT_NO"));
parentExist.put("lot_sl", rs1.getString("LOT_SL"));
parentExist.put("loc_code__to", rs1.getString("LOC_CODE"));
}
}
else
{
//Getting record from repl_order
sql = "";
sql = " SELECT ITEM_CODE, LOC_CODE, LOT_NO, LOT_SL FROM REPL_ORD_DET WHERE REPL_ORDER = ? AND LINE_NO = ?";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, replOrder);
pstmt2.setInt(2, replOrderLine);
rs2 = pstmt2.executeQuery();
if( rs2.next() )
{
parentExist.put("item_code", rs2.getString("ITEM_CODE"));
parentExist.put("lot_no", rs2.getString("LOT_NO"));
parentExist.put("lot_sl", rs2.getString("LOT_SL"));
parentExist.put("loc_code__to", rs2.getString("LOC_CODE"));
}
parentExist.put("confirmed", "N");
rs2.close();rs2 = null;
pstmt2.close();pstmt2 = null;
}
rs1.close();rs1 = null;
pstmt1.close(); pstmt1 = null;
//}
/*else
{*/
//}
System.out.println(" parentExist --> "+parentExist);
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();rs = null;
}
if( rs1 != null)
{
rs1.close(); rs1 = null;
}
if( rs2 != null)
{
rs2.close(); rs2 = null;
}
if( pstmt != null)
{
pstmt.close(); pstmt = null;
}
if( pstmt1 != null )
{
pstmt1.close(); pstmt1 = null;
}
if( pstmt2 != null )
{
pstmt2.close(); pstmt2 = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
}
return parentExist;
}
private boolean isAllTaskComp(String refId, Connection conn) throws ITMException
{
String sql = "", sql1 = "";
String waveId = "";
String saleOrder = "";
PreparedStatement pstmt = null, pstmt1 = null;
ResultSet rs = null, rs1 = null;
int updateCount = 0;
int firstCount = 0, secCount = 0;
boolean isAllTaskCompleted = false;
try
{
sql = "SELECT WAVE_ID, SALE_ORDER FROM PICK_ORD_HDR WHERE PICK_ORDER = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
rs = pstmt.executeQuery();
if(rs.next())
{
waveId = rs.getString("WAVE_ID");
saleOrder = rs.getString("SALE_ORDER");
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1, waveId);
pstmt1.setString(2, saleOrder);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
firstCount = rs1.getInt("CONT");
}
rs1.close();rs1 = null;
pstmt1.close();pstmt1 = null;
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE STATUS = 'Y' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1, waveId);
pstmt1.setString(2, saleOrder);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
secCount = rs1.getInt("CONT");
}
rs1.close();rs1 = null;
pstmt1.close();pstmt1 = null;
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if( secCount == firstCount)
{
isAllTaskCompleted = true;
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return isAllTaskCompleted;
}
}
\ No newline at end of file
......@@ -163,7 +163,9 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
pstmtStock = conn.prepareStatement(sql);
sql = "SELECT R.LINE_NO LINE_NO, R.ITEM_CODE ITEM_CODE, R.SITE_CODE SITE_CODE, R.LOC_CODE LOC_CODE, "
+ " R.LOT_NO LOT_NO, R.LOT_SL LOT_SL, R.QUANTITY QUANTITY, R.NO_ART NO_ART, "
//Changed by sumit on 14/03/13 getting quantity as (quantity - dealloc_qty)
//+ " R.LOT_NO LOT_NO, R.LOT_SL LOT_SL, R.QUANTITY QUANTITY, R.NO_ART NO_ART, "
+ " R.LOT_NO LOT_NO, R.LOT_SL LOT_SL, ( R.QUANTITY - CASE WHEN R.DEALLOC_QTY IS NULL THEN 0 ELSE R.DEALLOC_QTY END) AS QUANTITY, R.NO_ART NO_ART, "
+ " R.LOC_CODE__TO LOC_CODE__TO, O.SALE_ORDER SALE_ORDER, O.LINE_NO__SORD LINE_NO__SORD, O.PICK_ORDER,H.PICK_TYPE "
+ " FROM PICK_ISS_DET R, PICK_ORD_DET O,PICK_ORD_HDR H"
+ " WHERE R.TRAN_ID = ? "
......@@ -554,7 +556,9 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
rs1.close();rs1 = null;
pstmt1.close();pstmt1 = null;
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
//Changed by sumit on 19/03/13 changing condition check it from status flag
//sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE STATUS = 'Y' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1, waveId);
pstmt1.setString(2, saleOrder);
......
......@@ -156,9 +156,11 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
NodeList node2= dom.getElementsByTagName("Detail3");
System.out.println("****************%%%%%%%%%%%%%%%%******************************");
//Changed by sumit on 13/03/13 changing sql adding status condition
//Changed by Rohan on 25-02-13 for update master carton
//sql = "UPDATE CARTON_MASTER SET STATUS = ? WHERE CARTON_NO = ? ";
sql = "UPDATE CARTON_MASTER SET STATUS = ?,MASTER_CARTON = ? WHERE CARTON_NO = ? ";
//sql = "UPDATE CARTON_MASTER SET STATUS = ?,MASTER_CARTON = ? WHERE CARTON_NO = ? ";
sql = "UPDATE CARTON_MASTER SET STATUS = ?,MASTER_CARTON = ? WHERE CARTON_NO = ? AND STATUS <> 'R' ";
pstmt = conn.prepareStatement(sql);
for(cnt = 0; cnt < node2.getLength(); cnt++)
{
......@@ -245,7 +247,9 @@ public class MasterPackPos extends ValidatorEJB implements MasterPackPosRemote,
{
outerCarton = rs.getString(1);
System.out.println("Outer Carton["+outerCarton+"]");
sql1 = "UPDATE CARTON_MASTER SET STATUS = 'U' WHERE CARTON_NO = ? ";
//Changed by sumit on 13/03/13 changing sql adding status condition
//sql = "UPDATE CARTON_MASTER SET STATUS = ?,MASTER_CARTON = ? WHERE CARTON_NO = ? ";
sql1 = "UPDATE CARTON_MASTER SET STATUS = 'U' WHERE CARTON_NO = ? AND STATUS <> 'R'";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1,outerCarton);
pstmt1.executeUpdate();
......
......@@ -290,7 +290,9 @@ public class PackingConf extends ActionHandlerEJB implements PackingConfLocal, P
rs1.close();rs1 = null;
pstmt1.close();pstmt1 = null;
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
//Changed by sumit on 19/03/13 changing condition
//sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE STATUS = 'Y' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1, waveId);
pstmt1.setString(2, saleOrder);
......
......@@ -257,13 +257,17 @@ public class PickIssConf extends ActionHandlerEJB implements PickIssConfLocal, P
pstmtStock = conn.prepareStatement(sql);
sql = "SELECT R.LINE_NO LINE_NO, R.ITEM_CODE ITEM_CODE, R.SITE_CODE SITE_CODE, R.LOC_CODE LOC_CODE, "
+ " R.LOT_NO LOT_NO, R.LOT_SL LOT_SL, R.QUANTITY QUANTITY, R.NO_ART NO_ART, "
//Changed by sumit on 11/03/13 getting quantity as
//+ " R.LOT_NO LOT_NO, R.LOT_SL LOT_SL, R.QUANTITY QUANTITY, R.NO_ART NO_ART, "
+ " R.LOT_NO LOT_NO, R.LOT_SL LOT_SL, (R.QUANTITY - (CASE WHEN R.DEALLOC_QTY IS NULL THEN 0 ELSE R.DEALLOC_QTY END )) AS QUANTITY, R.NO_ART NO_ART, "
+ " R.LOC_CODE__TO LOC_CODE__TO, O.SALE_ORDER SALE_ORDER, O.LINE_NO__SORD LINE_NO__SORD, O.PICK_ORDER,H.PICK_TYPE,R.LINE_NO__ORD,O.EXP_LEV EXP_LEV "
+ " FROM PICK_ISS_DET R, PICK_ORD_DET O ,PICK_ORD_HDR H"//CHANGES DONE BY CHITRANJAN PICK_ORD_HDR H TO GET PICK TYPE
+ " WHERE R.TRAN_ID = ? "
+ " AND R.PICK_ORDER = O.PICK_ORDER "
+"AND H.PICK_ORDER = O.PICK_ORDER" //CHANGES DONE BY CHITRANJAN
+ " AND O.LINE_NO = R.LINE_NO__ORD "
//Changed by sumit on 11/03/13 adding condition to retrieve data
+ " AND (R.QUANTITY - (CASE WHEN R.DEALLOC_QTY IS NULL THEN 0 ELSE R.DEALLOC_QTY END )) > 0 "
+ " AND R.LOC_CODE <> R.LOC_CODE__TO ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
......@@ -1097,7 +1101,9 @@ public class PickIssConf extends ActionHandlerEJB implements PickIssConfLocal, P
rs1.close();rs1 = null;
pstmt1.close();pstmt1 = null;
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
//Changed by sumit on 19/03/13 changing condition
//sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE STATUS = 'Y' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1, waveId);
pstmt1.setString(2, saleOrder);
......
......@@ -155,7 +155,7 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
int lineNoOrd = 0;
double quantity = 0.0;
double shipperSize = 0.0; //changed by sumit on 13/03/13
GenericUtility genericUtility = GenericUtility.getInstance();
DistCommon distCommon = new DistCommon();
......@@ -176,6 +176,9 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
String errorType = "", errCode = "", docLocCode = "" ,statusPkord= "", status = "O",locCode = "";
ArrayList errList = new ArrayList();
ArrayList errFields = new ArrayList();
//Changed by sumit on 13/03/13 initialize itmVolumeMap object
HashMap itmVolumeMap = new HashMap();
try
{
int currentFormNo = 0;
......@@ -257,7 +260,10 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
//Changed by sumit on 22/01/13 adding validation where user going to do this task which is already processing by other user END
//Changed by sumit on 28/02/13 adding validation where pick deallocated start
sql = "SELECT QUANTITY FROM PICK_ORD_DET WHERE PICK_ORDER = ? ";
//Changed by sumit on 12/03/13 changing sql
//sql = "SELECT QUANTITY FROM PICK_ORD_DET WHERE PICK_ORDER = ? ";
sql = " SELECT SUM(QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) AS QUANTITY " +
" FROM PICK_ORD_DET WHERE PICK_ORDER = ? ";
quantity = 0.0;
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, pickOrder );
......@@ -1536,7 +1542,10 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
// 12/06/12 manoharan validate quantity for active
pickOrder = genericUtility.getColumnValue("pick_order", currFormDataDom, objContext );
String lineNo = genericUtility.getColumnValue("line_no__ord", currFormDataDom, objContext );
sql = "SELECT quantity,no_art FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = " + lineNo;
//Changed by sumit on 12/03/13 changing sql as QUANTITY = QUANTITY - DEALLOC_QTY
//sql = "SELECT quantity,no_art FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = " + lineNo;
sql = "SELECT (QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END ) AS QUANTITY " +
" ,NO_ART FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = " + lineNo;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
rs = pstmt.executeQuery();
......@@ -1577,7 +1586,10 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
// 12/06/12 manoharan validate quantity for active
pickOrder = genericUtility.getColumnValue("pick_order", currFormDataDom, objContext );
String lineNo = genericUtility.getColumnValue("line_no__ord", currFormDataDom, objContext );
sql = "SELECT quantity,no_art FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = " + lineNo;
//Changed by sumit on 12/03/13 changing sql as QUANTITY = QUANTITY - DEALLOC_QTY
//sql = "SELECT quantity,no_art FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = " + lineNo;
sql = "SELECT (QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END ) AS QUANTITY " +
" ,NO_ART FROM PICK_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO = " + lineNo;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
rs = pstmt.executeQuery();
......@@ -1589,6 +1601,17 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
rs = null;
pstmt.close();
pstmt = null;
//Changed by sumit on 12/03/13 for changing no_art start.
lotNo = genericUtility.getColumnValue("lot_no", currFormDataDom, objContext );
quantity = Double.parseDouble(genericUtility.getColumnValue("quantity", currFormDataDom, objContext ));
itmVolumeMap.clear();
itmVolumeMap = getItemVoumeMap(itemCode,lotNo,conn);
shipperSize = (Double) itmVolumeMap.get("SHIPPER_SIZE");
ordNoArt = (int) (quantity / shipperSize);
System.out.println(" ordNoArt ->["+ordNoArt+"] noArt ->["+noArt+"] pickType ->["+pickType+"]");
//Changed by sumit on 12/03/13 for changing no_art end.
if (!"A".equals(pickType) && ordNoArt != noArt)
{
errList.add( "VQUANTI" );
......@@ -2441,6 +2464,8 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
String pickLocCode = "";
String stockSql = "",docLocCode = "";
String userId = "";
String actCartonNo = "";
String actPackCode = "";
int currentFormNo = 0;
int lineNoOrd = 0;
......@@ -2452,6 +2477,7 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
double quantity = 0;
double noArt = 0;
double qtyPerArt = 0;
double shipperSize = 0.0; //changed by sumit on 13/03/13
Connection conn = null;
PreparedStatement pstmt = null;
......@@ -2464,7 +2490,8 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
ResultSet rsIss = null ;
ResultSet rsStock = null ;
ArrayList pickLocList = null;
//Changed by sumit on 13/03/13 initialize itmVolumeMap object
HashMap itmVolumeMap = new HashMap();
StringBuffer valueXmlString;
System.out.println("xtraParams=["+xtraParams+"]");
......@@ -2778,14 +2805,20 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
sql = "SELECT QTY_PER_ART FROM STOCK WHERE ITEM_CODE = ? AND SITE_CODE = ? AND LOC_CODE = ? AND LOT_NO = ? AND LOT_SL = ? ";
pstmtStock = conn.prepareStatement( sql );
sql = "SELECT LINE_NO, PICK_ORDER, LINE_NO__ORD,NO_ART, LOC_CODE, LOT_NO, LOT_SL, CASE_LABEL, LOC_CODE__TO, LOC_CODE__SYS, CARTON_NO, QUANTITY " +
"FROM PICK_ISS_DET WHERE TRAN_ID = ? AND PICK_ORDER = ? AND LINE_NO__ORD = ? "+
"ORDER BY TRAN_ID, LINE_NO ";
//Changed by sumit on 09/03/13 getting quantity , quantity-dealloc_qty
//sql = "SELECT LINE_NO, PICK_ORDER, LINE_NO__ORD,NO_ART, LOC_CODE, LOT_NO, LOT_SL, CASE_LABEL, LOC_CODE__TO, LOC_CODE__SYS, CARTON_NO, QUANTITY " +
sql = " SELECT LINE_NO, PICK_ORDER, LINE_NO__ORD,NO_ART, LOC_CODE, LOT_NO, LOT_SL, CASE_LABEL, LOC_CODE__TO, LOC_CODE__SYS, CARTON_NO, (QUANTITY - (CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END )) AS QUANTITY,PACK_CODE "+
" FROM PICK_ISS_DET WHERE TRAN_ID = ? AND PICK_ORDER = ? AND LINE_NO__ORD = ? "+
" AND (QUANTITY - (CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END )) > 0 "+
" ORDER BY TRAN_ID, LINE_NO ";
pstmtIss = conn.prepareStatement( sql );
sql = "SELECT PODET.PICK_ORDER,PODET.LINE_NO,PODET.ITEM_CODE,PODET.SITE_CODE,PODET.LOC_CODE, " +
"PODET.LOT_NO, PODET.LOT_SL, PODET.NO_ART, PODET.QUANTITY, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT, LOC_CODE__TO "+ //,PODET.LOC_CODE__TO
//Changed by sumit on 09/03/13 getting quantity , quantity-dealloc_qty
//"PODET.LOT_NO, PODET.LOT_SL, PODET.NO_ART, PODET.QUANTITY, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT, LOC_CODE__TO "+ //,PODET.LOC_CODE__TO
"PODET.LOT_NO, PODET.LOT_SL, PODET.NO_ART, (PODET.QUANTITY - (CASE WHEN PODET.DEALLOC_QTY IS NULL THEN 0 ELSE PODET.DEALLOC_QTY END )) AS QUANTITY ,PODET.CARTON_NO,PODET.PACK_CODE, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT, LOC_CODE__TO "+ //,PODET.LOC_CODE__TO
"FROM PICK_ORD_DET PODET, ITEM ITEM WHERE PODET.PICK_ORDER = ? AND PODET.ITEM_CODE = ITEM.ITEM_CODE " +
"AND (PODET.QUANTITY - (CASE WHEN PODET.DEALLOC_QTY IS NULL THEN 0 ELSE PODET.DEALLOC_QTY END )) > 0 "+
"ORDER BY PODET.LOC_CODE ";
pstmtOrd = conn.prepareStatement( sql );
pstmtOrd.setString( 1, pickOrder );
......@@ -2813,8 +2846,16 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
quantity = rsOrd.getDouble("QUANTITY"); // commented by cpatil
unit = rsOrd.getString("UNIT");
noArt = rsOrd.getDouble("NO_ART"); // commented by cpatil
//Changed by sumit on 27/09/12 getting SHIPPER_SIZE and calculating no_art start
String tempLot = rsOrd.getString("LOT_NO");
itmVolumeMap.clear();
itmVolumeMap = getItemVoumeMap(itemCode,tempLot,conn);
shipperSize = (Double) itmVolumeMap.get("SHIPPER_SIZE");
noArt = quantity / shipperSize;
//Changed by sumit on 27/09/12 getting SHIPPER_SIZE and calculating no_art end
locCodeTo = rsOrd.getString("LOC_CODE__TO");
actCartonNo = rsOrd.getString("CARTON_NO");
actPackCode = rsOrd.getString("PACK_CODE");
qtyPerArt = Math.floor(quantity / noArt);
//noArtCnt = (int)noArt;
......@@ -2849,6 +2890,14 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
lineNoIss = rsIss.getInt("LINE_NO");//Gulzar on 12/13/2011
issQty = rsIss.getDouble("QUANTITY");
noOfArt = rsIss.getInt("NO_ART");
//Changed by sumit on 27/09/12 getting SHIPPER_SIZE and calculating no_art start
itmVolumeMap.clear();
itmVolumeMap = getItemVoumeMap(itemCode,lotNo,conn);
shipperSize = (Double) itmVolumeMap.get("SHIPPER_SIZE");
noOfArt = (int) (issQty / shipperSize);
//Changed by sumit on 27/09/12 getting SHIPPER_SIZE and calculating no_art end
actPackCode = checkNull(rsIss.getString("PACK_CODE"));
//domID = lineNoIss;
//changes added by gulzar on 12/15/2011
keyStr = domID + ":" + lineNoOrd + ":" + itemCode + ":" + siteCode + ":" + locCodeTo + ":" + lotNo + ":" + lpnNo ;
......@@ -2873,7 +2922,16 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
valueXmlString.append( "<quantity><![CDATA[" ).append( issQty).append( "]]></quantity>\r\n" );
valueXmlString.append( "<unit><![CDATA[" ).append( unit).append( "]]></unit>\r\n" );
//valueXmlString.append( "<no_art><![CDATA[" ).append( "1" ).append( "]]></no_art>\r\n" );
//Changed by sumit on 14/03/13 setting no_art 1 for pick_type 'A' start
//valueXmlString.append( "<no_art><![CDATA[" ).append( noOfArt).append( "]]></no_art>\r\n" );
if( "A".equalsIgnoreCase(pickType))
{
valueXmlString.append( "<no_art><![CDATA[" ).append( "1" ).append( "]]></no_art>\r\n" );
}
else
{
valueXmlString.append( "<no_art><![CDATA[" ).append( noOfArt).append( "]]></no_art>\r\n" );
}
//valueXmlString.append( "<loc_code__sys><![CDATA[" ).append( locCodeTo ).append( "]]></loc_code__sys>\r\n" );//change added by deepak - 25/11/11
valueXmlString.append( "<case_label><![CDATA[" ).append( caseLabel ).append( "]]></case_label>\r\n" );
valueXmlString.append( "<loc_code__sys><![CDATA[" ).append( locCodeTo ).append( "]]></loc_code__sys>\r\n" );
......@@ -2885,6 +2943,11 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
{
valueXmlString.append( "<carton_no><![CDATA[" ).append( cartonNo ).append( "]]></carton_no>\r\n" );
}
if ("A".equalsIgnoreCase(pickType.trim()))
{
valueXmlString.append("<carton_no><![CDATA[").append(cartonNo).append("]]></carton_no>\r\n");
valueXmlString.append("<pack_code><![CDATA[").append(actPackCode).append("]]></pack_code>\r\n");
}
valueXmlString.append("</Detail3>\r\n");
lotNo = ""; lpnNo = ""; locCode = ""; locCodeTo = ""; locCodeSys = ""; cartonNo = ""; issQty = 0d;
......@@ -2897,9 +2960,12 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
pstmtIss.close(); pstmtIss = null;
sql = "SELECT PODET.PICK_ORDER,PODET.LINE_NO,PODET.ITEM_CODE,PODET.SITE_CODE,PODET.LOC_CODE,"+
" PODET.LOT_NO, PODET.LOT_SL, PODET.NO_ART, PODET.QUANTITY, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT, LOC_CODE__TO "+
//Changed by sumit on 09/03/13 getting quantity , quantity-dealloc_qty
//" PODET.LOT_NO, PODET.LOT_SL, PODET.NO_ART, PODET.QUANTITY, ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT, LOC_CODE__TO "+
" PODET.LOT_NO, PODET.LOT_SL, PODET.NO_ART, (PODET.QUANTITY - (CASE WHEN PODET.DEALLOC_QTY IS NULL THEN 0 ELSE PODET.DEALLOC_QTY END )) AS QUANTITY ,PODET.CARTON_NO,PODET.PACK_CODE , ITEM.DESCR ITEM_DESCR, ITEM.UNIT UNIT, LOC_CODE__TO "+
" FROM PICK_ORD_DET PODET, ITEM ITEM WHERE PODET.PICK_ORDER = ? AND PODET.ITEM_CODE = ITEM.ITEM_CODE "+
" AND PODET.LINE_NO NOT IN (SELECT PICK_ISS_DET.LINE_NO__ORD FROM PICK_ISS_DET WHERE PICK_ISS_DET.PICK_ORDER = ? ) "+
" AND (PODET.QUANTITY - (CASE WHEN PODET.DEALLOC_QTY IS NULL THEN 0 ELSE PODET.DEALLOC_QTY END )) > 0 "+
" ORDER BY PODET.LOC_CODE ";
pstmtOrd = conn.prepareStatement( sql );
pstmtOrd.setString( 1, pickOrder );
......@@ -2917,6 +2983,8 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
unit = rsOrd.getString("UNIT");
noArt = rsOrd.getDouble("NO_ART"); // commented by cpatil
locCodeTo = rsOrd.getString("LOC_CODE__TO");
actCartonNo = checkNull(rsOrd.getString("CARTON_NO"));
actPackCode = checkNull(rsOrd.getString("PACK_CODE"));
qtyPerArt = Math.floor(quantity / noArt);
......@@ -2996,6 +3064,11 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
valueXmlString.append( "<carton_no><![CDATA[" ).append( "" ).append( "]]></carton_no>\r\n" );
}
//End changes made by deepak - 25/11/11
if ("A".equalsIgnoreCase(pickType.trim()))
{
valueXmlString.append("<carton_no><![CDATA[").append(actCartonNo).append("]]></carton_no>\r\n");
valueXmlString.append("<pack_code><![CDATA[").append(actPackCode).append("]]></pack_code>\r\n");
}
valueXmlString.append( "<case_label><![CDATA[" ).append( "" ).append( "]]></case_label>\r\n" );
//valueXmlString.append( "<loc_code__to><![CDATA[" ).append( "" ).append( "]]></loc_code__to>\r\n" );//Gulzar on 5/13/2012
valueXmlString.append( "<loc_code__sys><![CDATA[" ).append( locCodeTo ).append( "]]></loc_code__sys>\r\n" );
......@@ -3047,6 +3120,11 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
}
*/
//End changes made by deepak - 25/11/11
if ("A".equalsIgnoreCase(pickType.trim()))
{
valueXmlString.append("<carton_no><![CDATA[").append(actCartonNo).append("]]></carton_no>\r\n");
valueXmlString.append("<pack_code><![CDATA[").append(actPackCode).append("]]></pack_code>\r\n");
}
valueXmlString.append( "<case_label><![CDATA[" ).append( "" ).append( "]]></case_label>\r\n" );
//valueXmlString.append( "<loc_code__to><![CDATA[" ).append( "" ).append( "]]></loc_code__to>\r\n" );//Gulzar on 5/13/2012
//valueXmlString.append( "<loc_code__to protect = '1'><![CDATA[" ).append( intrLocCode ).append( "]]></loc_code__to>\r\n" );//Gulzar on 5/13/2012
......@@ -3513,4 +3591,105 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
return updatedDetailDomStr;
}
//Changed by sumit on 13/03/12 to reterive shipper size start
private HashMap getItemVoumeMap(String itemCode,String lotNo,Connection con)throws Exception
{
double shipperSize = 0,itemVolume = 0,caseVolume = 0;
PreparedStatement pstmt = null;
String sql="";
ResultSet rs = null;
double itmLen = 0,itmWidth = 0,itmHeight = 0,itemGrossWeight = 0,lotLen = 0 ,lotHeight = 0,lotWidth = 0,caseGrossWeight = 0,itemNetWeight = 0, caseNetWeight = 0;
HashMap dataVolumeMap = new HashMap();
try {
sql = "SELECT I.LENGTH ITEM_LEN,I.WIDTH ITEM_WID,I.HEIGHT ITEM_HEIGHT,I.GROSS_WEIGHT ITEM_GROSS_WEIGHT,I.NET_WEIGHT ITEM_NET_WEIGHT,"
+" L.LENGTH LITEM_LEN,L.WIDTH LITEM_WID,L.HEIGHT LITEM_HEIGHT,L.SHIPPER_SIZE SHIPSIZE,L.GROSS_WEIGHT CASE_GROSS_WEIGHT,L.NET_WEIGHT CASE_NET_WEIGHT FROM"
+" ITEM I,ITEM_LOT_PACKSIZE L"
+" WHERE I.ITEM_CODE = L.ITEM_CODE"
+" AND L.LOT_NO__FROM <= ? AND L.LOT_NO__TO >= ?"
+" AND I.ITEM_CODE = ?";
pstmt = con.prepareStatement(sql);
if(lotNo != null && lotNo.length() > 0)
{
pstmt.setString(1, lotNo);
pstmt.setString(2, lotNo);
}
else
{
pstmt.setString(1, "00");
pstmt.setString(2, "ZZ");
}
pstmt.setString(3, itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
itmLen = rs.getDouble("ITEM_LEN");
itmWidth = rs.getDouble("ITEM_WID");
itmHeight = rs.getDouble("ITEM_HEIGHT");
itemGrossWeight = rs.getDouble("ITEM_GROSS_WEIGHT");
lotLen = rs.getDouble("LITEM_LEN");
lotWidth = rs.getDouble("LITEM_WID");
lotHeight = rs.getDouble("LITEM_HEIGHT");
shipperSize = rs.getDouble("SHIPSIZE");
caseGrossWeight = rs.getDouble("CASE_GROSS_WEIGHT");
itemNetWeight = rs.getDouble("ITEM_NET_WEIGHT");
caseNetWeight = rs.getDouble("CASE_NET_WEIGHT");
}
//shipperSize = (lotHeight * lotWidth * lotLen)/(itmLen * itmWidth * itmHeight);
itemVolume = (itmLen * itmWidth * itmHeight);
caseVolume = (lotHeight * lotWidth * lotLen);
dataVolumeMap.put("SHIPPER_SIZE", shipperSize);
dataVolumeMap.put("ITEM_VOLUME", itemVolume);
dataVolumeMap.put("CASE_VOLUME", caseVolume);
dataVolumeMap.put("ITEM_GROSS_WEIGHT", itemGrossWeight);
dataVolumeMap.put("CASE_GROSS_WEIGHT", caseGrossWeight);
dataVolumeMap.put("ITEM_NET_WEIGHT", itemNetWeight);
dataVolumeMap.put("CASE_NET_WEIGHT", caseNetWeight);
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
} catch (Exception e) {
// TODO: handle exception
throw e;
}
finally
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
return dataVolumeMap;
}
//Changed by sumit on 13/03/12 to reterive shipper size end
}
\ No newline at end of file
......@@ -147,7 +147,11 @@ public class PickIssPos extends ValidatorEJB implements PickIssPosLocal, PickIss
//if(!"M".equalsIgnoreCase(pickType)) // 22/09/12 manoharan
if(!"M".equalsIgnoreCase(pickType) || "P-PICK".equalsIgnoreCase(refSer)) // 22/09/12 manoharan
{
sql = "UPDATE CARTON_MASTER SET STATUS = 'U', pallet_no = ? WHERE PICK_ORDER = ? and line_no__pick in (select line_no__ord from pick_iss_det where tran_id = ?) ";
//Changed by sumit on 11/09/13 adding condition of status.
//sql = "UPDATE CARTON_MASTER SET STATUS = 'U', pallet_no = ? WHERE PICK_ORDER = ? and line_no__pick in (select line_no__ord from pick_iss_det where tran_id = ?) ";
sql = " UPDATE CARTON_MASTER SET STATUS = 'U', PALLET_NO = ? WHERE PICK_ORDER = ? " +
" AND LINE_NO__PICK IN (SELECT LINE_NO__ORD FROM PICK_ISS_DET WHERE TRAN_ID = ?) " +
" AND STATUS <> 'R'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,palletNo);
......@@ -173,7 +177,10 @@ public class PickIssPos extends ValidatorEJB implements PickIssPosLocal, PickIss
//end by kunal
}
//select no of art from pick_ord_det
sql = "SELECT SUM(NO_ART) FROM PICK_ORD_DET WHERE PICK_ORDER = ?";
//Changed by sumit on 18/03/13 adding condition
//sql = "SELECT SUM(NO_ART) FROM PICK_ORD_DET WHERE PICK_ORDER = ? ";
sql = "SELECT SUM(NO_ART) FROM PICK_ORD_DET WHERE PICK_ORDER = ? " +
"AND (QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END ) > 0 ";
pstmt = conn.prepareStatement(sql);
pstmt.setString( 1, pickOrder );
rs = pstmt.executeQuery();
......
......@@ -103,7 +103,7 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
double stkGrossRate = 0d;
double stkRate = 0d;
double quantity = 0.0,pickQty = 0, actualQty = 0,qtyOrd = 0.0;
double quantity = 0.0,pickQty = 0, actualQty = 0,qtyOrd = 0.0,deallocQty = 0.0;
double noArt = 0.0;
double shipperSize = 0,itemGrossWeight = 0, caseGrossWeight = 0, itemNetWeight = 0, caseNetWeight = 0;
......@@ -246,7 +246,8 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
{
//Chnaged by Rohan on 15-02-13 for calculating actual qty from repanishment in case of stock to dock.end
replOrderLineNo = rs.getInt("ORDER_lINE_NO");
sql = " SELECT SUM(QUANTITY) AS QUANTITY FROM " +
//Changed by sumit on 13/03/13 getting quantity as (quantity-dealloc_qty).start
/*sql = " SELECT SUM(QUANTITY) AS QUANTITY FROM " +
" ( SELECT SUM(QUANTITY) AS QUANTITY FROM (SELECT SUM(QUANTITY) AS QUANTITY FROM PICK_ORD_DET P " +
" WHERE P.REPL_ORDER = ? AND P.LINE_NO__REPL = ? AND FN_IS_VALID_PICK_ORDER(P.PICK_ORDER) = 'Y' " +
" UNION ALL " +
......@@ -260,6 +261,20 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
" (SELECT REPL_ORDER , LINE_NO FROM REPL_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO__PICK = ? )))" +
//Changed by sumit on 14/02/13 checking whether wave cancel or hold
" AND FN_IS_VALID_PICK_ORDER(PICK_ORDER) = 'Y' ))";
*/
sql = " SELECT SUM(QUANTITY) AS QUANTITY FROM " +
" ( SELECT SUM(QUANTITY) AS QUANTITY FROM (SELECT SUM(QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) AS QUANTITY FROM PICK_ORD_DET P " +
" WHERE P.REPL_ORDER = ? AND P.LINE_NO__REPL = ? AND FN_IS_VALID_PICK_ORDER(P.PICK_ORDER) = 'Y' " +
" UNION ALL " +
" SELECT SUM(QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) FROM PICK_ORD_DET WHERE (REPL_ORDER, LINE_NO__REPL) IN " +
" (SELECT REPL_ORDER , LINE_NO FROM REPL_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO__PICK = ? ) " +
" AND FN_IS_VALID_PICK_ORDER(PICK_ORDER) = 'Y' " +
" UNION ALL " +
" SELECT SUM(QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END) FROM PICK_ORD_DET WHERE (REPL_ORDER, LINE_NO__REPL) IN ( " +
" SELECT REPL_ORDER,LINE_NO FROM REPL_ORD_DET WHERE (PICK_ORDER,LINE_NO__PICK) IN ( " +
" (SELECT REPL_ORDER , LINE_NO FROM REPL_ORD_DET WHERE PICK_ORDER = ? AND LINE_NO__PICK = ? )))" +
" AND FN_IS_VALID_PICK_ORDER(PICK_ORDER) = 'Y' ))";
//Changed by sumit on 13/03/13 getting quantity as (quantity-dealloc_qty).end
pstmtPick = conn.prepareStatement(sql);
pstmtPick.setString(1, replOrder);
......@@ -575,6 +590,11 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
while(rsPick.next())
{
pickQty = rsPick.getDouble("QUANTITY");
deallocQty = rsPick.getDouble("DEALLOC_QTY");
System.out.println("19/03/13 pickQty [" + pickQty + "]deallocQty ["+deallocQty+"]");
pickQty = pickQty - deallocQty;
System.out.println("19/03/13 after calculating pickQty [" + pickQty + "]");
saleOrder = rsPick.getString("SALE_ORDER");
lineNoSord = rsPick.getString("LINE_NO__SORD");
lineNoSord = " " + lineNoSord;
......@@ -1357,7 +1377,9 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
rs1.close();rs1 = null;
pstmt1.close();pstmt1 = null;
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
//Changed by sumit on 19/03/13 changing condition
//sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE WAVE_STATUS = 'V' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
sql1 = "SELECT COUNT(*) AS CONT FROM WAVE_TASK_DET WHERE STATUS = 'Y' AND WAVE_ID = ? AND SALE_ORDER = ? AND REF_SER <> 'S-DSP' ";
pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1, waveId);
pstmt1.setString(2, saleOrder);
......
......@@ -365,6 +365,10 @@ etc
valueXmlString.append( "<stock_to_dock_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></stock_to_dock_allow>\r\n" );
//Changed by sumit on 29/12/12 display parcel pick allow
valueXmlString.append("<parcelpack_allow protect ='1' ><![CDATA[").append("").append("]]></parcelpack_allow>\r\n");
valueXmlString.append("<direct_pick_loc><![CDATA[").append("").append("]]></direct_pick_loc>\r\n");
valueXmlString.append("<ship_type><![CDATA[").append("").append("]]></ship_type>\r\n");
valueXmlString.append("<pallet_no><![CDATA[").append("").append("]]></pallet_no>\r\n");
}
//System.out.println("Hello sale_order__from4");
}
......@@ -380,6 +384,9 @@ etc
valueXmlString.append( "<stock_to_dock_allow protect ='1' ><![CDATA[" ).append( "" ).append( "]]></stock_to_dock_allow>\r\n" );
//Changed by sumit on 29/12/12 display parcel pick allow
valueXmlString.append("<parcelpack_allow protect ='1' ><![CDATA[").append("").append("]]></parcelpack_allow>\r\n");
valueXmlString.append("<direct_pick_loc><![CDATA[").append("").append("]]></direct_pick_loc>\r\n");
valueXmlString.append("<ship_type><![CDATA[").append("").append("]]></ship_type>\r\n");
valueXmlString.append("<pallet_no><![CDATA[").append("").append("]]></pallet_no>\r\n");
}
......@@ -644,6 +651,11 @@ etc
String masterPackAllow = "";
String activePickAllow = "";
String stockToDockAllow = "";
String parcelPackAllow = "";
String directPickLoc = "";
String palletNo = "";
//Changed By Pragyan 25/feb/13 To change the validation with ship type
String shipType = "";
String custCode = "";
//Changed by sumit on 03/10/12
String printer = "";
......@@ -761,6 +773,7 @@ etc
else if ( "master_pack_allow".equalsIgnoreCase( childNodeName ) )
{
masterPackAllow = checkNull(genericUtility.getColumnValue( "master_pack_allow", currFormDataDom ));
parcelPackAllow = checkNull(genericUtility.getColumnValue( "parcelpack_allow", currFormDataDom ));
custCode = genericUtility.getColumnValue( "cust_code__from", currFormDataDom );
if(masterPackAllow.trim().length() > 0 )
{
......@@ -779,6 +792,152 @@ etc
//errFields.add( "" );
}
}
if("Y".equalsIgnoreCase(parcelPackAllow) && "Y".equalsIgnoreCase(masterPackAllow))
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "ONSELCMP" );
}
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
}
//Changed By Pragyan 25/feb/13 To change the validation with ship type.start
else if ( "parcelpack_allow".equalsIgnoreCase( childNodeName ) )
{
parcelPackAllow = checkNull(genericUtility.getColumnValue( "parcelpack_allow", currFormDataDom ));
custCode = genericUtility.getColumnValue( "cust_code__from", currFormDataDom );
if(parcelPackAllow.trim().length() > 0 )
{
sql = "SELECT C.SINGLE_LOT, W.MASTER_PACK_ALLOW, W.ACTIVE_PICK_ALLOW, W.STOCK_TO_DOCK_ALLOW, W.PARCELPACK_ALLOW " +
"FROM CUSTOMER C, WAVE_TYPE W WHERE C.WAVE_TYPE = W.WAVE_TYPE AND C.CUST_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode);
rs = pstmt.executeQuery();
if( rs.next())
{
if( !parcelPackAllow.equalsIgnoreCase(rs.getString("PARCELPACK_ALLOW")))
{
//errList.add( "STOCK2DOC" );
errFields.add( childNodeName.toLowerCase() );
errList.add( "CHSINGLELT" );
//errFields.add( "" );
}
}
if("Y".equalsIgnoreCase(parcelPackAllow) && "Y".equalsIgnoreCase(masterPackAllow))
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "ONSELCMP" );
}
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
}
//Changed By Pragyan 25/feb/13 To change the validation with ship type.end
else if ( "ship_type".equalsIgnoreCase( childNodeName ) )
{
masterPackAllow = checkNull(genericUtility.getColumnValue( "master_pack_allow", currFormDataDom ));
parcelPackAllow = checkNull(genericUtility.getColumnValue( "parcelpack_allow", currFormDataDom ));
shipType = checkNull(genericUtility.getColumnValue( "ship_type", currFormDataDom ));
if(("Y".equalsIgnoreCase(masterPackAllow)) && !("A".equalsIgnoreCase(shipType) || "M".equalsIgnoreCase(shipType)))
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "ATLSTSELMP" );
}
else if(("Y".equalsIgnoreCase(parcelPackAllow)) && !("A".equalsIgnoreCase(shipType) || "P".equalsIgnoreCase(shipType)))
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "ATLSTSELPP" );
}
else if(!("Y".equalsIgnoreCase(parcelPackAllow) || "Y".equalsIgnoreCase(masterPackAllow) ) && ("M".equalsIgnoreCase(shipType) || "P".equalsIgnoreCase(shipType)))
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "ATLSTSENAN" );
}
}//directPickLoc
else if ( "direct_pick_loc".equalsIgnoreCase( childNodeName ) )
{
directPickLoc = checkNull(genericUtility.getColumnValue( "direct_pick_loc", currFormDataDom ));
int countLoc = 0;
if(directPickLoc != null && directPickLoc.trim().length() > 0 )
{
sql = "SELECT COUNT(*) FROM LOCATION WHERE LOC_CODE= ? AND DIRECT_PICK = ?" ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, directPickLoc);
pstmt.setString(2, "Y");
rs = pstmt.executeQuery();
if( rs.next())
{
countLoc = rs.getInt(1);
if( !(countLoc > 0))
{
//errList.add( "STOCK2DOC" );
errFields.add( childNodeName.toLowerCase() );
errList.add( "INVDPIKLOC" );
//errFields.add( "" );
}
}
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
}
else if ( "pallet_no".equalsIgnoreCase( childNodeName ) )
{
directPickLoc = checkNull(genericUtility.getColumnValue( "direct_pick_loc", currFormDataDom ));
palletNo = checkNull(genericUtility.getColumnValue( "pallet_no", currFormDataDom ));
int countLoc = 0;
if(directPickLoc != null && directPickLoc.trim().length() > 0 )
{
if(palletNo != null && palletNo.trim().length() > 0 )
{
sql = "SELECT COUNT(*) FROM PALLET_NO WHERE PALLET_NO = ? AND STATUS= ?" ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, palletNo);
pstmt.setString(2, "A");
rs = pstmt.executeQuery();
if( rs.next())
{
countLoc = rs.getInt(1);
if( !(countLoc > 0))
{
//errList.add( "STOCK2DOC" );
errFields.add( childNodeName.toLowerCase() );
errList.add( "INVPLTNO1" );
//errFields.add( "" );
}
}
if( rs != null )
{
rs.close();
......@@ -790,7 +949,16 @@ etc
pstmt = null;
}
}
else
{
errFields.add( childNodeName.toLowerCase() );
errList.add( "NVLPLTMND" );
}
}
}
//Changed by sumit on 03/10/12 validating printer service name with existing printer in system start.
else if ( "active_pick_allow".equalsIgnoreCase( childNodeName ) )
{
activePickAllow = checkNull(genericUtility.getColumnValue( "active_pick_allow", currFormDataDom ));
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -39,32 +39,341 @@
<color>536870912</color>
</Footer>
<Detail>
<height>33</height>
<height>269</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>cust_code__fr</name>
<dbname>cust_code__fr</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>cust_code__to</name>
<dbname>cust_code__to</dbname>
<initial>zz</initial>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>cust_code__dlv_fr</name>
<dbname>cust_code__dlv_fr</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>cust_code__dlv_to</name>
<dbname>cust_code__dlv_to</dbname>
<initial>zz</initial>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>item_ser__fr</name>
<dbname>item_ser__fr</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>item_ser__to</name>
<dbname>item_ser__to</dbname>
<initial>zz</initial>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>item_code__fr</name>
<dbname>item_code__fr</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>item_code__to</name>
<dbname>item_code__to</dbname>
<initial>zz</initial>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>no</updatewhereclause>
<name>lot_no__fr</name>
<dbname>lot_no__fr</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>no</updatewhereclause>
<name>lot_no__to</name>
<dbname>lot_no__to</dbname>
<initial>zz</initial>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>ptcn</name>
<dbname>dealloc_art.ptcn</dbname>
<updatewhereclause>no</updatewhereclause>
<name>sale_order__fr</name>
<dbname>sale_order__fr</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>sale_order__to</name>
<dbname>sale_order__to</dbname>
<initial>zz</initial>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>no</updatewhereclause>
<name>carton_no__fr</name>
<dbname>carton_no__fr</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>no</updatewhereclause>
<name>carton_no__to</name>
<dbname>carton_no__to</dbname>
<initial>zz</initial>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;dealloc_art&quot; ) COLUMN(NAME=&quot;dealloc_art.ptcn&quot;)) </retrieve>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Filter Parameters</text>
<border>2</border>
<color>33554432</color>
<x>30</x>
<y>22</y>
<height>227</height>
<width>511</width>
<name>gb_1</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>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>50</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>74</y>
<height>16</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order__fr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>97</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__fr</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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>121</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dlv_fr</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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>145</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser__fr</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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>PTCN:</text>
<text>Site Code:</text>
<border>6</border>
<color>33554432</color>
<x>8</x>
<y>9</y>
<x>75</x>
<y>50</y>
<height>16</height>
<width>43</width>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_t</name>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -79,22 +388,752 @@
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<alignment>1</alignment>
<text>Sale Order From:</text>
<border>6</border>
<color>33554432</color>
<x>39</x>
<y>74</y>
<height>16</height>
<width>151</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order__fr_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>Customer Group From:</text>
<border>6</border>
<color>33554432</color>
<x>57</x>
<y>98</y>
<height>16</height>
<width>133</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__fr_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>Customer (Delivery) From:</text>
<border>6</border>
<color>33554432</color>
<x>39</x>
<y>122</y>
<height>16</height>
<width>151</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dlv_fr_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>Item Series From:</text>
<border>6</border>
<color>33554432</color>
<x>75</x>
<y>146</y>
<height>16</height>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser__fr_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>Item Code From:</text>
<border>6</border>
<color>33554432</color>
<x>75</x>
<y>170</y>
<height>16</height>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code__fr_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>Lot No From:</text>
<border>6</border>
<color>33554432</color>
<x>75</x>
<y>194</y>
<height>16</height>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no__fr_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>Carton From:</text>
<border>6</border>
<color>33554432</color>
<x>74</x>
<y>218</y>
<height>16</height>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_no__fr_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>8</id>
<alignment>0</alignment>
<tabsequence>100</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>169</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code__fr</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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>194</y>
<height>19</height>
<width>126</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no__fr</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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>140</tabsequence>
<border>5</border>
<color>33554432</color>
<x>198</x>
<y>219</y>
<height>16</height>
<width>126</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_no__fr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>To:</text>
<border>6</border>
<color>33554432</color>
<x>406</x>
<y>74</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order__to_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>To:</text>
<border>6</border>
<color>33554432</color>
<x>406</x>
<y>98</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__to_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>To:</text>
<border>6</border>
<color>33554432</color>
<x>406</x>
<y>122</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dlv_to_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>To:</text>
<border>6</border>
<color>33554432</color>
<x>452</x>
<y>146</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser__to_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>To:</text>
<border>6</border>
<color>33554432</color>
<x>406</x>
<y>170</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code__to_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>To:</text>
<border>6</border>
<color>33554432</color>
<x>375</x>
<y>194</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no__to_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>To:</text>
<border>6</border>
<color>33554432</color>
<x>375</x>
<y>219</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_no__to_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>15</id>
<alignment>0</alignment>
<tabsequence>150</tabsequence>
<border>5</border>
<color>33554432</color>
<x>404</x>
<y>219</y>
<height>16</height>
<width>126</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_no__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<border>5</border>
<color>33554432</color>
<x>404</x>
<y>194</y>
<height>19</height>
<width>126</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>5</border>
<color>33554432</color>
<x>435</x>
<y>169</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<border>5</border>
<color>33554432</color>
<x>482</x>
<y>145</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>33554432</color>
<x>435</x>
<y>121</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dlv_to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>435</x>
<y>97</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>56</x>
<y>9</y>
<x>435</x>
<y>74</y>
<height>16</height>
<width>112</width>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn</name>
<name>sale_order__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -112,7 +1151,7 @@
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
......
......@@ -32,7 +32,7 @@
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>23</height>
<height>21</height>
<color>536870912</color>
</Header>
<Summary>
......@@ -44,27 +44,21 @@
<color>536870912</color>
</Footer>
<Detail>
<height>21</height>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>ptcn</name>
<dbname>dealloc_art.ptcn</dbname>
</table_column>
<table_column>
<type size="12">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_id</name>
<dbname>dealloc_art.wave_id</dbname>
<dbname>dealloc_art_det.wave_id</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>dealloc_art.site_code</dbname>
<name>ptcn</name>
<dbname>dealloc_art_det.ptcn</dbname>
</table_column>
<table_column>
<type size="0">char</type>
......@@ -102,34 +96,64 @@
<name>item_code</name>
<dbname>dealloc_art_det.item_code</dbname>
</table_column>
<table_column>
<type size="8">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>loc_code</name>
<dbname>dealloc_art_det.loc_code</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>lot_no</name>
<dbname>dealloc_art_det.lot_no</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>quantity</name>
<dbname>dealloc_art_det.quantity</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>lot_sl</name>
<dbname>dealloc_art_det.lot_sl</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>pick_type</name>
<dbname>dealloc_art_det.pick_type</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;dealloc_art&quot; ) TABLE(NAME=&quot;dealloc_art_det&quot; ) COLUMN(NAME=&quot;dealloc_art.ptcn&quot;) COLUMN(NAME=&quot;dealloc_art.wave_id&quot;) COLUMN(NAME=&quot;dealloc_art.site_code&quot;) COMPUTE(NAME=&quot;&apos;&apos;sale_order&quot;) COMPUTE(NAME=&quot;&apos;&apos;line_no__sord&quot;) COLUMN(NAME=&quot;dealloc_art_det.carton_no&quot;) COLUMN(NAME=&quot;dealloc_art_det.pick_order&quot;) COLUMN(NAME=&quot;dealloc_art_det.line_no__pick&quot;) COLUMN(NAME=&quot;dealloc_art_det.item_code&quot;) COLUMN(NAME=&quot;dealloc_art_det.quantity&quot;) COLUMN(NAME=&quot;dealloc_art_det.pick_type&quot;) JOIN (LEFT=&quot;dealloc_art.tran_id&quot; OP =&quot;=&quot;RIGHT=&quot;dealloc_art_det.tran_id&quot; )) </retrieve>
<table_column>
<type size="0">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>carton_pick_order</name>
<dbname>carton_pick_order</dbname>
</table_column>
<table_column>
<type size="0">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>carton_pick_line</name>
<dbname>carton_pick_line</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;dealloc_art_det&quot; ) COLUMN(NAME=&quot;dealloc_art_det.wave_id&quot;) COLUMN(NAME=&quot;dealloc_art_det.ptcn&quot;) COMPUTE(NAME=&quot;&apos;&apos;sale_order&quot;) COMPUTE(NAME=&quot;&apos;&apos;line_no__sord&quot;) COLUMN(NAME=&quot;dealloc_art_det.carton_no&quot;) COLUMN(NAME=&quot;dealloc_art_det.pick_order&quot;) COLUMN(NAME=&quot;dealloc_art_det.line_no__pick&quot;) COLUMN(NAME=&quot;dealloc_art_det.item_code&quot;) COLUMN(NAME=&quot;dealloc_art_det.loc_code&quot;) COLUMN(NAME=&quot;dealloc_art_det.lot_no&quot;) COLUMN(NAME=&quot;dealloc_art_det.quantity&quot;) COLUMN(NAME=&quot;dealloc_art_det.lot_sl&quot;) COLUMN(NAME=&quot;dealloc_art_det.pick_type&quot;) COMPUTE(NAME=&quot;&apos;&apos;carton_pick_order&quot;) COMPUTE(NAME=&quot;&apos;&apos; carton_pick_line&quot;)) </retrieve>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>PTCN</text>
<text>Wave Id</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>66</width>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_t</name>
<name>wave_id_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -147,17 +171,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Wave Id</text>
<text>Line No Sord</text>
<border>6</border>
<color>33554432</color>
<x>70</x>
<x>233</x>
<y>2</y>
<height>16</height>
<width>78</width>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_id_t</name>
<name>line_no__sord_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -175,17 +199,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Site Code</text>
<text>Carton No</text>
<border>6</border>
<color>33554432</color>
<x>150</x>
<x>316</x>
<y>2</y>
<height>16</height>
<width>64</width>
<width>126</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<name>carton_no_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -203,17 +227,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Sale Order</text>
<text>Ref Id</text>
<border>6</border>
<color>33554432</color>
<x>216</x>
<x>444</x>
<y>2</y>
<height>16</height>
<width>74</width>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order_t</name>
<name>pick_order_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -230,18 +254,18 @@
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Line No Sord</text>
<alignment>2</alignment>
<text>Ref Line No</text>
<border>6</border>
<color>33554432</color>
<x>292</x>
<x>534</x>
<y>2</y>
<height>16</height>
<width>81</width>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__sord_t</name>
<name>line_no__pick_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -259,17 +283,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Carton No</text>
<text>Item Code</text>
<border>6</border>
<color>33554432</color>
<x>375</x>
<x>612</x>
<y>2</y>
<height>16</height>
<width>126</width>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_no_t</name>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -287,17 +311,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pick Order</text>
<text>Location Code</text>
<border>6</border>
<color>33554432</color>
<x>503</x>
<x>693</x>
<y>2</y>
<height>16</height>
<width>88</width>
<width>83</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order_t</name>
<name>loc_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -315,17 +339,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Line No Pick</text>
<text>Lot No</text>
<border>6</border>
<color>33554432</color>
<x>593</x>
<x>778</x>
<y>2</y>
<height>16</height>
<width>88</width>
<width>101</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__pick_t</name>
<name>lot_no_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -343,17 +367,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Item Code</text>
<text>Quantity</text>
<border>6</border>
<color>33554432</color>
<x>683</x>
<x>881</x>
<y>2</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<name>quantity_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -371,17 +395,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Quantity</text>
<text>Sale Order</text>
<border>6</border>
<color>33554432</color>
<x>773</x>
<x>157</x>
<y>2</y>
<height>16</height>
<width>88</width>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity_t</name>
<name>sale_order_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -396,21 +420,133 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Ptcn</text>
<border>6</border>
<color>33554432</color>
<x>80</x>
<y>2</y>
<height>16</height>
<width>75</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Lot Sl</text>
<border>6</border>
<color>33554432</color>
<x>971</x>
<y>2</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_sl_t</name>
<visible>0</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pick Type</text>
<border>6</border>
<color>33554432</color>
<x>863</x>
<x>1046</x>
<y>2</y>
<height>16</height>
<width>88</width>
<width>71</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_type_t</name>
<visible>1</visible>
<visible>0</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pick Order</text>
<border>6</border>
<color>33554432</color>
<x>1119</x>
<y>2</y>
<height>16</height>
<width>63</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_pick_order_t</name>
<visible>0</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pick Line</text>
<border>6</border>
<color>33554432</color>
<x>1184</x>
<y>2</y>
<height>16</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_pick_line_t</name>
<visible>0</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -426,27 +562,25 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<x>233</x>
<y>1</y>
<height>16</height>
<width>66</width>
<width>81</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn</name>
<name>line_no__sord</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -464,23 +598,23 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>70</x>
<x>316</x>
<y>1</y>
<height>16</height>
<width>78</width>
<width>126</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_id</name>
<name>carton_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>12</limit>
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -502,23 +636,23 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>150</x>
<x>444</x>
<y>1</y>
<height>16</height>
<width>64</width>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<name>pick_order</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -540,25 +674,27 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<id>7</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>216</x>
<x>534</x>
<y>1</y>
<height>16</height>
<width>74</width>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order</name>
<name>line_no__pick</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>
......@@ -576,25 +712,27 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>292</x>
<x>612</x>
<y>1</y>
<height>16</height>
<width>81</width>
<width>79</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__sord</name>
<name>item_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -612,27 +750,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>375</x>
<x>693</x>
<y>1</y>
<height>16</height>
<width>126</width>
<width>83</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_no</name>
<name>loc_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -650,27 +786,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>503</x>
<x>778</x>
<y>1</y>
<height>16</height>
<width>88</width>
<width>101</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_order</name>
<name>lot_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -688,12 +822,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>11</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>593</x>
<x>881</x>
<y>1</y>
<height>16</height>
<width>88</width>
......@@ -701,7 +835,7 @@
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__pick</name>
<name>quantity</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -726,27 +860,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>683</x>
<x>157</x>
<y>1</y>
<height>16</height>
<width>88</width>
<width>74</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<name>sale_order</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -764,27 +896,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>1</alignment>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>773</x>
<x>2</x>
<y>1</y>
<height>16</height>
<width>88</width>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</name>
<name>wave_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -802,27 +932,169 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>863</x>
<x>80</x>
<y>1</y>
<height>16</height>
<width>88</width>
<width>75</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_type</name>
<name>ptcn</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>971</x>
<y>1</y>
<height>16</height>
<width>73</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_sl</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1046</x>
<y>1</y>
<height>16</height>
<width>71</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pick_type</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1119</x>
<y>1</y>
<height>16</height>
<width>63</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_pick_order</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1184</x>
<y>1</y>
<height>16</height>
<width>74</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>carton_pick_line</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......
......@@ -39,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>309</height>
<height>377</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -219,8 +219,8 @@
<values>
<item display="As per Routing" data="A"/>
<item display="LTL" data="L"/>
<item display="Master" data="M"/>
<item display="Parcel" data="P"/>
<item display="Master Pack" data="M"/>
<item display="Parcel Pack" data="P"/>
</values>
</table_column>
<table_column>
......@@ -230,22 +230,22 @@
<dbname>direct_pick_loc</dbname>
</table_column>
<table_column>
<type size="12">char</type>
<type size="25">char</type>
<updatewhereclause>no</updatewhereclause>
<name>ptcn_old</name>
<dbname>ptcn_old</dbname>
<name>pallet_no</name>
<dbname>pallet_no</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<text>Shipments</text>
<border>5</border>
<color>33554432</color>
<x>18</x>
<y>0</y>
<height>256</height>
<width>645</width>
<name>gb_1</name>
<y>184</y>
<height>81</height>
<width>658</width>
<name>gb_2</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -260,106 +260,6 @@
<color>553648127</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Parcel Allow:</text>
<border>0</border>
<color>33554432</color>
<x>354</x>
<y>181</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>parcelpack_allow_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>0</alignment>
<tabsequence>190</tabsequence>
<border>5</border>
<color>33554432</color>
<x>313</x>
<y>181</y>
<height>16</height>
<width>64</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>master_pack_allow</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<alignment>0</alignment>
<tabsequence>200</tabsequence>
<border>5</border>
<color>33554432</color>
<x>429</x>
<y>181</y>
<height>16</height>
<width>64</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>parcelpack_allow</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>upper</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
......@@ -402,7 +302,7 @@
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
......@@ -440,7 +340,7 @@
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
......@@ -476,7 +376,7 @@
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<tabsequence>60</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
......@@ -514,7 +414,7 @@
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<tabsequence>80</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
......@@ -552,7 +452,7 @@
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<tabsequence>100</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
......@@ -587,7 +487,7 @@
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<tabsequence>120</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
......@@ -619,119 +519,11 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>0</alignment>
<tabsequence>180</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
<y>181</y>
<height>16</height>
<width>64</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>active_pick_allow</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>0</alignment>
<tabsequence>250</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
<y>221</y>
<height>16</height>
<width>425</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
<y>21</y>
<height>16</height>
<width>119</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_mode</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>2</limit>
<allowedit>no</allowedit>
<case>upper</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
......@@ -769,7 +561,7 @@
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
......@@ -805,7 +597,7 @@
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<tabsequence>70</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
......@@ -843,7 +635,7 @@
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>100</tabsequence>
<tabsequence>90</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
......@@ -881,7 +673,7 @@
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<tabsequence>110</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
......@@ -912,29 +704,21 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>140</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Due Date To:</text>
<border>0</border>
<color>33554432</color>
<x>513</x>
<y>141</y>
<x>426</x>
<y>121</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dlv__to</name>
<name>due_date__to_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -944,70 +728,14 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Customer Code Dlv To :</text>
<border>0</border>
<color>33554432</color>
<x>371</x>
<y>141</y>
<height>16</height>
<width>139</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dlv__to_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Due Date To:</text>
<border>0</border>
<color>33554432</color>
<x>426</x>
<y>121</y>
<height>16</height>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_date__to_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Customer Code To:</text>
<text>Customer Code To:</text>
<border>0</border>
<color>33554432</color>
<x>400</x>
......@@ -1116,62 +844,6 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Wave Mode:</text>
<border>0</border>
<color>33554432</color>
<x>432</x>
<y>21</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_mode_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Master Allow:</text>
<border>0</border>
<color>33554432</color>
<x>232</x>
<y>181</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>master_pack_allow_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
......@@ -1368,20 +1040,56 @@
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
<y>141</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dlv__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Active Allow:</text>
<text>Customer Code Dlv To :</text>
<border>0</border>
<color>33554432</color>
<x>102</x>
<y>181</y>
<x>371</x>
<y>141</y>
<height>16</height>
<width>78</width>
<width>139</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>active_pick_allow_t</name>
<name>cust_code__dlv__to_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -1393,23 +1101,23 @@
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Printer For Label:</text>
<text>Wave Mode:</text>
<border>0</border>
<color>33554432</color>
<x>88</x>
<y>221</y>
<x>432</x>
<y>161</y>
<height>16</height>
<width>92</width>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name_t</name>
<name>wave_mode_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -1421,23 +1129,23 @@
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Stock To Dock:</text>
<text>Default Quantity Automatic:</text>
<border>0</border>
<color>33554432</color>
<x>481</x>
<y>181</y>
<x>22</x>
<y>161</y>
<height>16</height>
<width>84</width>
<width>157</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_to_dock_allow_t</name>
<name>default_qty_flag_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -1454,20 +1162,20 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<id>2</id>
<alignment>0</alignment>
<tabsequence>210</tabsequence>
<tabsequence>140</tabsequence>
<border>5</border>
<color>33554432</color>
<x>568</x>
<y>181</y>
<x>183</x>
<y>161</y>
<height>16</height>
<width>64</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_to_dock_allow</name>
<name>default_qty_flag</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
......@@ -1490,25 +1198,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>170</tabsequence>
<tabsequence>150</tabsequence>
<border>5</border>
<color>33554432</color>
<x>568</x>
<x>513</x>
<y>161</y>
<height>16</height>
<width>64</width>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>single_lot</name>
<name>wave_mode</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<limit>2</limit>
<allowedit>no</allowedit>
<case>any</case>
<case>upper</case>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1524,25 +1232,21 @@
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<GroupBox>
<band>Detail</band>
<alignment>1</alignment>
<text>Default Quantity Automatic:</text>
<border>0</border>
<text>Basic</text>
<border>5</border>
<color>33554432</color>
<x>22</x>
<y>161</y>
<height>16</height>
<width>157</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>default_qty_flag_t</name>
<x>18</x>
<y>0</y>
<height>183</height>
<width>645</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<height>-12</height>
<weight>700</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
......@@ -1551,23 +1255,23 @@
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
</GroupBox>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>17</id>
<alignment>0</alignment>
<tabsequence>150</tabsequence>
<tabsequence>170</tabsequence>
<border>5</border>
<color>33554432</color>
<x>183</x>
<y>161</y>
<x>238</x>
<y>206</y>
<height>16</height>
<width>64</width>
<width>71</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>default_qty_flag</name>
<name>master_pack_allow</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
......@@ -1588,21 +1292,29 @@
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Direct Pick Location:</text>
<border>0</border>
<id>22</id>
<alignment>0</alignment>
<tabsequence>180</tabsequence>
<border>5</border>
<color>33554432</color>
<x>253</x>
<y>161</y>
<x>364</x>
<y>206</y>
<height>16</height>
<width>127</width>
<width>71</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>direct_pick_loc_t</name>
<name>parcelpack_allow</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>upper</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -1612,31 +1324,67 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>24</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<border>0</border>
<tabsequence>190</tabsequence>
<border>5</border>
<color>33554432</color>
<x>396</x>
<y>161</y>
<x>494</x>
<y>206</y>
<height>16</height>
<width>98</width>
<width>71</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>direct_pick_loc</name>
<name>stock_to_dock_allow</name>
<visible>1</visible>
<EditStyle style="edit">
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>200</tabsequence>
<border>5</border>
<color>33554432</color>
<x>602</x>
<y>206</y>
<height>16</height>
<width>69</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>single_lot</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1652,16 +1400,72 @@
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Master Allow:</text>
<border>0</border>
<color>33554432</color>
<x>156</x>
<y>206</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>master_pack_allow_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Parcel Allow:</text>
<border>0</border>
<color>33554432</color>
<x>290</x>
<y>206</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>parcelpack_allow_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Single Lot:</text>
<border>0</border>
<color>33554432</color>
<x>504</x>
<y>161</y>
<x>543</x>
<y>206</y>
<height>16</height>
<width>61</width>
<width>58</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -1683,17 +1487,81 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Print Label:</text>
<text>Stock To Dock:</text>
<border>0</border>
<color>33554432</color>
<x>76</x>
<y>201</y>
<x>409</x>
<y>206</y>
<height>16</height>
<width>104</width>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>print_label_t</name>
<name>stock_to_dock_allow_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<border>5</border>
<color>33554432</color>
<x>95</x>
<y>206</y>
<height>16</height>
<width>71</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>active_pick_allow</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Active Allow:</text>
<border>0</border>
<color>33554432</color>
<x>19</x>
<y>206</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>active_pick_allow_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -1710,18 +1578,82 @@
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Pallet No:</text>
<border>0</border>
<color>33554432</color>
<x>31</x>
<y>226</y>
<height>16</height>
<width>61</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>25</id>
<alignment>0</alignment>
<text>Old PTCN:</text>
<tabsequence>230</tabsequence>
<border>0</border>
<color>33554432</color>
<x>95</x>
<y>226</y>
<height>16</height>
<width>175</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>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Direct Pick Location:</text>
<border>0</border>
<color>33554432</color>
<x>252</x>
<y>201</y>
<x>273</x>
<y>226</y>
<height>16</height>
<width>72</width>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_old_t</name>
<name>direct_pick_loc_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -1736,16 +1668,52 @@
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>24</id>
<alignment>0</alignment>
<tabsequence>220</tabsequence>
<border>0</border>
<color>33554432</color>
<x>385</x>
<y>226</y>
<height>16</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>direct_pick_loc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Shipment Type:</text>
<border>0</border>
<color>33554432</color>
<x>415</x>
<y>201</y>
<x>488</x>
<y>226</y>
<height>16</height>
<width>87</width>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -1768,13 +1736,13 @@
<band>Detail</band>
<id>23</id>
<alignment>0</alignment>
<tabsequence>240</tabsequence>
<tabsequence>210</tabsequence>
<border>5</border>
<color>33554432</color>
<x>506</x>
<y>201</y>
<x>577</x>
<y>226</y>
<height>16</height>
<width>126</width>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1801,17 +1769,45 @@
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Print Label:</text>
<border>0</border>
<color>33554432</color>
<x>26</x>
<y>246</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>print_label_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>220</tabsequence>
<tabsequence>240</tabsequence>
<border>5</border>
<color>33554432</color>
<x>184</x>
<y>201</y>
<x>95</x>
<y>246</y>
<height>16</height>
<width>64</width>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1837,22 +1833,50 @@
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Printer For Label:</text>
<border>0</border>
<color>33554432</color>
<x>182</x>
<y>246</y>
<height>16</height>
<width>106</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>printer_name_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>25</id>
<id>20</id>
<alignment>0</alignment>
<tabsequence>230</tabsequence>
<border>0</border>
<tabsequence>250</tabsequence>
<border>5</border>
<color>33554432</color>
<x>328</x>
<y>201</y>
<x>293</x>
<y>246</y>
<height>16</height>
<width>84</width>
<width>355</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptcn_old</name>
<name>printer_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1895,7 +1919,7 @@
<comment></comment>
<encoding>UTF-8</encoding>
<name>d_wavegen11</name>
<xml>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;d_wavegen&gt;&lt;d_wavegen_row __pbband=&quot;detail&quot;&gt;&lt;site_code/&gt;&lt;default_qty_flag&gt;default_qty_flag&lt;/default_qty_flag&gt;&lt;item_ser__from&gt;item_ser__from&lt;/item_ser__from&gt;&lt;item_ser__to&gt;item_ser__to&lt;/item_ser__to&gt;&lt;item_code__from&gt;item_code__from&lt;/item_code__from&gt;&lt;item_code__to&gt;item_code__to&lt;/item_code__to&gt;&lt;cust_code__dlv__from&gt;cust_code__dlv__from&lt;/cust_code__dlv__from&gt;&lt;cust_code__dlv__to&gt;cust_code__dlv__to&lt;/cust_code__dlv__to&gt;&lt;cust_code__from&gt;cust_code__from&lt;/cust_code__from&gt;&lt;cust_code__to&gt;cust_code__to&lt;/cust_code__to&gt;&lt;sale_order__from&gt;sale_order__from&lt;/sale_order__from&gt;&lt;sale_order__to&gt;sale_order__to&lt;/sale_order__to&gt;&lt;due_date__from&gt;due_date__from&lt;/due_date__from&gt;&lt;due_date__to&gt;due_date__to&lt;/due_date__to&gt;&lt;/d_wavegen_row&gt;&lt;/d_wavegen&gt;</xml>
<xml>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;d_wavegen&gt;&lt;d_wavegen_row __pbband=&quot;detail&quot;&gt;&lt;site_code/&gt;&lt;default_qty_flag/&gt;&lt;item_ser__from&gt;item_ser__from&lt;/item_ser__from&gt;&lt;item_ser__to&gt;item_ser__to&lt;/item_ser__to&gt;&lt;item_code__from&gt;item_code__from&lt;/item_code__from&gt;&lt;item_code__to&gt;item_code__to&lt;/item_code__to&gt;&lt;cust_code__dlv__from&gt;cust_code__dlv__from&lt;/cust_code__dlv__from&gt;&lt;cust_code__dlv__to&gt;cust_code__dlv__to&lt;/cust_code__dlv__to&gt;&lt;cust_code__from&gt;cust_code__from&lt;/cust_code__from&gt;&lt;cust_code__to&gt;cust_code__to&lt;/cust_code__to&gt;&lt;sale_order__from&gt;sale_order__from&lt;/sale_order__from&gt;&lt;sale_order__to&gt;sale_order__to&lt;/sale_order__to&gt;&lt;due_date__from&gt;due_date__from&lt;/due_date__from&gt;&lt;due_date__to&gt;due_date__to&lt;/due_date__to&gt;&lt;/d_wavegen_row&gt;&lt;/d_wavegen&gt;</xml>
</Template>
</Export.XML>
<Import.XML>
......
......@@ -31498,6 +31498,405 @@ alter table pick_iss_det modify carton_no varchar2(20);
alter table pick_iss_det add pack_code char(5);
DROP TABLE dealloc_art;
CREATE TABLE dealloc_art
(
TRAN_ID VARCHAR2(10),
SITE_CODE CHAR(5),
CONFIRMED CHAR(1),
CONF_DATE DATE,
CHG_DATE DATE,
CHG_USER CHAR(10),
CHG_TERM CHAR(15)
);
ALTER TABLE DEALLOC_ART ADD ( CONSTRAINT PK_A_DEALLOC PRIMARY KEY ( TRAN_ID )) ;
DROP TABLE dealloc_art_det;
Create table dealloc_art_det
(
TRAN_ID VARCHAR2(10),
LINE_NO NUMBER(3),
SALE_ORDER CHAR(10),
LINE_NO__SORD CHAR(3),
WAVE_ID VARCHAR2(12),
PTCN CHAR(10),
CARTON_NO VARCHAR2(20),
ITEM_CODE CHAR(10),
LOC_CODE CHAR(8),
LOT_NO CHAR(15),
LOT_SL CHAR(15),
QUANTITY NUMBER(14,3) ,
PICK_TYPE CHAR(1),
PICK_ORDER CHAR(10),
LINE_NO__PICK NUMBER(3)
);
ALTER TABLE DEALLOC_ART_DET ADD ( CONSTRAINT PK_A_DEALLOCDET PRIMARY KEY ( TRAN_ID, LINE_NO )) ;
alter table repl_ord_det add dealloc_qty NUMBER(14,3);
alter table repl_iss_det add dealloc_qty NUMBER(14,3);
alter table pick_ord_det add dealloc_qty NUMBER(14,3);
alter table pick_iss_det add dealloc_qty NUMBER(14,3);
INSERT INTO obj_itemchange (
obj_name ,
form_no ,
field_name ,
mandatory )
VALUES (
'dealloc_art_proc',
'1 ',
'itm_default',
'Y');
INSERT INTO SYSTEM_EVENTS (
obj_name ,
event_code ,
event_context ,
service_code ,
method_rule ,
overwrite_core ,
chg_date ,
chg_user ,
chg_term ,
result_handle ,
comp_type ,
comp_name ,
comm_format )
VALUES (
'dealloc_art_proc',
'post_item_change',
'1',
'poic_default_ejb',
NULL,
'0',
TO_DATE('11-01-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'BASE',
'2',
'EJB',
'DeallocArtIC',
NULL);
alter table pack_det add status char(1) default 'P';
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'INVDEALLQ1',
'Invalid quantity',
'Quantity can not be zero or less than zero',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('14-12-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE',
'BASE',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'INVDEALLQ2',
'Invalid quantity',
'Quantity can not be more than real quantity',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('14-12-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE',
'BASE',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'INVREFIDDE',
'Deallocation not allowed',
'Scanning is in progress, please scan first then deallocate.',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('14-12-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE',
'BASE',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'INVDEALLQ3',
'Invalid quantity',
'Quantity can not be altered for full CASES',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('14-12-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE',
'BASE',
NULL,
NULL);
delete from messages where msg_no in ('ATLSTSELMP','ATLSTSELPP','ATLSTSENAN','ONSELCMP','INVDPIKLOC');
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'NVLPLTMND',
'Blank Pallet No',
'Pallet No is Mandatory In case of Direct Pick Location Selected in Wave',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('14-12-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'Pragyan',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'NVLTRANCOD',
'DOCK Location not available',
'DOCK Location not available',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('14-12-2012 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'Pragyan',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'ATLSTSELMP',
'Invalid selection',
'For Master Pack , Shipment type should be As per Routing or Master Pack',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('25-02-2013 18:49:58','DD-MM-YYYY HH24:MI:SS'),
'base ',
'Pragyan ',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'ATLSTSELPP',
'Invalid selection',
'For Parcel Pack , Shipment type should be As per Routing or Parcel Pack',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('25-02-2013 18:49:58','DD-MM-YYYY HH24:MI:SS'),
'base ',
'Pragyan ',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'ATLSTSENAN',
'Invalid selection',
'Only For Master/Parcel Pack , Shipment Type should be Master/Parcel',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('25-02-2013 18:49:58','DD-MM-YYYY HH24:MI:SS'),
'base ',
'Pragyan ',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES(
'INVDPIKLOC',
'Invalid Direct Pick',
'Invalid Direct Pick Location',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('25-02-2013 18:49:58','DD-MM-YYYY HH24:MI:SS'),
'base ',
'Pragyan ',
NULL,
NULL);
INSERT INTO MESSAGES (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input,
mail_option )
VALUES (
'ONSELCMP ',
'Invalid selection',
'Both Master Allow and Parcel Allow should not be selected for the same wave',
'E',
'Y',
NULL,
NULL,
NULL,
TO_DATE('25-02-2013 18:49:58','DD-MM-YYYY HH24:MI:SS'),
'base ',
'Pragyan ',
NULL,
NULL);
commit;
......
......@@ -3,11 +3,54 @@ release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=33 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=ptcn dbname="dealloc_art.ptcn" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"dealloc_art~" ) COLUMN(NAME=~"dealloc_art.ptcn~")) " )
text(band=detail alignment="1" text="PTCN:" border="6" color="33554432" x="8" y="9" height="16" width="43" html.valueishtml="0" name=ptcn_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="56" y="9" height="16" width="112" format="[general]" html.valueishtml="0" name=ptcn visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
detail(height=269 color="536870912" )
table(column=(type=char(5) updatewhereclause=no name=site_code dbname="site_code" )
column=(type=char(10) updatewhereclause=no name=cust_code__fr dbname="cust_code__fr" initial="0" )
column=(type=char(10) updatewhereclause=no name=cust_code__to dbname="cust_code__to" initial="zz" )
column=(type=char(10) updatewhereclause=no name=cust_code__dlv_fr dbname="cust_code__dlv_fr" initial="0" )
column=(type=char(10) updatewhereclause=no name=cust_code__dlv_to dbname="cust_code__dlv_to" initial="zz" )
column=(type=char(5) updatewhereclause=no name=item_ser__fr dbname="item_ser__fr" initial="0" )
column=(type=char(5) updatewhereclause=no name=item_ser__to dbname="item_ser__to" initial="zz" )
column=(type=char(10) updatewhereclause=no name=item_code__fr dbname="item_code__fr" initial="0" )
column=(type=char(10) updatewhereclause=no name=item_code__to dbname="item_code__to" initial="zz" )
column=(type=char(15) updatewhereclause=no name=lot_no__fr dbname="lot_no__fr" initial="0" )
column=(type=char(15) updatewhereclause=no name=lot_no__to dbname="lot_no__to" initial="zz" )
column=(type=char(10) updatewhereclause=no name=sale_order__fr dbname="sale_order__fr" initial="0" )
column=(type=char(10) updatewhereclause=no name=sale_order__to dbname="sale_order__to" initial="zz" )
column=(type=char(20) updatewhereclause=no name=carton_no__fr dbname="carton_no__fr" initial="0" )
column=(type=char(20) updatewhereclause=no name=carton_no__to dbname="carton_no__to" initial="zz" )
)
groupbox(band=detail text="Filter Parameters"border="2" color="33554432" x="30" y="22" height="227" width="511" name=gb_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="198" y="50" height="19" width="95" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=20 border="5" color="33554432" x="198" y="74" height="16" width="95" format="[general]" html.valueishtml="0" name=sale_order__fr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=40 border="5" color="33554432" x="198" y="97" height="19" width="95" format="[general]" html.valueishtml="0" name=cust_code__fr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=60 border="5" color="33554432" x="198" y="121" height="19" width="95" format="[general]" html.valueishtml="0" name=cust_code__dlv_fr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="To:" border="6" color="33554432" x="406" y="74" height="16" width="24" html.valueishtml="0" name=sale_order__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="To:" border="6" color="33554432" x="406" y="98" height="16" width="24" html.valueishtml="0" name=cust_code__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="To:" border="6" color="33554432" x="406" y="122" height="16" width="24" html.valueishtml="0" name=cust_code__dlv_to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="To:" border="6" color="33554432" x="452" y="146" height="16" width="24" html.valueishtml="0" name=item_ser__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="To:" border="6" color="33554432" x="406" y="170" height="16" width="24" html.valueishtml="0" name=item_code__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="To:" border="6" color="33554432" x="375" y="194" height="16" width="24" html.valueishtml="0" name=lot_no__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="To:" border="6" color="33554432" x="375" y="219" height="16" width="24" html.valueishtml="0" name=carton_no__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=15 alignment="0" tabsequence=150 border="5" color="33554432" x="404" y="219" height="16" width="126" format="[general]" html.valueishtml="0" name=carton_no__to visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=130 border="5" color="33554432" x="404" y="194" height="19" width="126" format="[general]" html.valueishtml="0" name=lot_no__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=110 border="5" color="33554432" x="435" y="168" height="19" width="95" format="[general]" html.valueishtml="0" name=item_code__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=90 border="5" color="33554432" x="482" y="145" height="19" width="48" format="[general]" html.valueishtml="0" name=item_ser__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=70 border="5" color="33554432" x="435" y="121" height="19" width="95" format="[general]" html.valueishtml="0" name=cust_code__dlv_to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=50 border="5" color="33554432" x="435" y="97" height="19" width="95" format="[general]" html.valueishtml="0" name=cust_code__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=30 border="5" color="33554432" x="435" y="74" height="16" width="95" format="[general]" html.valueishtml="0" name=sale_order__to visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Site Code:" border="6" color="33554432" x="75" y="50" height="16" width="115" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Sale Order From:" border="6" color="33554432" x="39" y="74" height="16" width="151" html.valueishtml="0" name=sale_order__fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Customer Group From:" border="6" color="33554432" x="57" y="98" height="16" width="133" html.valueishtml="0" name=cust_code__fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Customer (Delivery) From:" border="6" color="33554432" x="39" y="122" height="16" width="151" html.valueishtml="0" name=cust_code__dlv_fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Series From:" border="6" color="33554432" x="75" y="146" height="16" width="115" html.valueishtml="0" name=item_ser__fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code From:" border="6" color="33554432" x="75" y="170" height="16" width="115" html.valueishtml="0" name=item_code__fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Lot No From:" border="6" color="33554432" x="75" y="194" height="16" width="115" html.valueishtml="0" name=lot_no__fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Carton From:" border="6" color="33554432" x="74" y="218" height="16" width="115" html.valueishtml="0" name=carton_no__fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=14 alignment="0" tabsequence=140 border="5" color="33554432" x="198" y="219" height="16" width="126" format="[general]" html.valueishtml="0" name=carton_no__fr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="0" tabsequence=120 border="5" color="33554432" x="198" y="194" height="19" width="126" format="[general]" html.valueishtml="0" name=lot_no__fr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=100 border="5" color="33554432" x="198" y="169" height="19" width="95" format="[general]" html.valueishtml="0" name=item_code__fr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=80 border="5" color="33554432" x="198" y="145" height="19" width="48" format="[general]" html.valueishtml="0" name=item_ser__fr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
$PBExportHeader$
$PBExportHeader$d_dealloc_art_proc12.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=23 color="536870912" )
header(height=21 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=21 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=ptcn dbname="dealloc_art.ptcn" )
column=(type=char(12) updatewhereclause=yes name=wave_id dbname="dealloc_art.wave_id" )
column=(type=char(5) updatewhereclause=yes name=site_code dbname="dealloc_art.site_code" )
detail(height=22 color="536870912" )
table(column=(type=char(12) updatewhereclause=yes name=wave_id dbname="dealloc_art_det.wave_id" )
column=(type=char(10) updatewhereclause=yes name=ptcn dbname="dealloc_art_det.ptcn" )
column=(type=char(0) updatewhereclause=yes name=sale_order dbname="sale_order" )
column=(type=char(0) updatewhereclause=yes name=line_no__sord dbname="line_no__sord" )
column=(type=char(20) updatewhereclause=yes name=carton_no dbname="dealloc_art_det.carton_no" )
column=(type=char(10) updatewhereclause=yes name=pick_order dbname="dealloc_art_det.pick_order" )
column=(type=decimal(0) updatewhereclause=yes name=line_no__pick dbname="dealloc_art_det.line_no__pick" )
column=(type=char(10) updatewhereclause=yes name=item_code dbname="dealloc_art_det.item_code" )
column=(type=char(8) updatewhereclause=yes name=loc_code dbname="dealloc_art_det.loc_code" )
column=(type=char(15) updatewhereclause=yes name=lot_no dbname="dealloc_art_det.lot_no" )
column=(type=decimal(3) updatewhereclause=yes name=quantity dbname="dealloc_art_det.quantity" )
column=(type=char(15) updatewhereclause=yes name=lot_sl dbname="dealloc_art_det.lot_sl" )
column=(type=char(1) updatewhereclause=yes name=pick_type dbname="dealloc_art_det.pick_type" )
retrieve=" SELECT ~"DEALLOC_ART~".~"PTCN~",
~"DEALLOC_ART~".~"WAVE_ID~",
~"DEALLOC_ART~".~"SITE_CODE~",
''sale_order,
''line_no__sord,
~"DEALLOC_ART_DET~".~"CARTON_NO~",
~"DEALLOC_ART_DET~".~"PICK_ORDER~",
~"DEALLOC_ART_DET~".~"LINE_NO__PICK~",
~"DEALLOC_ART_DET~".~"ITEM_CODE~",
~"DEALLOC_ART_DET~".~"QUANTITY~",
~"DEALLOC_ART_DET~".~"PICK_TYPE~"
FROM ~"DEALLOC_ART~",
~"DEALLOC_ART_DET~"
WHERE ( ~"DEALLOC_ART~".~"TRAN_ID~" = ~"DEALLOC_ART_DET~".~"TRAN_ID~" )
" )
text(band=header alignment="2" text="PTCN" border="6" color="33554432" x="2" y="2" height="16" width="66" html.valueishtml="0" name=ptcn_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Wave Id" border="6" color="33554432" x="70" y="2" height="16" width="78" html.valueishtml="0" name=wave_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Site Code" border="6" color="33554432" x="150" y="2" height="16" width="64" html.valueishtml="0" name=site_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Sale Order" border="6" color="33554432" x="216" y="2" height="16" width="74" html.valueishtml="0" name=sale_order_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Line No Sord" border="6" color="33554432" x="292" y="2" height="16" width="81" html.valueishtml="0" name=line_no__sord_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Carton No" border="6" color="33554432" x="375" y="2" height="16" width="126" html.valueishtml="0" name=carton_no_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Pick Order" border="6" color="33554432" x="503" y="2" height="16" width="88" html.valueishtml="0" name=pick_order_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Line No Pick" border="6" color="33554432" x="593" y="2" height="16" width="88" html.valueishtml="0" name=line_no__pick_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Item Code" border="6" color="33554432" x="683" y="2" height="16" width="88" html.valueishtml="0" name=item_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Quantity" border="6" color="33554432" x="773" y="2" height="16" width="88" html.valueishtml="0" name=quantity_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Pick Type" border="6" color="33554432" x="863" y="2" height="16" width="88" html.valueishtml="0" name=pick_type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="2" y="1" height="16" width="66" format="[general]" html.valueishtml="0" name=ptcn visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="70" y="1" height="16" width="78" format="[general]" html.valueishtml="0" name=wave_id visible="1" edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="150" y="1" height="16" width="64" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="33554432" x="216" y="1" height="16" width="74" format="[general]" html.valueishtml="0" name=sale_order visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="33554432" x="292" y="1" height="16" width="81" format="[general]" html.valueishtml="0" name=line_no__sord visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="33554432" x="375" y="1" height="16" width="126" format="[general]" html.valueishtml="0" name=carton_no visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="33554432" x="503" y="1" height="16" width="88" format="[general]" html.valueishtml="0" name=pick_order visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="1" tabsequence=32766 border="5" color="33554432" x="593" y="1" height="16" width="88" format="[general]" html.valueishtml="0" name=line_no__pick visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="33554432" x="683" y="1" height="16" width="88" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="1" tabsequence=32766 border="5" color="33554432" x="773" y="1" height="16" width="88" format="[general]" html.valueishtml="0" name=quantity visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="33554432" x="863" y="1" height="16" width="88" format="[general]" html.valueishtml="0" name=pick_type visible="1" edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column=(type=char(0) updatewhereclause=yes name=carton_pick_order dbname="carton_pick_order" )
column=(type=char(0) updatewhereclause=yes name=carton_pick_line dbname="carton_pick_line" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"dealloc_art_det~" ) COLUMN(NAME=~"dealloc_art_det.wave_id~") COLUMN(NAME=~"dealloc_art_det.ptcn~") COMPUTE(NAME=~"''sale_order~") COMPUTE(NAME=~"''line_no__sord~") COLUMN(NAME=~"dealloc_art_det.carton_no~") COLUMN(NAME=~"dealloc_art_det.pick_order~") COLUMN(NAME=~"dealloc_art_det.line_no__pick~") COLUMN(NAME=~"dealloc_art_det.item_code~") COLUMN(NAME=~"dealloc_art_det.loc_code~") COLUMN(NAME=~"dealloc_art_det.lot_no~") COLUMN(NAME=~"dealloc_art_det.quantity~") COLUMN(NAME=~"dealloc_art_det.lot_sl~") COLUMN(NAME=~"dealloc_art_det.pick_type~") COMPUTE(NAME=~"''carton_pick_order~") COMPUTE(NAME=~"'' carton_pick_line~")) " )
text(band=header alignment="2" text="Wave Id" border="6" color="33554432" x="2" y="2" height="16" width="76" html.valueishtml="0" name=wave_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Line No Sord" border="6" color="33554432" x="233" y="2" height="16" width="81" html.valueishtml="0" name=line_no__sord_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Carton No" border="6" color="33554432" x="316" y="2" height="16" width="126" html.valueishtml="0" name=carton_no_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Ref Id" border="6" color="33554432" x="444" y="2" height="16" width="88" html.valueishtml="0" name=pick_order_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Ref Line No" border="6" color="33554432" x="534" y="2" height="16" width="76" html.valueishtml="0" name=line_no__pick_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Item Code" border="6" color="33554432" x="612" y="2" height="16" width="79" html.valueishtml="0" name=item_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Location Code" border="6" color="33554432" x="693" y="2" height="16" width="83" html.valueishtml="0" name=loc_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Lot No" border="6" color="33554432" x="778" y="2" height="16" width="101" html.valueishtml="0" name=lot_no_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Quantity" border="6" color="33554432" x="881" y="2" height="16" width="88" html.valueishtml="0" name=quantity_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Sale Order" border="6" color="33554432" x="157" y="2" height="16" width="74" html.valueishtml="0" name=sale_order_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="PTCN" border="6" color="33554432" x="80" y="2" height="16" width="75" html.valueishtml="0" name=ptcn_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Lot Sl" border="6" color="33554432" x="971" y="2" height="16" width="73" html.valueishtml="0" name=lot_sl_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Pick Type" border="6" color="33554432" x="1046" y="2" height="16" width="71" html.valueishtml="0" name=pick_type_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Pick Order" border="6" color="33554432" x="1119" y="2" height="16" width="63" html.valueishtml="0" name=carton_pick_order_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Pick Line" border="6" color="33554432" x="1184" y="2" height="16" width="74" html.valueishtml="0" name=carton_pick_line_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="33554432" x="233" y="1" height="16" width="81" format="[general]" html.valueishtml="0" name=line_no__sord visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="33554432" x="316" y="1" height="16" width="126" format="[general]" html.valueishtml="0" name=carton_no visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="33554432" x="444" y="1" height="16" width="88" format="[general]" html.valueishtml="0" name=pick_order visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="1" tabsequence=32766 border="5" color="33554432" x="534" y="1" height="16" width="76" format="[general]" html.valueishtml="0" name=line_no__pick visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="33554432" x="612" y="1" height="16" width="79" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="33554432" x="693" y="1" height="16" width="83" format="[general]" html.valueishtml="0" name=loc_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="33554432" x="778" y="1" height="16" width="101" format="[general]" html.valueishtml="0" name=lot_no visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="1" tabsequence=10 border="5" color="33554432" x="881" y="1" height="16" width="88" format="[general]" html.valueishtml="0" name=quantity visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="157" y="1" height="16" width="74" format="[general]" html.valueishtml="0" name=sale_order visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="2" y="1" height="16" width="76" format="[general]" html.valueishtml="0" name=wave_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="80" y="1" height="16" width="75" format="[general]" html.valueishtml="0" name=ptcn visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="33554432" x="971" y="1" height="16" width="73" format="[general]" html.valueishtml="0" name=lot_sl visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="33554432" x="1046" y="1" height="16" width="71" format="[general]" html.valueishtml="0" name=pick_type visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="33554432" x="1119" y="1" height="16" width="63" format="[general]" html.valueishtml="0" name=carton_pick_order visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="33554432" x="1184" y="1" height="16" width="74" format="[general]" html.valueishtml="0" name=carton_pick_line visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
......@@ -3,9 +3,9 @@ release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=309 color="536870912" )
detail(height=294 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=site_code dbname="site_code" )
column=(type=char(1) updatewhereclause=no name=default_qty_flag dbname="name_1" values="Yes Y/No N/" )
column=(type=char(1) updatewhereclause=no name=default_qty_flag dbname="name_1" values="YES Y/NO N/" )
column=(type=char(10) updatewhereclause=no name=item_ser__from dbname="item_ser__from" )
column=(type=char(10) updatewhereclause=no name=item_ser__to dbname="item_ser__to" )
column=(type=char(10) updatewhereclause=no name=item_code__from dbname="item_code__from" )
......@@ -26,37 +26,28 @@ table(column=(type=char(10) updatewhereclause=no name=site_code dbname="site_cod
column=(type=char(200) updatewhereclause=no name=printer_name dbname="printer_name" )
column=(type=char(1) updatewhereclause=no name=print_label dbname="print_label" initial="N" values="YES Y/NO N/" )
column=(type=char(1) updatewhereclause=no name=parcelpack_allow dbname="parcelpack_allow" values="YES Y/NO N/" )
column=(type=char(1) updatewhereclause=no name=ship_type dbname="ship_type" values="As per Routing A/LTL L/Master M/Parcel P/" )
column=(type=char(1) updatewhereclause=no name=ship_type dbname="ship_type" values="As per Routing A/LTL L/Master Pack M/Parcel Pack P/" )
column=(type=char(10) updatewhereclause=no name=direct_pick_loc dbname="direct_pick_loc" )
column=(type=char(25) updatewhereclause=no name=pallet_no dbname="pallet_no" )
)
groupbox(band=detail text="Basic"border="5" color="33554432" x="20" y="0" height="244" width="610" name=gb_1 visible="1" font.face="Times New Roman" font.height="-12" font.weight="700" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Parcel Allow:" border="0" color="33554432" x="354" y="181" height="16" width="73" html.valueishtml="0" name=parcelpack_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=17 alignment="0" tabsequence=190 border="5" color="33554432" x="313" y="181" height="16" width="64" format="[general]" html.valueishtml="0" name=master_pack_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=22 alignment="0" tabsequence=200 border="5" color="33554432" x="429" y="181" height="16" width="64" format="[general]" html.valueishtml="0" name=parcelpack_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
groupbox(band=detail text="Basic"border="5" color="33554432" x="18" y="0" height="183" width="645" name=gb_1 visible="1" font.face="Times New Roman" font.height="-12" font.weight="700" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="184" y="21" height="16" width="95" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="33554432" x="184" y="41" height="16" width="95" format="[general]" html.valueishtml="0" name=item_ser__from visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=50 border="5" color="33554432" x="184" y="61" height="18" width="95" format="[general]" html.valueishtml="0" name=item_code__from visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=70 border="5" color="33554432" x="184" y="81" height="16" width="95" format="[general]" html.valueishtml="0" name=sale_order__from visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=90 border="5" color="33554432" x="184" y="101" height="17" width="95" format="[general]" html.valueishtml="0" name=cust_code__from visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=110 border="5" color="33554432" x="184" y="121" height="16" width="95" format="[shortdate] [time]" html.valueishtml="0" name=due_date__from visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=130 border="5" color="33554432" x="184" y="141" height="16" width="95" format="[general]" html.valueishtml="0" name=cust_code__dlv__from visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=18 alignment="0" tabsequence=180 border="5" color="33554432" x="184" y="181" height="16" width="64" format="[general]" html.valueishtml="0" name=active_pick_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=20 alignment="0" tabsequence=240 border="5" color="33554432" x="184" y="221" height="16" width="425" format="[general]" html.valueishtml="0" name=printer_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=15 alignment="0" tabsequence=20 border="5" color="33554432" x="513" y="21" height="16" width="119" format="[general]" html.valueishtml="0" name=wave_mode visible="1" ddlb.limit=2 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=4 alignment="0" tabsequence=40 border="5" color="33554432" x="513" y="41" height="16" width="96" format="[general]" html.valueishtml="0" name=item_ser__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=60 border="5" color="33554432" x="513" y="61" height="18" width="96" format="[general]" html.valueishtml="0" name=item_code__to visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=80 border="5" color="33554432" x="513" y="81" height="16" width="96" format="[general]" html.valueishtml="0" name=sale_order__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="0" tabsequence=100 border="5" color="33554432" x="513" y="101" height="17" width="96" format="[general]" html.valueishtml="0" name=cust_code__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=120 border="5" color="33554432" x="513" y="121" height="16" width="96" format="[shortdate] [time]" html.valueishtml="0" name=due_date__to visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=140 border="5" color="33554432" x="513" y="141" height="16" width="96" format="[general]" html.valueishtml="0" name=cust_code__dlv__to visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Customer Code Dlv To :" border="0" color="33554432" x="371" y="141" height="16" width="139" html.valueishtml="0" name=cust_code__dlv__to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=20 border="5" color="33554432" x="184" y="41" height="16" width="95" format="[general]" html.valueishtml="0" name=item_ser__from visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=40 border="5" color="33554432" x="184" y="61" height="18" width="95" format="[general]" html.valueishtml="0" name=item_code__from visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=60 border="5" color="33554432" x="184" y="81" height="16" width="95" format="[general]" html.valueishtml="0" name=sale_order__from visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=80 border="5" color="33554432" x="184" y="101" height="17" width="95" format="[general]" html.valueishtml="0" name=cust_code__from visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=100 border="5" color="33554432" x="184" y="121" height="16" width="95" format="[shortdate] [time]" html.valueishtml="0" name=due_date__from visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=120 border="5" color="33554432" x="184" y="141" height="16" width="95" format="[general]" html.valueishtml="0" name=cust_code__dlv__from visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=30 border="5" color="33554432" x="513" y="41" height="16" width="96" format="[general]" html.valueishtml="0" name=item_ser__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=50 border="5" color="33554432" x="513" y="61" height="18" width="96" format="[general]" html.valueishtml="0" name=item_code__to visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=70 border="5" color="33554432" x="513" y="81" height="16" width="96" format="[general]" html.valueishtml="0" name=sale_order__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="0" tabsequence=90 border="5" color="33554432" x="513" y="101" height="17" width="96" format="[general]" html.valueishtml="0" name=cust_code__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=110 border="5" color="33554432" x="513" y="121" height="16" width="96" format="[shortdate] [time]" html.valueishtml="0" name=due_date__to visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Due Date To:" border="0" color="33554432" x="426" y="121" height="16" width="84" html.valueishtml="0" name=due_date__to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Customer Code To:" border="0" color="33554432" x="400" y="101" height="17" width="110" html.valueishtml="0" name=cust_code__to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Sale Order To:" border="0" color="33554432" x="426" y="81" height="16" width="84" html.valueishtml="0" name=sale_order__to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code To:" border="0" color="33554432" x="426" y="61" height="16" width="84" html.valueishtml="0" name=item_code__to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Series To:" border="0" color="33554432" x="426" y="41" height="16" width="84" html.valueishtml="0" name=item_ser__to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Wave Mode:" border="0" color="33554432" x="432" y="21" height="16" width="78" html.valueishtml="0" name=wave_mode_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Master Allow:" border="0" color="33554432" x="232" y="181" height="16" width="78" html.valueishtml="0" name=master_pack_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="86" y="21" height="16" width="94" html.valueishtml="0" name=site_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Series From:" border="0" color="33554432" x="82" y="41" height="16" width="98" html.valueishtml="0" name=item_ser__from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code From:" border="0" color="33554432" x="86" y="61" height="16" width="94" html.valueishtml="0" name=item_code__from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
......@@ -64,23 +55,36 @@ text(band=detail alignment="1" text="Sale Order From:" border="0" color="335544
text(band=detail alignment="1" text="Customer Code From:" border="0" color="33554432" x="52" y="101" height="16" width="128" html.valueishtml="0" name=cust_code__from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Due Date From:" border="0" color="33554432" x="86" y="121" height="16" width="94" html.valueishtml="0" name=due_date__from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Customer Code Dlv From :" border="0" color="33554432" x="33" y="141" height="16" width="147" html.valueishtml="0" name=cust_code__dlv__from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Active Allow:" border="0" color="33554432" x="102" y="181" height="16" width="78" html.valueishtml="0" name=active_pick_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Printer For Label:" border="0" color="33554432" x="88" y="221" height="16" width="92" html.valueishtml="0" name=printer_name_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Stock To Dock:" border="0" color="33554432" x="481" y="181" height="16" width="84" html.valueishtml="0" name=stock_to_dock_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=19 alignment="0" tabsequence=210 border="5" color="33554432" x="568" y="181" height="16" width="64" format="[general]" html.valueishtml="0" name=stock_to_dock_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Print Label:" border="0" color="33554432" x="76" y="201" height="16" width="104" html.valueishtml="0" name=print_label_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=21 alignment="0" tabsequence=220 border="5" color="33554432" x="184" y="201" height="16" width="64" format="[general]" html.valueishtml="0" name=print_label visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Shipment Type:" border="0" color="33554432" x="415" y="201" height="16" width="87" html.valueishtml="0" name=ship_type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=23 alignment="0" tabsequence=230 border="5" color="33554432" x="506" y="201" height="16" width="126" format="[general]" html.valueishtml="0" name=ship_type visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=upper ddlb.useasborder=yes ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=16 alignment="0" tabsequence=170 border="5" color="33554432" x="568" y="161" height="16" width="64" format="[general]" html.valueishtml="0" name=single_lot visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=8 alignment="0" tabsequence=130 border="5" color="33554432" x="513" y="141" height="16" width="96" format="[general]" html.valueishtml="0" name=cust_code__dlv__to visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Customer Code Dlv To :" border="0" color="33554432" x="371" y="141" height="16" width="139" html.valueishtml="0" name=cust_code__dlv__to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Wave Mode:" border="0" color="33554432" x="432" y="161" height="16" width="78" html.valueishtml="0" name=wave_mode_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Default Quantity Automatic:" border="0" color="33554432" x="22" y="161" height="16" width="157" html.valueishtml="0" name=default_qty_flag_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=2 alignment="0" tabsequence=150 border="5" color="33554432" x="183" y="161" height="16" width="64" format="[general]" html.valueishtml="0" name=default_qty_flag visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Direct Pick Location:" border="0" color="33554432" x="253" y="161" height="16" width="127" html.valueishtml="0" name=direct_pick_loc_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=24 alignment="0" tabsequence=160 border="0" color="33554432" x="396" y="161" height="16" width="98" format="[general]" html.valueishtml="0" name=direct_pick_loc visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Single Lot:" border="0" color="33554432" x="504" y="161" height="16" width="61" html.valueishtml="0" name=single_lot_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=2 alignment="0" tabsequence=140 border="5" color="33554432" x="183" y="161" height="16" width="64" format="[general]" html.valueishtml="0" name=default_qty_flag visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=15 alignment="0" tabsequence=150 border="5" color="33554432" x="513" y="161" height="16" width="96" format="[general]" html.valueishtml="0" name=wave_mode visible="1" ddlb.limit=2 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
groupbox(band=detail text="Shipments"border="5" color="33554432" x="18" y="191" height="90" width="697" name=gb_2 visible="1" font.face="Times New Roman" font.height="-12" font.weight="700" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Pallet No:" border="0" color="33554432" x="31" y="233" height="16" width="61" html.valueishtml="0" name=pallet_no_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=25 alignment="0" tabsequence=210 border="0" color="33554432" x="95" y="233" height="16" width="171" format="[general]" html.valueishtml="0" name=pallet_no visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Print Label:" border="0" color="33554432" x="26" y="253" height="16" width="66" html.valueishtml="0" name=print_label_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Active Allow:" border="0" color="33554432" x="19" y="213" height="16" width="73" html.valueishtml="0" name=active_pick_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Master Allow:" border="0" color="33554432" x="151" y="213" height="16" width="78" html.valueishtml="0" name=master_pack_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=17 alignment="0" tabsequence=170 border="5" color="33554432" x="234" y="213" height="16" width="66" format="[general]" html.valueishtml="0" name=master_pack_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Parcel Allow:" border="0" color="33554432" x="290" y="213" height="16" width="73" html.valueishtml="0" name=parcelpack_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=22 alignment="0" tabsequence=180 border="5" color="33554432" x="366" y="213" height="16" width="66" format="[general]" html.valueishtml="0" name=parcelpack_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Single Lot:" border="0" color="33554432" x="568" y="213" height="16" width="68" html.valueishtml="0" name=single_lot_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=16 alignment="0" tabsequence=200 border="5" color="33554432" x="637" y="213" height="16" width="66" format="[general]" html.valueishtml="0" name=single_lot visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Direct Pick Location:" border="0" color="33554432" x="269" y="233" height="16" width="114" html.valueishtml="0" name=direct_pick_loc_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=24 alignment="0" tabsequence=220 border="0" color="33554432" x="387" y="233" height="16" width="85" format="[general]" html.valueishtml="0" name=direct_pick_loc visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=23 alignment="0" tabsequence=230 border="5" color="33554432" x="579" y="233" height="16" width="124" format="[general]" html.valueishtml="0" name=ship_type visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Shipment Type:" border="0" color="33554432" x="475" y="233" height="16" width="98" html.valueishtml="0" name=ship_type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=18 alignment="0" tabsequence=160 border="5" color="33554432" x="95" y="213" height="16" width="66" format="[general]" html.valueishtml="0" name=active_pick_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=21 alignment="0" tabsequence=240 border="5" color="33554432" x="95" y="253" height="16" width="66" format="[general]" html.valueishtml="0" name=print_label visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Printer For Label1:" border="0" color="33554432" x="166" y="253" height="16" width="131" html.valueishtml="0" name=printer_name_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=20 alignment="0" tabsequence=250 border="5" color="33554432" x="303" y="253" height="16" width="379" format="[general]" html.valueishtml="0" name=printer_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Stock To Dock:" border="0" color="33554432" x="423" y="213" height="16" width="84" html.valueishtml="0" name=stock_to_dock_allow_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=19 alignment="0" tabsequence=190 border="5" color="33554432" x="511" y="213" height="16" width="66" format="[general]" html.valueishtml="0" name=stock_to_dock_allow visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="UTF-8" name="d_wavegen11" xml="<?xml version=~"1.0~" encoding=~"UTF-8~" standalone=~"no~"?><d_wavegen><d_wavegen_row __pbband=~"detail~"><site_code/><default_qty_flag>default_qty_flag</default_qty_flag><item_ser__from>item_ser__from</item_ser__from><item_ser__to>item_ser__to</item_ser__to><item_code__from>item_code__from</item_code__from><item_code__to>item_code__to</item_code__to><cust_code__dlv__from>cust_code__dlv__from</cust_code__dlv__from><cust_code__dlv__to>cust_code__dlv__to</cust_code__dlv__to><cust_code__from>cust_code__from</cust_code__from><cust_code__to>cust_code__to</cust_code__to><sale_order__from>sale_order__from</sale_order__from><sale_order__to>sale_order__to</sale_order__to><due_date__from>due_date__from</due_date__from><due_date__to>due_date__to</due_date__to></d_wavegen_row></d_wavegen>"))
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="UTF-8" name="d_wavegen11" xml="<?xml version=~"1.0~" encoding=~"UTF-8~" standalone=~"no~"?><d_wavegen><d_wavegen_row __pbband=~"detail~"><site_code/><default_qty_flag/><item_ser__from>item_ser__from</item_ser__from><item_ser__to>item_ser__to</item_ser__to><item_code__from>item_code__from</item_code__from><item_code__to>item_code__to</item_code__to><cust_code__dlv__from>cust_code__dlv__from</cust_code__dlv__from><cust_code__dlv__to>cust_code__dlv__to</cust_code__dlv__to><cust_code__from>cust_code__from</cust_code__from><cust_code__to>cust_code__to</cust_code__to><sale_order__from>sale_order__from</sale_order__from><sale_order__to>sale_order__to</sale_order__to><due_date__from>due_date__from</due_date__from><due_date__to>due_date__to</due_date__to></d_wavegen_row></d_wavegen>"))
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment