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