Commit fca319e1 authored by gahmad's avatar gahmad

Uploading the new and updated components for MRP process that is migrated into...

Uploading the new and updated components for MRP process that is migrated into WIZARD : Req ID : MF2ASUN004


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91711 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 95db2ab2
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>webitm-mfg</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
......@@ -69,6 +69,13 @@ class ADPElement
private double batchSizeLead = 0;
// end 22/06/10 manoharan
//Variables declared by gulzar on 4/18/2012
private double pendPOQty = 0;
private double pendDOQty = 0;
private double pendIndQty = 0;
private double pendDRQty = 0;
//End changes by gulzar on 4/18/2012
//sabyasachi 17-03-2011
private String saleOrder;
private String lineNo;
......@@ -506,6 +513,45 @@ class ADPElement
}
//end added by sabyasachi 17-03-11
//Changes made by Gulzar on 4/18/2012
public void setPendingPO(java.sql.Timestamp dueDate, double pendPOQty)
{
this.pendPOQty += pendPOQty;
updateTimeMrp(dueDate, 0,0, pendPOQty,0);
}
public double getPendingPO()
{
return this.pendPOQty;
}
public void setPendingDO(java.sql.Timestamp dueDate, double pendDOQty)
{
this.pendDOQty += pendDOQty;
updateTimeMrp(dueDate, 0,0, pendDOQty,0);
}
public double getPendingDO()
{
return this.pendDOQty;
}
public void setPendingIndent(java.sql.Timestamp dueDate, double pendIndQty)
{
this.pendIndQty += pendIndQty;
updateTimeMrp(dueDate, 0,0, pendIndQty,0);
}
public double getPendingIndent()
{
return this.pendIndQty;
}
public void setPendingDR(java.sql.Timestamp dueDate, double pendDRQty)
{
this.pendDRQty += pendDRQty;
updateTimeMrp(dueDate, 0,0, pendDRQty,0);
}
public double getPendingDR()
{
return this.pendDRQty;
}
//End changes by Gulzar on 4/18/2012
//private void updateTimeMrp(java.sql.Timestamp dueDate, double demand, double supply, double stockQty, double othSupply, String saleOrder, String lineNo)
private void updateTimeMrp(java.sql.Timestamp dueDate, double demand, double supply, double stockQty, double othSupply)
......
package ibase.webitm.ejb.mfg;
import java.rmi.RemoteException;
import ibase.webitm.ejb.mfg.RunMRPPrc;
import java.util.*;
import java.util.Date;
import java.sql.*;
import org.w3c.dom.*;
import javax.ejb.*;
import ibase.webitm.utility.ITMException;
import ibase.system.config.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import java.text.SimpleDateFormat;
import javax.naming.InitialContext;
import javax.ejb.Stateless;
@Stateless
public class RequirementIC extends ValidatorEJB implements RequirementICLocal,RequirementICRemote //SessionBean
{
GenericUtility genericUtility = GenericUtility.getInstance();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
SimpleDateFormat simpleDateFormat = null;
public String wfValData() throws RemoteException,ITMException
{
System.out.println("wfValData()...");
return "";
}
// Item Change
public String itemChanged() throws RemoteException,ITMException
{
System.out.println("itemChanged Called...");
return "";
}
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
System.out.println("xmlString.........::"+xmlString);
System.out.println("xmlString1.........::"+xmlString1);
System.out.println("xmlString2.........::"+xmlString2);
if (xmlString != null && xmlString.trim().length()!=0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length()!=0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length()!=0)
{
dom2 = genericUtility.parseString(xmlString2);
}
errString = itemChanged(dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams);
}
catch (Exception e)
{
System.out.println ("Exception :ProcessControlEJB :itemChanged(String,String):" + e.getMessage() + ":");
errString = genericUtility.createErrorString(e);
throw new ITMException(e);
}
System.out.println ("returning from ProcessControlEJB itemChanged");
return errString;
}
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
String loginSiteCode = "";
String sql = "";
String columnValue = "";
String userId = "";
String errString="";
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
StringBuffer valueXmlString = new StringBuffer();
int currentFormNo = 0;
boolean isError = false;
PreparedStatement pstmtIns = null;
PreparedStatement pstmtSel = null;
PreparedStatement pstmtSel1 = null;
PreparedStatement pstmt = null;
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = "";
String noOfBatchStr = "";
String itemCode = "";
String siteCode = "";
String orderType = "MRP";
String tranId = "MPSID";
String status = "M";
String unit = "";
String insertSql = "";
String selectSql = "";
String itemCodeFr = "";
String itemCodeTo = "";
String deleteSql = "";
String dueDate1 = "";
String siteCodeFr = "";
String siteCodeTo = "";
Document argDom = null;
java.sql.Timestamp sysDate = new java.sql.Timestamp(System.currentTimeMillis());
java.sql.Date dueDate = null;
int parentNodeListLength = 0;
int childNodeListLength = 0;
int noOfBatch = 0;
int delCnt = 0;
int noOfItem = 0;
int tranIdSuffix = 0;
double batchQty = 0d;
double quantity = 0d;
double yieldPerc = 0d;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
loginSiteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
columnValue = genericUtility.getColumnValue(currentColumn,dom);
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
}
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><Header><editFlag>");
valueXmlString.append(editFlag).append("</editFlag></Header>");
switch (currentFormNo)
{
case 1:
valueXmlString.append("<Detail1>");
if(currentColumn.trim().equals("itm_default"))
{
valueXmlString.append("<site_code__fr>").append(loginSiteCode).append("</site_code__fr>");
valueXmlString.append("<site_code__to>").append(loginSiteCode).append("</site_code__to>");
}
valueXmlString.append("</Detail1>");
break;
case 2:
if(currentColumn.trim().equals("itm_default"))
{
int detCnt = 0;
siteCodeFr = genericUtility.getColumnValue("site_code__fr",dom1);
siteCodeTo = genericUtility.getColumnValue("site_code__to",dom1);
selectSql = "SELECT A.TRAN_ID, A.SITE_CODE, A.ITEM_CODE, B.DESCR, A.QUANTITY, A.DUE_DATE, A.UNIT, A.YIELD_PERC " +
"FROM MPS_ORDER A, ITEM B "+
"WHERE ( A.ITEM_CODE = B.ITEM_CODE (+)) " +
"AND A.SITE_CODE >= ? AND A.SITE_CODE <= ? "+
"AND A.STATUS IN ('P','T','M')";
pstmt = conn.prepareStatement(selectSql);
pstmt.setString(1, siteCodeFr);
pstmt.setString(2, siteCodeTo);
rs = pstmt.executeQuery();
while ( rs.next() )
{
detCnt++;
dueDate = rs.getDate("DUE_DATE");
if(dueDate != null)
{
dueDate1 = sdf.format(dueDate);
}
else
{
dueDate1 = "";
}
valueXmlString.append("<Detail2>\r\n");
valueXmlString.append("<site_code>").append("<![CDATA["+rs.getString("SITE_CODE")+"]]>").append("</site_code>\r\n");
valueXmlString.append("<item_code>").append("<![CDATA["+rs.getString("ITEM_CODE")+"]]>").append("</item_code>\r\n");
valueXmlString.append("<item_descr protect = '1'>").append("<![CDATA["+rs.getString("DESCR")+"]]>").append("</item_descr>\r\n");
valueXmlString.append("<quantity>").append("<![CDATA["+rs.getDouble("QUANTITY")+"]]>").append("</quantity>\r\n");
valueXmlString.append("<due_date protect = '1'>").append("<![CDATA["+dueDate1+"]]>").append("</due_date>\r\n");
valueXmlString.append("<unit protect = '1'>").append("<![CDATA["+rs.getString("UNIT")+"]]>").append("</unit>\r\n");
valueXmlString.append("<yield_perc protect = '1'>").append("<![CDATA["+rs.getString("YIELD_PERC")+"]]>").append("</yield_perc>\r\n");
valueXmlString.append("<tran_id protect = '1'>").append("<![CDATA["+rs.getString("TRAN_ID")+"]]>").append("</tran_id>\r\n");
valueXmlString.append("</Detail2>");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if ( detCnt == 0 )
{
valueXmlString.append("<Detail2>\r\n");
valueXmlString.append("<site_code>").append("").append("</site_code>\r\n");
valueXmlString.append("<item_code>").append("").append("</item_code>\r\n");
valueXmlString.append("<item_descr protect = '1'>").append("").append("</item_descr>\r\n");
valueXmlString.append("<quantity>").append("0").append("</quantity>\r\n");
valueXmlString.append("<due_date protect = '1'>").append("").append("</due_date>\r\n");
valueXmlString.append("<unit protect = '1'>").append("").append("</unit>\r\n");
valueXmlString.append("<yield_perc protect = '1'>").append("").append("</yield_perc>\r\n");
valueXmlString.append("<tran_id protect = '1'>").append("").append("</tran_id>\r\n");
valueXmlString.append("</Detail2>");
}
}
break;
//added by akhilesh
case 3:
if(currentColumn.trim().equals("itm_default"))
{
TreeSet itemTreeSet = new TreeSet();
TreeSet siteTreeSet = new TreeSet();
ArrayList tranIdList = new ArrayList();
HashMap mpsDataMap = new HashMap();
int newDataCnt = 0;
int noOfSite = 0;
String tranIdDom = "";
String qtyStr = "";
siteCodeFr = genericUtility.getColumnValue("site_code__fr",dom1);
siteCodeTo = genericUtility.getColumnValue("site_code__to",dom1);
insertSql = "INSERT INTO MPS_ORDER(TRAN_ID, ORDER_TYPE, ITEM_CODE, SITE_CODE, QUANTITY, ORD_DATE, DUE_DATE, STATUS, STATUS_DATE, YIELD_PERC, UNIT ) VALUES( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )";
pstmtIns = conn.prepareStatement(insertSql);
selectSql = "SELECT BATCH_QTY FROM BOM WHERE BOM_CODE = (SELECT BOM_CODE FROM SITEITEM WHERE SITE_CODE = ? AND ITEM_CODE = ? )";
pstmtSel = conn.prepareStatement(selectSql);
selectSql = "SELECT UNIT,YIELD_PERC FROM ITEM WHERE ITEM_CODE = ? ";
pstmtSel1 = conn.prepareStatement(selectSql);
parentNodeList = dom2.getElementsByTagName("Detail2");
parentNodeListLength = parentNodeList.getLength();
for(int p = 0; p < parentNodeListLength; p++)
{
tranIdDom = ""; itemCode = ""; siteCode = ""; qtyStr = ""; quantity = 0d;
parentNode = parentNodeList.item(p);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(int c = 0; c < childNodeListLength; c++)
{
childNode = childNodeList.item(c);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName :: " + childNodeName);
if (childNodeName.equals("tran_id"))
{
if (childNode.getFirstChild() != null)
{
tranIdDom = checkNull(childNode.getFirstChild().getNodeValue());
}
}
else if (childNodeName.equals("item_code"))
{
if (childNode.getFirstChild() != null)
{
itemCode = checkNull(childNode.getFirstChild().getNodeValue());
}
}
else if (childNodeName.equals("site_code"))
{
if (childNode.getFirstChild() != null)
{
siteCode = checkNull(childNode.getFirstChild().getNodeValue());
}
}
else if (childNodeName.equals("quantity"))
{
if (childNode.getFirstChild() != null)
{
qtyStr = childNode.getFirstChild().getNodeValue();
if ( qtyStr != null && qtyStr.trim().length() > 0 )
{
try
{
quantity = Double.parseDouble(qtyStr);
}
catch (NumberFormatException n)
{
quantity = 0;
}
}
}
}
}//End of Inner for loop
if ( itemCode != null && itemCode.trim().length() > 0 )
{
itemTreeSet.add(itemCode);
}
if ( siteCode != null && siteCode.trim().length() > 0 )
{
siteTreeSet.add(siteCode);
}
if ( tranIdDom == null || tranIdDom.trim().length() == 0 )
{
newDataCnt++;
ArrayList newDataList = new ArrayList();
newDataList.add(siteCode);
newDataList.add(itemCode);
newDataList.add(quantity);
mpsDataMap.put(""+newDataCnt,newDataList);
pstmtSel1.setString(1, itemCode);
rs = pstmtSel1.executeQuery();
if ( rs.next() )
{
unit = rs.getString("UNIT");
yieldPerc = rs.getDouble("YIELD_PERC");
}
pstmtSel1.clearParameters();
rs.close(); rs = null;
pstmtSel.setString(1, siteCode);
pstmtSel.setString(2, itemCode);
rs = pstmtSel.executeQuery();
if ( rs.next() )
{
batchQty = rs.getDouble("BATCH_QTY");
}
pstmtSel.clearParameters();
rs.close(); rs = null;
//quantity = batchQty * noOfBatch;
tranIdSuffix++;
String newTranId = "";
newTranId = tranId;
newTranId = newTranId + tranIdSuffix;
tranIdList.add(newTranId);
pstmtIns.setString(1,newTranId);
pstmtIns.setString(2,orderType);
pstmtIns.setString(3,itemCode);
pstmtIns.setString(4,siteCode);
pstmtIns.setDouble(5,quantity);
pstmtIns.setTimestamp(6,sysDate);
pstmtIns.setTimestamp(7,sysDate);
pstmtIns.setString(8,status);
pstmtIns.setTimestamp(9,sysDate);
pstmtIns.setDouble(10,yieldPerc);
pstmtIns.setString(11,unit);
pstmtIns.addBatch();
pstmtIns.clearParameters();
}
}
noOfItem = itemTreeSet.size();
if ( noOfItem > 0 )
{
itemCodeFr = (String)itemTreeSet.first();
itemCodeTo = (String)itemTreeSet.last();
}
noOfSite = siteTreeSet.size();
if ( noOfSite > 0 )
{
siteCodeFr = (String)siteTreeSet.first();
siteCodeTo = (String)siteTreeSet.last();
}
int insCnt[] = null;
insCnt = pstmtIns.executeBatch();
if ( insCnt.length > 0 )
{
System.out.println("Record inserted into mps_order successfully for tran id =["+insCnt.length +"]");
conn.commit();
}
Calendar cal = Calendar.getInstance();
Date d = new Date();
String runDate = simpleDateFormat.format(d);
cal.setTime(d);
cal.set(Calendar.DATE,1);
d = cal.getTime();
String fromDate = simpleDateFormat.format(d);
cal.setTime(d);
cal.add(Calendar.MONTH,3);
cal.set(Calendar.DATE,0);
d = cal.getTime();
String toDate = simpleDateFormat.format(d);
System.out.println("From Date :" + fromDate + " To Date :" + toDate);
StringBuffer argData = new StringBuffer();
argData = new StringBuffer("<?xml version=\"1.0\"?><Root><Header><editFlag>");
argData.append(editFlag).append("</editFlag></Header>");
argData.append("<Detail\r\n>");
argData.append("<date_from>").append(fromDate).append("</date_from>\r\n");
argData.append("<date_to>").append(toDate).append("</date_to>\r\n");
argData.append("<site_code__from>").append(siteCodeFr).append("</site_code__from>\r\n");
argData.append("<site_code__to>").append(siteCodeTo).append("</site_code__to\r\n>");
argData.append("<item_code__from>").append(itemCodeFr).append("</item_code__from>\r\n");
argData.append("<item_code__to>").append(itemCodeTo).append("</item_code__to>\r\n");
argData.append("<item_ser__from>").append("0").append("</item_ser__from>\r\n");
argData.append("<item_ser__to>").append("ZZ").append("</item_ser__to>\r\n");
argData.append("<process_cycle>").append("3").append("</process_cycle>\r\n");
argData.append("<run_date>").append(runDate).append("</run_date>\r\n"); // 01-10-2007 manoharan
argData.append("<dis_plan>").append("N").append("</dis_plan>\r\n");
argData.append("<mfg_plan>").append("N").append("</mfg_plan>\r\n");
argData.append("<mat_plan>").append("Y").append("</mat_plan>\r\n");
argData.append("<made_to_stock>").append("0").append("</made_to_stock>\r\n");
argData.append("<made_to_order>").append("0").append("</made_to_order>\r\n");
argData.append("<balance_intersite>").append("N").append("</balance_intersite>\r\n");
argData.append("<gen_ind>").append("N").append("</gen_ind>\r\n");
argData.append("<wizard>").append("3").append("</wizard>\r\n");
argData.append("</Detail>");
argData.append("</Root>");
argDom = genericUtility.parseString(argData.toString());
String mrpGetData = "";
RunMRPPrc runMRPObj = new RunMRPPrc();
mrpGetData = runMRPObj.getData(argDom, dom2, "", xtraParams);
System.out.println("mrpGetData =["+mrpGetData+"]");
String tranIdStr = "'";
if ( tranIdList != null && tranIdList.size() > 0 )
{
for (int i = 0; i < tranIdList.size(); i++)
{
tranIdStr = tranIdStr + tranIdList.get(i) + "','";
}
}
if ( tranIdStr.length() >= 2 )
{
tranIdStr = tranIdStr.substring(0, tranIdStr.length()-2);
}
else
{
tranIdStr = "";
}
if ( tranIdStr != null && tranIdStr.trim().length() > 0 )
{
deleteSql = "DELETE FROM MPS_ORDER WHERE TRAN_ID IN("+tranIdStr+")";
pstmt = conn.prepareStatement(deleteSql);
delCnt = pstmt.executeUpdate();
if ( delCnt > 0 )
{
System.out.println("Record deleted from mps_order successfully for tran id =["+tranIdStr+"]");
}
pstmt.close();
pstmt = null;
}
return mrpGetData;
}
break;
//ended by akhilesh
}
valueXmlString.append("</Root>");
}
catch(Exception e)
{
isError = true;
System.out.println("Exception :[RequirementIC][itemChanged::case 1:] :==>\n"+e.getMessage());
e.printStackTrace();
return genericUtility.createErrorString(e);
//throw new ITMException(e);
}
finally
{
try
{
if ( conn != null )
{
if ( !isError )
{
conn.commit();
}
else
{
conn.rollback();
}
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmtIns != null )
{
pstmtIns.close();
pstmtIns = null;
}
if ( pstmtSel != null )
{
pstmtSel.close();
pstmtSel = null;
}
if ( pstmtSel1 != null )
{
pstmtSel1.close();
pstmtSel1 = null;
}
conn.close();
conn = null;
}
}
catch (Exception e)
{
}
}
return valueXmlString.toString();
}
// Validation
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = "";
System.out.println("wfValData(String)>>>");
try
{
dom = parseString(xmlString);
System.out.println("RequirementIC : wfValData(String xmlString) : ==>\n" + xmlString );
System.out.println("RequirementIC : wfValData(String xmlString1) : ==>\n" + xmlString1 );
dom1 = parseString(xmlString1);
if (xmlString2.trim().length() > 0 )
{
dom2 = parseString("<Root>" + xmlString2+ "</Root>");
}
errString = wfValData(dom,dom1,dom2,objContext,editFlag,xtraParams);
}
catch(Exception e)
{
System.out.println("Exception : RequirementIC : wfValData(String xmlString) : ==>\n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
return (errString);
}
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = "";
String errString = "";
int ctr,currentFormNo=0;
int childNodeListLength;
int count = 0;
String siteCodeFr = "";
String siteCodeTo = "";
String errCode = "";
String userId = "";
String sql = "";
String itemcodeTo = "";
String siteCode = "";
String itemCode = "";
String quantity = "";
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
conn = getConnection();
userId = getValueFromXTRA_PARAMS(xtraParams,"userId");
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
}
switch(currentFormNo)
{
case 1:
{
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
int cnt;
System.out.println("childNodeName 0. : " + childNodeName);
if ( childNodeName.equals("site_code__fr") || childNodeName.equals("site_code__to") )
{
siteCodeFr = genericUtility.getColumnValue("site_code__fr",dom);
siteCodeTo = genericUtility.getColumnValue("site_code__to",dom);
if ( siteCodeFr == null || siteCodeFr.trim().length() == 0 )
{
errCode = "VMSITE11";
errString = getErrorString("site_code__fr",errCode,userId);
break;
}
if ( siteCodeTo == null || siteCodeTo.trim().length() == 0 )
{
errCode = "VMSITE12";
errString = getErrorString("site_code__fr",errCode,userId);
break;
}
}
}
}//End of Case 1
break;
case 2:
{
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
int cnt;
System.out.println("childNodeName 0. : " + childNodeName);
if ( childNodeName.equals("site_code") )
{
siteCode = genericUtility.getColumnValue("site_code",dom);
if ( siteCode == null || siteCode.trim().length() == 0 )
{
errCode = "VMSITECD";
errString = getErrorString("site_code",errCode,userId);
break;
}
sql = "SELECT COUNT(*) COUNT FROM SITE WHERE SITE_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
rs = pstmt.executeQuery();
if ( rs.next() )
{
count = rs.getInt("COUNT");
}
rs.close(); rs = null;
if ( count == 0 )
{
errCode = "VMSITE";
errString = getErrorString(childNodeName,errCode,userId);
break;
}
}
else if ( childNodeName.equals("item_code") )
{
itemCode = genericUtility.getColumnValue("item_code",dom);
if ( itemCode == null || itemCode.trim().length() == 0 )
{
errCode = "VMITEMCD";
errString = getErrorString("item_code",errCode,userId);
break;
}
sql = "SELECT COUNT(*) COUNT FROM ITEM WHERE ITEM_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if ( rs.next() )
{
count = rs.getInt("COUNT");
}
rs.close(); rs = null;
if ( count == 0 )
{
errCode = "VMITEM1";
errString = getErrorString(childNodeName,errCode,userId);
break;
}
}
else if ( childNodeName.equals("quantity") )
{
quantity = genericUtility.getColumnValue("quantity",dom);
if ( quantity == null || quantity.trim().length() == 0 || quantity.equals("0") )
{
errCode = "VMWEQTY";
errString = getErrorString("quantity",errCode,userId);
break;
}
}
}
}//End of Case 1
break;
}//End of Switch block
}
catch(Exception e)
{
System.out.println("Exception ::"+e);
e.printStackTrace();
errString = e.getMessage();
throw new ITMException(e);
}
finally
{
try
{
//System.out.println("Closing Connection.....");
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
conn.close();
conn = null;
}catch(Exception se){}
}
return errString;
}
private String checkNull(String value)
{
if ( value == null )
{
value = "";
}
return value;
}
}
package ibase.webitm.ejb.mfg;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
@Local
public interface RequirementICLocal extends ValidatorLocal
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.mfg;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
import javax.ejb.EJBObject;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
@Remote
public interface RequirementICRemote extends ValidatorRemote
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
......@@ -22,10 +22,6 @@ import java.rmi.RemoteException;
import java.util.*;
import java.sql.*;
import java.io.*;
import java.io.FileInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.File;
import java.text.SimpleDateFormat;
import java.text.NumberFormat;
import java.text.DecimalFormat;
......@@ -46,9 +42,6 @@ import org.apache.poi.hssf.usermodel.HSSFCell;
//import org.apache.poi.xssf.usermodel.*;
//import org.apache.poi.ss.util.CellRangeAddress;
//import org.apache.poi.ss.usermodel.*;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.HSSFColor;
import org.w3c.dom.*;
......@@ -144,6 +137,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal,RunMRPPrcRem
String validBomItemCode = null;
boolean invaldBomExists = false;
String context = "";//Gulzar on 4/30/2012
/*public void ejbCreate() throws RemoteException, CreateException
{
try
......@@ -222,11 +217,30 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal,RunMRPPrcRem
String resultString = "";
ResultSet rs = null;
//System.out.println("Initial Size of Item Has Map :" + itemHashMap.size());
if ( genericUtility == null )
{
genericUtility = GenericUtility.getInstance();
}
if ( dom != null )
{
System.out.println("dom =["+genericUtility.serializeDom(dom)+"]");
}
logInSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode");
genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver();
try
{
context = genericUtility.getColumnValue("wizard",dom);
System.out.println("context =["+context+"]");
if ( context != null && context.trim().length() > 0 )
{
context = "3";
}
else
{
context = "2";
}
//Added by Jiten 07/11/06
//this.fw = new FileWriter(CommonConstants.JBOSSHOME+"\\log\\RepeatBom.log");
this.fw=new FileWriter(CommonConstants.JBOSSHOME + File.separator +"log"+File.separator+"RepeatBom.log");
......@@ -1905,7 +1919,7 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
rs = pstmt.executeQuery();
if(rs.next())
{
suppSour = rs.getString(1);
suppSour = checkNull(rs.getString(1));
}
else
{
......@@ -1917,7 +1931,7 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
rs = pstmt.executeQuery();
if(rs.next())
{
suppSour = rs.getString(1);
suppSour = checkNull(rs.getString(1));
}
}
......@@ -2726,6 +2740,14 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
double stockQty = 0;
double othSupply = 0;
// end 12/04/10 manoharan MF90BHU001
//Variables declared by gulzar on 4/18/2012
double pendPOQty = 0;
double pendDOQty = 0;
double pendIndQty = 0;
double pendDRQty = 0;
//End changes by gulzar on 4/18/2012
Statement stmt = null;
ResultSet rs = null;
errString = "";
......@@ -2843,6 +2865,14 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
stockQty = rs.getDouble(5);
othSupply = rs.getDouble(6);
// end 12/04/10 manoharan
//Changes made by Gulzar on 4/18/2012
pendPOQty = rs.getDouble(7);
pendDOQty = rs.getDouble(8);
pendIndQty = rs.getDouble(9);
pendDRQty = rs.getDouble(10);
//End Changes by Gulzar on 4/18/2012
// 18-11-2006 manoharan if dueDate < dateFrom then set the dueDate as dateFrom
if (dueDate.compareTo(dateFrom) < 0 )
{
......@@ -2858,6 +2888,13 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
adpElement.setStockQty(dueDate, stockQty);
adpElement.setOthSupply(dueDate, othSupply);
// end 12/04/10 manoharan MF90BHU001
//Changes made by Gulzar on 4/18/2012
adpElement.setPendingPO(dueDate, pendPOQty);
adpElement.setPendingDO(dueDate, pendDOQty);
adpElement.setPendingIndent(dueDate, pendIndQty);
adpElement.setPendingDR(dueDate, pendDRQty);
//End Changes by Gulzar on 4/18/2012
}
else
{
......@@ -2931,6 +2968,14 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
double stockQty = 0;
double othSupply = 0;
// end 12/04/10 manoharan MF90BHU001
//Variables declared by gulzar on 4/18/2012
double pendPOQty = 0;
double pendDOQty = 0;
double pendIndQty = 0;
double pendDRQty = 0;
//End changes by gulzar on 4/18/2012
Statement stmt = null;
ResultSet rs = null;
errString = "";
......@@ -3032,6 +3077,13 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
supply = rs.getDouble(6);
stockQty = rs.getDouble(7);
othSupply = rs.getDouble(8);
//Changes made by Gulzar on 4/18/2012
pendPOQty = rs.getDouble(9);
pendDOQty = rs.getDouble(10);
pendIndQty = rs.getDouble(11);
pendDRQty = rs.getDouble(12);
//End Changes by Gulzar on 4/18/2012
if (dueDate.compareTo(dateFrom) < 0 )
{
dueDate = dateFrom;
......@@ -5782,6 +5834,14 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
double stockQty = 0;
double othSupply = 0;
// end 12/04/10 Manoharan MF90BHU001
//Variables declared by gulzar on 4/18/2012
double pendPOQty = 0;
double pendDOQty = 0;
double pendIndQty = 0;
double pendDRQty = 0;
//End changes by gulzar on 4/18/2012
int purLeadTime = 0;
int qcLeadTime = 0;
int mfgLeadTime = 0;
......@@ -5815,9 +5875,9 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
// 12/04/10 manoharan MF90BHU001 stock_qty and oth_supply added
String sqlPlanDet = "INSERT INTO PLAN_DET(SITE_CODE, ITEM_CODE, DEMAND, SUPPLY, PLAN_SUPP, "
+ "RUNNING_DEMAND, RUNNING_SUPP, RUNNING_PLAN_SUPP, IND_DEMAND, DUE_DATE, "
+ " STOCK_QTY, OTH_SUPPLY,SALE_ORDER,LINE_NO,SEQ_NO) "
+ " STOCK_QTY, OTH_SUPPLY,SALE_ORDER,LINE_NO,SEQ_NO, PENDING_PO, PENDING_DO, PENDING_INDENT, PENDING_DR) "
+ " VALUES( ? , ? , ? , ? , ? , ? ,"
+ " ? , ? , ? , ?, ?, ?, ?, ? ,?) ";
+ " ? , ? , ? , ?, ?, ?, ?, ? ,?, ?, ?, ?, ?) ";
// end 12/04/10 manoharan MF90BHU001 stock_qty and oth_supply added
pstmtPlanDet = conn.prepareStatement(sqlPlanDet);
hdrSeq = 0;
......@@ -5902,6 +5962,13 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
othSupply = timeMrp.getOthSupply();
// end 12/04/10 Manoharan MF90BHU001
//Changes made by Gulzar on 4/18/2012
pendPOQty = timeMrp.getPendingPO();
pendDOQty = timeMrp.getPendingDO();
pendIndQty = timeMrp.getPendingIndent();
pendDRQty = timeMrp.getPendingDR();
//End changes by Gulzar on 4/18/2012
pstmtPlanDet.setString(1,siteCode);
pstmtPlanDet.setString(2,itemCode);
pstmtPlanDet.setDouble(3,demand);
......@@ -5916,6 +5983,7 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
pstmtPlanDet.setDouble(11,stockQty);
pstmtPlanDet.setDouble(12,othSupply);
// end 12/04/10 Manoharan MF90BHU001
// 01/04/11 manoharan
if(saleOrder != null && saleOrder.trim().length() > 0)
{
......@@ -5937,6 +6005,13 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
pstmtPlanDet.setInt(15,seqNo);
// end 01/04/11 manoharan
//Changes made by Gulzar on 4/18/2012
pstmtPlanDet.setDouble(16,pendPOQty);
pstmtPlanDet.setDouble(17,pendDOQty);
pstmtPlanDet.setDouble(18,pendIndQty);
pstmtPlanDet.setDouble(19,pendDRQty);
//Changes made by Gulzar on 4/18/2012
pstmtPlanDet.addBatch();
}
if (seqNo > 0)
......@@ -6043,6 +6118,7 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
String errString = "";
String resultString = "";
StringBuffer retTabSepStrBuff = new StringBuffer();
StringBuffer valueXmlString = new StringBuffer();
String siteCode = "0";
String itemCode = "0";
......@@ -6079,9 +6155,20 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
double stockQty = 0;
double othSupply = 0;
// end 12/04/10 manoharan MF90BHU001
//Variables declared by gulzar on 4/18/2012
double pendPOQty = 0;
double pendDOQty = 0;
double pendIndQty = 0;
double pendDRQty = 0;
//End changes by gulzar on 4/18/2012
ADPElement adpElement = null;
try
{
valueXmlString = new StringBuffer("<?xml version = \"1.0\"?><Root>\r\n");
int count = 0;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
for(int adpeCount=0; adpeCount<adpeList.size(); adpeCount++)
{
......@@ -6127,20 +6214,129 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
othSupply = timeMrp.getOthSupply();
// end 12/04/10 manoharan MF90BHU001
//Changes made by Gulzar on 4/18/2012
pendPOQty = timeMrp.getPendingPO();
pendDOQty = timeMrp.getPendingDO();
pendIndQty = timeMrp.getPendingIndent();
pendDRQty = timeMrp.getPendingDR();
//End changes by Gulzar on 4/18/2012
//added by akhilesh on
count++;
valueXmlString.append("<Detail"+context+" domID='"+count+"' >\r\n");
if(flag)
{
valueXmlString.append("<site_code protect = '1'>").append("<![CDATA["+siteCode+"]]>").append("</site_code>\r\n");
valueXmlString.append("<item_code protect = '1'>").append("<![CDATA["+itemCode+"]]>").append("</item_code>\r\n");
valueXmlString.append("<supp_sour protect = '1'>").append("<![CDATA["+suppSour+"]]>").append("</supp_sour>\r\n");
}
else
{
valueXmlString.append("<site_code protect = '1'>").append("<![CDATA["+""+"]]>").append("</site_code>\r\n");
valueXmlString.append("<item_code protect = '1'>").append("<![CDATA["+""+"]]>").append("</item_code>\r\n");
valueXmlString.append("<supp_sour protect = '1'>").append("<![CDATA["+""+"]]>").append("</supp_sour>\r\n");
}
valueXmlString.append("<demand protect = '1'>").append("<![CDATA["+getRequiredDecimal(demand,3)+"]]>").append("</demand>\r\n");
valueXmlString.append("<supply protect = '1'>").append("<![CDATA["+getRequiredDecimal(supply,3)+"]]>").append("</supply>\r\n");
valueXmlString.append("<due_date protect = '1'>").append("<![CDATA["+dueDateStr+"]]>").append("</due_date>\r\n");
valueXmlString.append("<plan_supply protect = '1'>").append("<![CDATA["+getRequiredDecimal(planSupply,3)+"]]>").append("</plan_supply>\r\n");
valueXmlString.append("<running_demand protect = '1'>").append("<![CDATA["+getRequiredDecimal(runningDemand,3)+"]]>").append("</running_demand>\r\n");
valueXmlString.append("<running_supply protect = '1'>").append("<![CDATA["+getRequiredDecimal(runningSupply,3)+"]]>").append("</running_supply>\r\n");
valueXmlString.append("<running_plan_supply protect = '1'>").append("<![CDATA["+getRequiredDecimal(runningPlanSupply,3)+"]]>").append("</running_plan_supply>\r\n");
valueXmlString.append("<independent_demand protect = '1'>").append("<![CDATA["+getRequiredDecimal(independentDemand,3)+"]]>").append("</independent_demand>\r\n");
if(flag)
{ if (bomCode != null )
{
valueXmlString.append("<bom_code protect = '1'>").append("<![CDATA["+bomCode+"]]>").append("</bom_code>\r\n");
}
else
{
valueXmlString.append("<bom_code protect = '1'>").append("<![CDATA["+""+"]]>").append("</bom_code>\r\n");
}
valueXmlString.append("<order_opt protect = '1'>").append("<![CDATA["+orderOpt+"]]>").append("</order_opt>\r\n");
valueXmlString.append("<batch_qty_type protect = '1'>").append("<![CDATA["+batchQtyType+"]]>").append("</batch_qty_type>\r\n");
valueXmlString.append("<unit protect = '1'>").append("<![CDATA["+unit+"]]>").append("</unit>\r\n");
valueXmlString.append("<min_order_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(minOrderQty,3)+"]]>").append("</min_order_qty>\r\n");
valueXmlString.append("<integral_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(integralQty,3)+"]]>").append("</integral_qty>\r\n");
valueXmlString.append("<max_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(maxQty,3)+"]]>").append("</max_qty>\r\n");
valueXmlString.append("<min_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(minQty,3)+"]]>").append("</min_qty>\r\n");
valueXmlString.append("<reorder_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(reorderQty,3)+"]]>").append("</reorder_qty>\r\n");
valueXmlString.append("<yield_perc protect = '1'>").append("<![CDATA["+getRequiredDecimal(yieldPerc,2)+"]]>").append("</yield_perc>\r\n");
valueXmlString.append("<min_plan_perc protect = '1'>").append("<![CDATA["+getRequiredDecimal(minPlanPerc,2)+"]]>").append("</min_plan_perc>\r\n");
valueXmlString.append("<batch_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(batchQty,3)+"]]>").append("</batch_qty>\r\n");
valueXmlString.append("<purc_rate protect = '1'>").append("<![CDATA["+getRequiredDecimal(purcRate,3)+"]]>").append("</purc_rate>\r\n");
valueXmlString.append("<pur_lead_time protect = '1'>").append("<![CDATA["+getRequiredDecimal(purLeadTime,2)+"]]>").append("</pur_lead_time>\r\n");
valueXmlString.append("<qc_lead_time protect = '1'>").append("<![CDATA["+getRequiredDecimal(qcLeadTime,2)+"]]>").append("</qc_lead_time>\r\n");
valueXmlString.append("<mfg_lead_time protect = '1'>").append("<![CDATA["+getRequiredDecimal(mfgLeadTime,2)+"]]>").append("</mfg_lead_time>\r\n");
valueXmlString.append("<description protect = '1'>").append("<![CDATA["+desc+"]]>").append("</description>\r\n");
valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(stockQty,3)+"]]>").append("</stock_qty>\r\n");
valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA["+getRequiredDecimal(othSupply,3)+"]]>").append("</oth_supply>\r\n");
valueXmlString.append("<pending_po protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendPOQty,3)+"]]>").append("</pending_po>\r\n");
valueXmlString.append("<pending_do protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendDOQty,3)+"]]>").append("</pending_do>\r\n");
valueXmlString.append("<pending_indent protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendIndQty,3)+"]]>").append("</pending_indent>\r\n");
valueXmlString.append("<pending_dr protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendDRQty,3)+"]]>").append("</pending_dr>\r\n");
}
else
{
valueXmlString.append("<bom_code protect = '1'>").append("<![CDATA["+""+"]]>").append("</bom_code>\r\n");
valueXmlString.append("<order_opt protect = '1'>").append("<![CDATA["+""+"]]>").append("</order_opt>\r\n");
valueXmlString.append("<batch_qty_type protect = '1'>").append("<![CDATA["+""+"]]>").append("</batch_qty_type>\r\n");
valueXmlString.append("<unit protect = '1'>").append("<![CDATA["+""+"]]>").append("</unit>\r\n");
valueXmlString.append("<min_order_qty protect = '1'>").append("<![CDATA["+0.000+"]]>").append("</min_order_qty>\r\n");
valueXmlString.append("<integral_qty protect = '1'>").append("<![CDATA["+0.000+"]]>").append("</integral_qty>\r\n");
valueXmlString.append("<max_qty protect = '1'>").append("<![CDATA["+0.000+"]]>").append("</max_qty>\r\n");
valueXmlString.append("<min_qty protect = '1'>").append("<![CDATA["+0.000+"]]>").append("</min_qty>\r\n");
valueXmlString.append("<reorder_qty protect = '1'>").append("<![CDATA["+0.000+"]]>").append("</reorder_qty>\r\n");
valueXmlString.append("<yield_perc protect = '1'>").append("<![CDATA["+0.00+"]]>").append("</yield_perc>\r\n");
valueXmlString.append("<min_plan_perc protect = '1'>").append("<![CDATA["+0.00+"]]>").append("</min_plan_perc>\r\n");
valueXmlString.append("<batch_qty protect = '1'>").append("<![CDATA["+0.000+"]]>").append("</batch_qty>\r\n");
valueXmlString.append("<purc_rate protect = '1'>").append("<![CDATA["+0.000+"]]>").append("</purc_rate>\r\n");
valueXmlString.append("<pur_lead_time protect = '1'>").append("<![CDATA["+0.00+"]]>").append("</pur_lead_time>\r\n");
valueXmlString.append("<qc_lead_time protect = '1'>").append("<![CDATA["+0.00+"]]>").append("</qc_lead_time>\r\n");
valueXmlString.append("<mfg_lead_time protect = '1'>").append("<![CDATA["+0.00+"]]>").append("</mfg_lead_time>\r\n");
valueXmlString.append("<description protect = '1'>").append("<![CDATA["+""+"]]>").append("</description>\r\n");
valueXmlString.append("<stock_qty protect = '1'>").append("<![CDATA["+getRequiredDecimal(stockQty,3)+"]]>").append("</stock_qty>\r\n");
valueXmlString.append("<oth_supply protect = '1'>").append("<![CDATA["+getRequiredDecimal(othSupply,3)+"]]>").append("</oth_supply>\r\n");
valueXmlString.append("<pending_po protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendPOQty,3)+"]]>").append("</pending_po>\r\n");
valueXmlString.append("<pending_do protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendDOQty,3)+"]]>").append("</pending_do>\r\n");
valueXmlString.append("<pending_indent protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendIndQty,3)+"]]>").append("</pending_indent>\r\n");
valueXmlString.append("<pending_dr protect = '1'>").append("<![CDATA["+getRequiredDecimal(pendDRQty,3)+"]]>").append("</pending_dr>\r\n");
}
valueXmlString.append("</Detail"+context+">");
//ended by akhilesh
if(flag)
{
retTabSepStrBuff.append(siteCode).append("\t");
retTabSepStrBuff.append(itemCode).append("\t");
retTabSepStrBuff.append(desc).append("\t");//Gulzar on 4/30/2012
retTabSepStrBuff.append(suppSour).append("\t");
}
else
{
retTabSepStrBuff.append(" ").append("\t");
retTabSepStrBuff.append(" ").append("\t");
retTabSepStrBuff.append(" ").append("\t");//Gulzar on 4/30/2012 for item description
retTabSepStrBuff.append(" ").append("\t");
}
retTabSepStrBuff.append(decFormat(demand)).append("\t");
retTabSepStrBuff.append(decFormat(supply)).append("\t");
// 12/04/10 manoharan MF90BHU001
retTabSepStrBuff.append(decFormat(stockQty)).append("\t");
retTabSepStrBuff.append(decFormat(othSupply)).append("\t");
// end end 12/04/10 manoharan MF90BHU001
//Changes made by Gulzar on 4/18/2012
retTabSepStrBuff.append(decFormat(pendPOQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendDOQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendIndQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendDRQty)).append("\t");
//End changes by Gulzar on 4/18/2012
retTabSepStrBuff.append(dueDateStr).append("\t");
retTabSepStrBuff.append(decFormat(planSupply)).append("\t");
retTabSepStrBuff.append(decFormat(runningDemand)).append("\t");
......@@ -6171,11 +6367,21 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
retTabSepStrBuff.append(purLeadTime).append("\t");
retTabSepStrBuff.append(qcLeadTime).append("\t");
retTabSepStrBuff.append(mfgLeadTime).append("\t");
retTabSepStrBuff.append(desc).append("\t");
//retTabSepStrBuff.append(desc).append("\t");//Gulzar on 4/30/2012
/*
// 12/04/10 manoharan MF90BHU001
retTabSepStrBuff.append(decFormat(stockQty)).append("\t");
retTabSepStrBuff.append(decFormat(othSupply)).append("\n");
// end end 12/04/10 manoharan MF90BHU001
//Changes made by Gulzar on 4/18/2012
retTabSepStrBuff.append(decFormat(pendPOQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendDOQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendIndQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendDRQty)).append("\t");
//End changes by Gulzar on 4/18/2012
*/
}
else
{
......@@ -6195,18 +6401,37 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append(desc).append("\t");
//retTabSepStrBuff.append(desc).append("\t");//Gulzar on 4/30/2012
/*
// 12/04/10 manoharan MF90BHU001
retTabSepStrBuff.append(decFormat(stockQty)).append("\t");
retTabSepStrBuff.append(decFormat(othSupply)).append("\n");
// end end 12/04/10 manoharan MF90BHU001
//Changes made by Gulzar on 4/18/2012
retTabSepStrBuff.append(decFormat(pendPOQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendDOQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendIndQty)).append("\t");
retTabSepStrBuff.append(decFormat(pendDRQty)).append("\t");
//End changes by Gulzar on 4/18/2012
*/
}
flag = false;
}
}
//System.out.println("End of collected datas......");
valueXmlString.append("</Root>");
if ( context!= null && context.trim().length() > 0 && context.equals("3") )
{
resultString = valueXmlString.toString();
}
else
{
resultString = retTabSepStrBuff.toString();
}
//System.out.println("End of collected datas......");
//resultString = retTabSepStrBuff.toString();
}
catch (SQLException se)
{
System.out.println("SQLException :RunMRPPrcEJB :setValuesInBrow():" + se.getMessage() + ":");
......@@ -6226,6 +6451,7 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
conn.close();
conn = null;
retTabSepStrBuff = null;
valueXmlString = null;
}
catch(Exception e)
{}
......@@ -6243,6 +6469,333 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
return reqVal;
}
//*
private void Write2XSL() throws ITMException
{
String errCode = "", date;
String errString = "";
String resultString = "";
StringBuffer retTabSepStrBuff = new StringBuffer();
String siteCode = "0";
String itemCode = "0";
String bomCode = "0";
String suppSour = "0";
String orderOpt = "0";
String dueDateStr = "0";
String batchQtyType = "0";
String unit = "0";
String desc = null;
double demand = 0;
double supply = 0;
double planDemand = 0;
double planSupply = 0;
double runningDemand = 0;
double runningSupply = 0;
double runningPlanSupply = 0;
double independentDemand = 0;
double minOrderQty = 0;
double integralQty = 0;
double maxQty = 0;
double minQty = 0;
double reorderQty = 0;
double yieldPerc = 100;
double minPlanPerc = 0;
double batchQty = 0;
double purcRate = 0;
int purLeadTime = 0;
int qcLeadTime = 0;
int mfgLeadTime = 0;
boolean flag = true;
// 12/04/10 Manoharan MF90BHU001
double stockQty = 0;
double othSupply = 0;
// end 12/04/10 manoharan MF90BHU001
//Variables declared by gulzar on 4/18/2012
double pendPOQty = 0;
double pendDOQty = 0;
double pendIndQty = 0;
double pendDRQty = 0;
//End changes by gulzar on 4/18/2012
ADPElement adpElement = null;
java.sql.Timestamp dueDate;
HSSFCell cell = null;
HSSFRow row = null;
HSSFCellStyle cellStyle = null;
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
final String[] titles = {
"Site Code", "Item Code", "Item Description", "Supply Source", "Demand", "Supply",
"Stock Qty", "Other Supply", "Pending PO", "Pending DO", "Pending Indent", "Pending DR", "Due Date",
"Plan Supply", "Running Demand", "Running Supply", "Running Plan Supply", "Independent Demand",
"Bom Code","Order Opt","Batch Qty Type","Unit","Min Order Qty","Integral Qty",
"Max Qty","Min Qty","Reorder Qty","Yield Perc", "Min Plan %","Batch Qty",
"Purc Rate", "Pur Lead Time","QC Lead Time", "MFG Lead Time"
};
// 30
try
{
HSSFWorkbook wb;
wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("MRPRun");
HSSFRow titleRow = sheet.createRow(0);
titleRow.setHeightInPoints(45);
cellStyle = wb.createCellStyle();
HSSFCellStyle style = wb.createCellStyle();
style.setBorderTop((short) 6); // double lines border
style.setBorderBottom((short) 1); // single line border
style.setFillBackgroundColor(HSSFColor.GREY_25_PERCENT.index);
HSSFFont font = wb.createFont();
font.setFontName(HSSFFont.FONT_ARIAL);
font.setFontHeightInPoints((short) 20);
font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
font.setColor(HSSFColor.BLUE.index);
style.setFont(font);
HSSFCell titleCell = titleRow.createCell((short) 0);
titleCell.setCellValue(new HSSFRichTextString("MRP - Material Requirements"));
titleCell.setCellStyle(style);
sheet.autoSizeColumn((short) 1);
//titleCell.setCellStyle(styles.get("title"));
HSSFRow headerRow = sheet.createRow(1);
headerRow.setHeightInPoints(40);
HSSFCell headerCell;
for (int cellCtr = 0; cellCtr < titles.length; cellCtr++)
{
headerCell = headerRow.createCell((short)cellCtr);
headerCell.setCellValue(titles[cellCtr]);
}
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
int insertRow = 2;
for(int adpeCount=0; adpeCount<adpeList.size(); adpeCount++)
{
flag = true;
adpElement = (ADPElement)adpeList.get(adpeCount);
siteCode = adpElement.getSiteCode();
itemCode = adpElement.getItemCode();
maxQty = adpElement.getMaxQty();
minQty = adpElement.getMinQty();
suppSour = adpElement.getSuppSour();
orderOpt = adpElement.getOrderOpt();
bomCode = adpElement.getBomCode();
unit = adpElement.getUnit();
batchQtyType = adpElement.getBatchQtyType();
minOrderQty = adpElement.getMinOrderQty();
integralQty = adpElement.getIntegralQty();
reorderQty = adpElement.getReoQty();
yieldPerc = adpElement.getYieldPerc();
minPlanPerc = adpElement.getMinPlanPerc();
batchQty = adpElement.getBatchQty();
purcRate = adpElement.getPurcRate();
qcLeadTime = adpElement.getQcLeadTime();
purLeadTime = adpElement.getPurLeadTime();
mfgLeadTime = adpElement.getMfgLeadTime();
desc = adpElement.getItemDescr();
ArrayList timeMRParr = adpElement.getTimeMrpList();
for (int timeCtr = 0; timeCtr < timeMRParr.size() ; timeCtr++)
{
TimeMRP timeMrp = (TimeMRP)timeMRParr.get(timeCtr);
dueDate = timeMrp.getDueDate();
demand = timeMrp.getDemand();
supply = timeMrp.getSupply();
planSupply = timeMrp.getPlanSupply();
runningDemand = timeMrp.getRunningDemand();
runningSupply = timeMrp.getRunningSupply();
runningPlanSupply = timeMrp.getRunningPlanSupply();
independentDemand = timeMrp.getIndependentDemand();
dueDateStr = simpleDateFormat.format(timeMrp.getDueDate());
// 12/04/10 manoharan MF90BHU001
stockQty = timeMrp.getStockQty();
othSupply = timeMrp.getOthSupply();
// end 12/04/10 manoharan MF90BHU001
//Changes made by Gulzar on 4/18/2012
pendPOQty = timeMrp.getPendingPO();
pendDOQty = timeMrp.getPendingDO();
pendIndQty = timeMrp.getPendingIndent();
pendDRQty = timeMrp.getPendingDR();
//End changes by Gulzar on 4/18/2012
insertRow++;
row = sheet.createRow(insertRow);
for (int j = 0; j < titles.length; j++)
{
cell = row.createCell((short)j);
}
if(flag)
{
row.getCell(0).setCellValue(siteCode);
row.getCell(1).setCellValue(itemCode);
row.getCell(2).setCellValue(desc);
row.getCell(3).setCellValue(suppSour);
}
row.getCell(4).setCellValue(demand);
row.getCell(5).setCellValue(supply);
row.getCell(6).setCellValue(stockQty);
row.getCell(7).setCellValue(othSupply);
//Changed by Gulzar on 4/27/2012
row.getCell(8).setCellValue(pendPOQty);
row.getCell(9).setCellValue(pendDOQty);
row.getCell(10).setCellValue(pendIndQty);
row.getCell(11).setCellValue(pendDRQty);
//End Changes by Gulzar on 4/27/2012
cell = row.getCell(12);
cell.setCellValue(HSSFDateUtil.getExcelDate(dueDate));
cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy"));
cell.setCellStyle(cellStyle);
row.getCell(13).setCellValue(planSupply);
row.getCell(14).setCellValue(runningDemand);
row.getCell(15).setCellValue(runningSupply);
row.getCell(16).setCellValue(runningPlanSupply);
row.getCell(17).setCellValue(independentDemand);
if(flag)
{
row.getCell(18).setCellValue(bomCode);
row.getCell(19).setCellValue(orderOpt);
row.getCell(20).setCellValue(batchQtyType);
row.getCell(21).setCellValue(unit);
row.getCell(22).setCellValue(minOrderQty);
row.getCell(23).setCellValue(integralQty);
row.getCell(24).setCellValue(maxQty);
row.getCell(25).setCellValue(minQty);
row.getCell(26).setCellValue(reorderQty);
row.getCell(27).setCellValue(yieldPerc);
row.getCell(28).setCellValue(minPlanPerc);
row.getCell(29).setCellValue(batchQty);
row.getCell(30).setCellValue(purcRate);
row.getCell(31).setCellValue(purLeadTime);
row.getCell(32).setCellValue(qcLeadTime);
row.getCell(33).setCellValue(mfgLeadTime);
}
//flag = false; // 25/02/11 manoharan commented as BTPL want the same to be repeated in the excel file
}
}
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document dom = db.parse( "/IBASEHOME/ibase.xml" );
String mrpOutputLocation = "";
try
{
mrpOutputLocation = dom.getElementsByTagName( "mrp_output_location" ).item(0).getFirstChild().getNodeValue();
}
catch (Exception e)
{
System.out.println("Exception :RunMRPPrcEJB :setValuesInBrow():" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
Calendar cal = Calendar.getInstance();
String curTime = ( new java.text.DecimalFormat( "0000" ) ).format( cal.get(Calendar.YEAR) )
+ ( new java.text.DecimalFormat( "00" ) ).format( cal.get(Calendar.MONTH) + 1 )
+ ( new java.text.DecimalFormat( "00" ) ).format( cal.get(Calendar.DAY_OF_MONTH) )
+ ( new java.text.DecimalFormat( "00" ) ).format( cal.get(Calendar.HOUR_OF_DAY) )
+ ( new java.text.DecimalFormat( "00" ) ).format( cal.get(Calendar.MINUTE) ) ;
String fileName = mrpOutputLocation + File.separator+"MRPRun_" + curTime + ".xls";
dom = null;
db = null;
dbf = null;
File outputDir = new File( fileName );
File subDirFile = null;
if( !outputDir.exists() )
{
String subDirName = "";
if (mrpOutputLocation.indexOf("\\") > 0)
{
String subDirs[] = mrpOutputLocation.split( "\\\\" );
subDirName = subDirs[0];
System.out.println("windows stype path");
for( int idx = 1; idx < subDirs.length; idx++ )
{
subDirName = subDirName + File.separator + subDirs[ idx ];
System.out.println("subDirs[ idx ] [" + subDirs[ idx ] + "]");
}
}
else
{
String subDirs[] = mrpOutputLocation.split( "/" );
subDirName = subDirs[0];
System.out.println("Unix style path");
for( int idx = 1; idx < subDirs.length; idx++ )
{
subDirName = subDirName + File.separator + subDirs[ idx ];
System.out.println("subDirs[ idx ] [" + subDirs[ idx ] + "]");
}
}
subDirFile = new File( subDirName );
System.out.println("File path [" + subDirName + "]");
if( !subDirFile.exists() )
{
System.out.println("creating folders [" + subDirName + "]");
subDirFile.mkdirs();
}
}
// Write the output to a file
//if(wb instanceof XSSFWorkbook) file += "x";
FileOutputStream out = new FileOutputStream(fileName);
wb.write(out);
out.close();
//System.out.println("End of collected datas......");
resultString = retTabSepStrBuff.toString();
}
catch (SQLException se)
{
System.out.println("SQLException :RunMRPPrcEJB :setValuesInBrow():" + se.getMessage() + ":");
se.printStackTrace();
throw new ITMException(se);
}
catch (Exception e)
{
System.out.println("Exception :RunMRPPrcEJB :setValuesInBrow():" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
conn.close();
conn = null;
retTabSepStrBuff = null;
}
catch(Exception e)
{}
}
}
//*/
/*
private void Write2XSL() throws ITMException
{
String errCode = "", date;
......@@ -6544,6 +7097,15 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
}
}
*/
private String checkNull(String value)
{
if ( value == null )
{
value = "";
}
return value;
}
/**
* Create a library of cell styles
......
......@@ -20,6 +20,13 @@ public class TimeMRP
private double othSupply = 0;
// end 12/04/10 manoharan MF90BHU001
//Variables declared by gulzar on 4/18/2012
private double pendPOQty = 0;
private double pendDOQty = 0;
private double pendIndQty = 0;
private double pendDRQty = 0;
//End changes by gulzar on 4/18/2012
//added by sabyasachi 17.03.2011
//private String saleOrder = "";
//private String lineNo = "";
......@@ -127,6 +134,43 @@ public class TimeMRP
{
return this.independentDemand;
}
//Changes made by gulzar on 4/18/2012
// 12/04/10 manoharan MF90BHU001
public void setPendingPO(double pendPOQty)
{
this.pendPOQty += pendPOQty;
}
public double getPendingPO()
{
return this.pendPOQty;
}
public void setPendingDO(double pendDOQty)
{
this.pendDOQty += pendDOQty;
}
public double getPendingDO()
{
return this.pendDOQty;
}
public void setPendingIndent(double pendIndQty)
{
this.pendIndQty += pendIndQty;
}
public double getPendingIndent()
{
return this.pendIndQty;
}
public void setPendingDR(double pendDRQty)
{
this.pendDRQty += pendDRQty;
}
public double getPendingDR()
{
return this.pendDRQty;
}
//End changes by gulzar on 4/18/2012
//added by sabyasachi 17.03.2011
//public void setSaleOrder(String saleOrder)
//{
......
alter table bomdet add line_no number(3) not null;
alter table bomdet drop constraint BOMDET_PK;
alter table bomdet add constraint BOMDET_PK primary key(bom_code,line_no);
CREATE UNIQUE INDEX BOMDET_UI ON BOMDET (BOM_CODE , ITEM_CODE , ITEM_REF ) ;
select item_code, due_date, round(sum(demand),0) demand, sum(supply) supply from (
SELECT item.item_code__plan as item_code,independent_demand.due_date as due_date, sum(case when independent_demand.quantity__std_uom is null then 0 else independent_demand.quantity__std_uom end)
as demand, 0 as supply
FROM independent_demand, item
WHERE ( independent_demand.item_code = item.item_code ) and
( independent_demand.site_code in ('@sitecode@') ) AND
( independent_demand.item_code = '@itemcode@') AND
( independent_demand.due_date >= timestamp('@fromdate@-00.00.00')) AND
( independent_demand.due_date <= timestamp('@todate@-00.00.00')) and
( case when independent_demand.status is null then 'C' else independent_demand.status end <> 'P')
Group By item.item_code__plan,independent_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code, sales_demand.due_date as due_date,
sum(case when sales_demand.quantity__std_uom is null then 0 else sales_demand.quantity__std_uom end - case
when sales_demand.consumed_qty is null then 0 else sales_demand.consumed_qty end ) as demand, 0 as supply
FROM sales_demand, item
WHERE ( sales_demand.item_code = item.item_code ) and
( sales_demand.site_code in ('@sitecode@') ) AND
( sales_demand.item_code = '@itemcode@' ) AND
( sales_demand.due_date >= timestamp('@fromdate@-00.00.00')) AND
( sales_demand.due_date <= timestamp('@todate@-00.00.00')) AND ( 0 = @madetostock@ )
Group By item.item_code__plan,sales_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code, distorder_det.due_date as due_date,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as demand, 0 as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__ship in ('@sitecode@') ) AND
( distorder_det.item_code = '@itemcode@') AND
( distorder_det.due_date <= timestamp('@todate@-00.00.00')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code, sorditem.due_date as due_date, sum((case when sorditem.quantity is null then 0 else sorditem.quantity end - case when sorditem.qty_alloc is null then 0
else sorditem.qty_alloc end - case when sorditem.qty_desp is null then 0
else sorditem.qty_desp end ) * case when sorditem.conv__qty_stdqty is null then 1 else sorditem.conv__qty_stdqty end ) as demand, 0 as supply
FROM sorder,sorditem, item
WHERE ( sorditem.item_code = item.item_code ) and(sorder.sale_order = sorditem.sale_order ) and
(case when sorder.confirmed is null then 'N' else sorder.confirmed end = 'Y' ) and
(case when sorditem.consume_fc is null then 'Y' else sorditem.consume_fc end = 'N' ) and (sorditem.site_code in ('@sitecode@') ) AND
(sorditem.item_code = '@itemcode@') and (sorditem.due_date <= timestamp('@todate@-00.00.00')) and
( case when sorder.status is null then 'P' else sorder.status end = 'P') and
( sorder.order_type not in (@ordtypes@) ) and ( 0 = @madetoorder@ )
Group By item.item_code__plan,sorditem.due_date
UNION ALL
SELECT item.item_code__plan as item_code, distorder_det.due_date as due_date,
0 as demand,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code )
and ( distorder.dist_order = distorder_det.dist_order )
and ( distorder.confirmed = 'Y' )
and ( distorder.site_code__dlv in ('@sitecode@') )
AND ( distorder_det.item_code = '@itemcode@')
AND ( distorder_det.due_date <= timestamp('@todate@-00.00.00'))
and ( distorder.order_type not in (@ordtypes@) )
and ( case when distorder.status is null then 'P' else distorder.status end = 'P')
AND (case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code, porddet.dlv_date as due_date,
0 as demand ,
sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0
else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0
else porddet.dlv_qty end end ) as supply
FROM porddet,porder, item
WHERE ( porddet.item_code = item.item_code )
and (porddet.purc_order = porder.purc_order )
and (porder.confirmed = 'Y')
and (porder.status not in('C','X'))
and (porddet.status not in('C','X'))
and (porddet.site_code in ('@sitecode@') )
AND ( porddet.item_code = '@itemcode@' )
and ( porder.pord_type not in (@ordtypes@) )
and ( porddet.dlv_date <= timestamp('@todate@-00.00.00'))
Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code, FN_MRP_DUEDATE(timestamp('@fromdate@-00.00.00')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',
item.item_code,
timestamp(fn_sysdate())) as supply
FROM item
WHERE item.item_code = '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,timestamp(fn_sysdate())) > 0
UNION ALL
SELECT item.item_code__plan as item_code, timestamp('@fromdate@-00.00.00') as due_date,
0 as demand,sum((case when workorder.current_batch_qty is null then 0 else workorder.current_batch_qty end * case when workorder.yield_perc is null then 100 else workorder.yield_perc end / 100 ) - case when workorder.quantity__rcvd is null then 0 else workorder.quantity__rcvd end ) as supply
FROM workorder, item
WHERE ( workorder.item_code = item.item_code )
and ( workorder.site_code in ('@sitecode@') )
AND ( workorder.item_code = '@itemcode@' )
AND ( workorder.due_date <= timestamp('@todate@-00.00.00'))
AND (case when workorder.status is null then 'P' else workorder.status end in ('R','F'))
and (case when workorder.consider_wip is null then 'O' else workorder.consider_wip end = 'O')
Group By item.item_code__plan, timestamp('@fromdate@-00.00.00')
UNION ALL
SELECT workorder_bill.item_code as item_code, timestamp('@fromdate@-00.00.00') as due_date,
sum( case when workorder_bill.QUANTITY is null then 0 else workorder_bill.QUANTITY end - case when (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0
else workorder_bill.ISS_QTY end) < 0 then case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end else case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end end ) as demand,
0 as supply
from workorder_bill, workorder, item, siteitem
where workorder_bill.work_order = workorder.work_order
and workorder_bill.item_code = item.item_code
and workorder_bill.line_type <> 'B'
and workorder_bill.item_code = siteitem.item_code
and workorder.site_code = siteitem.site_code
and case when workorder_bill.QUANTITY is null then 0
else workorder_bill.QUANTITY end - case when (case when workorder_bill.ALLOC_QTY is null then 0
else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end ) < 0
then ( case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end)
else (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end) end > 0
and workorder.work_order in ( SELECT workorder.work_order FROM workorder WHERE (workorder.site_code in ('@sitecode@') )
AND (workorder.item_code = '@itemcode@' )
AND (workorder.due_date <= timestamp('@todate@-00.00.00'))
AND (case when workorder.status is null then 'P' else workorder.status end in ('R','F'))
and (case when workorder.consider_wip is null then 'O' else workorder.consider_wip end = 'O') )
Group By workorder_bill.item_code, timestamp('@fromdate@-00.00.00')
) alias
group by item_code,due_date
having sum(demand) <> 0 or sum(supply) <> 0
\ No newline at end of file
select item_code,due_date, round((demand),0) demand, (supply) supply, (stock_qty) stock_qty, (oth_supply) oth_supply,sale_order, line_no from
(
SELECT item.item_code__plan as item_code,sorditem.due_date as due_date, sorditem.sale_order, sorditem.line_no,
((case when sorditem.quantity is null then 0 else sorditem.quantity end - case when sorditem.qty_alloc is null then 0 else sorditem.qty_alloc end - case when sorditem.qty_desp is null then 0 else sorditem.qty_desp end ) * case when sorditem.conv__qty_stdqty is null then 1 else sorditem.conv__qty_stdqty end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply
FROM sorder,sorditem, item
WHERE ( sorditem.item_code = item.item_code ) and
(sorder.sale_order = sorditem.sale_order ) and
(case when sorder.confirmed is null then 'N' else sorder.confirmed end = 'Y' ) and
(case when sorditem.consume_fc is null then 'Y' else sorditem.consume_fc end = 'N' ) and
(sorditem.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
(sorditem.due_date <= to_date('@todate@')) and
( case when sorder.status is null then 'P' else sorder.status end = 'P') and
( sorder.order_type not in (@ordtypes@) ) and
( 0 = @madetoorder@ )
)
where (demand) <> 0 or (supply) <> 0
\ No newline at end of file
select item_code,due_date, round(sum(demand),0) demand, sum(supply) supply, sum(stock_qty) stock_qty, sum(oth_supply) oth_supply, sum(pending_po) pending_po ,sum(pending_do) pending_do, sum(pending_indent) pending_indent, sum(pending_dr) pending_dr from
(
SELECT item.item_code__plan as item_code,independent_demand.due_date as due_date,
sum(case when independent_demand.quantity__std_uom is null then 0 else independent_demand.quantity__std_uom end) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM independent_demand, item
WHERE ( independent_demand.item_code = item.item_code ) and
( independent_demand.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( independent_demand.due_date >= to_date('@fromdate@')) AND
( independent_demand.due_date <= to_date('@todate@')) and
( case when independent_demand.status is null then 'C' else independent_demand.status end <> 'P')
Group By item.item_code__plan,independent_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,dist_demand.due_date as due_date,
sum(case when dist_demand.qty_required is null then 0 else dist_demand.qty_required end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM dist_demand, item
WHERE ( dist_demand.item_code = item.item_code ) and
( dist_demand.site_code__source in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( dist_demand.due_date >= to_date('@fromdate@')) AND
( dist_demand.due_date <= to_date('@todate@')) AND
( 0 = @madetostock@ )
Group By item.item_code__plan,dist_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,sales_demand.due_date as due_date,
sum(case when sales_demand.quantity__std_uom is null then 0 else sales_demand.quantity__std_uom end - case when sales_demand.consumed_qty is null then 0 else sales_demand.consumed_qty end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM sales_demand, item
WHERE ( sales_demand.item_code = item.item_code ) and
( sales_demand.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( sales_demand.due_date >= to_date('@fromdate@')) AND
( sales_demand.due_date <= to_date('@todate@')) AND
( 0 = @madetostock@ )
Group By item.item_code__plan,sales_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,invtrace.tran_date as due_date,
sum(invtrace.eff_qty) as demand,
0 as supply , 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM invtrace, item, location, invstat
WHERE ( invtrace.item_code = item.item_code ) and
( location.loc_code = invtrace.loc_code) and
( invstat.inv_stat = location.inv_stat) and
( invstat.stat_type <> 'S' ) and
( invtrace.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( invtrace.tran_date >= to_date('@fromdate@')) and
( invtrace.tran_date <= to_date('@rundate@')) and
( invtrace.ref_ser in ('D-ISS','S-DSP') )
Group By item.item_code__plan,invtrace.tran_date
UNION ALL
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po, sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as pending_do, 0 as pending_indent, 0 as pending_dr
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__ship in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
0 as demand,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as supply,
0 as stock_qty, sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as oth_supply, 0 as pending_po, sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as pending_dr, 0 as pending_indent, 0 as pending_dr
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__dlv in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,indent.req_date as due_date,
0 as demand ,
sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as supply,
0 as stock_qty, sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as oth_supply, 0 as pending_po, 0 as pending_do,
sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as pending_indent, 0 as pending_dr
FROM indent,item
WHERE ( indent.item_code = item.item_code ) and
(indent.status in ('O','A')) and
(indent.site_code in ('@sitecode@')) AND
( item.item_code__plan = '@itemcode@') AND
( indent.req_date <= to_date('@todate@'))
Group By item.item_code__plan,indent.req_date
UNION ALL
SELECT item.item_code__plan as item_code,porddet.dlv_date as due_date,
0 as demand ,
sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as supply,
0 as stock_qty, sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as oth_supply, sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM porddet,porder, item
WHERE ( porddet.item_code = item.item_code ) and
(porddet.purc_order = porder.purc_order ) and
(porder.confirmed = 'Y') and
(porder.status not in('C','X')) and
(porddet.status not in('C','X')) and
(porddet.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( porder.pord_type not in (@ordtypes@) ) and
( porddet.dlv_date <= to_date('@todate@'))
Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code,FN_MRP_DUEDATE(to_date('@fromdate@')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) as supply,
DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM item
WHERE item.item_code__plan= '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) > 0
UNION ALL
SELECT item.item_code__plan as item_code,to_date('@fromdate@') as due_date,
0 as demand,
sum((case when workorder.current_batch_qty is null then 0 else workorder.current_batch_qty end * case when workorder.yield_perc is null then 100 else workorder.yield_perc end / 100 ) - case when workorder.quantity__rcvd is null then 0 else workorder.quantity__rcvd end ) as supply,
0 as stock_qty, sum((case when workorder.current_batch_qty is null then 0 else workorder.current_batch_qty end * case when workorder.yield_perc is null then 100 else workorder.yield_perc end / 100 ) - case when workorder.quantity__rcvd is null then 0 else workorder.quantity__rcvd end ) as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM workorder, item
WHERE ( workorder.item_code = item.item_code ) and
( workorder.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( workorder.due_date <= to_date('@todate@')) AND
(case when workorder.status is null then 'P' else workorder.status end in ('R','F')) and
(case when workorder.consider_wip is null then 'O' else workorder.consider_wip end = 'O')
Group By item.item_code__plan ,to_date('@fromdate@')
UNION ALL
SELECT workorder_bill.item_code as item_code,to_date('@fromdate@') as due_date,
sum( case when workorder_bill.QUANTITY is null then 0 else workorder_bill.QUANTITY end - case when (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end) < 0 then case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end else case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
from workorder_bill, workorder, item, siteitem
where workorder_bill.work_order = workorder.work_order
and workorder_bill.item_code = item.item_code
and workorder_bill.line_type <> 'B'
and workorder_bill.item_code = siteitem.item_code
and workorder.site_code = siteitem.site_code
and case when workorder_bill.QUANTITY is null then 0 else workorder_bill.QUANTITY end - case when (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end ) < 0 then ( case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end) else (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end) end > 0
and workorder.work_order in (
SELECT workorder.work_order
FROM workorder, item item1
WHERE item1.item_code = workorder.item_code and
(workorder.site_code in ('@sitecode@') ) AND
( item1.item_code__plan = '@itemcode@' ) AND
(workorder.due_date <= to_date('@todate@')) AND
(case when workorder.status is null then 'P' else workorder.status end in ('R','F')) and
(case when workorder.consider_wip is null then 'O' else workorder.consider_wip end = 'O')
)
Group By workorder_bill.item_code,to_date('@fromdate@')
)
group by item_code,due_date
having sum(demand) <> 0 or sum(supply) <> 0
\ No newline at end of file
select item_code,due_date, round(sum(demand),0) demand, sum(supply) supply, sum(stock_qty) stock_qty, sum(oth_supply) oth_supply from
(
SELECT item.item_code__plan as item_code,independent_demand.due_date as due_date,
sum(case when independent_demand.quantity__std_uom is null then 0 else independent_demand.quantity__std_uom end) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply
FROM independent_demand, item
WHERE ( independent_demand.item_code = item.item_code ) and
( independent_demand.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( independent_demand.due_date >= to_date('@fromdate@')) AND
( independent_demand.due_date <= to_date('@todate@')) and
( case when independent_demand.status is null then 'C' else independent_demand.status end <> 'P')
Group By item.item_code__plan,independent_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,dist_demand.due_date as due_date,
sum(case when dist_demand.qty_required is null then 0 else dist_demand.qty_required end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply
FROM dist_demand, item
WHERE ( dist_demand.item_code = item.item_code ) and
( dist_demand.site_code__source in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( dist_demand.due_date >= to_date('@fromdate@')) AND
( dist_demand.due_date <= to_date('@todate@')) AND
( 0 = @madetostock@ )
Group By item.item_code__plan,dist_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,sales_demand.due_date as due_date,
sum(case when sales_demand.quantity__std_uom is null then 0 else sales_demand.quantity__std_uom end - case when sales_demand.consumed_qty is null then 0 else sales_demand.consumed_qty end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply
FROM sales_demand, item
WHERE ( sales_demand.item_code = item.item_code ) and
( sales_demand.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( sales_demand.due_date >= to_date('@fromdate@')) AND
( sales_demand.due_date <= to_date('@todate@')) AND
( 0 = @madetostock@ )
Group By item.item_code__plan,sales_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,invtrace.tran_date as due_date,
sum(invtrace.eff_qty) as demand,
0 as supply , 0 as stock_qty, 0 as oth_supply
FROM invtrace, item, location, invstat
WHERE ( invtrace.item_code = item.item_code ) and
( location.loc_code = invtrace.loc_code) and
( invstat.inv_stat = location.inv_stat) and
( invstat.stat_type <> 'S' ) and
( invtrace.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( invtrace.tran_date >= to_date('@fromdate@')) and
( invtrace.tran_date <= to_date('@rundate@')) and
( invtrace.ref_ser in ('D-ISS','S-DSP') )
Group By item.item_code__plan,invtrace.tran_date
UNION ALL
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__ship in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,sorditem.due_date as due_date,
sum((case when sorditem.quantity is null then 0 else sorditem.quantity end - case when sorditem.qty_alloc is null then 0 else sorditem.qty_alloc end - case when sorditem.qty_desp is null then 0 else sorditem.qty_desp end ) * case when sorditem.conv__qty_stdqty is null then 1 else sorditem.conv__qty_stdqty end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply
FROM sorder,sorditem, item
WHERE ( sorditem.item_code = item.item_code ) and
(sorder.sale_order = sorditem.sale_order ) and
(case when sorder.confirmed is null then 'N' else sorder.confirmed end = 'Y' ) and
(case when sorditem.consume_fc is null then 'Y' else sorditem.consume_fc end = 'N' ) and
(sorditem.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
(sorditem.due_date <= to_date('@todate@')) and
( case when sorder.status is null then 'P' else sorder.status end = 'P') and
( sorder.order_type not in (@ordtypes@) ) and
( 0 = @madetoorder@ )
Group By item.item_code__plan,sorditem.due_date
UNION ALL
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
0 as demand,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as supply,
0 as stock_qty, sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as oth_supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__dlv in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,indent.req_date as due_date,
0 as demand ,
sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as supply,
0 as stock_qty, sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as oth_supply
FROM indent,item
WHERE ( indent.item_code = item.item_code ) and
(indent.status in ('O','A')) and
(indent.site_code in ('@sitecode@')) AND
( item.item_code__plan = '@itemcode@') AND
( indent.req_date <= to_date('@todate@'))
Group By item.item_code__plan,indent.req_date
UNION ALL
SELECT item.item_code__plan as item_code,porddet.dlv_date as due_date,
0 as demand ,
sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as supply,
0 as stock_qty, sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as oth_supply
FROM porddet,porder, item
WHERE ( porddet.item_code = item.item_code ) and
(porddet.purc_order = porder.purc_order ) and
(porder.confirmed = 'Y') and
(porder.status not in('C','X')) and
(porddet.status not in('C','X')) and
(porddet.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( porder.pord_type not in (@ordtypes@) ) and
( porddet.dlv_date <= to_date('@todate@'))
Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code,FN_MRP_DUEDATE(to_date('@fromdate@')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) as supply,
DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) as stock_qty, 0 as oth_supply
FROM item
WHERE item.item_code__plan= '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) > 0
UNION ALL
SELECT item.item_code__plan as item_code,to_date('@fromdate@') as due_date,
0 as demand,
sum((case when workorder.current_batch_qty is null then 0 else workorder.current_batch_qty end * case when workorder.yield_perc is null then 100 else workorder.yield_perc end / 100 ) - case when workorder.quantity__rcvd is null then 0 else workorder.quantity__rcvd end ) as supply,
0 as stock_qty, sum((case when workorder.current_batch_qty is null then 0 else workorder.current_batch_qty end * case when workorder.yield_perc is null then 100 else workorder.yield_perc end / 100 ) - case when workorder.quantity__rcvd is null then 0 else workorder.quantity__rcvd end ) as oth_supply
FROM workorder, item
WHERE ( workorder.item_code = item.item_code ) and
( workorder.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( workorder.due_date <= to_date('@todate@')) AND
(case when workorder.status is null then 'P' else workorder.status end in ('R','F')) and
(case when workorder.consider_wip is null then 'O' else workorder.consider_wip end = 'O')
Group By item.item_code__plan ,to_date('@fromdate@')
UNION ALL
SELECT workorder_bill.item_code as item_code,to_date('@fromdate@') as due_date,
sum( case when workorder_bill.QUANTITY is null then 0 else workorder_bill.QUANTITY end - case when (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end) < 0 then case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end else case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply
from workorder_bill, workorder, item, siteitem
where workorder_bill.work_order = workorder.work_order
and workorder_bill.item_code = item.item_code
and workorder_bill.line_type <> 'B'
and workorder_bill.item_code = siteitem.item_code
and workorder.site_code = siteitem.site_code
and case when workorder_bill.QUANTITY is null then 0 else workorder_bill.QUANTITY end - case when (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end ) < 0 then ( case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end) else (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end) end > 0
and workorder.work_order in (
SELECT workorder.work_order
FROM workorder, item item1
WHERE item1.item_code = workorder.item_code and
(workorder.site_code in ('@sitecode@') ) AND
( item1.item_code__plan = '@itemcode@' ) AND
(workorder.due_date <= to_date('@todate@')) AND
(case when workorder.status is null then 'P' else workorder.status end in ('R','F')) and
(case when workorder.consider_wip is null then 'O' else workorder.consider_wip end = 'O')
)
Group By workorder_bill.item_code,to_date('@fromdate@')
)
group by item_code,due_date
having sum(demand) <> 0 or sum(supply) <> 0
\ No newline at end of file
select item_code, due_date, round(sum(demand),0) demand, sum(supply) supply from (
SELECT item.item_code__plan as item_code,independent_demand.due_date as due_date, sum(case when independent_demand.quantity__std_uom is null then 0 else independent_demand.quantity__std_uom end)
as demand, 0 as supply
FROM independent_demand, item
WHERE ( independent_demand.item_code = item.item_code ) and
( independent_demand.site_code in ('@sitecode@') ) AND
( independent_demand.item_code = '@itemcode@') AND
( independent_demand.due_date >= timestamp('@fromdate@-00.00.00')) AND
( independent_demand.due_date <= timestamp('@todate@-00.00.00')) and
( case when independent_demand.status is null then 'C' else independent_demand.status end <> 'P')
Group By item.item_code__plan,independent_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code, sales_demand.due_date as due_date,
sum(case when sales_demand.quantity__std_uom is null then 0 else sales_demand.quantity__std_uom end - case
when sales_demand.consumed_qty is null then 0 else sales_demand.consumed_qty end ) as demand, 0 as supply
FROM sales_demand, item
WHERE ( sales_demand.item_code = item.item_code ) and
( sales_demand.site_code in ('@sitecode@') ) AND
( sales_demand.item_code = '@itemcode@' ) AND
( sales_demand.due_date >= timestamp('@fromdate@-00.00.00')) AND
( sales_demand.due_date <= timestamp('@todate@-00.00.00')) AND ( 0 = @madetostock@ )
Group By item.item_code__plan,sales_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code, distorder_det.due_date as due_date,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as demand, 0 as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__ship in ('@sitecode@') ) AND
( distorder_det.item_code = '@itemcode@') AND
( distorder_det.due_date <= timestamp('@todate@-00.00.00')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code, distorder_det.due_date as due_date,
0 as demand,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code )
and ( distorder.dist_order = distorder_det.dist_order )
and ( distorder.confirmed = 'Y' )
and ( distorder.site_code__dlv in ('@sitecode@') )
AND ( distorder_det.item_code = '@itemcode@')
AND ( distorder_det.due_date <= timestamp('@todate@-00.00.00'))
and ( distorder.order_type not in (@ordtypes@) )
and ( case when distorder.status is null then 'P' else distorder.status end = 'P')
AND (case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code, porddet.dlv_date as due_date,
0 as demand ,
sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0
else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0
else porddet.dlv_qty end end ) as supply
FROM porddet,porder, item
WHERE ( porddet.item_code = item.item_code )
and (porddet.purc_order = porder.purc_order )
and (porder.confirmed = 'Y')
and (porder.status not in('C','X'))
and (porddet.status not in('C','X'))
and (porddet.site_code in ('@sitecode@') )
AND ( porddet.item_code = '@itemcode@' )
and ( porder.pord_type not in (@ordtypes@) )
and ( porddet.dlv_date <= timestamp('@todate@-00.00.00'))
Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code, FN_MRP_DUEDATE(timestamp('@fromdate@-00.00.00')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',
item.item_code,
timestamp(fn_sysdate())) as supply
FROM item
WHERE item.item_code = '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,timestamp(fn_sysdate())) > 0
) alias
group by item_code,due_date
having sum(demand) <> 0 or sum(supply) <> 0
\ No newline at end of file
select item_code,due_date, round(sum(demand),0) demand, sum(supply) supply from
(
SELECT item.item_code__plan as item_code,independent_demand.due_date as due_date,
sum(case when independent_demand.quantity__std_uom is null then 0 else independent_demand.quantity__std_uom end) as demand,
0 as supply
FROM independent_demand, item
WHERE ( independent_demand.item_code = item.item_code ) and
( independent_demand.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( independent_demand.due_date >= to_date('@fromdate@')) AND
( independent_demand.due_date <= to_date('@todate@')) and
( case when independent_demand.status is null then 'C' else independent_demand.status end <> 'P')
Group By item.item_code__plan,independent_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,sales_demand.due_date as due_date,
sum(case when sales_demand.quantity__std_uom is null then 0 else sales_demand.quantity__std_uom end - case when sales_demand.consumed_qty is null then 0 else sales_demand.consumed_qty end ) as demand,
0 as supply
FROM sales_demand, item
WHERE ( sales_demand.item_code = item.item_code ) and
( sales_demand.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( sales_demand.due_date >= to_date('@fromdate@')) AND
( sales_demand.due_date <= to_date('@todate@')) AND
( 0 = @madetostock@ )
Group By item.item_code__plan,sales_demand.due_date
UNION ALL
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as demand,
0 as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__ship in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
0 as demand,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__dlv in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,porddet.dlv_date as due_date,
0 as demand ,
sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as supply
FROM porddet,porder, item
WHERE ( porddet.item_code = item.item_code ) and
(porddet.purc_order = porder.purc_order ) and
(porder.confirmed = 'Y') and
(porder.status not in('C','X')) and
(porddet.status not in('C','X')) and
(porddet.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( porder.pord_type not in (@ordtypes@) ) and
( porddet.dlv_date <= to_date('@todate@'))
Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code,FN_MRP_DUEDATE(to_date('@fromdate@')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) as supply
FROM item
WHERE item.item_code__plan= '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) > 0
)
group by item_code,due_date
having sum(demand) <> 0 or sum(supply) <> 0
\ No newline at end of file
select item_code, due_date, round(sum(demand),0) demand, sum(supply) supply from (
SELECT item.item_code__plan as item_code, distorder_det.due_date as due_date,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as demand, 0 as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__ship in ('@sitecode@') ) AND
( distorder_det.item_code = '@itemcode@') AND
( distorder_det.due_date <= timestamp('@todate@-00.00.00')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code, distorder_det.due_date as due_date,
0 as demand,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as supply
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code )
and ( distorder.dist_order = distorder_det.dist_order )
and ( distorder.confirmed = 'Y' )
and ( distorder.site_code__dlv in ('@sitecode@') )
AND ( distorder_det.item_code = '@itemcode@')
AND ( distorder_det.due_date <= timestamp('@todate@-00.00.00'))
and ( distorder.order_type not in (@ordtypes@) )
and ( case when distorder.status is null then 'P' else distorder.status end = 'P')
AND (case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code, porddet.dlv_date as due_date,
0 as demand ,
sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0
else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0
else porddet.dlv_qty end end ) as supply
FROM porddet,porder, item
WHERE ( porddet.item_code = item.item_code )
and (porddet.purc_order = porder.purc_order )
and (porder.confirmed = 'Y')
and (porder.status not in('C','X'))
and (porddet.status not in('C','X'))
and (porddet.site_code in ('@sitecode@') )
AND ( porddet.item_code = '@itemcode@' )
and ( porder.pord_type not in (@ordtypes@) )
and ( porddet.dlv_date <= timestamp('@todate@-00.00.00'))
Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code, FN_MRP_DUEDATE(timestamp('@fromdate@-00.00.00')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',
item.item_code,
timestamp(fn_sysdate())) as supply
FROM item
WHERE item.item_code = '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,timestamp(fn_sysdate())) > 0
UNION ALL
SELECT item.item_code__plan as item_code,indent.req_date as due_date,
0 as demand ,
sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as supply
FROM indent,item
WHERE ( indent.item_code = item.item_code ) and
(indent.status in ('O','A')) and
(indent.site_code in ('@sitecode@')) AND
( item.item_code__plan = '@itemcode@') AND
( indent.req_date <= timestamp('@todate@-00.00.00'))
Group By item.item_code__plan,indent.req_date
UNION ALL
SELECT item.item_code__plan as item_code, mps_order.due_date as due_date,
sum(mps_order.quantity) as demand,
0 as supply
FROM mps_order, item
WHERE ( mps_order.item_code = item.item_code ) and
(mps_order.site_code in ('@sitecode@') ) AND
(item.item_code__plan = '@itemcode@' ) AND
(mps_order.due_date >= timestamp('@fromdate@-00.00.00')) AND
(mps_order.due_date <= timestamp('@todate@-00.00.00')) AND
( case when mps_order.status is null then 'P' else mps_order.status end in ('P','T','M'))
Group By item.item_code__plan, mps_order.due_date
) alias
group by item_code,due_date
having sum(demand) <> 0 or sum(supply) <> 0
\ No newline at end of file
select item_code,due_date, round(sum(demand),0) demand, sum(supply) supply, sum(stock_qty) stock_qty, sum(oth_supply) oth_supply, sum(pending_po) pending_po ,sum(pending_do) pending_do, sum(pending_indent) pending_indent, sum(pending_dr) pending_dr from
(
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as pending_do,
0 as pending_indent, 0 as pending_dr
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__ship in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,distorder_det.due_date as due_date,
0 as demand,
sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as supply, 0 as stock_qty, sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) as oth_supply, 0 as pending_po, sum(case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) as pending_dr, 0 as pending_indent, 0 as pending_dr
FROM distorder,distorder_det, item
WHERE ( distorder_det.item_code = item.item_code ) and
( distorder.dist_order = distorder_det.dist_order ) and
( distorder.confirmed = 'Y' ) and
( distorder.site_code__dlv in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( distorder_det.due_date <= to_date('@todate@')) and
( distorder.order_type not in (@ordtypes@) ) and
( case when distorder.status is null then 'P' else distorder.status end = 'P') AND
(case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
Group By item.item_code__plan,distorder_det.due_date
UNION ALL
SELECT item.item_code__plan as item_code,indent.req_date as due_date,
0 as demand ,
sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as supply,
0 as stock_qty, sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as oth_supply, 0 as pending_po, 0 as pending_do,
sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when
indent.ord_qty is null then 0 else indent.ord_qty end) < 0 then 0 else case
when indent.quantity is null then 0 else
indent.quantity end - case when indent.ord_qty is null then 0 else
indent.ord_qty end end ) as pending_indent, 0 as pending_dr
FROM indent,item
WHERE ( indent.item_code = item.item_code ) and
(indent.status in ('O','A')) and
(indent.site_code in ('@sitecode@')) AND
( item.item_code__plan = '@itemcode@') AND
( indent.req_date <= to_date('@todate@'))
Group By item.item_code__plan,indent.req_date
UNION ALL
SELECT item.item_code__plan as item_code,porddet.dlv_date as due_date,
0 as demand ,
sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as supply, 0 as stock_qty, sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as oth_supply, sum(case when (case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end) < 0 then 0 else case when porddet.quantity__stduom is null then 0 else porddet.quantity__stduom end - case when porddet.dlv_qty is null then 0 else porddet.dlv_qty end end ) as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM porddet,porder, item
WHERE ( porddet.item_code = item.item_code ) and
(porddet.purc_order = porder.purc_order ) and
(porder.confirmed = 'Y') and
(porder.status not in('C','X')) and
(porddet.status not in('C','X')) and
(porddet.site_code in ('@sitecode@') ) AND
( item.item_code__plan = '@itemcode@') AND
( porder.pord_type not in (@ordtypes@) ) and
( porddet.dlv_date <= to_date('@todate@'))
Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code,FN_MRP_DUEDATE(to_date('@fromdate@')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM item
WHERE item.item_code__plan= '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) > 0
UNION ALL
SELECT item.item_code__plan as item_code, mps_order.due_date as due_date,
sum(mps_order.quantity) as demand, 0 as supply , 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM mps_order, item
WHERE ( mps_order.item_code = item.item_code ) and
(mps_order.site_code in ('@sitecode@') ) AND
(item.item_code__plan = '@itemcode@' ) AND
(mps_order.due_date >= to_date('@fromdate@')) AND
(mps_order.due_date <= to_date('@todate@')) AND
( case when mps_order.status is null then 'P' else mps_order.status end in ('P','T','M'))
Group By item.item_code__plan, mps_order.due_date
)
group by item_code,due_date
having sum(demand) <> 0 or sum(supply) <> 0
\ No newline at end of file
select sale_order,line_no,item_code,due_date, demand, 0 supply, 0 stock_qty, 0 oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr from
(
SELECT sorditem.sale_order,sorditem.line_no,item.item_code__plan as item_code,sorditem.due_date as due_date,
((case when sorditem.quantity is null then 0 else sorditem.quantity end - case when sorditem.qty_alloc is null then 0 else sorditem.qty_alloc end - case when sorditem.qty_desp is null then 0 else sorditem.qty_desp end ) * case when sorditem.conv__qty_stdqty is null then 1 else sorditem.conv__qty_stdqty end ) as demand,
0 as supply, 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr
FROM sorder,sorditem, item
WHERE ( sorditem.item_code = item.item_code ) and
(sorder.sale_order = sorditem.sale_order ) and
(case when sorder.confirmed is null then 'N' else sorder.confirmed end = 'Y' ) and
(case when sorditem.consume_fc is null then 'Y' else sorditem.consume_fc end = 'N' ) and
(sorditem.site_code in ('@sitecode@') ) AND
(item.item_code__plan = '@itemcode@') AND
(sorditem.due_date >= to_date('@fromdate@')) and
(sorditem.due_date <= to_date('@todate@')) and
( case when sorder.status is null then 'P' else sorder.status end = 'P') and
( sorder.order_type not in (@ordtypes@) ) and
( 0 = @madetoorder@ )
)
\ No newline at end of file
alter table plan_det add pending_po number(17,3);
alter table plan_det add pending_do number(17,3);
alter table plan_det add pending_indent number(17,3);
alter table plan_det add pending_dr number(17,3);
INSERT INTO messages (
msg_no ,
msg_str,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VMSITE11',
'Null SiteCode From !',
'Site code from cannot be empty. Enter a valid site code.',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Gulzar',
'BASE207',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VMSITE12',
'Null SiteCode To !',
'Site code to cannot be empty. Enter a valid site code.',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Gulzar',
'BASE207',
NULL,
NULL);
INSERT INTO messages (
msg_no ,
msg_str,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'NOMPSDATA',
'No data found!',
'No data found for the entered parameter',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Gulzar',
'BASE207',
NULL,
NULL);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,OBJ_TYPE) values ('SFA',17,1,0,0,0,'w_requirement','Requirement','Requirement','SFA.17.1.0.0.0','e12_logo.gif','W');
Insert into transetup (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,SALES_PERS_ACC_COL,CUST_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_COL,EMP_ACC_COL,WORKFLOW_OPT,TRAN_ID__FROM,TRAN_ID__TO,MULTITIRE_OPT,REF_SER,VIEW_MODE,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,CHILDDATA_ARGOPT,IGNOREERRLIST_ONLOAD,EDIT_TMPLT,WRKFLW_INIT,FORMAL_ARGS,EDIT_OPT,AUDIT_TRAIL_OPT,CACHE_OPT,EDIT_EXPR) values ('w_requirement ','2','2','A','seq10',null,null,null,null,null,'N',to_timestamp('24-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE','0',null,null,null,'N',null,null,'N',null,'TRAN_ID',null,'0',null,null,null,null,'SFA',null,null,null,null,null,null,null,null,null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,ASSISTED_MODE,PARENT_KEY_COL,DISP_METADATA,FORM_TYPE,RATE_COL,QTY_COL) values ('w_requirement','Site',null,null,null,null,null,null,'1','F',null,null,'N',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,ASSISTED_MODE,PARENT_KEY_COL,DISP_METADATA,FORM_TYPE,RATE_COL,QTY_COL) values ('w_requirement','Demand',null,null,null,null,null,null,'2','T',null,null,'N',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,ASSISTED_MODE,PARENT_KEY_COL,DISP_METADATA,FORM_TYPE,RATE_COL,QTY_COL) values ('w_requirement','Requirement',null,null,null,null,null,null,'3','T',null,null,'N',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',1,'N','a','a','Navigate - Next','Next',null,'1','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',2,'N','a','a','Navigate - Next','Next',null,'2','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',3,'P','a','a','Navigate - Prev','Prev',null,'2','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',4,'P','a','a','Navigate - Prev','Prev',null,'3','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',5,'A','a','a','Add','Add',null,'2','a',null,'U');
Insert into system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('requirement','default_data_wiz','1','default_requirement',null,to_timestamp('24-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE ','2','0','EJB','RequirementIC',null);
Insert into system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('requirement','pre_navigate_next','1','prv_requirement',null,to_timestamp('24-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE ','2','0','EJB','RequirementIC',null);
Insert into system_event_services (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('default_requirement','To get default data','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE');
Insert into system_event_services (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('prv_requirement','Validate','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE','EJB');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE','RequirementIC');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',3,'XML_DATA','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',4,'XML_DATA_1','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',7,'EDIT_FLAG','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',8,'XTRA_PARAMS','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE','EJB');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE','RequirementIC');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',3,'XML_DATA','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',4,'XML_DATA_1','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE',null);
$PBExportHeader$d_requirement11.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=site_code__fr dbname="site_code__fr" )
column=(type=char(10) updatewhereclause=yes name=site_code__to dbname="site_code__to" )
)
text(band=header alignment="0" text="Site Code Fr" border="6" color="33554432" x="2" y="2" height="16" width="77" html.valueishtml="0" name=site_code__fr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Site Code To" border="6" color="33554432" x="81" y="2" height="16" width="79" html.valueishtml="0" name=site_code__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="2" y="2" height="16" width="77" format="[general]" html.valueishtml="0" name=site_code__fr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="81" y="2" height="16" width="79" format="[general]" html.valueishtml="0" name=site_code__to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_requirement12.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=23 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=21 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=tran_id dbname="mps_order.tran_id" )
column=(type=char(5) updatewhereclause=yes name=site_code dbname="mps_order.site_code" )
column=(type=char(10) updatewhereclause=yes name=item_code dbname="mps_order.item_code" )
column=(type=char(120) updatewhereclause=yes name=item_descr dbname="item.descr" )
column=(type=decimal(3) updatewhereclause=yes name=quantity dbname="mps_order.quantity" )
column=(type=datetime updatewhereclause=yes name=due_date dbname="mps_order.due_date" )
column=(type=char(3) updatewhereclause=yes name=unit dbname="mps_order.unit" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"mps_order~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"mps_order.tran_id~") COLUMN(NAME=~"mps_order.site_code~") COLUMN(NAME=~"mps_order.item_code~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"mps_order.quantity~") COLUMN(NAME=~"mps_order.due_date~") COLUMN(NAME=~"mps_order.unit~") JOIN (LEFT=~"mps_order.item_code~" OP =~"=~"RIGHT=~"item.item_code~" OUTER1 =~"mps_order.item_code~" )WHERE( EXP1 =~"mps_order.site_code~" OP =~"=~" EXP2 =~":site_code~" LOGIC =~"And~" ) WHERE( EXP1 =~"mps_order.item_code~" OP =~"=~" EXP2 =~":item_code~" LOGIC =~"And~" ) WHERE( EXP1 =~"mps_order.status~" OP =~"in~" EXP2 =~"('P','T','M')~" ) ) ARG(NAME = ~"site_code~" TYPE = string) ARG(NAME = ~"item_code~" TYPE = string) " arguments=(("site_code", string),("item_code", string)) )
text(band=header alignment="0" text="Site Code" border="6" color="33554432" x="2" y="2" height="17" width="123" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Item Code" border="6" color="33554432" x="127" y="2" height="17" width="113" html.valueishtml="0" name=item_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Descr" border="6" color="33554432" x="242" y="2" height="17" width="279" html.valueishtml="0" name=item_descr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Quantity" border="6" color="33554432" x="523" y="2" height="17" width="141" html.valueishtml="0" name=quantity_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Due Date" border="6" color="33554432" x="666" y="2" height="17" width="111" html.valueishtml="0" name=due_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Unit" border="6" color="33554432" x="779" y="2" height="17" width="68" html.valueishtml="0" name=unit_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Tran Id" border="6" color="33554432" x="849" y="2" height="17" width="91" html.valueishtml="0" name=t_1 visible="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="0" tabsequence=32766 border="5" color="33554432" x="2" y="2" height="16" width="123" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="127" y="2" height="16" width="113" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="33554432" x="242" y="2" height="16" width="279" format="[general]" html.valueishtml="0" name=item_descr visible="1" edit.limit=120 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="1" tabsequence=32766 border="5" color="33554432" x="523" y="2" height="16" width="141" format="[general]" html.valueishtml="0" name=quantity visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="33554432" x="666" y="2" height="16" width="111" format="[shortdate] [time]" html.valueishtml="0" name=due_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="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="33554432" x="779" y="2" height="16" width="68" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="849" y="2" height="16" width="91" format="[general]" html.valueishtml="0" name=tran_id visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_requirement13.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 25 print.margin.right = 25 print.margin.top = 25 print.margin.bottom = 25 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=22 color="536870912" )
table(column=(type=char(5) updatewhereclause=no name=site_code dbname="site_code" )
column=(type=char(10) updatewhereclause=no name=item_code dbname="item_code" )
column=(type=char(1) updatewhereclause=no name=supp_sour dbname="supp_sour" )
column=(type=decimal(3) updatewhereclause=no name=demand dbname="demand" )
column=(type=decimal(3) updatewhereclause=no name=supply dbname="supply" )
column=(type=datetime updatewhereclause=no name=due_date dbname="due_date" )
column=(type=decimal(3) updatewhereclause=no name=plan_supply dbname="plan_supply" )
column=(type=decimal(3) updatewhereclause=no name=running_demand dbname="running_demand" )
column=(type=decimal(3) updatewhereclause=no name=running_supply dbname="running_supply" )
column=(type=decimal(3) updatewhereclause=no name=running_plan_supply dbname="running_plan_supply" )
column=(type=decimal(3) updatewhereclause=no name=independent_demand dbname="independent_demand" )
column=(type=char(10) updatewhereclause=no name=bom_code dbname="bom_code" )
column=(type=char(1) updatewhereclause=no name=order_opt dbname="order_opt" )
column=(type=char(1) updatewhereclause=no name=batch_qty_type dbname="batch_qty_type" )
column=(type=char(3) updatewhereclause=no name=unit dbname="unit" )
column=(type=decimal(3) updatewhereclause=no name=min_order_qty dbname="min_order_qty" )
column=(type=decimal(3) updatewhereclause=no name=integral_qty dbname="integral_qty" )
column=(type=decimal(3) updatewhereclause=no name=max_qty dbname="max_qty" )
column=(type=decimal(3) updatewhereclause=no name=min_qty dbname="min_qty" )
column=(type=decimal(3) updatewhereclause=no name=reorder_qty dbname="reorder_qty" )
column=(type=decimal(3) updatewhereclause=no name=yield_perc dbname="yield_perc" )
column=(type=decimal(3) updatewhereclause=no name=min_plan_perc dbname="min_plan_perc" )
column=(type=decimal(3) updatewhereclause=no name=batch_qty dbname="batch_qty" )
column=(type=decimal(3) updatewhereclause=no name=purc_rate dbname="purc_rate" )
column=(type=decimal(3) updatewhereclause=no name=pur_lead_time dbname="pur_lead_time" )
column=(type=decimal(3) updatewhereclause=no name=qc_lead_time dbname="qc_lead_time" )
column=(type=decimal(3) updatewhereclause=no name=mfg_lead_time dbname="mfg_lead_time" )
column=(type=char(60) updatewhereclause=no name=description dbname="description" )
column=(type=decimal(3) updatewhereclause=no name=stock_qty dbname="stock_qty" )
column=(type=decimal(3) updatewhereclause=no name=oth_supply dbname="oth_supply" )
column=(type=decimal(3) updatewhereclause=no name=pending_po dbname="pending_po" )
column=(type=decimal(3) updatewhereclause=no name=pending_do dbname="pending_do" )
column=(type=decimal(3) updatewhereclause=no name=pending_indent dbname="pending_indent" )
column=(type=decimal(3) updatewhereclause=no name=pending_dr dbname="pending_dr" )
)
text(band=header alignment="0" text="Site Code" border="6" color="33554432" x="2" y="2" height="16" width="78" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Item Description" border="6" color="33554432" x="151" y="2" height="16" width="360" html.valueishtml="0" name=description_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Item Code" border="6" color="33554432" x="82" y="2" height="16" width="67" html.valueishtml="0" name=item_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="0" text="Supp Source" border="6" color="33554432" x="513" y="2" height="16" width="70" html.valueishtml="0" name=supp_sour_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Demand" border="6" color="33554432" x="585" y="2" height="16" width="114" html.valueishtml="0" name=demand_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Supply" border="6" color="33554432" x="701" y="2" height="16" width="108" html.valueishtml="0" name=supply_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Stock Qty" border="6" color="33554432" x="811" y="2" height="16" width="100" html.valueishtml="0" name=stock_qty_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="1" text="Oth Supply" border="6" color="33554432" x="913" y="2" height="16" width="103" html.valueishtml="0" name=oth_supply_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="Due Date" border="6" color="33554432" x="1431" y="2" height="16" width="78" html.valueishtml="0" name=due_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Plan Supply" border="6" color="33554432" x="1511" y="2" height="16" width="152" html.valueishtml="0" name=plan_supply_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Running Demand" border="6" color="33554432" x="1665" y="2" height="16" width="162" html.valueishtml="0" name=running_demand_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Running Supply" border="6" color="33554432" x="1829" y="2" height="16" width="153" html.valueishtml="0" name=running_supply_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Running Plan Supply" border="6" color="33554432" x="1984" y="2" height="16" width="145" html.valueishtml="0" name=running_plan_supply_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Independent Demand" border="6" color="33554432" x="2131" y="2" height="16" width="139" html.valueishtml="0" name=independent_demand_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Bom Code" border="6" color="33554432" x="2272" y="2" height="16" width="68" html.valueishtml="0" name=bom_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Order Opt" border="6" color="33554432" x="2342" y="2" height="16" width="65" html.valueishtml="0" name=order_opt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Batch Qty Type" border="6" color="33554432" x="2409" y="2" height="16" width="100" html.valueishtml="0" name=batch_qty_type_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Unit" border="6" color="33554432" x="2511" y="2" height="16" width="24" html.valueishtml="0" name=unit_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Min Order Qty" border="6" color="33554432" x="2537" y="2" height="16" width="93" html.valueishtml="0" name=min_order_qty_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Integral Qty" border="6" color="33554432" x="2632" y="2" height="16" width="76" html.valueishtml="0" name=integral_qty_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Max Qty" border="6" color="33554432" x="2710" y="2" height="16" width="54" html.valueishtml="0" name=max_qty_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Min Qty" border="6" color="33554432" x="2766" y="2" height="16" width="50" html.valueishtml="0" name=min_qty_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Reorder Qty" border="6" color="33554432" x="2818" y="2" height="16" width="76" html.valueishtml="0" name=reorder_qty_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Yield Perc" border="6" color="33554432" x="2896" y="2" height="16" width="65" html.valueishtml="0" name=yield_perc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Min Plan Perc" border="6" color="33554432" x="2963" y="2" height="16" width="93" html.valueishtml="0" name=min_plan_perc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Batch Qty" border="6" color="33554432" x="3058" y="2" height="16" width="89" html.valueishtml="0" name=batch_qty_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Purc Rate" border="6" color="33554432" x="3149" y="2" height="16" width="82" html.valueishtml="0" name=purc_rate_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Pur Lead Time" border="6" color="33554432" x="3233" y="2" height="16" width="91" html.valueishtml="0" name=pur_lead_time_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Qc Lead Time" border="6" color="33554432" x="3326" y="2" height="16" width="85" html.valueishtml="0" name=qc_lead_time_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Integral Qty" border="6" color="33554432" x="2632" y="2" height="16" width="76" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="1" text="Mfg Lead Time" border="6" color="33554432" x="3413" y="2" height="16" width="95" html.valueishtml="0" name=mfg_lead_time_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="2" y="2" height="19" width="78" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="82" y="2" height="19" width="67" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="513" y="2" height="19" width="70" format="[general]" html.valueishtml="0" name=supp_sour visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=28 alignment="0" tabsequence=32766 border="5" color="33554432" x="151" y="2" height="19" width="360" format="[general]" html.valueishtml="0" name=description visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="33554432" x="1431" y="2" height="19" width="78" format="[shortdate] [time]" html.valueishtml="0" name=due_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="1" tabsequence=32766 border="5" color="33554432" x="1665" y="2" height="19" width="162" format="[general]" html.valueishtml="0" name=running_demand visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="1" tabsequence=32766 border="5" color="33554432" x="1829" y="2" height="19" width="153" format="[general]" html.valueishtml="0" name=running_supply visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="1" tabsequence=32766 border="5" color="33554432" x="1984" y="2" height="19" width="145" format="[general]" html.valueishtml="0" name=running_plan_supply visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="1" tabsequence=32766 border="5" color="33554432" x="2131" y="2" height="19" width="139" format="[general]" html.valueishtml="0" name=independent_demand visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="33554432" x="2272" y="2" height="19" width="68" format="[general]" html.valueishtml="0" name=bom_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="33554432" x="2342" y="2" height="19" width="65" format="[general]" html.valueishtml="0" name=order_opt visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="33554432" x="2409" y="2" height="19" width="100" format="[general]" html.valueishtml="0" name=batch_qty_type visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="33554432" x="2511" y="2" height="19" width="24" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=16 alignment="1" tabsequence=32766 border="5" color="33554432" x="2537" y="2" height="19" width="93" format="[general]" html.valueishtml="0" name=min_order_qty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=17 alignment="1" tabsequence=32766 border="5" color="33554432" x="2632" y="2" height="19" width="76" format="[general]" html.valueishtml="0" name=integral_qty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=18 alignment="1" tabsequence=32766 border="5" color="33554432" x="2710" y="2" height="19" width="54" format="[general]" html.valueishtml="0" name=max_qty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=19 alignment="1" tabsequence=32766 border="5" color="33554432" x="2766" y="2" height="19" width="50" format="[general]" html.valueishtml="0" name=min_qty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=20 alignment="1" tabsequence=32766 border="5" color="33554432" x="2818" y="2" height="19" width="76" format="[general]" html.valueishtml="0" name=reorder_qty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=21 alignment="1" tabsequence=32766 border="5" color="33554432" x="2896" y="2" height="19" width="65" format="[general]" html.valueishtml="0" name=yield_perc visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=22 alignment="1" tabsequence=32766 border="5" color="33554432" x="2963" y="2" height="19" width="93" format="[general]" html.valueishtml="0" name=min_plan_perc visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=23 alignment="1" tabsequence=32766 border="5" color="33554432" x="3058" y="2" height="19" width="89" format="[general]" html.valueishtml="0" name=batch_qty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=24 alignment="1" tabsequence=32766 border="5" color="33554432" x="3149" y="2" height="19" width="82" format="[general]" html.valueishtml="0" name=purc_rate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=25 alignment="1" tabsequence=32766 border="5" color="33554432" x="3233" y="2" height="19" width="91" format="[general]" html.valueishtml="0" name=pur_lead_time visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=26 alignment="1" tabsequence=32766 border="5" color="33554432" x="3326" y="2" height="19" width="85" format="[general]" html.valueishtml="0" name=qc_lead_time visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="1" tabsequence=32766 border="5" color="33554432" x="1511" y="2" height="19" width="152" format="[general]" html.valueishtml="0" name=plan_supply visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=27 alignment="1" tabsequence=32766 border="5" color="33554432" x="3413" y="2" height="19" width="95" format="[general]" html.valueishtml="0" name=mfg_lead_time visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=header alignment="1" text="Pending PO" border="6" color="0" x="1018" y="2" height="16" width="98" html.valueishtml="0" name=pending_po_t visible="1" font.face="Tahoma" 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="1" text="Pending DO" border="6" color="0" x="1118" y="2" height="16" width="102" html.valueishtml="0" name=pending_do_t visible="1" font.face="Tahoma" 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="1" text="Pending Indent" border="6" color="0" x="1222" y="2" height="16" width="103" html.valueishtml="0" name=pending_indent_t visible="1" font.face="Tahoma" 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="1" text="Pending DR" border="6" color="0" x="1327" y="2" height="16" width="102" html.valueishtml="0" name=pending_dr_t visible="1" font.face="Tahoma" 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=4 alignment="1" tabsequence=32766 border="5" color="33554432" x="585" y="2" height="19" width="114" format="[general]" html.valueishtml="0" name=demand visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="1" tabsequence=32766 border="5" color="33554432" x="701" y="2" height="19" width="108" format="[general]" html.valueishtml="0" name=supply visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=29 alignment="1" tabsequence=32766 border="5" color="33554432" x="811" y="2" height="19" width="100" format="[general]" html.valueishtml="0" name=stock_qty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=30 alignment="1" tabsequence=32766 border="5" color="33554432" x="913" y="2" height="19" width="103" format="[general]" html.valueishtml="0" name=oth_supply visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=31 alignment="1" tabsequence=32766 border="5" color="0" x="1018" y="2" height="19" width="98" format="[general]" html.valueishtml="0" name=pending_po visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=32 alignment="1" tabsequence=32766 border="5" color="0" x="1118" y="2" height="19" width="102" format="[general]" html.valueishtml="0" name=pending_do visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=33 alignment="1" tabsequence=32766 border="5" color="0" x="1222" y="2" height="19" width="103" format="[general]" html.valueishtml="0" name=pending_indent visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=34 alignment="1" tabsequence=32766 border="5" color="0" x="1327" y="2" height="19" width="102" format="[general]" html.valueishtml="0" name=pending_dr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_requirement21.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=66 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=site_code__to dbname="site_code__fr" )
column=(type=char(10) updatewhereclause=no name=site_code__to dbname="site_code__to" )
)
text(band=detail alignment="1" text="Site Code From:" border="0" color="33554432" x="24" y="14" height="16" width="94" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" height.autosize=yes)
text(band=detail alignment="1" text="Site Code To :" border="0" color="33554432" x="242" y="14" height="16" width="94" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" height.autosize=yes)
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="122" y="14" height="16" width="76" format="[general]" html.valueishtml="0" name=site_code__fr visible="1" height.autosize=yes 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=1 alignment="0" tabsequence=20 border="5" color="33554432" x="341" y="14" height="16" width="76" format="[general]" html.valueishtml="0" name=site_code__to visible="1" height.autosize=yes 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" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_requirement22.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=194 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=tran_id dbname="mps_order.tran_id" )
column=(type=char(5) updatewhereclause=yes name=site_code dbname="mps_order.site_code" )
column=(type=char(10) updatewhereclause=yes name=item_code dbname="mps_order.item_code" )
column=(type=char(120) updatewhereclause=yes name=item_descr dbname="item.descr" )
column=(type=decimal(3) updatewhereclause=yes name=quantity dbname="mps_order.quantity" )
column=(type=datetime updatewhereclause=yes name=due_date dbname="mps_order.due_date" )
column=(type=char(3) updatewhereclause=yes name=unit dbname="mps_order.unit" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"mps_order~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"mps_order.tran_id~") COLUMN(NAME=~"mps_order.site_code~") COLUMN(NAME=~"mps_order.item_code~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"mps_order.quantity~") COLUMN(NAME=~"mps_order.due_date~") COLUMN(NAME=~"mps_order.unit~") JOIN (LEFT=~"mps_order.item_code~" OP =~"=~"RIGHT=~"item.item_code~" OUTER1 =~"mps_order.item_code~" )WHERE( EXP1 =~"mps_order.site_code~" OP =~"=~" EXP2 =~":site_code~" LOGIC =~"And~" ) WHERE( EXP1 =~"mps_order.item_code~" OP =~"=~" EXP2 =~":item_code~" LOGIC =~"And~" ) WHERE( EXP1 =~"mps_order.status~" OP =~"in~" EXP2 =~"('P','T','M')~" ) ) ARG(NAME = ~"site_code~" TYPE = string) ARG(NAME = ~"item_code~" TYPE = string) " arguments=(("site_code", string),("item_code", string)) )
text(band=detail alignment="1" text="Tran Id:" border="0" color="33554432" x="36" y="10" height="16" width="64" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="36" y="44" height="16" width="64" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code:" border="0" color="33554432" x="38" y="79" height="16" width="64" html.valueishtml="0" name=item_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Quantity:" border="0" color="33554432" x="38" y="110" height="16" width="64" html.valueishtml="0" name=quantity_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Due Date:" border="0" color="33554432" x="269" y="110" height="16" width="64" html.valueishtml="0" name=due_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Unit:" border="0" color="33554432" x="36" y="140" height="16" width="64" html.valueishtml="0" name=unit_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="104" y="10" height="16" width="77" format="[general]" html.valueishtml="0" name=tran_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=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="104" y="44" height="16" width="77" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="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=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="106" y="79" height="16" width="77" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="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="1" tabsequence=32766 border="5" color="33554432" x="106" y="110" height="16" width="77" format="[general]" html.valueishtml="0" name=quantity visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="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="0" tabsequence=32766 border="5" color="33554432" x="105" y="140" height="16" width="77" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=3 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="0" tabsequence=32766 border="5" color="33554432" x="188" y="80" height="16" width="281" format="[general]" html.valueishtml="0" name=item_descr visible="1" edit.limit=120 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="5" color="33554432" x="337" y="110" height="16" width="132" format="[shortdate] [time]" html.valueishtml="0" name=due_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" )
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>23</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code__fr</name>
<dbname>site_code__fr</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code__to</name>
<dbname>site_code__to</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code Fr</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>77</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__fr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code To</text>
<border>6</border>
<color>33554432</color>
<x>81</x>
<y>2</y>
<height>16</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__to_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__fr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>81</x>
<y>2</y>
<height>16</height>
<width>79</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>23</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>21</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id</name>
<dbname>mps_order.tran_id</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>mps_order.site_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_code</name>
<dbname>mps_order.item_code</dbname>
</table_column>
<table_column>
<type size="120">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_descr</name>
<dbname>item.descr</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>quantity</name>
<dbname>mps_order.quantity</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>due_date</name>
<dbname>mps_order.due_date</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>unit</name>
<dbname>mps_order.unit</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;mps_order&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;mps_order.tran_id&quot;) COLUMN(NAME=&quot;mps_order.site_code&quot;) COLUMN(NAME=&quot;mps_order.item_code&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;mps_order.quantity&quot;) COLUMN(NAME=&quot;mps_order.due_date&quot;) COLUMN(NAME=&quot;mps_order.unit&quot;) JOIN (LEFT=&quot;mps_order.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;mps_order.item_code&quot; )WHERE( EXP1 =&quot;mps_order.site_code&quot; OP =&quot;=&quot; EXP2 =&quot;:site_code&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;mps_order.item_code&quot; OP =&quot;=&quot; EXP2 =&quot;:item_code&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;mps_order.status&quot; OP =&quot;in&quot; EXP2 =&quot;(&apos;P&apos;,&apos;T&apos;,&apos;M&apos;)&quot; ) ) ARG(NAME = &quot;site_code&quot; TYPE = string) ARG(NAME = &quot;item_code&quot; TYPE = string) </retrieve>
<argument>
<name>site_code</name>
<type>string</type>
</argument>
<argument>
<name>item_code</name>
<type>string</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>17</height>
<width>123</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Code</text>
<border>6</border>
<color>33554432</color>
<x>127</x>
<y>2</y>
<height>17</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Descr</text>
<border>6</border>
<color>33554432</color>
<x>242</x>
<y>2</y>
<height>17</height>
<width>279</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_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>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Quantity</text>
<border>6</border>
<color>33554432</color>
<x>523</x>
<y>2</y>
<height>17</height>
<width>141</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Due Date</text>
<border>6</border>
<color>33554432</color>
<x>666</x>
<y>2</y>
<height>17</height>
<width>111</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Unit</text>
<border>6</border>
<color>33554432</color>
<x>779</x>
<y>2</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Tran Id</text>
<border>6</border>
<color>33554432</color>
<x>849</x>
<y>2</y>
<height>17</height>
<width>91</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>123</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>127</x>
<y>2</y>
<height>16</height>
<width>113</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>242</x>
<y>2</y>
<height>16</height>
<width>279</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>120</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>523</x>
<y>2</y>
<height>16</height>
<width>141</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>666</x>
<y>2</y>
<height>16</height>
<width>111</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_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>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>779</x>
<y>2</y>
<height>16</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>3</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>849</x>
<y>2</y>
<height>16</height>
<width>91</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>25</left>
<right>25</right>
<top>25</top>
<bottom>25</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>item_code</name>
<dbname>item_code</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>supp_sour</name>
<dbname>supp_sour</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>demand</name>
<dbname>demand</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>supply</name>
<dbname>supply</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>no</updatewhereclause>
<name>due_date</name>
<dbname>due_date</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>plan_supply</name>
<dbname>plan_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>running_demand</name>
<dbname>running_demand</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>running_supply</name>
<dbname>running_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>running_plan_supply</name>
<dbname>running_plan_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>independent_demand</name>
<dbname>independent_demand</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>bom_code</name>
<dbname>bom_code</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>order_opt</name>
<dbname>order_opt</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>batch_qty_type</name>
<dbname>batch_qty_type</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>no</updatewhereclause>
<name>unit</name>
<dbname>unit</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>min_order_qty</name>
<dbname>min_order_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>integral_qty</name>
<dbname>integral_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>max_qty</name>
<dbname>max_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>min_qty</name>
<dbname>min_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>reorder_qty</name>
<dbname>reorder_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>yield_perc</name>
<dbname>yield_perc</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>min_plan_perc</name>
<dbname>min_plan_perc</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>batch_qty</name>
<dbname>batch_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>purc_rate</name>
<dbname>purc_rate</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pur_lead_time</name>
<dbname>pur_lead_time</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>qc_lead_time</name>
<dbname>qc_lead_time</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>mfg_lead_time</name>
<dbname>mfg_lead_time</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>no</updatewhereclause>
<name>description</name>
<dbname>description</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>stock_qty</name>
<dbname>stock_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>oth_supply</name>
<dbname>oth_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_po</name>
<dbname>pending_po</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_do</name>
<dbname>pending_do</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_indent</name>
<dbname>pending_indent</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_dr</name>
<dbname>pending_dr</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Item Description</text>
<border>6</border>
<color>33554432</color>
<x>151</x>
<y>2</y>
<height>16</height>
<width>360</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>description_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Code</text>
<border>6</border>
<color>33554432</color>
<x>82</x>
<y>2</y>
<height>16</height>
<width>67</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Supp Source</text>
<border>6</border>
<color>33554432</color>
<x>513</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_sour_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Demand</text>
<border>6</border>
<color>33554432</color>
<x>585</x>
<y>2</y>
<height>16</height>
<width>114</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>demand_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Supply</text>
<border>6</border>
<color>33554432</color>
<x>701</x>
<y>2</y>
<height>16</height>
<width>108</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Stock Qty</text>
<border>6</border>
<color>33554432</color>
<x>811</x>
<y>2</y>
<height>16</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_qty_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>1</alignment>
<text>Oth Supply</text>
<border>6</border>
<color>33554432</color>
<x>913</x>
<y>2</y>
<height>16</height>
<width>103</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>oth_supply_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>Due Date</text>
<border>6</border>
<color>33554432</color>
<x>1431</x>
<y>2</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Plan Supply</text>
<border>6</border>
<color>33554432</color>
<x>1511</x>
<y>2</y>
<height>16</height>
<width>152</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Running Demand</text>
<border>6</border>
<color>33554432</color>
<x>1665</x>
<y>2</y>
<height>16</height>
<width>162</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_demand_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Running Supply</text>
<border>6</border>
<color>33554432</color>
<x>1829</x>
<y>2</y>
<height>16</height>
<width>153</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Running Plan Supply</text>
<border>6</border>
<color>33554432</color>
<x>1984</x>
<y>2</y>
<height>16</height>
<width>145</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_plan_supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Independent Demand</text>
<border>6</border>
<color>33554432</color>
<x>2131</x>
<y>2</y>
<height>16</height>
<width>139</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>independent_demand_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Bom Code</text>
<border>6</border>
<color>33554432</color>
<x>2272</x>
<y>2</y>
<height>16</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bom_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Order Opt</text>
<border>6</border>
<color>33554432</color>
<x>2342</x>
<y>2</y>
<height>16</height>
<width>65</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>order_opt_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Batch Qty Type</text>
<border>6</border>
<color>33554432</color>
<x>2409</x>
<y>2</y>
<height>16</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Unit</text>
<border>6</border>
<color>33554432</color>
<x>2511</x>
<y>2</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Min Order Qty</text>
<border>6</border>
<color>33554432</color>
<x>2537</x>
<y>2</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_order_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Integral Qty</text>
<border>6</border>
<color>33554432</color>
<x>2632</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>integral_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Max Qty</text>
<border>6</border>
<color>33554432</color>
<x>2710</x>
<y>2</y>
<height>16</height>
<width>54</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>max_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Min Qty</text>
<border>6</border>
<color>33554432</color>
<x>2766</x>
<y>2</y>
<height>16</height>
<width>50</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Reorder Qty</text>
<border>6</border>
<color>33554432</color>
<x>2818</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reorder_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Yield Perc</text>
<border>6</border>
<color>33554432</color>
<x>2896</x>
<y>2</y>
<height>16</height>
<width>65</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>yield_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Min Plan Perc</text>
<border>6</border>
<color>33554432</color>
<x>2963</x>
<y>2</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_plan_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Batch Qty</text>
<border>6</border>
<color>33554432</color>
<x>3058</x>
<y>2</y>
<height>16</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Purc Rate</text>
<border>6</border>
<color>33554432</color>
<x>3149</x>
<y>2</y>
<height>16</height>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purc_rate_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Pur Lead Time</text>
<border>6</border>
<color>33554432</color>
<x>3233</x>
<y>2</y>
<height>16</height>
<width>91</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pur_lead_time_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Qc Lead Time</text>
<border>6</border>
<color>33554432</color>
<x>3326</x>
<y>2</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qc_lead_time_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Integral Qty</text>
<border>6</border>
<color>33554432</color>
<x>2632</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Mfg Lead Time</text>
<border>6</border>
<color>33554432</color>
<x>3413</x>
<y>2</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_lead_time_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>19</height>
<width>78</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>82</x>
<y>2</y>
<height>19</height>
<width>67</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
<y>2</y>
<height>19</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_sour</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>28</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>151</x>
<y>2</y>
<height>19</height>
<width>360</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>description</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1431</x>
<y>2</y>
<height>19</height>
<width>78</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1665</x>
<y>2</y>
<height>19</height>
<width>162</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_demand</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1829</x>
<y>2</y>
<height>19</height>
<width>153</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1984</x>
<y>2</y>
<height>19</height>
<width>145</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_plan_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2131</x>
<y>2</y>
<height>19</height>
<width>139</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>independent_demand</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2272</x>
<y>2</y>
<height>19</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bom_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2342</x>
<y>2</y>
<height>19</height>
<width>65</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>order_opt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2409</x>
<y>2</y>
<height>19</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty_type</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2511</x>
<y>2</y>
<height>19</height>
<width>24</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2537</x>
<y>2</y>
<height>19</height>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_order_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2632</x>
<y>2</y>
<height>19</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>integral_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2710</x>
<y>2</y>
<height>19</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>max_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2766</x>
<y>2</y>
<height>19</height>
<width>50</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2818</x>
<y>2</y>
<height>19</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reorder_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2896</x>
<y>2</y>
<height>19</height>
<width>65</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>yield_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2963</x>
<y>2</y>
<height>19</height>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_plan_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>23</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3058</x>
<y>2</y>
<height>19</height>
<width>89</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>24</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3149</x>
<y>2</y>
<height>19</height>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purc_rate</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>25</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3233</x>
<y>2</y>
<height>19</height>
<width>91</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pur_lead_time</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>26</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3326</x>
<y>2</y>
<height>19</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qc_lead_time</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1511</x>
<y>2</y>
<height>19</height>
<width>152</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>27</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3413</x>
<y>2</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_lead_time</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Pending PO</text>
<border>6</border>
<color>0</color>
<x>1018</x>
<y>2</y>
<height>16</height>
<width>98</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_po_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>1</alignment>
<text>Pending DO</text>
<border>6</border>
<color>0</color>
<x>1118</x>
<y>2</y>
<height>16</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_do_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>1</alignment>
<text>Pending Indent</text>
<border>6</border>
<color>0</color>
<x>1222</x>
<y>2</y>
<height>16</height>
<width>103</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_indent_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>1</alignment>
<text>Pending DR</text>
<border>6</border>
<color>0</color>
<x>1327</x>
<y>2</y>
<height>16</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_dr_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>4</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>585</x>
<y>2</y>
<height>19</height>
<width>114</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>demand</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>701</x>
<y>2</y>
<height>19</height>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>29</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>811</x>
<y>2</y>
<height>19</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>913</x>
<y>2</y>
<height>19</height>
<width>103</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>oth_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>31</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1018</x>
<y>2</y>
<height>19</height>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_po</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>32</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1118</x>
<y>2</y>
<height>19</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_do</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>33</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1222</x>
<y>2</y>
<height>19</height>
<width>103</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_indent</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>34</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1327</x>
<y>2</y>
<height>19</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_dr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>66</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>site_code__to</name>
<dbname>site_code__fr</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>site_code__to</name>
<dbname>site_code__to</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Site Code From:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>14</y>
<height>16</height>
<width>94</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
<height.autosize>yes</height.autosize>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Site Code To :</text>
<border>0</border>
<color>33554432</color>
<x>242</x>
<y>14</y>
<height>16</height>
<width>94</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
<height.autosize>yes</height.autosize>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>122</x>
<y>14</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__fr</name>
<visible>1</visible>
<height.autosize>yes</height.autosize>
<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>1</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>341</x>
<y>14</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__to</name>
<visible>1</visible>
<height.autosize>yes</height.autosize>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>194</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id</name>
<dbname>mps_order.tran_id</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>mps_order.site_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_code</name>
<dbname>mps_order.item_code</dbname>
</table_column>
<table_column>
<type size="120">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_descr</name>
<dbname>item.descr</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>quantity</name>
<dbname>mps_order.quantity</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>due_date</name>
<dbname>mps_order.due_date</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>unit</name>
<dbname>mps_order.unit</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;mps_order&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;mps_order.tran_id&quot;) COLUMN(NAME=&quot;mps_order.site_code&quot;) COLUMN(NAME=&quot;mps_order.item_code&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;mps_order.quantity&quot;) COLUMN(NAME=&quot;mps_order.due_date&quot;) COLUMN(NAME=&quot;mps_order.unit&quot;) JOIN (LEFT=&quot;mps_order.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;mps_order.item_code&quot; )WHERE( EXP1 =&quot;mps_order.site_code&quot; OP =&quot;=&quot; EXP2 =&quot;:site_code&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;mps_order.item_code&quot; OP =&quot;=&quot; EXP2 =&quot;:item_code&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;mps_order.status&quot; OP =&quot;in&quot; EXP2 =&quot;(&apos;P&apos;,&apos;T&apos;,&apos;M&apos;)&quot; ) ) ARG(NAME = &quot;site_code&quot; TYPE = string) ARG(NAME = &quot;item_code&quot; TYPE = string) </retrieve>
<argument>
<name>site_code</name>
<type>string</type>
</argument>
<argument>
<name>item_code</name>
<type>string</type>
</argument>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id:</text>
<border>0</border>
<color>33554432</color>
<x>36</x>
<y>10</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Site Code:</text>
<border>0</border>
<color>33554432</color>
<x>36</x>
<y>44</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Code:</text>
<border>0</border>
<color>33554432</color>
<x>38</x>
<y>79</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Quantity:</text>
<border>0</border>
<color>33554432</color>
<x>38</x>
<y>110</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Due Date:</text>
<border>0</border>
<color>33554432</color>
<x>269</x>
<y>110</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Unit:</text>
<border>0</border>
<color>33554432</color>
<x>36</x>
<y>140</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>104</x>
<y>10</y>
<height>16</height>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_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>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>104</x>
<y>44</y>
<height>16</height>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>106</x>
<y>79</y>
<height>16</height>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_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>5</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>106</x>
<y>110</y>
<height>16</height>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</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>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>105</x>
<y>140</y>
<height>16</height>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>3</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>188</x>
<y>80</y>
<height>16</height>
<width>281</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>120</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>5</border>
<color>33554432</color>
<x>337</x>
<y>110</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_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>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>25</left>
<right>25</right>
<top>25</top>
<bottom>25</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>item_code</name>
<dbname>item_code</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>supp_sour</name>
<dbname>supp_sour</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>demand</name>
<dbname>demand</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>supply</name>
<dbname>supply</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>no</updatewhereclause>
<name>due_date</name>
<dbname>due_date</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>plan_supply</name>
<dbname>plan_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>running_demand</name>
<dbname>running_demand</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>running_supply</name>
<dbname>running_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>running_plan_supply</name>
<dbname>running_plan_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>independent_demand</name>
<dbname>independent_demand</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>bom_code</name>
<dbname>bom_code</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>order_opt</name>
<dbname>order_opt</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>batch_qty_type</name>
<dbname>batch_qty_type</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>no</updatewhereclause>
<name>unit</name>
<dbname>unit</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>min_order_qty</name>
<dbname>min_order_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>integral_qty</name>
<dbname>integral_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>max_qty</name>
<dbname>max_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>min_qty</name>
<dbname>min_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>reorder_qty</name>
<dbname>reorder_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>yield_perc</name>
<dbname>yield_perc</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>min_plan_perc</name>
<dbname>min_plan_perc</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>batch_qty</name>
<dbname>batch_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>purc_rate</name>
<dbname>purc_rate</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pur_lead_time</name>
<dbname>pur_lead_time</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>qc_lead_time</name>
<dbname>qc_lead_time</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>mfg_lead_time</name>
<dbname>mfg_lead_time</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>no</updatewhereclause>
<name>description</name>
<dbname>description</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>stock_qty</name>
<dbname>stock_qty</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>oth_supply</name>
<dbname>oth_supply</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_po</name>
<dbname>pending_po</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_do</name>
<dbname>pending_do</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_indent</name>
<dbname>pending_indent</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>no</updatewhereclause>
<name>pending_dr</name>
<dbname>pending_dr</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Item Description</text>
<border>6</border>
<color>33554432</color>
<x>151</x>
<y>2</y>
<height>16</height>
<width>360</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>description_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Code</text>
<border>6</border>
<color>33554432</color>
<x>82</x>
<y>2</y>
<height>16</height>
<width>67</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Supp Source</text>
<border>6</border>
<color>33554432</color>
<x>513</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_sour_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Demand</text>
<border>6</border>
<color>33554432</color>
<x>585</x>
<y>2</y>
<height>16</height>
<width>114</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>demand_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Supply</text>
<border>6</border>
<color>33554432</color>
<x>701</x>
<y>2</y>
<height>16</height>
<width>108</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Stock Qty</text>
<border>6</border>
<color>33554432</color>
<x>811</x>
<y>2</y>
<height>16</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_qty_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>1</alignment>
<text>Oth Supply</text>
<border>6</border>
<color>33554432</color>
<x>913</x>
<y>2</y>
<height>16</height>
<width>103</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>oth_supply_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>Due Date</text>
<border>6</border>
<color>33554432</color>
<x>1431</x>
<y>2</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Plan Supply</text>
<border>6</border>
<color>33554432</color>
<x>1511</x>
<y>2</y>
<height>16</height>
<width>152</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Running Demand</text>
<border>6</border>
<color>33554432</color>
<x>1665</x>
<y>2</y>
<height>16</height>
<width>162</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_demand_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Running Supply</text>
<border>6</border>
<color>33554432</color>
<x>1829</x>
<y>2</y>
<height>16</height>
<width>153</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Running Plan Supply</text>
<border>6</border>
<color>33554432</color>
<x>1984</x>
<y>2</y>
<height>16</height>
<width>145</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_plan_supply_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Independent Demand</text>
<border>6</border>
<color>33554432</color>
<x>2131</x>
<y>2</y>
<height>16</height>
<width>139</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>independent_demand_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Bom Code</text>
<border>6</border>
<color>33554432</color>
<x>2272</x>
<y>2</y>
<height>16</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bom_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Order Opt</text>
<border>6</border>
<color>33554432</color>
<x>2342</x>
<y>2</y>
<height>16</height>
<width>65</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>order_opt_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Batch Qty Type</text>
<border>6</border>
<color>33554432</color>
<x>2409</x>
<y>2</y>
<height>16</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Unit</text>
<border>6</border>
<color>33554432</color>
<x>2511</x>
<y>2</y>
<height>16</height>
<width>24</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Min Order Qty</text>
<border>6</border>
<color>33554432</color>
<x>2537</x>
<y>2</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_order_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Integral Qty</text>
<border>6</border>
<color>33554432</color>
<x>2632</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>integral_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Max Qty</text>
<border>6</border>
<color>33554432</color>
<x>2710</x>
<y>2</y>
<height>16</height>
<width>54</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>max_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Min Qty</text>
<border>6</border>
<color>33554432</color>
<x>2766</x>
<y>2</y>
<height>16</height>
<width>50</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Reorder Qty</text>
<border>6</border>
<color>33554432</color>
<x>2818</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reorder_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Yield Perc</text>
<border>6</border>
<color>33554432</color>
<x>2896</x>
<y>2</y>
<height>16</height>
<width>65</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>yield_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Min Plan Perc</text>
<border>6</border>
<color>33554432</color>
<x>2963</x>
<y>2</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_plan_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Batch Qty</text>
<border>6</border>
<color>33554432</color>
<x>3058</x>
<y>2</y>
<height>16</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Purc Rate</text>
<border>6</border>
<color>33554432</color>
<x>3149</x>
<y>2</y>
<height>16</height>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purc_rate_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Pur Lead Time</text>
<border>6</border>
<color>33554432</color>
<x>3233</x>
<y>2</y>
<height>16</height>
<width>91</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pur_lead_time_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Qc Lead Time</text>
<border>6</border>
<color>33554432</color>
<x>3326</x>
<y>2</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qc_lead_time_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Integral Qty</text>
<border>6</border>
<color>33554432</color>
<x>2632</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Mfg Lead Time</text>
<border>6</border>
<color>33554432</color>
<x>3413</x>
<y>2</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_lead_time_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>19</height>
<width>78</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>82</x>
<y>2</y>
<height>19</height>
<width>67</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>513</x>
<y>2</y>
<height>19</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_sour</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>28</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>151</x>
<y>2</y>
<height>19</height>
<width>360</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>description</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1431</x>
<y>2</y>
<height>19</height>
<width>78</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>due_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1665</x>
<y>2</y>
<height>19</height>
<width>162</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_demand</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1829</x>
<y>2</y>
<height>19</height>
<width>153</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1984</x>
<y>2</y>
<height>19</height>
<width>145</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>running_plan_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2131</x>
<y>2</y>
<height>19</height>
<width>139</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>independent_demand</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2272</x>
<y>2</y>
<height>19</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bom_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2342</x>
<y>2</y>
<height>19</height>
<width>65</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>order_opt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2409</x>
<y>2</y>
<height>19</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty_type</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2511</x>
<y>2</y>
<height>19</height>
<width>24</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2537</x>
<y>2</y>
<height>19</height>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_order_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2632</x>
<y>2</y>
<height>19</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>integral_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2710</x>
<y>2</y>
<height>19</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>max_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2766</x>
<y>2</y>
<height>19</height>
<width>50</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2818</x>
<y>2</y>
<height>19</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reorder_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2896</x>
<y>2</y>
<height>19</height>
<width>65</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>yield_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2963</x>
<y>2</y>
<height>19</height>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_plan_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>23</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3058</x>
<y>2</y>
<height>19</height>
<width>89</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>batch_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>24</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3149</x>
<y>2</y>
<height>19</height>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purc_rate</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>25</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3233</x>
<y>2</y>
<height>19</height>
<width>91</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pur_lead_time</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>26</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3326</x>
<y>2</y>
<height>19</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qc_lead_time</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1511</x>
<y>2</y>
<height>19</height>
<width>152</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>27</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3413</x>
<y>2</y>
<height>19</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_lead_time</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Pending PO</text>
<border>6</border>
<color>0</color>
<x>1018</x>
<y>2</y>
<height>16</height>
<width>98</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_po_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>1</alignment>
<text>Pending DO</text>
<border>6</border>
<color>0</color>
<x>1118</x>
<y>2</y>
<height>16</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_do_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>1</alignment>
<text>Pending Indent</text>
<border>6</border>
<color>0</color>
<x>1222</x>
<y>2</y>
<height>16</height>
<width>103</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_indent_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>1</alignment>
<text>Pending DR</text>
<border>6</border>
<color>0</color>
<x>1327</x>
<y>2</y>
<height>16</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_dr_t</name>
<visible>1</visible>
<font>
<face>Tahoma</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>4</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>585</x>
<y>2</y>
<height>19</height>
<width>114</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>demand</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>701</x>
<y>2</y>
<height>19</height>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>29</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>811</x>
<y>2</y>
<height>19</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>913</x>
<y>2</y>
<height>19</height>
<width>103</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>oth_supply</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>31</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1018</x>
<y>2</y>
<height>19</height>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_po</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>32</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1118</x>
<y>2</y>
<height>19</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_do</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>33</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1222</x>
<y>2</y>
<height>19</height>
<width>103</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_indent</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>34</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1327</x>
<y>2</y>
<height>19</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pending_dr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Tahoma</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment