Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
85f0a102
Commit
85f0a102
authored
Jul 15, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交接班pdf样式
parent
fdbbbbc7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
40 deletions
+5
-40
PdfUtils.java
...java/com/yeejoin/amos/boot/biz/common/utils/PdfUtils.java
+5
-40
ShiftChangeServiceImpl.java
...t/module/jcs/biz/service/impl/ShiftChangeServiceImpl.java
+0
-0
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/PdfUtils.java
View file @
85f0a102
...
...
@@ -27,17 +27,7 @@ public class PdfUtils {
return
document
;
}
/**
*
* @param value 单元格数据
* @param font 单元格样式
* @param align 位置
* @param colspan 占几列
* @param row 占几行
* @param size 高度
* @return
*/
public
static
PdfPCell
createCell
(
Object
value
,
Font
font
,
int
align
,
int
colspan
,
int
row
,
int
size
){
public
static
PdfPCell
createCell
(
Object
value
,
Font
font
,
int
align
,
int
colspan
,
int
row
,
int
size
,
int
top
,
int
right
,
int
bottom
,
int
left
){
String
cellValue
;
if
(
value
==
null
)
{
cellValue
=
""
;
...
...
@@ -53,35 +43,10 @@ public class PdfUtils {
if
(
row
!=
1
)
{
cell
.
setRowspan
(
row
);
}
return
cell
;
}
public
static
PdfPCell
createCell
(
Object
value
,
Font
font
,
int
align
,
int
colspan
,
int
row
,
int
size
,
boolean
flag
){
String
cellValue
;
if
(
value
==
null
)
{
cellValue
=
""
;
}
else
{
cellValue
=
value
.
toString
();
}
PdfPCell
cell
=
new
PdfPCell
();
cell
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cell
.
setHorizontalAlignment
(
align
);
cell
.
setColspan
(
colspan
);
cell
.
setPhrase
(
new
Phrase
(
cellValue
,
font
));
cell
.
setFixedHeight
(
size
);
if
(
row
!=
1
)
{
cell
.
setRowspan
(
row
);
}
if
(
flag
)
{
cell
.
setBorderWidthLeft
(
0
);
cell
.
setBorderWidthTop
(
0
);
cell
.
setBorderWidthBottom
(
0
);
}
else
{
cell
.
setBorderWidthLeft
(
0
);
cell
.
setBorderWidthRight
(
0
);
cell
.
setBorderWidthTop
(
0
);
cell
.
setBorderWidthBottom
(
0
);
}
cell
.
setBorderWidthLeft
(
left
);
cell
.
setBorderWidthRight
(
right
);
cell
.
setBorderWidthTop
(
top
);
cell
.
setBorderWidthBottom
(
bottom
);
return
cell
;
}
public
static
PdfPCell
createCell
(
Image
image
,
int
align
,
int
colspan
){
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ShiftChangeServiceImpl.java
View file @
85f0a102
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment