Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
bf07af6e
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
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,发现更多精彩内容 >>
提交
bf07af6e
编写于
10月 14, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
查询语句中增加视图
上级
2fd55667
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
102 addition
and
64 deletion
+102
-64
o2web/source/x_component_query_StatementDesigner/$Statement/view.html
.../x_component_query_StatementDesigner/$Statement/view.html
+18
-46
o2web/source/x_component_query_StatementDesigner/$Statement/view.json
.../x_component_query_StatementDesigner/$Statement/view.json
+18
-18
o2web/source/x_component_query_StatementDesigner/Statement.js
...b/source/x_component_query_StatementDesigner/Statement.js
+66
-0
未找到文件。
o2web/source/x_component_query_StatementDesigner/$Statement/view.html
浏览文件 @
bf07af6e
...
...
@@ -13,26 +13,26 @@
<td
class=
"editTableTitle"
>
描述:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"description"
value=
"text{$.description}"
class=
"editTableInput"
/></td>
</tr>
<tr
>
<td
class=
"editTableTitle"
>
隐藏:
</td
>
<td
class=
"editTableValue"
>
<input
class=
"editTableRadio"
name=
"display"
text
{($
.display=
==false)?'checked':''}
type=
"radio"
value=
"false"
/>
是
<input
class=
"editTableRadio"
name=
"display"
text
{($.
display
!==
false
)?'
checked
'
:
''}
type=
"radio"
value=
"true"
/>
否
</td
>
</tr
>
<!-- <tr>--
>
<!-- <td class="editTableTitle">隐藏:</td>--
>
<!-- <td class="editTableValue">--
>
<!-- <input class="editTableRadio" name="display" text{($.display===false)?'checked':''} type="radio" value="false"/>是-->
<!-- <input class="editTableRadio" name="display" text{($.display!==false)?'checked':''} type="radio" value="true"/>否-->
<!-- </td>--
>
<!-- </tr>--
>
<tr>
<td
class=
"editTableTitle"
>
视图样式:
</td>
<td
class=
"editTableValue"
>
<select
class=
"MWFViewStyle"
name=
"data.viewStyleType"
></select>
</td>
</tr>
<tr
>
<td
class=
"editTableTitle"
>
展开分类:
</td
>
<td
class=
"editTableValue"
>
<input
class=
"editTableRadio"
name=
"data.isExpand"
text
{($
.data.isExpand=
=='yes')?'checked':''}
type=
"radio"
value=
"yes"
/>
是
<input
class=
"editTableRadio"
name=
"data.isExpand"
text
{($.
data.isExpand
!=='
yes
')?'
checked
'
:
''}
type=
"radio"
value=
"no"
/>
否
</td
>
</tr
>
<!-- <tr>--
>
<!-- <td class="editTableTitle">展开分类:</td>--
>
<!-- <td class="editTableValue">--
>
<!-- <input class="editTableRadio" name="data.isExpand" text{($.data.isExpand==='yes')?'checked':''} type="radio" value="yes"/>是-->
<!-- <input class="editTableRadio" name="data.isExpand" text{($.data.isExpand!=='yes')?'checked':''} type="radio" value="no"/>否-->
<!-- </td>--
>
<!-- </tr>--
>
<tr>
<td
class=
"editTableTitle"
>
显示序号:
</td>
<td
class=
"editTableValue"
>
...
...
@@ -40,10 +40,10 @@
<input
class=
"editTableRadio"
name=
"data.isSequence"
text
{($.
data.isSequence
!=='
yes
')?'
checked
'
:
''}
type=
"radio"
value=
"no"
/>
否
</td>
</tr>
<tr
>
<td
class=
"editTableTitleNoWidth"
>
最大行数:
</td
>
<td
class=
"editTableValue"
><input
type=
"number"
name=
"count"
value=
"text{$.count || 600}"
class=
"editTableInput"
/></td
>
</tr
>
<!-- <tr>--
>
<!-- <td class="editTableTitleNoWidth">最大行数:</td>--
>
<!-- <td class="editTableValue"><input type="number" name="count" value="text{$.count || 600}" class="editTableInput"/></td>--
>
<!-- </tr>--
>
<tr>
<td
class=
"editTableTitleNoWidth"
>
每页行数:
</td>
<td
class=
"editTableValue"
>
...
...
@@ -85,34 +85,6 @@
<!--</tr>-->
</table>
<div
style=
"height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999; font-weight: bold"
>
权限
</div>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
id=
"processEditStarter"
>
<tr>
<td
class=
"editTableTitle"
>
可执行人:
</td>
<td
class=
"editTableValue"
>
<div
class=
"MWFPersonIdentity"
name=
"availableIdentityList"
></div>
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
执行组织:
</td>
<td
class=
"editTableValue"
>
<div
class=
"MWFPersonUnit"
name=
"availableUnitList"
></div>
</td>
</tr>
<!--<tr>-->
<!--<td class="editTableTitle">执行部门:</td>-->
<!--<td class="editTableValue">-->
<!--<div class="MWFSelectDepartment" name="availableDepartmentList"></div>-->
<!--</td>-->
<!--</tr>-->
<!--<tr>-->
<!--<td class="editTableTitle">执行公司:</td>-->
<!--<td class="editTableValue">-->
<!--<div class="MWFSelectCompany" name="availableCompanyList"></div>-->
<!--</td>-->
<!--</tr>-->
</table>
<div
class=
"MWFFormulaArea"
name=
"data.defaultSelectedScript"
title=
"默认选中行脚本"
></div>
...
...
o2web/source/x_component_query_StatementDesigner/$Statement/view.json
浏览文件 @
bf07af6e
...
...
@@ -8,18 +8,18 @@
"type"
:
"View"
,
"data"
:
{
"exportGrid"
:
true
,
"exportGoupGrid"
:
true
,
//
"exportGrid"
:
true
,
//
"exportGoupGrid"
:
true
,
"noDataText"
:
"未找到数据"
,
"selectList"
:
[],
"filterList"
:
[],
"orderList"
:
[],
"group"
:
{},
//
"group"
:
{},
"columnList"
:
[],
"calculate"
:
{},
"afterGridScriptText"
:
""
,
"afterGroupGridScriptText"
:
""
,
"afterCalculateGridScriptText"
:
""
,
//
"calculate"
:
{},
//
"afterGridScriptText"
:
""
,
//
"afterGroupGridScriptText"
:
""
,
//
"afterCalculateGridScriptText"
:
""
,
"actionbarHidden"
:
true
,
"events"
:
{
"queryLoad"
:
{
...
...
@@ -46,14 +46,14 @@
"code"
:
""
,
"html"
:
""
},
"queryLoadCategoryRow"
:
{
"code"
:
""
,
"html"
:
""
},
"postLoadCategoryRow"
:
{
"code"
:
""
,
"html"
:
""
},
//
"queryLoadCategoryRow"
:
{
//
"code"
:
""
,
//
"html"
:
""
//
},
//
"postLoadCategoryRow"
:
{
//
"code"
:
""
,
//
"html"
:
""
//
},
"selectRow"
:
{
"code"
:
""
,
"html"
:
""
...
...
@@ -63,7 +63,7 @@
"html"
:
""
}
}
}
,
"availableIdentityList"
:
[],
"availableUnitList"
:
[]
}
//
"availableIdentityList"
:
[],
//
"availableUnitList"
:
[]
}
\ No newline at end of file
o2web/source/x_component_query_StatementDesigner/Statement.js
浏览文件 @
bf07af6e
...
...
@@ -1214,6 +1214,72 @@ MWF.xApplication.query.StatementDesigner.View = new Class({
this
.
setCustomStyles
();
}
},
loadTemplateStyle
:
function
(
callback
){
this
.
loadStylesList
(
function
(){
var
oldStyleValue
=
""
;
if
((
!
this
.
json
.
data
.
viewStyleType
)
||
!
this
.
stylesList
[
this
.
json
.
data
.
viewStyleType
])
this
.
json
.
data
.
viewStyleType
=
"
default
"
;
this
.
loadTemplateStyles
(
this
.
stylesList
[
this
.
json
.
data
.
viewStyleType
].
file
,
this
.
stylesList
[
this
.
json
.
data
.
viewStyleType
].
extendFile
,
function
(
templateStyles
){
this
.
templateStyles
=
templateStyles
;
if
(
!
this
.
json
.
data
.
viewStyleType
)
this
.
json
.
data
.
viewStyleType
=
"
default
"
;
if
(
this
.
templateStyles
&&
this
.
templateStyles
[
"
view
"
]){
var
viewStyles
=
Object
.
clone
(
this
.
templateStyles
[
"
view
"
]);
if
(
viewStyles
.
contentGroupTd
)
delete
viewStyles
.
contentGroupTd
;
if
(
viewStyles
.
groupCollapseNode
)
delete
viewStyles
.
groupCollapseNode
;
if
(
viewStyles
.
groupExpandNode
)
delete
viewStyles
.
groupExpandNode
;
if
(
!
this
.
json
.
data
.
viewStyles
){
this
.
json
.
data
.
viewStyles
=
viewStyles
;
}
else
{
this
.
setTemplateStyles
(
viewStyles
);
}
}
this
.
setCustomStyles
();
if
(
callback
)
callback
();
}.
bind
(
this
)
);
}.
bind
(
this
));
},
clearTemplateStyles
:
function
(
styles
){
if
(
styles
){
if
(
styles
.
container
)
this
.
removeStyles
(
styles
.
container
,
"
container
"
);
if
(
styles
.
table
)
this
.
removeStyles
(
styles
.
table
,
"
table
"
);
if
(
styles
.
titleTr
)
this
.
removeStyles
(
styles
.
titleTr
,
"
titleTr
"
);
if
(
styles
.
titleTd
)
this
.
removeStyles
(
styles
.
titleTd
,
"
titleTd
"
);
if
(
styles
.
contentTr
)
this
.
removeStyles
(
styles
.
contentTr
,
"
contentTr
"
);
if
(
styles
.
contentSelectedTr
)
this
.
removeStyles
(
styles
.
contentSelectedTr
,
"
contentSelectedTr
"
);
if
(
styles
.
contentTd
)
this
.
removeStyles
(
styles
.
contentTd
,
"
contentTd
"
);
// if (styles.contentGroupTd) this.removeStyles(styles.contentGroupTd, "contentGroupTd");
// if (styles.groupCollapseNode) this.removeStyles(styles.groupCollapseNode, "groupCollapseNode");
// if (styles.groupExpandNode) this.removeStyles(styles.groupExpandNode, "groupExpandNode");
if
(
styles
.
checkboxNode
)
this
.
removeStyles
(
styles
.
checkboxNode
,
"
checkboxNode
"
);
if
(
styles
.
checkedCheckboxNode
)
this
.
removeStyles
(
styles
.
checkedCheckboxNode
,
"
checkedCheckboxNode
"
);
if
(
styles
.
radioNode
)
this
.
removeStyles
(
styles
.
radioNode
,
"
radioNode
"
);
if
(
styles
.
checkedRadioNode
)
this
.
removeStyles
(
styles
.
checkedRadioNode
,
"
checkedRadioNode
"
);
if
(
styles
.
tableProperties
)
this
.
removeStyles
(
styles
.
tableProperties
,
"
tableProperties
"
);
}
},
setTemplateStyles
:
function
(
styles
){
if
(
styles
.
container
)
this
.
copyStyles
(
styles
.
container
,
"
container
"
);
if
(
styles
.
table
)
this
.
copyStyles
(
styles
.
table
,
"
table
"
);
if
(
styles
.
titleTr
)
this
.
copyStyles
(
styles
.
titleTr
,
"
titleTr
"
);
if
(
styles
.
titleTd
)
this
.
copyStyles
(
styles
.
titleTd
,
"
titleTd
"
);
if
(
styles
.
contentTr
)
this
.
copyStyles
(
styles
.
contentTr
,
"
contentTr
"
);
if
(
styles
.
contentSelectedTr
)
this
.
copyStyles
(
styles
.
contentSelectedTr
,
"
contentSelectedTr
"
);
if
(
styles
.
contentTd
)
this
.
copyStyles
(
styles
.
contentTd
,
"
contentTd
"
);
// if (styles.contentGroupTd) this.copyStyles(styles.contentGroupTd, "contentGroupTd");
// if (styles.groupCollapseNode) this.copyStyles(styles.groupCollapseNode, "groupCollapseNode");
// if (styles.groupExpandNode) this.copyStyles(styles.groupExpandNode, "groupExpandNode");
if
(
styles
.
checkboxNode
)
this
.
copyStyles
(
styles
.
checkboxNode
,
"
checkboxNode
"
);
if
(
styles
.
checkedCheckboxNode
)
this
.
copyStyles
(
styles
.
checkedCheckboxNode
,
"
checkedCheckboxNode
"
);
if
(
styles
.
radioNode
)
this
.
copyStyles
(
styles
.
radioNode
,
"
radioNode
"
);
if
(
styles
.
checkedRadioNode
)
this
.
copyStyles
(
styles
.
checkedRadioNode
,
"
checkedRadioNode
"
);
if
(
styles
.
tableProperties
)
this
.
copyStyles
(
styles
.
tableProperties
,
"
tableProperties
"
);
},
removeStyles
:
function
(
from
,
to
){
if
(
this
.
json
.
data
.
viewStyles
[
to
]){
Object
.
each
(
from
,
function
(
style
,
key
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录