Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
41cf3a87
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,发现更多精彩内容 >>
提交
41cf3a87
编写于
7月 07, 2021
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
正文控件增加盖章功能
上级
476cf4e5
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
202 addition
and
24 deletion
+202
-24
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html
...ss_FormDesigner/Module/Documenteditor/documenteditor.html
+11
-4
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/combine.html
..._FormDesigner/Module/Documenteditor/templete/combine.html
+4
-2
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/command.html
..._FormDesigner/Module/Documenteditor/templete/command.html
+3
-1
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/letter.html
...s_FormDesigner/Module/Documenteditor/templete/letter.html
+2
-2
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/meeting.html
..._FormDesigner/Module/Documenteditor/templete/meeting.html
+6
-1
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/party-meeting.html
...esigner/Module/Documenteditor/templete/party-meeting.html
+4
-1
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/party.html
...ss_FormDesigner/Module/Documenteditor/templete/party.html
+4
-0
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/standard.html
...FormDesigner/Module/Documenteditor/templete/standard.html
+4
-2
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+1
-0
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+1
-0
o2web/source/x_component_process_Xform/Documenteditor.js
o2web/source/x_component_process_Xform/Documenteditor.js
+136
-5
o2web/source/x_component_process_Xform/widget/OOXML.js
o2web/source/x_component_process_Xform/widget/OOXML.js
+26
-6
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html
浏览文件 @
41cf3a87
...
...
@@ -178,12 +178,19 @@
<td
class=
"editTableTitle"
>
{{$.lp.fileSite}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"toWordSite"
value=
"text{$.toWordSite || '$doc'}"
class=
"editTableInput"
/></td>
</tr>
<!-- <tr>-->
<!-- <td class="editTableTitle">{{$.lp.addPageNumber}}:</td>-->
<!-- <td class="editTableValue">-->
<!-- <input class="editTableRadio" name="toWordPageNumber" text{($.toWordPageNumber=='y')?'checked':''} type="radio" value="y"/>{{$.lp.yes}}-->
<!-- <input class="editTableRadio" name="toWordPageNumber" text{($.toWordPageNumber!='y')?'checked':''} type="radio" value="n"/>{{$.lp.no}}-->
<!-- <div>{{$.lp.addPageNumberInfo}}</div>-->
<!-- </td>-->
<!-- </tr>-->
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.
addPageNumber
}}:
</td>
<td
class=
"editTableTitle"
>
{{$.lp.
isConversionSeal
}}:
</td>
<td
class=
"editTableValue"
>
<input
class=
"editTableRadio"
name=
"toWordPageNumber"
text
{($
.toWordPageNumber=
='y')?'checked':''}
type=
"radio"
value=
"y"
/>
{{$.lp.yes}}
<input
class=
"editTableRadio"
name=
"toWordPageNumber"
text
{($.
toWordPageNumber
!='
y
')?'
checked
'
:
''}
type=
"radio"
value=
"n"
/>
{{$.lp.no}}
<div>
{{$.lp.addPageNumberInfo}}
</div>
<input
class=
"editTableRadio"
name=
"toWordSeal"
text
{($.
toWordSeal
!='
n
')?'
checked
'
:
''}
type=
"radio"
value=
"y"
/>
{{$.lp.yes}}
<input
class=
"editTableRadio"
name=
"toWordSeal"
text
{($
.toWordSeal=
='n')?'checked':''}
type=
"radio"
value=
"n"
/>
{{$.lp.no}}
</td>
</tr>
<tr>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/combine.html
浏览文件 @
41cf3a87
...
...
@@ -205,8 +205,8 @@
</p>
</td>
<td
width=
47
valign=
top
style=
'width:32pt;padding:0cm 0cm 0cm 0cm'
>
<p
class=
MsoNormal
style=
'mso-element:frame;mso-element-wrap: around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal: margin;mso-element-left:right;mso-element-top:.05pt;mso-height-rule:exactly'
>
<
span
style=
'mso-bidi-font-size:16.0pt;font-family:仿宋;'
>
</span
>
<p
class=
MsoNormal
style=
"position: relative"
>
<
img
class=
"doc_layout_seal"
width=
160
height=
160
data-mso-position-vertical=
"absolute"
data-mso-position-horizontal-relative=
"margin"
data-mso-position-vertical-relative=
"paragraph"
style=
"border:1px solid #cccccc; border-radius: 100px; position: absolute; top:-88pt; left:290pt;"
>
</p>
</td>
</tr>
...
...
@@ -252,6 +252,8 @@
</div>
<div
class=
"doc_block doc_layout_editionArea"
>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<table
class=
"doc_block doc_layout_edition"
data-compute-style=
"y"
border=
0
cellspacing=
0
cellpadding=
0
style=
'width:100%; line-height:normal;border-collapse:collapse;border:none;mso-yfti-tbllook:2184; mso-padding-alt:0cm 0cm 0cm 0cm;mso-table-anchor-vertical:margin; mso-table-anchor-horizontal:column;mso-table-left:left;mso-table-top:bottom;'
>
<tr
style=
"page-break-inside:avoid"
>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/command.html
浏览文件 @
41cf3a87
...
...
@@ -192,7 +192,9 @@
</td>
</tr>
</table>
<p
class=
MsoNormal
style=
"position: relative"
>
<img
class=
"doc_layout_seal"
width=
160
height=
160
data-mso-position-vertical=
"absolute"
data-mso-position-horizontal-relative=
"margin"
data-mso-position-vertical-relative=
"paragraph"
style=
"border:1px solid #cccccc; border-radius: 100px; position: absolute; top:-88pt; left:290pt;"
>
</p>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/letter.html
浏览文件 @
41cf3a87
...
...
@@ -299,8 +299,8 @@ AAAAAAAAAAAAACUEAABkcnMvZG93bnJldi54bWxQSwUGAAAAAAQABADzAAAALQUAAAAA
</tr>
<tr
style=
'mso-yfti-irow:1;mso-yfti-lastrow:yes'
>
<td
width=
100%
valign=
top
style=
'width:100%;padding:0cm 0cm 0cm 0cm'
>
<p
class=
MsoNormal
>
<
span
class=
"doc_layout_annotation"
style=
'font-size:16.0pt;font-family:仿宋;'
></span
>
<p
class=
MsoNormal
style=
"position: relative"
>
<
img
class=
"doc_layout_seal"
width=
160
height=
160
data-mso-position-vertical=
"absolute"
data-mso-position-horizontal-relative=
"margin"
data-mso-position-vertical-relative=
"paragraph"
style=
"border:1px solid #cccccc; border-radius: 100px; position: absolute; top:-88pt; left:290pt;"
>
</p>
</td>
</tr>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/meeting.html
浏览文件 @
41cf3a87
...
...
@@ -182,7 +182,12 @@
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
</div>
<p
class=
MsoNormal
style=
"position: relative"
>
<img
class=
"doc_layout_seal"
width=
160
height=
160
data-mso-position-vertical=
"absolute"
data-mso-position-horizontal-relative=
"margin"
data-mso-position-vertical-relative=
"paragraph"
style=
"border:1px solid #cccccc; border-radius: 100px; position: absolute; top:-88pt; left:290pt;"
>
</p>
<div
class=
"doc_block doc_layout_editionArea"
>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<table
class=
"doc_block doc_layout_edition"
border=
0
cellspacing=
0
cellpadding=
0
style=
'width:100%; border-collapse:collapse;border:none;mso-border-top-alt:solid windowtext 1.5pt; mso-border-bottom-alt:solid windowtext 1.5pt;mso-yfti-tbllook:2184; mso-padding-alt:0cm 0cm 0cm 0cm;mso-table-anchor-vertical:margin; mso-table-anchor-horizontal:column;mso-table-left:left;mso-table-top:bottom;'
>
<tr
style=
"page-break-inside:avoid"
>
...
...
@@ -190,7 +195,7 @@
<table
data-compute-style=
"y"
style=
"width:100%; border: none"
>
<tr
style=
"page-break-inside:avoid"
>
<td
class=
"doc_layout_edition_copyto"
valign=
top
style=
'width:
27
pt; max-width:44pt; min-width:44px; border:none;padding:5.4pt 0cm 5.4pt 14pt'
>
<td
class=
"doc_layout_edition_copyto"
valign=
top
style=
'width:
32
pt; max-width:44pt; min-width:44px; border:none;padding:5.4pt 0cm 5.4pt 14pt'
>
<p
class=
MsoNormal
align=
left
style=
'text-align:left;line-height: normal'
><span
class=
"doc_layout_edition_copyto_title"
style=
'font-size:14.0pt;font-family:仿宋;'
>
送:
</span></p>
</td>
<td
colspan=
2
style=
'width:387pt;border:none;padding:5.4pt 14pt 5.4pt 0cm'
>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/party-meeting.html
浏览文件 @
41cf3a87
...
...
@@ -199,8 +199,11 @@
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
</div>
<p
class=
MsoNormal
style=
"position: relative"
>
<img
class=
"doc_layout_seal"
width=
160
height=
160
data-mso-position-vertical=
"absolute"
data-mso-position-horizontal-relative=
"margin"
data-mso-position-vertical-relative=
"paragraph"
style=
"border:1px solid #cccccc; border-radius: 100px; position: absolute; top:-88pt; left:290pt;"
>
</p>
<div
class=
"doc_block doc_layout_editionArea"
>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<table
class=
"doc_block doc_layout_edition"
border=
0
cellspacing=
0
cellpadding=
0
style=
'width:100%; border-collapse:collapse;border:none;mso-border-top-alt:solid windowtext 1.5pt; mso-border-bottom-alt:solid windowtext 1.5pt;mso-yfti-tbllook:2184; mso-padding-alt:0cm 0cm 0cm 0cm;mso-table-anchor-vertical:margin; mso-table-anchor-horizontal:column;mso-table-left:left;mso-table-top:bottom;'
>
<tr
style=
"page-break-inside:avoid"
>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/party.html
浏览文件 @
41cf3a87
...
...
@@ -333,8 +333,12 @@ relative;z-index:251662336;left:-463px;top:10px;width:1207px;height:48px'>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
</div>
<p
class=
MsoNormal
style=
"position: relative"
>
<img
class=
"doc_layout_seal"
width=
160
height=
160
data-mso-position-vertical=
"absolute"
data-mso-position-horizontal-relative=
"margin"
data-mso-position-vertical-relative=
"paragraph"
style=
"border:1px solid #cccccc; border-radius: 100px; position: absolute; top:-88pt; left:290pt;"
>
</p>
<div
class=
"doc_block doc_layout_editionArea"
>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<table
class=
"doc_block doc_layout_edition"
border=
0
cellspacing=
0
cellpadding=
0
style=
'width:100%; border-collapse:collapse;border:none;mso-border-top-alt:solid windowtext 1.5pt; mso-border-bottom-alt:solid windowtext 1.5pt;mso-yfti-tbllook:2184; mso-padding-alt:0cm 0cm 0cm 0cm;mso-table-anchor-vertical:margin; mso-table-anchor-horizontal:column;mso-table-left:left;mso-table-top:bottom;'
>
<tr
style=
"page-break-inside:avoid"
>
...
...
o2web/source/x_component_process_FormDesigner/Module/Documenteditor/templete/standard.html
浏览文件 @
41cf3a87
...
...
@@ -230,8 +230,8 @@
</tr>
<tr
style=
'mso-yfti-irow:1;mso-yfti-lastrow:yes'
>
<td
width=
100%
valign=
top
style=
'width:100%;padding:0cm 0cm 0cm 0cm'
>
<p
class=
MsoNormal
>
<
span
class=
"doc_layout_annotation"
style=
'font-size:16.0pt;font-family:仿宋;'
></span
>
<p
class=
MsoNormal
style=
"position: relative"
>
<
img
class=
"doc_layout_seal"
width=
160
height=
160
data-mso-position-vertical=
"absolute"
data-mso-position-horizontal-relative=
"margin"
data-mso-position-vertical-relative=
"paragraph"
style=
"border:1px solid #cccccc; border-radius: 100px; position: absolute; top:-88pt; left:290pt;"
>
</p>
</td>
</tr>
...
...
@@ -239,6 +239,8 @@
</div>
<div
class=
"doc_block doc_layout_editionArea"
>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<P
class=
MsoNormal
style=
'font-size:16.0pt;font-family:仿宋'
><span>
&
nbsp
</span></P>
<table
class=
"doc_block doc_layout_edition"
data-compute-style=
"y"
border=
0
cellspacing=
0
cellpadding=
0
style=
'width:100%; line-height:normal;border-collapse:collapse;border:none;mso-yfti-tbllook:2184; mso-padding-alt:0cm 0cm 0cm 0cm;mso-table-anchor-vertical:margin; mso-table-anchor-horizontal:column;mso-table-left:left;mso-table-top:bottom;'
>
<tr
style=
"page-break-inside:avoid"
>
...
...
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
41cf3a87
...
...
@@ -773,6 +773,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
fullScreenInfo
"
:
"
Whether to allow full screen display
"
,
"
wordConversion
"
:
"
Convert to word
"
,
"
wordConversionType
"
:
"
Convert Type
"
,
"
isConversionSeal
"
:
"
Convert Seal
"
,
"
wordConversionWithService
"
:
"
By Service
"
,
"
fileName
"
:
"
Filename
"
,
"
fileSite
"
:
"
Attachment site
"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
41cf3a87
...
...
@@ -778,6 +778,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
fullScreenInfo
"
:
"
是否允许全屏显示
"
,
"
wordConversion
"
:
"
WORD转换
"
,
"
wordConversionType
"
:
"
转换方式
"
,
"
isConversionSeal
"
:
"
转换印章
"
,
"
wordConversionWithService
"
:
"
使用服务
"
,
"
fileName
"
:
"
文件名
"
,
"
fileSite
"
:
"
附件site
"
,
...
...
o2web/source/x_component_process_Xform/Documenteditor.js
浏览文件 @
41cf3a87
...
...
@@ -372,12 +372,24 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
this
.
layout_copiesSecretPriority
=
this
.
contentNode
.
getElement
(
"
.doc_layout_copiesSecretPriority
"
);
if
(
this
.
layout_copiesSecretPriority
)
this
.
layout_copiesSecretPriority
.
setStyles
(
this
.
css
.
doc_layout_copiesSecretPriority
);
/**
* @summary 份数的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_copies
=
this
.
contentNode
.
getElement
(
"
.doc_layout_copies
"
);
if
(
this
.
layout_copies
)
this
.
layout_copies
.
setStyles
(
this
.
css
.
doc_layout_copies
);
/**
* @summary 密级的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_secret
=
this
.
contentNode
.
getElement
(
"
.doc_layout_secret
"
);
if
(
this
.
layout_secret
)
this
.
layout_secret
.
setStyles
(
this
.
css
.
doc_layout_secret
);
/**
* @summary 紧急度的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_priority
=
this
.
contentNode
.
getElement
(
"
.doc_layout_priority
"
);
if
(
this
.
layout_priority
)
this
.
layout_priority
.
setStyles
(
this
.
css
.
doc_layout_priority
);
...
...
@@ -387,6 +399,10 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
//红头
_loadRedHeader
:
function
(){
/**
* @summary 红头的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_redHeader
=
this
.
contentNode
.
getElement
(
"
.doc_layout_redHeader
"
);
if
(
this
.
layout_redHeader
)
this
.
layout_redHeader
.
setStyles
(
this
.
css
.
doc_layout_redHeader
);
},
...
...
@@ -399,6 +415,10 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
var
td
=
this
.
contentNode
.
getElement
(
"
.doc_layout_filenoup_fileno_td
"
);
if
(
td
)
td
.
setStyles
(
this
.
css
.
doc_layout_filenoup_fileno_td
);
/**
* @summary 文号的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_fileno
=
this
.
contentNode
.
getElement
(
"
.doc_layout_filenoup_fileno
"
);
if
(
this
.
layout_fileno
)
this
.
layout_fileno
.
setStyles
(
this
.
css
.
doc_layout_filenoup_fileno
);
...
...
@@ -414,6 +434,10 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
node
=
this
.
contentNode
.
getElement
(
"
.doc_layout_filenoup_signerContent_td
"
);
if
(
node
)
node
.
setStyles
(
this
.
css
.
doc_layout_filenoup_signerContent_td
);
/**
* @summary 签发人的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_signer
=
this
.
contentNode
.
getElement
(
"
.doc_layout_filenoup_signerContent
"
);
if
(
this
.
layout_signer
)
this
.
layout_signer
.
setStyles
(
this
.
css
.
doc_layout_filenoup_signerContent
);
...
...
@@ -468,12 +492,20 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
//标题
_loadSubject
:
function
(){
/**
* @summary 标题的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_subject
=
this
.
contentNode
.
getElement
(
"
.doc_layout_subject
"
);
if
(
this
.
layout_subject
)
this
.
layout_subject
.
setStyles
(
this
.
css
.
doc_layout_subject
);
},
//主送
_loadMainSend
:
function
(){
/**
* @summary 主送的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_mainSend
=
this
.
contentNode
.
getElement
(
"
.doc_layout_mainSend
"
);
if
(
this
.
layout_mainSend
)
this
.
layout_mainSend
.
setStyles
(
this
.
css
.
doc_layout_mainSend
);
},
...
...
@@ -501,6 +533,10 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
// return filetextNode;
// },
_loadFiletext
:
function
(){
/**
* @summary 正文区域的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_filetext
=
this
.
contentNode
.
getElement
(
"
.doc_layout_filetext
"
);
this
.
layout_filetext
.
addClass
(
"
css
"
+
this
.
form
.
json
.
id
+
this
.
json
.
id
);
this
.
layout_filetext
.
setStyles
(
this
.
css
.
doc_layout_filetext
);
...
...
@@ -527,6 +563,10 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
node
=
this
.
contentNode
.
getElement
(
"
.doc_layout_attachment_content_td
"
);
if
(
node
)
node
.
setStyles
(
this
.
css
.
doc_layout_attachment_content_td
);
/**
* @summary 附件区域的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_attachment
=
this
.
contentNode
.
getElement
(
"
.doc_layout_attachment_content
"
);
if
(
this
.
layout_attachment
)
this
.
layout_attachment
.
setStyles
(
this
.
css
.
doc_layout_attachment_content
);
},
...
...
@@ -534,7 +574,15 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
//发布单位
_loadIssuance
:
function
(){
this
.
layout_issuanceTable
=
this
.
contentNode
.
getElement
(
"
.doc_layout_issuance
"
);
/**
* @summary 发文单位的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_issuanceUnit
=
this
.
contentNode
.
getElement
(
"
.doc_layout_issuanceUnit
"
);
/**
* @summary 发文时间的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_issuanceDate
=
this
.
contentNode
.
getElement
(
"
.doc_layout_issuanceDate
"
);
if
(
this
.
layout_issuanceTable
)
this
.
layout_issuanceTable
.
setStyles
(
this
.
css
.
doc_layout_issuance
);
...
...
@@ -544,6 +592,10 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
//附注
_loadAnnotation
:
function
(){
/**
* @summary 附注的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_annotation
=
this
.
contentNode
.
getElement
(
"
.doc_layout_annotation
"
);
if
(
this
.
layout_annotation
)
this
.
layout_annotation
.
setStyles
(
this
.
css
.
doc_layout_annotation
);
},
...
...
@@ -566,6 +618,11 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
this
.
layout_copytoTitle
=
this
.
contentNode
.
getElement
(
"
.doc_layout_edition_copyto_title
"
);
if
(
this
.
layout_copytoTitle
)
this
.
layout_copytoTitle
.
setStyles
(
this
.
css
.
doc_layout_edition_copyto_title
);
/**
* @summary 抄送的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_copytoContent
=
this
.
contentNode
.
getElement
(
"
.doc_layout_edition_copyto_content
"
);
if
(
this
.
layout_copytoContent
)
this
.
layout_copytoContent
.
setStyles
(
this
.
css
.
doc_layout_edition_copyto_content
);
...
...
@@ -578,12 +635,59 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
if
(
issuance
)
issuance
.
setStyles
(
this
.
css
.
doc_layout_edition_issuance
);
var
issuance_table
=
this
.
contentNode
.
getElement
(
"
.doc_layout_edition_issuance_table
"
);
if
(
issuance_table
)
issuance_table
.
setStyles
(
this
.
css
.
doc_layout_edition_issuance_table
);
/**
* @summary 印发单位的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_edition_issuance_unit
=
this
.
contentNode
.
getElement
(
"
.doc_layout_edition_issuance_unit
"
);
if
(
this
.
layout_edition_issuance_unit
)
this
.
layout_edition_issuance_unit
.
setStyles
(
this
.
css
.
doc_layout_edition_issuance_unit
);
/**
* @summary 印发时间的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_edition_issuance_date
=
this
.
contentNode
.
getElement
(
"
.doc_layout_edition_issuance_date
"
);
if
(
this
.
layout_edition_issuance_date
)
this
.
layout_edition_issuance_date
.
setStyles
(
this
.
css
.
doc_layout_edition_issuance_date
);
},
loadSeal
:
function
(){
/**
* @summary 模拟盖章的dom对象.
* @member {MWF.xApplication.process.Xform.Documenteditor}
*/
this
.
layout_seals
=
this
.
contentNode
.
getElements
(
"
.doc_layout_seal
"
);
this
.
layout_seals
.
each
(
function
(
node
){
// if (!node.get("src")){
node
.
hide
();
// }else{
// node.show();
// node.setStyles({
// "border": "0",
// "border-radius": "0"
// });
// }
});
},
/**对正文进行模拟盖章(模板中必须有class为“doc_layout_seal”的img对象)
* @summary 对正文进行模拟盖章,此方法只是进行模拟盖章,通过图片显示,并非专业盖章,不具备法律效应。
* * @param src{String} 盖章图片的url.
* @param position{integer} 要盖章的位置, 默认为0.
* @example
* this.form.get("documenteditor").seal(0, "../custom/img/seal.png"); //在第一个盖章位置进行模拟盖章
*/
seal
:
function
(
src
,
position
){
var
p
=
position
||
0
;
if
(
this
.
layout_seals
&&
this
.
layout_seals
.
length
){
if
(
this
.
layout_seals
[
p
]){
this
.
layout_seals
[
p
].
src
=
src
;
this
.
layout_seals
[
p
].
show
();
this
.
layout_seals
[
p
].
setStyles
({
"
border
"
:
"
0
"
,
"
border-radius
"
:
"
0
"
});
}
this
.
getSealData
();
}
},
_loadMeeting
:
function
(){
this
.
layout_meetingAttendArea
=
this
.
contentNode
.
getElement
(
"
.doc_layout_meeting_attend
"
);
this
.
layout_meetingAttendTitle
=
this
.
contentNode
.
getElement
(
"
.doc_layout_meeting_attend_title
"
);
...
...
@@ -638,6 +742,8 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
this
.
_loadEdition
();
this
.
loadSeal
();
//会议纪要
this
.
_loadMeeting
();
...
...
@@ -2874,6 +2980,8 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
if
(
this
.
layout_meetingSitContent
)
this
.
data
.
meetingSit
=
this
.
layout_meetingSitContent
.
get
(
"
html
"
);
if
(
this
.
layout_meetingRecordContent
)
this
.
data
.
meetingRecord
=
this
.
layout_meetingRecordContent
.
get
(
"
html
"
);
this
.
getSealData
();
if
(
this
.
customLayouts
){
this
.
customLayouts
.
each
(
function
(
l
){
this
.
data
[
l
.
name
]
=
l
.
node
.
get
(
"
html
"
);
...
...
@@ -2883,6 +2991,14 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
//}
return
this
.
data
;
},
getSealData
:
function
(){
if
(
this
.
layout_seals
&&
this
.
layout_seals
.
length
)
{
this
.
data
.
seals
=
[];
this
.
layout_seals
.
each
(
function
(
seal
){
this
.
data
.
seals
.
push
(
seal
.
get
(
"
src
"
));
}.
bind
(
this
));
}
},
setAttachmentData
:
function
(){
if
(
!
this
.
attachmentTemplete
){
this
.
attachmentTemplete
=
this
.
layout_attachment
.
get
(
"
html
"
);
...
...
@@ -2988,6 +3104,21 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
if
(
this
.
layout_meetingSitContent
)
this
.
layout_meetingSitContent
.
set
(
"
html
"
,
data
.
meetingSit
||
"
"
);
if
(
this
.
layout_meetingRecordContent
)
this
.
layout_meetingRecordContent
.
set
(
"
html
"
,
data
.
meetingRecord
||
"
"
);
if
(
this
.
layout_seals
){
if
(
data
.
seals
&&
data
.
seals
.
length
){
data
.
seals
.
each
(
function
(
src
,
i
){
if
(
this
.
layout_seals
[
i
]
&&
src
){
this
.
layout_seals
[
i
].
src
=
src
;
this
.
layout_seals
[
i
].
show
();
this
.
layout_seals
[
i
].
setStyles
({
"
border
"
:
"
0
"
,
"
border-radius
"
:
"
0
"
});
}
}.
bind
(
this
));
}
}
if
(
this
.
customLayouts
){
this
.
customLayouts
.
each
(
function
(
l
){
l
.
node
.
set
(
"
html
"
,
this
.
data
[
l
.
name
]
||
"
"
);
...
...
@@ -3002,12 +3133,12 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
var
unitWidth
=
o2
.
getTextSize
(
this
.
layout_issuanceUnit
.
get
(
"
text
"
),
{
"
font-size
"
:
"
16pt
"
,
"
font-family
"
:
"
'Times New Roman',仿宋
"
,
"
letter-spacing
"
:
"
-0.
4
pt
"
"
letter-spacing
"
:
"
-0.
2
pt
"
}).
x
;
var
dateWidth
=
o2
.
getTextSize
(
this
.
layout_issuanceDate
.
get
(
"
text
"
),
{
"
font-size
"
:
"
16pt
"
,
"
font-family
"
:
"
'Times New Roman',仿宋
"
,
"
letter-spacing
"
:
"
-0.
4
pt
"
"
letter-spacing
"
:
"
-0.
2
pt
"
}).
x
;
// var unitWidth = this.layout_issuanceUnit.getSize().x;
...
...
@@ -3082,8 +3213,8 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
var
l
=
14
*
text
.
length
;
var
wl
=
19
*
text
.
length
;
cell
.
setStyles
({
"
max-width
"
:
""
+
l
+
"
pt
!important
"
,
"
min-width
"
:
""
+
l
+
"
pt
!important
"
,
"
max-width
"
:
""
+
l
+
"
pt
"
,
"
min-width
"
:
""
+
l
+
"
pt
"
,
"
width
"
:
""
+
wl
+
"
pt
"
});
}
...
...
@@ -3251,7 +3382,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
removeDisplayNone
:
function
(
node
){
var
n
=
node
.
getFirst
();
while
(
n
){
if
(
n
.
getStyle
(
"
display
"
)
==
"
none
"
){
if
(
n
.
getStyle
(
"
display
"
)
==
"
none
"
||
(
this
.
json
.
toWordSeal
==
"
n
"
&&
n
.
hasClass
(
"
doc_layout_seal
"
))
){
var
tmp
=
n
.
getNext
();
n
.
destroy
();
n
=
tmp
;
...
...
o2web/source/x_component_process_Xform/widget/OOXML.js
浏览文件 @
41cf3a87
...
...
@@ -682,6 +682,14 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
return
false
;
});
}
var
d
=
dom
.
dataset
;
if
(
d
){
Object
.
keys
(
d
).
forEach
(
function
(
k
){
if
(
k
.
substr
(
0
,
3
).
toLowerCase
()
===
"
mso
"
){
o
[
k
.
hyphenate
()]
=
d
[
k
];
}
});
}
return
o
;
},
processTableDom
:
function
(
dom
,
oo_body
,
append
,
divAsP
,
oo_tc
){
...
...
@@ -1174,6 +1182,7 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
},
pxToPt
:
function
(
px
){
if
(
!
px
)
return
0
;
var
v
=
px
;
if
(
px
&&
o2
.
typeOf
(
px
)
===
"
string
"
){
u
=
px
.
substring
(
px
.
length
-
2
,
px
.
length
);
...
...
@@ -1217,15 +1226,24 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
var
oo_run
=
this
.
createRun
(
oo_doc
,
{
"
rPrs
"
:
{
"
noProof
"
:{}}});
var
oo_drawing
=
this
.
createEl
(
oo_doc
,
"
drawing
"
);
var
msoStyle
=
this
.
getMsoStyle
(
img
);
var
position
=
img
.
getStyle
(
"
position
"
);
var
p
=
(
position
===
"
absolute
"
||
position
===
"
fixed
"
)
?
"
anchor
"
:
"
inline
"
;
var
p
=
(
position
===
"
absolute
"
||
msoStyle
[
"
mso-position-vertical
"
]
===
"
absolute
"
)
?
"
anchor
"
:
"
inline
"
;
var
oo_position
;
if
(
p
===
"
anchor
"
){
//var pos = img.getPosition(img.getParent(".WordSection1"));
var
pos
=
img
.
getPosition
();
positionH
=
(
pos
.
x
*
9525
).
toInt
();
positionV
=
(
pos
.
y
*
9525
).
toInt
();
//var pos = img.getPosition();
var
positionV
=
this
.
pxToPt
(
msoStyle
[
"
mso-top
"
]);
var
positionH
=
this
.
pxToPt
(
msoStyle
[
"
mso-left
"
]);
if
(
!
positionV
||
!
positionH
){
var
pos
=
img
.
getPosition
(
img
.
getOffsetParent
());
if
(
!
positionH
)
positionH
=
this
.
pxToPt
(
pos
.
x
);
if
(
!
positionV
)
positionV
=
this
.
pxToPt
(
pos
.
y
);
}
positionH
=
(
positionH
*
12700
).
toInt
();
positionV
=
(
positionV
*
12700
).
toInt
();
var
oo_anchor
=
this
.
createEl
(
oo_doc
,
"
anchor
"
,
"
wp
"
);
this
.
setAttrs
(
oo_anchor
,
{
...
...
@@ -1237,14 +1255,16 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
var
oo_simplePos
=
this
.
createEl
(
oo_doc
,
"
simplePos
"
,
"
wp
"
);
this
.
setAttrs
(
oo_simplePos
,
{
"
x
"
:
"
0
"
,
"
y
"
:
"
0
"
},
false
);
var
relativeFrom
=
msoStyle
[
"
mso-position-horizontal-relative
"
]
||
"
margin
"
;
var
oo_positionH
=
this
.
createEl
(
oo_doc
,
"
positionH
"
,
"
wp
"
);
this
.
setAttrs
(
oo_positionH
,
{
"
relativeFrom
"
:
"
margin
"
},
false
);
this
.
setAttrs
(
oo_positionH
,
{
"
relativeFrom
"
:
relativeFrom
},
false
);
var
oo_posOffset
=
this
.
createEl
(
oo_doc
,
"
posOffset
"
,
"
wp
"
);
oo_posOffset
.
appendChild
(
oo_doc
.
createTextNode
(
positionH
));
oo_positionH
.
appendChild
(
oo_posOffset
);
relativeFrom
=
msoStyle
[
"
mso-position-vertical-relative
"
]
||
"
margin
"
;
var
oo_positionV
=
this
.
createEl
(
oo_doc
,
"
positionV
"
,
"
wp
"
);
this
.
setAttrs
(
oo_positionV
,
{
"
relativeFrom
"
:
"
margin
"
},
false
);
this
.
setAttrs
(
oo_positionV
,
{
"
relativeFrom
"
:
relativeFrom
},
false
);
var
oo_posOffset
=
this
.
createEl
(
oo_doc
,
"
posOffset
"
,
"
wp
"
);
oo_posOffset
.
appendChild
(
oo_doc
.
createTextNode
(
positionV
));
//此处需要根据行高来设置数值,暂时固定数值
oo_positionV
.
appendChild
(
oo_posOffset
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录