|
|
@@ -457,12 +457,12 @@ o2.widget.O2QueryView = new Class({
|
|
|
}
|
|
|
},
|
|
|
open : function (e) {
|
|
|
- if( this.data.id ){
|
|
|
+ if( this.data.id && this.data.query ){
|
|
|
var appId = "query.ViewDesigner" + this.data.id;
|
|
|
if (layout.desktop.apps[appId]){
|
|
|
layout.desktop.apps[appId].setCurrent();
|
|
|
}else {
|
|
|
- var options = {"id": this.data.id, "appId": appId};
|
|
|
+ var options = {"id": this.data.id, "application": this.data.query, "appId": appId};
|
|
|
layout.desktop.openApplication(e, "query.ViewDesigner", options);
|
|
|
}
|
|
|
}
|
|
|
@@ -483,12 +483,12 @@ o2.widget.O2QueryStat = new Class({
|
|
|
}
|
|
|
},
|
|
|
open : function (e) {
|
|
|
- if( this.data.id ){
|
|
|
+ if( this.data.id && this.data.query){
|
|
|
var appId = "query.StatDesigner" + this.data.id;
|
|
|
if (layout.desktop.apps[appId]){
|
|
|
layout.desktop.apps[appId].setCurrent();
|
|
|
}else {
|
|
|
- var options = {"id": this.data.id, "appId": appId};
|
|
|
+ var options = {"id": this.data.id,"application": this.data.query, "appId": appId};
|
|
|
layout.desktop.openApplication(e, "query.StatDesigner", options);
|
|
|
}
|
|
|
}
|
|
|
@@ -509,12 +509,12 @@ o2.widget.O2QueryTable = new Class({
|
|
|
}
|
|
|
},
|
|
|
open : function (e) {
|
|
|
- if( this.data.id ){
|
|
|
+ if( this.data.id && this.data.query){
|
|
|
var appId = "query.TableDesigner" + this.data.id;
|
|
|
if (layout.desktop.apps[appId]){
|
|
|
layout.desktop.apps[appId].setCurrent();
|
|
|
}else {
|
|
|
- var options = {"id": this.data.id, "appId": appId};
|
|
|
+ var options = {"id": this.data.id,"application": this.data.query, "appId": appId};
|
|
|
layout.desktop.openApplication(e, "query.TableDesigner", options);
|
|
|
}
|
|
|
}
|
|
|
@@ -572,6 +572,25 @@ o2.widget.O2Script = new Class({
|
|
|
getPersonData: function(){
|
|
|
return this.data;
|
|
|
},
|
|
|
+ createInforNode: function(){
|
|
|
+ if( !this.data.appType )return false;
|
|
|
+
|
|
|
+ this.inforNode = new Element("div", {
|
|
|
+ "styles": this.style.identityInforNode
|
|
|
+ });
|
|
|
+ var nameNode = new Element("div", {
|
|
|
+ "text": o2.LP[this.data.appType+"Name"]
|
|
|
+ }).inject(this.inforNode);
|
|
|
+ var nameTextNode = new Element("div", {
|
|
|
+ "text": this.data.applicationName || this.data.appName
|
|
|
+ }).inject(this.inforNode);
|
|
|
+ this.tooltip = new mBox.Tooltip({
|
|
|
+ content: this.inforNode,
|
|
|
+ setStyles: {content: {padding: 15, lineHeight: 20}},
|
|
|
+ attach: this.node,
|
|
|
+ transition: 'flyin'
|
|
|
+ });
|
|
|
+ },
|
|
|
open : function (e) {
|
|
|
if( this.data.id && this.data.appId && this.data.appType){
|
|
|
var appName;
|
|
|
@@ -622,6 +641,25 @@ o2.widget.O2Dictionary = new Class({
|
|
|
getPersonData: function(){
|
|
|
return this.data;
|
|
|
},
|
|
|
+ createInforNode: function(){
|
|
|
+ if( !this.data.appType )return false;
|
|
|
+
|
|
|
+ this.inforNode = new Element("div", {
|
|
|
+ "styles": this.style.identityInforNode
|
|
|
+ });
|
|
|
+ var nameNode = new Element("div", {
|
|
|
+ "text": o2.LP[this.data.appType+"Name"]
|
|
|
+ }).inject(this.inforNode);
|
|
|
+ var nameTextNode = new Element("div", {
|
|
|
+ "text": this.data.applicationName || this.data.appName
|
|
|
+ }).inject(this.inforNode);
|
|
|
+ this.tooltip = new mBox.Tooltip({
|
|
|
+ content: this.inforNode,
|
|
|
+ setStyles: {content: {padding: 15, lineHeight: 20}},
|
|
|
+ attach: this.node,
|
|
|
+ transition: 'flyin'
|
|
|
+ });
|
|
|
+ },
|
|
|
open : function (e) {
|
|
|
if( this.data.id && this.data.appId && this.data.appType){
|
|
|
var appName;
|