修改对话
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
@@ -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 int TrialClinicalInformationTransmissionEnum { get; set; }
|
||||
@@ -485,6 +473,10 @@ namespace IRaCIS.Core.Application.Contracts.DTO
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class DialogDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
@@ -10,12 +10,12 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||
Task<List<CheckChanllengeDialogDTO>> GetCheckChallengeDialogList(Guid subjectVisitId);
|
||||
Task<IResponseOutput<PageOutput<QCCheckViewModel>, TrialSubjectAndSVConfig>> GetConsistencyVerificationList(CheckQuery checkQuery);
|
||||
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<ForWardViewModel>>> GetForwardList(ForwardQuery forwardQuery);
|
||||
Task<List<QCChallengeWithUser>> GetHistoryChallengeList(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType);
|
||||
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<List<ParticipantDTO>> GetQCParticipantList(Guid trialId);
|
||||
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>
|
||||
/// <returns></returns>
|
||||
[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)
|
||||
.ProjectTo<QCChanllengeDialogDTO>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id }).ToListAsync();
|
||||
.ProjectTo<ChallengeAndDialog>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id }).ToListAsync();
|
||||
|
||||
//利用automapper 运行时映射
|
||||
//list.ForEach(t => t.IsCurrentUser = _userInfo.Id == t.CreateUserId);
|
||||
@@ -754,11 +754,11 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||
/// <param name="trialQCProcess"></param>
|
||||
/// <returns></returns>
|
||||
[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)
|
||||
.ProjectTo<QCChallengeWithUser>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id });
|
||||
.ProjectTo<ChallengeAndDialog>(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id });
|
||||
|
||||
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.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 质疑列表
|
||||
CreateMap<QCChallenge, QCCRCChallengeViewModel>()
|
||||
.ForMember(d => d.PreliminaryAuditUserName, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUser.UserName))
|
||||
|
||||
Reference in New Issue
Block a user