2015年1月8日 星期四

generator-choice

generator-choice


config

selectedButtonCaption=Selected


layout

{object}
0.61,SOPOQTY.CHOICE,check:GRID,3%,100,_,,
{countChecked}0{/countChecked}
{tooltip}Sales Order No.{/tooltip}
{onChange}
var s1226=($('.SOPOQTY_NAME'+thisRowNo).val());
var s0107=($('.SOPOQTY_PVIA'+thisRowNo).val());
if ((currentEntity.trim()=="" & currentVIA=="") | (currentEntity.trim()==s1226.trim()  & currentVIA.trim()==s0107.trim())){
currentEntity=s1226;
currentVIA=s0107;
} else {
document.getElementById('SOPOQTY.CHOICE'+thisRowNo).checked=false;
preventDefault();
alert('Please Check the Same Supplier !');
/*_messagebox('Please Select the Same Supplier',0,16,'Choice Message ! ');*/
return false;
}
var i=0;
$('.SOPOQTY_CHOICE').each(function (){if(this.checked){i++;}});
if(i==0){currentEntity=''}
{/onChange}
{/object}

沒有留言:

張貼留言