s
*********************************************************************
{endOfLoad}
var parent_key=RECORDID;
var s4= 'END_USER_ADDRESS1 ,END_USER_ADDRESS2 ,END_USER_ADDRESS3 ,END_USER_ADDRESS4 ,END_USER_CONTACT ,END_USER_TEL ,END_USER_EMAIL ,END_USER_CONFIRM ,END_USER_NO,END_USER_,CUSTOMER_REQUIREMENT,END_USER_DEPT_BRANCH';
var s3=lookupTable(s4,'SALES_ORDER_REPORT.RECORDID',parent_key);
var s4a=s4.split(',');
var s3a=s3.split(',');
if (s3a[8]){
_refreshv2('SALES_ORDER_HEAD.END_USER_ADDRESS1',s3a[0]);
_refreshv2('SALES_ORDER_HEAD.END_USER_ADDRESS2',s3a[1]);
_refreshv2('SALES_ORDER_HEAD.END_USER_ADDRESS3',s3a[2]);
_refreshv2('SALES_ORDER_HEAD.END_USER_ADDRESS4',s3a[3]);
_refreshv2('SALES_ORDER_HEAD.END_USER_CONTACT',s3a[4]);
_refreshv2('SALES_ORDER_HEAD.END_USER_TEL',s3a[5]);
_refreshv2('SALES_ORDER_HEAD.END_USER_EMAIL',s3a[6]);
_refreshv2('SALES_ORDER_HEAD.END_USER_CONFIRM',s3a[7]);
_refreshv2('SALES_ORDER_HEAD.END_USER_NO',s3a[8]);
_refreshv2('SALES_ORDER_HEAD.END_USER',s3a[9]);
_refreshv2('SALES_ORDER_HEAD.CUSTOMER_REQUIREMENT',s3a[10]);
_refreshv2('SALES_ORDER_HEAD.END_USER_DEPT_BRANCH',s3a[11])
}
{/endOfLoad}
layout.txt
{endOfLoad}
s1103=_lookup('PURCHASE_HEADER.SALES_ORDER');
var s='tableRead?table=SALES_ORDER_HEAD&fields=SIGNED_QD&
where=where SALES_ORDER: %60'+s1103 +'%60&format=S&callback=?&db='+DATABASE;
$.getJSON(s,
function(data) {
if (data[0]){
_refreshv2('view.uploadDocument',data[0][0]);
}
}
)
{/endOfLoad}
Config
endofload=if(DISK_DOC_STATUS!:'D'){document.getElementById('SALES_ORDER_INV_DESC_gridButton1').style.display : 'none';}
沒有留言:
張貼留言