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
f7df1761
Commit
f7df1761
authored
Aug 27, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载模板文件
parent
e944b8f7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
8 deletions
+22
-8
performance/Performance.Api/Controllers/TemplateController.cs
+15
-5
performance/Performance.Api/Performance.Api.csproj
+4
-0
performance/Performance.Api/Template/医院绩效模板(无执行科室).xlsx
+0
-0
performance/Performance.Api/wwwroot/Performance.Api.xml
+1
-1
performance/Performance.Services/AllotCompute/ImportDataService.cs
+1
-1
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadBillIncome.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/TemplateController.cs
View file @
f7df1761
...
...
@@ -58,7 +58,7 @@ public class TemplateController : Controller
}
/// <summary>
/// 从WebAPI下载模板
/// 从WebAPI下载模板
1、医院绩效模板 2、医院二次分配绩效模板 3、医院绩效模板(无执行科室)
/// </summary>
/// <returns></returns>
[
Route
(
"downtemplate"
)]
...
...
@@ -66,9 +66,19 @@ public class TemplateController : Controller
[
AllowAnonymous
]
public
IActionResult
DownFile
(
int
type
=
1
)
{
string
path
=
(
type
==
1
)
?
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"医院绩效模板.xlsx"
)
:
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"医院二次分配绩效模板.xlsx"
);
string
path
=
""
;
switch
(
type
)
{
case
1
:
path
=
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"医院绩效模板.xlsx"
);
break
;
case
2
:
path
=
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"医院二次分配绩效模板.xlsx"
);
break
;
case
3
:
path
=
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"医院绩效模板(无执行科室).xlsx"
);
break
;
}
var
memoryStream
=
new
MemoryStream
();
using
(
var
stream
=
new
FileStream
(
path
,
FileMode
.
Open
))
...
...
@@ -343,7 +353,7 @@ public ApiResponse SaveFile([FromForm] IFormCollection form, int allotId, int ho
{
logger
.
LogInformation
(
$"保存提取文件异常
{
ex
.
ToString
()}
"
);
LogHelper
.
Error
(
$"保存失败:"
+
ex
.
ToString
(),
"保存提取文件"
);
return
new
ApiResponse
(
ResponseType
.
Error
,
ex
.
Message
);
return
new
ApiResponse
(
ResponseType
.
Error
,
ex
.
Message
);
}
}
}
...
...
performance/Performance.Api/Performance.Api.csproj
View file @
f7df1761
...
...
@@ -27,6 +27,10 @@
</ItemGroup>
<ItemGroup>
<None Remove="Template\~%24医院绩效模板.xlsx" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="8.0.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />
<PackageReference Include="CSRedisCore" Version="3.0.45" />
...
...
performance/Performance.Api/Template/
开单医院绩效模板
.xlsx
→
performance/Performance.Api/Template/
医院绩效模板(无执行科室)
.xlsx
View file @
f7df1761
No preview for this file type
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
f7df1761
...
...
@@ -690,7 +690,7 @@
</member>
<member
name=
"M:Performance.Api.Controllers.TemplateController.DownFile(System.Int32)"
>
<summary>
从WebAPI下载模板
从WebAPI下载模板
1、医院绩效模板 2、医院二次分配绩效模板 3、医院绩效模板(无执行科室)
</summary>
<returns></returns>
</member>
...
...
performance/Performance.Services/AllotCompute/ImportDataService.cs
View file @
f7df1761
...
...
@@ -98,7 +98,7 @@ private PerExcel Import(per_allot allot)
}
else
{
if
(
sheet
.
SheetName
.
Contains
(
"
开单医院
"
))
if
(
sheet
.
SheetName
.
Contains
(
"
无执行科室
"
))
isnew
=
true
;
}
}
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadBillIncome.cs
View file @
f7df1761
...
...
@@ -9,7 +9,7 @@
namespace
Performance.Services
{
/// <summary>
///
开单
医院收入
///
无执行科室
医院收入
/// </summary>
public
class
PerSheetDataReadBillIncome
:
IPerSheetDataRead
{
...
...
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