Ext.define("MyApp.Application",{name:"MyApp",extend:Ext.app.Application,views:[],controllers:[],stores:[]});Ext.define("MyApp.controller.GUI",{extend:Ext.app.Controller,refs:[{ref:"splitColumn",selector:"#splitColumn"}],onLaunch:function(){params=Ext.Object.fromQueryString(document.location.search);params.feature="orglvl_analysis";Ext.Ajax.request({url:"../../../common/service/feature_check.php",method:"GET",params:params,success:function(a,b){var c=Ext.JSON.decode(a.responseText);if(c.result===true){this.getSplitColumn().show()}},failure:function(a,b){var c=a.responseText;Ext.Error.raise({msg:"Ajax Get systems and clients failed",option:c,object:b})},scope:this})}});Ext.define("MyApp.controller.Main",{extend:Ext.app.Controller});Ext.define("MyApp.controller.Search",{extend:Ext.app.Controller,refs:[{ref:"showAll",selector:"#showAll"},{ref:"toolbarSearch",selector:"#toolbarSearch"},{ref:"grid",selector:"#grid"}],onLaunch:function(){},init:function(a){this.control({"#showAll":{change:function(c,b){this.getGrid().getStore().load()}}})},search:function(){}});Ext.define("MyApp.model.FieldValueDescription",{extend:Ext.data.Model,fields:[{name:"id"},{name:"field"},{name:"varbl"},{name:"vtext"},{name:"include_empty",type:"boolean"},{name:"analysis",type:"boolean"},{name:"username"},{name:"timestamp"},{name:"inUse",type:"boolean"}]});Ext.define("MyApp.store.FieldValueDescription",{extend:Ext.data.Store,constructor:function(a){var b=this;a=a||{};b.callParent([Ext.apply({autoLoad:true,autoSync:true,model:"MyApp.model.FieldValueDescription",storeId:"FieldValueDescription",pageSize:50,proxy:{type:"ajax",url:"../../../SoD/service/settings_analysis_options.php",reader:{type:"json",root:"result"}},listeners:{beforeload:{fn:b.onJsonstoreBeforeLoad,scope:b}}},a)])},onJsonstoreBeforeLoad:function(b,a,c){b.proxy.extraParams=Ext.Object.fromQueryString(document.location.search);b.proxy.extraParams.showAll=MyApp.app.getController("Search").getShowAll().getValue()}});Ext.define("MyApp.view.Main",{extend:Ext.panel.Panel,border:false,layout:"fit",bodyBorder:false,header:false,title:"Approvers",initComponent:function(){var a=this;Ext.applyIf(a,{items:[{xtype:"fieldset",padding:"3 10 10 10",title:"Organizational levels",layout:{type:"hbox",align:"stretch"},items:[{xtype:"gridpanel",flex:1,border:false,itemId:"grid",bodyBorder:false,header:false,title:"My Grid Panel",enableColumnHide:false,enableColumnMove:false,store:"FieldValueDescription",columns:[{xtype:"gridcolumn",enableColumnHide:false,dataIndex:"field",hideable:false,text:"Field"},{xtype:"gridcolumn",enableColumnHide:false,dataIndex:"varbl",hideable:false,text:"VARBL"},{xtype:"gridcolumn",dataIndex:"vtext",text:"Description",flex:1},{xtype:"checkcolumn",dataIndex:"include_empty",text:"Include empty"},{xtype:"checkcolumn",hidden:true,itemId:"splitColumn",dataIndex:"analysis",text:"Consider value"},{xtype:"gridcolumn",dataIndex:"username",text:"Username"},{xtype:"gridcolumn",width:120,dataIndex:"timestamp",text:"Timestamp"}],plugins:[Ext.create("Ext.grid.plugin.CellEditing",{})],dockedItems:[{xtype:"toolbar",dock:"bottom",items:[{xtype:"tbspacer",flex:1},{xtype:"triggerfield",flex:2,hidden:true,itemId:"toolbarSearch",fieldLabel:"Search",labelAlign:"right",labelSeparator:" ",triggerCls:"x-form-search-trigger"},{xtype:"tbspacer",flex:1},{xtype:"checkboxfield",itemId:"showAll",boxLabel:"Show all",inputValue:"true",uncheckedValue:"false"},{xtype:"tbspacer",width:25}]}]}]}]});a.callParent(arguments)}});Ext.define("MyApp.view.Viewport",{extend:Ext.container.Viewport,layout:{type:"fit"},items:[{xtype:"app-main"}]});