|
@@ -655,27 +655,27 @@ MWF.xApplication.query.ViewDesigner.View = new Class({
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- var list;
|
|
|
|
|
- if( this.data.data && this.data.data.where ){
|
|
|
|
|
- if( this.data.data.where.creatorIdentityList ){
|
|
|
|
|
- list = this.data.data.where.creatorIdentityList;
|
|
|
|
|
- for( var i=0; i< list.length ; i++){
|
|
|
|
|
- if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if( this.data.data.where.creatorPersonList ){
|
|
|
|
|
- list = this.data.data.where.creatorPersonList;
|
|
|
|
|
- for( var i=0; i< list.length ; i++){
|
|
|
|
|
- if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if( this.data.data.where.creatorUnitList ){
|
|
|
|
|
- list = this.data.data.where.creatorIdentityList;
|
|
|
|
|
- for( var i=0; i< list.length ; i++){
|
|
|
|
|
- if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // var list;
|
|
|
|
|
+ // if( this.data.data && this.data.data.where ){
|
|
|
|
|
+ // if( this.data.data.where.creatorIdentityList ){
|
|
|
|
|
+ // list = this.data.data.where.creatorIdentityList;
|
|
|
|
|
+ // for( var i=0; i< list.length ; i++){
|
|
|
|
|
+ // if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if( this.data.data.where.creatorPersonList ){
|
|
|
|
|
+ // list = this.data.data.where.creatorPersonList;
|
|
|
|
|
+ // for( var i=0; i< list.length ; i++){
|
|
|
|
|
+ // if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if( this.data.data.where.creatorUnitList ){
|
|
|
|
|
+ // list = this.data.data.where.creatorIdentityList;
|
|
|
|
|
+ // for( var i=0; i< list.length ; i++){
|
|
|
|
|
+ // if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
this.designer.actions.saveView(this.data, function(json){
|
|
this.designer.actions.saveView(this.data, function(json){
|
|
|
this.data.id = json.data.id;
|
|
this.data.id = json.data.id;
|
|
@@ -696,27 +696,27 @@ MWF.xApplication.query.ViewDesigner.View = new Class({
|
|
|
//}
|
|
//}
|
|
|
|
|
|
|
|
debugger;
|
|
debugger;
|
|
|
- var list;
|
|
|
|
|
- if( this.data.data && this.data.data.where ){
|
|
|
|
|
- if( this.data.data.where.creatorIdentityList ){
|
|
|
|
|
- list = this.data.data.where.creatorIdentityList;
|
|
|
|
|
- for( var i=0; i< list.length ; i++){
|
|
|
|
|
- if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if( this.data.data.where.creatorPersonList ){
|
|
|
|
|
- list = this.data.data.where.creatorPersonList;
|
|
|
|
|
- for( var i=0; i< list.length ; i++){
|
|
|
|
|
- if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if( this.data.data.where.creatorUnitList ){
|
|
|
|
|
- list = this.data.data.where.creatorUnitList;
|
|
|
|
|
- for( var i=0; i< list.length ; i++){
|
|
|
|
|
- if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // var list;
|
|
|
|
|
+ // if( this.data.data && this.data.data.where ){
|
|
|
|
|
+ // if( this.data.data.where.creatorIdentityList ){
|
|
|
|
|
+ // list = this.data.data.where.creatorIdentityList;
|
|
|
|
|
+ // for( var i=0; i< list.length ; i++){
|
|
|
|
|
+ // if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if( this.data.data.where.creatorPersonList ){
|
|
|
|
|
+ // list = this.data.data.where.creatorPersonList;
|
|
|
|
|
+ // for( var i=0; i< list.length ; i++){
|
|
|
|
|
+ // if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if( this.data.data.where.creatorUnitList ){
|
|
|
|
|
+ // list = this.data.data.where.creatorUnitList;
|
|
|
|
|
+ // for( var i=0; i< list.length ; i++){
|
|
|
|
|
+ // if( typeOf( list[i] ) === "object" )list[i] = list[i].name || "";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
this.designer.actions.saveView(this.data, function(json){
|
|
this.designer.actions.saveView(this.data, function(json){
|
|
|
this.designer.notice(this.designer.lp.notice.save_success, "success", this.node, {"x": "left", "y": "bottom"});
|
|
this.designer.notice(this.designer.lp.notice.save_success, "success", this.node, {"x": "left", "y": "bottom"});
|