Commit d24a4834 authored by pjain's avatar pjain

changed by sankara on 02/06/14 updated srd, metadata , sql and wavegenerationprc src


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95189 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e71e2bb8
...@@ -4659,625 +4659,476 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -4659,625 +4659,476 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
} }
//Changed by sumit sarkar on 23/08/11 [ WM1ESUN006 ] to make compitable to call updateWaveTask() method. //Changed by sumit sarkar on 23/08/11 [ WM1ESUN006 ] to make compitable to call updateWaveTask() method.
//private String sorderAllocate(String saleOrder, String lineNo, String itemCode, double allocQty, String expLev) throws ITMException //private String sorderAllocate(String saleOrder, String lineNo, String itemCode, double allocQty, String expLev) throws ITMException
private String sorderAllocate(Document headerDom, Document detailDom , String saleOrder, String lineNo, String itemCode, double allocQty,String singleLot,double pendingQty,String isActivePickChecked,String isMasterPackChecked,String isStockToDockChecked,String isParcelPickChecked, String expLev, String xtraParams,String shipTypeLine, Connection conn ) throws ITMException private String sorderAllocate(Document headerDom, Document detailDom , String saleOrder, String lineNo, String itemCode, double allocQty,String singleLot,double pendingQty,String isActivePickChecked,String isMasterPackChecked,String isStockToDockChecked,String isParcelPickChecked, String expLev, String xtraParams,String shipTypeLine, Connection conn ) throws ITMException
{
System.out.println("updateSOrder calling ....**************..........["+saleOrder+"]");
String getDataSql = null;
String sorditemSql=null;
String itemCodeOrd = null ;
String unitStd = null ;
String lotSl= null;
String lotNo = null;
String locCode = null;
String itemShDescr = null;
String locDescr = null;
String unit = null;
String grade = null;
String siteCodeMfg =null;
String itemRef = null;
String status =null;
//Changed By Pragyan
String invStat = "";
//Changed By Pragyan 18/02/13 to check previous replenishment Location.start
String replHistStr = "";
String prvReplID = "";
String prvLocCodeTo = "";
int prvReplLineNo = 0;
String prvPickOrd = "";
int prvPickLineNo = 0;
String isRepl = "";
String replQuantity = "";
//Changed By Pragyan 18/02/13 to check previous replenishment Location.end
//Changed by sankara on 03-08-2012 for adding Loctype
String locType = "";
String locTypeParent = "";
int locZonePref = 0;
double height = 0,len = 0,width =0,netwt=0;
int noArt;
java.sql.Date expDate = new java.sql.Date(System.currentTimeMillis());
java.sql.Date mfgDate = new java.sql.Date(System.currentTimeMillis());
java.sql.Date dateAlloc= new java.sql.Date(System.currentTimeMillis());
String updateSorditem = null;
String insertSql = null;
String updateSordalloc = null;
String updateSql= null;
String flag = null;
//Changed by Rohan on 29-12-11 as said by gulzar.start
String resrvLoc = "";
String casePickLoc = "";
String activePickLoc = "";
String deepStoreLoc = "";//Changed By Pragyan
String partialResrvLoc = "";
//Changed by Rohan on 29-12-11 as said by gulzar.end
double stockQuantity = 0;
double qtyAvailAlloc = 0;
double lotQtyToBeAllocated = 0;
double qtyDesp =0;
double quantity =0;
double convQtyStduom = 0 ;
double quantityStduom = 0 ;
double pendingQuantity = 0;
int intCnt=0;
int updCnt=0;
String orderByStkStr = "";
String errString = "";
String error = "";
String errCode = "";
//Connection conn = null;
PreparedStatement pstmtStock = null;
PreparedStatement pstmtStockInsertSordAlloc = null;
//Changed by Rohan on 13-04-12 To create prepared statement & result set.start
String manStockData = "";
//PreparedStatement pstmt = null;
ResultSet rSet = null;
//Change by Rohan on 4/7/12 To add min_shilf_life
String minShelf = "";
PreparedStatement pstmtShelf = null;
ResultSet rSetShelf = null;
int minShelfLife = 0;
//Changed by Rohan on 27-08-13 for define variable
int maxShelfLife = 0;
//Change by Rohan on 4/7/12 To add min_shilf_life
Statement st = null;
ResultSet rs = null ;
ResultSet rsSItem = null;
//Changed by Pragyan 16-MAY-14 for single lot allow issue.
PreparedStatement pstmtLot = null;
ResultSet rsLot = null;
HashMap tempMap = null;
ArrayList tempList = null;
HashMap strAllocate = null;
boolean isStockToDock = false;
boolean isActives = false;
ArrayList tempListForRepl =null;//Added by Ashish
String directPickLoc = "";
double palletVolume = 0.0 ,packSize = 0.0, perItemVolume = 0.0,
caseVolume = 0.0,packSize1 = 0.0,caseVolume1 = 0.0,
caseWeight =0.0,itemWeight = 0.0,caseCount =0.0;
//Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir
double stkAllocQty = 0.0;
String hazardous = "";
//Changed by Pragyan 16-MAY-14 for single lot allow issue.
String sSql = "",allotStkLotNo = "";
try
{ {
String dbDateFormat = genericUtility.getDBDateFormat(); System.out.println("updateSOrder calling ....**************..........["+saleOrder+"]");
String applDateFormat = genericUtility.getApplDateFormat(); String getDataSql = null;
java.util.Date currDate1 = new java.util.Date(); String sorditemSql=null;
SimpleDateFormat sdf = new SimpleDateFormat(applDateFormat); String itemCodeOrd = null ;
String currDateStr = sdf.format(currDate1); String unitStd = null ;
java.sql.Timestamp tranDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateString( currDateStr , applDateFormat, dbDateFormat ) + " 00:00:00.0") ; String lotSl= null;
String lotNo = null;
String locCode = null;
String itemShDescr = null;
String locDescr = null;
String unit = null;
String grade = null;
String siteCodeMfg =null;
String itemRef = null;
String status =null;
//Changed By Pragyan
String invStat = "";
//Changed By Pragyan 18/02/13 to check previous replenishment Location.start
String replHistStr = "";
String prvReplID = "";
String prvLocCodeTo = "";
int prvReplLineNo = 0;
String prvPickOrd = "";
int prvPickLineNo = 0;
String isRepl = "";
String replQuantity = "";
//Changed By Pragyan 18/02/13 to check previous replenishment Location.end
//Changed by sankara on 03-08-2012 for adding Loctype
String locType = "";
String locTypeParent = "";
int locZonePref = 0;
double height = 0,len = 0,width =0,netwt=0;
int noArt;
java.sql.Date expDate = new java.sql.Date(System.currentTimeMillis());
java.sql.Date mfgDate = new java.sql.Date(System.currentTimeMillis());
java.sql.Date dateAlloc= new java.sql.Date(System.currentTimeMillis());
String updateSorditem = null;
String insertSql = null;
String updateSordalloc = null;
String updateSql= null;
String flag = null;
siteCode = genericUtility.getColumnValue("site_code",headerDom); //Changed by Rohan on 29-12-11 as said by gulzar.start
System.out.println("siteCode------>>>>"+ siteCode+"]Post Ordder Flag>>>["+postOrderFg+"]"); String resrvLoc = "";
String casePickLoc = "";
//Changed by Rohan 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS String activePickLoc = "";
//double palletVolume = Double.parseDouble(discommon.getDisparams("999999","PER_PALLET__VOLUME",conn)); String deepStoreLoc = "";//Changed By Pragyan
palletVolume = Double.parseDouble(discommon.getDisparams("999999","PER_PALLET__VOLUME",conn)); String partialResrvLoc = "";
resrvLoc = discommon.getDisparams("999999","RESERV_LOCATION",conn); //Changed by Rohan on 29-12-11 as said by gulzar.end
casePickLoc = discommon.getDisparams("999999","CASE_PICK_INVSTAT",conn);
activePickLoc = discommon.getDisparams("999999","ACTIVE_PICK_INVSTAT",conn); double stockQuantity = 0;
deepStoreLoc = discommon.getDisparams("999999","DEEP_STORE_INVSTAT",conn); double qtyAvailAlloc = 0;
partialResrvLoc = discommon.getDisparams("999999","PRSRV_INVSTAT",conn); double lotQtyToBeAllocated = 0;
directPickLoc = genericUtility.getColumnValue("direct_pick_loc",headerDom); double qtyDesp =0;
System.out.println("CASE_PICK_INVSTAT"+casePickLoc+"ACTIVE_PICK_INVSTAT"+activePickLoc+"RESERV_LOCATION"+resrvLoc+"Reserve Location["+partialResrvLoc+"]"); double quantity =0;
//Changed by Rohan 29-12-11 .end double convQtyStduom = 0 ;
//Change by Rohan on 4/7/12 To add min_shilf_life.start double quantityStduom = 0 ;
//Changed by Rohan on 27-08-13 for adding condition of min and max self life double pendingQuantity = 0;
//minShelf = "SELECT MIN_SHELF_LIFE FROM SORDITEM WHERE SALE_ORDER = ? AND LINE_NO = ? AND EXP_LEV = ?"; int intCnt=0;
minShelf = "SELECT MIN_SHELF_LIFE,MAX_SHELF_LIFE FROM SORDITEM WHERE SALE_ORDER = ? AND LINE_NO = ? AND EXP_LEV = ?"; int updCnt=0;
pstmtShelf = conn.prepareStatement(minShelf); String orderByStkStr = "";
String errString = "";
pstmtShelf.setString(1,saleOrder); String error = "";
pstmtShelf.setString(2, lineNo); String errCode = "";
pstmtShelf.setString(3,expLev); //Connection conn = null;
rSetShelf = pstmtShelf.executeQuery(); PreparedStatement pstmtStock = null;
if(rSetShelf.next())
{ PreparedStatement pstmtStockInsertSordAlloc = null;
minShelfLife = rSetShelf.getInt("MIN_SHELF_LIFE"); //Changed by Rohan on 13-04-12 To create prepared statement & result set.start
//Changed by Rohan on 27-08-13 for get max self life String manStockData = "";
maxShelfLife = rSetShelf.getInt("MAX_SHELF_LIFE"); //PreparedStatement pstmt = null;
System.out.println("minShelfLife======>"+minShelfLife+"[maxShelfLife]"+maxShelfLife+"]"); ResultSet rSet = null;
} //Change by Rohan on 4/7/12 To add min_shilf_life
String minShelf = "";
PreparedStatement pstmtShelf = null;
ResultSet rSetShelf = null;
int minShelfLife = 0;
//Changed by Rohan on 27-08-13 for define variable
int maxShelfLife = 0;
//Change by Rohan on 4/7/12 To add min_shilf_life
Statement st = null;
ResultSet rs = null ;
ResultSet rsSItem = null;
HashMap tempMap = null;
ArrayList tempList = null;
HashMap strAllocate = null;
boolean isStockToDock = false;
boolean isActives = false;
ArrayList tempListForRepl =null;//Added by Ashish
String directPickLoc = "";
double palletVolume = 0.0 ,packSize = 0.0, perItemVolume = 0.0,
caseVolume = 0.0,packSize1 = 0.0,caseVolume1 = 0.0,
caseWeight =0.0,itemWeight = 0.0,caseCount =0.0;
//Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir
double stkAllocQty = 0.0;
String hazardous = "";
//changed by pragyan on 31/05/14 for single lot
String currentSelectdLotNo = "";
if(rSetShelf != null) try
{
rSetShelf.close();
rSetShelf = null;
}
if(pstmtShelf != null)
{ {
pstmtShelf.close(); String dbDateFormat = genericUtility.getDBDateFormat();
pstmtShelf = null; String applDateFormat = genericUtility.getApplDateFormat();
} java.util.Date currDate1 = new java.util.Date();
SimpleDateFormat sdf = new SimpleDateFormat(applDateFormat);
HashMap itmVolumeMap1 = getItemVoumeMap(itemCode,"",conn); String currDateStr = sdf.format(currDate1);
/*double packSize1 = (Double)itmVolumeMap1.get("PACK_SIZE"); java.sql.Timestamp tranDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateString( currDateStr , applDateFormat, dbDateFormat ) + " 00:00:00.0") ;
double caseVolume1 = (Double)itmVolumeMap1.get("LOT_SIZE");//Items Case Volume
*/ siteCode = genericUtility.getColumnValue("site_code",headerDom);
packSize1 = (Double)itmVolumeMap1.get("PACK_SIZE"); System.out.println("siteCode------>>>>"+ siteCode+"]Post Ordder Flag>>>["+postOrderFg+"]");
caseVolume1 = (Double)itmVolumeMap1.get("LOT_SIZE");//Items Case Volume
/*System.out.println("STOCK TO DOCK TRUE NoOfCases>>>>>>>>>>>>>>>>>["+isStockToDockChecked+"]");
System.out.println("packSize1>>>>>>>>>>>>>>>>>["+packSize1+"]caseVolume1"+caseVolume1); //Changed by Rohan 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS
if("Y".equalsIgnoreCase(isStockToDockChecked)) //double palletVolume = Double.parseDouble(discommon.getDisparams("999999","PER_PALLET__VOLUME",conn));
{ palletVolume = Double.parseDouble(discommon.getDisparams("999999","PER_PALLET__VOLUME",conn));
double NoOfCases = allocQty /packSize1; resrvLoc = discommon.getDisparams("999999","RESERV_LOCATION",conn);
System.out.println("STOCK TO DOCK TRUE NoOfCases["+NoOfCases+"]"); casePickLoc = discommon.getDisparams("999999","CASE_PICK_INVSTAT",conn);
double qtyToStockToDock = NoOfCases * packSize1; activePickLoc = discommon.getDisparams("999999","ACTIVE_PICK_INVSTAT",conn);
System.out.println("STOCK TO DOCK TRUE qtyToStockToDock["+qtyToStockToDock+"]"); deepStoreLoc = discommon.getDisparams("999999","DEEP_STORE_INVSTAT",conn);
partialResrvLoc = discommon.getDisparams("999999","PRSRV_INVSTAT",conn);
System.out.println("STOCK TO DOCK TRUE CASE VOLUME (NoOfCases * caseVolume1)["+(NoOfCases * caseVolume1)+"]"); directPickLoc = genericUtility.getColumnValue("direct_pick_loc",headerDom);
System.out.println("CASE_PICK_INVSTAT"+casePickLoc+"ACTIVE_PICK_INVSTAT"+activePickLoc+"RESERV_LOCATION"+resrvLoc+"Reserve Location["+partialResrvLoc+"]");
if(NoOfCases > 0 && (NoOfCases * caseVolume1) <= palletVolume && ((palletVolume - (NoOfCases * caseVolume1)) < caseVolume1)) //Changed by Rohan 29-12-11 .end
{ //Change by Rohan on 4/7/12 To add min_shilf_life.start
System.out.println("STOCK TO DOCK TRUE"); //Changed by Rohan on 27-08-13 for adding condition of min and max self life
isStockToDock = true; //minShelf = "SELECT MIN_SHELF_LIFE FROM SORDITEM WHERE SALE_ORDER = ? AND LINE_NO = ? AND EXP_LEV = ?";
} minShelf = "SELECT MIN_SHELF_LIFE,MAX_SHELF_LIFE FROM SORDITEM WHERE SALE_ORDER = ? AND LINE_NO = ? AND EXP_LEV = ?";
}*/ pstmtShelf = conn.prepareStatement(minShelf);
/*if((pendingQty % packSize1) > 0) pstmtShelf.setString(1,saleOrder);
pstmtShelf.setString(2, lineNo);
pstmtShelf.setString(3,expLev);
rSetShelf = pstmtShelf.executeQuery();
if(rSetShelf.next())
{ {
orderByStkStr = "ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE "; minShelfLife = rSetShelf.getInt("MIN_SHELF_LIFE");
if(isStockToDock) //Changed by Rohan on 27-08-13 for get max self life
{ maxShelfLife = rSetShelf.getInt("MAX_SHELF_LIFE");
orderByStkStr = "ORDER BY STOCK.EXP_DATE,QTY_AVAIL_ALLOC DESC,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE "; System.out.println("minShelfLife======>"+minShelfLife+"[maxShelfLife]"+maxShelfLife+"]");
}
}
else
{
orderByStkStr = "ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
if(isStockToDock)
{
orderByStkStr = "ORDER BY STOCK.EXP_DATE,QTY_AVAIL_ALLOC DESC,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
}
}*/
//Changed By Pragyan to check partial cases on Allocate Quantity.
//if((pendingQty % packSize1) > 0)
if(directPickLoc != null && directPickLoc.length() > 0)
{
orderByStkStr = "AND LOCATION.LOC_CODE IN(?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
}
else if((allocQty % packSize1) > 0 || (allocQty < packSize1))
{
isActives = true;
orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?,?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
}
else
{
isActives = false;
//Changed By Pragyan 04/DEC/13 UAT KB Sir for not integral quantity only case should allocate
//orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF_CASE, STOCK.LOC_CODE ";
} }
if(isActives && "N".equalsIgnoreCase(isActivePickChecked)) if(rSetShelf != null)
{ {
errString = getError(saleOrder,"INVORDQTY",conn); rSetShelf.close();
return errString; rSetShelf = null;
} }
if(pstmtShelf != null)
if(directPickLoc != null && directPickLoc.length() > 0)
{ {
getDataSql = "SELECT STOCK.LOT_NO,STOCK.LOT_SL," pstmtShelf.close();
+"STOCK.LOC_CODE, " pstmtShelf = null;
+"STOCK.UNIT, "
+"(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END)) AS QTY_AVAIL_ALLOC ,"
+"STOCK.GRADE,STOCK.EXP_DATE,STOCK.CONV__QTY_STDUOM,STOCK.QUANTITY, "
+"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG, "
//Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir
//+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF "
+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF,STOCK.ALLOC_QTY "
+"FROM STOCK,ITEM,LOCATION,INVSTAT "
+"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) "
+"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) "
+"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) "
+"AND INVSTAT.AVAILABLE = 'Y' "
+"AND STOCK.ITEM_CODE = ? AND STOCK.SITE_CODE = ? "
+"AND STOCK.LOT_NO IN (SELECT LOT_NO FROM STOCK WHERE ITEM_CODE =? AND SITE_CODE =? "
+"GROUP BY LOT_NO HAVING SUM(QUANTITY - ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ) >= ?) "
+"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) ";
//Changed by Rohan on 27-08-13 for adding condition of min and max self life
//+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) > ? ) "
//+" AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) BETWEEN ? AND ? ) "
// +"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) ";
//+"AND LOCATION.INV_STAT IN(?,?,?,?)";
/* //+"ORDER BY STOCK.EXP_DATE, STOCK.LOC_CODE";
+ orderByStkStr;*/
//+" ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
if(maxShelfLife > 0)
{
getDataSql = getDataSql + " AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) BETWEEN ? AND ? ) ";
}
else
{
getDataSql = getDataSql + "AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) > ? ) ";
}
pstmtStock = conn.prepareStatement(getDataSql + orderByStkStr);
pstmtStock.setString(1,itemCode);
pstmtStock.setString(2,siteCode);
pstmtStock.setString(3,itemCode);
pstmtStock.setString(4,siteCode);
pstmtStock.setDouble(5,pendingQty);
pstmtStock.setInt(6,minShelfLife);
if(maxShelfLife > 0)
{
pstmtStock.setInt(7,maxShelfLife);
pstmtStock.setString(8,directPickLoc);
}
else
{
pstmtStock.setString(7,directPickLoc);
}
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.start
//pstmtStock.setString(7,directPickLoc);
/* pstmtStock.setInt(7,maxShelfLife);
pstmtStock.setString(8,directPickLoc); */
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.end
} }
else if ( singleLot.trim().length() > 0 && singleLot.trim().equalsIgnoreCase("Y") )
{ HashMap itmVolumeMap1 = getItemVoumeMap(itemCode,"",conn);
//Changed by Pragyan 16-MAY-14 for single lot allow issue.start /*double packSize1 = (Double)itmVolumeMap1.get("PACK_SIZE");
double caseVolume1 = (Double)itmVolumeMap1.get("LOT_SIZE");//Items Case Volume
*/
packSize1 = (Double)itmVolumeMap1.get("PACK_SIZE");
caseVolume1 = (Double)itmVolumeMap1.get("LOT_SIZE");//Items Case Volume
/*System.out.println("STOCK TO DOCK TRUE NoOfCases>>>>>>>>>>>>>>>>>["+isStockToDockChecked+"]");
if(maxShelfLife > 0) System.out.println("packSize1>>>>>>>>>>>>>>>>>["+packSize1+"]caseVolume1"+caseVolume1);
if("Y".equalsIgnoreCase(isStockToDockChecked))
{ {
sSql = "SELECT LOT_NO FROM STOCK WHERE ITEM_CODE =? AND SITE_CODE =? AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) BETWEEN ? AND ? ) AND STOCK.QUANTITY > 0 " + double NoOfCases = allocQty /packSize1;
" AND STOCK.INV_STAT IN(?,?,?,?,?) GROUP BY LOT_NO,EXP_DATE HAVING SUM(QUANTITY - ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ) >= ? " + System.out.println("STOCK TO DOCK TRUE NoOfCases["+NoOfCases+"]");
" ORDER BY STOCK.EXP_DATE "; double qtyToStockToDock = NoOfCases * packSize1;
System.out.println("STOCK TO DOCK TRUE qtyToStockToDock["+qtyToStockToDock+"]");
pstmtLot = conn.prepareStatement(sSql); System.out.println("STOCK TO DOCK TRUE CASE VOLUME (NoOfCases * caseVolume1)["+(NoOfCases * caseVolume1)+"]");
pstmtLot.setString(1, itemCode);
pstmtLot.setString(2, siteCode);
pstmtLot.setInt(3,minShelfLife);
pstmtLot.setInt(4,maxShelfLife);
pstmtLot.setString(5,resrvLoc);
pstmtLot.setString(6,casePickLoc);
pstmtLot.setString(7,deepStoreLoc);
if( "N".equalsIgnoreCase(isActivePickChecked)) if(NoOfCases > 0 && (NoOfCases * caseVolume1) <= palletVolume && ((palletVolume - (NoOfCases * caseVolume1)) < caseVolume1))
{
pstmtLot.setString(8,"");
}
else
{
pstmtLot.setString(8,activePickLoc);
}
if(isActives)
{ {
pstmtLot.setString(9,partialResrvLoc); System.out.println("STOCK TO DOCK TRUE");
isStockToDock = true;
} }
else }*/
/*if((pendingQty % packSize1) > 0)
{
orderByStkStr = "ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
if(isStockToDock)
{ {
pstmtLot.setString(9,""); orderByStkStr = "ORDER BY STOCK.EXP_DATE,QTY_AVAIL_ALLOC DESC,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
} }
pstmtLot.setDouble(10, pendingQty);
} }
else else
{ {
sSql = "SELECT LOT_NO FROM STOCK WHERE ITEM_CODE =? AND SITE_CODE =? AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) > ? ) AND STOCK.QUANTITY > 0 " + orderByStkStr = "ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
" AND STOCK.INV_STAT IN(?,?,?,?,?) GROUP BY LOT_NO,EXP_DATE HAVING SUM(QUANTITY - ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ) >= ? " + if(isStockToDock)
" ORDER BY STOCK.EXP_DATE ";
pstmtLot = conn.prepareStatement(sSql);
pstmtLot.setString(1, itemCode);
pstmtLot.setString(2, siteCode);
pstmtLot.setInt(3,minShelfLife);
pstmtLot.setString(4,resrvLoc);
pstmtLot.setString(5,casePickLoc);
pstmtLot.setString(6,deepStoreLoc);
if( "N".equalsIgnoreCase(isActivePickChecked))
{
pstmtLot.setString(7,"");
}
else
{
pstmtLot.setString(7,activePickLoc);
}
if(isActives)
{
pstmtLot.setString(8,partialResrvLoc);
}
else
{ {
pstmtLot.setString(8,""); orderByStkStr = "ORDER BY STOCK.EXP_DATE,QTY_AVAIL_ALLOC DESC,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
} }
pstmtLot.setDouble(9, pendingQty); }*/
//Changed By Pragyan to check partial cases on Allocate Quantity.
//if((pendingQty % packSize1) > 0)
if(directPickLoc != null && directPickLoc.length() > 0)
{
orderByStkStr = "AND LOCATION.LOC_CODE IN(?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
} }
else if((allocQty % packSize1) > 0 || (allocQty < packSize1))
rsLot = pstmtLot.executeQuery();
if(rsLot.next())
{ {
allotStkLotNo = rsLot.getString("LOT_NO"); isActives = true;
orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?,?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
} }
else else
{ {
return "NO SINGLE LOT STOCK"; isActives = false;
//Changed By Pragyan 04/DEC/13 UAT KB Sir for not integral quantity only case should allocate
//orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
orderByStkStr = "AND LOCATION.INV_STAT IN(?,?,?,?) ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF_CASE, STOCK.LOC_CODE ";
} }
if(pstmtLot != null) if(isActives && "N".equalsIgnoreCase(isActivePickChecked))
{ {
pstmtLot.close(); errString = getError(saleOrder,"INVORDQTY",conn);
pstmtLot = null; return errString;
}
if(rsLot != null)
{
rsLot.close();
rsLot = null;
} }
//Changed by Pragyan 16-MAY-14 for single lot allow issue.end
getDataSql = "SELECT STOCK.LOT_NO,STOCK.LOT_SL," if(directPickLoc != null && directPickLoc.length() > 0)
+"STOCK.LOC_CODE, " {
+"STOCK.UNIT, " getDataSql = "SELECT STOCK.LOT_NO,STOCK.LOT_SL,"
+"(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END)) AS QTY_AVAIL_ALLOC ," +"STOCK.LOC_CODE, "
+"STOCK.GRADE,STOCK.EXP_DATE,STOCK.CONV__QTY_STDUOM,STOCK.QUANTITY, " +"STOCK.UNIT, "
+"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG, " +"(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END)) AS QTY_AVAIL_ALLOC ,"
//Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir +"STOCK.GRADE,STOCK.EXP_DATE,STOCK.CONV__QTY_STDUOM,STOCK.QUANTITY, "
// +"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF " +"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG, "
+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF,STOCK.ALLOC_QTY " //Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir
+"FROM STOCK,ITEM,LOCATION,INVSTAT " //+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF "
+"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) " +"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF,STOCK.ALLOC_QTY "
+"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) " +"FROM STOCK,ITEM,LOCATION,INVSTAT "
+"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) " +"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) "
+"AND INVSTAT.AVAILABLE = 'Y' " +"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) "
+"AND STOCK.ITEM_CODE = ? AND STOCK.SITE_CODE = ? " +"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) "
//Changed By Pragyan 19-may-14 +"AND INVSTAT.AVAILABLE = 'Y' "
// +"AND STOCK.LOT_NO IN (SELECT LOT_NO FROM STOCK WHERE ITEM_CODE =? AND SITE_CODE =? " +"AND STOCK.ITEM_CODE = ? AND STOCK.SITE_CODE = ? "
// +"GROUP BY LOT_NO HAVING SUM(QUANTITY - ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ) >= ?) " +"AND STOCK.LOT_NO IN (SELECT LOT_NO FROM STOCK WHERE ITEM_CODE =? AND SITE_CODE =? "
+" AND STOCK.LOT_NO = ?" +"GROUP BY LOT_NO HAVING SUM(QUANTITY - ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ) >= ?) "
//Changed By Pragyan 13-MAY-14 To get the stock only stock quantity > 0 +"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) ";
//Changed by Rohan on 27-08-13 for adding condition of min and max self life //Changed by Rohan on 27-08-13 for adding condition of min and max self life
//+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) > ? ) " //+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) > ? ) "
// +"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) "; //+" AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) BETWEEN ? AND ? ) "
+"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) AND STOCK.QUANTITY > 0 "; // +"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) ";
// +" AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) BETWEEN ? AND ? ) " //+"AND LOCATION.INV_STAT IN(?,?,?,?)";
/* //+"ORDER BY STOCK.EXP_DATE, STOCK.LOC_CODE";
//+"AND LOCATION.INV_STAT IN(?,?,?,?)"; + orderByStkStr;*/
/* //+"ORDER BY STOCK.EXP_DATE, STOCK.LOC_CODE"; //+" ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
+ orderByStkStr;*/
//+" ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
if(maxShelfLife > 0)
{
getDataSql = getDataSql +" AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) BETWEEN ? AND ? ) ";
}
else
{
getDataSql = getDataSql + "AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) > ? ) ";
}
pstmtStock = conn.prepareStatement(getDataSql + orderByStkStr);
pstmtStock.setString(1,itemCode);
pstmtStock.setString(2,siteCode);
/*pstmtStock.setString(3,itemCode);
pstmtStock.setString(4,siteCode);*/
//Changed By Pragyan to stock transfer.
//pstmtStock.setDouble(5,pendingQty);
pstmtStock.setString(3,allotStkLotNo);
pstmtStock.setInt(4,minShelfLife);
//Changed by Rohan on 27-08-13 for adding condition of min and max self life
/*
pstmtStock.setString(7,resrvLoc);
pstmtStock.setString(8,casePickLoc);
//Changed by sumit on 29/12/12 hiding active pick if user no need from active start
//pstmtStock.setString(9,activePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked))
{
pstmtStock.setString(9,"");
}
else
{
pstmtStock.setString(9,activePickLoc);
}
//Changed by sumit on 29/12/12 hiding active pick if user no need from active end
pstmtStock.setString(10,deepStoreLoc);
if(isActives)
{
pstmtStock.setString(11,partialResrvLoc);
}
*/
if(maxShelfLife > 0)
{
pstmtStock.setInt(5,maxShelfLife);
pstmtStock.setString(6,resrvLoc);
pstmtStock.setString(7,casePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked)) if(maxShelfLife > 0)
{ {
pstmtStock.setString(8,""); getDataSql = getDataSql + " AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) BETWEEN ? AND ? ) ";
} }
else else
{ {
pstmtStock.setString(8,activePickLoc); getDataSql = getDataSql + "AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) > ? ) ";
} }
pstmtStock.setString(9,deepStoreLoc);
pstmtStock = conn.prepareStatement(getDataSql + orderByStkStr);
if(isActives) pstmtStock.setString(1,itemCode);
pstmtStock.setString(2,siteCode);
pstmtStock.setString(3,itemCode);
pstmtStock.setString(4,siteCode);
pstmtStock.setDouble(5,pendingQty);
pstmtStock.setInt(6,minShelfLife);
if(maxShelfLife > 0)
{ {
pstmtStock.setString(10,partialResrvLoc); pstmtStock.setInt(7,maxShelfLife);
} pstmtStock.setString(8,directPickLoc);
}
} else
else {
{ pstmtStock.setString(7,directPickLoc);
pstmtStock.setString(5,resrvLoc); }
pstmtStock.setString(6,casePickLoc); //Changed by Rohan on 27-08-13 for adding condition of min and max self life.start
//pstmtStock.setString(7,directPickLoc);
/* pstmtStock.setInt(7,maxShelfLife);
pstmtStock.setString(8,directPickLoc); */
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.end
}
else if ( singleLot.trim().length() > 0 && singleLot.trim().equalsIgnoreCase("Y") )
{
getDataSql = "SELECT STOCK.LOT_NO,STOCK.LOT_SL,"
+"STOCK.LOC_CODE, "
+"STOCK.UNIT, "
+"(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END)) AS QTY_AVAIL_ALLOC ,"
+"STOCK.GRADE,STOCK.EXP_DATE,STOCK.CONV__QTY_STDUOM,STOCK.QUANTITY, "
+"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG, "
//Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir
// +"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF "
+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF,STOCK.ALLOC_QTY "
+"FROM STOCK,ITEM,LOCATION,INVSTAT "
+"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) "
+"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) "
+"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) "
+"AND INVSTAT.AVAILABLE = 'Y' "
+"AND STOCK.ITEM_CODE = ? AND STOCK.SITE_CODE = ? "
+"AND (STOCK.QUANTITY - STOCK.ALLOC_QTY - CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) > 0 "
+"AND STOCK.LOT_NO IN (SELECT LOT_NO FROM STOCK WHERE ITEM_CODE =? AND SITE_CODE =? "
+"GROUP BY LOT_NO HAVING SUM(QUANTITY - ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ) >= ?) "
//Changed by Rohan on 27-08-13 for adding condition of min and max self life
//+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) > ? ) "
+"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) ";
// +" AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) BETWEEN ? AND ? ) "
//+"AND LOCATION.INV_STAT IN(?,?,?,?)";
/* //+"ORDER BY STOCK.EXP_DATE, STOCK.LOC_CODE";
+ orderByStkStr;*/
//+" ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
if(maxShelfLife > 0)
{
getDataSql = getDataSql +" AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) BETWEEN ? AND ? ) ";
}
else
{
getDataSql = getDataSql + "AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) > ? ) ";
}
pstmtStock = conn.prepareStatement(getDataSql + orderByStkStr);
pstmtStock.setString(1,itemCode);
pstmtStock.setString(2,siteCode);
pstmtStock.setString(3,itemCode);
pstmtStock.setString(4,siteCode);
pstmtStock.setDouble(5,pendingQty);
pstmtStock.setInt(6,minShelfLife);
//Changed by Rohan on 27-08-13 for adding condition of min and max self life
/*
pstmtStock.setString(7,resrvLoc);
pstmtStock.setString(8,casePickLoc);
//Changed by sumit on 29/12/12 hiding active pick if user no need from active start
//pstmtStock.setString(9,activePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked)) if( "N".equalsIgnoreCase(isActivePickChecked))
{ {
pstmtStock.setString(7,""); pstmtStock.setString(9,"");
} }
else else
{ {
pstmtStock.setString(7,activePickLoc); pstmtStock.setString(9,activePickLoc);
} }
//Changed by sumit on 29/12/12 hiding active pick if user no need from active end //Changed by sumit on 29/12/12 hiding active pick if user no need from active end
pstmtStock.setString(8,deepStoreLoc); pstmtStock.setString(10,deepStoreLoc);
if(isActives) if(isActives)
{ {
pstmtStock.setString(9,partialResrvLoc); pstmtStock.setString(11,partialResrvLoc);
} }
} */
/*pstmtStock.setInt(7,maxShelfLife);
pstmtStock.setString(8,resrvLoc); if(maxShelfLife > 0)
pstmtStock.setString(9,casePickLoc); {
//Changed by sumit on 29/12/12 hiding active pick if user no need from active start pstmtStock.setInt(7,maxShelfLife);
//pstmtStock.setString(9,activePickLoc); pstmtStock.setString(8,resrvLoc);
if( "N".equalsIgnoreCase(isActivePickChecked)) pstmtStock.setString(9,casePickLoc);
{
pstmtStock.setString(10,""); if( "N".equalsIgnoreCase(isActivePickChecked))
} {
else pstmtStock.setString(10,"");
{ }
pstmtStock.setString(10,activePickLoc); else
} {
//Changed by sumit on 29/12/12 hiding active pick if user no need from active end pstmtStock.setString(10,activePickLoc);
pstmtStock.setString(11,deepStoreLoc); }
if(isActives) pstmtStock.setString(11,deepStoreLoc);
{
pstmtStock.setString(12,partialResrvLoc); if(isActives)
} {
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.end pstmtStock.setString(12,partialResrvLoc);
*/ }
}
else }
{ else
{
getDataSql = "SELECT STOCK.LOT_NO,STOCK.LOT_SL," pstmtStock.setString(7,resrvLoc);
+"STOCK.LOC_CODE, " pstmtStock.setString(8,casePickLoc);
+"STOCK.UNIT, "
+"(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END)) AS QTY_AVAIL_ALLOC ," if( "N".equalsIgnoreCase(isActivePickChecked))
+"STOCK.GRADE,STOCK.EXP_DATE,STOCK.CONV__QTY_STDUOM,STOCK.QUANTITY, " {
//Changed By Pragyan pstmtStock.setString(9,"");
// +"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG " }
+"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG, " else
//Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir {
// //+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF " //Changes done by chandni 08-06-12(instead of loc_type, loc_type__parent should be selected) pstmtStock.setString(9,activePickLoc);
+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF,STOCK.ALLOC_QTY " }
+"FROM STOCK,ITEM,LOCATION,INVSTAT " //Changed by sumit on 29/12/12 hiding active pick if user no need from active end
+"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) " pstmtStock.setString(10,deepStoreLoc);
+"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) "
+"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) " if(isActives)
+"AND INVSTAT.AVAILABLE = 'Y' " {
+"AND STOCK.ITEM_CODE = ? AND STOCK.SITE_CODE = ? " pstmtStock.setString(11,partialResrvLoc);
+"AND (STOCK.QUANTITY - STOCK.ALLOC_QTY - CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) > 0 " // 25/06/12 manoharan }
////Changed by Rohan on 27-08-13 for adding condition of min and max self life
//+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) > ? ) " //Change by Rohan on 4/7/12 }
//+" AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) BETWEEN ? AND ? ) " /*pstmtStock.setInt(7,maxShelfLife);
+"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) "; pstmtStock.setString(8,resrvLoc);
//+"AND LOCATION.INV_STAT IN(?,?,?)"//Changed by Rohan on 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS pstmtStock.setString(9,casePickLoc);
// +"AND LOCATION.INV_STAT IN(?,?,?,?)"//Changed by Rohan on 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS
/* //+"ORDER BY EXP_DATE, CREA_DATE";//Gulzar on 12/28/2011
// +"ORDER BY STOCK.EXP_DATE, STOCK.LOC_CODE";//Pragyan on 14/08/2012
+ orderByStkStr;*/
//+" ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
if(maxShelfLife > 0)
{
getDataSql = getDataSql +" AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) BETWEEN ? AND ? ) ";
}
else
{
getDataSql = getDataSql + "AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) > ? ) ";
}
pstmtStock = conn.prepareStatement(getDataSql + orderByStkStr);
pstmtStock.setString(1,itemCode);
pstmtStock.setString(2,siteCode);
pstmtStock.setInt(3,minShelfLife);
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.start
/*
pstmtStock.setString(4,resrvLoc);
pstmtStock.setString(5,casePickLoc);
//Changed by sumit on 29/12/12 hiding active pick if user no need from active start
//pstmtStock.setString(6,activePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked))
{
pstmtStock.setString(6,"");
}
else
{
pstmtStock.setString(6,activePickLoc);
}
//Changed by sumit on 29/12/12 hiding active pick if user no need from active end
pstmtStock.setString(7,deepStoreLoc);
if(isActives)
{
pstmtStock.setString(8,partialResrvLoc);
}
*/
if(maxShelfLife > 0)
{
pstmtStock.setInt(4,maxShelfLife);
pstmtStock.setString(5,resrvLoc);
pstmtStock.setString(6,casePickLoc);
//Changed by sumit on 29/12/12 hiding active pick if user no need from active start //Changed by sumit on 29/12/12 hiding active pick if user no need from active start
//pstmtStock.setString(6,activePickLoc); //pstmtStock.setString(9,activePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked)) if( "N".equalsIgnoreCase(isActivePickChecked))
{ {
pstmtStock.setString(7,""); pstmtStock.setString(10,"");
} }
else else
{ {
pstmtStock.setString(7,activePickLoc); pstmtStock.setString(10,activePickLoc);
} }
//Changed by sumit on 29/12/12 hiding active pick if user no need from active end //Changed by sumit on 29/12/12 hiding active pick if user no need from active end
pstmtStock.setString(8,deepStoreLoc); pstmtStock.setString(11,deepStoreLoc);
if(isActives) if(isActives)
{ {
pstmtStock.setString(9,partialResrvLoc); pstmtStock.setString(12,partialResrvLoc);
} }
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.end //Changed by Rohan on 27-08-13 for adding condition of min and max self life.end
} */
else }
{ else
{
getDataSql = "SELECT STOCK.LOT_NO,STOCK.LOT_SL,"
+"STOCK.LOC_CODE, "
+"STOCK.UNIT, "
+"(STOCK.QUANTITY - STOCK.ALLOC_QTY - (CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END)) AS QTY_AVAIL_ALLOC ,"
+"STOCK.GRADE,STOCK.EXP_DATE,STOCK.CONV__QTY_STDUOM,STOCK.QUANTITY, "
//Changed By Pragyan
// +"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG "
+"STOCK.MFG_DATE,STOCK.SITE_CODE__MFG, "
//Changed By Pragyan 06-DEC-13 to get Stock alloc quantity as per KB sir
// //+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF " //Changes done by chandni 08-06-12(instead of loc_type, loc_type__parent should be selected)
+"STOCK.NO_ART,INVSTAT.INV_STAT,ITEM.LOC_TYPE__PARENT,ITEM.LOC_TYPE,ITEM.LOC_ZONE__PREF,STOCK.ALLOC_QTY "
+"FROM STOCK,ITEM,LOCATION,INVSTAT "
+"WHERE (ITEM.ITEM_CODE = STOCK.ITEM_CODE) "
+"AND (LOCATION.LOC_CODE = STOCK.LOC_CODE ) "
+"AND (LOCATION.INV_STAT = INVSTAT.INV_STAT) "
+"AND INVSTAT.AVAILABLE = 'Y' "
+"AND STOCK.ITEM_CODE = ? AND STOCK.SITE_CODE = ? "
+"AND (STOCK.QUANTITY - STOCK.ALLOC_QTY - CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) > 0 " // 25/06/12 manoharan
////Changed by Rohan on 27-08-13 for adding condition of min and max self life
//+"AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) > ? ) " //Change by Rohan on 4/7/12
//+" AND (MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE) BETWEEN ? AND ? ) "
+"AND NOT EXISTS (SELECT 1 FROM INV_RESTR I WHERE I.INV_STAT = INVSTAT.INV_STAT AND I.REF_SER = 'S-DSP' ) ";
//+"AND LOCATION.INV_STAT IN(?,?,?)"//Changed by Rohan on 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS
// +"AND LOCATION.INV_STAT IN(?,?,?,?)"//Changed by Rohan on 29-12-11 to consider only RESERV, CASE PICK AND ACTIVE PICK LOCATIONS
/* //+"ORDER BY EXP_DATE, CREA_DATE";//Gulzar on 12/28/2011
// +"ORDER BY STOCK.EXP_DATE, STOCK.LOC_CODE";//Pragyan on 14/08/2012
+ orderByStkStr;*/
//+" ORDER BY STOCK.EXP_DATE,INVSTAT.ALLOC_PREF, STOCK.LOC_CODE ";
if(maxShelfLife > 0)
{
getDataSql = getDataSql +" AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) BETWEEN ? AND ? ) ";
}
else
{
getDataSql = getDataSql + "AND (CEIL(MONTHS_BETWEEN(TO_DATE(STOCK.EXP_DATE),SYSDATE)) > ? ) ";
}
pstmtStock = conn.prepareStatement(getDataSql + orderByStkStr);
pstmtStock.setString(1,itemCode);
pstmtStock.setString(2,siteCode);
pstmtStock.setInt(3,minShelfLife);
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.start
/*
pstmtStock.setString(4,resrvLoc); pstmtStock.setString(4,resrvLoc);
pstmtStock.setString(5,casePickLoc); pstmtStock.setString(5,casePickLoc);
//Changed by sumit on 29/12/12 hiding active pick if user no need from active start
//pstmtStock.setString(6,activePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked)) if( "N".equalsIgnoreCase(isActivePickChecked))
{ {
pstmtStock.setString(6,""); pstmtStock.setString(6,"");
...@@ -5286,22 +5137,67 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -5286,22 +5137,67 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
{ {
pstmtStock.setString(6,activePickLoc); pstmtStock.setString(6,activePickLoc);
} }
//Changed by sumit on 29/12/12 hiding active pick if user no need from active end
pstmtStock.setString(7,deepStoreLoc); pstmtStock.setString(7,deepStoreLoc);
if(isActives) if(isActives)
{ {
pstmtStock.setString(8,partialResrvLoc); pstmtStock.setString(8,partialResrvLoc);
} }
} */
} if(maxShelfLife > 0)
{
pstmtStock.setInt(4,maxShelfLife);
pstmtStock.setString(5,resrvLoc);
pstmtStock.setString(6,casePickLoc);
//Changed by sumit on 29/12/12 hiding active pick if user no need from active start
//pstmtStock.setString(6,activePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked))
{
pstmtStock.setString(7,"");
}
else
{
pstmtStock.setString(7,activePickLoc);
}
//Changed by sumit on 29/12/12 hiding active pick if user no need from active end
pstmtStock.setString(8,deepStoreLoc);
if(isActives)
{
pstmtStock.setString(9,partialResrvLoc);
}
//Changed by Rohan on 27-08-13 for adding condition of min and max self life.end
}
else
{
pstmtStock.setString(4,resrvLoc);
pstmtStock.setString(5,casePickLoc);
if( "N".equalsIgnoreCase(isActivePickChecked))
{
pstmtStock.setString(6,"");
}
else
{
pstmtStock.setString(6,activePickLoc);
}
pstmtStock.setString(7,deepStoreLoc);
if(isActives)
{
pstmtStock.setString(8,partialResrvLoc);
}
}
}
//Change by Rohan on 7/4/12 for min shelf flag.end
rs = pstmtStock.executeQuery(); //Change by Rohan on 7/4/12 for min shelf flag.end
System.out.println("siteCode------"+ siteCode); rs = pstmtStock.executeQuery();
System.out.println("itemCode------"+ itemCode); System.out.println("siteCode------"+ siteCode);
System.out.println("Select completed"); System.out.println("itemCode------"+ itemCode);
//String resvDisparam = checkNull(discommon.getDisparams("999999","RESERV_LOCATION",conn)); System.out.println("Select completed");
//String resvDisparam = checkNull(discommon.getDisparams("999999","RESERV_LOCATION",conn));
while(rs.next()) while(rs.next())
{ {
...@@ -5349,6 +5245,21 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -5349,6 +5245,21 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
invallocTrace.setLotSl(lotSl); invallocTrace.setLotSl(lotSl);
*/ */
/*@shish */ /*@shish */
//Changed By Pragyan 31-MAY-14 for single lot start
System.out.println("Stock Lot No["+lotNo+"]currentSelectdLotNo["+currentSelectdLotNo+"]");
if("Y".equalsIgnoreCase(singleLot) && currentSelectdLotNo != "" && !currentSelectdLotNo.equalsIgnoreCase(lotNo))
{
System.out.println("Continue as Lot No is different["+lotNo+"]");
continue;
}
else
{
currentSelectdLotNo = lotNo;
}
//Changed By Pragyan 31-MAY-14 end
//Changed by Rohan on 8/2/12 to get packsize of item.start //Changed by Rohan on 8/2/12 to get packsize of item.start
HashMap itmVolumeMap = getItemVoumeMap(itemCode,lotNo,conn); HashMap itmVolumeMap = getItemVoumeMap(itemCode,lotNo,conn);
double packSizeActive = (Double)itmVolumeMap.get("PACK_SIZE"); double packSizeActive = (Double)itmVolumeMap.get("PACK_SIZE");
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>1073741824</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>24</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>23</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="12">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_wave_id</name>
<dbname>wave_task.wave_id</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_ptcn</name>
<dbname>wave_task_det.ptcn</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_tran_date</name>
<dbname>wave_task.tran_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_ref_id</name>
<dbname>wave_task_det.ref_id</dbname>
</table_column>
<table_column>
<type size="6">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_ref_ser</name>
<dbname>wave_task_det.ref_ser</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_status</name>
<dbname>wave_task_det.status</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_sale_order</name>
<dbname>wave_task_det.sale_order</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>sorder_cust_code</name>
<dbname>sorder.cust_code</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>customer_cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>sorder_dlv_city</name>
<dbname>sorder.dlv_city</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_seq_priority</name>
<dbname>wave_seq.priority</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_cancel</name>
<dbname>wave_task.cancel</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_hold_status</name>
<dbname>wave_task.hold_status</dbname>
</table_column>
<table_column>
<type size="8">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_status</name>
<dbname>wave_status</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>descr</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>employeeshortnameassignedto</name>
<dbname>employeeshortnameassignedto</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>performedby</name>
<dbname>performedby</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>dependenttasks</name>
<dbname>dependenttasks</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>taskdependenton</name>
<dbname>taskdependenton</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;customer&quot; ) TABLE(NAME=&quot;sorder&quot; ) TABLE(NAME=&quot;wave_seq&quot; ) TABLE(NAME=&quot;wave_task&quot; ) TABLE(NAME=&quot;wave_task_det&quot; ) COLUMN(NAME=&quot;wave_task.wave_id&quot;) COLUMN(NAME=&quot;wave_task_det.ptcn&quot;) COLUMN(NAME=&quot;wave_task.tran_date&quot;) COLUMN(NAME=&quot;wave_task_det.ref_id&quot;) COLUMN(NAME=&quot;wave_task_det.ref_ser&quot;) COLUMN(NAME=&quot;wave_task_det.status&quot;) COLUMN(NAME=&quot;wave_task_det.sale_order&quot;) COLUMN(NAME=&quot;sorder.cust_code&quot;) COLUMN(NAME=&quot;customer.cust_name&quot;) COLUMN(NAME=&quot;sorder.dlv_city&quot;) COLUMN(NAME=&quot;wave_seq.priority&quot;) COLUMN(NAME=&quot;wave_task.cancel&quot;) COLUMN(NAME=&quot;wave_task.hold_status&quot;) COMPUTE(NAME=&quot;case when wave_status = &apos;C&apos; then &apos;Created&apos; when wave_status = &apos;V&apos; then &apos;Verified&apos; when wave_status = &apos;W&apos; then &apos;Held&apos; else &apos; &apos; end wave_status&quot;) COMPUTE(NAME=&quot;FN_WAVE_DESCRIPTION(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID,WAVE_TASK_DET.PTCN) AS descr&quot;) COMPUTE(NAME=&quot;FN_WAVE_EMP_SHORT_NAME(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS EmployeeShortNameAssignedTo&quot;) COMPUTE(NAME=&quot;FN_WAVE_PERFORMED_BY(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS PerformedBy&quot;) COMPUTE(NAME=&quot;FN_WAVE_DEPENDENT_TASKS(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS DependentTasks&quot;) COMPUTE(NAME=&quot;FN_WAVE_TASK_DEPENDENT_ON(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS TaskDependentOn&quot;) JOIN (LEFT=&quot;wave_task_det.wave_id&quot; OP =&quot;=&quot;RIGHT=&quot;wave_task.wave_id&quot; ) JOIN (LEFT=&quot;sorder.sale_order&quot; OP =&quot;=&quot;RIGHT=&quot;wave_task_det.sale_order&quot; ) JOIN (LEFT=&quot;customer.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;sorder.cust_code&quot; ) JOIN (LEFT=&quot;wave_seq.ref_ser&quot; OP =&quot;=&quot;RIGHT=&quot;wave_task_det.ref_ser&quot; )WHERE( EXP1 =&quot;( ~&quot;WAVE_TASK~&quot;.~&quot;TRAN_DATE~&quot;&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:from_date )&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( ~&quot;WAVE_TASK~&quot;.~&quot;TRAN_DATE~&quot;&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:to_date )&quot; ) ) ARG(NAME = &quot;from_date&quot; TYPE = date) ARG(NAME = &quot;to_date&quot; TYPE = date) </retrieve>
<argument>
<name>from_date</name>
<type>date</type>
</argument>
<argument>
<name>to_date</name>
<type>date</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Wave ID</text>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>19</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_wave_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Sale Order</text>
<border>0</border>
<color>33554432</color>
<x>1560</x>
<y>2</y>
<height>19</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_sale_order_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Customer Code</text>
<border>0</border>
<color>33554432</color>
<x>1651</x>
<y>2</y>
<height>19</height>
<width>103</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_cust_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Customer Name</text>
<border>0</border>
<color>33554432</color>
<x>1756</x>
<y>2</y>
<height>19</height>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>customer_cust_name_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Ship City</text>
<border>0</border>
<color>33554432</color>
<x>1908</x>
<y>2</y>
<height>19</height>
<width>126</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_dlv_city_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Status</text>
<border>0</border>
<color>33554432</color>
<x>705</x>
<y>2</y>
<height>19</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_status_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Assign To</text>
<border>0</border>
<color>33554432</color>
<x>958</x>
<y>2</y>
<height>19</height>
<width>134</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>employeeshortnameassignedto_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Performed By</text>
<border>0</border>
<color>33554432</color>
<x>1094</x>
<y>2</y>
<height>19</height>
<width>153</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>performedby_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Wave Seq Priority</text>
<border>0</border>
<color>33554432</color>
<x>2126</x>
<y>2</y>
<height>19</height>
<width>123</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_seq_priority_t</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<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>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>PTCN</text>
<border>0</border>
<color>33554432</color>
<x>104</x>
<y>2</y>
<height>19</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ptcn_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Creation Date</text>
<border>0</border>
<color>33554432</color>
<x>194</x>
<y>2</y>
<height>19</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task ID</text>
<border>0</border>
<color>33554432</color>
<x>281</x>
<y>2</y>
<height>19</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Type</text>
<border>0</border>
<color>33554432</color>
<x>371</x>
<y>2</y>
<height>19</height>
<width>98</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_ser_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Description</text>
<border>0</border>
<color>33554432</color>
<x>471</x>
<y>2</y>
<height>19</height>
<width>232</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Current Status</text>
<border>0</border>
<color>33554432</color>
<x>2036</x>
<y>2</y>
<height>19</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_status_t</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<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>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Dependent Tasks</text>
<border>0</border>
<color>33554432</color>
<x>1249</x>
<y>2</y>
<height>19</height>
<width>157</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dependenttasks_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Dependent On</text>
<border>0</border>
<color>33554432</color>
<x>1408</x>
<y>2</y>
<height>19</height>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>taskdependenton_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Wave Cancel</text>
<border>0</border>
<color>33554432</color>
<x>806</x>
<y>1</y>
<height>20</height>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_cancel_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Hold Status</text>
<border>0</border>
<color>33554432</color>
<x>888</x>
<y>1</y>
<height>20</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_hold_status_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>194</x>
<y>2</y>
<height>21</height>
<width>85</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_tran_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>281</x>
<y>2</y>
<height>21</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>371</x>
<y>2</y>
<height>21</height>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_ser</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>6</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2036</x>
<y>2</y>
<height>21</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_status</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>705</x>
<y>2</y>
<height>21</height>
<width>99</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_status</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>471</x>
<y>2</y>
<height>21</height>
<width>232</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>958</x>
<y>2</y>
<height>21</height>
<width>134</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>employeeshortnameassignedto</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1094</x>
<y>3</y>
<height>20</height>
<width>153</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>performedby</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1249</x>
<y>3</y>
<height>20</height>
<width>157</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dependenttasks</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1408</x>
<y>3</y>
<height>20</height>
<width>150</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>taskdependenton</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1560</x>
<y>2</y>
<height>21</height>
<width>89</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_sale_order</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1651</x>
<y>2</y>
<height>21</height>
<width>103</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1756</x>
<y>2</y>
<height>21</height>
<width>150</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>customer_cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>40</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1908</x>
<y>2</y>
<height>21</height>
<width>126</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_dlv_city</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2126</x>
<y>2</y>
<height>21</height>
<width>123</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_seq_priority</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>104</x>
<y>2</y>
<height>21</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ptcn</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>21</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_wave_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>12</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>806</x>
<y>1</y>
<height>22</height>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_cancel</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>888</x>
<y>1</y>
<height>22</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_hold_status</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>1073741824</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>24</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>23</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="12">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_wave_id</name>
<dbname>wave_task.wave_id</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_ptcn</name>
<dbname>wave_task_det.ptcn</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_tran_date</name>
<dbname>wave_task.tran_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_ref_id</name>
<dbname>wave_task_det.ref_id</dbname>
</table_column>
<table_column>
<type size="6">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_ref_ser</name>
<dbname>wave_task_det.ref_ser</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_status</name>
<dbname>wave_task_det.status</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_det_sale_order</name>
<dbname>wave_task_det.sale_order</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>sorder_cust_code</name>
<dbname>sorder.cust_code</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>customer_cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>sorder_dlv_city</name>
<dbname>sorder.dlv_city</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_seq_priority</name>
<dbname>wave_seq.priority</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_cancel</name>
<dbname>wave_task.cancel</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_task_hold_status</name>
<dbname>wave_task.hold_status</dbname>
</table_column>
<table_column>
<type size="8">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wave_status</name>
<dbname>wave_status</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>descr</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>employeeshortnameassignedto</name>
<dbname>employeeshortnameassignedto</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>performedby</name>
<dbname>performedby</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>dependenttasks</name>
<dbname>dependenttasks</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>taskdependenton</name>
<dbname>taskdependenton</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;customer&quot; ) TABLE(NAME=&quot;sorder&quot; ) TABLE(NAME=&quot;wave_seq&quot; ) TABLE(NAME=&quot;wave_task&quot; ) TABLE(NAME=&quot;wave_task_det&quot; ) COLUMN(NAME=&quot;wave_task.wave_id&quot;) COLUMN(NAME=&quot;wave_task_det.ptcn&quot;) COLUMN(NAME=&quot;wave_task.tran_date&quot;) COLUMN(NAME=&quot;wave_task_det.ref_id&quot;) COLUMN(NAME=&quot;wave_task_det.ref_ser&quot;) COLUMN(NAME=&quot;wave_task_det.status&quot;) COLUMN(NAME=&quot;wave_task_det.sale_order&quot;) COLUMN(NAME=&quot;sorder.cust_code&quot;) COLUMN(NAME=&quot;customer.cust_name&quot;) COLUMN(NAME=&quot;sorder.dlv_city&quot;) COLUMN(NAME=&quot;wave_seq.priority&quot;) COLUMN(NAME=&quot;wave_task.cancel&quot;) COLUMN(NAME=&quot;wave_task.hold_status&quot;) COMPUTE(NAME=&quot;case when wave_status = &apos;C&apos; then &apos;Created&apos; when wave_status = &apos;V&apos; then &apos;Verified&apos; when wave_status = &apos;W&apos; then &apos;Held&apos; else &apos; &apos; end wave_status&quot;) COMPUTE(NAME=&quot;FN_WAVE_DESCRIPTION(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID,WAVE_TASK_DET.PTCN) AS descr&quot;) COMPUTE(NAME=&quot;FN_WAVE_EMP_SHORT_NAME(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS EmployeeShortNameAssignedTo&quot;) COMPUTE(NAME=&quot;FN_WAVE_PERFORMED_BY(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS PerformedBy&quot;) COMPUTE(NAME=&quot;FN_WAVE_DEPENDENT_TASKS(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS DependentTasks&quot;) COMPUTE(NAME=&quot;FN_WAVE_TASK_DEPENDENT_ON(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS TaskDependentOn&quot;) JOIN (LEFT=&quot;wave_task_det.wave_id&quot; OP =&quot;=&quot;RIGHT=&quot;wave_task.wave_id&quot; ) JOIN (LEFT=&quot;sorder.sale_order&quot; OP =&quot;=&quot;RIGHT=&quot;wave_task_det.sale_order&quot; ) JOIN (LEFT=&quot;customer.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;sorder.cust_code&quot; ) JOIN (LEFT=&quot;wave_seq.ref_ser&quot; OP =&quot;=&quot;RIGHT=&quot;wave_task_det.ref_ser&quot; )WHERE( EXP1 =&quot;( ~&quot;WAVE_TASK~&quot;.~&quot;TRAN_DATE~&quot;&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:from_date )&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( ~&quot;WAVE_TASK~&quot;.~&quot;TRAN_DATE~&quot;&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:to_date )&quot; ) ) ARG(NAME = &quot;from_date&quot; TYPE = date) ARG(NAME = &quot;to_date&quot; TYPE = date) </retrieve>
<argument>
<name>from_date</name>
<type>date</type>
</argument>
<argument>
<name>to_date</name>
<type>date</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Wave ID</text>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>19</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_wave_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Sale Order</text>
<border>0</border>
<color>33554432</color>
<x>1560</x>
<y>2</y>
<height>19</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_sale_order_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Customer Code</text>
<border>0</border>
<color>33554432</color>
<x>1651</x>
<y>2</y>
<height>19</height>
<width>103</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_cust_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Customer Name</text>
<border>0</border>
<color>33554432</color>
<x>1756</x>
<y>2</y>
<height>19</height>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>customer_cust_name_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Ship City</text>
<border>0</border>
<color>33554432</color>
<x>1908</x>
<y>2</y>
<height>19</height>
<width>126</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_dlv_city_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Status</text>
<border>0</border>
<color>33554432</color>
<x>705</x>
<y>2</y>
<height>19</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_status_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Assign To</text>
<border>0</border>
<color>33554432</color>
<x>958</x>
<y>2</y>
<height>19</height>
<width>134</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>employeeshortnameassignedto_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Performed By</text>
<border>0</border>
<color>33554432</color>
<x>1094</x>
<y>2</y>
<height>19</height>
<width>153</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>performedby_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Wave Seq Priority</text>
<border>0</border>
<color>33554432</color>
<x>2126</x>
<y>2</y>
<height>19</height>
<width>123</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_seq_priority_t</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<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>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>PTCN</text>
<border>0</border>
<color>33554432</color>
<x>104</x>
<y>2</y>
<height>19</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ptcn_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Creation Date</text>
<border>0</border>
<color>33554432</color>
<x>194</x>
<y>2</y>
<height>19</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task ID</text>
<border>0</border>
<color>33554432</color>
<x>281</x>
<y>2</y>
<height>19</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Type</text>
<border>0</border>
<color>33554432</color>
<x>371</x>
<y>2</y>
<height>19</height>
<width>98</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_ser_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Description</text>
<border>0</border>
<color>33554432</color>
<x>471</x>
<y>2</y>
<height>19</height>
<width>232</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Current Status</text>
<border>0</border>
<color>33554432</color>
<x>2036</x>
<y>2</y>
<height>19</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_status_t</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<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>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Dependent Tasks</text>
<border>0</border>
<color>33554432</color>
<x>1249</x>
<y>2</y>
<height>19</height>
<width>157</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dependenttasks_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Task Dependent On</text>
<border>0</border>
<color>33554432</color>
<x>1408</x>
<y>2</y>
<height>19</height>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>taskdependenton_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Wave Cancel</text>
<border>0</border>
<color>33554432</color>
<x>806</x>
<y>1</y>
<height>20</height>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_cancel_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>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Hold Status</text>
<border>0</border>
<color>33554432</color>
<x>888</x>
<y>1</y>
<height>20</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_hold_status_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>194</x>
<y>2</y>
<height>21</height>
<width>85</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_tran_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>281</x>
<y>2</y>
<height>21</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>371</x>
<y>2</y>
<height>21</height>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ref_ser</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>6</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2036</x>
<y>2</y>
<height>21</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_status</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>705</x>
<y>2</y>
<height>21</height>
<width>99</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_status</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>471</x>
<y>2</y>
<height>21</height>
<width>232</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>958</x>
<y>2</y>
<height>21</height>
<width>134</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>employeeshortnameassignedto</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1094</x>
<y>3</y>
<height>20</height>
<width>153</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>performedby</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1249</x>
<y>3</y>
<height>20</height>
<width>157</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dependenttasks</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1408</x>
<y>3</y>
<height>20</height>
<width>150</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>taskdependenton</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1560</x>
<y>2</y>
<height>21</height>
<width>89</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_sale_order</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1651</x>
<y>2</y>
<height>21</height>
<width>103</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1756</x>
<y>2</y>
<height>21</height>
<width>150</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>customer_cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>40</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1908</x>
<y>2</y>
<height>21</height>
<width>126</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_dlv_city</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2126</x>
<y>2</y>
<height>21</height>
<width>123</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_seq_priority</name>
<visible>0</visible>
<hidesnaked>1</hidesnaked>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>104</x>
<y>2</y>
<height>21</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_det_ptcn</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>21</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_wave_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>12</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>806</x>
<y>1</y>
<height>22</height>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_cancel</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>2</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>888</x>
<y>1</y>
<height>22</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wave_task_hold_status</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
...@@ -45337,4 +45337,274 @@ VALUES ( ...@@ -45337,4 +45337,274 @@ VALUES (
--SQL Added by Manoj dtd 30/05/2014 to disable Audit trail for object 'sorder_insert' --SQL Added by Manoj dtd 30/05/2014 to disable Audit trail for object 'sorder_insert'
update transetup set audit_trail_opt=0 WHERE tran_window='w_sorder_insert'; update transetup set audit_trail_opt=0 WHERE tran_window='w_sorder_insert';
--SQL Ended by Manoj dtd 30/05/2014 to disable Audit trail for object 'sorder_insert' --SQL Ended by Manoj dtd 30/05/2014 to disable Audit trail for object 'sorder_insert'
--changed by sankara on 02/06/14 update sql for wave task home screen start.
------------Function sql---------------------
CREATE OR REPLACE FUNCTION FN_WAVE_EMP_SHORT_NAME(VI_REF_SER IN CHAR ,VI_REF_Id IN VARCHAR)
RETURN VARCHAR2 IS EMP_SHORT_NAME VARCHAR2(500);
BEGIN
IF(VI_REF_SER = 'P-PICK' OR VI_REF_SER = 'C-PICK' OR VI_REF_SER = 'A-PICK' OR VI_REF_SER = 'M-PICK') THEN
select nvl(pick_ord_hdr.ASSIGN_TO,' ') into EMP_SHORT_NAME
from pick_ord_hdr where pick_ord_hdr.pick_order = VI_REF_Id;
RETURN EMP_SHORT_NAME;
ELSIF (VI_REF_SER = 'R-TASK' OR VI_REF_SER = 'RP-PND' OR VI_REF_SER = 'R-CPA' OR
VI_REF_SER = 'R-PND' OR VI_REF_SER = 'S-DOC' OR VI_REF_SER = 'RP-ACT' OR VI_REF_SER = 'RR-DSA'
OR VI_REF_SER = 'RD-DSA' OR VI_REF_SER = 'R-DSO' OR VI_REF_SER = 'RS-DSO' OR VI_REF_SER = 'RN-DSA') THEN
select nvl(repl_ord_hdr.ASSIGN_TO,' ') into EMP_SHORT_NAME from repl_ord_hdr where repl_ord_hdr.repl_order = VI_REF_Id;
END IF;
RETURN EMP_SHORT_NAME;
EXCEPTION
WHEN NO_DATA_FOUND THEN
EMP_SHORT_NAME :=' ';
RETURN EMP_SHORT_NAME;
END;
/
CREATE OR REPLACE FUNCTION FN_WAVE_PERFORMED_BY(VI_REF_SER IN CHAR ,VI_REF_Id IN VARCHAR)
RETURN VARCHAR2 IS PERFORMED_BY VARCHAR2(500);
userby varchar2(500);
flag BOOLEAN := false;
cursor C1 is SELECT nvl(pick_iss_hdr.chg_user,' ') as PERFORMED_BY1 from pick_iss_hdr where pick_iss_hdr.pick_order = VI_REF_Id;
cursor C2 is SELECT nvl(repl_iss_hdr.chg_user,' ') as PERFORMED_BY1 from repl_iss_hdr where repl_iss_hdr.repl_order = VI_REF_Id;
BEGIN
IF(VI_REF_SER = 'P-PICK' OR VI_REF_SER = 'C-PICK' OR VI_REF_SER = 'A-PICK' OR VI_REF_SER = 'M-PICK') THEN
FOR userchage in C1
LOOP
IF(flag) Then
userby :=userby || ',' || userchage.PERFORMED_BY1;
ELSE
userby := userchage.PERFORMED_BY1;
flag:=true;
End IF;
END LOOP;
PERFORMED_BY :=userby;
RETURN PERFORMED_BY;
ELSIF(VI_REF_SER = 'R-TASK' OR VI_REF_SER = 'RP-PND' OR VI_REF_SER = 'R-CPA' OR VI_REF_SER = 'R-PND' OR VI_REF_SER = 'S-DOC' OR VI_REF_SER = 'RP-ACT' OR VI_REF_SER = 'RR-DSA' OR VI_REF_SER = 'RD-DSA' OR VI_REF_SER = 'R-DSO' OR VI_REF_SER = 'RS-DSO' OR VI_REF_SER = 'RN-DSA') THEN
FOR userchage in C2
LOOP
IF(flag) Then
userby :=userby || ',' || userchage.PERFORMED_BY1;
ELSE
userby := userchage.PERFORMED_BY1;
flag:=true;
End IF;
END LOOP;
PERFORMED_BY :=userby;
RETURN PERFORMED_BY;
ELSE
PERFORMED_BY :=' ';
RETURN PERFORMED_BY;
End IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
PERFORMED_BY :=' ';
RETURN PERFORMED_BY;
END;
/
CREATE OR REPLACE FUNCTION FN_WAVE_DEPENDENT_TASKS(VI_REF_SER IN CHAR ,VI_REF_Id IN VARCHAR)
RETURN VARCHAR2 IS DEPENDENT_TASKS VARCHAR2(1500);
dependentReplTasks varchar2(1500);
dependentPickTasks varchar2(1500);
flagRepl BOOLEAN := false;
flagPick BOOLEAN := false;
cursor C1 is SELECT distinct(nvl(repl_ord_det.repl_order,' ')) as DEPENDENT_REPL_TASKS1 from repl_ord_det where repl_ord_det.pick_order = VI_REF_Id;
cursor C2 is SELECT distinct(nvl(pick_ord_det.pick_order,' ')) as DEPENDENT_PICK_TASKS1 from pick_ord_det where pick_ord_det.repl_order = VI_REF_Id;
BEGIN
IF(VI_REF_SER = 'P-PICK' OR VI_REF_SER = 'C-PICK' OR VI_REF_SER = 'A-PICK' OR VI_REF_SER = 'M-PICK') THEN
DEPENDENT_TASKS :=' ';
RETURN DEPENDENT_TASKS;
ELSIF(VI_REF_SER = 'R-TASK' OR VI_REF_SER = 'RP-PND' OR VI_REF_SER = 'R-CPA' OR VI_REF_SER = 'R-PND' OR VI_REF_SER = 'S-DOC' OR VI_REF_SER = 'RP-ACT' OR VI_REF_SER = 'RR-DSA' OR VI_REF_SER = 'RD-DSA' OR VI_REF_SER = 'R-DSO' OR VI_REF_SER = 'RS-DSO' OR VI_REF_SER = 'RN-DSA') THEN
--FOR depend REPL
FOR depTaskRepl in C1
LOOP
IF(flagRepl) Then
dependentReplTasks :=dependentReplTasks || ',' || depTaskRepl.DEPENDENT_REPL_TASKS1;
ELSE
dependentReplTasks := depTaskRepl.DEPENDENT_REPL_TASKS1;
flagRepl:=true;
End IF;
END LOOP;
--FOR depend PICK
FOR depTaskPick in C2
LOOP
IF(flagPick) Then
dependentPickTasks :=dependentPickTasks || ',' || depTaskPick.DEPENDENT_PICK_TASKS1;
ELSE
dependentPickTasks := depTaskPick.DEPENDENT_PICK_TASKS1;
flagPick:=true;
End IF;
END LOOP;
--CONCATENATE LOGIC
IF(flagPick) THEN
IF(flagRepl) THEN
DEPENDENT_TASKS :=dependentReplTasks || ',' || dependentPickTasks;
ELSE
DEPENDENT_TASKS := dependentPickTasks;
End IF;
ELSE
IF(flagRepl) THEN
DEPENDENT_TASKS := dependentReplTasks;
End IF;
End IF;
RETURN DEPENDENT_TASKS;
ELSE
DEPENDENT_TASKS := ' ';
RETURN DEPENDENT_TASKS;
End IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DEPENDENT_TASKS :=' ';
RETURN DEPENDENT_TASKS;
END;
/
CREATE OR REPLACE FUNCTION FN_WAVE_TASK_DEPENDENT_ON(VI_REF_SER IN CHAR ,VI_REF_Id IN VARCHAR)
RETURN VARCHAR2 IS TASK_DEPENDENT_ON VARCHAR2(1500);
taskDependentOn varchar2(1500);
flag BOOLEAN := false;
cursor C1 is SELECT distinct(nvl(pick_ord_det.repl_order,' ')) as TASK_DEPENDENT_NO1 from pick_ord_det where pick_ord_det.pick_order = VI_REF_Id;
cursor C2 is SELECT distinct(nvl(repl_ord_det.pick_order,' ')) as TASK_DEPENDENT_NO1 from repl_ord_det where repl_ord_det.repl_order = VI_REF_Id;
BEGIN
IF(VI_REF_SER = 'P-PICK' OR VI_REF_SER = 'C-PICK' OR VI_REF_SER = 'A-PICK' OR VI_REF_SER = 'M-PICK') THEN
FOR taskDepOn in C1
LOOP
IF(flag) Then
taskDependentOn :=taskDependentOn || ',' || taskDepOn.TASK_DEPENDENT_NO1;
ELSE
taskDependentOn := taskDepOn.TASK_DEPENDENT_NO1;
flag:=true;
End IF;
END LOOP;
TASK_DEPENDENT_ON :=taskDependentOn;
RETURN TASK_DEPENDENT_ON;
ELSIF(VI_REF_SER = 'R-TASK' OR VI_REF_SER = 'RP-PND' OR VI_REF_SER = 'R-CPA' OR VI_REF_SER = 'R-PND' OR VI_REF_SER = 'S-DOC' OR VI_REF_SER = 'RP-ACT' OR VI_REF_SER = 'RR-DSA' OR VI_REF_SER = 'RD-DSA' OR VI_REF_SER = 'R-DSO' OR VI_REF_SER = 'RS-DSO' OR VI_REF_SER = 'RN-DSA') THEN
FOR taskDepOn in C2
LOOP
IF(flag) Then
taskDependentOn :=taskDependentOn || ',' || taskDepOn.TASK_DEPENDENT_NO1;
ELSE
taskDependentOn := taskDepOn.TASK_DEPENDENT_NO1;
flag:=true;
End IF;
END LOOP;
TASK_DEPENDENT_ON :=taskDependentOn;
RETURN TASK_DEPENDENT_ON;
ELSE
TASK_DEPENDENT_ON :=' ';
RETURN TASK_DEPENDENT_ON;
End IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
TASK_DEPENDENT_ON :=' ';
RETURN TASK_DEPENDENT_ON;
END;
/
-----------------system entries sql------------------------------------
INSERT INTO itm2menu(
application,
level_1,
level_2,
level_3,
level_4,
level_5,
win_name,
descr,
comments,
menu_path,
icon_path,
close_icon,
open_icon,
obj_type,
chg_date,
chg_term,
chg_user,
mob_deploy )
VALUES (
'WMS',
3,
4,
0,
0,
0,
'w_wave_task_status_det',
'Wave Summary',
'Wave Tasks Detail ',
'WMS.3.4.0.0.0',
'e12_logo.gif',
NULL,
NULL,
'T',
fn_sysdate(),
'BASE',
'BASE',
NULL);
INSERT INTO obj_forms (
win_name ,
title ,
obj_brow_name ,
obj_edit_name ,
form_no)
VALUES (
'w_wave_task_status_det',
'Wave Tasks Detail',
'd_wave_task_status_det11',
'null',
'2');
INSERT INTO transetup (
tran_window ,
save_flag ,
val_flag ,
key_flag ,
key_string ,
repeate_add ,
chg_date ,
chg_user ,
chg_term ,
edi_option ,
confirm_mode ,
mail_option ,
garbage_opt ,
table_name,
application )
VALUES (
'w_wave_task_status_det',
'2',
'2',
'A',
'seq10',
'N',
fn_sysdate(),
'BASE',
'BASE ',
'0',
'0',
'0',
'N',
'null',
'WMS');
commit;
--changed by sankara on 02/06/14 update sql for wave task home screen end.
\ No newline at end of file
$PBExportHeader$d_wave_task_status_det11.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 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=24 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(12) updatewhereclause=yes name=wave_task_wave_id dbname="wave_task.wave_id" )
column=(type=char(10) updatewhereclause=yes name=wave_task_det_ptcn dbname="wave_task_det.ptcn" )
column=(type=datetime updatewhereclause=yes name=wave_task_tran_date dbname="wave_task.tran_date" )
column=(type=char(10) updatewhereclause=yes name=wave_task_det_ref_id dbname="wave_task_det.ref_id" )
column=(type=char(6) updatewhereclause=yes name=wave_task_det_ref_ser dbname="wave_task_det.ref_ser" )
column=(type=char(1) updatewhereclause=yes name=wave_task_det_status dbname="wave_task_det.status" )
column=(type=char(10) updatewhereclause=yes name=wave_task_det_sale_order dbname="wave_task_det.sale_order" )
column=(type=char(10) updatewhereclause=yes name=sorder_cust_code dbname="sorder.cust_code" )
column=(type=char(40) updatewhereclause=yes name=customer_cust_name dbname="customer.cust_name" )
column=(type=char(20) updatewhereclause=yes name=sorder_dlv_city dbname="sorder.dlv_city" )
column=(type=decimal(0) updatewhereclause=yes name=wave_seq_priority dbname="wave_seq.priority" )
column=(type=char(1) updatewhereclause=yes name=wave_task_cancel dbname="wave_task.cancel" )
column=(type=char(1) updatewhereclause=yes name=wave_task_hold_status dbname="wave_task.hold_status" )
column=(type=char(8) updatewhereclause=yes name=wave_status dbname="wave_status" )
column=(type=char(4000) updatewhereclause=yes name=descr dbname="descr" )
column=(type=char(4000) updatewhereclause=yes name=employeeshortnameassignedto dbname="employeeshortnameassignedto" )
column=(type=char(4000) updatewhereclause=yes name=performedby dbname="performedby" )
column=(type=char(4000) updatewhereclause=yes name=dependenttasks dbname="dependenttasks" )
column=(type=char(4000) updatewhereclause=yes name=taskdependenton dbname="taskdependenton" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"customer~" ) TABLE(NAME=~"sorder~" ) TABLE(NAME=~"wave_seq~" ) TABLE(NAME=~"wave_task~" ) TABLE(NAME=~"wave_task_det~" ) COLUMN(NAME=~"wave_task.wave_id~") COLUMN(NAME=~"wave_task_det.ptcn~") COLUMN(NAME=~"wave_task.tran_date~") COLUMN(NAME=~"wave_task_det.ref_id~") COLUMN(NAME=~"wave_task_det.ref_ser~") COLUMN(NAME=~"wave_task_det.status~") COLUMN(NAME=~"wave_task_det.sale_order~") COLUMN(NAME=~"sorder.cust_code~") COLUMN(NAME=~"customer.cust_name~") COLUMN(NAME=~"sorder.dlv_city~") COLUMN(NAME=~"wave_seq.priority~") COLUMN(NAME=~"wave_task.cancel~") COLUMN(NAME=~"wave_task.hold_status~") COMPUTE(NAME=~"case when wave_status = 'C' then 'Created' when wave_status = 'V' then 'Verified' when wave_status = 'W' then 'Held' else ' ' end wave_status~") COMPUTE(NAME=~"FN_WAVE_DESCRIPTION(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID,WAVE_TASK_DET.PTCN) AS descr~") COMPUTE(NAME=~"FN_WAVE_EMP_SHORT_NAME(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS EmployeeShortNameAssignedTo~") COMPUTE(NAME=~"FN_WAVE_PERFORMED_BY(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS PerformedBy~") COMPUTE(NAME=~"FN_WAVE_DEPENDENT_TASKS(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS DependentTasks~") COMPUTE(NAME=~"FN_WAVE_TASK_DEPENDENT_ON(WAVE_TASK_DET.REF_SER,WAVE_TASK_DET.REF_ID) AS TaskDependentOn~") JOIN (LEFT=~"wave_task_det.wave_id~" OP =~"=~"RIGHT=~"wave_task.wave_id~" ) JOIN (LEFT=~"sorder.sale_order~" OP =~"=~"RIGHT=~"wave_task_det.sale_order~" ) JOIN (LEFT=~"customer.cust_code~" OP =~"=~"RIGHT=~"sorder.cust_code~" ) JOIN (LEFT=~"wave_seq.ref_ser~" OP =~"=~"RIGHT=~"wave_task_det.ref_ser~" )WHERE( EXP1 =~"( ~~~"WAVE_TASK~~~".~~~"TRAN_DATE~~~"~" OP =~">=~" EXP2 =~":from_date )~" LOGIC =~"and~" ) WHERE( EXP1 =~"( ~~~"WAVE_TASK~~~".~~~"TRAN_DATE~~~"~" OP =~"<=~" EXP2 =~":to_date )~" ) ) ARG(NAME = ~"from_date~" TYPE = date) ARG(NAME = ~"to_date~" TYPE = date) " arguments=(("from_date", date),("to_date", date)) )
text(band=header alignment="2" text="Wave ID" border="0" color="33554432" x="2" y="2" height="19" width="100" html.valueishtml="0" name=wave_task_wave_id_t 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" )
text(band=header alignment="2" text="Sale Order" border="0" color="33554432" x="1560" y="2" height="19" width="89" html.valueishtml="0" name=wave_task_det_sale_order_t 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" )
text(band=header alignment="2" text="Customer Code" border="0" color="33554432" x="1651" y="2" height="19" width="103" html.valueishtml="0" name=sorder_cust_code_t 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" )
text(band=header alignment="2" text="Customer Name" border="0" color="33554432" x="1756" y="2" height="19" width="150" html.valueishtml="0" name=customer_cust_name_t 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" )
text(band=header alignment="2" text="Ship City" border="0" color="33554432" x="1908" y="2" height="19" width="126" html.valueishtml="0" name=sorder_dlv_city_t 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" )
text(band=header alignment="2" text="Task Status" border="0" color="33554432" x="705" y="2" height="19" width="99" html.valueishtml="0" name=wave_status_t 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" )
text(band=header alignment="2" text="Assign To" border="0" color="33554432" x="958" y="2" height="19" width="134" html.valueishtml="0" name=employeeshortnameassignedto_t 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" )
text(band=header alignment="2" text="Performed By" border="0" color="33554432" x="1094" y="2" height="19" width="153" html.valueishtml="0" name=performedby_t 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" )
text(band=header alignment="0" text="Wave Seq Priority" border="0" color="33554432" x="2126" y="2" height="19" width="123" html.valueishtml="0" name=wave_seq_priority_t visible="0" hidesnaked=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" )
text(band=header alignment="2" text="PTCN" border="0" color="33554432" x="104" y="2" height="19" width="88" html.valueishtml="0" name=wave_task_det_ptcn_t 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" )
text(band=header alignment="2" text="Creation Date" border="0" color="33554432" x="194" y="2" height="19" width="85" html.valueishtml="0" name=wave_task_tran_date_t 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" )
text(band=header alignment="2" text="Task ID" border="0" color="33554432" x="281" y="2" height="19" width="88" html.valueishtml="0" name=wave_task_det_ref_id_t 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" )
text(band=header alignment="2" text="Task Type" border="0" color="33554432" x="371" y="2" height="19" width="98" html.valueishtml="0" name=wave_task_det_ref_ser_t 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" )
text(band=header alignment="2" text="Task Description" border="0" color="33554432" x="471" y="2" height="19" width="232" html.valueishtml="0" name=descr_t 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" )
text(band=header alignment="0" text="Current Status" border="0" color="33554432" x="2036" y="2" height="19" width="88" html.valueishtml="0" name=wave_task_det_status_t visible="0" hidesnaked=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" )
text(band=header alignment="2" text="Dependent Tasks" border="0" color="33554432" x="1249" y="2" height="19" width="157" html.valueishtml="0" name=dependenttasks_t 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" )
text(band=header alignment="2" text="Task Dependent On" border="0" color="33554432" x="1408" y="2" height="19" width="150" html.valueishtml="0" name=taskdependenton_t 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" )
text(band=header alignment="2" text="Wave Cancel" border="0" color="33554432" x="806" y="1" height="20" width="80" html.valueishtml="0" name=wave_task_cancel_t 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" )
text(band=header alignment="2" text="Hold Status" border="0" color="33554432" x="888" y="1" height="20" width="68" html.valueishtml="0" name=wave_task_hold_status_t 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=3 alignment="2" tabsequence=32766 border="0" color="33554432" x="194" y="2" height="21" width="85" format="[shortdate] [time]" html.valueishtml="0" name=wave_task_tran_date 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="1" background.color="536870912" )
column(band=detail id=4 alignment="2" tabsequence=32766 border="0" color="33554432" x="281" y="2" height="21" width="88" format="[general]" html.valueishtml="0" name=wave_task_det_ref_id visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=5 alignment="2" tabsequence=32766 border="0" color="33554432" x="371" y="2" height="21" width="98" format="[general]" html.valueishtml="0" name=wave_task_det_ref_ser visible="1" edit.limit=6 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="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="33554432" x="2036" y="2" height="21" width="88" format="[general]" html.valueishtml="0" name=wave_task_det_status visible="0" hidesnaked=1 edit.limit=1 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="1" background.color="536870912" )
column(band=detail id=14 alignment="2" tabsequence=32766 border="0" color="33554432" x="705" y="2" height="21" width="99" format="[general]" html.valueishtml="0" name=wave_status 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="1" background.color="536870912" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="0" color="33554432" x="471" y="2" height="21" width="232" format="[general]" html.valueishtml="0" name=descr 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="1" background.color="536870912" )
column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="33554432" x="958" y="2" height="21" width="134" format="[general]" html.valueishtml="0" name=employeeshortnameassignedto 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="1" background.color="536870912" )
column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="33554432" x="1094" y="3" height="20" width="153" format="[general]" html.valueishtml="0" name=performedby 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="1" background.color="536870912" )
column(band=detail id=18 alignment="0" tabsequence=32766 border="0" color="33554432" x="1249" y="3" height="20" width="157" format="[general]" html.valueishtml="0" name=dependenttasks 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="1" background.color="536870912" )
column(band=detail id=19 alignment="0" tabsequence=32766 border="0" color="33554432" x="1408" y="3" height="20" width="150" format="[general]" html.valueishtml="0" name=taskdependenton 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="1" background.color="536870912" )
column(band=detail id=7 alignment="2" tabsequence=32766 border="0" color="33554432" x="1560" y="2" height="21" width="89" format="[general]" html.valueishtml="0" name=wave_task_det_sale_order visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=8 alignment="2" tabsequence=32766 border="0" color="33554432" x="1651" y="2" height="21" width="103" format="[general]" html.valueishtml="0" name=sorder_cust_code visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="33554432" x="1756" y="2" height="21" width="150" format="[general]" html.valueishtml="0" name=customer_cust_name visible="1" edit.limit=40 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="1" background.color="536870912" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="33554432" x="1908" y="2" height="21" width="126" format="[general]" html.valueishtml="0" name=sorder_dlv_city visible="1" edit.limit=20 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="1" background.color="536870912" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="0" color="33554432" x="2126" y="2" height="21" width="123" format="[general]" html.valueishtml="0" name=wave_seq_priority visible="0" hidesnaked=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="1" background.color="536870912" )
column(band=detail id=2 alignment="2" tabsequence=32766 border="0" color="33554432" x="104" y="2" height="21" width="88" format="[general]" html.valueishtml="0" name=wave_task_det_ptcn visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=1 alignment="2" tabsequence=32766 border="0" color="33554432" x="2" y="2" height="21" width="100" format="[general]" html.valueishtml="0" name=wave_task_wave_id visible="1" edit.limit=12 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="1" background.color="536870912" )
column(band=detail id=12 alignment="2" tabsequence=32766 border="0" color="33554432" x="806" y="1" height="22" width="80" format="[general]" html.valueishtml="0" name=wave_task_cancel 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="1" background.color="536870912" )
column(band=detail id=13 alignment="2" tabsequence=32766 border="0" color="33554432" x="888" y="1" height="22" width="68" format="[general]" html.valueishtml="0" name=wave_task_hold_status 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="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment