
var pType=Runner.pages.constants.PAGE_ADD;Runner.pages.PageSettings.addPageEvent("det_movimiento",pType,"afterPageReady",function(pageObj,proxy,pageid,inlineRow,inlineObject){$(document).on('keyup',"input[id^='value_monto_apertura']",function(){var valor=$(this).val();valor=valor.replace(/\D/g,"");valor=valor.replace(/\B(?=(\d{3})+(?!\d))/g,".");$(this).val(valor);});;});var pType=Runner.pages.constants.PAGE_EDIT;Runner.pages.PageSettings.addPageEvent("det_movimiento",pType,"afterPageReady",function(pageObj,proxy,pageid,inlineRow,inlineObject){$(document).on('keyup',"input[id^='value_monto_apertura']",function(){var valor=$(this).val();valor=valor.replace(/\D/g,"");valor=valor.replace(/\B(?=(\d{3})+(?!\d))/g,".");$(this).val(valor);});;});var pType=Runner.pages.constants.PAGE_LIST;Runner.pages.PageSettings.addPageEvent("det_movimiento",pType,"afterPageReady",function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='New_Button12';if(!pageObj.buttonEventBefore['New_Button12']){pageObj.buttonEventBefore['New_Button12']=function(params,ctrl,pageObj,proxy,pageid,rowData){params["txt"]="Hello";ctrl.setMessage("Sending request to server...");}}
if(!pageObj.buttonEventAfter['New_Button12']){pageObj.buttonEventAfter['New_Button12']=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_Button12]').each(function(){if(!$(this).closest('tr.gridRowAdd').length){var newId="New_Button12"+"_"+Runner.genId();this.id=newId;var button_New_Button12=new Runner.form.Button({id:newId,btnName:"New_Button12"});button_New_Button12.init({args:[pageObj,proxy,pageid]});}});});