
var pType=Runner.pages.constants.PAGE_LIST;Runner.pages.PageSettings.addPageEvent("senuc_plantoes",pType,"afterPageReady",function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='LAN_AR_PRESEN_AS';if(!pageObj.buttonEventBefore['LAN_AR_PRESEN_AS']){pageObj.buttonEventBefore['LAN_AR_PRESEN_AS']=function(params,ctrl,pageObj,proxy,pageid,rowData){}}
if(!pageObj.buttonEventAfter['LAN_AR_PRESEN_AS']){pageObj.buttonEventAfter['LAN_AR_PRESEN_AS']=function(result,ctrl,pageObj,proxy,pageid,rowData){window.open('plantoes/index.php?idp='+result.record["id"],'_new');}}
$('a[id=LAN_AR_PRESEN_AS]').each(function(){if(!$(this).closest('tr.gridRowAdd').length){var newId="LAN_AR_PRESEN_AS"+"_"+Runner.genId();this.id=newId;var button_LAN_AR_PRESEN_AS=new Runner.form.Button({id:newId,btnName:"LAN_AR_PRESEN_AS"});button_LAN_AR_PRESEN_AS.init({args:[pageObj,proxy,pageid]});}});});