
Runner.buttonEvents["tolist"]=function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='tolist';if(!pageObj.buttonEventBefore['tolist']){pageObj.buttonEventBefore['tolist']=function(params,ctrl,pageObj,proxy,pageid,rowData,row,submit){var ajax=ctrl;}}
if(!pageObj.buttonEventAfter['tolist']){pageObj.buttonEventAfter['tolist']=function(result,ctrl,pageObj,proxy,pageid,rowData,row,params){var ajax=ctrl;location.href="https://newsamagi.ebizso.com/purchasing_list_list.php";}}
$('a[id="tolist"]').each(function(){if($(this).closest('.gridRowAdd').length){return;}
this.id="tolist"+"_"+Runner.genId();var button_tolist=new Runner.form.Button({id:this.id,btnName:"tolist"});button_tolist.init({args:[pageObj,proxy,pageid]});});};