Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
6d9665a9
Commit
6d9665a9
authored
Jul 08, 2019
by
Eddie.Wu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_wzk_period1' into 'dev_mysql'
生成税金计算表时根据税金项目的长度动态设置行高 See merge request root/atms!444
parents
50c786df
cbcf1dfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+10
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
6d9665a9
...
@@ -913,6 +913,16 @@ public class ReportServiceImpl extends BaseService {
...
@@ -913,6 +913,16 @@ public class ReportServiceImpl extends BaseService {
sumMap
.
get
(
TaxesCalculateReportEnum
.
Column
.
Column_11
.
getIndex
()).
add
(
transNumber
(
TaxesCalculateReportEnum
.
Column
.
Column_11
.
getIndex
()
+
1
,
""
)
+
rowIndex
);
sumMap
.
get
(
TaxesCalculateReportEnum
.
Column
.
Column_11
.
getIndex
()).
add
(
transNumber
(
TaxesCalculateReportEnum
.
Column
.
Column_11
.
getIndex
()
+
1
,
""
)
+
rowIndex
);
}
}
//根据税金项目的长度动态设置行高,不能放在上面那个循环里面,否则只会改变第一行高度
for
(
int
i
=
1
;
i
<
rowIndex
;
i
++){
Row
rowTemp
=
sheet
.
getRow
(
i
);
//首先计算税金项目的字节宽度和单元格本身高度做除法计算比较大小,超出单元格宽度则要加大高度
int
configNameWidth
=
dataList
.
get
(
rowIndex
-
i
-
1
).
getName
().
getBytes
().
length
*
256
;
int
columnWidth
=
sheet
.
getColumnWidth
(
rowTemp
.
getCell
(
TaxesCalculateReportEnum
.
Column
.
Column_2
.
getIndex
()).
getColumnIndex
());
rowTemp
.
setHeight
((
short
)
(
rowTemp
.
getHeight
()*(
configNameWidth
/
columnWidth
+
1
)));
}
//组装合计项数据
//组装合计项数据
assembleSumRow
(
sheet
.
getRow
(
rowIndex
),
sumMap
);
assembleSumRow
(
sheet
.
getRow
(
rowIndex
),
sumMap
);
}
}
...
...
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