返回字段控制界面tab显示与否
parent
c77cf1bf1e
commit
33ef76ad98
|
@ -224,7 +224,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
.Where(t => t.IsDeleted == false && !t.SystemDocConfirmedUserList.Any(t => t.ConfirmUserId == _userInfo.Id && t.ConfirmTime != null) && t.NeedConfirmedUserTypeList.Any(u => u.NeedConfirmUserTypeId == _userInfo.UserTypeId))
|
.Where(t => t.IsDeleted == false && !t.SystemDocConfirmedUserList.Any(t => t.ConfirmUserId == _userInfo.Id && t.ConfirmTime != null) && t.NeedConfirmedUserTypeList.Any(u => u.NeedConfirmUserTypeId == _userInfo.UserTypeId))
|
||||||
.CountAsync();
|
.CountAsync();
|
||||||
|
|
||||||
var trialTaskConfig = _trialRepository.Where(t => t.Id == querySystemDocument.TrialId).ProjectTo<TrialProcessConfigDTO>(_mapper.ConfigurationProvider).FirstOrDefault();
|
var trialTaskConfig = _trialRepository.Where(t => t.Id == querySystemDocument.TrialId).ProjectTo<TrialConfigTabDto>(_mapper.ConfigurationProvider).FirstOrDefault();
|
||||||
|
|
||||||
|
|
||||||
//var trialCriterionAdditionalAssessmentTypeList = _trialCriterionAdditionalAssessmentTypeRepository
|
//var trialCriterionAdditionalAssessmentTypeList = _trialCriterionAdditionalAssessmentTypeRepository
|
||||||
|
|
|
@ -113,7 +113,15 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
if (userTypeSelectEnum == UserTypeSelectEnum.ExternalUser)
|
if (userTypeSelectEnum == UserTypeSelectEnum.ExternalUser)
|
||||||
{
|
{
|
||||||
userTypeEnums = new List<UserTypeEnum>() { UserTypeEnum.PI, UserTypeEnum.MIM };
|
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.TA)
|
||||||
|
{
|
||||||
|
userTypeEnums = new List<UserTypeEnum>() { UserTypeEnum.ProjectManager };
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
userTypeEnums = new List<UserTypeEnum>() { UserTypeEnum.PI, UserTypeEnum.MIM };
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userTypeSelectEnum == UserTypeSelectEnum.SiteSurvey)
|
if (userTypeSelectEnum == UserTypeSelectEnum.SiteSurvey)
|
||||||
|
|
|
@ -214,6 +214,25 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class TrialConfigTabDto
|
||||||
|
{
|
||||||
|
public TrialQCProcess QCProcessEnum { get; set; } = TrialQCProcess.DoubleAudit;
|
||||||
|
|
||||||
|
public bool IsImageConsistencyVerification { get; set; } = true;
|
||||||
|
|
||||||
|
public bool IsMedicalReview { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public bool IsEnrollementQualificationConfirm { get; set; } = false;
|
||||||
|
|
||||||
|
|
||||||
|
public bool IsPDProgressView { get; set; }
|
||||||
|
|
||||||
|
public UserTypeEnum? EnrollConfirmDefaultUserType { get; set; }
|
||||||
|
|
||||||
|
public UserTypeEnum? PDProgressDefaultUserType { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class TrialProcessConfigDTO
|
public class TrialProcessConfigDTO
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
|
|
||||||
CreateMap<Trial, TrialProcessConfigDTO>();
|
CreateMap<Trial, TrialProcessConfigDTO>();
|
||||||
|
CreateMap<Trial, TrialConfigTabDto>();
|
||||||
|
|
||||||
|
|
||||||
CreateMap<ReadingQuestionCriterionTrial, TrialTaskConfigView > ()
|
CreateMap<ReadingQuestionCriterionTrial, TrialTaskConfigView > ()
|
||||||
.ForMember(d => d.QCProcessEnum, u => u.MapFrom(s => s.Trial.QCProcessEnum))
|
.ForMember(d => d.QCProcessEnum, u => u.MapFrom(s => s.Trial.QCProcessEnum))
|
||||||
.ForMember(d => d.IsImageConsistencyVerification, u => u.MapFrom(s => s.Trial.IsImageConsistencyVerification))
|
.ForMember(d => d.IsImageConsistencyVerification, u => u.MapFrom(s => s.Trial.IsImageConsistencyVerification))
|
||||||
|
|
Loading…
Reference in New Issue