
var pType=Runner.pages.constants.PAGE_LIST;Runner.pages.PageSettings.addPageEvent("v_det_movimiento",pType,"afterPageReady",function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='New_Button1521';if(!pageObj.buttonEventBefore['New_Button1521']){pageObj.buttonEventBefore['New_Button1521']=function(params,ctrl,pageObj,proxy,pageid,rowData){params["txt"]="Hello";ctrl.setMessage("Sending request to server...");}}
if(!pageObj.buttonEventAfter['New_Button1521']){pageObj.buttonEventAfter['New_Button1521']=function(result,ctrl,pageObj,proxy,pageid,rowData){var where=result["where"];var order=result["order"];var tabla=result["tabla"];window.open('generar_portrait.php?tabla='+tabla+'&where='+where+'&order='+order,'_blank');}}
$('a[id=New_Button1521]').each(function(){if(!$(this).closest('tr.gridRowAdd').length){var newId="New_Button1521"+"_"+Runner.genId();this.id=newId;var button_New_Button1521=new Runner.form.Button({id:newId,btnName:"New_Button1521"});button_New_Button1521.init({args:[pageObj,proxy,pageid]});}});});