123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679 |
- MWF.xDesktop.requireApp("Setting", "Document", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingBase", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingMobile", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingCloud", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingEmpty", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingLoginUI", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingIndexUI", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingModuleUI", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingModuleService", null, false);
- MWF.xDesktop.requireApp("Setting", "SettingModuleResource", null, false);
- MWF.xApplication.Setting.Main = new Class({
- Extends: MWF.xApplication.Common.Main,
- Implements: [Options, Events],
- options: {
- "style": "default",
- "name": "Setting",
- "icon": "icon.png",
- "width": "1020",
- "height": "660",
- "title": MWF.xApplication.Setting.LP.title
- },
- onQueryLoad: function(){
- this.lp = MWF.xApplication.Setting.LP;
- this.actions = MWF.Actions.get("x_program_center");
- //this.actions = new MWF.xApplication.Setting.Actions.RestActions();
- },
- loadApplication: function(callback){
- debugger;
- this.baseAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- //this.uiAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- this.mobileAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- this.cloudAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- this.disposeAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- // this.serverAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- // this.applicationAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- // this.resourceAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- // this.mobileAreaNode = new Element("div", {"styles": this.css.tabAreaNode}).inject(this.content);
- MWF.require("MWF.widget.Tab", function(){
- this.tab = new MWF.widget.Tab(this.content, {"style": "administrator"});
- this.tab.load();
- this.basePage = this.tab.addTab(this.baseAreaNode, this.lp.tab_base, false);
- // this.uiPage = this.tab.addTab(this.uiAreaNode, this.lp.tab_ui, false);
- this.cloudPage = this.tab.addTab(this.cloudAreaNode, this.lp.tab_cloud, false);
- this.mobilePage = this.tab.addTab(this.mobileAreaNode, this.lp.tab_mobile, false);
- this.disposePage = this.tab.addTab(this.disposeAreaNode, this.lp.tab_dispose, false);
- this.basePage.addEvent("postShow", function(){
- if (!this.baseExplorer) this.baseExplorer = new MWF.xApplication.Setting.BaseExplorer(this, this.baseAreaNode);
- }.bind(this));
- // this.uiPage.addEvent("postShow", function(){
- // if (!this.uiExplorer) this.uiExplorer = new MWF.xApplication.Setting.UIExplorer(this, this.uiAreaNode);
- // }.bind(this));
- this.mobilePage.addEvent("postShow", function(){
- if (!this.mobileExplorer) this.mobileExplorer = new MWF.xApplication.Setting.MobileExplorer(this, this.mobileAreaNode);
- }.bind(this));
- this.cloudPage.addEvent("postShow", function(){
- if (!this.emptyExplorer) this.emptyExplorer = new MWF.xApplication.Setting.EmptyExplorer(this, this.cloudAreaNode);
- }.bind(this));
- this.disposePage.addEvent("postShow", function(){
- if (!this.disposeExplorer) this.disposeExplorer = new MWF.xApplication.Setting.DisposeExplorer(this, this.disposeAreaNode);
- }.bind(this));
- // this.serverPage = this.tab.addTab(this.serverAreaNode, this.lp.tab_Server, false);
- // this.applicationPage = this.tab.addTab(this.applicationAreaNode, this.lp.tab_Application, false);
- // this.resourcePage = this.tab.addTab(this.resourceAreaNode, this.lp.tab_Resource, false);
- // this.mobilePage = this.tab.addTab(this.mobileAreaNode, this.lp.tab_Mobile, false);
- // this.serverPage.addEvent("postShow", function(){
- // if (!this.serversExplorer) this.serversExplorer = new MWF.xApplication.Setting.ServersExplorer(this);
- // }.bind(this));
- //
- // this.applicationPage.addEvent("postShow", function(){
- // if (!this.applicationExplorer) this.applicationExplorer = new MWF.xApplication.Setting.ApplicationsExplorer(this);
- // }.bind(this));
- //
- // this.resourcePage.addEvent("postShow", function(){
- // if (!this.resourceExplorer) this.resourceExplorer = new MWF.xApplication.Setting.ResourceExplorer(this);
- // }.bind(this));
- //
- // this.mobilePage.addEvent("postShow", function(){
- // if (!this.mobileExplorer) this.mobileExplorer = new MWF.xApplication.Setting.MobileExplorer(this);
- // }.bind(this));
- this.basePage.showIm();
- //this.loadServers();
- this.setContentHeight();
- this.addEvent("resize", function(){this.setContentHeight();}.bind(this));
- }.bind(this));
- //MWF.xDesktop.requireApp("Setting", "ApplicationServers", function(){
- // this.applicationServerList = new MWF.xApplication.Setting.ApplicationServers(this);
- //}.bind(this));
- //this.loadApplicationServers();
- },
- loadTitle: function(){
- this.titleBar = new Element("div", {"styles": this.css.titleBar}).inject(this.content);
- this.taskTitleTextNode = new Element("div", {"styles": this.css.titleTextNode,"text": this.lp.title}).inject(this.titleBar);
- },
- setContentHeight: function(node){
- var size = this.content.getSize();
- //var titleSize = this.titleBar.getSize();
- var tabSize = this.tab.tabNodeContainer.getSize();
- //var height = size.y-tabSize.y-titleSize.y;
- var height = size.y-tabSize.y;
- this.tab.pages.each(function(page){
- page.contentNodeArea.setStyles({"height": ""+height+"px", "overflow": "auto"})
- });
- //this.appDeploymentContent.setStyle("height", height);
- }
- });
- MWF.xApplication.Setting.BaseExplorer = new Class({
- Implements: [Events],
- initialize: function(app, content){
- this.app = app;
- this.lp = this.app.lp;
- this.container = content;
- this.actions = this.app.actions;
- this.css = this.app.css;
- this.naviItems = [];
- this.collectData = null;
- this.personData = null;
- this.tokenData = null;
- this.portalData = null;
- this.loadDataBack = null;
- this.publicData = null;
- this.load();
- },
- getData: function(){
- var checkData = function(){
- if (this.collectData && this.personData && this.tokenData && this.portalData && this.publicData && this.ternaryData){
- if (this.loadDataBack){
- var fun = this.loadDataBack;
- this.loadDataBack = null;
- fun();
- }
- }
- }.bind(this);
- this.actions.getCollect(function(json){
- this.collectData = json.data;
- checkData();
- }.bind(this));
- this.actions.getPerson(function(json){
- this.personData = json.data;
- checkData();
- }.bind(this));
- this.actions.getToken(function(json){
- this.tokenData = json.data;
- checkData();
- }.bind(this));
- this.actions.getPortal(function(json){
- this.portalData = json.data;
- checkData();
- }.bind(this));
- o2.Actions.load("x_program_center").ConfigAction.getTernaryManagement(function(json){
- this.ternaryData = json.data;
- checkData();
- }.bind(this));
- //o2.UD.deletePublicData("faceKeys");
- o2.UD.getPublicData("faceKeys", function(json){
- if (json){
- if (json["api-key"]){
- json.api_key = json["api-key"];
- delete json["api-key"]
- }
- if (json["api_secret"]){
- json.api_secret = json["api_secret"];
- delete json["api_secret"]
- }
- }
- this.publicData = json || {"api": {"api_key":"", "api_secret":""}};
- checkData();
- }.bind(this));
- },
- load: function(){
- if (MWF.AC.isAdministrator()) this.getData();
- this.naviAreaNode = new Element("div", {"styles": this.css.explorerNaviAreaNode}).inject(this.container);
- this.naviNode = new Element("div", {"styles": this.css.explorerNaviNode}).inject(this.naviAreaNode);
- this.contentAreaNode = new Element("div", {"styles": this.css.explorerContentAreaNode}).inject(this.container);
- this.loadNavi();
- },
- loadNavi: function(){
- var json = this.getNaviJson();
- json.each(function(navi){
- this.naviItems.push(this.createNaviItem(navi));
- }.bind(this));
- this.naviItems[0].click();
- },
- createNaviItem: function(navi){
- var naviItemNode = new Element("div", {"styles": this.css.naviItemNode}).inject(this.naviNode);
- //var naviItemIconNode = new Element("div", {"styles": this.css.naviItemIconNode}).inject(naviItemNode);
- naviItemNode.setStyle("background-image", "url(../x_component_Setting/$Main/default/icon/"+navi.icon+".png)");
- //var naviItemTextNode = new Element("div", {"styles": this.css.naviItemTextNode}).inject(naviItemNode);
- naviItemNode.set("text", navi.text);
- naviItemNode.store("navi", navi);
- var _self = this;
- naviItemNode.addEvent("click", function(){
- _self.setNavi(this);
- });
- return naviItemNode;
- },
- setNavi: function(item){
- var navi = item.retrieve("navi");
- this.naviItems.each(function(node){
- var itemNavi = node.retrieve("navi");
- var content = node.retrieve("content", null);
- if (content) content.destroy();
- node.eliminate("content");
- node.setStyles(this.css.naviItemNode);
- node.setStyle("background-image", "url(../x_component_Setting/$Main/default/icon/"+itemNavi.icon+".png)");
- }.bind(this));
- item.setStyles(this.css.naviItemNode_current);
- item.setStyle("background-image", "url(../x_component_Setting/$Main/default/icon/"+navi.icon+"_current.png)");
- if (this[navi.action]) this[navi.action](item);
- },
- getNaviJson: function(){
- return [
- {
- "text": this.app.lp.tab_name,
- "icon": "name",
- "action": "loadSystemNameSetting"
- },
- {
- "text": this.app.lp.tab_user,
- "icon": "user",
- "action": "loadSystemPersonSetting"
- },
- {
- "text": this.app.lp.tab_login,
- "icon": "login",
- "action": "loadSystemLoginSetting"
- },
- {
- "text": this.app.lp.tab_sso,
- "icon": "sso",
- "action": "loadSystemSSOSetting"
- },
- {
- "text": this.app.lp.tab_config,
- "icon": "config",
- "action": "loadSystemConfigSetting"
- }
- ];
- },
- loadSystemConfigSetting:function(item){
- if (MWF.AC.isAdministrator()) {
- var appId = "ConfigDesigner";
- if (layout.desktop.apps["ConfigDesigner"]){
- layout.desktop.apps[appId].setCurrent();
- return;
- }
- layout.openApplication(null, "ConfigDesigner",{
- "appId": appId
- });
- }
- },
- loadSystemNameSetting: function(item){
- if (MWF.AC.isAdministrator()) {
- if (this.collectData && this.personData && this.tokenData){
- this.baseNameSetting = new MWF.xApplication.Setting.BaseNameDocument(this, this.contentAreaNode);
- item.store("content", this.baseNameSetting);
- }else{
- this.loadDataBack = function(){this.loadSystemNameSetting(item)}.bind(this);
- }
- }
- },
- loadSystemPersonSetting: function(item){
- if (MWF.AC.isAdministrator()) if (this.collectData && this.personData && this.tokenData){
- this.basePersonSetting = new MWF.xApplication.Setting.BasePersonDocument(this, this.contentAreaNode);
- item.store("content", this.basePersonSetting);
- }else{
- this.loadDataBack = function(){this.loadSystemPersonSetting(item)}.bind(this);
- }
- },
- loadSystemLoginSetting: function(item){
- if (MWF.AC.isAdministrator()) if (this.collectData && this.personData && this.tokenData){
- this.baseLoginSetting = new MWF.xApplication.Setting.BaseLoginDocument(this, this.contentAreaNode);
- item.store("content", this.baseLoginSetting);
- }else{
- this.loadDataBack = function(){this.loadSystemLoginSetting(item)}.bind(this);
- }
- },
- loadSystemSSOSetting: function(item){
- if (MWF.AC.isAdministrator()) if (this.collectData && this.personData && this.tokenData){
- this.baseLoginSetting = new MWF.xApplication.Setting.BaseSSODocument(this, this.contentAreaNode);
- item.store("content", this.baseLoginSetting);
- }else{
- this.loadDataBack = function(){this.loadSystemSSOSetting(item)}.bind(this);
- }
- }
- });
- MWF.xApplication.Setting.MobileExplorer = new Class({
- Extends: MWF.xApplication.Setting.BaseExplorer,
- initialize: function(app, content){
- this.app = app;
- this.lp = this.app.lp;
- this.container = content;
- this.actions = this.app.actions;
- this.css = this.app.css;
- this.naviItems = [];
- this.collectData = null;
- this.personData = null;
- this.tokenData = null;
- this.loadDataBack = null;
- this.load();
- },
- getNaviJson: function(){
- return [
- {
- "text": this.app.lp.tab_cloud_connect,
- "icon": "connect",
- "action": "loadCloudConnectSetting"
- },
- {
- "text": this.app.lp.tab_mobile_module,
- "icon": "module",
- "action": "loadMobileModuleSetting"
- },
- {
- "text": this.app.lp.tab_mobile_style,
- "icon": "style",
- "action": "loadMobileStyleSetting"
- },
- {
- "text": this.app.lp.tab_mobile_mpweixin_menu,
- "icon": "style",
- "action": "loadMPWeixinMenuSetting"
- },
- {
- "text": this.app.lp.tab_mobile_app_pack,
- "icon": "service",
- "action": "loadAppPackSetting"
- }
- ];
- },
- getData: function(){
- var checkData = function(){
- if (this.proxyData && this.nativeData && this.imagesData){
- if (this.loadDataBack){
- var fun = this.loadDataBack;
- this.loadDataBack = null;
- fun();
- }
- }
- }.bind(this);
- this.actions.getProxy(function(json){
- this.proxyData = json.data;
- checkData();
- }.bind(this));
- this.actions.mobile_currentStyle(function(json){
- this.nativeData = {"indexType": json.data.indexType, "indexPortal": json.data.indexPortal, "simpleMode": json.data.simpleMode, "systemMessageSwitch": json.data.systemMessageSwitch, "nativeAppList": Array.clone(json.data.nativeAppList)};
- this.imagesData = {"images": Array.clone(json.data.images)};
- //this.indexData = {"indexType": json.data.indexType, "indexId": json.data.indexId};
- this.portalData = {"portalList": Array.clone(json.data.portalList)};
- delete json.data;
- json = null;
- checkData();
- }.bind(this));
- //微信菜单数据
- o2.Actions.load("x_program_center").MPWeixinAction.menuWeixinList(function (json) {
- if (json.data && json.data.button) {
- this.mpweixinListData = json.data.button;
- } else {
- this.mpweixinListData = [];
- }
- }.bind(this));
- // 微信公众号关注 回复
- o2.Actions.load("x_program_center").MPWeixinAction.menuWeixinSubscribe(function (json) {
- if (json.data ) {
- this.mpweixinSubscribe = json.data;
- }
- }.bind(this));
- },
- loadCloudConnectSetting: function(item){
- if (MWF.AC.isAdministrator()) if (this.proxyData && this.nativeData && this.imagesData){
- this.mobileConnectSetting = new MWF.xApplication.Setting.CloudConnectDocument(this, this.contentAreaNode);
- item.store("content", this.mobileConnectSetting);
- }else{
- this.loadDataBack = function(){this.loadCloudConnectSetting(item)}.bind(this);
- }
- },
- // loadMobileConnectSetting: function(item){
- // if (MWF.AC.isAdministrator()) if (this.proxyData && this.nativeData && this.imagesData){
- // this.mobileConnectSetting = new MWF.xApplication.Setting.MobileConnectDocument(this, this.contentAreaNode);
- // item.store("content", this.mobileConnectSetting);
- // }else{
- // this.loadDataBack = function(){this.loadMobileConnectSetting(item)}.bind(this);
- // }
- // },
- loadMobileModuleSetting: function(item){
- if (MWF.AC.isAdministrator()) if (this.proxyData && this.nativeData && this.imagesData){
- this.mobileModuleSetting = new MWF.xApplication.Setting.MobileModuleDocument(this, this.contentAreaNode);
- item.store("content", this.mobileModuleSetting);
- }else{
- this.loadDataBack = function(){this.loadMobileModuleSetting(item)}.bind(this);
- }
- },
- loadMobileStyleSetting: function(item){
- if (MWF.AC.isAdministrator()) if (this.proxyData && this.nativeData && this.imagesData){
- this.mobileStyleSetting = new MWF.xApplication.Setting.MobileStyleDocument(this, this.contentAreaNode);
- item.store("content", this.mobileStyleSetting);
- }else{
- this.loadDataBack = function(){this.loadMobileStyleSetting(item)}.bind(this);
- }
- },
- loadMPWeixinMenuSetting: function(item) {
- if (MWF.AC.isAdministrator()) if (this.proxyData && this.nativeData && this.imagesData){
- this.mpweixinMenuSetting = new MWF.xApplication.Setting.MPWeixinMenuSettingDocument(this, this.contentAreaNode);
- item.store("content", this.mpweixinMenuSetting);
- }else{
- this.loadDataBack = function(){this.loadMPWeixinMenuSetting(item)}.bind(this);
- }
- },
- loadAppPackSetting: function(item) {
- if (MWF.AC.isAdministrator()) {
- this.mobileAppPackOnline = new MWF.xApplication.Setting.AppPackOnlineDocument(this, this.contentAreaNode);
- item.store("content", this.mobileAppPackOnline);
- }
- }
- });
- // 废弃
- // MWF.xApplication.Setting.CloudExplorer = new Class({
- // Extends: MWF.xApplication.Setting.BaseExplorer,
- // initialize: function(app, content){
- // this.app = app;
- // this.lp = this.app.lp;
- // this.container = content;
- // this.actions = this.app.actions;
- // this.css = this.app.css;
- // this.naviItems = [];
- // this.collectData = null;
- // this.personData = null;
- // this.tokenData = null;
- // this.loadDataBack = null;
- // this.load();
- // },
- // getNaviJson: function(){
- // return [
- // {
- // "text": this.app.lp.tab_cloud_connect,
- // "icon": "connect",
- // "action": "loadCloudConnectSetting"
- // }
- // ];
- // },
- // getData: function(){
- // var checkData = function(){
- // if (this.proxyData && this.nativeData && this.imagesData){
- // if (this.loadDataBack){
- // var fun = this.loadDataBack;
- // this.loadDataBack = null;
- // fun();
- // }
- // }
- // }.bind(this);
- // this.actions.getProxy(function(json){
- // this.proxyData = json.data;
- // checkData();
- // }.bind(this));
- // this.actions.mobile_currentStyle(function(json){
- // this.nativeData = {"indexType": json.data.indexType, "indexPortal": json.data.indexPortal, "nativeAppList": Array.clone(json.data.nativeAppList)};
- // this.imagesData = {"images": Array.clone(json.data.images)};
- // //this.indexData = {"indexType": json.data.indexType, "indexId": json.data.indexId};
- // this.portalData = {"portalList": Array.clone(json.data.portalList)};
- // delete json.data;
- // json = null;
- // checkData();
- // }.bind(this));
- // },
- // loadCloudConnectSetting: function(item){
- // if (MWF.AC.isAdministrator()) if (this.proxyData && this.nativeData && this.imagesData){
- // this.mobileConnectSetting = new MWF.xApplication.Setting.CloudConnectDocument(this, this.contentAreaNode);
- // item.store("content", this.mobileConnectSetting);
- // }else{
- // this.loadDataBack = function(){this.loadCloudConnectSetting(item)}.bind(this);
- // }
- // },
- // });
- // O2云 账号登录相关
- MWF.xApplication.Setting.EmptyExplorer = new Class({
- Extends: MWF.xApplication.Setting.BaseExplorer,
- initialize: function(app, content){
- this.app = app;
- this.lp = this.app.lp;
- this.container = content;
- this.actions = this.app.actions;
- this.css = this.app.css;
- this.naviItems = [];
- this.collectData = null;
- this.personData = null;
- this.tokenData = null;
- this.loadDataBack = null;
- this.load();
- },
- getNaviJson: function(){
- return [
- {
- "text": this.app.lp.tab_cloud_connect,
- "icon": "connect",
- "action": "loadCloudConnectSetting"
- }
- ];
- },
- getData: function(){
- },
- loadCloudConnectSetting: function(item){
- if (MWF.AC.isAdministrator()) {
- this.mobileConnectSetting = new MWF.xApplication.Setting.EmptyDocument(this, this.contentAreaNode);
- item.store("content", this.mobileConnectSetting);
- }
- },
- });
- MWF.xApplication.Setting.UIExplorer = new Class({
- Extends: MWF.xApplication.Setting.BaseExplorer,
- initialize: function(app, content){
- this.app = app;
- this.lp = this.app.lp;
- this.container = content;
- this.actions = this.app.actions;
- this.css = this.app.css;
- this.naviItems = [];
- this.load();
- },
- getNaviJson: function(){
- return [
- {
- "text": this.app.lp.tab_ui_index,
- "icon": "index",
- "action": "loadUIIndexSetting"
- },
- {
- "text": this.app.lp.tab_ui_login,
- "icon": "login",
- "action": "loadUILoginSetting"
- }
- ];
- },
- getData: function(){
- },
- loadUILoginSetting: function(item){
- if (MWF.AC.isAdministrator()){
- this.uiLoginSetting = new MWF.xApplication.Setting.UILoginDocument(this, this.contentAreaNode);
- item.store("content", this.uiLoginSetting);
- }
- },
- loadUIIndexSetting: function(item){
- if (MWF.AC.isAdministrator()) {
- this.uiIndexSetting = new MWF.xApplication.Setting.UIIndexDocument(this, this.contentAreaNode);
- item.store("content", this.uiIndexSetting);
- }
- }
- });
- MWF.xApplication.Setting.DisposeExplorer = new Class({
- Extends: MWF.xApplication.Setting.BaseExplorer,
- initialize: function(app, content){
- this.app = app;
- this.lp = this.app.lp;
- this.container = content;
- this.actions = this.app.actions;
- this.css = this.app.css;
- this.naviItems = [];
- this.load();
- },
- getNaviJson: function(){
- return [
- {
- "text": this.app.lp.tab_ui_module,
- "icon": "module",
- "action": "loadUIModuleSetting"
- },
- {
- "text": this.app.lp.tab_ui_resource,
- "icon": "resource",
- "action": "loadResourceModuleSetting"
- },
- {
- "text": this.app.lp.tab_ui_service,
- "icon": "service",
- "action": "loadServiceModuleSetting"
- },
- {
- "text": this.app.lp.tab_ui_menu,
- "icon": "menu",
- "action": "loadMenuSetting"
- }
- ];
- },
- getData: function(){
- },
- loadUIModuleSetting: function(item){
- if (MWF.AC.isAdministrator()) {
- this.contentAreaNode.empty();
- this.uiModuleSetting = new MWF.xApplication.Setting.UIModuleDocument(this, this.contentAreaNode);
- item.store("content", this.uiModuleSetting);
- }
- },
- loadServiceModuleSetting: function(item){
- if (MWF.AC.isAdministrator()) {
- this.contentAreaNode.empty();
- this.serviceModuleSetting = new MWF.xApplication.Setting.ServiceModuleDocument(this, this.contentAreaNode);
- item.store("content", this.serviceModuleSetting);
- }
- },
- loadResourceModuleSetting: function(item){
- if (MWF.AC.isAdministrator()) {
- this.contentAreaNode.empty();
- this.resourceModuleSetting = new MWF.xApplication.Setting.ResourceModuleDocument(this, this.contentAreaNode);
- item.store("content", this.resourceModuleSetting);
- }
- },
- loadMenuSetting: function(item){
- if (MWF.AC.isAdministrator()) {
- o2.xDesktop.requireApp("Setting", "SettingModuleMenu", function(){
- this.moduleMenuSetting = new MWF.xApplication.Setting.ModuleMenuDocument(this, this.contentAreaNode);
- item.store("content", this.moduleMenuSetting);
- }.bind(this));
- }
- }
- });
|