修改一版
This commit is contained in:
@@ -148,7 +148,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
/// <summary>
|
||||
/// 访视名称
|
||||
/// </summary>
|
||||
public string SubjectVisitName { get; set; }
|
||||
public string? SubjectVisitName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -160,7 +160,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
/// <summary>
|
||||
/// 截止访视名称
|
||||
/// </summary>
|
||||
public string CutOffVisitName { get; set; }
|
||||
public string? CutOffVisitName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对应阅片期
|
||||
@@ -170,7 +170,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
/// <summary>
|
||||
/// 对应Name
|
||||
/// </summary>
|
||||
public string ReadModuleName { get; set; }
|
||||
public string? ReadModuleName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
|
||||
@@ -9,11 +9,12 @@ using IRaCIS.Core.Application.Auth;
|
||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||
using IRaCIS.Core.Domain.Share.Reading;
|
||||
using MassTransit;
|
||||
using Panda.DynamicWebApi.Attributes;
|
||||
|
||||
namespace IRaCIS.Application.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// 生成的阅片模块(在大列表上展示的)
|
||||
/// 生成的阅片模块(在大列表上展示的) 阅片期
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Reading")]
|
||||
public class ReadModuleService : BaseService
|
||||
@@ -42,7 +43,7 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取读片模块
|
||||
/// 获取读片模块
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public async Task<(PageOutput<GetReadModuleDtoOut>,object)> GetReadModule(GetReadModuleDto dto)
|
||||
@@ -80,6 +81,9 @@ namespace IRaCIS.Application.Services
|
||||
}).ToList()
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
var pageList = await subjectquery.ToPagedListAsync(dto.PageIndex, dto.PageSize, dto.SortField == null|| dto.SortField==string.Empty ? "SiteCode" : dto.SortField,
|
||||
dto.Asc);
|
||||
|
||||
@@ -113,13 +117,26 @@ namespace IRaCIS.Application.Services
|
||||
x.Data.OrderBy(y => y.ModuleType);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
return (pageList, new
|
||||
{
|
||||
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>
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace IRaCIS.Application.Services
|
||||
entity.ReadingPeriodSites = addOrEditReadingPeriodSet.SiteIds.Select(x => new ReadingPeriodSite()
|
||||
{
|
||||
ReadingPeriodSetId = entity.Id,
|
||||
TrialId =entity.TrialId,
|
||||
SiteId = x,
|
||||
}).ToList();
|
||||
|
||||
@@ -60,6 +61,7 @@ namespace IRaCIS.Application.Services
|
||||
entity.ReadingPeriodSites = addOrEditReadingPeriodSet.SiteIds.Select(x => new ReadingPeriodSite()
|
||||
{
|
||||
ReadingPeriodSetId = entity.Id,
|
||||
TrialId = entity.TrialId,
|
||||
SiteId = x,
|
||||
}).ToList();
|
||||
var success = await _readingPeriodSetRepository.SaveChangesAsync();
|
||||
|
||||
Reference in New Issue
Block a user