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
c6cde0ed
Commit
c6cde0ed
authored
Dec 16, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标题修改
parent
9d4515e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
performance/Performance.Api/Controllers/ReportController.cs
+3
-3
performance/Performance.Services/DownloadService.cs
+2
-2
No files found.
performance/Performance.Api/Controllers/ReportController.cs
View file @
c6cde0ed
...
@@ -333,7 +333,7 @@ public IActionResult AllComputeViewDownload([FromBody] BeginEndTimeDown request)
...
@@ -333,7 +333,7 @@ public IActionResult AllComputeViewDownload([FromBody] BeginEndTimeDown request)
if
(
null
==
list
)
if
(
null
==
list
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
filepath
=
downloadService
.
AllComputerViewReportByDate
(
request
.
HospitalId
,
list
,
"/report/wholehospital_grant"
,
"全院绩效发放"
,
bdate
,
edate
);
var
filepath
=
downloadService
.
AllComputerViewReportByDate
(
request
.
HospitalId
,
list
,
"/report/wholehospital_grant"
,
"全院绩效发放"
,
bdate
,
edate
.
AddMonths
(
1
)
);
var
memoryStream
=
new
MemoryStream
();
var
memoryStream
=
new
MemoryStream
();
using
(
var
stream
=
new
FileStream
(
filepath
,
FileMode
.
Open
))
using
(
var
stream
=
new
FileStream
(
filepath
,
FileMode
.
Open
))
...
@@ -402,7 +402,7 @@ public IActionResult GethosdataView([FromBody] BeginEndTimeDown request)
...
@@ -402,7 +402,7 @@ public IActionResult GethosdataView([FromBody] BeginEndTimeDown request)
if
(
null
==
list
)
if
(
null
==
list
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
filepath
=
downloadService
.
AllComputerViewReportByDate
(
request
.
HospitalId
,
list
,
"/report/wholehospital_accounting_grant"
,
"全院核算绩效发放"
,
bdate
,
edate
);
var
filepath
=
downloadService
.
AllComputerViewReportByDate
(
request
.
HospitalId
,
list
,
"/report/wholehospital_accounting_grant"
,
"全院核算绩效发放"
,
bdate
,
edate
.
AddMonths
(
1
)
);
var
memoryStream
=
new
MemoryStream
();
var
memoryStream
=
new
MemoryStream
();
using
(
var
stream
=
new
FileStream
(
filepath
,
FileMode
.
Open
))
using
(
var
stream
=
new
FileStream
(
filepath
,
FileMode
.
Open
))
...
@@ -471,7 +471,7 @@ public IActionResult AllComputeByPMViewDownLoad([FromBody] BeginEndTimeDown requ
...
@@ -471,7 +471,7 @@ public IActionResult AllComputeByPMViewDownLoad([FromBody] BeginEndTimeDown requ
if
(
null
==
list
)
if
(
null
==
list
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
filepath
=
downloadService
.
AllComputerViewReportByDate
(
request
.
HospitalId
,
list
,
"/report/wholehospital_finance_grant"
,
"财务全院绩效发放"
,
bdate
,
edate
);
var
filepath
=
downloadService
.
AllComputerViewReportByDate
(
request
.
HospitalId
,
list
,
"/report/wholehospital_finance_grant"
,
"财务全院绩效发放"
,
bdate
,
edate
.
AddMonths
(
1
)
);
var
memoryStream
=
new
MemoryStream
();
var
memoryStream
=
new
MemoryStream
();
using
(
var
stream
=
new
FileStream
(
filepath
,
FileMode
.
Open
))
using
(
var
stream
=
new
FileStream
(
filepath
,
FileMode
.
Open
))
...
...
performance/Performance.Services/DownloadService.cs
View file @
c6cde0ed
...
@@ -196,8 +196,8 @@ public string AllComputerViewReportByDate(int hospitalId, List<dynamic> dynamics
...
@@ -196,8 +196,8 @@ public string AllComputerViewReportByDate(int hospitalId, List<dynamic> dynamics
var
hospital
=
perforHospital
.
GetEntity
(
t
=>
t
.
ID
==
hospitalId
);
var
hospital
=
perforHospital
.
GetEntity
(
t
=>
t
.
ID
==
hospitalId
);
var
title
=
(
beginTime
.
AddMonths
(
1
).
Date
==
endTime
.
Date
)
var
title
=
(
beginTime
.
AddMonths
(
1
).
Date
==
endTime
.
Date
)
?
$"
{
beginTime
.
ToString
(
"yyyy年MM月"
)}
{
hospital
.
HosName
}
医院 ---
{
name
}
"
?
$"
{
beginTime
.
ToString
(
"yyyy年MM月"
)}{
hospital
.
HosName
}
医院 ---
{
name
}
"
:
$"
{
beginTime
.
ToString
(
"yyyy年MM月"
)}
至
{
endTime
.
ToString
(
"yyyy年MM月"
)}
{
hospital
.
HosName
}
医院 ---
{
name
}
"
;
:
$"
{
beginTime
.
ToString
(
"yyyy年MM月"
)}
至
{
endTime
.
ToString
(
"yyyy年MM月"
)}{
hospital
.
HosName
}
医院 ---
{
name
}
"
;
return
AllComputerDown
(
hospital
,
dynamics
,
route
,
title
,
name
);
return
AllComputerDown
(
hospital
,
dynamics
,
route
,
title
,
name
);
}
}
public
string
AllComputerDown
(
sys_hospital
hospital
,
List
<
dynamic
>
dynamics
,
string
route
,
string
title
,
string
name
)
public
string
AllComputerDown
(
sys_hospital
hospital
,
List
<
dynamic
>
dynamics
,
string
route
,
string
title
,
string
name
)
...
...
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