diff --git a/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs b/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs index becd4c7e9..ba286ab56 100644 --- a/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs +++ b/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs @@ -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 DialogList { get; set; } = new List(); } @@ -296,14 +292,6 @@ namespace IRaCIS.Core.Application.Contracts.DTO - public class QARecordDTO - { - public QCChallengeWithUser QARecord { get; set; } = new QCChallengeWithUser(); - - public List QADictionaryList { get; set; } = new List(); - - } - 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; } diff --git a/IRaCIS.Core.Application/Service/QC/Interface/IQCListService.cs b/IRaCIS.Core.Application/Service/QC/Interface/IQCListService.cs index d1a0dde59..7c74e9884 100644 --- a/IRaCIS.Core.Application/Service/QC/Interface/IQCListService.cs +++ b/IRaCIS.Core.Application/Service/QC/Interface/IQCListService.cs @@ -10,12 +10,12 @@ namespace IRaCIS.Core.Application.Image.QA Task> GetCheckChallengeDialogList(Guid subjectVisitId); Task, TrialSubjectAndSVConfig>> GetConsistencyVerificationList(CheckQuery checkQuery); Task, TrialSubjectAndSVConfig>> GetCRCChallengeList(ChallengeQuery challengeQuery); - Task> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess); + Task> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess); Task, TrialSubjectAndSVConfig>> GetCRCVisitList(CRCVisitSearchDTO visitSearchDTO); Task>> GetForwardList(ForwardQuery forwardQuery); Task> GetHistoryChallengeList(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType); Task> GetQCChallengeCreatorList(Guid trialId); - Task> GetQCChallengeDialogList(Guid qaChallengeId); + Task> GetQCChallengeDialogList(Guid qaChallengeId); Task, TrialSubjectAndSVConfig>> GetQCChallengeList(ChallengeQuery challengeQuery); Task> GetQCParticipantList(Guid trialId); Task> GetQCQuestionAnswerList(Guid subjectVisitId, Guid trialId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType); diff --git a/IRaCIS.Core.Application/Service/QC/QCListService.cs b/IRaCIS.Core.Application/Service/QC/QCListService.cs index dc168af9c..8f00c0123 100644 --- a/IRaCIS.Core.Application/Service/QC/QCListService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCListService.cs @@ -732,11 +732,11 @@ namespace IRaCIS.Core.Application.Image.QA /// /// [HttpGet("{qaChallengeId:guid}")] - public async Task> GetQCChallengeDialogList(Guid qaChallengeId) + public async Task> GetQCChallengeDialogList(Guid qaChallengeId) { var list = await _repository.Where(t => t.QCChallengeId == qaChallengeId).OrderBy(t => t.CreateTime) - .ProjectTo(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id }).ToListAsync(); + .ProjectTo(_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 /// /// [HttpGet("{subjectVisitId:guid}/{trialQCProcess:int}")] - public async Task> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess) + public async Task> GetCRCVisitChallengeAndDialog(Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess) { var qaChallengeQuery = _repository.Where(t => t.SubjectVisitId == subjectVisitId && t.QCProcessEnum == trialQCProcess) - .ProjectTo(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id }); + .ProjectTo(_mapper.ConfigurationProvider, new { currentUserId = _userInfo.Id }); var list = await qaChallengeQuery.ToListAsync(); diff --git a/IRaCIS.Core.Application/Service/QC/_MapConfig.cs b/IRaCIS.Core.Application/Service/QC/_MapConfig.cs index d86b9e04d..e1ea0639d 100644 --- a/IRaCIS.Core.Application/Service/QC/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/QC/_MapConfig.cs @@ -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() + .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() .ForMember(d => d.PreliminaryAuditUserName, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUser.UserName)) diff --git a/IRaCIS.Core.Domain/QC/QCChallenge.cs b/IRaCIS.Core.Domain/QC/QCChallenge.cs index 4337919ab..633ab7217 100644 --- a/IRaCIS.Core.Domain/QC/QCChallenge.cs +++ b/IRaCIS.Core.Domain/QC/QCChallenge.cs @@ -20,8 +20,6 @@ namespace IRaCIS.Core.Domain.Models public string Note { get; set; } = string.Empty; - - public QCChanllengeReuploadEnum ReuploadEnum { get; set; } diff --git a/IRaCIS.Core.Domain/Trial/Trial.cs b/IRaCIS.Core.Domain/Trial/Trial.cs index b4c28e74e..6ff5f1fdb 100644 --- a/IRaCIS.Core.Domain/Trial/Trial.cs +++ b/IRaCIS.Core.Domain/Trial/Trial.cs @@ -132,7 +132,7 @@ namespace IRaCIS.Core.Domain.Models /// /// ߱ž /// - public string SubjectCodeRule { get; set; } = "ɸѡ5λɣǰ2λΪıţ3λΪ˳ţEDC¼ıűһ"; + public string SubjectCodeRule { get; set; } = "5λɣǰ2λΪıţ3λΪ˳ţEDC¼ıűһ"; /// /// Ƿ ߱Ź ///