Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
此号慢热型
o2oa
提交
0a10b173
o2oa
项目概览
此号慢热型
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
5
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,发现更多精彩内容 >>
提交
0a10b173
编写于
11月 24, 2020
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加板式公文转ofd服务
上级
93569133
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
36 addition
and
5 deletion
+36
-5
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/ProcessPlatform.java
.../java/com/x/base/core/project/config/ProcessPlatform.java
+18
-0
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/ActionDocToWordWorkOrWorkCompleted.java
.../jaxrs/attachment/ActionDocToWordWorkOrWorkCompleted.java
+16
-5
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/BaseAction.java
...latform/assemble/surface/jaxrs/attachment/BaseAction.java
+2
-0
未找到文件。
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/ProcessPlatform.java
浏览文件 @
0a10b173
...
@@ -601,12 +601,16 @@ public class ProcessPlatform extends ConfigObject {
...
@@ -601,12 +601,16 @@ public class ProcessPlatform extends ConfigObject {
private
WorkExtensionEvents
workAttachmentDownloadEvents
=
new
WorkExtensionEvents
();
private
WorkExtensionEvents
workAttachmentDownloadEvents
=
new
WorkExtensionEvents
();
@FieldDescribe
(
"工作版式文件转word."
)
@FieldDescribe
(
"工作版式文件转word."
)
private
WorkExtensionEvents
workDocToWordEvents
=
new
WorkExtensionEvents
();
private
WorkExtensionEvents
workDocToWordEvents
=
new
WorkExtensionEvents
();
@FieldDescribe
(
"工作版式文件转OFD."
)
private
WorkExtensionEvents
workDocToOfdEvents
=
new
WorkExtensionEvents
();
@FieldDescribe
(
"已完成工作附件上传."
)
@FieldDescribe
(
"已完成工作附件上传."
)
private
WorkCompletedExtensionEvents
workCompletedAttachmentUploadEvents
=
new
WorkCompletedExtensionEvents
();
private
WorkCompletedExtensionEvents
workCompletedAttachmentUploadEvents
=
new
WorkCompletedExtensionEvents
();
@FieldDescribe
(
"已完成工作附件下载."
)
@FieldDescribe
(
"已完成工作附件下载."
)
private
WorkCompletedExtensionEvents
workCompletedAttachmentDownloadEvents
=
new
WorkCompletedExtensionEvents
();
private
WorkCompletedExtensionEvents
workCompletedAttachmentDownloadEvents
=
new
WorkCompletedExtensionEvents
();
@FieldDescribe
(
"已完成工作版式文件转word."
)
@FieldDescribe
(
"已完成工作版式文件转word."
)
private
WorkCompletedExtensionEvents
workCompletedDocToWordEvents
=
new
WorkCompletedExtensionEvents
();
private
WorkCompletedExtensionEvents
workCompletedDocToWordEvents
=
new
WorkCompletedExtensionEvents
();
@FieldDescribe
(
"已完成工作版式文件转OFD."
)
private
WorkCompletedExtensionEvents
workCompletedDocToOfdEvents
=
new
WorkCompletedExtensionEvents
();
public
WorkExtensionEvents
getWorkAttachmentUploadEvents
()
{
public
WorkExtensionEvents
getWorkAttachmentUploadEvents
()
{
if
(
null
==
this
.
workAttachmentUploadEvents
)
{
if
(
null
==
this
.
workAttachmentUploadEvents
)
{
...
@@ -629,6 +633,13 @@ public class ProcessPlatform extends ConfigObject {
...
@@ -629,6 +633,13 @@ public class ProcessPlatform extends ConfigObject {
return
workDocToWordEvents
;
return
workDocToWordEvents
;
}
}
public
WorkExtensionEvents
getWorkDocToOfdEvents
()
{
if
(
null
==
this
.
workDocToOfdEvents
)
{
this
.
workDocToOfdEvents
=
new
WorkExtensionEvents
();
}
return
workDocToOfdEvents
;
}
public
WorkCompletedExtensionEvents
getWorkCompletedAttachmentUploadEvents
()
{
public
WorkCompletedExtensionEvents
getWorkCompletedAttachmentUploadEvents
()
{
if
(
null
==
this
.
workCompletedAttachmentUploadEvents
)
{
if
(
null
==
this
.
workCompletedAttachmentUploadEvents
)
{
this
.
workCompletedAttachmentUploadEvents
=
new
WorkCompletedExtensionEvents
();
this
.
workCompletedAttachmentUploadEvents
=
new
WorkCompletedExtensionEvents
();
...
@@ -650,6 +661,13 @@ public class ProcessPlatform extends ConfigObject {
...
@@ -650,6 +661,13 @@ public class ProcessPlatform extends ConfigObject {
return
workCompletedDocToWordEvents
;
return
workCompletedDocToWordEvents
;
}
}
public
WorkCompletedExtensionEvents
getWorkCompletedDocToOfdEvents
()
{
if
(
null
==
this
.
workCompletedDocToOfdEvents
)
{
this
.
workCompletedDocToOfdEvents
=
new
WorkCompletedExtensionEvents
();
}
return
workCompletedDocToOfdEvents
;
}
}
}
public
static
class
WorkExtensionEvents
extends
ArrayList
<
WorkExtensionEvent
>
{
public
static
class
WorkExtensionEvents
extends
ArrayList
<
WorkExtensionEvent
>
{
...
...
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/ActionDocToWordWorkOrWorkCompleted.java
浏览文件 @
0a10b173
...
@@ -74,9 +74,14 @@ class ActionDocToWordWorkOrWorkCompleted extends BaseAction {
...
@@ -74,9 +74,14 @@ class ActionDocToWordWorkOrWorkCompleted extends BaseAction {
private
byte
[]
workConvert
(
EffectivePerson
effectivePerson
,
Wi
wi
,
String
application
,
String
process
,
private
byte
[]
workConvert
(
EffectivePerson
effectivePerson
,
Wi
wi
,
String
application
,
String
process
,
String
activity
,
String
job
)
throws
Exception
{
String
activity
,
String
job
)
throws
Exception
{
byte
[]
bytes
=
null
;
byte
[]
bytes
=
null
;
Optional
<
WorkExtensionEvent
>
event
=
Config
.
processPlatform
().
getExtensionEvents
().
getWorkDocToWordEvents
()
Optional
<
WorkExtensionEvent
>
event
;
.
bind
(
application
,
process
,
activity
);
if
(
wi
.
getFileName
().
toLowerCase
().
endsWith
(
OFD_ATT_KEY
)){
event
=
Config
.
processPlatform
().
getExtensionEvents
().
getWorkDocToOfdEvents
()
.
bind
(
application
,
process
,
activity
);
}
else
{
event
=
Config
.
processPlatform
().
getExtensionEvents
().
getWorkDocToWordEvents
()
.
bind
(
application
,
process
,
activity
);
}
if
(
event
.
isPresent
())
{
if
(
event
.
isPresent
())
{
bytes
=
this
.
workExtensionService
(
effectivePerson
,
wi
.
getContent
(),
event
.
get
(),
job
);
bytes
=
this
.
workExtensionService
(
effectivePerson
,
wi
.
getContent
(),
event
.
get
(),
job
);
}
else
{
}
else
{
...
@@ -107,8 +112,14 @@ class ActionDocToWordWorkOrWorkCompleted extends BaseAction {
...
@@ -107,8 +112,14 @@ class ActionDocToWordWorkOrWorkCompleted extends BaseAction {
private
byte
[]
workCompletedConvert
(
EffectivePerson
effectivePerson
,
Wi
wi
,
String
application
,
String
process
,
String
job
)
private
byte
[]
workCompletedConvert
(
EffectivePerson
effectivePerson
,
Wi
wi
,
String
application
,
String
process
,
String
job
)
throws
Exception
{
throws
Exception
{
byte
[]
bytes
=
null
;
byte
[]
bytes
=
null
;
Optional
<
WorkCompletedExtensionEvent
>
event
=
Config
.
processPlatform
().
getExtensionEvents
()
Optional
<
WorkCompletedExtensionEvent
>
event
;
.
getWorkCompletedDocToWordEvents
().
bind
(
application
,
process
);
if
(
wi
.
getFileName
().
toLowerCase
().
endsWith
(
OFD_ATT_KEY
)){
event
=
Config
.
processPlatform
().
getExtensionEvents
()
.
getWorkCompletedDocToOfdEvents
().
bind
(
application
,
process
);
}
else
{
event
=
Config
.
processPlatform
().
getExtensionEvents
()
.
getWorkCompletedDocToWordEvents
().
bind
(
application
,
process
);
}
if
(
event
.
isPresent
())
{
if
(
event
.
isPresent
())
{
bytes
=
this
.
workCompletedExtensionService
(
effectivePerson
,
wi
.
getContent
(),
event
.
get
(),
job
);
bytes
=
this
.
workCompletedExtensionService
(
effectivePerson
,
wi
.
getContent
(),
event
.
get
(),
job
);
}
else
{
}
else
{
...
...
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/BaseAction.java
浏览文件 @
0a10b173
...
@@ -32,6 +32,8 @@ abstract class BaseAction extends StandardJaxrsAction {
...
@@ -32,6 +32,8 @@ abstract class BaseAction extends StandardJaxrsAction {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
BaseAction
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
BaseAction
.
class
);
protected
final
static
String
OFD_ATT_KEY
=
".ofd"
;
public
static
class
WiExtraParam
{
public
static
class
WiExtraParam
{
private
String
site
;
private
String
site
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录