@@ -95,5 +95,9 @@ public class DataInspection : BaseAddAuditEntity
|
|||||||
/// 真实的Url和实体名称拼接
|
/// 真实的Url和实体名称拼接
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string RealUrlAndEntity { get; set; } = string.Empty;
|
public string RealUrlAndEntity { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string Browser { get; set; }
|
||||||
|
public string OS { get; set; }
|
||||||
|
public string DeviceType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4511,7 +4511,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
inspection.OS = _userInfo.ClientInfo.OS;
|
||||||
|
inspection.DeviceType = _userInfo.ClientInfo.DeviceType;
|
||||||
|
inspection.Browser = _userInfo.ClientInfo.Browser;
|
||||||
inspection.CreateUserName = _userInfo.UserName;
|
inspection.CreateUserName = _userInfo.UserName;
|
||||||
inspection.CreateUserRealName = _userInfo.FullName;
|
inspection.CreateUserRealName = _userInfo.FullName;
|
||||||
inspection.RoleName = _userInfo.UserTypeShortName;
|
inspection.RoleName = _userInfo.UserTypeShortName;
|
||||||
|
|||||||
+22600
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,54 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class addClientInfo : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "Browser",
|
||||||
|
table: "DataInspection",
|
||||||
|
type: "nvarchar(400)",
|
||||||
|
maxLength: 400,
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "DeviceType",
|
||||||
|
table: "DataInspection",
|
||||||
|
type: "nvarchar(400)",
|
||||||
|
maxLength: 400,
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "OS",
|
||||||
|
table: "DataInspection",
|
||||||
|
type: "nvarchar(400)",
|
||||||
|
maxLength: 400,
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Browser",
|
||||||
|
table: "DataInspection");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "DeviceType",
|
||||||
|
table: "DataInspection");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "OS",
|
||||||
|
table: "DataInspection");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -979,6 +979,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasComment("批次Id");
|
.HasComment("批次Id");
|
||||||
|
|
||||||
|
b.Property<string>("Browser")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid?>("ChildrenTypeId")
|
b.Property<Guid?>("ChildrenTypeId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasComment("子类");
|
.HasComment("子类");
|
||||||
@@ -1000,6 +1005,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<string>("DeviceType")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid?>("DoctorUserId")
|
b.Property<Guid?>("DoctorUserId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasComment("阅片医生");
|
.HasComment("阅片医生");
|
||||||
@@ -1042,6 +1052,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||||||
b.Property<Guid?>("ModuleTypeId")
|
b.Property<Guid?>("ModuleTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("OS")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid?>("ObjectRelationParentId")
|
b.Property<Guid?>("ObjectRelationParentId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasComment("被稽查对象外键1");
|
.HasComment("被稽查对象外键1");
|
||||||
@@ -7480,7 +7495,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.PrimitiveCollection<string>("AnswerCombination")
|
b.Property<string>("AnswerCombination")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)")
|
.HasColumnType("nvarchar(max)")
|
||||||
.HasComment("答案组合");
|
.HasComment("答案组合");
|
||||||
@@ -21236,7 +21251,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject")
|
b.HasOne("IRaCIS.Core.Domain.Models.Subject", "Subject")
|
||||||
.WithMany()
|
.WithMany("TrialImageDownloadList")
|
||||||
.HasForeignKey("SubjectId")
|
.HasForeignKey("SubjectId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
@@ -22323,6 +22338,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||||||
b.Navigation("SubjectVisitTaskList");
|
b.Navigation("SubjectVisitTaskList");
|
||||||
|
|
||||||
b.Navigation("TaskStudyList");
|
b.Navigation("TaskStudyList");
|
||||||
|
|
||||||
|
b.Navigation("TrialImageDownloadList");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b =>
|
||||||
|
|||||||
Reference in New Issue
Block a user