Commit ead10c34 authored by steurwadkar's avatar steurwadkar

Sorder status Changes mergeing


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104617 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4ce43aa8
@font-face {
font-family: "MuseoLight-300";
src: url("/ibase/webitm/css/fonts/Museo300-Regular.eot");
src: local("Museo 300"), local("Museo-300"),
url("/ibase/webitm/css/fonts/Museo300-Regular.woff") format("woff"),
url("/ibase/webitm/css/fonts/Museo300-Regular.otf") format("opentype"),
url("/ibase/webitm/css/fonts/Museo300-Regular.svg#Museo-300") format("svg");
}
*{
font-family: 'MuseoLight-300';
font-size: 13px;
}
.linkDataDivClassBrow{
position: absolute !important;
top:0 !important;
height: 100%;
overflow: hidden !impportant;
}
.mainContainer{
height:100%;
}
.statusHeader{
border-bottom: 1px solid #ccc;
padding: 5px;
width: auto;
line-height: 20px;
background: #fff7d4;
display: block;
}
.leftAlignDiv > p, .rightAlignDiv > p{
margin:0px;
}
.leftAlignDiv{
width: auto;
float: left;
}
.rightAlignDiv{
width: auto;
text-align: right;
float: right;
padding-left:8px;
}
.orderStatsImg{
width: 32px;
height: 32px;
vertical-align: middle;
}
.orderStatsDiv{
height: 25px;
line-height: 25px;
vertical-align: top;
margin-top: -5px;
}
.eachLineData{
width: calc(100% - 10px);
border-bottom: 1px solid #ccc;
padding: 5px;
display: inline-block;
}
.itemDescrDiv{
display: block;
width: 40%;
float: left;
}
.lineSumryDiv{
display: block;
width: 60%;
float: left;
}
.pendQtyDiv{
display: block;
text-align: right;
}
.shipQtyDiv{
display: block;
text-align: right;
}
.stkQtyDiv{
display: block;
width: 31%;
float: left;
text-align: right;
padding-left: 4px;
}
.closeOrderQtyDiv{
display: block;
width: 48%;
float: left;
text-align: right;
}
.closeOrderSumryDiv{
display: block;
width: 48%;
float: left;
text-align: right;
padding-left: 4px;
}
.statusLine{
display: inline-block;
width: 100%;
margin-bottom: 5px;
}
.pendDueDtLblDiv{
float: left;
display: block;
width: 33%;
}
.shipQtyDueDtDiv{
float: left;
display: block;
width: 33%;
}
.dueDate{
margin-top: 5px;
text-align: right;
}
.dueDateLbl{
margin-top: 5px;
font-weight: bold;
text-align: right;
}
\ No newline at end of file
//Changed by Dayanand on 31/03/08 [Initalization in makeLinks]
//linkAction = new Array();
function makeLinks(actionString, objName)
{
try
{
//Changed by Dayanand on 31/03/08 [Declared inside makeLinks ]
linkAction = new Array();
linkProperties = new Array();
if(actionString.length > 0)
{
var xmldoc=null;
if (window.ActiveXObject)
{
xmldoc = new ActiveXObject("microsoft.XMLDOM");
xmldoc.loadXML(actionString);
}
else
{
var parser = new DOMParser();
xmldoc = parser.parseFromString(actionString,"text/xml");
}
var linksNode = xmldoc.getElementsByTagName( "Links" );
var linksNodeLen = linksNode.length;
if ( linksNodeLen > 0 )
{
var linksChildNodes = linksNode.item(0).childNodes;
var linksChildNodeLen = linksChildNodes.length;
var linCtr = 0;
for( var actNode = 0 ; actNode < linksChildNodeLen ; actNode++ )
{
var linkChildNode = linksChildNodes.item( actNode );
if( linkChildNode.nodeName == "#text" )
{
continue;
}
linkProperties[0] = getLinkNodeValue(linkChildNode, "TargetObject"); //( linkChildNode.getElementsByTagName( "TargetObject" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "TargetObject" ).item(0).firstChild.nodeValue : "" ;
linkProperties[1] = getLinkNodeValue(linkChildNode, "LinkForm"); //( linkChildNode.getElementsByTagName( "LinkForm" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "LinkForm" ).item(0).firstChild.nodeValue : "" ;
linkProperties[2] = getLinkNodeValue(linkChildNode, "LinkTitle"); //( linkChildNode.getElementsByTagName( "LinkTitle" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "LinkTitle" ).item(0).firstChild.nodeValue : "" ;
linkProperties[3] = getLinkNodeValue(linkChildNode, "LinkUri"); //( linkChildNode.getElementsByTagName( "LinkUri" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "LinkUri" ).item(0).firstChild.nodeValue : "" ;
linkProperties[4] = getLinkNodeValue(linkChildNode, "LinkType"); //( linkChildNode.getElementsByTagName( "LinkType" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "LinkType" ).item(0).firstChild.nodeValue : "" ;
linkProperties[5] = getLinkNodeValue(linkChildNode, "LinkArg"); //( linkChildNode.getElementsByTagName( "LinkArg" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "LinkArg" ).item(0).firstChild.nodeValue : "" ;
linkProperties[6] = getLinkNodeValue(linkChildNode, "UpdateFlag"); //( linkChildNode.getElementsByTagName( "UpdateFlag" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "UpdateFlag" ).item(0).firstChild.nodeValue : "" ;
linkProperties[7] = getLinkNodeValue(linkChildNode, "RightsChar"); //( linkChildNode.getElementsByTagName( "RightsChar" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "RightsChar" ).item(0).firstChild.nodeValue : "" ;
linkProperties[8] = getLinkNodeValue(linkChildNode, "Image"); //( linkChildNode.getElementsByTagName( "Image" ).item(0).firstChild.nodeValue != null ) ? linkChildNode.getElementsByTagName( "Image" ).item(0).firstChild.nodeValue : "" ;
linkAction[linCtr++] = new LinkObject(linkProperties);
}
}
}
//Changed by Dayanand on 31/03/08 [If actionString is blank than linkAction = null ]start
else
{
linkAction = null;
}
}
catch (e)
{
alert("Inside makeLinks catch:" + e);
}
//Changed by Dayanand on 31/03/08 [If actionString is blank than linkAction = null ]end
}
function getLinkNodeValue( linkChildNode, tagName )
{
var strTagName = tagName;
var retValue = "";
if( linkChildNode.getElementsByTagName( ""+strTagName ) != undefined &&
linkChildNode.getElementsByTagName( ""+strTagName ).item(0) != undefined &&
linkChildNode.getElementsByTagName( ""+strTagName ).item(0).firstChild != undefined &&
linkChildNode.getElementsByTagName( ""+strTagName ).item(0).firstChild.nodeValue != undefined )
{
retValue = linkChildNode.getElementsByTagName( "" +strTagName ).item(0).firstChild.nodeValue;
}
return retValue;
}
function LinkObject( linkProperties )
{
this.targetObject = linkProperties[0];
this.linkForm = linkProperties[1];
this.linkTitle = linkProperties[2];
this.linkUri = linkProperties[3];
this.linkType = linkProperties[4];
this.linkArg = linkProperties[5];
this.updateFlag = linkProperties[6];
this.rightsChar = linkProperties[7];
this.image = linkProperties[8];
}
//Changed by Dayanand on 23/08/07 [New Method for invoking Links] Start
function invokeLinks( linkId, linkType )
{
var url = null;
var qryStr = null;
var targetObjName = linkAction[linkId].targetObject;
var linkForm = linkAction[linkId].linkForm;
var linkTitle = linkAction[linkId].linkTitle;
var pageCtx = (targetObjName.length + 2 == linkForm.length )? linkForm.charAt(targetObjName.length):'1';
var objCtx = (targetObjName.length == linkForm.length+2) ? linkForm.charAt(targetObjName.length+1):'1';
var argNames = linkAction[linkId].linkArg;
var targetField = new Array();
var sourceField = new Array();
var dateType = new Array();
var targetQryStr = new Array();
var argNameArray = argNames.split(",");
for ( cnt = 0 ; cnt < argNameArray.length ; cnt++ )
{
targetField[cnt] = argNameArray[cnt].substring( argNameArray[cnt].lastIndexOf(":") + 1 , argNameArray[cnt].length) ;
sourceField[cnt] = argNameArray[cnt].substring( 0 , argNameArray[cnt].lastIndexOf(".")) ;
dateType[cnt] = argNameArray[cnt].substring( argNameArray[cnt].lastIndexOf(".")+1 , argNameArray[cnt].lastIndexOf(":")) ;
}
qryStr = getQueryParam( sourceField, targetField );
var qryStrArray = qryStr.split("&");
for ( cnt = 0 ; cnt < qryStrArray.length ; cnt++ )
{
targetQryStr[cnt] = qryStrArray[cnt].substring( qryStrArray[cnt].lastIndexOf("=")+1, qryStrArray[cnt].length) ;
}
var queryParam = targetQryStr[0];
for (var count = 1; count < targetQryStr.length; count++)
{
queryParam = queryParam + trims( targetQryStr[count] ) + ":";
}
//Changed by Dayanand on 05/09/07 []
var paramType = "";
for (var countp = 0; countp < dateType.length; countp++ )
{
paramType += dateType[countp]+":";
}
//Link 1 = View
if ( linkType == "1" )
{
if ( pageCtx == "1" && objCtx == "1" )
{
//Changed by Dayanand on 31/03/08 [Pass OBJ_CTX]
//url = "/ibase/webitm/jsp/ITMLinkPage.jsp?&TAR_OBJ_NAME=" + targetObjName + "&LINK_DESCR=" + linkTitle + "&QRY_PARAM=" + queryParam + "&QRY_PARAM_TYPE=" + paramType+ "";
url = "/ibase/webitm/jsp/ITMLinkPage.jsp?&TAR_OBJ_NAME=" + targetObjName + "&LINK_DESCR=" + linkTitle + "&QRY_PARAM=" + queryParam + "&QRY_PARAM_TYPE=" + paramType+ "&OBJ_CTXT="+objCtx+"";
//Changed by Dayanand on 06/09/07 [Change resizable=yes]
//window.open( url, linkAction[ linkId ].title, 'toolbar=no,status=yes,resizable=no,scrollbars=no,screenx=0,screeny=30,left=225,top=420,width=780,height=250');
window.open( url, linkAction[ linkId ].title, 'toolbar=no,status=yes,resizable=yes,scrollbars=no,screenx=0,screeny=30,left=225,top=420,width=780,height=250');
}
else
{
url = "/ibase/webitm/jsp/ITMTransactionEditor.jsp?OBJ_NAME=" + targetObjName + "&PAGE_CONTEXT=" + pageCtx + "&OBJ_CONTEXT=" + objCtx + "&EDIT_FLAG=V&DB_ID=" + queryParam + "&PARAM_TYPE=" + paramType + "";
url += qryStr;
//Changed by Dayanand on 07/09/07 [Change height & left position]
window.open( url, linkAction[ linkId ].title, 'toolbar=no,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550');
}
}
//Link 2 = Edit
else if ( linkType == "2" )
{
url = "/ibase/webitm/jsp/ITMTransactionEditor.jsp?OBJ_NAME=" + targetObjName + "&PAGE_CONTEXT=" + pageCtx + "&OBJ_CONTEXT=" + objCtx + "&EDIT_FLAG=E&DB_ID=" + queryParam + "&PARAM_TYPE=" + paramType + "";
url += qryStr;
//Changed by Dayanand on 07/09/07 [Change height & left position]
window.open( url, linkAction[ linkId ].title, 'toolbar=no,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550');
}
//Link 3 = Report
else if ( linkType == "3" )
{
var targetUrl=null;
url = linkAction[linkId].linkUri;
if ( url.indexOf("/ibase/bi") != -1 )
{
//Changed by Dayanand on 07/09/07 [Change height & left position]
//Changed by Dhruv on 10/10/2007 to only add .focus to focus screen if reloaded.
//Changed by Roshan on 09/01/08 [To enable scrolls].Start
//var newWin = window.open( targetUrl, linkAction[linkId].title, 'toolbar=no,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550' );
//Changed by Dayanand on 12/01/10[ Changes for passing parameter throw url || SY89SUN107 ]start
//var targetUrl = url + "?bi=" + targetObjName + ".xml" + "&common=true&target=browser" + "&drill=Indrill" + qryStr;
if ( url.indexOf("?") != -1 )
{
targetUrl = url + "&bi=" + targetObjName + ".xml" + "&common=true&target=browser" + "&drill=Indrill" + qryStr;
}
else
{
targetUrl = url + "?bi=" + targetObjName + ".xml" + "&common=true&target=browser" + "&drill=Indrill" + qryStr;
}
//Changed by Dayanand on 12/01/10[ Changes for passing parameter throw url || SY89SUN107 ]end
var newWin = window.open( targetUrl, linkAction[linkId].title, 'toolbar=no,scrollbars=yes,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550' );
newWin.focus();
}
else
{
url += "?" + qryStr;
//Changed by Dayanand on 07/09/07 [Change height & left position]
//Changed by Dhruv on 10/10/2007 to only add .focus to focus screen if reloaded.
//Changed by Roshan on 09/01/08 [To enable scrolls].Start
//var newWin = window.open( url, linkAction[linkId].title, 'toolbar=no,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550' );
var newWin = window.open( url, linkAction[linkId].title, 'toolbar=no,scrollbars=yes,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550' );
newWin.focus();
}
}
//Link 4 = Add
else if ( linkType == "4" )
{
var linkUri = linkAction[linkId].linkUri;
var url = "/ibase/webitm/jsp/ITMTransactionEditor.jsp?OBJ_NAME=" + targetObjName + "&PAGE_CONTEXT=" + pageCtx + "&OBJ_CONTEXT=" + objCtx + "&EDIT_FLAG=A&DB_ID=" + queryParam + "&PARAM_TYPE=" + paramType + "";
url += qryStr;
//Changed by Dayanand on 07/09/07 [Change height & left position]
window.open( url, linkAction[linkId].title, 'toolbar=no,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550' );
}
else if ( linkType == "5" )
{
alert("Not implimented yet");
}
//Link 6 = Process
else if ( linkType == "6" )
{
url = "/ibase/webitm/jsp/ITMProcessPageEditor.jsp?OBJ_NAME=" + targetObjName + "&OBJ_TYPE=P";
url += qryStr;
//Changed by Dayanand on 07/09/07 [Change height & left position]
//Changed by Dayanand on 22/10/10 [Add scrollbar]
window.open( url, linkAction[ linkId ].title, 'toolbar=no,status=yes,resizable=yes,screenx=0,screeny=30,left=220,top=80,width=790,height=550,scrollbars=yes' );
}
}
//changed by Roshan 09/01/08 [To enable link for process].Start
function buildArgQueryParam( sourceField, targetField )
{
//START FOR ARGUMENTS
argNameArr = new Array();
argValueArr = new Array();
var retArgStr = "";
for ( argCnt = 0 ; argCnt < document.forms['brow'].elements.length ; argCnt++ )
{
if ( document.forms['brow'].elements[argCnt].id != null && document.forms['brow'].elements[argCnt].id != undefined && document.forms['brow'].elements[argCnt].id.length > 0 )
{
//IMPORTANT Avoid the blank entries in array
argNameArr[argCnt] = document.forms['brow'].elements[argCnt].id ;
argValueArr[argCnt] = document.getElementById ( document.forms['brow'].elements[argCnt].id ).value;
}
}
for(var tdCount = 0 ; tdCount < argNameArr.length; tdCount++)
{
var argTempName = argNameArr[tdCount];
for ( var sourceFieldCnt = 0 ; sourceFieldCnt < sourceField.length ; sourceFieldCnt++)
{
if ( sourceField[sourceFieldCnt] == argTempName )
{
retArgStr += "&"+targetField[sourceFieldCnt] + "=" + trim( argValueArr[tdCount] );
}
}
}
return retArgStr;
}
//changed by Roshan 09/01/08 [To enable link for process].End
//Changed by Dayanand on 23/08/07 [New Method for invoking Links] End
function getQueryParam( sourceField, targetField )
{
var reqStr="";
var currDomId="";
//Changed by Dayanand on 02/08/10[If change sorting in brow window || not get selected transaction call by link]
//var currDomId = getCurrDomId();
var currDomId = getSellectedDomId();
if ( currDomId == null )
{
currDomId = getCurrDomId();
}
var tab = document.getElementById( "main" );
var row = tab.getElementsByTagName( "tr" )[currDomId];
for ( var sourceFieldCnt = 0 ; sourceFieldCnt < sourceField.length ; sourceFieldCnt++)
{
//Changed by Dayanand on 26/04/08 [Initialise checkFieldExist].
var checkFieldExist = "N";
for(var tdCount = 0 ; tdCount < ( row.getElementsByTagName( "td" ) ).length; tdCount++)
{
var colObj = row.getElementsByTagName( "td" )[tdCount];
if( colObj.childNodes.item(0)!= null )
{
var colValue = (( colObj.childNodes.item(0).firstChild.data )!= null) ? colObj.childNodes.item(0).firstChild.data:"null";
var colName = colObj.getAttribute( "NAME" );
if ( sourceField[sourceFieldCnt] == colName )
{
reqStr+= "&" + targetField[ sourceFieldCnt ] + "=" + trims( colValue );
//Changed by Dayanand on 26/04/08 [Setting value of checkFieldExist to Y ].
checkFieldExist = "Y";
}
//Changed by Dayanand on 22/04/08 [If source field not in brow td it's take source field is as value]start
if ( sourceField[sourceFieldCnt] != colName && checkFieldExist == "N" )
{
if ( tdCount == ( row.getElementsByTagName( "td" ) ).length -1 )
{
reqStr+= "&" + targetField[ sourceFieldCnt ] + "=" + sourceField[sourceFieldCnt];
checkFieldExist = "Y";
}
}
}
//Changed by Dayanand on 22/04/08 [If source field not in brow td it's take source field is as value]end
}
}
//changed by Roshan 09/01/08 [To enable link for process].Start
//return reqStr;
if ( obj_Type == 'P' )
{
var returnStrBrow = buildArgQueryParam( sourceField, targetField );
//Change by monif on 6/16/2008 to set empcode if it is in argument screen
//return (reqStr+returnStrBrow);
return ( returnStrBrow + reqStr );
}
else
{
return reqStr;
}
//changed by Roshan 09/01/08 [To enable link for process].End
}
//Changed by Dayanand on 02/08/10[If change sorting in brow window || not get selected transaction call by link]satrt
function getSellectedDomId()
{
var noCell = null;
var selTab = document.getElementById( "main" );
for ( noCell =1 ; noCell <= selTab.getElementsByTagName( "tr" ).length ; noCell++)
{
var selRow = selTab.getElementsByTagName( "tr" )[noCell];
if ( selRow.className == 'selectedClass' )
{
return noCell;
break;
}
}
}
//Changed by Dayanand on 02/08/10[If change sorting in brow window || not get selected transaction call by link]end
//IMPORTANT Shravan 24/05/2007
function trims(str)
{
while(str.charAt(0)=='' || str.charAt(0)=='\s')
{
str = str.substring(1,str.length);
}//Changed by Monif on 11/06/09[Issue occured on Compressed js]
str = leftTrim(str);
return str;
}
//Changed by Dayanand on 05/09/07 [] start
function viewLinkBrow(objName,queryParam,paramType)
{
onLoadShow( "linkBrowDiv" );
viewDataBrow( objName, queryParam, paramType );
}
function viewDataBrow(objName,queryParam,paramType)
{
document.getElementById("linkBrowDiv").className = "linkDataDivClassBrow";
showDataBrow( objName, queryParam, paramType );
}
function showDataBrow( objName, queryParam, paramType )
{
var contnValue= true;
var params = queryParam.split(':');
var namesParam = paramType.split(':');
if( namesParam.length != params.length )
{
alert("Enter the value");
enableButton();
document.getElementById( "linkBrowDiv" ).innerHTML = "";
}
else if( queryParam.length > 1 )
{
for( var paramCtr = 0; paramCtr < params.length-1; paramCtr++ )
{
if( params[paramCtr].length < 1 )
{
alert("Enter the value");
enableButton();
document.getElementById( "linkBrowDiv" ).innerHTML="";
contnValue = 'false';
break;
}
}
if( contnValue != 'false' )
{
var url = "/ibase/WebITMLinkControllerServlet?OBJ_NAME=" + objName + "&PAGE_CTX=1&OBJ_CTX=1&EDIT_FLAG=V&QRY_PARAM=" + queryParam + "&QRY_PARAM_TYPE=" + paramType + "&ACTION=VIEW_DETAIL&CONTENT=HTML";
makeRequest(url, renderDataBrow);
}
}
else if( queryParam.length < 1 )
{
var url = "/ibase/WebITMLinkControllerServlet?OBJ_NAME=" + objName + "&PAGE_CTX=1&OBJ_CTX=1&EDIT_FLAG=V&QRY_PARAM=" + queryParam + "&QRY_PARAM_TYPE=" + paramType + "&ACTION=VIEW_DETAIL&CONTENT=HTML";
makeRequest( url, renderDataBrow );
}
}
function renderDataBrow( xmldoc )
{
document.getElementById('linkBrowDiv').innerHTML= xmldoc;
}
function loadLink()
{
var argArr = new Array();
//Changed by Dayanand on 31/03/08 [Pass OBJ_CTXT ]
//var url = "/ibase/WebITMLinkControllerServlet?OBJ_NAME="+link_obj_name+"&ACTION=GET_LINKS";
var url = "/ibase/WebITMLinkControllerServlet?OBJ_NAME="+link_obj_name+"&OBJ_CTXT="+obj_ctx+"&ACTION=GET_LINKS";
makeRequest(url, makeLinks);
}
var selClassName = 'selectedClass';
//Changed by Dayanand on 01/04/08 [Initialize in drawActionsMenu method]
//var deSelClassName = 'deSelectedClass';
var menuDivWidth = 0;
//Changed by Dayanand on 01/04/08 [ Declared globaly Because display all row selected in brow link ]
var prevSelRow = null;
/*function setSelection( obj )
{
//Changed by Dayanand on 01/04/08 [Comment because always get null]
//var prevSelRow = null;
var noOfCells = obj.cells.length;
if( obj.className != 'selectedClass' )
{
obj.className = selClassName;
currDBId = obj.id;
currDomId = obj.name;
}
if( prevSelRow != null && prevSelRow != obj )
{
prevSelRow.className = 'trClass';
}
prevSelRow = obj;
} */
var parentContainer,
parentContainerHeight = 0,
isProcessObj = false;
function createContextMenu()
{
// browDataContainerDivId12 : For ITMTransactionEditor
// dataDiv0 / groupDiv
// itmProcessPageEditorBody: For ITMProcessPageEditor
parentContainer = document.getElementById("browDataContainerDivId12");
deSelClassName = 'deSelectedClass';
consoleWrite("parentContainer 1 [" + parentContainer + "]");
if( parentContainer == null || parentContainer == undefined )
{
parentContainer = document.getElementById("tabContent1");
deSelClassName = 'trClass';
consoleWrite("parentContainer 12 [" + parentContainer + "]");
isProcessObj = true;
}
consoleWrite("parentContainer 2 [" + parentContainer + "]");
if( parentContainer != null && parentContainer != undefined )
{
consoleWrite( 'TOP : ' + parentContainer.top + '] OFFSET-TOP[' + parentContainer.offsetTop + ']');
parentContainerHeight = parentContainer.style.height;
if( parentContainerHeight == '' )
{
parentContainerHeight = parentContainer.offsetHeight;
}
consoleWrite("parentContainer 22 [" + parentContainerHeight + "]");
}
drawActionsMenu();
}
var linkAction;
var linkProperties;
function drawActionsMenu()
{
//Changed by Dayanand on 31/03/08 [ Because in detail page deSelClassName is initializaion 'trClass']
//deSelClassName = 'deSelectedClass';
//var str = "<DIV id='Container' class='trContextMenu-Container '>" +
var str = "<DIV id='linkMenuDiv' class='trContextMenu'>";
var version = getBrowserVersion(),
mouseEvtJS = "";
/*str += "<TABLE>";
if ( linkAction != null && linkAction.length > 0 )
{
str += "<TR><TD><TD></TR>";
for(var i = 0; i < linkAction.length; i++)
{
// Changed By Roshan 22/11/07 [Gui related Changes:Appling Theme]
//str += "<TR id='act" + i +"' style='font-family:verdana; font:11' onMouseOver='this.className=selClassName' onMouseOut='this.className=deSelClassName' onClick='invokeLinks(" + i + ",\"" + linkAction[ i ].linkType + "\");hideContextMenu();'><TD><nobr><image src='../images/collapseall.gif'>&nbsp;&nbsp;" + linkAction[ i ].linkTitle + "</nobr></TD></TR>";
str += "<TR id='act" + i +"' style='font-family:verdana; background-color: #B2BEB5; font:11' onMouseOver='this.className=selClassName' onMouseOut='this.className=deSelClassName' onClick='invokeLinks(" + i + ",\"" + linkAction[ i ].linkType + "\");hideContextMenu();'><TD><nobr><image src='../images/"+displayTheme+"/collapseall.gif'>&nbsp;&nbsp;" + linkAction[ i ].linkTitle + "</nobr></TD></TR>";
if ( menuDivWidth < ( linkAction[i].linkTitle ).length )
{
menuDivWidth = ( linkAction[i].linkTitle ).length;
}
}
}
str+="</TABLE>";
*/
str += "<div id='nav'><ul id='linkMenuList'>";
if ( linkAction != null && linkAction.length > 0 )
{
for(var i = 0; i < linkAction.length; i++)
{
// Changed By Roshan 22/11/07 [Gui related Changes:Appling Theme]
//str += "<TR id='act" + i +"' style='font-family:verdana; font:11' onMouseOver='this.className=selClassName' onMouseOut='this.className=deSelClassName' onClick='invokeLinks(" + i + ",\"" + linkAction[ i ].linkType + "\");hideContextMenu();'><TD><nobr><image src='../images/collapseall.gif'>&nbsp;&nbsp;" + linkAction[ i ].linkTitle + "</nobr></TD></TR>";
//if ( navigator.userAgent.indexOf('MSIE 8.0') != -1 ) //MSIE 8
// Changed by Reema on 22/05/14 [onmouseOver and onMouseOut effect for IE10]
if ( version == 8 || version == 9 || version == 10 ) //MSIE 8 or 9 or 10
// Changed by Reema on 22/05/14 [onmouseOver and onMouseOut effect for IE10]-End
{
mouseEvtJS = " onMouseOver='javascript:mouseGoesOver(this);' onMouseOut='javascript:mouseGoesOut(this);' ";
}
str += "<li id='linkMenuListItem' " + mouseEvtJS + " ><div id='act" + i +"' onClick='invokeLinks(" + i + ",\"" + linkAction[ i ].linkType + "\");hideContextMenu();'>" + linkAction[ i ].linkTitle + "</div></li>";
if ( menuDivWidth < ( linkAction[i].linkTitle ).length )
{
menuDivWidth = ( linkAction[i].linkTitle ).length;
}
}
}
str+="</ul></div>";
str+="</DIV>";
if( !isProcessObj )
{
document.getElementById( 'brow' ).insertAdjacentHTML( "BeforeEnd", str );
}
else
{
document.getElementById( 'brow2' ).insertAdjacentHTML( "BeforeEnd", str );
}
}
function mouseGoesOver(elem)
{
$(elem).css({
"color": "#fff",
"background": "#4EBD4A repeat-x 0 -100px",
"background": "rgb(78,189,74) repeat-x 0 -100px",
"cursor" : "hand"
});
$(elem).children().css({
"color": "#fff"
});
}
function mouseGoesOut(elem)
{
$(elem).css({
"color": "#62412E",
"background": "#ddd repeat-x 0 0",
"background": "rgb(221,221,221) repeat-x 0 0"
});
$(elem).children().css({
"color": "#62412E"
});
}
//Commented to bug fixing - Prajyot Will Remove this commented code soon. Starts
/*
//Changed By Mahesh Patidar on 10SEP13[to pass event in showcontextMenu()]
function showContexMenu(evt)
{
var ctxEvent = evt;
//Added By Prajyot on 09JAN14 [to get window event if event is null]
if(!ctxEvent || ctxEvent == undefined )
{
ctxEvent= window.event;
}
var xCoordinate = parseInt( ctxEvent.clientX );
var yCoordinate = parseInt( ctxEvent.clientY );
//Changed by Dayanand on 21/04/08 [ Insert if condition , when linkaction is null can not draw linkMenuDiv ]
if ( linkAction != null && linkAction.length > 0 )
{
if( document.getElementById('linkMenuDiv') == null )
{
createContextMenu();
//document.getElementById('linkMenuDiv').style.width = menuDivWidth * 9;
}
//Added by Dnyaneshwar Chavan [CO3ASUN005][Resolved the issue of Context menu not display multiple browsers] Start
var version = getBrowserVersion();
//if ( navigator.userAgent.indexOf('MSIE 8.0') != -1 ) //MSIE 8
if ( version > 0 && version <= 8) //MSIE 8
{
document.getElementById('linkMenuDiv').style.position = "absolute";
//document.getElementById('Container').style.width = "auto";
//document.getElementById('Container').style.height = "auto";
yCoordinate = yCoordinate - 20;
xCoordinate = xCoordinate - 15;
}
else
{
yCoordinate = yCoordinate + 7;
}
//Added by Dnyaneshwar Chavan [CO3ASUN005][Resolved the issue of Context menu not display multiple browsers] End
document.getElementById('linkMenuDiv').style.top = yCoordinate;
document.getElementById('linkMenuDiv').style.display = "block";
document.getElementById('linkMenuDiv').style.visibility = "hidden";
if ( (document.getElementById('linkMenuDiv').style.left = xCoordinate + ( menuDivWidth * 9 ) ) > document.body.offsetWidth )
{
document.getElementById('linkMenuDiv').style.left = xCoordinate - ( ( menuDivWidth * 9 ) + 10 );
}
else
{
document.getElementById('linkMenuDiv').style.left = xCoordinate + 10;
}
consoleWrite("yCoordinate first right clicked...[" + yCoordinate + "]" + isProcessObj);
if( version > 0 && version <= 8 )
{
var tempY = yCoordinate + (document.documentElement.scrollTop || document.body.scrollTop);
if(tempY==yCoordinate)
{
document.getElementById('linkMenuDiv').style.top = tempY - 50;
}
else
{
document.getElementById('linkMenuDiv').style.top = tempY - 70;
}
}
else
{
document.getElementById('linkMenuDiv').style.top = calcYCord( ctxEvent, yCoordinate );
}
document.getElementById('linkMenuDiv').style.visibility = "visible";
}
}
// Added by Raju K
function calcYCord( evt, yCoordinate )
{
var clickedElement = evt.srcElement;
var tdFound = false;
while( !tdFound )
{
consoleWrite('clickedElement[' + clickedElement + ']' + clickedElement.offsetTop);
if( clickedElement instanceof HTMLTableCellElement )
{
tdFound = true;
break;
}
clickedElement = clickedElement.parentElement;
}
if( clickedElement != null )
{
consoleWrite('Cliked yCoordinate [' + yCoordinate + '] actual clickedElement offsetTop [' + clickedElement.offsetTop + ']clickedElement offsetHeight>>' + clickedElement.offsetHeight );
consoleWrite('Cliked actual clickedElement Top [' + clickedElement.style.top + ']clickedElement Height>>' + clickedElement.style.top );
yCoordinate = clickedElement.offsetTop;
}
*/
// consoleWrite("parentContainer 31 [" + parentContainer + "][" + yCoordinate + "]");
// if( parentContainer != null && parentContainer != undefined )
// {
// parentContainer.style.overflow = "hidden";
// }
/*var linkYCord = yCoordinate;
var linkHeight = 0;
var linkDiv = document.getElementById( 'linkMenuList' );
if( linkDiv != undefined )
{
linkHeight = linkDiv.offsetHeight;
}
var parentHeight;
var totalHeight;
if( window.innerWidth != undefined)
{
parentHeight = parseInt(parentContainerHeight);
totalHeight = parseInt(window.innerHeight);
}
else if ( document.documentElement.clientHeight != undefined && document.documentElement.clientHeight != 0)
{
parentHeight = parseInt(parentContainerHeight);
totalHeight = document.documentElement.clientHeight;
}
else
{
//IE 4 compatible
parentHeight = parseInt(parentContainerHeight);
totalHeight = document.body.clientHeight;
}
var pixels = parentHeight;
var tempHeightVar = parentContainerHeight + '';
if( tempHeightVar.indexOf('%') != -1 )
{
pixels = totalHeight *(parentHeight/100);
}
else if( totalHeight > pixels )
{
pixels = totalHeight;
}
consoleWrite("var pixels totalHeight[" + totalHeight + "]parentHeight[" + parentHeight + "]");
consoleWrite("yCoordinate[" + yCoordinate + "]linkHeight[" + linkHeight + "]" + pixels);
if( ( yCoordinate + linkHeight ) >= pixels )
{
var yCoord = pixels - ( yCoordinate + linkHeight ) ;
linkYCord = yCoordinate + yCoord;
}
else
{
linkYCord = yCoordinate - 10;
}
consoleWrite("parentContainer 32 [" + parentContainer + "][" + linkYCord + "]");
if( parentContainer != null && parentContainer != undefined )
{
// parentContainer.style.overflow = "hidden";
}
*/
// return yCoordinate;
//}
//Endded by Raju
//Commented to bug fixing - Prajyot Will Remove this commented code soon. Ends
//Added by Lokesh on 5-july-2016
var clientXCord , clientYCord ;
document.addEventListener('mousemove',
function (event) {
var para = document.getElementById('dataDivID12');
clientXCord = event.clientX;
clientYCord = event.clientY;
}
);
//Ended by Lokesh on 5-july-2016
function showContexMenu(evt)
{
var ctxEvent = evt;
//Added By Prajyot on 09JAN14 [to get window event if event is null]
if(!ctxEvent || ctxEvent == undefined )
{
ctxEvent= event || window.event;
}
var xCoordinate = parseInt( ctxEvent.clientX );
var yCoordinate = parseInt( ctxEvent.clientY );
//Changed by Dayanand on 21/04/08 [ Insert if condition , when linkaction is null can not draw linkMenuDiv ]
if ( linkAction != null && linkAction.length > 0 )
{
if( document.getElementById('linkMenuDiv') == null )
{
createContextMenu();
//document.getElementById('linkMenuDiv').style.width = menuDivWidth * 9;
}
//Added by Dnyaneshwar Chavan [CO3ASUN005][Resolved the issue of Context menu not display multiple browsers] Start
var version = getBrowserVersion();
//if ( navigator.userAgent.indexOf('MSIE 8.0') != -1 ) //MSIE 8
if ( version > 0 && version <= 8) //MSIE 8
{
document.getElementById('linkMenuDiv').style.position = "absolute";
yCoordinate = yCoordinate - 20;
xCoordinate = xCoordinate - 15;
}
else
{
yCoordinate = yCoordinate + 7;
}
//Added by Dnyaneshwar Chavan [CO3ASUN005][Resolved the issue of Context menu not display multiple browsers] End
document.getElementById('linkMenuDiv').style.top = yCoordinate;
document.getElementById('linkMenuDiv').style.display = "block";
document.getElementById('linkMenuDiv').style.visibility = "hidden";
document.getElementById('linkMenuDiv').style.left = xCoordinate + 10;
consoleWrite("yCoordinate first right clicked...[" + xCoordinate + "][" + yCoordinate + "]" + isProcessObj);
if( version > 0 && version < 8 )
{
var tempY = yCoordinate + (document.documentElement.scrollTop || document.body.scrollTop);
if(tempY==yCoordinate)
{
document.getElementById('linkMenuDiv').style.top = tempY - 50;
}
else
{
document.getElementById('linkMenuDiv').style.top = tempY - 70;
}
}
else if(version == 8 || version == 9)
{
repositionIEMenuLink( ctxEvent, xCoordinate, yCoordinate );
}
else
{
repositionMenuLink( ctxEvent, xCoordinate, yCoordinate );
}
document.getElementById('linkMenuDiv').style.visibility = "visible";
}
}
function repositionMenuLink( evt, xCoordinate, yCoordinate )
{
var clickedElement = evt.target || evt.srcElement;
var tdFound = false;
while( !tdFound )
{
consoleWrite('clickedElement[' + clickedElement + ']' + clickedElement.offsetTop);
if( clickedElement instanceof HTMLTableCellElement )
{
tdFound = true;
break;
}
clickedElement = clickedElement.parentElement;
}
if( clickedElement != null )
{
consoleWrite('Cliked yCoordinate [' + yCoordinate + '] actual clickedElement offsetTop [' + clickedElement.offsetTop + ']clickedElement offsetLeft>>' + clickedElement.offsetLeft+',offsetRight:'+ clickedElement.offsetRight+',offsetBottom:'+clickedElement.offsetBottom );
//Added by Lokesh on 5-july-2016
//document.getElementById('linkMenuDiv').style.left = clickedElement.offsetLeft;
//document.getElementById('linkMenuDiv').style.top = clickedElement.offsetTop;
if( clientYCord < 250 )
{
document.getElementById('linkMenuDiv').style.left = clientXCord;
document.getElementById('linkMenuDiv').style.top = clientYCord-100;
}
else
{
document.getElementById('linkMenuDiv').style.left = clientXCord;
document.getElementById('linkMenuDiv').style.top = clientYCord-150;
}
//Ended by Lokesh on 5-july-2016
}
else
{
document.getElementById('linkMenuDiv').style.left = xCoordinate;
document.getElementById('linkMenuDiv').style.top = yCoordinate;
}
//changed by vishal pathare
document.getElementById('linkMenuDiv').style.position= "fixed";
document.getElementById('linkMenuDiv').style.zIndex = "1002";
}
function repositionIEMenuLink( evt, xCoordinate, yCoordinate )
{
var clickedElement = evt.srcElement;
var tdFound = false;
while( !tdFound )
{
consoleWrite('clickedElement[' + clickedElement.nodeName + ']');
consoleWrite('clickedElement[' + clickedElement.parentNode.nodeName);
if("TD" == clickedElement.nodeName )
{
tdFound = true;
break;
}
clickedElement = clickedElement.parentNode;
}
if( clickedElement != null )
{
consoleWrite('Cliked yCoordinate [' + yCoordinate + '] \n actual clickedElement offsetTop [' + clickedElement.offsetTop + '] \n clickedElement offsetLeft>>' + clickedElement.offsetLeft );
document.getElementById('linkMenuDiv').style.top = clickedElement.offsetTop;
document.getElementById('linkMenuDiv').style.left = clickedElement.offsetLeft;
}
else
{
document.getElementById('linkMenuDiv').style.left = xCoordinate;
document.getElementById('linkMenuDiv').style.top = yCoordinate;
}
}
function hideContextMenu()
{
//Added By Prajyot - Ajinkya : To detect MobileOS and click on row/cell
var mobileOS = getMobileOS();
if( event !== undefined && ( mobileOS == 'iOS' || mobileOS == 'Android' ) )
{
try
{
var evtTarget = event.target.nodeName;
if( evtTarget == 'TD' || evtTarget == 'TR' || evtTarget == 'td' || evtTarget == 'tr')
{
return;
}
}
catch(e)
{
//DO Nothing
}
}
if( document.getElementById('linkMenuDiv') != null )
{
document.getElementById('linkMenuDiv').style.display = "none";
}
}
function getCurrDBId()
{
return currDBId;
}
function getCurrDomId()
{
return currDomId;
}
//Changed by Dayanand on 05/09/07 [] end
//Changed by Monif on 08/06/09 [trimming leading whitespaces]Start
function leftTrim(sVal)
{
sTrimmed = "";
bFoundNonBlank = false;
for (i = 0; i < sVal.length; i++)
{
if (bFoundNonBlank
|| (sVal.charAt(i) != " "
&& sVal.charAt(i) != "\f"
&& sVal.charAt(i) != "\n"
&& sVal.charAt(i) != "\r"
&& sVal.charAt(i) != "\t"
&& sVal.charCodeAt(i) != "160"))
{
sTrimmed = sTrimmed + sVal.charAt(i);
bFoundNonBlank = true;
}
}
return sTrimmed;
}
//Changed by Monif on 08/06/09 [trimming leading whitespaces]End
function consoleWrite(logString)
{
if( typeof window.console !== "undefined" )
{
console.log('Write to console '+ new Date() +' :' + logString);
}
}
//Changes By Prajyot on 09JAN14 [To detect IE Browser version]Start
function getBrowserVersion()
{
var version = -1; //NON IE Browser version
var broserName = navigator.appName;
if( broserName == 'Microsoft Internet Explorer' )
{
var browserInfo = navigator.userAgent;
var substrValue = browserInfo.substring( browserInfo.indexOf("MSIE") );
var browserVersion = substrValue.substring( 0, substrValue.indexOf(";") );
version = parseInt( browserVersion.substring( browserVersion.indexOf(" ") ) );
}
return version;
}
//Changes By Prajyot on 09JAN14 [To detect IE Browser version]End
//Added by Santosh on 13/02/2017 to remove duplicate rows from table [Start]
function removeDuplicateRows()
{
function getVisibleRowText($row)
{
return $row.find('td:visible').text().toLowerCase();
}
$("table[id='invoiceDetails']").find('tr').each(function(index, row)
{
var $row = $(row);
$row.nextAll('tr').each(function(index, next)
{
var $next = $(next);
if(getVisibleRowText($next) == getVisibleRowText($row))
{
$next.remove();
}
})
});
var orderStatus = document.getElementById("orderStatus").value;
if("C" == orderStatus)
{
document.getElementById("dueDateLine").style.display = "none";
}
}
//Added by Santosh on 13/02/2017 to remove duplicate rows from table [End]
\ No newline at end of file
<%@page import = "java.lang.*,java.util.*, ibase.webitm.utility.*"%>
<%
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
response.setHeader("Cache-Control", "no-store, no-cache,must-revalidate");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Pragma", "no-cache");
%>
<%
System.out.println("#######################################################");
System.out.println(" ITMLinkPage.jsp ");
System.out.println("#######################################################");
String queryParam = request.getParameter( "QRY_PARAM" );
String paramType = request.getParameter( "QRY_PARAM_TYPE" );
String targetObject = request.getParameter( "TAR_OBJ_NAME" );
String linkDescr = request.getParameter( "LINK_DESCR" );
//Changed by Roshan 09/01/08 [To set obj type globally]
String objType = request.getParameter( "OBJ_TYPE" );
//Changed by Dayanand on 31/03/08 [Take OBJ_CTXT for display link for selected form]
String objCtx = request.getParameter( "OBJ_CTXT" );
//Changed by Pravin on 28/07/08.[to apply theme, request ID- WS89BAS022 ] Start
//changed by rahul barve on 01-oct-2014 [Start]
//ibase.webitm.utility.GenericUtility genericUtilityObj = new ibase.webitm.utility.GenericUtility();
ibase.utility.E12GenericUtility genericUtilityObj = new ibase.utility.E12GenericUtility();
//changed by rahul barve on 01-oct-2014 [End]
String displayThemeXSL = ( (String)session.getAttribute( "DISPLAY_THEME") )== null ? genericUtilityObj.getThemeFormat():(String)session.getAttribute( "DISPLAY_THEME");
//Changed by Pravin on 28/07/08.[to apply theme, request ID- WS89BAS022 ] End
%>
<html>
<HEAD>
<TITLE>
<%= targetObject %>
</TITLE>
<!-- Changed by Pravin on 28/07/08.[to apply theme, request ID- WS89BAS022 ]Start -->
<!-- <link type="text/css" rel="stylesheet" href="/ibase/webitm/css/default.css"/> -->
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/<%=displayThemeXSL%>/default.css"/>
<!-- Changed by Pravin on 28/07/08.[to apply theme, request ID- WS89BAS022 ]End -->
<!-- Added by Santosh on 11/02/2017 to link CSS file Start -->
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/ITMLinkPage.css"/>
<script type='text/javascript' language="javascript" src='/ibase/webitm/js/jquery-1.10.2.js'></script>
<!-- Added by Santosh on 11/02/2017 to link CSS file End -->
<script language="Javascript" src="../js/GlobalVar.js"></script>
<script language="Javascript" src="../js/GlobalFunc.js"></script>
<script language="Javascript" src="../js/ITMLinkPage.js"></script>
</HEAD>
<div id="linkBrowDiv">
</div>
<!-- Changed by Dhruv on 11/10/2007 to focus window on load -->
<!-- Changed by Santosh on 13/02/2017 -->
<%-- <body onLoad="loadLink(),viewLinkBrow('<%=targetObject%>','<%=queryParam%>','<%=paramType%>');window.focus();" class="" onClick = "hideContextMenu()"> --%>
<body onLoad="loadLink(),viewLinkBrow('<%=targetObject%>','<%=queryParam%>','<%=paramType%>');window.focus();removeDuplicateRows();" class="" onClick = "hideContextMenu()">
<!-- changes made by sanket on 12-09-16 for label width 100% from <hr style="position:absolute;top:2;left:5;height:22;width:790;background-color: #D7D7D7;font-family:Verdana"> -->
<!-- Commented by Santosh on 11/02/2017 Start -->
<%-- <hr style="position:absolute;top:2;left:5;height:22;width:99%;background-color: #D7D7D7;font-family:Verdana">
<b><a id ="menudescr" style ="position : absolute; top : 3;left:10;color: #0000FF;font-family:Tahoma;font-size: 12"><%= linkDescr %></a></b> --%>
<!-- Commented by Santosh on 11/02/2017 End -->
</body>
<script>
link_obj_name = '<%= targetObject%>';
//Changed by Dayanand on 31/03/08 [Pass OBJ_CTXT for display link for selected form]
obj_ctx = '<%= objCtx%>';
//Changed by Roshan 22/11/07 [Gui related changes.Applying Theme]
displayTheme='<%= session.getAttribute( "DISPLAY_THEME")%>';
//Changed by Roshan 09/01/08 [to get obj type anywhere]
obj_Type = '<%= objType%>' ;
function invokeAction()
{
alert(" Not Allowed ");
}
</script>
</html>
\ No newline at end of file
<%@page import = "java.lang.*,java.util.*, ibase.webitm.utility.*"%>
<%
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
response.setHeader("Cache-Control", "no-store, no-cache,must-revalidate");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Pragma", "no-cache");
%>
<%
System.out.println("#######################################################");
System.out.println(" ITMLinkPageContainer.jsp ");
System.out.println("#######################################################");
String queryParam = request.getParameter( "QRY_PARAM" );
String paramType = request.getParameter( "QRY_PARAM_TYPE" );
String targetObject = request.getParameter( "TAR_OBJ_NAME" );
String linkDescr = request.getParameter( "LINK_DESCR" );
String objType = request.getParameter( "OBJ_TYPE" );
String objCtx = request.getParameter( "OBJ_CTXT" );
%>
<html>
<head>
</head>
<body>
<iframe src="/ibase/webitm/jsp/ITMLinkPage.jsp?QRY_PARAM=<%=queryParam%>&QRY_PARAM_TYPE=<%=paramType%>&TAR_OBJ_NAME=<%=targetObject%>&LINK_DESCR=<%=linkDescr%>&OBJ_TYPE=<%=objType%>&OBJ_CTXT=<%=objCtx%>" width="100%" height="100%" class="FrameFlowPanel" style="border:none;"></iframe>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>19</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>20</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>sale_order</name>
<dbname>sorditem.sale_order</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>line_no</name>
<dbname>sorditem.line_no</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>exp_lev</name>
<dbname>sorditem.exp_lev</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>sorditem.site_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_code__ord</name>
<dbname>sorditem.item_code__ord</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_flag</name>
<dbname>sorditem.item_flag</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_code</name>
<dbname>sorditem.item_code</dbname>
</table_column>
<table_column>
<type size="130">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>sorditem.quantity</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>unit</name>
<dbname>sorditem.unit</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>qty_alloc</name>
<dbname>sorditem.qty_alloc</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>date_alloc</name>
<dbname>sorditem.date_alloc</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>nature</name>
<dbname>sorditem.nature</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>reas_code</name>
<dbname>sorditem.reas_code</dbname>
</table_column>
<table_column>
<type size="120">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>reas_detail</name>
<dbname>sorditem.reas_detail</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>invoice_invoice_id</name>
<dbname>invoice.invoice_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>invoice_tran_date</name>
<dbname>invoice.tran_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>desp_id</name>
<dbname>despatchdet.desp_id</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>qty_desp</name>
<dbname>sorditem.qty_desp</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>desp_date</name>
<dbname>desp_date</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>yes</updatewhereclause>
<name>desp_qty</name>
<dbname>desp_qty</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>sorditem.status</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>plan_prod_date</name>
<dbname>sorditem.plan_prod_date</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>exp_dlv_date</name>
<dbname>sorditem.exp_dlv_date</dbname>
</table_column>
<table_column>
<type size="120">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>remarks</name>
<dbname>sorditem.remarks</dbname>
</table_column>
<table_column>
<type size="35">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>pro_no</name>
<dbname>pro_no</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>shipment_date</name>
<dbname>shipment_date</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>tran_name</name>
<dbname>tran_name</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>hold_flag</name>
<dbname>sorddet.hold_flag</dbname>
</table_column>
<table_column>
<type size="25">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>lr_no</name>
<dbname>despatch.lr_no</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>lr_date</name>
<dbname>despatch.lr_date</dbname>
</table_column>
<table_column>
<type size="0">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>dummy</name>
<dbname>dummy</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>sorder_status</name>
<dbname>sorder.status</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>yes</updatewhereclause>
<name>stk_qty</name>
<dbname>stk_qty</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>yes</updatewhereclause>
<name>pend_qty</name>
<dbname>pend_qty</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>pord_date</name>
<dbname>sorder.pord_date</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>despatch_trans_mode</name>
<dbname>despatch.trans_mode</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_pord</name>
<dbname>sorder.cust_pord</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>order_date</name>
<dbname>sorder.order_date</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>dsp_date</name>
<dbname>sorddet.dsp_date</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>min_due_date</name>
<dbname>min_due_date</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>max_due_date</name>
<dbname>max_due_date</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sorditem&quot; ) TABLE(NAME=&quot;item&quot; ) TABLE(NAME=&quot;despatchdet&quot; ) TABLE(NAME=&quot;invoice&quot; ) TABLE(NAME=&quot;sorddet&quot; ) TABLE(NAME=&quot;despatch&quot; ) TABLE(NAME=&quot;sorder&quot; ) COLUMN(NAME=&quot;sorditem.sale_order&quot;) COLUMN(NAME=&quot;sorditem.line_no&quot;) COLUMN(NAME=&quot;sorditem.exp_lev&quot;) COLUMN(NAME=&quot;sorditem.site_code&quot;) COLUMN(NAME=&quot;sorditem.item_code__ord&quot;) COLUMN(NAME=&quot;sorditem.item_flag&quot;) COLUMN(NAME=&quot;sorditem.item_code&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;sorditem.quantity&quot;) COLUMN(NAME=&quot;sorditem.unit&quot;) COLUMN(NAME=&quot;sorditem.qty_alloc&quot;) COLUMN(NAME=&quot;sorditem.date_alloc&quot;) COLUMN(NAME=&quot;sorditem.nature&quot;) COLUMN(NAME=&quot;sorditem.reas_code&quot;) COLUMN(NAME=&quot;sorditem.reas_detail&quot;) COLUMN(NAME=&quot;invoice.invoice_id&quot;) COLUMN(NAME=&quot;invoice.tran_date&quot;) COLUMN(NAME=&quot;despatchdet.desp_id&quot;) COLUMN(NAME=&quot;sorditem.qty_desp&quot;) COMPUTE(NAME=&quot;FN_GET_DESP_DATE(DESPATCHDET.DESP_ID) desp_date&quot;) COMPUTE(NAME=&quot;sum((case when despatchdet.quantity is null then 0 else despatchdet.quantity end)) desp_qty&quot;) COLUMN(NAME=&quot;sorditem.status&quot;) COLUMN(NAME=&quot;sorditem.plan_prod_date&quot;) COLUMN(NAME=&quot;sorditem.exp_dlv_date&quot;) COLUMN(NAME=&quot;sorditem.remarks&quot;) COMPUTE(NAME=&quot;(select despatch.pro_no from despatch where despatch.desp_id = despatchdet.desp_id ) pro_no&quot;) COMPUTE(NAME=&quot;(select despatch.lr_date from despatch where despatch.desp_id = despatchdet.desp_id ) shipment_date&quot;) COMPUTE(NAME=&quot;(select tran_name from transporter where tran_code = (select despatch.tran_code from despatch where despatch.desp_id = despatchdet.desp_id )) tran_name&quot;) COLUMN(NAME=&quot;sorddet.hold_flag&quot;) COLUMN(NAME=&quot;despatch.lr_no&quot;) COLUMN(NAME=&quot;despatch.lr_date&quot;) COMPUTE(NAME=&quot;&apos;&apos; as dummy&quot;) COLUMN(NAME=&quot;sorder.status&quot;) COMPUTE(NAME=&quot;(SELECT SUM(QUANTITY - ALLOC_QTY - CASE WHEN HOLD_QTY IS NULL THEN 0 ELSE HOLD_QTY END) FROM STOCK WHERE ITEM_CODE = SORDITEM.ITEM_CODE__ORD GROUP BY ITEM_CODE) STK_QTY&quot;) COMPUTE(NAME=&quot;(SORDITEM.QUANTITY - sum((case when despatchdet.quantity is null then 0 else despatchdet.quantity end))) as PEND_QTY&quot;) COLUMN(NAME=&quot;sorder.pord_date&quot;) COLUMN(NAME=&quot;despatch.trans_mode&quot;) COLUMN(NAME=&quot;sorder.cust_pord&quot;) COLUMN(NAME=&quot;sorder.order_date&quot;) COLUMN(NAME=&quot;sorddet.dsp_date&quot;) COMPUTE(NAME=&quot;FN_GET_MIN_MAX_DUEDATE(SORDITEM.SALE_ORDER,&apos;MIN&apos;) MIN_DUE_DATE&quot;) COMPUTE(NAME=&quot;FN_GET_MIN_MAX_DUEDATE(SORDITEM.SALE_ORDER,&apos;MAX&apos;) MAX_DUE_DATE&quot;) JOIN (LEFT=&quot;sorditem.sale_order&quot; OP =&quot;=&quot;RIGHT=&quot;despatchdet.sord_no&quot; OUTER1 =&quot;sorditem.sale_order&quot; ) JOIN (LEFT=&quot;sorditem.line_no&quot; OP =&quot;=&quot;RIGHT=&quot;despatchdet.line_no__sord&quot; OUTER1 =&quot;sorditem.line_no&quot; ) JOIN (LEFT=&quot;sorditem.exp_lev&quot; OP =&quot;=&quot;RIGHT=&quot;despatchdet.exp_lev&quot; OUTER1 =&quot;sorditem.exp_lev&quot; ) JOIN (LEFT=&quot;despatch.desp_id&quot; OP =&quot;=&quot;RIGHT=&quot;despatchdet.desp_id&quot; OUTER2 =&quot;despatchdet.desp_id&quot; ) JOIN (LEFT=&quot;invoice.desp_id&quot; OP =&quot;=&quot;RIGHT=&quot;despatch.desp_id&quot; OUTER2 =&quot;despatch.desp_id&quot; ) JOIN (LEFT=&quot;sorditem.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; ) JOIN (LEFT=&quot;sorditem.sale_order&quot; OP =&quot;=&quot;RIGHT=&quot;sorddet.sale_order&quot; ) JOIN (LEFT=&quot;sorditem.line_no&quot; OP =&quot;=&quot;RIGHT=&quot;sorddet.line_no&quot; ) JOIN (LEFT=&quot;sorder.sale_order&quot; OP =&quot;=&quot;RIGHT=&quot;sorddet.sale_order&quot; ) JOIN (LEFT=&quot;sorder.sale_order&quot; OP =&quot;=&quot;RIGHT=&quot;sorditem.sale_order&quot; )WHERE( EXP1 =&quot;sorditem.sale_order&quot; OP =&quot;=&quot; EXP2 =&quot;:sales_order&quot; ) GROUP(NAME=&quot;sorditem.sale_order&quot;) GROUP(NAME=&quot;sorditem.site_code&quot;) GROUP(NAME=&quot;sorditem.item_code__ord&quot;) GROUP(NAME=&quot;sorditem.item_flag&quot;) GROUP(NAME=&quot;sorditem.exp_lev&quot;) GROUP(NAME=&quot;sorditem.item_code&quot;) GROUP(NAME=&quot;item.descr&quot;) GROUP(NAME=&quot;sorditem.quantity&quot;) GROUP(NAME=&quot;sorditem.unit&quot;) GROUP(NAME=&quot;sorditem.date_alloc&quot;) GROUP(NAME=&quot;sorditem.qty_alloc&quot;) GROUP(NAME=&quot;sorditem.status&quot;) GROUP(NAME=&quot;sorditem.nature&quot;) GROUP(NAME=&quot;sorditem.line_no&quot;) GROUP(NAME=&quot;sorditem.reas_code&quot;) GROUP(NAME=&quot;sorditem.reas_detail&quot;) GROUP(NAME=&quot;invoice.invoice_id&quot;) GROUP(NAME=&quot;invoice.tran_date&quot;) GROUP(NAME=&quot;despatchdet.desp_id&quot;) GROUP(NAME=&quot;sorditem.qty_desp&quot;) GROUP(NAME=&quot;sorditem.plan_prod_date&quot;) GROUP(NAME=&quot;sorditem.remarks&quot;) GROUP(NAME=&quot;sorditem.exp_dlv_date&quot;) GROUP(NAME=&quot;sorddet.hold_flag&quot;) GROUP(NAME=&quot;despatch.lr_no&quot;) GROUP(NAME=&quot;despatch.lr_date&quot;) GROUP(NAME=&quot;sorder.status&quot;) GROUP(NAME=&quot;sorder.pord_date&quot;) GROUP(NAME=&quot;despatch.trans_mode&quot;) GROUP(NAME=&quot;sorder.cust_pord&quot;) GROUP(NAME=&quot;sorder.order_date&quot;) GROUP(NAME=&quot;sorddet.dsp_date&quot;)) ORDER(NAME=&quot;sorditem.line_no&quot; ASC=yes ) ORDER(NAME=&quot;sorditem.exp_lev&quot; ASC=yes ) ARG(NAME = &quot;sales_order&quot; TYPE = string) </retrieve>
<argument>
<name>sales_order</name>
<type>string</type>
</argument>
<sort>
<expression>line_no A</expression>
<expression>desp_id A</expression>
<expression>exp_lev A</expression>
</sort>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Line No</text>
<border>6</border>
<color>0</color>
<x>72</x>
<y>2</y>
<height>16</height>
<width>48</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Code</text>
<border>6</border>
<color>33554432</color>
<x>122</x>
<y>2</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Description</text>
<border>6</border>
<color>33554432</color>
<x>217</x>
<y>2</y>
<height>16</height>
<width>249</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_descr_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Quantity</text>
<border>6</border>
<color>33554432</color>
<x>468</x>
<y>2</y>
<height>16</height>
<width>87</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Unit</text>
<border>6</border>
<color>33554432</color>
<x>557</x>
<y>2</y>
<height>16</height>
<width>49</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Invoice Id</text>
<border>6</border>
<color>0</color>
<x>679</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_invoice_id_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Invoice Date</text>
<border>6</border>
<color>0</color>
<x>751</x>
<y>2</y>
<height>16</height>
<width>75</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_tran_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Desp Id</text>
<border>6</border>
<color>0</color>
<x>828</x>
<y>2</y>
<height>16</height>
<width>92</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>desp_id_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Code Ord</text>
<border>6</border>
<color>33554432</color>
<x>994</x>
<y>2</y>
<height>16</height>
<width>83</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code__ord_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Exp Lev</text>
<border>6</border>
<color>33554432</color>
<x>1079</x>
<y>2</y>
<height>16</height>
<width>52</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exp_lev_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Flag</text>
<border>6</border>
<color>33554432</color>
<x>1133</x>
<y>2</y>
<height>16</height>
<width>50</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_flag_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Nature</text>
<border>6</border>
<color>33554432</color>
<x>1185</x>
<y>2</y>
<height>16</height>
<width>50</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>nature_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Reason Code</text>
<border>6</border>
<color>33554432</color>
<x>1237</x>
<y>2</y>
<height>16</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reas_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Desp Qty</text>
<border>6</border>
<color>0</color>
<x>922</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>desp_qty_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Qty Alloc</text>
<border>6</border>
<color>33554432</color>
<x>2011</x>
<y>2</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qty_alloc_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Alloc. Date</text>
<border>6</border>
<color>33554432</color>
<x>2110</x>
<y>2</y>
<height>16</height>
<width>94</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_alloc_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code</text>
<border>6</border>
<color>33554432</color>
<x>2206</x>
<y>2</y>
<height>16</height>
<width>53</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Desp Date</text>
<border>6</border>
<color>0</color>
<x>2261</x>
<y>2</y>
<height>16</height>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>desp_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Despatch Qty</text>
<border>6</border>
<color>0</color>
<x>2345</x>
<y>2</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qty_desp_t</name>
<visible>1</visible>
<moveable>1</moveable>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Reason Details</text>
<border>6</border>
<color>33554432</color>
<x>1313</x>
<y>2</y>
<height>16</height>
<width>295</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reas_detail_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text> Plan Prod Date</text>
<border>6</border>
<color>0</color>
<x>1849</x>
<y>2</y>
<height>16</height>
<width>83</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_prod_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Exp Dlv Date</text>
<border>6</border>
<color>0</color>
<x>1934</x>
<y>2</y>
<height>16</height>
<width>75</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exp_dlv_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Remarks</text>
<border>6</border>
<color>0</color>
<x>1610</x>
<y>2</y>
<height>16</height>
<width>237</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Sale Order</text>
<border>6</border>
<color>0</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Status</text>
<border>6</border>
<color>0</color>
<x>2420</x>
<y>2</y>
<height>16</height>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pro No</text>
<border>6</border>
<color>0</color>
<x>2502</x>
<y>1</y>
<height>16</height>
<width>112</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pro_no_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>2</alignment>
<text>Shipment Date</text>
<border>6</border>
<color>0</color>
<x>2616</x>
<y>1</y>
<height>16</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipment_date_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>2</alignment>
<text>Transporter Name</text>
<border>6</border>
<color>33554432</color>
<x>2720</x>
<y>1</y>
<height>16</height>
<width>153</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_name_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>0</alignment>
<text>Hold Flag</text>
<border>6</border>
<color>33554432</color>
<x>608</x>
<y>1</y>
<height>16</height>
<width>69</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hold_flag_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>LR No</text>
<border>6</border>
<color>33554432</color>
<x>2875</x>
<y>1</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lr_no_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>0</alignment>
<text>LR Date</text>
<border>6</border>
<color>33554432</color>
<x>2970</x>
<y>1</y>
<height>16</height>
<width>75</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lr_date_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>0</alignment>
<text></text>
<border>0</border>
<color>33554432</color>
<x>3047</x>
<y>1</y>
<height>16</height>
<width>60</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dummy_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Sorder Status</text>
<border>0</border>
<color>33554432</color>
<x>3109</x>
<y>1</y>
<height>16</height>
<width>91</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_status_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>0</alignment>
<text>Stk Qty</text>
<border>0</border>
<color>33554432</color>
<x>3202</x>
<y>1</y>
<height>16</height>
<width>213</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stk_qty_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>0</alignment>
<text>Pend Qty</text>
<border>0</border>
<color>33554432</color>
<x>3417</x>
<y>1</y>
<height>17</height>
<width>148</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pend_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Pord Date</text>
<border>0</border>
<color>33554432</color>
<x>3567</x>
<y>1</y>
<height>17</height>
<width>53</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pord_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Despatch Trans Mode</text>
<border>0</border>
<color>33554432</color>
<x>3622</x>
<y>1</y>
<height>17</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>despatch_trans_mode_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Cust Pord</text>
<border>0</border>
<color>33554432</color>
<x>3720</x>
<y>1</y>
<height>17</height>
<width>248</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_pord_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>72</x>
<y>2</y>
<height>16</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>679</x>
<y>2</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_invoice_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>122</x>
<y>2</y>
<height>16</height>
<width>93</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>217</x>
<y>2</y>
<height>16</height>
<width>249</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>40</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>468</x>
<y>2</y>
<height>16</height>
<width>87</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>557</x>
<y>2</y>
<height>16</height>
<width>49</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>994</x>
<y>2</y>
<height>16</height>
<width>83</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code__ord</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1079</x>
<y>2</y>
<height>16</height>
<width>52</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exp_lev</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1133</x>
<y>2</y>
<height>16</height>
<width>50</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_flag</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1185</x>
<y>2</y>
<height>16</height>
<width>50</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>nature</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>1237</x>
<y>2</y>
<height>16</height>
<width>74</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reas_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>751</x>
<y>2</y>
<height>16</height>
<width>75</width>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_tran_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>828</x>
<y>2</y>
<height>16</height>
<width>92</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>desp_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2011</x>
<y>2</y>
<height>16</height>
<width>97</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qty_alloc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2110</x>
<y>2</y>
<height>16</height>
<width>94</width>
<format>[shortdate] </format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_alloc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2206</x>
<y>2</y>
<height>16</height>
<width>53</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2261</x>
<y>2</y>
<height>16</height>
<width>82</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>desp_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>922</x>
<y>2</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>desp_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>1313</x>
<y>2</y>
<height>16</height>
<width>295</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reas_detail</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>23</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>1849</x>
<y>2</y>
<height>16</height>
<width>83</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_prod_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>24</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>1934</x>
<y>2</y>
<height>16</height>
<width>75</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exp_dlv_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>25</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>1610</x>
<y>2</y>
<height>16</height>
<width>237</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2345</x>
<y>2</y>
<height>16</height>
<width>73</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qty_desp</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sale_order</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2420</x>
<y>2</y>
<height>16</height>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>27</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2616</x>
<y>1</y>
<height>16</height>
<width>102</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipment_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>26</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2502</x>
<y>1</y>
<height>16</height>
<width>112</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pro_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>28</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2720</x>
<y>1</y>
<height>16</height>
<width>153</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>29</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>608</x>
<y>1</y>
<height>16</height>
<width>69</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hold_flag</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>2875</x>
<y>1</y>
<height>16</height>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lr_no</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>31</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>2970</x>
<y>1</y>
<height>16</height>
<width>75</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lr_date</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>32</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>0</border>
<color>0</color>
<x>3047</x>
<y>1</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dummy</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>33</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<border>0</border>
<color>0</color>
<x>3109</x>
<y>1</y>
<height>16</height>
<width>91</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sorder_status</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>34</id>
<alignment>0</alignment>
<tabsequence>100</tabsequence>
<border>0</border>
<color>0</color>
<x>3202</x>
<y>1</y>
<height>16</height>
<width>213</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stk_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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>35</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>0</border>
<color>0</color>
<x>3417</x>
<y>1</y>
<height>16</height>
<width>148</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pend_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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>36</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<border>0</border>
<color>0</color>
<x>3567</x>
<y>1</y>
<height>16</height>
<width>53</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pord_date</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>37</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<border>0</border>
<color>0</color>
<x>3622</x>
<y>1</y>
<height>16</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>despatch_trans_mode</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>38</id>
<alignment>0</alignment>
<tabsequence>140</tabsequence>
<border>0</border>
<color>0</color>
<x>3720</x>
<y>1</y>
<height>16</height>
<width>248</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_pord</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>39</id>
<alignment>0</alignment>
<tabsequence>150</tabsequence>
<border>0</border>
<color>0</color>
<x>3971</x>
<y>1</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>order_date</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Sorder Order Date</text>
<border>0</border>
<color>33554432</color>
<x>3970</x>
<y>1</y>
<height>17</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>order_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>40</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<border>0</border>
<color>0</color>
<x>4083</x>
<y>1</y>
<height>16</height>
<width>53</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dsp_date</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Sorddet Dsp Date</text>
<border>0</border>
<color>33554432</color>
<x>4082</x>
<y>1</y>
<height>17</height>
<width>54</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dsp_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>41</id>
<alignment>0</alignment>
<tabsequence>170</tabsequence>
<border>0</border>
<color>0</color>
<x>4139</x>
<y>1</y>
<height>16</height>
<width>1022</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_due_date</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Min Due Date</text>
<border>0</border>
<color>0</color>
<x>4138</x>
<y>1</y>
<height>16</height>
<width>1023</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_due_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>42</id>
<alignment>0</alignment>
<tabsequence>180</tabsequence>
<border>0</border>
<color>0</color>
<x>5164</x>
<y>1</y>
<height>16</height>
<width>1022</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>max_due_date</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Max Due Date</text>
<border>0</border>
<color>0</color>
<x>5163</x>
<y>1</y>
<height>16</height>
<width>1023</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>max_due_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
<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>
CREATE OR REPLACE
FUNCTION FN_GET_MIN_MAX_DUEDATE (AS_SALE_ORDER IN VARCHAR2, AS_MIN_OR_MAX IN VARCHAR2)
RETURN VARCHAR2 IS
LS_DUE_DATE SORDDET.DSP_DATE%TYPE;
BEGIN
IF AS_MIN_OR_MAX = 'MIN' THEN
SELECT MIN(DSP_DATE) INTO LS_DUE_DATE
FROM SORDDET
WHERE SALE_ORDER = AS_SALE_ORDER;
RETURN LS_DUE_DATE;
ELSIF AS_MIN_OR_MAX = 'MAX' THEN
SELECT MAX(DSP_DATE) INTO LS_DUE_DATE
FROM SORDDET
WHERE SALE_ORDER = AS_SALE_ORDER;
RETURN LS_DUE_DATE;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN 'Data not found' ;
END;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment