Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
f8701edf
提交
f8701edf
authored
5月 28, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[文件 模版] 提交
上级
e8234d44
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
24 行增加
和
25 行删除
+24
-25
JavaToPdfHtmlFreeMarker.java
...om/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
+15
-16
bill.html
dev-union/src/main/resources/bill.html
+0
-0
bill1.html
dev-union/src/main/resources/bill1.html
+2
-2
bill2.html
dev-union/src/main/resources/bill2.html
+7
-7
没有找到文件。
dev-file/src/main/java/com/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
浏览文件 @
f8701edf
...
@@ -614,18 +614,18 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -614,18 +614,18 @@ public class JavaToPdfHtmlFreeMarker {
DocumentDevice
documentDevice
=
documentDevices
.
get
(
i
);
DocumentDevice
documentDevice
=
documentDevices
.
get
(
i
);
int
len
=
documentDevice
.
getDeviceSerialNumber
().
length
();
int
len
=
documentDevice
.
getDeviceSerialNumber
().
length
();
String
deviceSerialNumber
=
documentDevice
.
getDeviceSerialNumber
();
String
deviceSerialNumber
=
documentDevice
.
getDeviceSerialNumber
();
if
(
len
>
1568
){
if
(
len
>
784
){
int
page
=
0
;
int
page
=
0
;
int
remainder
=
len
%
1568
;
int
remainder
=
len
%
784
;
int
pageCount
=
(
remainder
>
0
)
?
len
/
1568
+
1
:
len
/
1568
;
int
pageCount
=
(
remainder
>
0
)
?
len
/
784
+
1
:
len
/
784
;
while
(
page
<
pageCount
-
1
)
{
while
(
page
<
pageCount
-
1
)
{
if
(
page
==
0
)
{
if
(
page
==
0
)
{
documentDevice
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
page
*
1568
,
(
page
+
1
)
*
1568
)));
documentDevice
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
page
*
784
,
(
page
+
1
)
*
784
)));
list
.
add
(
documentDevice
);
list
.
add
(
documentDevice
);
lists
.
add
(
list
);
lists
.
add
(
list
);
}
else
{
}
else
{
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
documentDevice1
.
setDeviceSerialNumber
(
toString
(
deviceSerialNumber
.
substring
(
page
*
1568
,
(
page
+
1
)
*
1568
)));
documentDevice1
.
setDeviceSerialNumber
(
toString
(
deviceSerialNumber
.
substring
(
page
*
784
,
(
page
+
1
)
*
784
)));
list
.
add
(
documentDevice1
);
list
.
add
(
documentDevice1
);
lists
.
add
(
list
);
lists
.
add
(
list
);
}
}
...
@@ -633,22 +633,22 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -633,22 +633,22 @@ public class JavaToPdfHtmlFreeMarker {
page
++;
page
++;
}
}
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
documentDevice1
.
setDeviceSerialNumber
(
toString
(
deviceSerialNumber
.
substring
((
pageCount
-
1
)*
1568
,
len
)));
documentDevice1
.
setDeviceSerialNumber
(
toString
(
deviceSerialNumber
.
substring
((
pageCount
-
1
)*
784
,
len
)));
list
.
add
(
documentDevice1
);
list
.
add
(
documentDevice1
);
count
.
set
(
len
-(
pageCount
-
1
)*
1568
);
count
.
set
(
len
-(
pageCount
-
1
)*
784
);
}
else
if
(
len
==
1568
){
}
else
if
(
len
==
784
){
list
.
add
(
documentDevice
);
list
.
add
(
documentDevice
);
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
}
}
else
{
else
{
int
totle
=
count
.
get
()+
29
+
len
;
int
totle
=
count
.
get
()+
len
;
if
(
totle
>
1568
){
if
(
totle
>
784
){
// if (len>56) {
// if (len>56) {
if
(
1568
-
count
.
get
()>
56
)
{
if
(
784
-
count
.
get
()>
56
)
{
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
documentDevice1
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
1568
-
count
.
get
(),
len
)));
documentDevice1
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
784
-
count
.
get
(),
len
)));
documentDevice
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
0
,
1568
-
count
.
get
())));
documentDevice
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
0
,
784
-
count
.
get
())));
list
.
add
(
documentDevice
);
list
.
add
(
documentDevice
);
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
...
@@ -671,7 +671,7 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -671,7 +671,7 @@ public class JavaToPdfHtmlFreeMarker {
count
.
set
(
totle
);
count
.
set
(
totle
);
}
}
}
}
if
(
list
.
size
()==
1
9
){
if
(
list
.
size
()==
1
4
){
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
count
.
set
(
0
);
count
.
set
(
0
);
...
@@ -730,7 +730,7 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -730,7 +730,7 @@ public class JavaToPdfHtmlFreeMarker {
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
}
else
{
}
else
{
int
totle
=
count
.
get
()+
29
+
len
;
int
totle
=
count
.
get
()+
len
;
if
(
totle
>
1568
){
if
(
totle
>
1568
){
if
(
1568
-
count
.
get
()>
56
)
{
if
(
1568
-
count
.
get
()>
56
)
{
WorkHandoverDevice
workHandoverDevice1
=
new
WorkHandoverDevice
();
WorkHandoverDevice
workHandoverDevice1
=
new
WorkHandoverDevice
();
...
@@ -789,7 +789,6 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -789,7 +789,6 @@ public class JavaToPdfHtmlFreeMarker {
}
else
{
}
else
{
return
str
;
return
str
;
}
}
}
}
}
}
dev-union/src/main/resources/bill.html
浏览文件 @
f8701edf
差异被折叠。
点击展开。
dev-union/src/main/resources/bill1.html
浏览文件 @
f8701edf
...
@@ -372,7 +372,7 @@
...
@@ -372,7 +372,7 @@
<tr>
<tr>
<th
width=
"70px"
>
序号
</th>
<th
width=
"70px"
>
序号
</th>
<th>
型号
</th>
<th>
型号
</th>
<th>
形态
</th>
<th>
部件
</th>
<th
width=
"50px"
>
密级
</th>
<th
width=
"50px"
>
密级
</th>
<th
width=
"120px"
>
应用领域
</th>
<th
width=
"120px"
>
应用领域
</th>
<th>
数量
</th>
<th>
数量
</th>
...
@@ -387,7 +387,7 @@
...
@@ -387,7 +387,7 @@
<!--</#if>-->
<!--</#if>-->
</td>
</td>
<td>
${dev.model!}
</td>
<td>
${dev.model!}
</td>
<td>
${dev.
category
!}
</td>
<td>
${dev.
parts
!}
</td>
<td>
${dev.securityClassification!}
</td>
<td>
${dev.securityClassification!}
</td>
<td>
${dev.applicationField!}
</td>
<td>
${dev.applicationField!}
</td>
<td>
<td>
...
...
dev-union/src/main/resources/bill2.html
浏览文件 @
f8701edf
...
@@ -186,7 +186,7 @@
...
@@ -186,7 +186,7 @@
<tr>
<tr>
<th
width=
"70px"
>
序号
</th>
<th
width=
"70px"
>
序号
</th>
<th
style=
"width: 150px;"
>
型号
</th>
<th
style=
"width: 150px;"
>
型号
</th>
<th>
形态
</th>
<th>
部件
</th>
<th
width=
"100px"
>
密级
</th>
<th
width=
"100px"
>
密级
</th>
<th
width=
"100px"
>
应用领域
</th>
<th
width=
"100px"
>
应用领域
</th>
<th>
装备序列号
</th>
<th>
装备序列号
</th>
...
@@ -197,12 +197,12 @@
...
@@ -197,12 +197,12 @@
<td>
<td>
${dev.code!}
${dev.code!}
</td>
</td>
<td>
${dev.model}
</td>
<td>
${dev.model
!
}
</td>
<td>
${dev.
category
}
</td>
<td>
${dev.
parts!
}
</td>
<td>
${dev.securityClassification}
</td>
<td>
${dev.securityClassification
!
}
</td>
<td>
${dev.applicationField}
</td>
<td>
${dev.applicationField
!
}
</td>
<td>
${dev.deviceSerialNumber}
</td>
<td>
${dev.deviceSerialNumber
!
}
</td>
<td>
${dev.proofreading}
</td>
<td>
${dev.proofreading
!
}
</td>
</tr>
</tr>
</
#
list>
</
#
list>
</table>
</table>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论