Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
23ad3487
提交
23ad3487
authored
10月 25, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(工作交接): 修改交接单各个字段的长度限制
修改交接单各个字段的长度限制
上级
92c92148
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
JavaToPdfHtmlFreeMarker.java
...om/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
+12
-12
bill13.html
dev-union/src/main/resources/htmlTemplate/bill13.html
+2
-2
没有找到文件。
dev-file/src/main/java/com/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
浏览文件 @
23ad3487
...
...
@@ -2098,9 +2098,9 @@ public class JavaToPdfHtmlFreeMarker {
if
(
i
+
max
==
15
){
String
s
=
String
.
join
(
""
,
toListString
(
documentDevice
.
getDeviceSerialNumber
(),
56
));
documentDevice
.
setOneCount
(
max
);
documentDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getModel
(),
1
3
)));
documentDevice
.
setParts
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getParts
(),
1
3
)));
documentDevice
.
setRemark
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getRemark
(),
1
2
)));
documentDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getModel
(),
1
7
)));
documentDevice
.
setParts
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getParts
(),
1
7
)));
documentDevice
.
setRemark
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getRemark
(),
1
5
)));
documentDevice
.
setDeviceSerialNumber
(
s
);
code
++;
documentDevice
.
setCode
(
code
);
...
...
@@ -2111,10 +2111,10 @@ public class JavaToPdfHtmlFreeMarker {
}
else
if
(
i
+
max
>
15
){
//当前页面少了多少行
int
differ
=
15
-
i
;
List
<
String
>
modelList
=
toListString
(
documentDevice
.
getModel
(),
1
3
);
List
<
String
>
modelList
=
toListString
(
documentDevice
.
getModel
(),
1
7
);
List
<
String
>
seqList
=
toListString
(
documentDevice
.
getDeviceSerialNumber
(),
56
);
List
<
String
>
pasList
=
toListString
(
documentDevice
.
getParts
(),
1
3
);
List
<
String
>
remarkList
=
toListString
(
documentDevice
.
getRemark
(),
1
2
);
List
<
String
>
pasList
=
toListString
(
documentDevice
.
getParts
(),
1
7
);
List
<
String
>
remarkList
=
toListString
(
documentDevice
.
getRemark
(),
1
5
);
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
if
(
modelList
.
size
()>
differ
){
documentDevice
.
setModel
(
String
.
join
(
""
,
modelList
.
subList
(
0
,
differ
)));
...
...
@@ -2157,9 +2157,9 @@ public class JavaToPdfHtmlFreeMarker {
}
else
{
String
s
=
String
.
join
(
""
,
toListString
(
documentDevice
.
getDeviceSerialNumber
(),
56
));
code
++;
documentDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getModel
(),
1
3
)));
documentDevice
.
setParts
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getParts
(),
1
3
)));
documentDevice
.
setRemark
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getRemark
(),
1
2
)));
documentDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getModel
(),
1
7
)));
documentDevice
.
setParts
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getParts
(),
1
7
)));
documentDevice
.
setRemark
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getRemark
(),
1
5
)));
documentDevice
.
setCode
(
code
);
documentDevice
.
setOneCount
(
max
);
documentDevice
.
setDeviceSerialNumber
(
s
);
...
...
@@ -2179,10 +2179,10 @@ public class JavaToPdfHtmlFreeMarker {
int
deviceSerialNumberCount
=
String_length
(
documentDevice
.
getDeviceSerialNumber
());
int
modelCount
=
String_length
(
documentDevice
.
getModel
());
int
remarkCount
=
String_length
(
documentDevice
.
getRemark
());
int
parts
=
(
partsCount
%
1
3
>
0
)
?
partsCount
/
13
+
1
:
partsCount
/
13
;
int
parts
=
(
partsCount
%
1
7
>
0
)
?
partsCount
/
17
+
1
:
partsCount
/
17
;
int
deviceSerialNumber
=(
deviceSerialNumberCount
%
56
>
0
)
?
deviceSerialNumberCount
/
56
+
1
:
deviceSerialNumberCount
/
56
;
int
model
=(
modelCount
%
1
3
>
0
)
?
modelCount
/
13
+
1
:
modelCount
/
13
;
int
remark
=(
remarkCount
%
1
2
>
0
)
?
remarkCount
/
12
+
1
:
remarkCount
/
12
;
int
model
=(
modelCount
%
1
7
>
0
)
?
modelCount
/
17
+
1
:
modelCount
/
17
;
int
remark
=(
remarkCount
%
1
5
>
0
)
?
remarkCount
/
15
+
1
:
remarkCount
/
15
;
int
max
=
parts
;
//求最大
if
(
max
<
deviceSerialNumber
){
...
...
dev-union/src/main/resources/htmlTemplate/bill13.html
浏览文件 @
23ad3487
...
...
@@ -429,7 +429,7 @@
<th
width=
"150px"
>
型号
</th>
<th
width=
"150px"
>
名称
</th>
<th
width=
"80px"
>
数量
</th>
<th
>
装备序列号
</th>
<th
width=
"420px"
>
装备序列号
</th>
<th
width=
"160px"
>
备注
</th>
</tr>
...
...
@@ -490,7 +490,7 @@
<th
width=
"150px"
></th>
<th
width=
"150px"
></th>
<th
width=
"80px"
></th>
<th
></th>
<th
width=
"420px"
></th>
<th
width=
"160px"
></th>
</tr>
<tr
class=
"altrowstableTr"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论