Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
e76a5d189e
|
@ -122,7 +122,7 @@ namespace IRaCIS.Api.Controllers
|
||||||
{
|
{
|
||||||
var token = _tokenService.GetToken(new UserTokenInfo()
|
var token = _tokenService.GetToken(new UserTokenInfo()
|
||||||
{
|
{
|
||||||
UserRoleId = Guid.NewGuid(),
|
IdentityUserId = Guid.NewGuid(),
|
||||||
UserName = "Share001",
|
UserName = "Share001",
|
||||||
UserTypeEnum = UserTypeEnum.ShareImage,
|
UserTypeEnum = UserTypeEnum.ShareImage,
|
||||||
|
|
||||||
|
|
|
@ -2606,7 +2606,7 @@ public class VisitTaskService(IRepository<VisitTask> _visitTaskRepository,
|
||||||
|
|
||||||
private bool IsSpmOrCPM()
|
private bool IsSpmOrCPM()
|
||||||
{
|
{
|
||||||
return _userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM;
|
return _userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -660,7 +660,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
trialInfo.ResearchProgramNo,
|
trialInfo.ResearchProgramNo,
|
||||||
trialInfo.TrialCode,
|
trialInfo.TrialCode,
|
||||||
sysUserInfo.IsFirstAdd ? sysUserInfo.EMail : sysUserInfo.UserName,
|
sysUserInfo.IsFirstAdd ? sysUserInfo.EMail : sysUserInfo.UserName,
|
||||||
$"{userType.UserTypeShortName} ({userType.UserTypeName})",
|
userType.UserTypeName,
|
||||||
sysUserInfo.IsFirstAdd ? redirectUrl : baseUrl
|
sysUserInfo.IsFirstAdd ? redirectUrl : baseUrl
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using IRaCIS.Core.Application.Helper;
|
using IRaCIS.Core.Application.Helper;
|
||||||
|
using IRaCIS.Core.Application.MassTransit.Consumer;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
|
@ -20,7 +21,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
IRepository<TrialSiteUserRole> _trialSiteUserRoleRepository,
|
IRepository<TrialSiteUserRole> _trialSiteUserRoleRepository,
|
||||||
IOptionsMonitor<SystemEmailSendConfig> _SystemEmailSendConfig, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IEmailSendService
|
IOptionsMonitor<SystemEmailSendConfig> _SystemEmailSendConfig, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IEmailSendService
|
||||||
{
|
{
|
||||||
|
private readonly SystemEmailSendConfig _systemEmailConfig = _SystemEmailSendConfig.CurrentValue;
|
||||||
|
|
||||||
public static string EmailNamePlaceholder => StaticData.EmailSend.EmailNamePlaceholder;
|
public static string EmailNamePlaceholder => StaticData.EmailSend.EmailNamePlaceholder;
|
||||||
|
|
||||||
|
@ -130,6 +131,9 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
var (topicStr, htmlBodyStr, isEn_us, onlyToUserId) = topicAndHtmlFunc(trialEmailConfig);
|
var (topicStr, htmlBodyStr, isEn_us, onlyToUserId) = topicAndHtmlFunc(trialEmailConfig);
|
||||||
|
|
||||||
|
//处理替换公司名
|
||||||
|
htmlBodyStr = CommonEmailHelper.ReplaceCompanyName(_systemEmailConfig, htmlBodyStr);
|
||||||
|
|
||||||
|
|
||||||
sendEmailConfig.TopicDescription = topicStr;
|
sendEmailConfig.TopicDescription = topicStr;
|
||||||
sendEmailConfig.HtmlBodyStr = htmlBodyStr;
|
sendEmailConfig.HtmlBodyStr = htmlBodyStr;
|
||||||
|
|
|
@ -8,6 +8,7 @@ using IRaCIS.Core.Application.Contracts;
|
||||||
using IRaCIS.Core.Application.Filter;
|
using IRaCIS.Core.Application.Filter;
|
||||||
using IRaCIS.Core.Application.Helper;
|
using IRaCIS.Core.Application.Helper;
|
||||||
using IRaCIS.Core.Application.Interfaces;
|
using IRaCIS.Core.Application.Interfaces;
|
||||||
|
using IRaCIS.Core.Application.MassTransit.Consumer;
|
||||||
using IRaCIS.Core.Application.ViewModel;
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Domain.Share.Common;
|
using IRaCIS.Core.Domain.Share.Common;
|
||||||
|
|
|
@ -104,7 +104,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
StudyId = imageShare.StudyId,
|
StudyId = imageShare.StudyId,
|
||||||
Token = _tokenService.GetToken(new UserTokenInfo()
|
Token = _tokenService.GetToken(new UserTokenInfo()
|
||||||
{
|
{
|
||||||
UserRoleId = Guid.NewGuid(),
|
IdentityUserId = Guid.NewGuid(),
|
||||||
FullName = "Share001",
|
FullName = "Share001",
|
||||||
UserName = "Share001",
|
UserName = "Share001",
|
||||||
UserTypeEnum = UserTypeEnum.ShareImage,
|
UserTypeEnum = UserTypeEnum.ShareImage,
|
||||||
|
|
|
@ -146,7 +146,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public string Phone { get; set; } = string.Empty;
|
public string Phone { get; set; } = string.Empty;
|
||||||
public string OrganizationName { get; set; } = string.Empty;
|
public string OrganizationName { get; set; } = string.Empty;
|
||||||
|
|
||||||
[ExcelColumnName("UserType")]
|
[ExcelColumnName("Role")]
|
||||||
public string UserTypeStr { get; set; }
|
public string UserTypeStr { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -672,6 +672,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
TrialSiteSurveyId = currentEntity!.Id,
|
TrialSiteSurveyId = currentEntity!.Id,
|
||||||
Token = _tokenService.GetToken(new UserTokenInfo()
|
Token = _tokenService.GetToken(new UserTokenInfo()
|
||||||
{
|
{
|
||||||
|
IdentityUserId=Guid.NewGuid(),
|
||||||
UserRoleId = Guid.NewGuid(),
|
UserRoleId = Guid.NewGuid(),
|
||||||
UserName = "SiteSurvey",
|
UserName = "SiteSurvey",
|
||||||
UserTypeEnum = UserTypeEnum.Undefined,
|
UserTypeEnum = UserTypeEnum.Undefined,
|
||||||
|
|
|
@ -1178,7 +1178,7 @@ namespace IRaCIS.Core.Application
|
||||||
|
|
||||||
var record = new UserToBeDoneRecord()
|
var record = new UserToBeDoneRecord()
|
||||||
{
|
{
|
||||||
IsFirstSysDocNeedSign= isfirstSysDocNeedSign,
|
IsFirstSysDocNeedSign = isfirstSysDocNeedSign,
|
||||||
IsHaveSysDocNeedNeedSign = needSignSysDocCont > 0,
|
IsHaveSysDocNeedNeedSign = needSignSysDocCont > 0,
|
||||||
//TrialNeedSignList= trialNeedSignList,
|
//TrialNeedSignList= trialNeedSignList,
|
||||||
|
|
||||||
|
@ -1406,7 +1406,7 @@ namespace IRaCIS.Core.Application
|
||||||
Sponsor = _userInfo.IsEn_Us ? t.Sponsor.SponsorName : t.Sponsor.SponsorNameCN,
|
Sponsor = _userInfo.IsEn_Us ? t.Sponsor.SponsorName : t.Sponsor.SponsorNameCN,
|
||||||
TrialStatusStr = t.TrialStatusStr,
|
TrialStatusStr = t.TrialStatusStr,
|
||||||
|
|
||||||
ExpetiedTaskCount = isPM ? t.VisitTaskList.Where(t => t.IsUrgent).Count() : 0,
|
ExpetiedTaskCount = isPM ? t.VisitTaskList.Where(t => t.IsUrgent && t.IsAnalysisCreate==false && (t.TaskState == TaskState.Effect || t.TaskState == TaskState.Freeze)).Count() : 0,
|
||||||
|
|
||||||
ReReadingApprovalCount = isPM ? t.VisitTaskReReadingList.Where(t => t.OriginalReReadingTask.ReReadingApplyState == ReReadingApplyState.DocotorHaveApplyed).Count() : 0,
|
ReReadingApprovalCount = isPM ? t.VisitTaskReReadingList.Where(t => t.OriginalReReadingTask.ReReadingApplyState == ReReadingApplyState.DocotorHaveApplyed).Count() : 0,
|
||||||
|
|
||||||
|
|
|
@ -260,7 +260,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
.ForMember(d => d.ParentDictionaryCode, u => u.MapFrom(s => s.ParentReadingQuestionTrial.DictionaryCode))
|
.ForMember(d => d.ParentDictionaryCode, u => u.MapFrom(s => s.ParentReadingQuestionTrial.DictionaryCode))
|
||||||
.ForMember(t => t.ParentQuestionName, u => u.MapFrom(c => c.ParentReadingQuestionTrial.QuestionName))
|
.ForMember(t => t.ParentQuestionName, u => u.MapFrom(c => c.ParentReadingQuestionTrial.QuestionName))
|
||||||
.ForMember(t => t.RelevanceShowOrder, u => u.MapFrom(c => c.RelevanceReadingQuestionTrial.ShowOrder))
|
.ForMember(t => t.RelevanceShowOrder, u => u.MapFrom(c => c.RelevanceReadingQuestionTrial.ShowOrder))
|
||||||
.ForMember(t => t.ParentQuestionShowOrder, u => u.MapFrom(c => c.ParentReadingQuestionTrial.ShowOrder));
|
.ForMember(t => t.ParentQuestionShowOrder, u => u.MapFrom(c => c.ParentReadingQuestionTrial.ShowOrder))
|
||||||
|
.ForMember(x => x.CreateUserRole, x => x.Ignore());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -159,9 +159,9 @@ namespace IRaCIS.Core.Application.Service
|
||||||
/// 用户多账号,初次维护数据
|
/// 用户多账号,初次维护数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[AllowAnonymous]
|
||||||
public async Task<IResponseOutput> UserMutiAccount([FromServices] IRepository<IdentityUser> _identityUserRepository)
|
public async Task<IResponseOutput> UserMutiAccount([FromServices] IRepository<IdentityUser> _identityUserRepository)
|
||||||
{
|
{
|
||||||
_userInfo.IsNotNeedInspection = true;
|
|
||||||
|
|
||||||
if ((await _identityUserRepository.FirstOrDefaultAsync()) == null)
|
if ((await _identityUserRepository.FirstOrDefaultAsync()) == null)
|
||||||
{
|
{
|
||||||
|
@ -212,6 +212,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="_trialIdentityUserRepository"></param>
|
/// <param name="_trialIdentityUserRepository"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[AllowAnonymous]
|
||||||
public async Task<IResponseOutput> UserTrialUser([FromServices] IRepository<TrialIdentityUser> _trialIdentityUserRepository, [FromServices] IRepository<TrialUserRole> _trialUserRoleReposiotry)
|
public async Task<IResponseOutput> UserTrialUser([FromServices] IRepository<TrialIdentityUser> _trialIdentityUserRepository, [FromServices] IRepository<TrialUserRole> _trialUserRoleReposiotry)
|
||||||
{
|
{
|
||||||
_userInfo.IsNotNeedInspection = true;
|
_userInfo.IsNotNeedInspection = true;
|
||||||
|
@ -263,6 +264,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
/// <param name="_trialIdentityUserRepository"></param>
|
/// <param name="_trialIdentityUserRepository"></param>
|
||||||
/// <param name="_trialUserRoleReposiotry"></param>
|
/// <param name="_trialUserRoleReposiotry"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[AllowAnonymous]
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> ExternalTrialUser(
|
public async Task<IResponseOutput> ExternalTrialUser(
|
||||||
[FromServices] IRepository<TrialSiteUserSurvey> _trialSiteUserSurveyRepository,
|
[FromServices] IRepository<TrialSiteUserSurvey> _trialSiteUserSurveyRepository,
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace IRaCIS.Core.Application.Triggers
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//访视类型的任务 不影响肿瘤学任务的临床数据状态
|
//访视类型、全局的任务 不影响肿瘤学任务的临床数据状态
|
||||||
visitTaskLambda = visitTaskLambda.And(x => x.ArmEnum != Arm.TumorArm);
|
visitTaskLambda = visitTaskLambda.And(x => x.ArmEnum != Arm.TumorArm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,11 @@ public class VisitTask : BaseFullAuditEntity
|
||||||
|
|
||||||
[Comment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)")]
|
[Comment("在裁判任务上记录 裁判结果的任务ID(访视或者全局)")]
|
||||||
public Guid? JudgeResultTaskId { get; set; }
|
public Guid? JudgeResultTaskId { get; set; }
|
||||||
[Comment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定")]
|
|
||||||
|
|
||||||
|
[Comment("随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.02 全局任务在截止访视号上+0.03 肿瘤0.06")]
|
||||||
|
|
||||||
|
[DecimalPrecision(18,2)]
|
||||||
public decimal VisitTaskNum { get; set; }
|
public decimal VisitTaskNum { get; set; }
|
||||||
[Comment("首次阅片时间")]
|
[Comment("首次阅片时间")]
|
||||||
public DateTime? FirstReadingTime { get; set; }
|
public DateTime? FirstReadingTime { get; set; }
|
||||||
|
|
|
@ -19,15 +19,20 @@ public class TrialUserRole : BaseFullDeleteAuditEntity
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
[Comment("这里实际是UserRoleId")]
|
||||||
public Guid UserId { get; set; }
|
public Guid UserId { get; set; }
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
public DateTime? RemoveTime { get; set; }
|
|
||||||
|
|
||||||
public DateTime? JoinTime { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public Guid TrialUserId { get; set; }
|
public Guid TrialUserId { get; set; }
|
||||||
|
|
||||||
|
#region 下个版本删除
|
||||||
|
public DateTime? RemoveTime { get; set; }
|
||||||
|
|
||||||
|
public DateTime? JoinTime { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1735,14 +1735,12 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
var entity = item.Entity as IdentityUser;
|
var entity = item.Entity as IdentityUser;
|
||||||
|
|
||||||
if (!_userInfo.IsNotNeedInspection)
|
|
||||||
{
|
|
||||||
await InsertInspection<IdentityUser>(entity, type, x => new InspectionConvertDTO
|
await InsertInspection<IdentityUser>(entity, type, x => new InspectionConvertDTO
|
||||||
{
|
{
|
||||||
IsDistinctionInterface = type == AuditOpt.Update ? true : false,
|
IsDistinctionInterface = type == AuditOpt.Update ? true : false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// 项目参与人员
|
// 项目参与人员
|
||||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser)))
|
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser)))
|
||||||
|
@ -1753,18 +1751,14 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
var identityUser = await _dbContext.IdentityUser.AsNoTracking().Where(x => x.Id == entity.IdentityUserId).FirstOrDefaultAsync();
|
var identityUser = await _dbContext.IdentityUser.AsNoTracking().Where(x => x.Id == entity.IdentityUserId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
//if (type == AuditOpt.Update)
|
// 变更维护数据,会维护数据,不能插入稽查
|
||||||
//{
|
if (_userInfo.IsNotNeedInspection == false)
|
||||||
// extraIndentification = "/" + entity.IsDeleted.ToString();
|
{
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
//var user = await _dbContext.Users.Include(x => x.UserTypeRole).FirstOrDefaultAsync(x => x.Id == entity.UserId);
|
|
||||||
await InsertInspection<TrialIdentityUser>(entity, type, x => new InspectionConvertDTO
|
await InsertInspection<TrialIdentityUser>(entity, type, x => new InspectionConvertDTO
|
||||||
{
|
{
|
||||||
//IsDistinctionInterface = true ,
|
//IsDistinctionInterface = true ,
|
||||||
TrialId = x.TrialId,
|
TrialId = x.TrialId,
|
||||||
IsDistinctionInterface=false,
|
IsDistinctionInterface = false,
|
||||||
ObjectRelationParentId = x.TrialId,
|
ObjectRelationParentId = x.TrialId,
|
||||||
ExtraIndentification = extraIndentification,
|
ExtraIndentification = extraIndentification,
|
||||||
//ObjectRelationParentId2 = x.IdentityUserId,
|
//ObjectRelationParentId2 = x.IdentityUserId,
|
||||||
|
@ -1781,6 +1775,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
identityUser.OrganizationName,
|
identityUser.OrganizationName,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 项目人员
|
// 项目人员
|
||||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialUserRole)))
|
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialUserRole)))
|
||||||
|
|
Loading…
Reference in New Issue