Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
2452d378
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,发现更多精彩内容 >>
提交
2452d378
编写于
3月 01, 2022
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
流程文档签批1
上级
26c6e052
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
269 addition
and
8 deletion
+269
-8
o2server/pom.xml
o2server/pom.xml
+2
-2
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/ActionHtmlToImage.java
.../assemble/surface/jaxrs/attachment/ActionHtmlToImage.java
+2
-5
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/PersistenceProperties.java
.../x/processplatform/core/entity/PersistenceProperties.java
+5
-1
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/DocSign.java
...va/com/x/processplatform/core/entity/content/DocSign.java
+227
-0
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/DocSignProperties.java
...rocessplatform/core/entity/content/DocSignProperties.java
+33
-0
未找到文件。
o2server/pom.xml
浏览文件 @
2452d378
...
...
@@ -1059,7 +1059,7 @@
<dependency>
<groupId>
com.microsoft.playwright
</groupId>
<artifactId>
playwright
</artifactId>
<version>
1.1
0.0
</version>
<version>
1.1
7.1
</version>
</dependency>
<dependency>
<groupId>
javax.cache
</groupId>
...
...
@@ -1102,4 +1102,4 @@
<url>
http://maven.o2oa.net/repository/o2oa-release/
</url>
</repository>
</distributionManagement>
</project>
\ No newline at end of file
</project>
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/ActionHtmlToImage.java
浏览文件 @
2452d378
...
...
@@ -240,14 +240,11 @@ class ActionHtmlToImage extends BaseAction {
try
(
Browser
browser
=
browserType
.
launch
(
options
))
{
BrowserContext
context
=
browser
.
newContext
();
Page
page
=
context
.
newPage
();
page
.
navigate
(
"file:///Users/chengjian/dev/tmp/html2Image.html"
);
//page.setContent("<html><body>测试一下</body></html>");
//Thread.sleep(1000);
page
.
navigate
(
"file:///Users/chengjian/dev/temp/test.html"
);
Page
.
ScreenshotOptions
screenshotOptions
=
new
Page
.
ScreenshotOptions
();
screenshotOptions
.
setFullPage
(
true
);
screenshotOptions
.
setQuality
(
80
);
//screenshotOptions.setQuality(2);
screenshotOptions
.
setPath
(
Paths
.
get
(
"/Users/chengjian/dev/t
mp/screenshot-"
+
browserType
.
name
()
+
".jp
g"
));
screenshotOptions
.
setPath
(
Paths
.
get
(
"/Users/chengjian/dev/t
emp/screenshot-"
+
browserType
.
name
()
+
".pn
g"
));
page
.
screenshot
(
screenshotOptions
);
break
;
}
catch
(
Exception
e
)
{
...
...
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/PersistenceProperties.java
浏览文件 @
2452d378
...
...
@@ -17,6 +17,10 @@ public final class PersistenceProperties extends AbstractPersistenceProperties {
public
static
final
String
table
=
"PP_C_DRAFT"
;
}
public
static
class
DocSign
{
public
static
final
String
table
=
"PP_C_DOC_SIGN"
;
}
public
static
class
TaskCompleted
{
public
static
final
String
table
=
"PP_C_TASKCOMPLETED"
;
}
...
...
@@ -237,4 +241,4 @@ public final class PersistenceProperties extends AbstractPersistenceProperties {
public
static
final
String
table
=
"PP_T_SERVICEVALUE"
;
}
}
}
\ No newline at end of file
}
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/DocSign.java
0 → 100644
浏览文件 @
2452d378
package
com.x.processplatform.core.entity.content
;
import
com.x.base.core.entity.JpaObject
;
import
com.x.base.core.entity.SliceJpaObject
;
import
com.x.base.core.entity.annotation.CheckPersist
;
import
com.x.base.core.entity.annotation.ContainerEntity
;
import
com.x.base.core.project.annotation.FieldDescribe
;
import
com.x.base.core.project.tools.StringTools
;
import
com.x.processplatform.core.entity.PersistenceProperties
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.openjpa.persistence.Persistent
;
import
org.apache.openjpa.persistence.jdbc.Index
;
import
org.apache.openjpa.persistence.jdbc.Strategy
;
import
javax.persistence.*
;
import
java.util.Date
;
@Entity
@ContainerEntity
(
dumpSize
=
5
,
type
=
ContainerEntity
.
Type
.
content
,
reference
=
ContainerEntity
.
Reference
.
strong
)
@Table
(
name
=
PersistenceProperties
.
Content
.
DocSign
.
table
,
uniqueConstraints
=
{
@UniqueConstraint
(
name
=
PersistenceProperties
.
Content
.
DocSign
.
table
+
JpaObject
.
IndexNameMiddle
+
JpaObject
.
DefaultUniqueConstraintSuffix
,
columnNames
=
{
JpaObject
.
IDCOLUMN
,
JpaObject
.
CREATETIMECOLUMN
,
JpaObject
.
UPDATETIMECOLUMN
,
JpaObject
.
SEQUENCECOLUMN
})
})
@Inheritance
(
strategy
=
InheritanceType
.
TABLE_PER_CLASS
)
public
class
DocSign
extends
SliceJpaObject
{
private
static
final
long
serialVersionUID
=
-
6321354875403866277L
;
private
static
final
String
TABLE
=
PersistenceProperties
.
Content
.
DocSign
.
table
;
@Override
public
String
getId
()
{
return
id
;
}
@Override
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
@FieldDescribe
(
"数据库主键,自动生成."
)
@Id
@Column
(
length
=
length_id
,
name
=
ColumnNamePrefix
+
id_FIELDNAME
)
private
String
id
=
createId
();
@Override
public
void
onPersist
()
throws
Exception
{
if
(
StringTools
.
utf8Length
(
this
.
getProperties
().
getTitle
())
>
length_255B
)
{
this
.
title
=
StringTools
.
utf8SubString
(
this
.
getProperties
().
getTitle
(),
length_255B
-
3
)
+
"..."
;
}
}
@PostLoad
public
void
postLoad
()
{
if
((
null
!=
this
.
properties
)
&&
StringUtils
.
isNotEmpty
(
this
.
getProperties
().
getTitle
()))
{
this
.
title
=
this
.
getProperties
().
getTitle
();
}
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
this
.
getProperties
().
setTitle
(
title
);
}
public
String
getTitle
()
{
if
((
null
!=
this
.
properties
)
&&
StringUtils
.
isNotEmpty
(
this
.
properties
.
getTitle
()))
{
return
this
.
properties
.
getTitle
();
}
else
{
return
this
.
title
;
}
}
public
DocSign
()
{
// nothing
}
public
DocSignProperties
getProperties
()
{
if
(
null
==
this
.
properties
)
{
this
.
properties
=
new
DocSignProperties
();
}
return
this
.
properties
;
}
public
void
setProperties
(
DocSignProperties
properties
)
{
this
.
properties
=
properties
;
}
public
static
final
String
title_FIELDNAME
=
"title"
;
@FieldDescribe
(
"标题."
)
@Column
(
length
=
length_255B
,
name
=
ColumnNamePrefix
+
title_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
title_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
String
title
;
public
static
final
String
application_FIELDNAME
=
"application"
;
@FieldDescribe
(
"应用."
)
@Column
(
length
=
JpaObject
.
length_id
,
name
=
ColumnNamePrefix
+
application_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
application_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
false
)
private
String
application
;
public
static
final
String
process_FIELDNAME
=
"process"
;
@FieldDescribe
(
"流程ID."
)
@Column
(
length
=
JpaObject
.
length_id
,
name
=
ColumnNamePrefix
+
process_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
process_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
false
)
private
String
process
;
public
static
final
String
job_FIELDNAME
=
"job"
;
@FieldDescribe
(
"任务."
)
@Column
(
length
=
JpaObject
.
length_id
,
name
=
ColumnNamePrefix
+
job_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
job_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
false
)
private
String
job
;
public
static
final
String
work_FIELDNAME
=
"work"
;
@FieldDescribe
(
"工作ID."
)
@Column
(
length
=
JpaObject
.
length_id
,
name
=
ColumnNamePrefix
+
work_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
work_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
false
)
private
String
work
;
public
static
final
String
activity_FIELDNAME
=
"activity"
;
@FieldDescribe
(
"活动ID."
)
@Column
(
length
=
JpaObject
.
length_id
,
name
=
ColumnNamePrefix
+
activity_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
activity_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
false
)
private
String
activity
;
public
static
final
String
activityName_FIELDNAME
=
"activityName"
;
@FieldDescribe
(
"活动名称."
)
@Column
(
length
=
length_255B
,
name
=
ColumnNamePrefix
+
activityName_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
activityName_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
String
activityName
;
public
static
final
String
person_FIELDNAME
=
"person"
;
@FieldDescribe
(
"当前处理人"
)
@Column
(
length
=
length_255B
,
name
=
ColumnNamePrefix
+
person_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
person_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
false
)
private
String
person
;
public
static
final
String
commitTime_FIELDNAME
=
"commitTime"
;
@Temporal
(
TemporalType
.
TIME
)
@FieldDescribe
(
"提交时间."
)
@Column
(
name
=
ColumnNamePrefix
+
commitTime_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
commitTime_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
Date
commitTime
;
public
static
final
String
properties_FIELDNAME
=
"properties"
;
@FieldDescribe
(
"属性对象存储字段."
)
@Persistent
@Strategy
(
JsonPropertiesValueHandler
)
@Column
(
length
=
JpaObject
.
length_20M
,
name
=
ColumnNamePrefix
+
properties_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
DocSignProperties
properties
;
public
String
getProcess
()
{
return
process
;
}
public
void
setProcess
(
String
process
)
{
this
.
process
=
process
;
}
public
String
getApplication
()
{
return
application
;
}
public
void
setApplication
(
String
application
)
{
this
.
application
=
application
;
}
public
String
getPerson
()
{
return
person
;
}
public
void
setPerson
(
String
person
)
{
this
.
person
=
person
;
}
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
public
String
getJob
()
{
return
job
;
}
public
void
setJob
(
String
job
)
{
this
.
job
=
job
;
}
public
String
getWork
()
{
return
work
;
}
public
void
setWork
(
String
work
)
{
this
.
work
=
work
;
}
public
String
getActivity
()
{
return
activity
;
}
public
void
setActivity
(
String
activity
)
{
this
.
activity
=
activity
;
}
public
String
getActivityName
()
{
return
activityName
;
}
public
void
setActivityName
(
String
activityName
)
{
this
.
activityName
=
activityName
;
}
public
Date
getCommitTime
()
{
return
commitTime
;
}
public
void
setCommitTime
(
Date
commitTime
)
{
this
.
commitTime
=
commitTime
;
}
}
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/DocSignProperties.java
0 → 100644
浏览文件 @
2452d378
package
com.x.processplatform.core.entity.content
;
import
com.x.base.core.entity.JsonProperties
;
/**
* 文件签批扩展信息
* @author sword
*/
public
class
DocSignProperties
extends
JsonProperties
{
private
Data
data
=
new
Data
();
private
String
title
;
public
Data
getData
()
{
return
data
;
}
public
void
setData
(
Data
data
)
{
this
.
data
=
data
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录