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