2014年11月24日 星期一

generator-validation -saveValidatioin -doSomethingWhenSave




{object}
3.222,SALES_ORDER_INV_DESC.MAINTAIN_RENEW_NOTICE,check:GRID,2%,150,MN,,
{toolTips}Renew Notice{/toolTips}
{countChecked}0{/countChecked}
{/object}


{object}
5.69,SALES_ORDER_HEAD.REMARK,textarea,100%,12,Remark,, {labelInLineStyle}width:auto;{/labelInLineStyle}
{saveValidation}
var s1216=_lookup('SALES_ORDER_HEAD.REMARK');
if (countChecked[0]>=1 & s1216==''){alert('Please Input SO Remark for Maintain Renew Notice.');result=false;}
{/saveValidation}
{/object}









{saveValidation}
var s1107=_lookup('SALES_ORDER_HEAD.QD_NO');
var aaaa=lookupTable('SALES_ORDER','SALES_ORDER_HEAD.QD_NO',s1107,'(NOT RECORDID='+RECORDID+')');
if(aaaa) alert('This Company QD '+s1107+ ' have used before in :  \n\n'+aaaa+' ');
{/saveValidation}

沒有留言:

張貼留言