Sfoglia il codice sorgente

设计搜索功能

huqi 5 anni fa
parent
commit
0430f035eb

+ 11 - 1
o2web/source/x_component_portal_PortalManager/FileExplorer.js

@@ -21,6 +21,16 @@ MWF.xApplication.portal.PortalManager.FileExplorer = new Class({
     //     // this.app.desktop.openApplication(e, "process.FileDesigner", options);
     //     // this.app.desktop.openApplication(e, "process.FileDesigner", options);
     //     new MWF.xApplication.portal.PortalManager.FileDesigner(this);
     //     new MWF.xApplication.portal.PortalManager.FileDesigner(this);
     // },
     // },
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "portal";
+        var options = {
+            "filter": {
+                "moduleList": ["portal"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     getNewData: function(){
     getNewData: function(){
         return {
         return {
             "id": "",
             "id": "",
@@ -233,4 +243,4 @@ MWF.xApplication.portal.PortalManager.FileDesigner = new Class({
         }.bind(this));
         }.bind(this));
     }
     }
 
 
-});
+});

+ 10 - 1
o2web/source/x_component_portal_PortalManager/PageExplorer.js

@@ -11,7 +11,16 @@ MWF.xApplication.portal.PortalManager.PageExplorer = new Class({
             "noElement": MWF.xApplication.portal.PortalManager.LP.page.noPageNoticeText
             "noElement": MWF.xApplication.portal.PortalManager.LP.page.noPageNoticeText
         }
         }
     },
     },
-
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "portal";
+        var options = {
+            "filter": {
+                "moduleList": ["portal"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     keyCopy: function(e){
     keyCopy: function(e){
         if (this.selectMarkItems.length){
         if (this.selectMarkItems.length){
             var items = [];
             var items = [];

+ 11 - 2
o2web/source/x_component_portal_PortalManager/ScriptExplorer.js

@@ -11,7 +11,16 @@ MWF.xApplication.portal.PortalManager.ScriptExplorer = new Class({
             "noElement": MWF.xApplication.portal.PortalManager.LP.script.noProcessNoticeText
             "noElement": MWF.xApplication.portal.PortalManager.LP.script.noProcessNoticeText
         }
         }
     },
     },
-
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "portal";
+        var options = {
+            "filter": {
+                "moduleList": ["portal"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     keyCopy: function(e){
     keyCopy: function(e){
         if (this.selectMarkItems.length){
         if (this.selectMarkItems.length){
             var items = [];
             var items = [];
@@ -291,4 +300,4 @@ MWF.xApplication.portal.PortalManager.ScriptExplorer.Script = new Class({
             }.bind(this));
             }.bind(this));
         }.bind(this));
         }.bind(this));
     }
     }
-});
+});

+ 10 - 1
o2web/source/x_component_portal_PortalManager/WidgetExplorer.js

@@ -12,7 +12,16 @@ MWF.xApplication.portal.PortalManager.WidgetExplorer = new Class({
             "noElement": MWF.xApplication.portal.PortalManager.LP.widget.noNoticeText
             "noElement": MWF.xApplication.portal.PortalManager.LP.widget.noNoticeText
         }
         }
     },
     },
-
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "portal";
+        var options = {
+            "filter": {
+                "moduleList": ["portal"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     keyCopy: function(e){
     keyCopy: function(e){
         if (this.selectMarkItems.length){
         if (this.selectMarkItems.length){
             var items = [];
             var items = [];

+ 11 - 5
o2web/source/x_component_query_QueryManager/$Explorer/default/css.wcss

@@ -79,10 +79,16 @@
         "color": "#4a90e2",
         "color": "#4a90e2",
         "border-bottom": "2px solid #4a90e2"
         "border-bottom": "2px solid #4a90e2"
     },
     },
-	"searchElementNode": {
-		"margin-left": "362px",
-		"overflow": "hidden"
-	},
+  "searchElementNode": {
+    "float": "right",
+    "margin-right": "30px",
+    "cursor": "pointer",
+    "margin-top": "10px",
+    "overflow": "hidden",
+    "height": "60px",
+    "width": "60px",
+    "background": "url('../x_component_process_ProcessManager/$Explorer/default/icon/find.png') center center no-repeat"
+  },
 	"searchElementButtonNode": {
 	"searchElementButtonNode": {
 		"float": "right",
 		"float": "right",
 		"width": "80px",
 		"width": "80px",
@@ -415,4 +421,4 @@
         "height": "100%",
         "height": "100%",
         "border-radius": "10px"
         "border-radius": "10px"
     }
     }
-}
+}

+ 10 - 0
o2web/source/x_component_query_QueryManager/StatExplorer.js

@@ -11,6 +11,16 @@ MWF.xApplication.query.QueryManager.StatExplorer = new Class({
             "noElement": MWF.xApplication.query.QueryManager.LP.stat.noStatNoticeText
             "noElement": MWF.xApplication.query.QueryManager.LP.stat.noStatNoticeText
         }
         }
     },
     },
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "query";
+        var options = {
+            "filter": {
+                "moduleList": ["query"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     keyCopy: function(e){
     keyCopy: function(e){
         if (this.selectMarkItems.length){
         if (this.selectMarkItems.length){
             var items = [];
             var items = [];

+ 11 - 0
o2web/source/x_component_query_QueryManager/StatementExplorer.js

@@ -24,6 +24,17 @@ MWF.xApplication.query.QueryManager.StatementExplorer = new Class({
         this.node = $(node);
         this.node = $(node);
         this.initData();
         this.initData();
     },
     },
+
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "query";
+        var options = {
+            "filter": {
+                "moduleList": ["query"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     keyCopy: function(e){
     keyCopy: function(e){
         if (this.selectMarkItems.length){
         if (this.selectMarkItems.length){
             var items = [];
             var items = [];

+ 10 - 0
o2web/source/x_component_query_QueryManager/TableExplorer.js

@@ -24,6 +24,16 @@ MWF.xApplication.query.QueryManager.TableExplorer = new Class({
         this.node = $(node);
         this.node = $(node);
         this.initData();
         this.initData();
     },
     },
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "query";
+        var options = {
+            "filter": {
+                "moduleList": ["query"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     keyCopy: function(e){
     keyCopy: function(e){
         if (this.selectMarkItems.length){
         if (this.selectMarkItems.length){
             var items = [];
             var items = [];

+ 10 - 0
o2web/source/x_component_query_QueryManager/ViewExplorer.js

@@ -13,6 +13,16 @@ MWF.xApplication.query.QueryManager.ViewExplorer = new Class({
         }
         }
     },
     },
 
 
+    openFindDesigner: function(){
+        this.app.options.application.moduleType = "query";
+        var options = {
+            "filter": {
+                "moduleList": ["query"],
+                "appList": [this.app.options.application]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     keyCopy: function(e){
     keyCopy: function(e){
         if (this.selectMarkItems.length){
         if (this.selectMarkItems.length){
             var items = [];
             var items = [];

+ 8 - 0
o2web/source/x_component_service_ServiceManager/AgentExplorer.js

@@ -12,6 +12,14 @@ MWF.xApplication.service.ServiceManager.AgentExplorer = new Class({
             "noElement": MWF.xApplication.service.ServiceManager.LP.agent.noAgentNoticeText
             "noElement": MWF.xApplication.service.ServiceManager.LP.agent.noAgentNoticeText
         }
         }
     },
     },
+    openFindDesigner: function(){
+        var options = {
+            "filter": {
+                "moduleList": ["service"]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     createCreateElementNode: function(){
     createCreateElementNode: function(){
         if( MWF.AC.isAdministrator() ) {
         if( MWF.AC.isAdministrator() ) {
             this.createElementNode = new Element("div", {
             this.createElementNode = new Element("div", {

+ 8 - 0
o2web/source/x_component_service_ServiceManager/InvokeExplorer.js

@@ -12,6 +12,14 @@ MWF.xApplication.service.ServiceManager.InvokeExplorer = new Class({
             "noElement": MWF.xApplication.service.ServiceManager.LP.invoke.noInvokeNoticeText
             "noElement": MWF.xApplication.service.ServiceManager.LP.invoke.noInvokeNoticeText
         }
         }
     },
     },
+    openFindDesigner: function(){
+        var options = {
+            "filter": {
+                "moduleList": ["service"]
+            }
+        };
+        layout.openApplication(null, "FindDesigner", options);
+    },
     createCreateElementNode: function(){
     createCreateElementNode: function(){
         if( MWF.AC.isAdministrator() ) {
         if( MWF.AC.isAdministrator() ) {
             this.createElementNode = new Element("div", {
             this.createElementNode = new Element("div", {