Commit 0c6d3a67 by 李承祥

提取按钮显示

parent 0b05c1c9
...@@ -1687,6 +1687,11 @@ ...@@ -1687,6 +1687,11 @@
是否可以下载 是否可以下载
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.AllotResponse.HasConfig">
<summary>
3 提取数据
</summary>
</member>
<member name="P:Performance.DtoModels.AssessDataResponse.AssessID"> <member name="P:Performance.DtoModels.AssessDataResponse.AssessID">
<summary> <summary>
考核类别ID 考核类别ID
......
...@@ -3004,6 +3004,11 @@ ...@@ -3004,6 +3004,11 @@
1 标准库 2 绩效库 1 标准库 2 绩效库
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.sys_hospitalconfig.DataBaseType">
<summary>
1、Sql Server 2、Orcale
</summary>
</member>
<member name="T:Performance.EntityModels.sys_menu"> <member name="T:Performance.EntityModels.sys_menu">
<summary> <summary>
菜单表 菜单表
......
...@@ -57,5 +57,9 @@ public class AllotResponse ...@@ -57,5 +57,9 @@ public class AllotResponse
/// 是否可以下载 /// 是否可以下载
/// </summary> /// </summary>
public bool IsDown { get; set; } public bool IsDown { get; set; }
/// <summary>
/// 3 提取数据
/// </summary>
public int HasConfig { get; set; }
} }
} }
...@@ -35,6 +35,7 @@ public class AllotService : IAutoInjection ...@@ -35,6 +35,7 @@ public class AllotService : IAutoInjection
private PerforLogcheckRepository perforLogcheckRepository; private PerforLogcheckRepository perforLogcheckRepository;
private readonly PerforHospitalRepository perforHospitalRepository; private readonly PerforHospitalRepository perforHospitalRepository;
private readonly PerforResbaiscnormRepository perforResbaiscnormRepository; private readonly PerforResbaiscnormRepository perforResbaiscnormRepository;
private PerforHospitalconfigRepository perforHospitalconfigRepository;
//private readonly IHubContext<AllotLogHub> hubContext; //private readonly IHubContext<AllotLogHub> hubContext;
private readonly LogManageService logManageService; private readonly LogManageService logManageService;
...@@ -55,6 +56,7 @@ public class AllotService : IAutoInjection ...@@ -55,6 +56,7 @@ public class AllotService : IAutoInjection
PerforLogcheckRepository perforLogcheckRepository, PerforLogcheckRepository perforLogcheckRepository,
PerforHospitalRepository perforHospitalRepository, PerforHospitalRepository perforHospitalRepository,
PerforResbaiscnormRepository perforResbaiscnormRepository, PerforResbaiscnormRepository perforResbaiscnormRepository,
PerforHospitalconfigRepository perforHospitalconfigRepository,
//IHubContext<AllotLogHub> hubContext //IHubContext<AllotLogHub> hubContext
LogManageService logManageService, LogManageService logManageService,
ReportService reportService) ReportService reportService)
...@@ -75,6 +77,7 @@ public class AllotService : IAutoInjection ...@@ -75,6 +77,7 @@ public class AllotService : IAutoInjection
this.perforLogcheckRepository = perforLogcheckRepository; this.perforLogcheckRepository = perforLogcheckRepository;
this.perforHospitalRepository = perforHospitalRepository; this.perforHospitalRepository = perforHospitalRepository;
this.perforResbaiscnormRepository = perforResbaiscnormRepository; this.perforResbaiscnormRepository = perforResbaiscnormRepository;
this.perforHospitalconfigRepository = perforHospitalconfigRepository;
//this.hubContext = hubContext; //this.hubContext = hubContext;
this.logManageService = logManageService; this.logManageService = logManageService;
this.reportService = reportService; this.reportService = reportService;
...@@ -92,12 +95,15 @@ public List<AllotResponse> GetAllotList(int? hospitalId) ...@@ -92,12 +95,15 @@ public List<AllotResponse> GetAllotList(int? hospitalId)
throw new PerformanceException("hospitalId无效"); throw new PerformanceException("hospitalId无效");
var allotList = _allotRepository.GetEntities(t => t.HospitalId == hospitalId); var allotList = _allotRepository.GetEntities(t => t.HospitalId == hospitalId);
allotList = allotList == null ? allotList : allotList.OrderByDescending(t => t.ID).ToList(); allotList = allotList == null ? allotList : allotList.OrderByDescending(t => t.ID).ToList();
var isconfig = perforHospitalconfigRepository.GetEntity(t => t.HospitalId == hospitalId) == null ? false : true;
var reuslt = Mapper.Map<List<AllotResponse>>(allotList); var reuslt = Mapper.Map<List<AllotResponse>>(allotList);
reuslt?.ForEach(t => reuslt?.ForEach(t =>
{ {
t.IsDown = !string.IsNullOrEmpty(t.ExtractPath); t.IsDown = !string.IsNullOrEmpty(t.ExtractPath);
if (!string.IsNullOrEmpty(t.ExtractPath)) if (!string.IsNullOrEmpty(t.ExtractPath))
t.ExtractPath = t.ExtractPath.Replace(options.Value.AbsolutePath, options.Value.HttpPath).Replace("\\", "/"); t.ExtractPath = t.ExtractPath.Replace(options.Value.AbsolutePath, options.Value.HttpPath).Replace("\\", "/");
t.HasConfig = isconfig ? 3 : 0;
}); });
return reuslt; return reuslt;
} }
......
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