Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
1d203b9e
Commit
1d203b9e
authored
Dec 16, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/绩效发放' of
http://192.168.18.110:8880/zry/performance
into feature/绩效发放
parents
940f8c42
8fbf0bf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
performance/Performance.Services/DownloadService.cs
+8
-2
No files found.
performance/Performance.Services/DownloadService.cs
View file @
1d203b9e
...
@@ -233,7 +233,7 @@ public string AllComputerDown(sys_hospital hospital, List<dynamic> dynamics, str
...
@@ -233,7 +233,7 @@ public string AllComputerDown(sys_hospital hospital, List<dynamic> dynamics, str
if
(
col
==
0
)
if
(
col
==
0
)
worksheet
.
SetValue
(
dynamics
.
Count
()
+
2
,
col
+
1
,
"合计"
);
worksheet
.
SetValue
(
dynamics
.
Count
()
+
2
,
col
+
1
,
"合计"
);
else
if
(!
notSum
.
Contains
(
headList
[
col
].
Name
.
ToLower
()))
else
if
(!
notSum
.
Contains
(
headList
[
col
].
Name
.
ToLower
()))
worksheet
.
Cells
[
dynamics
.
Count
()
+
2
,
col
+
1
].
Formula
=
string
.
Format
(
"SUM({0})"
,
new
ExcelAddress
(
2
,
col
+
1
,
dynamics
.
Count
()
+
1
,
col
+
1
).
Address
);
worksheet
.
Cells
[
dynamics
.
Count
()
+
3
,
col
+
1
].
Formula
=
string
.
Format
(
"SUM({0})"
,
new
ExcelAddress
(
3
,
col
+
1
,
dynamics
.
Count
()
+
2
,
col
+
1
).
Address
);
}
}
#
region
样式设置
#
region
样式设置
...
@@ -242,7 +242,9 @@ public string AllComputerDown(sys_hospital hospital, List<dynamic> dynamics, str
...
@@ -242,7 +242,9 @@ public string AllComputerDown(sys_hospital hospital, List<dynamic> dynamics, str
worksheet
.
Row
(
row
).
Height
=
20
;
worksheet
.
Row
(
row
).
Height
=
20
;
for
(
int
col
=
worksheet
.
Dimension
.
Start
.
Column
;
col
<=
worksheet
.
Dimension
.
End
.
Column
;
col
++)
for
(
int
col
=
worksheet
.
Dimension
.
Start
.
Column
;
col
<=
worksheet
.
Dimension
.
End
.
Column
;
col
++)
{
{
worksheet
.
Cells
[
row
,
col
].
Style
.
Numberformat
.
Format
=
"#,##0.00"
;
if
(!
notSum
.
Contains
(
headList
[
col
].
Name
.
ToLower
()))
worksheet
.
Cells
[
row
,
col
].
Style
.
Numberformat
.
Format
=
"#,##0.00"
;
worksheet
.
Cells
[
row
,
col
].
Style
.
Border
.
BorderAround
(
ExcelBorderStyle
.
Thin
);
worksheet
.
Cells
[
row
,
col
].
Style
.
Border
.
BorderAround
(
ExcelBorderStyle
.
Thin
);
worksheet
.
Cells
[
row
,
col
].
Style
.
VerticalAlignment
=
ExcelVerticalAlignment
.
Center
;
worksheet
.
Cells
[
row
,
col
].
Style
.
VerticalAlignment
=
ExcelVerticalAlignment
.
Center
;
}
}
...
@@ -256,6 +258,10 @@ public string AllComputerDown(sys_hospital hospital, List<dynamic> dynamics, str
...
@@ -256,6 +258,10 @@ public string AllComputerDown(sys_hospital hospital, List<dynamic> dynamics, str
worksheet
.
Cells
[
2
,
1
,
2
,
headList
.
Count
].
Style
.
Font
.
Bold
=
true
;
worksheet
.
Cells
[
2
,
1
,
2
,
headList
.
Count
].
Style
.
Font
.
Bold
=
true
;
worksheet
.
View
.
FreezePanes
(
3
,
1
);
worksheet
.
View
.
FreezePanes
(
3
,
1
);
worksheet
.
Cells
.
AutoFitColumns
();
worksheet
.
Cells
.
AutoFitColumns
();
for
(
int
col
=
worksheet
.
Dimension
.
Start
.
Column
;
col
<=
worksheet
.
Dimension
.
End
.
Column
;
col
++)
{
worksheet
.
Column
(
col
).
Width
=
worksheet
.
Column
(
col
).
Width
>
20
?
20
:
worksheet
.
Column
(
col
).
Width
;
}
#
endregion
#
endregion
}
}
package
.
Save
();
package
.
Save
();
...
...
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