Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
560ab8e7
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,发现更多精彩内容 >>
提交
560ab8e7
编写于
6月 02, 2022
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
区段合并
上级
12d0cf1b
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
170 addition
and
25 deletion
+170
-25
o2web/source/x_component_process_FormDesigner/Module/Datatable/datatable.html
...nent_process_FormDesigner/Module/Datatable/datatable.html
+1
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_blue-flat.json
...ocess_FormDesigner/Module/Form/skin/styles_blue-flat.json
+7
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_blue-simple.json
...ess_FormDesigner/Module/Form/skin/styles_blue-simple.json
+7
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_cmcc.json
...nt_process_FormDesigner/Module/Form/skin/styles_cmcc.json
+7
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_default.json
...process_FormDesigner/Module/Form/skin/styles_default.json
+9
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_defaultMobile.json
...s_FormDesigner/Module/Form/skin/styles_defaultMobile.json
+8
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_mobile-blue-flat.json
...ormDesigner/Module/Form/skin/styles_mobile-blue-flat.json
+10
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_none.json
...nt_process_FormDesigner/Module/Form/skin/styles_none.json
+1
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_official.json
...rocess_FormDesigner/Module/Form/skin/styles_official.json
+10
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_official_border.json
...FormDesigner/Module/Form/skin/styles_official_border.json
+10
-0
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_red-simple.json
...cess_FormDesigner/Module/Form/skin/styles_red-simple.json
+8
-0
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+26
-0
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+2
-1
o2web/source/x_component_process_FormDesigner/widget/SectionMerger.js
.../x_component_process_FormDesigner/widget/SectionMerger.js
+38
-13
o2web/source/x_component_process_Xform/$Form/default/css.wcss
...b/source/x_component_process_Xform/$Form/default/css.wcss
+7
-0
o2web/source/x_component_process_Xform/$Module.js
o2web/source/x_component_process_Xform/$Module.js
+2
-1
o2web/source/x_component_process_Xform/DatatablePC.js
o2web/source/x_component_process_Xform/DatatablePC.js
+17
-10
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Datatable/datatable.html
浏览文件 @
560ab8e7
...
...
@@ -158,6 +158,7 @@
<div
class=
"MWFMaplist"
name=
"actionStyles"
collapse=
"true"
title=
"{{$.lp.actionCellStyles}}"
></div>
<div
class=
"MWFMaplist"
name=
"editStyles"
collapse=
"true"
title=
"{{$.lp.editCellStyles}}"
></div>
<div
class=
"MWFMaplist"
name=
"amountStyles"
collapse=
"true"
title=
"{{$.lp.amountCellStyle}}"
></div>
<div
class=
"MWFMaplist"
name=
"sectionAmountStyles"
collapse=
"true"
title=
"{{$.lp.sectionAmountCellStyle}}"
></div>
<div
class=
"MWFMaplist"
name=
"itemTitleStyles"
collapse=
"true"
title=
"{{$.lp.itemTitleStyle}}"
></div>
</div>
<div
title=
"{{$.lp.section}}"
class=
"MWFTab"
>
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_blue-flat.json
浏览文件 @
560ab8e7
...
...
@@ -343,6 +343,13 @@
"text-align"
:
"center"
,
"background-color"
:
"#F1F4F9"
},
"sectionAmountStyles"
:
{
"font-weight"
:
"bold"
,
"height"
:
"30px"
,
"line-height"
:
"30px"
,
"text-align"
:
"center"
,
"background-color"
:
"#fafafa"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_blue-simple.json
浏览文件 @
560ab8e7
...
...
@@ -318,6 +318,13 @@
"text-align"
:
"center"
,
"background-color"
:
"#f0f0f0"
},
"sectionAmountStyles"
:
{
"font-weight"
:
"bold"
,
"height"
:
"30px"
,
"line-height"
:
"30px"
,
"text-align"
:
"center"
,
"background-color"
:
"#fafafa"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_cmcc.json
浏览文件 @
560ab8e7
...
...
@@ -326,6 +326,13 @@
"text-align"
:
"center"
,
"background-color"
:
"#f0f0f0"
},
"sectionAmountStyles"
:
{
"font-weight"
:
"bold"
,
"height"
:
"30px"
,
"line-height"
:
"30px"
,
"text-align"
:
"center"
,
"background-color"
:
"#fafafa"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_default.json
浏览文件 @
560ab8e7
...
...
@@ -332,6 +332,15 @@
"border-right"
:
"1px solid #666666"
,
"border-bottom"
:
"1px solid #666666"
},
"sectionAmountStyles"
:
{
"font-weight"
:
"bold"
,
"height"
:
"30px"
,
"line-height"
:
"30px"
,
"text-align"
:
"center"
,
"background-color"
:
"#fafafa"
,
"border-right"
:
"1px solid #666666"
,
"border-bottom"
:
"1px solid #666666"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_defaultMobile.json
浏览文件 @
560ab8e7
...
...
@@ -310,6 +310,14 @@
"background-color"
:
"#ffffff"
,
"border-bottom"
:
"1px solid #cccccc"
},
"sectionAmountStyles"
:
{
"font-weight"
:
"bold"
,
"height"
:
"36px"
,
"line-height"
:
"36px"
,
"text-align"
:
"right"
,
"background-color"
:
"#ffffff"
,
"border-bottom"
:
"1px solid #cccccc"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_mobile-blue-flat.json
浏览文件 @
560ab8e7
...
...
@@ -401,6 +401,16 @@
"border-bottom"
:
"1px solid #cfd9df"
,
"text-align"
:
"right"
},
"sectionAmountStyles"
:
{
"background-color"
:
"#FFFFFF"
,
"color"
:
"#000"
,
"font-size"
:
"16px"
,
"border-top"
:
"0px"
,
"border-left"
:
"0px"
,
"border-right"
:
"0px"
,
"border-bottom"
:
"1px solid #cfd9df"
,
"text-align"
:
"right"
},
"itemTitleStyles"
:
{
"height"
:
"16px"
,
"overflow"
:
"hidden"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_none.json
浏览文件 @
560ab8e7
...
...
@@ -141,6 +141,7 @@
"actionStyles"
:
{},
"editStyles"
:
{},
"amountStyles"
:
{},
"sectionAmountStyles"
:
{},
"itemTitleStyles"
:
{},
"importActionStyles"
:
{},
"exportActionStyles"
:
{},
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_official.json
浏览文件 @
560ab8e7
...
...
@@ -351,6 +351,16 @@
"border-right"
:
"1px solid #fd1113"
,
"border-bottom"
:
"1px solid #fd1113"
},
"sectionAmountStyles"
:
{
"border-top"
:
"1px solid #ccc"
,
"font-weight"
:
"bold"
,
"height"
:
"30px"
,
"line-height"
:
"30px"
,
"text-align"
:
"center"
,
"background-color"
:
"#fafafa"
,
"border-right"
:
"1px solid #fd1113"
,
"border-bottom"
:
"1px solid #fd1113"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_official_border.json
浏览文件 @
560ab8e7
...
...
@@ -351,6 +351,16 @@
"border-right"
:
"1px solid #fd1113"
,
"border-bottom"
:
"1px solid #fd1113"
},
"sectionAmountStyles"
:
{
"border-top"
:
"1px solid #ccc"
,
"font-weight"
:
"bold"
,
"height"
:
"30px"
,
"line-height"
:
"30px"
,
"text-align"
:
"center"
,
"background-color"
:
"#fafafa"
,
"border-right"
:
"1px solid #fd1113"
,
"border-bottom"
:
"1px solid #fd1113"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Form/skin/styles_red-simple.json
浏览文件 @
560ab8e7
...
...
@@ -319,6 +319,14 @@
"text-align"
:
"center"
,
"background-color"
:
"#f0f0f0"
},
"sectionAmountStyles"
:
{
"border-top"
:
"1px solid #ccc"
,
"font-weight"
:
"bold"
,
"height"
:
"30px"
,
"line-height"
:
"30px"
,
"text-align"
:
"center"
,
"background-color"
:
"#fafafa"
},
"itemTitleStyles"
:
{
"height"
:
"40px"
,
"background-color"
:
"#ffffff"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
560ab8e7
...
...
@@ -470,6 +470,32 @@ MWF.xApplication.process.FormDesigner.LP = {
"
activityId
"
:
"
Activity Id
"
,
"
splitValue
"
:
"
Split Value
"
,
"
enableSectionMerge
"
:
"
Section Merge
"
,
"
showSectionKey
"
:
"
Show Section Value
"
,
"
editByMerge
"
:
"
Merge edit (delete section key)
"
,
"
sectionMergeSortScript
"
:
"
Sorting Script
"
,
"
sectionNodeStyles
"
:
"
Section entry styles
"
,
"
sectionKeystyles
"
:
"
Section Value Styles
"
,
"
sectionContentStyles
"
:
"
Section Content Styles
"
,
"
mergeDisplay
"
:
"
Read only
"
,
"
editCurrentSection
"
:
"
Edit (allows editing the current section)
"
,
"
mergeEdit
"
:
"
Edit (merge data after deleting section key)
"
,
"
sectionKey
"
:
"
section value
"
,
"
sectionKeyScript
"
:
"
Section Value Script
"
,
"
textValue1
"
:
"
Text Value
"
,
"
mergeType
"
:
"
Merge Type
"
,
"
amountValue
"
:
"
Total Value
"
,
"
averageValue
"
:
"
Average
"
,
"
sectionMergeEditScript
"
:
"
Merge Data Script
"
,
"
sectionMergeReadHtmlScript
"
:
"
Displayed html script
"
,
"
sectionMergeReadDataScript
"
:
"
Data Script
"
,
"
htmlScript
"
:
"
html script
"
,
"
dataScript
"
:
"
Data Script
"
,
"
bySection
"
:
"
By Section
"
,
"
byModule
"
:
"
By Component
"
,
"
totalRow
"
:
"
Total Row
"
,
"
sectionAmountCellStyle
"
:
"
section total cell style
"
,
"
decimal
"
:
"
Decimal
"
,
"
showCard
"
:
"
Show Card
"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
560ab8e7
...
...
@@ -477,6 +477,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
sectionKeystyles
"
:
"
区段值样式
"
,
"
sectionContentStyles
"
:
"
区段内容样式
"
,
"
mergeDisplay
"
:
"
只读
"
,
"
editCurrentSection
"
:
"
编辑(允许编辑当前区段)
"
,
"
mergeEdit
"
:
"
编辑(删除区段值后合并数据)
"
,
"
sectionKey
"
:
"
区段值
"
,
"
sectionKeyScript
"
:
"
区段值脚本
"
,
...
...
@@ -484,7 +485,6 @@ MWF.xApplication.process.FormDesigner.LP = {
"
mergeType
"
:
"
合并方式
"
,
"
amountValue
"
:
"
合计数值
"
,
"
averageValue
"
:
"
平均值
"
,
"
separatelyDisplay
"
:
"
分开显示
"
,
"
sectionMergeEditScript
"
:
"
合并数据脚本
"
,
"
sectionMergeReadHtmlScript
"
:
"
展现的html脚本
"
,
"
sectionMergeReadDataScript
"
:
"
数据脚本
"
,
...
...
@@ -493,6 +493,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
bySection
"
:
"
按区段
"
,
"
byModule
"
:
"
按组件
"
,
"
totalRow
"
:
"
总计行
"
,
"
sectionAmountCellStyle
"
:
"
区段总计单元格样式
"
,
"
decimal
"
:
"
小数点
"
,
...
...
o2web/source/x_component_process_FormDesigner/widget/SectionMerger.js
浏览文件 @
560ab8e7
...
...
@@ -31,6 +31,7 @@ MWF.xApplication.process.FormDesigner.widget.SectionMerger = new Class({
this
.
node
.
set
(
"
html
"
,
this
.
getHtml
());
this
.
readArea
=
this
.
node
.
getElement
(
"
.sectionMergeReadArea
"
);
this
.
readTypeArea
=
this
.
node
.
getElement
(
"
.sectionMergeReadTypeArea
"
);
this
.
readDefaultArea
=
this
.
node
.
getElement
(
"
.sectionMergeReadDefaultArea
"
);
this
.
readHtmlScriptArea
=
this
.
node
.
getElement
(
"
.sectionMergeReadHtmlScriptArea
"
);
this
.
readDataScriptArea
=
this
.
node
.
getElement
(
"
.sectionMergeReadDataScriptArea
"
);
...
...
@@ -76,8 +77,26 @@ MWF.xApplication.process.FormDesigner.widget.SectionMerger = new Class({
style
:
""
,
hasColon
:
true
,
itemTemplate
:
{
sectionMerge
:
{
name
:
this
.
data
.
pid
+
"
sectionMerge
"
,
type
:
"
radio
"
,
selectValue
:
[
"
none
"
,
"
read
"
,
"
edit
"
],
selectText
:
[
lp
.
none
,
lp
.
mergeDisplay
,
lp
.
mergeEdit
],
event
:
{
sectionMerge
:
{
name
:
this
.
data
.
pid
+
"
sectionMerge
"
,
type
:
"
radio
"
,
selectValue
:
function
(){
switch
(
moduleName
)
{
case
"
datatable
"
:
case
"
datatemplate
"
:
return
[
"
none
"
,
"
read
"
,
"
editSection
"
,
"
edit
"
];
default
:
return
[
"
none
"
,
"
read
"
,
"
edit
"
]
}
},
selectText
:
function
()
{
switch
(
moduleName
)
{
case
"
datatable
"
:
case
"
datatemplate
"
:
return
[
lp
.
none
,
lp
.
mergeDisplay
,
lp
.
editCurrentSection
,
lp
.
mergeEdit
];
default
:
return
[
lp
.
none
,
lp
.
mergeDisplay
,
lp
.
mergeEdit
]
}
},
event
:
{
change
:
function
(
it
,
ev
)
{
_self
.
property
.
setRadioValue
(
"
sectionMerge
"
,
this
);
_self
.
checkShow
()
...
...
@@ -143,7 +162,7 @@ MWF.xApplication.process.FormDesigner.widget.SectionMerger = new Class({
}
}},
sectionKey
:
{
name
:
this
.
data
.
pid
+
"
sectionKey
"
,
type
:
"
radio
"
,
selectValue
:
[
"
person
"
,
"
unit
"
,
"
textValue
"
,
"
script
"
],
selectText
:
[
lp
.
person
,
lp
.
unit
,
lp
.
textValue1
,
lp
.
script
],
event
:
{
type
:
"
radio
"
,
selectValue
:
[
"
person
"
,
"
unit
"
,
"
activity
"
,
"
splitValue
"
,
"
script
"
],
selectText
:
[
lp
.
handler
,
lp
.
handlerUnit
,
lp
.
activityId
,
lp
.
splitValue
,
lp
.
script
],
event
:
{
change
:
function
(
it
)
{
_self
.
property
.
setRadioValue
(
"
sectionKey
"
,
this
);
_self
.
checkShow
()
...
...
@@ -178,13 +197,16 @@ MWF.xApplication.process.FormDesigner.widget.SectionMerger = new Class({
var
_self
=
this
;
var
showCondition
=
{
"
readArea
"
:
function
()
{
return
d
.
sectionMerge
===
'
read
'
return
d
.
sectionMerge
===
'
read
'
||
d
.
sectionMerge
===
'
editSection
'
;
},
"
readTypeArea
"
:
function
(){
return
d
.
sectionMerge
===
'
read
'
;
},
"
readDefaultArea
"
:
function
()
{
return
d
.
mergeTypeRead
===
'
default
'
||
!
d
.
mergeTypeRead
;
return
d
.
mergeTypeRead
===
'
default
'
||
!
d
.
mergeTypeRead
||
d
.
sectionMerge
===
'
editSection
'
;
},
"
readWithSectionKeyArea
"
:
function
()
{
return
!!
d
.
showSectionKey
;
return
!!
d
.
showSectionKey
||
d
.
sectionMerge
===
'
editSection
'
;
},
"
sectionKeyScriptArea
"
:
function
()
{
return
d
.
sectionKey
===
"
script
"
;
...
...
@@ -212,7 +234,8 @@ MWF.xApplication.process.FormDesigner.widget.SectionMerger = new Class({
},
"
sortScriptArea
"
:
function
()
{
return
(
d
.
sectionMerge
===
'
read
'
&&
d
.
mergeTypeRead
===
"
default
"
)
||
(
d
.
sectionMerge
===
'
edit
'
&&
d
.
mergeTypeEdit
===
"
default
"
)
(
d
.
sectionMerge
===
'
edit
'
&&
d
.
mergeTypeEdit
===
"
default
"
)
||
d
.
sectionMerge
===
'
editSection
'
},
"
mergeTypeEditTable
"
:
function
()
{
return
_self
.
hasEditDefaultModuleList
.
contains
(
_self
.
module
.
moduleName
)
||
...
...
@@ -235,12 +258,14 @@ MWF.xApplication.process.FormDesigner.widget.SectionMerger = new Class({
'
</tr>
'
+
'
</table>
'
+
'
<div class="sectionMergeReadArea">
'
+
'
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
'
+
'
<tr>
'
+
'
<td class="editTableTitle">
'
+
this
.
lp
.
mergeType
+
'
:</td>
'
+
'
<td class="editTableValue" item="mergeTypeRead"></td>
'
+
'
</tr>
'
+
'
</table>
'
+
'
<div class="sectionMergeReadTypeArea">
'
+
'
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
'
+
'
<tr>
'
+
'
<td class="editTableTitle">
'
+
this
.
lp
.
mergeType
+
'
:</td>
'
+
'
<td class="editTableValue" item="mergeTypeRead"></td>
'
+
'
</tr>
'
+
'
</table>
'
+
'
</div>
'
+
'
<div class="sectionMergeReadDefaultArea">
'
+
'
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
'
+
'
<tr>
'
+
...
...
o2web/source/x_component_process_Xform/$Form/default/css.wcss
浏览文件 @
560ab8e7
...
...
@@ -381,6 +381,13 @@
"overflow": "hidden",
"background": "#e1e6f3"
},
"datagridTotalTr_section": {
"height": "20px",
"cursor": "pointer",
"line-height": "20px",
"overflow": "hidden",
"background": "#fafafa"
},
"datagridTotalTd": {
"font-weight": "bold"
},
...
...
o2web/source/x_component_process_Xform/$Module.js
浏览文件 @
560ab8e7
...
...
@@ -213,7 +213,8 @@ MWF.xApplication.process.Xform.$Module = MWF.APP$Module = new Class(
case
"
unit
"
:
callback
(
data
.
key
.
split
(
"
@
"
)[
0
]
);
break
;
case
"
textValue
"
:
case
"
activity
"
:
case
"
splitValue
"
:
callback
(
data
.
key
);
break
;
case
"
script
"
:
...
...
o2web/source/x_component_process_Xform/DatatablePC.js
浏览文件 @
560ab8e7
...
...
@@ -542,6 +542,9 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
},
_loadTotalTr
:
function
(){
if
(
!
this
.
totalFlag
)
return
;
if
(
this
.
isShowSectionKey
()
&&
!
(
this
.
json
.
totalRowBySection
||
[]
).
contains
(
"
module
"
)){
return
;
}
this
.
totalTr
=
new
Element
(
"
tr.mwf_totaltr
"
,
{
"
styles
"
:
this
.
form
.
css
.
datagridTotalTr
}).
inject
(
this
.
tBody
||
this
.
table
);
var
ths
=
this
.
titleTr
.
getElements
(
"
th
"
);
...
...
@@ -1649,7 +1652,7 @@ MWF.xApplication.process.Xform.DatatablePC.SectionLine = new Class({
},
load
:
function
()
{
this
.
loadSectionKeyNode
();
if
(
(
this
.
datatable
.
totalFlag
&&
this
.
datatable
.
json
.
totalRowBySection
||
[]
).
contains
(
"
section
"
)
){
if
(
this
.
datatable
.
totalFlag
&&
(
this
.
datatable
.
json
.
totalRowBySection
||
[]
).
contains
(
"
section
"
)
){
this
.
_loadTotalTr
();
}
if
(
this
.
data
.
data
&&
this
.
data
.
data
.
data
){
...
...
@@ -1660,6 +1663,9 @@ MWF.xApplication.process.Xform.DatatablePC.SectionLine = new Class({
this
.
lineList
.
push
(
line
);
this
.
datatable
.
lineList
.
push
(
line
);
}.
bind
(
this
))
if
(
this
.
datatable
.
totalFlag
&&
(
this
.
datatable
.
json
.
totalRowBySection
||
[]
).
contains
(
"
section
"
)
){
this
.
_loadTotal
();
}
}
},
_loadLine
:
function
(
container
,
data
,
index
,
isEdited
,
isNew
){
...
...
@@ -1692,12 +1698,13 @@ MWF.xApplication.process.Xform.DatatablePC.SectionLine = new Class({
},
loadSectionKeyNode
:
function
()
{
var
sectionKeyStyles
=
this
.
datatable
.
_parseStyles
(
this
.
datatable
.
json
.
sectionKeyStyles
);
var
td
=
new
Element
(
"
td
"
,
{
colspan
:
this
.
datatable
.
columnCount
}).
inject
(
this
.
sectionKeyNode
);
var
keyNode
=
new
Element
(
"
div.mwf_sectionkey
"
,
{
var
keyNode
=
new
Element
(
"
td.mwf_sectionkey
"
,
{
colspan
:
this
.
datatable
.
columnCount
,
styles
:
sectionKeyStyles
}).
inject
(
td
);
}).
inject
(
this
.
sectionKeyNode
);
// var keyNode = new Element("div.mwf_sectionkey", {
// styles : sectionKeyStyles
// }).inject(td);
debugger
;
this
.
datatable
.
getSectionKeyWithMerge
(
this
.
data
,
function
(
key
)
{
if
(
o2
.
typeOf
(
key
)
===
"
string
"
){
...
...
@@ -1710,13 +1717,13 @@ MWF.xApplication.process.Xform.DatatablePC.SectionLine = new Class({
}.
bind
(
this
));
},
_loadTotalTr
:
function
(){
this
.
totalTr
=
new
Element
(
"
tr.mwf_totaltr
"
,
{
"
styles
"
:
this
.
form
.
css
.
datagridTotalTr
}).
inject
(
this
.
sectionKeyNode
,
"
after
"
);
this
.
totalTr
=
new
Element
(
"
tr.mwf_totaltr
"
,
{
"
styles
"
:
this
.
form
.
css
.
datagridTotalTr
_section
}).
inject
(
this
.
sectionKeyNode
,
"
after
"
);
var
ths
=
this
.
datatable
.
titleTr
.
getElements
(
"
th
"
);
//datatable$Title Module
ths
.
each
(
function
(
th
,
index
){
var
td
=
new
Element
(
"
td
"
,
{
"
text
"
:
""
,
"
styles
"
:
this
.
form
.
css
.
datagridTotalTd
}).
inject
(
this
.
totalTr
);
if
(
this
.
datatable
.
json
.
amountStyles
)
td
.
setStyles
(
this
.
datatable
.
json
.
a
mountStyles
);
if
(
this
.
datatable
.
json
.
sectionAmountStyles
)
td
.
setStyles
(
this
.
datatable
.
json
.
sectionA
mountStyles
);
var
json
=
this
.
form
.
_getDomjson
(
th
);
if
(
json
){
...
...
@@ -1754,10 +1761,11 @@ MWF.xApplication.process.Xform.DatatablePC.SectionLine = new Class({
}.
bind
(
this
));
},
_loadTotal
:
function
(){
debugger
;
var
totalData
=
{};
if
(
!
this
.
datatable
.
totalFlag
)
return
totalData
;
if
(
!
this
.
totalTr
)
this
.
_loadTotalTr
();
var
data
=
this
.
data
;
var
data
=
this
.
data
.
data
;
this
.
totalColumns
.
each
(
function
(
column
,
index
){
var
json
=
column
.
moduleJson
;
if
(
!
json
)
return
;
...
...
@@ -1911,7 +1919,6 @@ MWF.xApplication.process.Xform.DatatablePC.Line = new Class({
var
hasData
=
this
.
data
.
hasOwnProperty
(
templateJsonId
);
debugger
;
var
module
=
this
.
form
.
_loadModule
(
json
,
node
,
function
()
{
if
(
_self
.
options
.
isMergeRead
){
this
.
field
=
false
;
//不希望保存数据
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录