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
47103830
Commit
47103830
authored
Oct 14, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发放表名字修改
parent
76217558
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
performance/Performance.Services/DownloadService.cs
+4
-4
No files found.
performance/Performance.Services/DownloadService.cs
View file @
47103830
...
...
@@ -54,7 +54,7 @@ public class DownloadService : IAutoInjection
/// <param name="allData"></param>
/// <param name="isAll"></param>
/// <returns></returns>
public
string
AllComputerReport
(
int
allotId
,
List
<
ComputeResponse
>
allData
,
bool
isAll
)
public
string
AllComputerReport
(
int
allotId
,
List
<
ComputeResponse
>
allData
,
bool
isAll
,
string
name
)
{
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
var
hospital
=
perforHospital
.
GetEntity
(
t
=>
t
.
ID
==
allot
.
HospitalId
);
...
...
@@ -81,7 +81,7 @@ public string AllComputerReport(int allotId, List<ComputeResponse> allData, bool
var
dpath
=
Path
.
Combine
(
evn
.
ContentRootPath
,
"Files"
,
"PerformanceRelease"
,
$"
{
allot
.
HospitalId
}
"
);
FileHelper
.
CreateDirectory
(
dpath
);
string
fileName
=
$"
{
hospital
.
HosName
}
-
全院绩效发放
-
{
DateTime
.
Now
:
yyyy
年
MM
月
dd
日
}
"
;
string
fileName
=
$"
{
hospital
.
HosName
}
-
{
name
}
-
{
DateTime
.
Now
:
yyyy
年
MM
月
dd
日
}
"
;
string
filepath
=
Path
.
Combine
(
dpath
,
fileName
);
FileStream
stream
=
new
FileStream
(
filepath
,
FileMode
.
Create
);
try
...
...
@@ -93,7 +93,7 @@ public string AllComputerReport(int allotId, List<ComputeResponse> allData, bool
style
.
BorderBottom
=
BorderStyle
.
Thin
;
style
.
BorderRight
=
BorderStyle
.
Thin
;
ISheet
sheet
=
workbook
.
CreateSheet
(
"全院绩效发放
"
);
ISheet
sheet
=
workbook
.
CreateSheet
(
$"
{
name
}
"
);
sheet
.
ForceFormulaRecalculation
=
true
;
ICellStyle
cellStyle
=
workbook
.
CreateCellStyle
();
cellStyle
.
DataFormat
=
HSSFDataFormat
.
GetBuiltinFormat
(
"0.00"
);
...
...
@@ -228,7 +228,7 @@ public string DeptReport(int allotId, List<DeptResponse> deptData)
FileStream
stream
=
new
FileStream
(
filepath
,
FileMode
.
Create
);
try
{
XSSFWorkbook
workbook
=
new
H
SSFWorkbook
();
XSSFWorkbook
workbook
=
new
X
SSFWorkbook
();
//设置单元格样式
ICellStyle
style
=
workbook
.
CreateCellStyle
();
style
.
Alignment
=
HorizontalAlignment
.
Center
;
...
...
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