修改对话
parent
72b8b579e2
commit
482c42cd73
|
@ -195,15 +195,11 @@ namespace IRaCIS.Core.Application.Contracts.DTO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public QCChanllengeDialogDTO[] DialogList { get; set; } = new QCChanllengeDialogDTO[0];
|
|
||||||
|
|
||||||
//public int ReplyCount { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CRCChallengeAndDialog
|
public class ChallengeAndDialog: QCChallengeWithUser
|
||||||
{
|
{
|
||||||
public QCChallengeWithUser QCChallenge { get; set; } = new QCChallengeWithUser();
|
|
||||||
|
|
||||||
public List<QCChanllengeDialogDTO> DialogList { get; set; } = new List<QCChanllengeDialogDTO>();
|
public List<QCChanllengeDialogDTO> DialogList { get; set; } = new List<QCChanllengeDialogDTO>();
|
||||||
}
|
}
|
||||||
|
@ -296,14 +292,6 @@ namespace IRaCIS.Core.Application.Contracts.DTO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class QARecordDTO
|
|
||||||
{
|
|
||||||
public QCChallengeWithUser QARecord { get; set; } = new QCChallengeWithUser();
|
|
||||||
|
|
||||||
public List<QADicView> QADictionaryList { get; set; } = new List<QADicView>();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public class QARelationInfo
|
public class QARelationInfo
|
||||||
{
|
{
|
||||||
public int TrialClinicalInformationTransmissionEnum { get; set; }
|
public int TrialClinicalInformationTransmissionEnum { get; set; }
|
||||||
|
@ -485,6 +473,10 @@ namespace IRaCIS.Core.Application.Contracts.DTO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class DialogDTO
|
public class DialogDTO
|
||||||
{
|
{
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
|
|
|
@ -10,12 +10,12 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
Task<List<CheckChanllengeDialogDTO>> GetCheckChallengeDialogList(Guid subjectVisitId);
|
Task<List<CheckChanllengeDialogDTO>> GetCheckChallengeDialogList(Guid subjectVisitId);
|
||||||
Task<IResponseOutput<PageOutput<QCCheckViewModel>, TrialSubjectAndSVConfig>> GetConsistencyVerificationList(CheckQuery checkQuery);
|
Task<IResponseOutput<PageOutput<QCCheckViewModel>, TrialSubjectAndSVConfig>> GetConsistencyVerificationList(CheckQuery checkQuery);
|
||||||
Task<IResponseOutput<PageOutput<QCCRCChallengeViewModel>, TrialSubjectAndSVConfig>> GetCRCChallengeList(ChallengeQuery challengeQuery);
|
Task<IResponseOutput<PageOutput<QCCRCChallengeViewModel>, TrialSubjectAndSVConfig>> GetCRCChallengeList(ChallengeQuery challengeQuery);
|
||||||
Task<List<QCChallengeWithUser>> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess);
|
Task<List<ChallengeAndDialog>> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess);
|
||||||
Task<IResponseOutput<PageOutput<QCCRCVisitViewModel>, TrialSubjectAndSVConfig>> GetCRCVisitList(CRCVisitSearchDTO visitSearchDTO);
|
Task<IResponseOutput<PageOutput<QCCRCVisitViewModel>, TrialSubjectAndSVConfig>> GetCRCVisitList(CRCVisitSearchDTO visitSearchDTO);
|
||||||
Task<IResponseOutput<PageOutput<ForWardViewModel>>> GetForwardList(ForwardQuery forwardQuery);
|
Task<IResponseOutput<PageOutput<ForWardViewModel>>> GetForwardList(ForwardQuery forwardQuery);
|
||||||
Task<List<QCChallengeWithUser>> GetHistoryChallengeList(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType);
|
Task<List<QCChallengeWithUser>> GetHistoryChallengeList(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType);
|
||||||
Task<List<QCChanllengeCreatorDto>> GetQCChallengeCreatorList(Guid trialId);
|
Task<List<QCChanllengeCreatorDto>> GetQCChallengeCreatorList(Guid trialId);
|
||||||
Task<List<QCChanllengeDialogDTO>> GetQCChallengeDialogList(Guid qaChallengeId);
|
Task<List<ChallengeAndDialog>> GetQCChallengeDialogList(Guid qaChallengeId);
|
||||||
Task<IResponseOutput<PageOutput<QCCRCChallengeViewModel>, TrialSubjectAndSVConfig>> GetQCChallengeList(ChallengeQuery challengeQuery);
|
Task<IResponseOutput<PageOutput<QCCRCChallengeViewModel>, TrialSubjectAndSVConfig>> GetQCChallengeList(ChallengeQuery challengeQuery);
|
||||||
Task<List<ParticipantDTO>> GetQCParticipantList(Guid trialId);
|
Task<List<ParticipantDTO>> GetQCParticipantList(Guid trialId);
|
||||||
Task<List<QCQuestionAnswerItemDto>> GetQCQuestionAnswerList(Guid subjectVisitId, Guid trialId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType);
|
Task<List<QCQuestionAnswerItemDto>> GetQCQuestionAnswerList(Guid subjectVisitId, Guid trialId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType);
|
||||||
|
|
|
@ -732,11 +732,11 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
/// <param name="qaChallengeId"></param>
|
/// <param name="qaChallengeId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("{qaChallengeId:guid}")]
|
[HttpGet("{qaChallengeId:guid}")]
|
||||||
public async Task<List<QCChanllengeDialogDTO>> GetQCChallengeDialogList(Guid qaChallengeId)
|
public async Task<List<ChallengeAndDialog>> GetQCChallengeDialogList(Guid qaChallengeId)
|
||||||
{
|
{
|
||||||
|
|
||||||
var list = await _repository.Where<QCChallengeDialog>(t => t.QCChallengeId == qaChallengeId).OrderBy(t => t.CreateTime)
|
var list = await _repository.Where<QCChallengeDialog>(t => t.QCChallengeId == qaChallengeId).OrderBy(t => t.CreateTime)
|
||||||
.ProjectTo<QCChanllengeDialogDTO>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id }).ToListAsync();
|
.ProjectTo<ChallengeAndDialog>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id }).ToListAsync();
|
||||||
|
|
||||||
//利用automapper 运行时映射
|
//利用automapper 运行时映射
|
||||||
//list.ForEach(t => t.IsCurrentUser = _userInfo.Id == t.CreateUserId);
|
//list.ForEach(t => t.IsCurrentUser = _userInfo.Id == t.CreateUserId);
|
||||||
|
@ -754,11 +754,11 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
/// <param name="trialQCProcess"></param>
|
/// <param name="trialQCProcess"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("{subjectVisitId:guid}/{trialQCProcess:int}")]
|
[HttpGet("{subjectVisitId:guid}/{trialQCProcess:int}")]
|
||||||
public async Task<List<QCChallengeWithUser>> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess)
|
public async Task<List<ChallengeAndDialog>> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess)
|
||||||
{
|
{
|
||||||
|
|
||||||
var qaChallengeQuery = _repository.Where<QCChallenge>(t => t.SubjectVisitId == subjectVisitId && t.QCProcessEnum == trialQCProcess)
|
var qaChallengeQuery = _repository.Where<QCChallenge>(t => t.SubjectVisitId == subjectVisitId && t.QCProcessEnum == trialQCProcess)
|
||||||
.ProjectTo<QCChallengeWithUser>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id });
|
.ProjectTo<ChallengeAndDialog>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id });
|
||||||
|
|
||||||
var list = await qaChallengeQuery.ToListAsync();
|
var list = await qaChallengeQuery.ToListAsync();
|
||||||
|
|
||||||
|
|
|
@ -201,6 +201,16 @@ namespace IRaCIS.Core.Application.Service
|
||||||
.ForMember(d => d.SubjectId, u => u.MapFrom(t => t.SubjectVisit.SubjectId ))
|
.ForMember(d => d.SubjectId, u => u.MapFrom(t => t.SubjectVisit.SubjectId ))
|
||||||
.ForMember(d => d.ChallengeCode, u => u.MapFrom(s => "Q" + s.ChallengeCode.ToString("D5")));
|
.ForMember(d => d.ChallengeCode, u => u.MapFrom(s => "Q" + s.ChallengeCode.ToString("D5")));
|
||||||
|
|
||||||
|
|
||||||
|
CreateMap<QCChallenge, ChallengeAndDialog>()
|
||||||
|
.ForMember(d => d.LatestReplyUserName, u => u.MapFrom(t => t.LatestReplyUser.UserName))
|
||||||
|
.ForMember(d => d.CreateUserName, u => u.MapFrom(t => t.CreateUser.UserName))
|
||||||
|
.ForMember(d => d.CurrentActionUserId, u => u.MapFrom(t => t.SubjectVisit.CurrentActionUserId))
|
||||||
|
.ForMember(d => d.CurrentActionUserName, u => u.MapFrom(t => t.SubjectVisit.CurrentActionUser.UserName))
|
||||||
|
|
||||||
|
.ForMember(d => d.SubjectId, u => u.MapFrom(t => t.SubjectVisit.SubjectId))
|
||||||
|
.ForMember(d => d.ChallengeCode, u => u.MapFrom(s => "Q" + s.ChallengeCode.ToString("D5")));
|
||||||
|
|
||||||
//CRC 质疑列表
|
//CRC 质疑列表
|
||||||
CreateMap<QCChallenge, QCCRCChallengeViewModel>()
|
CreateMap<QCChallenge, QCCRCChallengeViewModel>()
|
||||||
.ForMember(d => d.PreliminaryAuditUserName, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUser.UserName))
|
.ForMember(d => d.PreliminaryAuditUserName, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUser.UserName))
|
||||||
|
|
|
@ -20,8 +20,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public string Note { get; set; } = string.Empty;
|
public string Note { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public QCChanllengeReuploadEnum ReuploadEnum { get; set; }
|
public QCChanllengeReuploadEnum ReuploadEnum { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 受试者编号具体规则
|
/// 受试者编号具体规则
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SubjectCodeRule { get; set; } = "筛选号由5位数字组成,前2位为中心编号,后3位为顺序号,请与EDC录入的编号保持一致";
|
public string SubjectCodeRule { get; set; } = "编号由5位数字组成,前2位为中心编号,后3位为顺序号,请与EDC录入的编号保持一致";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否 提醒受试者编号规则
|
/// 是否 提醒受试者编号规则
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue