| 1 |
- MWF.xDesktop.requireApp("process.ProcessManager","Explorer",null,false);MWF.xApplication.query.QueryManager.StatExplorer=new Class({Extends:MWF.xApplication.process.ProcessManager.Explorer,Implements:[Options,Events],options:{style:"default",tooltip:{create:MWF.xApplication.query.QueryManager.LP.stat.create,search:MWF.xApplication.query.QueryManager.LP.stat.search,searchText:MWF.xApplication.query.QueryManager.LP.stat.searchText,noElement:MWF.xApplication.query.QueryManager.LP.stat.noStatNoticeText}},_createElement:function(t){var e=this;var a={onQueryLoad:function(){this.actions=e.app.restActions;this.application=e.app.options.application;this.explorer=e}};this.app.desktop.openApplication(t,"query.StatDesigner",a)},_loadItemDataList:function(t){this.app.restActions.listStat(this.app.options.application.id,t)},_getItemObject:function(t){return new MWF.xApplication.query.QueryManager.StatExplorer.Stat(this,t)},deleteItems:function(){this.hideDeleteAction();while(this.deleteMarkItems.length){var t=this.deleteMarkItems.shift();if(this.deleteMarkItems.length){t.deleteStat()}else{t.deleteStat(function(){}.bind(this))}}}});MWF.xApplication.query.QueryManager.StatExplorer.Stat=new Class({Extends:MWF.xApplication.process.ProcessManager.Explorer.Item,_open:function(t){var e=this;var a={onQueryLoad:function(){this.actions=e.explorer.actions;this.category=e;this.options.id=e.data.id;this.application=e.explorer.app.options.application}};this.explorer.app.desktop.openApplication(t,"query.StatDesigner",a)},_getIcon:function(){var t=(Math.random()*49).toInt();return"process_icon_"+t+".png"},_getLnkPar:function(){return{icon:this.explorer.path+this.explorer.options.style+"/processIcon/lnk.png",title:this.data.name,par:'query.StatDesigner#{"id": "'+this.data.id+'"}'}},deleteStat:function(t){this.explorer.actions.deleteStat(this.data.id,function(){this.node.destroy();if(t)t()}.bind(this))}});
|