修改一版
parent
2ff0881d37
commit
d7284f2b50
|
@ -431,7 +431,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
}).FirstOrDefaultAsync();
|
}).FirstOrDefaultAsync();
|
||||||
await FileUploadAsync(async (fileName) =>
|
await FileUploadAsync(async (fileName) =>
|
||||||
{
|
{
|
||||||
var (serverFilePath, relativePath, fileRealName) = FileStoreHelper.GetClinicalDataPath(_hostEnvironment, fileName, subject.TrialId, subject.SiteId, subjectId.Value, id);
|
var (serverFilePath, relativePath, fileRealName) = FileStoreHelper.GetClinicalDataPath(_hostEnvironment, fileName, subject.TrialId, subject.SiteId, subjectId, id);
|
||||||
//插入临床pdf 路径
|
//插入临床pdf 路径
|
||||||
filerelativePath = relativePath;
|
filerelativePath = relativePath;
|
||||||
return serverFilePath;
|
return serverFilePath;
|
||||||
|
|
|
@ -148,7 +148,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 访视名称
|
/// 访视名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SubjectVisitName { get; set; }
|
public string? SubjectVisitName { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -160,7 +160,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 截止访视名称
|
/// 截止访视名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string CutOffVisitName { get; set; }
|
public string? CutOffVisitName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 对应阅片期
|
/// 对应阅片期
|
||||||
|
@ -170,7 +170,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 对应Name
|
/// 对应Name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ReadModuleName { get; set; }
|
public string? ReadModuleName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 状态
|
/// 状态
|
||||||
|
|
|
@ -9,11 +9,12 @@ using IRaCIS.Core.Application.Auth;
|
||||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||||
using IRaCIS.Core.Domain.Share.Reading;
|
using IRaCIS.Core.Domain.Share.Reading;
|
||||||
using MassTransit;
|
using MassTransit;
|
||||||
|
using Panda.DynamicWebApi.Attributes;
|
||||||
|
|
||||||
namespace IRaCIS.Application.Services
|
namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生成的阅片模块(在大列表上展示的)
|
/// 生成的阅片模块(在大列表上展示的) 阅片期
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ApiExplorerSettings(GroupName = "Reading")]
|
[ApiExplorerSettings(GroupName = "Reading")]
|
||||||
public class ReadModuleService : BaseService
|
public class ReadModuleService : BaseService
|
||||||
|
@ -42,7 +43,7 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取读片模块
|
/// 获取读片模块
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<(PageOutput<GetReadModuleDtoOut>,object)> GetReadModule(GetReadModuleDto dto)
|
public async Task<(PageOutput<GetReadModuleDtoOut>,object)> GetReadModule(GetReadModuleDto dto)
|
||||||
|
@ -80,6 +81,9 @@ namespace IRaCIS.Application.Services
|
||||||
}).ToList()
|
}).ToList()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var pageList = await subjectquery.ToPagedListAsync(dto.PageIndex, dto.PageSize, dto.SortField == null|| dto.SortField==string.Empty ? "SiteCode" : dto.SortField,
|
var pageList = await subjectquery.ToPagedListAsync(dto.PageIndex, dto.PageSize, dto.SortField == null|| dto.SortField==string.Empty ? "SiteCode" : dto.SortField,
|
||||||
dto.Asc);
|
dto.Asc);
|
||||||
|
|
||||||
|
@ -114,12 +118,25 @@ namespace IRaCIS.Application.Services
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (pageList, new
|
return (pageList, new
|
||||||
{
|
{
|
||||||
MaxLength = pageList.CurrentPageData.ToList().Max(x => x.Data.Count)
|
MaxLength = pageList.CurrentPageData.ToList().Max(x => x.Data.Count)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///// <summary>
|
||||||
|
///// 获取访视的状态
|
||||||
|
///// </summary>
|
||||||
|
///// <param name="visit"></param>
|
||||||
|
///// <returns></returns>
|
||||||
|
//[NonDynamicWebApi]
|
||||||
|
//public async Task<SubmitStateEnum> GetVisitSubmitStateEnum(SubjectVisit visit)
|
||||||
|
//{
|
||||||
|
// if(visit.SubmitState == SubmitStateEnum.None||)
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
///// <summary>
|
||||||
///// 访视阅片完成添加阅片期模块
|
///// 访视阅片完成添加阅片期模块
|
||||||
///// </summary>
|
///// </summary>
|
||||||
|
|
|
@ -47,6 +47,7 @@ namespace IRaCIS.Application.Services
|
||||||
entity.ReadingPeriodSites = addOrEditReadingPeriodSet.SiteIds.Select(x => new ReadingPeriodSite()
|
entity.ReadingPeriodSites = addOrEditReadingPeriodSet.SiteIds.Select(x => new ReadingPeriodSite()
|
||||||
{
|
{
|
||||||
ReadingPeriodSetId = entity.Id,
|
ReadingPeriodSetId = entity.Id,
|
||||||
|
TrialId =entity.TrialId,
|
||||||
SiteId = x,
|
SiteId = x,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
@ -60,6 +61,7 @@ namespace IRaCIS.Application.Services
|
||||||
entity.ReadingPeriodSites = addOrEditReadingPeriodSet.SiteIds.Select(x => new ReadingPeriodSite()
|
entity.ReadingPeriodSites = addOrEditReadingPeriodSet.SiteIds.Select(x => new ReadingPeriodSite()
|
||||||
{
|
{
|
||||||
ReadingPeriodSetId = entity.Id,
|
ReadingPeriodSetId = entity.Id,
|
||||||
|
TrialId = entity.TrialId,
|
||||||
SiteId = x,
|
SiteId = x,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
var success = await _readingPeriodSetRepository.SaveChangesAsync();
|
var success = await _readingPeriodSetRepository.SaveChangesAsync();
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 受试者ID
|
/// 受试者ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 模块类型
|
/// 模块类型
|
||||||
|
@ -38,12 +38,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 访视ID
|
/// 访视ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 状态
|
/// 状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ReadModuleEnum? Status { get; set; }
|
public ReadModuleEnum Status { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建时间
|
/// 创建时间
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目ID
|
/// 项目ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 阅片期名称
|
/// 阅片期名称
|
||||||
|
@ -29,7 +29,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 阅片范围
|
/// 阅片范围
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ReadingScopeEnum? ReadingScope { get; set; }
|
public ReadingScopeEnum ReadingScope { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 截止日期
|
/// 截止日期
|
||||||
|
@ -65,7 +65,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 备注
|
/// 备注
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Remark { get; set; }
|
public string? Remark { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public List<ReadingPeriodSite> ReadingPeriodSites { get; set; } = new List<ReadingPeriodSite>();
|
public List<ReadingPeriodSite> ReadingPeriodSites { get; set; } = new List<ReadingPeriodSite>();
|
||||||
|
|
|
@ -19,12 +19,17 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///阅片期配置ID
|
///阅片期配置ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
public Guid? ReadingPeriodSetId { get; set; }
|
public Guid ReadingPeriodSetId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 中心ID
|
/// 中心ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? SiteId { get; set; }
|
public Guid SiteId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue