Commit d2b1f625 by lcx

添加数据导入模板

parent 551d51f3
...@@ -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>
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment