添加是否双屏字段
parent
48bb5ce47a
commit
0c1dcd4610
|
|
@ -15374,6 +15374,11 @@
|
||||||
<member name="T:IRaCIS.Core.Application.ViewModel.UserWLTemplateQuery">
|
<member name="T:IRaCIS.Core.Application.ViewModel.UserWLTemplateQuery">
|
||||||
<summary>UserWLTemplateQuery 列表查询参数模型</summary>
|
<summary>UserWLTemplateQuery 列表查询参数模型</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.ViewModel.SetAutoCutNextTaskInDto.IsDoubleScreen">
|
||||||
|
<summary>
|
||||||
|
是否双屏
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="T:IRaCIS.Core.Application.ViewModel.UserWLTemplateAddOrEdit">
|
<member name="T:IRaCIS.Core.Application.ViewModel.UserWLTemplateAddOrEdit">
|
||||||
<summary> UserWLTemplateAddOrEdit 列表查询参数模型</summary>
|
<summary> UserWLTemplateAddOrEdit 列表查询参数模型</summary>
|
||||||
</member>
|
</member>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||||
public class SetAutoCutNextTaskInDto
|
public class SetAutoCutNextTaskInDto
|
||||||
{
|
{
|
||||||
public bool AutoCutNextTask { get; set; }
|
public bool AutoCutNextTask { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否双屏
|
||||||
|
/// </summary>
|
||||||
|
public bool IsDoubleScreen { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
///<summary> UserWLTemplateAddOrEdit 列表查询参数模型</summary>
|
///<summary> UserWLTemplateAddOrEdit 列表查询参数模型</summary>
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
return await _userRoleRepository.Where(x => x.Id == _userInfo.UserRoleId).Select(x => new
|
return await _userRoleRepository.Where(x => x.Id == _userInfo.UserRoleId).Select(x => new
|
||||||
{
|
{
|
||||||
AutoCutNextTask = x.AutoCutNextTask
|
AutoCutNextTask = x.AutoCutNextTask,
|
||||||
|
IsDoubleScreen = x.IsDoubleScreen,
|
||||||
}).FirstNotNullAsync();
|
}).FirstNotNullAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -103,7 +104,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
await _userRoleRepository.UpdatePartialFromQueryAsync(_userInfo.UserRoleId, x => new UserRole()
|
await _userRoleRepository.UpdatePartialFromQueryAsync(_userInfo.UserRoleId, x => new UserRole()
|
||||||
{
|
{
|
||||||
|
|
||||||
AutoCutNextTask = inDto.AutoCutNextTask
|
AutoCutNextTask = inDto.AutoCutNextTask,
|
||||||
|
IsDoubleScreen = inDto.IsDoubleScreen
|
||||||
});
|
});
|
||||||
|
|
||||||
await _userRoleRepository.SaveChangesAsync();
|
await _userRoleRepository.SaveChangesAsync();
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,11 @@ public class UserRole : BaseFullAuditEntityNoNavigat
|
||||||
[Comment("自动切换下一个任务")]
|
[Comment("自动切换下一个任务")]
|
||||||
public bool AutoCutNextTask { get; set; }
|
public bool AutoCutNextTask { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否双屏
|
||||||
|
/// </summary>
|
||||||
|
public bool IsDoubleScreen { get; set; } = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Comment("医生生成账号后,会有值")]
|
[Comment("医生生成账号后,会有值")]
|
||||||
|
|
|
||||||
18828
IRaCIS.Core.Infra.EFCore/Migrations/20250825064023_doublescreen.Designer.cs
generated
Normal file
18828
IRaCIS.Core.Infra.EFCore/Migrations/20250825064023_doublescreen.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,29 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class doublescreen : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "IsDoubleScreen",
|
||||||
|
table: "User",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "IsDoubleScreen",
|
||||||
|
table: "User");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -13325,6 +13325,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("IdentityUserId")
|
b.Property<Guid>("IdentityUserId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDoubleScreen")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
b.Property<bool>("IsFirstAdd")
|
b.Property<bool>("IsFirstAdd")
|
||||||
.HasColumnType("bit")
|
.HasColumnType("bit")
|
||||||
.HasComment("首次登录需要修改密码");
|
.HasComment("首次登录需要修改密码");
|
||||||
|
|
@ -17623,7 +17626,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial")
|
b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial")
|
||||||
.WithMany()
|
.WithMany("TrialIdentityUserList")
|
||||||
.HasForeignKey("TrialId")
|
.HasForeignKey("TrialId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
@ -18707,6 +18710,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Navigation("TrialDicList");
|
b.Navigation("TrialDicList");
|
||||||
|
|
||||||
|
b.Navigation("TrialIdentityUserList");
|
||||||
|
|
||||||
b.Navigation("TrialReadingCriterionList");
|
b.Navigation("TrialReadingCriterionList");
|
||||||
|
|
||||||
b.Navigation("TrialSiteList");
|
b.Navigation("TrialSiteList");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue