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
d2b1f625
Commit
d2b1f625
authored
Mar 08, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加数据导入模板
parent
551d51f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
performance/Performance.Api/Controllers/TemplateController.cs
+9
-1
performance/Performance.Api/Performance.Api.csproj
+3
-0
performance/Performance.Api/Template/导入数据模板.xlsx
+0
-0
No files found.
performance/Performance.Api/Controllers/TemplateController.cs
View file @
d2b1f625
...
@@ -97,6 +97,10 @@ public IActionResult DownFile(int type = 1)
...
@@ -97,6 +97,10 @@ public IActionResult DownFile(int type = 1)
case
5
:
case
5
:
path
=
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"工作量数据导入模板.xlsx"
);
path
=
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"工作量数据导入模板.xlsx"
);
break
;
break
;
case
6
:
path
=
Path
.
Combine
(
env
.
ContentRootPath
,
"Template"
,
"导入数据模板.xlsx"
);
break
;
}
}
var
memoryStream
=
new
MemoryStream
();
var
memoryStream
=
new
MemoryStream
();
...
@@ -181,7 +185,11 @@ public ApiResponse Prejudge([FromRoute] int allotId)
...
@@ -181,7 +185,11 @@ public ApiResponse Prejudge([FromRoute] int allotId)
var
data
=
configService
.
CheckHasNewDepartmentOrCategory
(
allotId
);
var
data
=
configService
.
CheckHasNewDepartmentOrCategory
(
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
haserror
=
(
data
!=
null
&&
data
.
Any
()),
data
});
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
haserror
=
(
data
!=
null
&&
data
.
Any
()),
data
});
}
}
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
haserror
=
true
,
data
=
new
Dictionary
<
string
,
string
>
{
{
"未发现历史文件,是否直接上传"
,
""
}
}
});
}
}
/// <summary>
/// <summary>
...
...
performance/Performance.Api/Performance.Api.csproj
View file @
d2b1f625
...
@@ -106,6 +106,9 @@
...
@@ -106,6 +106,9 @@
<None Update="Template\医院绩效模板.xlsx">
<None Update="Template\医院绩效模板.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</None>
<None Update="Template\导入数据模板.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JSONSchema="" /></VisualStudio></ProjectExtensions>
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JSONSchema="" /></VisualStudio></ProjectExtensions>
...
...
performance/Performance.Api/Template/导入数据模板.xlsx
0 → 100644
View file @
d2b1f625
File added
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