质控问题导表bug 预先提交
parent
447d0149fd
commit
0c9f1f0191
|
@ -688,7 +688,7 @@
|
||||||
<param name="eventId"></param>
|
<param name="eventId"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.Common.ExcelExportService.GetTrialQCQuestionAnserList_Export(System.Guid,IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.Trial},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.UserRole},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.TrialQCQuestion},IRaCIS.Application.Interfaces.IDictionaryService)">
|
<member name="M:IRaCIS.Core.Application.Service.Common.ExcelExportService.GetTrialQCQuestionAnserList_Export(IRaCIS.Core.Application.Contracts.GetQCQuestionAnswerQuery,IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.TrialQCQuestionAnswer},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.Trial},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.UserRole},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.TrialQCQuestion},IRaCIS.Application.Interfaces.IDictionaryService)">
|
||||||
<summary>
|
<summary>
|
||||||
质控问题答案导出
|
质控问题答案导出
|
||||||
</summary>
|
</summary>
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
||||||
/// <param name="_dictionaryService"></param>
|
/// <param name="_dictionaryService"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IActionResult> GetTrialQCQuestionAnserList_Export(Guid trialId,
|
public async Task<IActionResult> GetTrialQCQuestionAnserList_Export(GetQCQuestionAnswerQuery inQuery,
|
||||||
[FromServices] IRepository<TrialQCQuestionAnswer> _trialQCQuestionAnswerRepository,
|
[FromServices] IRepository<TrialQCQuestionAnswer> _trialQCQuestionAnswerRepository,
|
||||||
[FromServices] IRepository<Trial> _trialRepository,
|
[FromServices] IRepository<Trial> _trialRepository,
|
||||||
[FromServices] IRepository<UserRole> _userRoleRepository,
|
[FromServices] IRepository<UserRole> _userRoleRepository,
|
||||||
|
@ -86,11 +86,12 @@ namespace IRaCIS.Core.Application.Service.Common
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
var trialId = inQuery.TrialId;
|
||||||
|
|
||||||
var query = from qa in _trialQCQuestionAnswerRepository.Where(t => t.SubjectVisit.TrialId == trialId &&
|
var query = from qa in _trialQCQuestionAnswerRepository.Where(t => t.SubjectVisit.TrialId == trialId &&
|
||||||
(t.SubjectVisit.AuditState == AuditStateEnum.QCPassed && t.SecondReviewTime == null ||
|
(t.SubjectVisit.AuditState == AuditStateEnum.QCPassed && t.SubjectVisit.SecondReviewState == SecondReviewState.None) ||
|
||||||
(t.SubjectVisit.SecondReviewState == SecondReviewState.AuditPassed && t.SecondReviewTime <= t.SubjectVisit.Trial.QCQuestionConfirmedTime) ||
|
(t.SubjectVisit.SecondReviewState == SecondReviewState.AuditPassed && t.SecondReviewTime <= t.SubjectVisit.Trial.QCQuestionConfirmedTime) ||
|
||||||
(t.SubjectVisit.SecondReviewState == SecondReviewState.WaitAudit && t.SecondReviewTime < t.SubjectVisit.Trial.QCQuestionConfirmedTime)))
|
(t.SubjectVisit.SecondReviewState == SecondReviewState.WaitAudit && t.SecondReviewTime < t.SubjectVisit.Trial.QCQuestionConfirmedTime))
|
||||||
join u in _userRoleRepository.AsQueryable() on qa.UpdateUserId equals u.Id
|
join u in _userRoleRepository.AsQueryable() on qa.UpdateUserId equals u.Id
|
||||||
select new QCQuestionAnswerResult_export()
|
select new QCQuestionAnswerResult_export()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2247,6 +2247,11 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class GetQCQuestionAnswerQuery
|
||||||
|
{
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class QCQuestionAnswerResult_export
|
public class QCQuestionAnswerResult_export
|
||||||
{
|
{
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
@ -2287,6 +2292,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
public string VisitName { get; set; }
|
public string VisitName { get; set; }
|
||||||
public decimal VisitNum { get; set; }
|
public decimal VisitNum { get; set; }
|
||||||
|
|
||||||
|
[DictionaryTranslate("CurrentQCType")]
|
||||||
public CurrentQC CurrentQCEnum { get; set; }
|
public CurrentQC CurrentQCEnum { get; set; }
|
||||||
|
|
||||||
public string AuditUserName { get; set; }
|
public string AuditUserName { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue