Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
88ace661
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
88ace661
编写于
10月 29, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
查询增加视图
上级
8c48b9e6
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
214 addition
and
119 deletion
+214
-119
o2web/source/x_component_process_FormDesigner/Module/Statement.js
...urce/x_component_process_FormDesigner/Module/Statement.js
+1
-1
o2web/source/x_component_process_Xform/Statement.js
o2web/source/x_component_process_Xform/Statement.js
+1
-0
o2web/source/x_component_query_Query/Main.js
o2web/source/x_component_query_Query/Main.js
+9
-5
o2web/source/x_component_query_Query/Statement.js
o2web/source/x_component_query_Query/Statement.js
+70
-74
o2web/source/x_component_query_Query/lp/zh-cn.js
o2web/source/x_component_query_Query/lp/zh-cn.js
+1
-0
o2web/source/x_component_query_StatementDesigner/$Statement/view.html
.../x_component_query_StatementDesigner/$Statement/view.html
+1
-1
o2web/source/x_component_query_StatementDesigner/Property.js
o2web/source/x_component_query_StatementDesigner/Property.js
+3
-3
o2web/source/x_component_query_StatementDesigner/lp/zh-cn.js
o2web/source/x_component_query_StatementDesigner/lp/zh-cn.js
+4
-1
o2web/source/x_component_query_StatementDesigner/widget/ViewFilter.js
.../x_component_query_StatementDesigner/widget/ViewFilter.js
+124
-34
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Statement.js
浏览文件 @
88ace661
...
@@ -91,7 +91,7 @@ MWF.xApplication.process.FormDesigner.Module.Statement = MWF.FCStatement = new C
...
@@ -91,7 +91,7 @@ MWF.xApplication.process.FormDesigner.Module.Statement = MWF.FCStatement = new C
this
.
_showActionbar
();
this
.
_showActionbar
();
}
}
var
columnList
=
viewData
.
selectEntryList
||
viewData
.
selectList
;
var
columnList
=
viewData
.
data
?
(
viewData
.
data
.
selectEntryList
||
viewData
.
data
.
selectList
)
:
[]
;
columnList
.
each
(
function
(
column
){
columnList
.
each
(
function
(
column
){
if
(
!
column
.
hideColumn
){
if
(
!
column
.
hideColumn
){
var
viewCell
=
new
Element
(
"
td
"
,
{
var
viewCell
=
new
Element
(
"
td
"
,
{
...
...
o2web/source/x_component_process_Xform/Statement.js
浏览文件 @
88ace661
...
@@ -48,6 +48,7 @@ MWF.xApplication.process.Xform.Statement = MWF.APPStatement = new Class({
...
@@ -48,6 +48,7 @@ MWF.xApplication.process.Xform.Statement = MWF.APPStatement = new Class({
var
viewJson
=
{
var
viewJson
=
{
"
application
"
:
(
this
.
json
.
queryStatement
)
?
this
.
json
.
queryStatement
.
appName
:
this
.
json
.
application
,
"
application
"
:
(
this
.
json
.
queryStatement
)
?
this
.
json
.
queryStatement
.
appName
:
this
.
json
.
application
,
"
statementName
"
:
(
this
.
json
.
queryStatement
)
?
this
.
json
.
queryStatement
.
name
:
this
.
json
.
statementName
,
"
statementName
"
:
(
this
.
json
.
queryStatement
)
?
this
.
json
.
queryStatement
.
name
:
this
.
json
.
statementName
,
"
statementId
"
:
(
this
.
json
.
queryStatement
)
?
this
.
json
.
queryStatement
.
id
:
this
.
json
.
statementId
,
"
isTitle
"
:
this
.
json
.
isTitle
||
"
yes
"
,
"
isTitle
"
:
this
.
json
.
isTitle
||
"
yes
"
,
"
select
"
:
this
.
json
.
select
||
"
none
"
,
"
select
"
:
this
.
json
.
select
||
"
none
"
,
"
titleStyles
"
:
this
.
json
.
titleStyles
,
"
titleStyles
"
:
this
.
json
.
titleStyles
,
...
...
o2web/source/x_component_query_Query/Main.js
浏览文件 @
88ace661
...
@@ -80,7 +80,7 @@ MWF.xApplication.query.Query.Main = new Class({
...
@@ -80,7 +80,7 @@ MWF.xApplication.query.Query.Main = new Class({
this
.
naviStatTitleNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatTitleNode
,
"
text
"
:
this
.
lp
.
stat
}).
inject
(
this
.
naviContentNode
);
this
.
naviStatTitleNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatTitleNode
,
"
text
"
:
this
.
lp
.
stat
}).
inject
(
this
.
naviContentNode
);
this
.
naviStatContentNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatContentNode
}).
inject
(
this
.
naviContentNode
);
this
.
naviStatContentNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatContentNode
}).
inject
(
this
.
naviContentNode
);
this
.
naviStatementTitleNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatementTitleNode
,
"
text
"
:
this
.
lp
.
stat
}).
inject
(
this
.
naviContentNode
);
this
.
naviStatementTitleNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatementTitleNode
,
"
text
"
:
this
.
lp
.
stat
ement
}).
inject
(
this
.
naviContentNode
);
this
.
naviStatementContentNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatementContentNode
}).
inject
(
this
.
naviContentNode
);
this
.
naviStatementContentNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
naviStatementContentNode
}).
inject
(
this
.
naviContentNode
);
this
.
setContentHeightFun
=
this
.
setContentHeight
.
bind
(
this
);
this
.
setContentHeightFun
=
this
.
setContentHeight
.
bind
(
this
);
...
@@ -131,7 +131,10 @@ MWF.xApplication.query.Query.Main = new Class({
...
@@ -131,7 +131,10 @@ MWF.xApplication.query.Query.Main = new Class({
}.
bind
(
this
));
}.
bind
(
this
));
}
}
}.
bind
(
this
));
}.
bind
(
this
));
MWF
.
Actions
.
get
(
"
x_query_assemble_surface
"
).
listStatement
(
this
.
options
.
id
,
function
(
json
){
MWF
.
Actions
.
load
(
"
x_query_assemble_surface
"
).
StatementAction
.
listWithQuery
(
this
.
options
.
id
,
{
"
justSelect
"
:
true
,
"
hasView
"
:
true
},
function
(
json
){
//this.action.listStat(this.options.id, function(json){
//this.action.listStat(this.options.id, function(json){
if
(
json
.
data
){
if
(
json
.
data
){
json
.
data
.
each
(
function
(
statement
){
json
.
data
.
each
(
function
(
statement
){
...
@@ -152,8 +155,8 @@ MWF.xApplication.query.Query.Main = new Class({
...
@@ -152,8 +155,8 @@ MWF.xApplication.query.Query.Main = new Class({
var
item
=
new
MWF
.
xApplication
.
query
.
Query
.
StatItem
(
stat
,
this
);
var
item
=
new
MWF
.
xApplication
.
query
.
Query
.
StatItem
(
stat
,
this
);
return
item
;
return
item
;
},
},
createStatementNaviItem
:
function
(
stat
){
createStatementNaviItem
:
function
(
stat
ement
){
var
item
=
new
MWF
.
xApplication
.
query
.
Query
.
StatementItem
(
stat
,
this
);
var
item
=
new
MWF
.
xApplication
.
query
.
Query
.
StatementItem
(
stat
ement
,
this
);
return
item
;
return
item
;
},
},
...
@@ -251,7 +254,8 @@ MWF.xApplication.query.Query.StatementItem = new Class({
...
@@ -251,7 +254,8 @@ MWF.xApplication.query.Query.StatementItem = new Class({
this
.
viewContent
.
empty
();
this
.
viewContent
.
empty
();
this
.
viewer
=
new
MWF
.
QStatement
(
this
.
app
,
this
.
viewContent
,
{
this
.
viewer
=
new
MWF
.
QStatement
(
this
.
app
,
this
.
viewContent
,
{
"
application
"
:
this
.
view
.
query
,
"
application
"
:
this
.
view
.
query
,
"
statementName
"
:
this
.
view
.
name
"
statementName
"
:
this
.
view
.
name
,
"
statementId
"
:
this
.
view
.
id
});
});
}.
bind
(
this
));
}.
bind
(
this
));
}
}
...
...
o2web/source/x_component_query_Query/Statement.js
浏览文件 @
88ace661
...
@@ -98,24 +98,27 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
...
@@ -98,24 +98,27 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
lookup
:
function
(
data
,
callback
){
lookup
:
function
(
data
,
callback
){
if
(
this
.
lookuping
)
return
;
if
(
this
.
lookuping
)
return
;
this
.
lookuping
=
true
;
this
.
lookuping
=
true
;
this
.
getLookupAction
(
function
(){
//
this.getLookupAction(function(){
if
(
this
.
json
.
application
){
//
if (this.json.application){
var
d
=
data
||
{};
var
d
=
data
||
{};
d
.
count
=
this
.
json
.
count
;
// d.count = this.json.count;
this
.
lookupAction
.
bundleView
(
this
.
json
.
id
,
d
,
function
(
json
){
// this.lookupAction.bundleView(this.json.id, d, function(json){
this
.
bundleItems
=
json
.
data
.
valueList
;
// this.bundleItems = json.data.valueList;
// this._initPage();
this
.
currentPage
=
this
.
options
.
defaultPage
||
1
;
this
.
options
.
defaultPage
=
null
;
this
.
_initPage
();
if
(
this
.
bundleItems
.
length
){
if
(
this
.
noDataTextNode
)
this
.
noDataTextNode
.
destroy
();
if
(
this
.
noDataTextNode
)
this
.
noDataTextNode
.
destroy
();
this
.
loadCurrentPageData
(
function
()
{
this
.
loadCurrentPageData
(
function
(
json
)
{
if
(
typeOf
(
json
.
count
)
===
"
number
"
)
this
.
totalCount
=
json
.
count
;
if
(
this
.
totalCount
){
this
.
fireEvent
(
"
postLoad
"
);
//用户配置的事件
this
.
fireEvent
(
"
postLoad
"
);
//用户配置的事件
this
.
lookuping
=
false
;
this
.
lookuping
=
false
;
if
(
callback
)
callback
(
this
);
if
(
callback
)
callback
(
this
);
}.
bind
(
this
));
}
else
{
}
else
{
//this._loadPageNode();
this
.
viewPageAreaNode
.
empty
();
this
.
viewPageAreaNode
.
empty
();
if
(
this
.
viewJson
.
noDataText
){
if
(
this
.
viewJson
.
noDataText
){
var
noDataTextNodeStyle
=
this
.
css
.
noDataTextNode
;
var
noDataTextNodeStyle
=
this
.
css
.
noDataTextNode
;
...
@@ -127,19 +130,23 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
...
@@ -127,19 +130,23 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
"
text
"
:
this
.
viewJson
.
noDataText
"
text
"
:
this
.
viewJson
.
noDataText
}).
inject
(
this
.
contentAreaNode
);
}).
inject
(
this
.
contentAreaNode
);
}
}
if
(
this
.
loadingAreaNode
){
//
if (this.loadingAreaNode){
this
.
loadingAreaNode
.
destroy
();
//
this.loadingAreaNode.destroy();
this
.
loadingAreaNode
=
null
;
//
this.loadingAreaNode = null;
}
//
}
this
.
fireEvent
(
"
postLoad
"
);
//用户配置的事件
this
.
fireEvent
(
"
postLoad
"
);
//用户配置的事件
this
.
lookuping
=
false
;
this
.
lookuping
=
false
;
if
(
callback
)
callback
(
this
);
if
(
callback
)
callback
(
this
);
}
}
}.
bind
(
this
));
}
}.
bind
(
this
));
}.
bind
(
this
),
true
,
"
all
"
);
// }.bind(this));
// }
// }.bind(this));
},
},
loadCurrentPageData
:
function
(
callback
,
async
){
loadCurrentPageData
:
function
(
callback
,
async
,
type
){
//是否需要在翻页的时候清空之前的items ?
//是否需要在翻页的时候清空之前的items ?
if
(
this
.
pageloading
)
return
;
if
(
this
.
pageloading
)
return
;
...
@@ -148,27 +155,32 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
...
@@ -148,27 +155,32 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
this
.
items
=
[];
this
.
items
=
[];
var
p
=
this
.
currentPage
;
var
p
=
this
.
currentPage
;
var
d
=
{};
var
d
=
{
var
valueList
=
this
.
bundleItems
.
slice
((
p
-
1
)
*
this
.
json
.
pageSize
,
this
.
json
.
pageSize
*
p
);
"
filterList
"
:
[],
d
.
bundleList
=
valueList
;
"
parameter
"
:
{
}
};
while
(
this
.
viewTable
.
rows
.
length
>
1
){
while
(
this
.
viewTable
.
rows
.
length
>
1
){
this
.
viewTable
.
deleteRow
(
-
1
);
this
.
viewTable
.
deleteRow
(
-
1
);
}
}
//this.createLoadding();
//this.createLoadding();
this
.
loadViewRes
=
this
.
lookupAction
.
loadView
(
this
.
json
.
name
,
this
.
json
.
application
,
d
,
function
(
json
){
this
.
loadViewRes
=
o2
.
Actions
.
load
(
"
x_query_assemble_surface
"
).
StatementAction
.
executeV2
(
this
.
viewData
=
json
.
data
;
this
.
json
.
statementId
||
this
.
json
.
statementName
,
type
||
"
data
"
,
p
,
this
.
json
.
pageSize
,
d
,
function
(
json
){
this
.
gridJson
=
json
.
data
;
this
.
fireEvent
(
"
postLoadPageData
"
);
this
.
fireEvent
(
"
postLoadPageData
"
);
if
(
this
.
viewJson
.
group
.
column
){
// if (this.viewJson.group.column){
this
.
gridJson
=
json
.
data
.
groupGrid
;
// this.gridJson = json.data.groupGrid;
// this.loadGroupData();
// }else{
}
else
{
// this.gridJson = json.data.grid;
this
.
gridJson
=
json
.
data
.
grid
;
this
.
loadData
();
this
.
loadData
();
}
//
}
if
(
this
.
gridJson
.
length
)
this
.
_loadPageNode
();
if
(
this
.
gridJson
.
length
)
this
.
_loadPageNode
();
if
(
this
.
loadingAreaNode
){
if
(
this
.
loadingAreaNode
){
this
.
loadingAreaNode
.
destroy
();
this
.
loadingAreaNode
.
destroy
();
...
@@ -180,10 +192,19 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
...
@@ -180,10 +192,19 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
this
.
fireEvent
(
"
loadView
"
);
//options 传入的事件
this
.
fireEvent
(
"
loadView
"
);
//options 传入的事件
this
.
fireEvent
(
"
postLoadPage
"
);
this
.
fireEvent
(
"
postLoadPage
"
);
if
(
callback
)
callback
();
if
(
callback
)
callback
(
json
);
}.
bind
(
this
),
null
,
async
===
false
?
false
:
true
);
}.
bind
(
this
),
null
,
async
===
false
?
false
:
true
);
},
},
getView
:
function
(
callback
){
this
.
getViewRes
=
o2
.
Actions
.
load
(
"
x_query_assemble_surface
"
).
StatementAction
.
get
(
this
.
json
.
statementId
||
this
.
json
.
statementName
,
function
(
json
){
debugger
;
this
.
viewJson
=
JSON
.
decode
(
json
.
data
.
view
);
this
.
json
.
application
=
json
.
data
.
query
;
//this.json = Object.merge(this.json, json.data);
this
.
statementJson
=
json
.
data
;
if
(
callback
)
callback
();
}.
bind
(
this
));
},
loadData
:
function
(){
loadData
:
function
(){
if
(
this
.
gridJson
.
length
){
if
(
this
.
gridJson
.
length
){
...
@@ -212,31 +233,6 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
...
@@ -212,31 +233,6 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
if
(
to
==
this
.
gridJson
.
length
)
this
.
isItemsLoaded
=
true
;
if
(
to
==
this
.
gridJson
.
length
)
this
.
isItemsLoaded
=
true
;
}
}
},
},
getView
:
function
(
callback
){
this
.
getLookupAction
(
function
(){
if
(
this
.
json
.
application
){
this
.
getViewRes
=
this
.
lookupAction
.
getStatement
(
this
.
json
.
statementName
,
this
.
json
.
application
,
function
(
json
){
this
.
viewJson
=
JSON
.
decode
(
json
.
data
.
data
);
this
.
json
=
Object
.
merge
(
this
.
json
,
json
.
data
);
if
(
callback
)
callback
();
}.
bind
(
this
));
// this.lookupAction.invoke({"name": "getView","async": true, "parameter": {"view": this.json.statementName, "application": this.json.application},"success": function(json){
// this.viewJson = JSON.decode(json.data.data);
// this.json = Object.merge(this.json, json.data);
// //var viewData = JSON.decode(json.data.data);
// if (callback) callback();
// }.bind(this)});
}
else
{
this
.
getViewRes
=
this
.
lookupAction
.
getViewById
(
this
.
json
.
viewId
,
function
(
json
){
this
.
viewJson
=
JSON
.
decode
(
json
.
data
.
data
);
this
.
json
.
application
=
json
.
data
.
query
;
this
.
json
=
Object
.
merge
(
this
.
json
,
json
.
data
);
if
(
callback
)
callback
();
}.
bind
(
this
));
}
}.
bind
(
this
));
},
getFilter
:
function
(){
getFilter
:
function
(){
var
filterData
=
[];
var
filterData
=
[];
if
(
this
.
searchStatus
===
"
custom
"
){
if
(
this
.
searchStatus
===
"
custom
"
){
...
@@ -255,7 +251,7 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
...
@@ -255,7 +251,7 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
"
path
"
:
entry
.
path
,
"
path
"
:
entry
.
path
,
"
value
"
:
key
,
"
value
"
:
key
,
"
formatType
"
:
entry
.
formatType
,
"
formatType
"
:
entry
.
formatType
,
"
logic
"
:
"
or
"
,
"
logic
"
:
"
and
"
,
"
comparison
"
:
"
like
"
"
comparison
"
:
"
like
"
};
};
filterData
.
push
(
d
);
filterData
.
push
(
d
);
...
@@ -267,7 +263,7 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
...
@@ -267,7 +263,7 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
"
path
"
:
entry
.
path
,
"
path
"
:
entry
.
path
,
"
value
"
:
v
,
"
value
"
:
v
,
"
formatType
"
:
entry
.
formatType
,
"
formatType
"
:
entry
.
formatType
,
"
logic
"
:
"
or
"
,
"
logic
"
:
"
and
"
,
"
comparison
"
:
"
like
"
"
comparison
"
:
"
like
"
};
};
filterData
.
push
(
d
);
filterData
.
push
(
d
);
...
...
o2web/source/x_component_query_Query/lp/zh-cn.js
浏览文件 @
88ace661
...
@@ -10,6 +10,7 @@ MWF.xApplication.query.Query.LP = {
...
@@ -10,6 +10,7 @@ MWF.xApplication.query.Query.LP = {
"
noDescription
"
:
"
未定义描述
"
,
"
noDescription
"
:
"
未定义描述
"
,
"
view
"
:
"
视图
"
,
"
view
"
:
"
视图
"
,
"
stat
"
:
"
统计
"
,
"
stat
"
:
"
统计
"
,
"
statement
"
:
"
查询
"
,
"
customSearch
"
:
"
高级搜索
"
,
"
customSearch
"
:
"
高级搜索
"
,
"
searchKeywork
"
:
"
输入关键字搜索视图
"
,
"
searchKeywork
"
:
"
输入关键字搜索视图
"
,
"
yes
"
:
"
是
"
,
"
yes
"
:
"
是
"
,
...
...
o2web/source/x_component_query_StatementDesigner/$Statement/view.html
浏览文件 @
88ace661
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<td
class=
"editTableTitle"
>
参数:
</td>
<td
class=
"editTableTitle"
>
参数:
</td>
<td
class=
"editTableValue"
>
<td
class=
"editTableValue"
>
<input
type=
"text"
class=
"editTableInput parameterInput_vf"
/>
<input
type=
"text"
class=
"editTableInput parameterInput_vf"
/>
<div
style=
"line-height: 20px;color:#999;"
>
注:参数对应查询语句和总数语句中
对应的where条件,形如":filed"
</div>
<div
style=
"line-height: 20px;color:#999;"
>
注:参数对应查询语句和总数语句中
形如":field"的where条件,填写"field"。
</div>
</td>
</td>
</tr>
</tr>
<tr
id=
"text{$.id}pathInputTr"
>
<tr
id=
"text{$.id}pathInputTr"
>
...
...
o2web/source/x_component_query_StatementDesigner/Property.js
浏览文件 @
88ace661
...
@@ -58,18 +58,18 @@ MWF.xApplication.query.StatementDesigner.Property = MWF.SDProperty = new Class({
...
@@ -58,18 +58,18 @@ MWF.xApplication.query.StatementDesigner.Property = MWF.SDProperty = new Class({
},
},
loadViewFilter
:
function
()
{
loadViewFilter
:
function
()
{
var
nodes
=
this
.
propertyContent
.
getElements
(
"
.MWFViewFilter
"
);
var
nodes
=
this
.
propertyContent
.
getElements
(
"
.MWFViewFilter
"
);
//
var filtrData = this.view.data.data.filterList;
var
filtrData
=
this
.
view
.
data
.
data
.
filterList
;
var
customData
=
this
.
view
.
data
.
data
.
customFilterList
;
var
customData
=
this
.
view
.
data
.
data
.
customFilterList
;
nodes
.
each
(
function
(
node
)
{
nodes
.
each
(
function
(
node
)
{
MWF
.
xDesktop
.
requireApp
(
"
query.StatementDesigner
"
,
"
widget.ViewFilter
"
,
function
()
{
MWF
.
xDesktop
.
requireApp
(
"
query.StatementDesigner
"
,
"
widget.ViewFilter
"
,
function
()
{
var
_slef
=
this
;
var
_slef
=
this
;
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
widget
.
ViewFilter
(
node
,
this
.
view
.
designer
,
{
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
widget
.
ViewFilter
(
node
,
this
.
view
.
designer
,
{
//
"filtrData": filtrData,
"
filtrData
"
:
filtrData
,
"
customData
"
:
customData
"
customData
"
:
customData
},
{
},
{
"
onChange
"
:
function
(
ids
)
{
"
onChange
"
:
function
(
ids
)
{
var
data
=
this
.
getData
();
var
data
=
this
.
getData
();
//
_slef.changeJsonDate(["data", "filterList"], data.data);
_slef
.
changeJsonDate
([
"
data
"
,
"
filterList
"
],
data
.
data
);
_slef
.
changeJsonDate
([
"
data
"
,
"
customFilterList
"
],
data
.
customData
);
_slef
.
changeJsonDate
([
"
data
"
,
"
customFilterList
"
],
data
.
customData
);
}
}
});
});
...
...
o2web/source/x_component_query_StatementDesigner/lp/zh-cn.js
浏览文件 @
88ace661
...
@@ -36,5 +36,8 @@ MWF.xApplication.query.StatementDesigner.LP = Object.merge( MWF.xApplication.que
...
@@ -36,5 +36,8 @@ MWF.xApplication.query.StatementDesigner.LP = Object.merge( MWF.xApplication.que
"
newLineSuccess
"
:
"
插入数据成功
"
,
"
newLineSuccess
"
:
"
插入数据成功
"
,
"
newLineJsonError
"
:
"
插入数据错误,数据格式有误
"
,
"
newLineJsonError
"
:
"
插入数据错误,数据格式有误
"
,
"
queryStatement
"
:
"
查询语句
"
,
"
queryStatement
"
:
"
查询语句
"
,
"
countStatement
"
:
"
总数语句
"
"
countStatement
"
:
"
总数语句
"
,
"
mastInputParameter
"
:
"
请输入参数
"
,
"
pathExecption
"
:
"
路径的写法是
\"
表别名.字段名
\"
,格式不正确
"
});
});
\ No newline at end of file
o2web/source/x_component_query_StatementDesigner/widget/ViewFilter.js
浏览文件 @
88ace661
...
@@ -34,7 +34,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -34,7 +34,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
loadData
:
function
()
{
loadData
:
function
()
{
if
(
this
.
filtrData
.
filtrData
&&
this
.
filtrData
.
filtrData
.
length
)
{
if
(
this
.
filtrData
.
filtrData
&&
this
.
filtrData
.
filtrData
.
length
)
{
this
.
filtrData
.
filtrData
.
each
(
function
(
data
)
{
this
.
filtrData
.
filtrData
.
each
(
function
(
data
)
{
this
.
items
.
push
(
new
MWF
.
xApplication
.
query
.
View
Designer
.
widget
.
ViewFilter
.
Item
(
this
,
data
));
this
.
items
.
push
(
new
MWF
.
xApplication
.
query
.
Statement
Designer
.
widget
.
ViewFilter
.
Item
(
this
,
data
));
}.
bind
(
this
));
}.
bind
(
this
));
}
}
...
@@ -65,6 +65,27 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -65,6 +65,27 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
this
.
scriptArea
.
load
(
v
);
this
.
scriptArea
.
load
(
v
);
}.
bind
(
this
));
}.
bind
(
this
));
},
},
createFilterValueScriptArea
:
function
(
node
)
{
var
title
=
node
.
get
(
"
title
"
);
MWF
.
require
(
"
MWF.widget.ScriptArea
"
,
function
()
{
this
.
filterValueScriptArea
=
new
MWF
.
widget
.
ScriptArea
(
node
,
{
"
title
"
:
title
,
"
isload
"
:
true
,
"
isbind
"
:
false
,
"
maxObj
"
:
this
.
app
.
formContentNode
||
this
.
app
.
pageContentNode
,
"
onChange
"
:
function
()
{
this
.
filterValueScriptData
=
this
.
filterValueScriptArea
.
toJson
();
}.
bind
(
this
),
"
onSave
"
:
function
()
{
//this.app.saveForm();
}.
bind
(
this
),
"
style
"
:
"
formula
"
});
var
v
=
(
this
.
filterValueScriptData
)
?
this
.
filterValueScriptData
.
code
:
""
;
this
.
filterValueScriptArea
.
load
(
v
);
}.
bind
(
this
));
},
createCustomFilterValueScriptArea
:
function
(
node
)
{
createCustomFilterValueScriptArea
:
function
(
node
)
{
var
title
=
node
.
get
(
"
title
"
);
var
title
=
node
.
get
(
"
title
"
);
...
@@ -103,6 +124,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -103,6 +124,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
this
.
titleInput
=
this
.
inputAreaNode
.
getElement
(
"
.titleInput_vf
"
);
this
.
titleInput
=
this
.
inputAreaNode
.
getElement
(
"
.titleInput_vf
"
);
this
.
pathInput
=
this
.
inputAreaNode
.
getElement
(
"
.pathInput_vf
"
);
this
.
pathInput
=
this
.
inputAreaNode
.
getElement
(
"
.pathInput_vf
"
);
this
.
parameterInput
=
this
.
inputAreaNode
.
getElement
(
"
.parameterInput_vf
"
);
this
.
datatypeInput
=
this
.
inputAreaNode
.
getElement
(
"
.datatypeInput_vf
"
);
this
.
datatypeInput
=
this
.
inputAreaNode
.
getElement
(
"
.datatypeInput_vf
"
);
this
.
restrictFilterInput
=
this
.
inputAreaNode
.
getElement
(
"
.restrictFilterInput_vf
"
);
this
.
restrictFilterInput
=
this
.
inputAreaNode
.
getElement
(
"
.restrictFilterInput_vf
"
);
...
@@ -124,8 +146,15 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -124,8 +146,15 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
if
(
this
.
app
.
statement
.
view
)
{
if
(
this
.
app
.
statement
.
view
)
{
var
dataId
=
this
.
app
.
statement
.
view
.
data
.
id
;
var
dataId
=
this
.
app
.
statement
.
view
.
data
.
id
;
this
.
customFilterValueTypes
=
this
.
inputAreaNode
.
getElements
(
"
[name='
"
+
dataId
+
"
viewCustomFilterValueType']
"
);
this
.
filterValueType
=
this
.
inputAreaNode
.
getElements
(
"
[name='
"
+
dataId
+
"
viewFilterValueType']
"
);
this
.
filterValueScriptDiv
=
this
.
inputAreaNode
.
getElement
(
"
#
"
+
dataId
+
"
viewFilterValueScriptDiv
"
);
this
.
filterValueScript
=
this
.
inputAreaNode
.
getElement
(
"
[name='
"
+
dataId
+
"
viewFilterValueScript']
"
);
if
(
this
.
filterValueScript
)
{
this
.
createFilterValueScriptArea
(
this
.
filterValueScript
);
}
this
.
customFilterValueTypes
=
this
.
inputAreaNode
.
getElements
(
"
[name='
"
+
dataId
+
"
viewCustomFilterValueType']
"
);
this
.
customFilterValueScriptDiv
=
this
.
inputAreaNode
.
getElement
(
"
#
"
+
dataId
+
"
viewCustomFilterValueScriptDiv
"
);
this
.
customFilterValueScriptDiv
=
this
.
inputAreaNode
.
getElement
(
"
#
"
+
dataId
+
"
viewCustomFilterValueScriptDiv
"
);
this
.
customFilterValueScript
=
this
.
inputAreaNode
.
getElement
(
"
[name='
"
+
dataId
+
"
viewCustomFilterValueScript']
"
);
this
.
customFilterValueScript
=
this
.
inputAreaNode
.
getElement
(
"
[name='
"
+
dataId
+
"
viewCustomFilterValueScript']
"
);
if
(
this
.
customFilterValueScript
)
{
if
(
this
.
customFilterValueScript
)
{
...
@@ -294,18 +323,22 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -294,18 +323,22 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
}.
bind
(
this
));
}.
bind
(
this
));
},
},
modifyOrAddFilterItem
:
function
()
{
modifyOrAddFilterItem
:
function
()
{
debugger
;
var
flag
;
if
(
this
.
currentFilterItem
)
{
if
(
this
.
currentFilterItem
)
{
this
.
modifyFilterItem
();
flag
=
this
.
modifyFilterItem
();
}
else
{
}
else
{
if
(
this
.
restrictFilterInput
.
checked
)
{
if
(
this
.
restrictFilterInput
.
checked
)
{
this
.
addFilterItem
();
flag
=
this
.
addFilterItem
();
}
else
{
}
else
{
this
.
addCustomFilterItem
();
flag
=
this
.
addCustomFilterItem
();
}
}
}
}
if
(
flag
){
this
.
setData
({
this
.
setData
({
"
logic
"
:
"
and
"
,
"
logic
"
:
"
and
"
,
"
path
"
:
""
,
"
path
"
:
""
,
"
parameter
"
:
""
,
"
title
"
:
""
,
"
title
"
:
""
,
"
type
"
:
this
.
restrictFilterInput
.
checked
?
"
restrict
"
:
"
custom
"
,
"
type
"
:
this
.
restrictFilterInput
.
checked
?
"
restrict
"
:
"
custom
"
,
"
comparison
"
:
"
equals
"
,
"
comparison
"
:
"
equals
"
,
...
@@ -314,45 +347,61 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -314,45 +347,61 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
"
otherValue
"
:
""
,
"
otherValue
"
:
""
,
"
code
"
:
""
"
code
"
:
""
});
});
}
},
},
modifyFilterItem
:
function
()
{
modifyFilterItem
:
function
()
{
var
data
=
this
.
getInputData
();
var
data
=
this
.
getInputData
();
if
(
this
.
restrictFilterInput
.
checked
){
if
(
this
.
verificationData
(
data
))
{
if
(
this
.
verificationData
(
data
))
{
this
.
currentFilterItem
.
reload
(
data
);
this
.
currentFilterItem
.
reload
(
data
);
this
.
currentFilterItem
.
unSelected
();
this
.
currentFilterItem
.
unSelected
();
this
.
fireEvent
(
"
change
"
);
this
.
fireEvent
(
"
change
"
);
return
true
;
}
}
else
{
if
(
this
.
verificationDataCustom
(
data
))
{
this
.
currentFilterItem
.
reload
(
data
);
this
.
currentFilterItem
.
unSelected
();
this
.
fireEvent
(
"
change
"
);
return
true
;
}
}
}
return
false
;
},
},
addFilterItem
:
function
()
{
addFilterItem
:
function
()
{
var
data
=
this
.
getInputData
();
var
data
=
this
.
getInputData
();
if
(
this
.
verificationData
(
data
))
{
if
(
this
.
verificationData
(
data
))
{
this
.
items
.
push
(
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
widget
.
ViewFilter
.
Item
(
this
,
data
));
this
.
items
.
push
(
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
widget
.
ViewFilter
.
Item
(
this
,
data
));
this
.
fireEvent
(
"
change
"
);
this
.
fireEvent
(
"
change
"
);
return
true
;
}
}
return
false
;
},
},
addCustomFilterItem
:
function
()
{
addCustomFilterItem
:
function
()
{
var
data
=
this
.
getInputData
();
var
data
=
this
.
getInputData
();
if
(
this
.
verificationDataCustom
(
data
))
{
if
(
this
.
verificationDataCustom
(
data
))
{
this
.
items
.
push
(
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
widget
.
ViewFilter
.
ItemCustom
(
this
,
data
));
this
.
items
.
push
(
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
widget
.
ViewFilter
.
ItemCustom
(
this
,
data
));
this
.
fireEvent
(
"
change
"
);
this
.
fireEvent
(
"
change
"
);
return
true
;
}
}
return
false
;
},
},
verificationData
:
function
(
data
)
{
verificationData
:
function
(
data
)
{
if
(
!
data
.
pa
th
)
{
if
(
!
data
.
pa
rameter
)
{
this
.
verificationNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
verificationNode
}).
inject
(
this
.
inputAreaNode
);
this
.
verificationNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
verificationNode
}).
inject
(
this
.
inputAreaNode
);
new
Element
(
"
div
"
,
{
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
verificationTextNode
,
"
styles
"
:
this
.
css
.
verificationTextNode
,
"
text
"
:
this
.
app
.
lp
.
mastInputPa
th
"
text
"
:
this
.
app
.
lp
.
mastInputPa
rameter
}).
inject
(
this
.
verificationNode
);
}).
inject
(
this
.
verificationNode
);
this
.
pa
th
Input
.
focus
();
this
.
pa
rameter
Input
.
focus
();
this
.
pa
th
Input
.
setStyle
(
"
background-color
"
,
"
#fbe8e8
"
);
this
.
pa
rameter
Input
.
setStyle
(
"
background-color
"
,
"
#fbe8e8
"
);
this
.
pa
th
Input
.
addEvents
({
this
.
pa
rameter
Input
.
addEvents
({
"
keydown
"
:
function
()
{
"
keydown
"
:
function
()
{
if
(
this
.
verificationNode
)
{
if
(
this
.
verificationNode
)
{
this
.
verificationNode
.
destroy
();
this
.
verificationNode
.
destroy
();
this
.
verificationNode
=
null
;
this
.
verificationNode
=
null
;
this
.
pa
th
Input
.
setStyle
(
"
background-color
"
,
"
#FFF
"
);
this
.
pa
rameter
Input
.
setStyle
(
"
background-color
"
,
"
#FFF
"
);
}
}
}.
bind
(
this
),
}.
bind
(
this
),
"
click
"
:
function
()
{
"
click
"
:
function
()
{
...
@@ -397,11 +446,12 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -397,11 +446,12 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
});
});
return
false
;
return
false
;
}
}
if
(
!
data
.
path
)
{
if
(
!
data
.
path
||
data
.
path
.
indexOf
(
"
.
"
)
<
1
)
{
this
.
verificationNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
verificationNode
}).
inject
(
this
.
inputAreaNode
);
this
.
verificationNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
verificationNode
}).
inject
(
this
.
inputAreaNode
);
var
text
=
!
data
.
path
?
this
.
app
.
lp
.
mastInputPath
:
this
.
app
.
lp
.
pathExecption
;
new
Element
(
"
div
"
,
{
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
verificationTextNode
,
"
styles
"
:
this
.
css
.
verificationTextNode
,
"
text
"
:
t
his
.
app
.
lp
.
mastInputPath
"
text
"
:
t
ext
}).
inject
(
this
.
verificationNode
);
}).
inject
(
this
.
verificationNode
);
this
.
pathInput
.
focus
();
this
.
pathInput
.
focus
();
this
.
pathInput
.
setStyle
(
"
background-color
"
,
"
#fbe8e8
"
);
this
.
pathInput
.
setStyle
(
"
background-color
"
,
"
#fbe8e8
"
);
...
@@ -428,6 +478,8 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -428,6 +478,8 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
getInputData
:
function
()
{
getInputData
:
function
()
{
// var logic = this.logicInput.options[this.logicInput.selectedIndex].value;
// var logic = this.logicInput.options[this.logicInput.selectedIndex].value;
var
path
=
this
.
pathInput
.
get
(
"
value
"
);
var
path
=
this
.
pathInput
.
get
(
"
value
"
);
var
parameter
=
this
.
parameterInput
.
get
(
"
value
"
);
var
title
=
this
.
titleInput
.
get
(
"
value
"
);
var
title
=
this
.
titleInput
.
get
(
"
value
"
);
if
(
this
.
restrictFilterInput
.
checked
)
var
type
=
"
restrict
"
;
if
(
this
.
restrictFilterInput
.
checked
)
var
type
=
"
restrict
"
;
if
(
this
.
customFilterInput
.
checked
)
var
type
=
"
custom
"
;
if
(
this
.
customFilterInput
.
checked
)
var
type
=
"
custom
"
;
...
@@ -476,16 +528,21 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -476,16 +528,21 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
break
;
break
;
}
}
if
(
type
===
"
restrict
"
)
{
if
(
type
===
"
restrict
"
)
{
this
.
filterValueType
.
each
(
function
(
radio
)
{
if
(
radio
.
get
(
"
checked
"
))
valueType
=
radio
.
get
(
"
value
"
);
});
return
{
return
{
//"logic": logic,
//"logic": logic,
"
pa
th
"
:
path
,
"
pa
rameter
"
:
parameter
,
"
title
"
:
title
,
"
title
"
:
title
,
"
type
"
:
type
,
"
type
"
:
type
,
//"comparison": comparison,
//"comparison": comparison,
"
formatType
"
:
formatType
,
"
formatType
"
:
formatType
,
"
value
"
:
value
,
"
value
"
:
value
,
//"otherValue": value2,
//"otherValue": value2,
"
code
"
:
this
.
scriptData
"
code
"
:
this
.
scriptData
,
"
valueType
"
:
valueType
,
"
valueScript
"
:
this
.
filterValueScriptData
};
};
}
else
{
}
else
{
var
valueType
=
""
;
var
valueType
=
""
;
...
@@ -493,11 +550,11 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -493,11 +550,11 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
if
(
radio
.
get
(
"
checked
"
))
valueType
=
radio
.
get
(
"
value
"
);
if
(
radio
.
get
(
"
checked
"
))
valueType
=
radio
.
get
(
"
value
"
);
});
});
return
{
return
{
"
logic
"
:
"
and
"
,
//
"logic": "and",
"
path
"
:
path
,
"
path
"
:
path
,
"
title
"
:
title
,
"
title
"
:
title
,
"
type
"
:
type
,
"
type
"
:
type
,
"
comparison
"
:
comparison
,
//
"comparison": comparison,
"
formatType
"
:
formatType
,
"
formatType
"
:
formatType
,
"
value
"
:
value
,
"
value
"
:
value
,
"
otherValue
"
:
value2
,
"
otherValue
"
:
value2
,
...
@@ -518,6 +575,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -518,6 +575,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
this
.
titleInput
.
set
(
"
value
"
,
data
.
title
);
this
.
titleInput
.
set
(
"
value
"
,
data
.
title
);
this
.
pathInput
.
set
(
"
value
"
,
data
.
path
);
this
.
pathInput
.
set
(
"
value
"
,
data
.
path
);
this
.
parameterInput
.
set
(
"
value
"
,
data
.
parameter
);
// for (var i=0; i<this.comparisonInput.options.length; i++){
// for (var i=0; i<this.comparisonInput.options.length; i++){
// if (this.comparisonInput.options[i].value===data.comparison){
// if (this.comparisonInput.options[i].value===data.comparison){
...
@@ -613,6 +671,27 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -613,6 +671,27 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
}
}
}
}
if
(
data
.
type
===
"
restrict
"
)
{
this
.
filterValueType
.
each
(
function
(
radio
)
{
if
(
data
.
valueType
)
{
if
(
data
.
valueType
===
radio
.
get
(
"
value
"
))
radio
.
set
(
"
checked
"
,
true
);
}
else
{
if
(
"
input
"
===
radio
.
get
(
"
value
"
))
radio
.
set
(
"
checked
"
,
true
);
}
});
if
(
this
.
filterValueScriptArea
)
{
if
(
!
data
.
valueType
||
data
.
valueType
===
"
input
"
)
{
this
.
filterValueScriptDiv
.
hide
();
this
.
filterValueScriptData
=
""
;
this
.
filterValueScriptArea
.
editor
.
setValue
(
""
);
}
else
{
this
.
filterValueScriptDiv
.
show
();
this
.
filterValueScriptData
=
data
.
valueScript
;
this
.
filterValueScriptArea
.
editor
.
setValue
(
data
.
valueScript
?
data
.
valueScript
.
code
:
""
);
}
}
}
this
.
switchInputDisplay
();
this
.
switchInputDisplay
();
if
(
this
.
datatypeInput
.
onchange
)
{
if
(
this
.
datatypeInput
.
onchange
)
{
...
@@ -628,6 +707,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
...
@@ -628,6 +707,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
this
.
fireEvent
(
"
change
"
);
this
.
fireEvent
(
"
change
"
);
},
},
getData
:
function
()
{
getData
:
function
()
{
debugger
;
var
data
=
[];
var
data
=
[];
var
customData
=
[];
var
customData
=
[];
this
.
items
.
each
(
function
(
item
)
{
this
.
items
.
each
(
function
(
item
)
{
...
@@ -668,9 +748,9 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.Item = new Class({
...
@@ -668,9 +748,9 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.Item = new Class({
getText
:
function
()
{
getText
:
function
()
{
var
lp
=
this
.
app
.
lp
.
filter
;
var
lp
=
this
.
app
.
lp
.
filter
;
if
(
this
.
data
.
formatType
===
"
numberValue
"
)
{
if
(
this
.
data
.
formatType
===
"
numberValue
"
)
{
return
this
.
data
.
title
+
"
"
+
this
.
data
.
pa
th
+
"
"
+
this
.
data
.
value
;
return
this
.
data
.
title
+
"
"
+
this
.
data
.
pa
rameter
+
"
"
+
this
.
data
.
value
;
}
else
{
}
else
{
return
this
.
data
.
title
+
"
"
+
this
.
data
.
pa
th
+
"
\"
"
+
this
.
data
.
value
+
"
\"
"
;
return
this
.
data
.
title
+
"
"
+
this
.
data
.
pa
rameter
+
"
\"
"
+
this
.
data
.
value
+
"
\"
"
;
}
}
},
},
reload
:
function
(
data
)
{
reload
:
function
(
data
)
{
...
@@ -678,6 +758,11 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.Item = new Class({
...
@@ -678,6 +758,11 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.Item = new Class({
this
.
contentNode
.
set
(
"
text
"
,
this
.
getText
());
this
.
contentNode
.
set
(
"
text
"
,
this
.
getText
());
},
},
selected
:
function
()
{
selected
:
function
()
{
if
(
this
.
filter
.
verificationNode
){
this
.
filter
.
verificationNode
.
destroy
();
this
.
filter
.
verificationNode
=
null
;
this
.
filter
.
parameterInput
.
setStyle
(
"
background-color
"
,
"
#FFF
"
);
}
this
.
filter
.
restrictFilterInput
.
set
(
"
checked
"
,
true
);
this
.
filter
.
restrictFilterInput
.
set
(
"
checked
"
,
true
);
this
.
filter
.
restrictFilterInput
.
click
();
this
.
filter
.
restrictFilterInput
.
click
();
if
(
this
.
filter
.
currentFilterItem
)
this
.
filter
.
currentFilterItem
.
unSelected
();
if
(
this
.
filter
.
currentFilterItem
)
this
.
filter
.
currentFilterItem
.
unSelected
();
...
@@ -715,6 +800,11 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemCustom = new Clas
...
@@ -715,6 +800,11 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemCustom = new Clas
this
.
load
();
this
.
load
();
},
},
selected
:
function
()
{
selected
:
function
()
{
if
(
this
.
filter
.
verificationNode
){
this
.
filter
.
verificationNode
.
destroy
();
this
.
filter
.
verificationNode
=
null
;
this
.
filter
.
pathInput
.
setStyle
(
"
background-color
"
,
"
#FFF
"
);
}
this
.
filter
.
customFilterInput
.
set
(
"
checked
"
,
true
);
this
.
filter
.
customFilterInput
.
set
(
"
checked
"
,
true
);
this
.
filter
.
customFilterInput
.
click
();
this
.
filter
.
customFilterInput
.
click
();
if
(
this
.
filter
.
currentFilterItem
)
this
.
filter
.
currentFilterItem
.
unSelected
();
if
(
this
.
filter
.
currentFilterItem
)
this
.
filter
.
currentFilterItem
.
unSelected
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录