
Runner.pages.PageSettings.addPageEvent('list',Runner.pages.constants.PAGE_ADD,"afterPageReady",function(pageObj,proxy,pageid,inlineRow,inlineObject,row){var ctrlamount=Runner.getControl(pageid,'amount');function chequet(){var this_allocation=0;$("tr[id*=gridRow]").each(function(){var id=$(this).attr('id');id=id.substring(7);t=+($("#value_amount_"+id).val());this_allocation+=t;});$("#value_this_allocation_1").val(this_allocation);};ctrlamount.on('change keyup',function(e){chequet();});;});Runner.pages.PageSettings.addPageEvent('list',Runner.pages.constants.PAGE_EDIT,"afterPageReady",function(pageObj,proxy,pageid,inlineRow,inlineObject,row){var ctrlamount=Runner.getControl(pageid,'amount');function chequet(){var this_allocation=0;$("tr[id*=gridRow]").each(function(){var id=$(this).attr('id');id=id.substring(7);t=+($("#value_amount_"+id).val());this_allocation+=t;});$("#value_this_allocation_1").val(this_allocation);};ctrlamount.on('change keyup',function(e){chequet();});;});