Uat_Study
hang 2022-04-28 13:33:37 +08:00
parent e2254dee75
commit 8b312683d5
8 changed files with 26 additions and 9 deletions

View File

@ -100,6 +100,7 @@ namespace IRaCIS.Core.API.Controllers
[UnitOfWork] [UnitOfWork]
public async Task<IResponseOutput> AbandonTrial(DataInspectionDto<AbandonTrial> opt) public async Task<IResponseOutput> AbandonTrial(DataInspectionDto<AbandonTrial> opt)
{ {
var cc = _userInfo.RequestUrl;
var fun = await _trialConfigService.AbandonTrial(opt.OptCommand.trialId,opt.OptCommand.isAbandon); var fun = await _trialConfigService.AbandonTrial(opt.OptCommand.trialId,opt.OptCommand.isAbandon);
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo,null, fun); return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo,null, fun);
} }

View File

@ -176,6 +176,8 @@ namespace IRaCIS.Core.Application.Contracts
public class QCCRCChallengeViewModel public class QCCRCChallengeViewModel
{ {
public Guid? PreliminaryAuditUserId { get; set; } public Guid? PreliminaryAuditUserId { get; set; }
public Guid? CurrentActionUserId { get; set; }
public bool IsBaseLine { get; set; } public bool IsBaseLine { get; set; }
public bool IsUrgent { get; set; } public bool IsUrgent { get; set; }
public Guid? ClinicalDataSignUserId { get; set; } public Guid? ClinicalDataSignUserId { get; set; }

View File

@ -198,8 +198,9 @@ namespace IRaCIS.Core.Application.Service
//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))
.ForMember(d => d.PreliminaryAuditUserId, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUserId)) .ForMember(d => d.PreliminaryAuditUserId, u => u.MapFrom(s => s.SubjectVisit.PreliminaryAuditUserId))
.ForMember(d => d.CurrentActionUserId, u => u.MapFrom(s => s.SubjectVisit.CurrentActionUserId))
.ForMember(d => d.SiteId, u => u.MapFrom(s => s.SubjectVisit.SiteId)) .ForMember(d => d.SiteId, u => u.MapFrom(s => s.SubjectVisit.SiteId))
.ForMember(d => d.AuditState, u => u.MapFrom(s => s.SubjectVisit.AuditState)) .ForMember(d => d.AuditState, u => u.MapFrom(s => s.SubjectVisit.AuditState))
.ForMember(d => d.IsUrgent, u => u.MapFrom(s => s.SubjectVisit.IsUrgent)) .ForMember(d => d.IsUrgent, u => u.MapFrom(s => s.SubjectVisit.IsUrgent))

View File

@ -1,11 +1,9 @@
using IRaCIS.Application.Interfaces; using IRaCIS.Application.Interfaces;
using IRaCIS.Application.Contracts; using IRaCIS.Application.Contracts;
using IRaCIS.Core.Infra.EFCore;
using IRaCIS.Core.Application.Filter; using IRaCIS.Core.Application.Filter;
using IRaCIS.Core.Domain.Share; using IRaCIS.Core.Domain.Share;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using IRaCIS.Core.Application.Service.Inspection.Interface; using IRaCIS.Core.Application.Service.Inspection.Interface;
using IRaCIS.Core.Infrastructure;
using Newtonsoft.Json; using Newtonsoft.Json;
using IRaCIS.Core.Domain.Common; using IRaCIS.Core.Domain.Common;

View File

@ -49,7 +49,9 @@ namespace IRaCIS.Application.Services
var a = 123; var a = 123;
var b = _localizer["test{0}", "测试"]; var b = _localizer["test{0}", "测试"];
return _localizer["test{0}", "测试"]; //return _localizer["test{0}", "测试"];
return _userInfo.RequestUrl;
} }
} }

View File

@ -40,5 +40,7 @@ namespace IRaCIS.Core.Domain.Share
string IP { get; } string IP { get; }
bool IsEn_Us { get; } bool IsEn_Us { get; }
string RequestUrl { get; }
} }
} }

View File

@ -147,7 +147,7 @@ namespace IRaCIS.Core.Domain.Share
if (userType != null && !string.IsNullOrEmpty(userType.Value)) if (userType != null && !string.IsNullOrEmpty(userType.Value))
{ {
return int.Parse(userType.Value)==(int)UserTypeEnum.SuperAdmin; return int.Parse(userType.Value) == (int)UserTypeEnum.SuperAdmin;
} }
return false; return false;
} }
@ -190,7 +190,7 @@ namespace IRaCIS.Core.Domain.Share
{ {
var lan = _accessor?.HttpContext?.Request?.Headers["Accept-Language"]; var lan = _accessor?.HttpContext?.Request?.Headers["Accept-Language"];
if ( lan is not null && !string.IsNullOrEmpty(lan.Value)) if (lan is not null && !string.IsNullOrEmpty(lan.Value))
{ {
return lan.Value == "en-US,en;q=0.5".ToString(); return lan.Value == "en-US,en;q=0.5".ToString();
} }
@ -198,6 +198,17 @@ namespace IRaCIS.Core.Domain.Share
} }
} }
public string RequestUrl
{
get
{
return _accessor?.HttpContext?.Request?.Path;
}
}
} }
public static class ClaimAttributes public static class ClaimAttributes

View File

@ -14,7 +14,7 @@ namespace IRaCIS.Core.Domain.Models
[foren]
public User CreateUser { get; set; } public User CreateUser { get; set; }