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