提交 6d93c30b 编写于 作者: U unknown

上下文种添加 getParentEnvirment

上级 0c5d5b27
......@@ -756,6 +756,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
"selectAll" : function () { return _form.selectAll(); },
"unSelectAll" : function () { return _form.unSelectAll(); },
"getSelectedData" : function () { return _form.getSelectedData(); },
"setFilter" : function ( filter ) { return _form.setFilter(filter); },
"switchView" : function ( options ) { return _form.switchView(options); },
// "getInfor": function () { return ev.pageInfor; },
......
......@@ -787,6 +787,12 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
})
}
},
setFilter : function( filter ){
if( !filter )filter = [];
if( typeOf( filter ) === "object" )filter = [ filter ];
this.json.filter = filter;
this.createViewNode({"filterList": this.json.filter ? this.json.filter.clone() : null});
},
switchView : function( json ){
debugger;
// json = {
......@@ -807,7 +813,7 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
var newJson = Object.merge( Object.clone(this.originalJson), json );
this.container.empty();
this.initialize( this.container, newJson, Object.clone(this.options), this.app);
this.initialize( this.container, newJson, Object.clone(this.options), this.app, this.parentMacro);
},
confirm: function (type, e, title, text, width, height, ok, cancel, callback, mask, style) {
this.app.confirm(type, e, title, text, width, height, ok, cancel, callback, mask, style)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册