MWF.xApplication=MWF.xApplication||{};MWF.xApplication.process=MWF.xApplication.process||{};MWF.xApplication.process.StatDesigner=MWF.xApplication.process.StatDesigner||{};MWF.APPSTD=MWF.xApplication.process.StatDesigner;MWF.xDesktop.requireApp("process.StatDesigner","lp."+MWF.language,null,false);MWF.xDesktop.requireApp("process.ViewDesigner","View",null,false);MWF.xDesktop.requireApp("process.StatDesigner","Property",null,false);MWF.xApplication.process.StatDesigner.Stat=new Class({Extends:MWF.xApplication.process.ViewDesigner.View,Implements:[Options,Events],options:{style:"default",isView:false,showTab:true,propertyPath:"/x_component_process_StatDesigner/$Stat/stat.html"},initialize:function(e,t,i){this.setOptions(i);this.path="/x_component_process_StatDesigner/$Stat/";this.cssPath="/x_component_process_StatDesigner/$Stat/"+this.options.style+"/css.wcss";this._loadCss();this.designer=e;this.data=t;if(!this.data.data)this.data.data={};this.parseData();this.node=this.designer.designNode;this.areaNode=new Element("div",{styles:{height:"100%",overflow:"auto"}});this.propertyListNode=this.designer.propertyDomArea;if(this.designer.application)this.data.applicationName=this.designer.application.name;if(this.designer.application)this.data.application=this.designer.application.id;this.isNewView=this.data.id?false:true;this.items=[];this.view=this;this.queryView=null;this.autoSave();this.designer.addEvent("queryClose",function(){if(this.autoSaveTimerID)window.clearInterval(this.autoSaveTimerID)}.bind(this))},changeViewSelected:function(){if(this.json.queryView){if(!this.queryView){this.designer.actions.getView(this.json.queryView,function(e){this.queryView=JSON.decode(e.data.data);this.items.each(function(e){e.changeViewSelected(this.queryView)}.bind(this));this.checkIsGroupRadioDisplay()}.bind(this))}else{this.items.each(function(e){e.changeViewSelected(this.queryView)}.bind(this));this.checkIsGroupRadioDisplay()}}else{}},checkIsGroupRadioDisplay:function(){if(this.property){var e=this.property.propertyContent.getElement(".MWFIsGroupArea");if(e){if(this.queryView.groupEntry.column){e.setStyle("display","block")}else{this.json.data.isGroup=false;var t=e.getElements("input");for(var i=0;i