加表:隐患原因

This commit is contained in:
何美荣 2025-10-24 10:30:28 +08:00
parent 37b432f2e6
commit 24968ca4fe
18 changed files with 132552 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,412 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace APT.Data.Migrations.Migrations
{
public partial class hmr2025102401 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "T_SK_HIDDEN_REASON",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
CODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_SK_HIDDEN_REASON", x => x.ID);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_REASON_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
HIDDEN_DANGER_CONFIRM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_CONFIRM_REASON", x => x.ID);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_CONFIRM_REASON_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_CONFIRM_REASON_T_SK_HIDDEN_DANGER_CONFIRM_HIDDEN_DANGER_CONFIRM_ID",
column: x => x.HIDDEN_DANGER_CONFIRM_ID,
principalTable: "T_SK_HIDDEN_DANGER_CONFIRM",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_CONFIRM_REASON_T_SK_HIDDEN_REASON_REASON_ID",
column: x => x.REASON_ID,
principalTable: "T_SK_HIDDEN_REASON",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON", x => x.ID);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL~",
column: x => x.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID,
principalTable: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
column: x => x.REASON_ID,
principalTable: "T_SK_HIDDEN_REASON",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
HIDDEN_DANGER_RECTIFY_RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON", x => x.ID);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_HIDDEN_DANGER_RECTIFY_RECORD_ID",
column: x => x.HIDDEN_DANGER_RECTIFY_RECORD_ID,
principalTable: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_T_SK_HIDDEN_REASON_REASON_ID",
column: x => x.REASON_ID,
principalTable: "T_SK_HIDDEN_REASON",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
HIDDEN_DANGER_REPORT_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON", x => x.ID);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_T_SK_HIDDEN_DANGER_REPORT_DETAIL_HIDDEN_DANGER_REPORT_DETAIL_ID",
column: x => x.HIDDEN_DANGER_REPORT_DETAIL_ID,
principalTable: "T_SK_HIDDEN_DANGER_REPORT_DETAIL",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
column: x => x.REASON_ID,
principalTable: "T_SK_HIDDEN_REASON",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
SECURITY_INSPECTION_RECORD_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON", x => x.ID);
table.ForeignKey(
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
column: x => x.REASON_ID,
principalTable: "T_SK_HIDDEN_REASON",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_SECURITY_INSPECTION_RECORD_DETAIL_ID",
column: x => x.SECURITY_INSPECTION_RECORD_DETAIL_ID,
principalTable: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON", x => x.ID);
table.ForeignKey(
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
column: x => x.REASON_ID,
principalTable: "T_SK_HIDDEN_REASON",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_SECURITY_INSPECTION_REC~",
column: x => x.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID,
principalTable: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_CONFIRM_REASON_HIDDEN_DANGER_CONFIRM_ID",
table: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
column: "HIDDEN_DANGER_CONFIRM_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_CONFIRM_REASON_ORG_ID",
table: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_CONFIRM_REASON_REASON_ID",
table: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
column: "REASON_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID",
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
column: "HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_ORG_ID",
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_REASON_ID",
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
column: "REASON_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_HIDDEN_DANGER_RECTIFY_RECORD_ID",
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
column: "HIDDEN_DANGER_RECTIFY_RECORD_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_ORG_ID",
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_REASON_ID",
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
column: "REASON_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_HIDDEN_DANGER_REPORT_DETAIL_ID",
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
column: "HIDDEN_DANGER_REPORT_DETAIL_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_ORG_ID",
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_REASON_ID",
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
column: "REASON_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_HIDDEN_REASON_ORG_ID",
table: "T_SK_HIDDEN_REASON",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_ORG_ID",
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_REASON_ID",
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
column: "REASON_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_SECURITY_INSPECTION_RECORD_DETAIL_ID",
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
column: "SECURITY_INSPECTION_RECORD_DETAIL_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_ORG_ID",
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_REASON_ID",
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
column: "REASON_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID",
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
column: "SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "T_SK_HIDDEN_DANGER_CONFIRM_REASON");
migrationBuilder.DropTable(
name: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON");
migrationBuilder.DropTable(
name: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON");
migrationBuilder.DropTable(
name: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON");
migrationBuilder.DropTable(
name: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON");
migrationBuilder.DropTable(
name: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON");
migrationBuilder.DropTable(
name: "T_SK_HIDDEN_REASON");
}
}
}

View File

@ -75925,6 +75925,63 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_SK_HIDDEN_DANGER_CONFIRM_PHOTO");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_CONFIRM_REASON", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("HIDDEN_DANGER_CONFIRM_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("REASON_ID")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("HIDDEN_DANGER_CONFIRM_ID");
b.HasIndex("ORG_ID");
b.HasIndex("REASON_ID");
b.ToTable("T_SK_HIDDEN_DANGER_CONFIRM_REASON");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_HAND_REPORT", b =>
{
b.Property<Guid>("ID")
@ -76548,6 +76605,63 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_FILE");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("REASON_ID")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID");
b.HasIndex("ORG_ID");
b.HasIndex("REASON_ID");
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_FILE", b =>
{
b.Property<Guid>("ID")
@ -77032,6 +77146,63 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_RECORD_PHOTOB");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("HIDDEN_DANGER_RECTIFY_RECORD_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("REASON_ID")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("HIDDEN_DANGER_RECTIFY_RECORD_ID");
b.HasIndex("ORG_ID");
b.HasIndex("REASON_ID");
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", b =>
{
b.Property<Guid>("ID")
@ -77364,6 +77535,63 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_SK_HIDDEN_DANGER_REPORT_DETAIL_FILE");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("HIDDEN_DANGER_REPORT_DETAIL_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("REASON_ID")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("HIDDEN_DANGER_REPORT_DETAIL_ID");
b.HasIndex("ORG_ID");
b.HasIndex("REASON_ID");
b.ToTable("T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_FILE", b =>
{
b.Property<Guid>("ID")
@ -77421,6 +77649,61 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_SK_HIDDEN_DANGER_REPORT_FILE");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("CODE")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<string>("NAME")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("ORG_ID");
b.ToTable("T_SK_HIDDEN_REASON");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN", b =>
{
b.Property<Guid>("ID")
@ -82511,6 +82794,63 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_DETAIL_FILE");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("REASON_ID")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("SECURITY_INSPECTION_RECORD_DETAIL_ID")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("ORG_ID");
b.HasIndex("REASON_ID");
b.HasIndex("SECURITY_INSPECTION_RECORD_DETAIL_ID");
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_USER", b =>
{
b.Property<Guid>("ID")
@ -82954,6 +83294,63 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_FILE");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("REASON_ID")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID")
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("ORG_ID");
b.HasIndex("REASON_ID");
b.HasIndex("SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID");
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_USER", b =>
{
b.Property<Guid>("ID")
@ -120131,6 +120528,32 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_CONFIRM_REASON", b =>
{
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_CONFIRM", "Nav_Confirm")
.WithMany("Nav_Reasons")
.HasForeignKey("HIDDEN_DANGER_CONFIRM_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
.WithMany()
.HasForeignKey("REASON_ID")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Nav_Confirm");
b.Navigation("Nav_Org");
b.Navigation("Nav_Reason");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_HAND_REPORT", b =>
{
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
@ -120389,6 +120812,32 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_RectifyDetail");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON", b =>
{
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL", "Nav_RectifyDetail")
.WithMany("Nav_RectifyDetailReasons")
.HasForeignKey("HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
.WithMany()
.HasForeignKey("REASON_ID")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Nav_Org");
b.Navigation("Nav_Reason");
b.Navigation("Nav_RectifyDetail");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_FILE", b =>
{
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE", "Nav_Rectify")
@ -120604,6 +121053,32 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Rectify");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON", b =>
{
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD", "Nav_Rectify")
.WithMany("Nav_RectifyReasons")
.HasForeignKey("HIDDEN_DANGER_RECTIFY_RECORD_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
.WithMany()
.HasForeignKey("REASON_ID")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Nav_Org");
b.Navigation("Nav_Reason");
b.Navigation("Nav_Rectify");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", b =>
{
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
@ -120743,6 +121218,32 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_ReportDetail");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON", b =>
{
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_DETAIL", "Nav_ReportDetail")
.WithMany("Nav_ReportDetailReasons")
.HasForeignKey("HIDDEN_DANGER_REPORT_DETAIL_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
.WithMany()
.HasForeignKey("REASON_ID")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Nav_Org");
b.Navigation("Nav_Reason");
b.Navigation("Nav_ReportDetail");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_FILE", b =>
{
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", "Nav_Report")
@ -120770,6 +121271,17 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Report");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN", b =>
{
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
@ -122621,6 +123133,32 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
.WithMany()
.HasForeignKey("REASON_ID")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL", "Nav_CheckRecordDetail")
.WithMany("Nav_CheckRecordDetailReasons")
.HasForeignKey("SECURITY_INSPECTION_RECORD_DETAIL_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Nav_CheckRecordDetail");
b.Navigation("Nav_Org");
b.Navigation("Nav_Reason");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_USER", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
@ -122806,6 +123344,32 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
.WithMany()
.HasForeignKey("REASON_ID")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL", "Nav_CheckRecordDetail")
.WithMany("Nav_CheckRecordDetailReasons")
.HasForeignKey("SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Nav_CheckRecordDetail");
b.Navigation("Nav_Org");
b.Navigation("Nav_Reason");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_USER", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
@ -129320,6 +129884,8 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Files");
b.Navigation("Nav_Photos");
b.Navigation("Nav_Reasons");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_HAND_REPORT", b =>
@ -129339,6 +129905,8 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_RectifyDetailBasics");
b.Navigation("Nav_RectifyDetailFiles");
b.Navigation("Nav_RectifyDetailReasons");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD", b =>
@ -129350,6 +129918,8 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_RectifyPhotoas");
b.Navigation("Nav_RectifyPhotobs");
b.Navigation("Nav_RectifyReasons");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", b =>
@ -129364,6 +129934,8 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_ReportDetailBasics");
b.Navigation("Nav_ReportDetailFiles");
b.Navigation("Nav_ReportDetailReasons");
});
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN", b =>
@ -129519,6 +130091,8 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_CheckRecordDetailFiles");
b.Navigation("Nav_CheckRecordDetailReasons");
b.Navigation("Nav_CheckRecordDetailUsers");
});
@ -129535,6 +130109,8 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_CheckRecordDetailFiles");
b.Navigation("Nav_CheckRecordDetailReasons");
b.Navigation("Nav_CheckRecordDetailUsers");
});

View File

@ -12968,6 +12968,17 @@ builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).
builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Photos).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerConfirmReason
public partial class SKHiddenDangerConfirmReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_CONFIRM_REASON>
{
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_CONFIRM_REASON> builder)
{
base.Configure(builder);
builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Reasons).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerHandReport
@ -13089,6 +13100,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
builder.HasOne(t => t.Nav_RectifyDetail).WithMany(t=>t.Nav_RectifyDetailFiles).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerRectifyNoticeDetailReason
public partial class SKHiddenDangerRectifyNoticeDetailReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>
{
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> builder)
{
base.Configure(builder);
builder.HasOne(t => t.Nav_RectifyDetail).WithMany(t=>t.Nav_RectifyDetailReasons).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerRectifyNoticeFile
@ -13181,6 +13203,17 @@ builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).
builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyPhotobs).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerRectifyRecordReason
public partial class SKHiddenDangerRectifyRecordReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>
{
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> builder)
{
base.Configure(builder);
builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyReasons).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerReport
@ -13245,6 +13278,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
builder.HasOne(t => t.Nav_ReportDetail).WithMany(t=>t.Nav_ReportDetailFiles).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerReportDetailReason
public partial class SKHiddenDangerReportDetailReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>
{
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> builder)
{
base.Configure(builder);
builder.HasOne(t => t.Nav_ReportDetail).WithMany(t=>t.Nav_ReportDetailReasons).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenDangerReportFile
@ -13256,6 +13300,17 @@ builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).
builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_ReportFiles).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region HiddenReason
public partial class SKHiddenReasonMap :APTEntityBaseMap<T_SK_HIDDEN_REASON>
{
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_REASON> builder)
{
base.Configure(builder);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
}
}
#endregion
#region IdentifyEvaluationPlan
@ -14235,6 +14290,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region SecurityInspectionRecordDetailReason
public partial class SKSecurityInspectionRecordDetailReasonMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>
{
public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> builder)
{
base.Configure(builder);
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailReasons).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region SecurityInspectionRecordDetailUser
@ -14316,6 +14382,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region SecurityInspectionRecordSummaryDetailReason
public partial class SKSecurityInspectionRecordSummaryDetailReasonMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>
{
public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> builder)
{
base.Configure(builder);
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailReasons).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
}
}
#endregion
#region SecurityInspectionRecordSummaryDetailUser

View File

@ -230,6 +230,9 @@ namespace APT.MS.Domain.Entities.SK
/// </summary>
[Description("隐患原因")]
[DataFieldLength(200)]
public string HIDDEN_REASON { get; set; }
public string HIDDEN_REASON { get; set; }
[Description("导航:隐患原因")]
public virtual ICollection<T_SK_HIDDEN_DANGER_CONFIRM_REASON> Nav_Reasons { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using APT.Infrastructure.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace APT.MS.Domain.Entities.SK
{
[Description("导航:隐患原因")]
public class T_SK_HIDDEN_DANGER_CONFIRM_REASON : MesEntityBase
{
/// <summary>
/// 隐患确认表
/// </summary>
[Description("隐患确认表")]
[DataFieldForeignKey("Nav_Confirm", "Nav_Reasons")]
public Guid HIDDEN_DANGER_CONFIRM_ID { get; set; }
/// <summary>
/// 导航:隐患确认表
/// </summary>
[Description("导航:隐患确认表")]
public virtual T_SK_HIDDEN_DANGER_CONFIRM Nav_Confirm { get; set; }
[Description("隐患原因")]
[DataFieldForeignKey("Nav_Reason")]
public Guid? REASON_ID { get; set; }
[Description("导航属性:隐患原因")]
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
}
}

View File

@ -175,6 +175,9 @@ namespace APT.MS.Domain.Entities.SK
/// </summary>
[Description("隐患原因")]
[DataFieldLength(200)]
public string HIDDEN_REASON { get; set; }
public string HIDDEN_REASON { get; set; }
[Description("导航:隐患原因")]
public virtual ICollection<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> Nav_RectifyDetailReasons { get; set; }
}
}

View File

@ -0,0 +1,32 @@
using APT.Infrastructure.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace APT.MS.Domain.Entities.SK
{
[Description("导航:隐患原因")]
public class T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON : MesEntityBase
{
/// <summary>
/// 隐患通知明细表
/// </summary>
[Description("隐患通知明细表")]
[DataFieldForeignKey("Nav_RectifyDetail", "Nav_RectifyDetailReasons")]
public Guid HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID { get; set; }
/// <summary>
/// 导航:隐患通知明细表
/// </summary>
[Description("导航:隐患通知明细表")]
public virtual T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL Nav_RectifyDetail { get; set; }
[Description("隐患原因")]
[DataFieldForeignKey("Nav_Reason")]
public Guid? REASON_ID { get; set; }
[Description("导航属性:隐患原因")]
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
}
}

View File

@ -285,6 +285,9 @@ namespace APT.MS.Domain.Entities.SK
/// </summary>
[Description("隐患原因")]
[DataFieldLength(200)]
public string HIDDEN_REASON { get; set; }
public string HIDDEN_REASON { get; set; }
[Description("导航:隐患原因")]
public virtual ICollection<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> Nav_RectifyReasons { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using APT.Infrastructure.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace APT.MS.Domain.Entities.SK
{
[Description("导航:隐患原因")]
public class T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON : MesEntityBase
{
/// <summary>
/// 隐患整改记录表
/// </summary>
[Description("隐患整改记录表")]
[DataFieldForeignKey("Nav_Rectify", "Nav_RectifyReasons")]
public Guid HIDDEN_DANGER_RECTIFY_RECORD_ID { get; set; }
/// <summary>
/// 导航:隐患整改记录表
/// </summary>
[Description("导航:隐患整改记录表")]
public virtual T_SK_HIDDEN_DANGER_RECTIFY_RECORD Nav_Rectify { get; set; }
[Description("隐患原因")]
[DataFieldForeignKey("Nav_Reason")]
public Guid? REASON_ID { get; set; }
[Description("导航属性:隐患原因")]
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
}
}

View File

@ -170,6 +170,8 @@ namespace APT.MS.Domain.Entities.SK
/// </summary>
[Description("隐患原因")]
[DataFieldLength(200)]
public string HIDDEN_REASON { get; set; }
public string HIDDEN_REASON { get; set; }
[Description("导航:隐患原因")]
public virtual ICollection<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> Nav_ReportDetailReasons { get; set; }
}
}

View File

@ -0,0 +1,33 @@
using APT.Infrastructure.Core;
using APT.MS.Domain.Entities.LR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace APT.MS.Domain.Entities.SK
{
[Description("导航:隐患原因")]
public class T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON : MesEntityBase
{
/// <summary>
/// 隐患上报明细表
/// </summary>
[Description("隐患上报明细表")]
[DataFieldForeignKey("Nav_ReportDetail", "Nav_ReportDetailReasons")]
public Guid HIDDEN_DANGER_REPORT_DETAIL_ID { get; set; }
/// <summary>
/// 导航:隐患上报明细表
/// </summary>
[Description("导航:隐患上报明细表")]
public virtual T_SK_HIDDEN_DANGER_REPORT_DETAIL Nav_ReportDetail { get; set; }
[Description("隐患原因")]
[DataFieldForeignKey("Nav_Reason")]
public Guid? REASON_ID { get; set; }
[Description("导航属性:隐患原因")]
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using APT.Infrastructure.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace APT.MS.Domain.Entities.SK
{
[Description("导航:隐患原因")]
public class T_SK_HIDDEN_REASON : MesEntityBase
{
[Description("编号")]
[DataFieldLength(50)]
public string CODE { get; set; }
[Description("名称")]
[DataFieldLength(100)]
public string NAME { get; set; }
}
}

View File

@ -151,6 +151,12 @@ namespace APT.MS.Domain.Entities.SK
/// </summary>
[Description("隐患原因")]
[DataFieldLength(200)]
public string HIDDEN_REASON { get; set; }
public string HIDDEN_REASON { get; set; }
/// <summary>
/// 导航属性:隐患原因
/// </summary>
[Description("导航:隐患原因")]
public virtual ICollection<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> Nav_CheckRecordDetailReasons { get; set; }
}
}

View File

@ -0,0 +1,33 @@
using APT.Infrastructure.Core;
using APT.MS.Domain.Entities.LR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace APT.MS.Domain.Entities.SK
{
[Description("导航:隐患原因")]
public class T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON : MesEntityBase
{
/// <summary>
/// 检查记录明细表
/// </summary>
[Description("检查记录明细表")]
[DataFieldForeignKey("Nav_CheckRecordDetail", "Nav_CheckRecordDetailReasons")]
public Guid SECURITY_INSPECTION_RECORD_DETAIL_ID { get; set; }
/// <summary>
/// 导航:检查记录明细表
/// </summary>
[Description("导航:检查记录明细表")]
public virtual T_SK_SECURITY_INSPECTION_RECORD_DETAIL Nav_CheckRecordDetail { get; set; }
[Description("隐患原因")]
[DataFieldForeignKey("Nav_Reason")]
public Guid? REASON_ID { get; set; }
[Description("导航属性:隐患原因")]
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
}
}

View File

@ -146,5 +146,8 @@ namespace APT.MS.Domain.Entities.SK
[Description("隐患原因")]
[DataFieldLength(200)]
public string HIDDEN_REASON { get; set; }
[Description("导航:隐患原因")]
public virtual ICollection<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> Nav_CheckRecordDetailReasons { get; set; }
}
}

View File

@ -0,0 +1,32 @@
using APT.Infrastructure.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace APT.MS.Domain.Entities.SK
{
[Description("导航:隐患原因")]
public class T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON : MesEntityBase
{
/// <summary>
/// 检查记录明细表
/// </summary>
[Description("检查记录明细表")]
[DataFieldForeignKey("Nav_CheckRecordDetail", "Nav_CheckRecordDetailReasons")]
public Guid SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID { get; set; }
/// <summary>
/// 导航:检查记录明细表
/// </summary>
[Description("导航:检查记录明细表")]
public virtual T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL Nav_CheckRecordDetail { get; set; }
[Description("隐患原因")]
[DataFieldForeignKey("Nav_Reason")]
public Guid? REASON_ID { get; set; }
[Description("导航属性:隐患原因")]
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
}
}

View File

@ -6125,6 +6125,117 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
#endregion
#region HiddenDangerConfirmReason-
/// <summary>
/// 导航:隐患原因
/// </summary>
[Route("api/SK/HiddenDangerConfirmReason")]
public partial class HiddenDangerConfirmReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_CONFIRM_REASON>
{
/// <summary>
/// 查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Entities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_CONFIRM_REASON>> Entities([FromBody]KeywordFilter filter)
{
return WitEntities(null, filter);
}
/// <summary>
/// 排序查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderEntities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_CONFIRM_REASON>> OrderEntities([FromBody]KeywordFilter filter)
{
return WitOrderEntities(null, filter);
}
/// <summary>
/// 分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Paged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_CONFIRM_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
{
return WitPaged(null, pageFilter);
}
/// <summary>
/// 排序分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderPaged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_CONFIRM_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
{
return WitOrderPaged(null, pageFilter);
}
/// <summary>
/// 根据主键删除数据
/// </summary>
/// <param name="id">主键ID</param>
/// <returns></returns>
[HttpGet, Route("Delete")]
public JsonActionResult<bool> Delete(string id)
{
return WitRealDelete(id);
}
/// <summary>
/// 更新或新增数据
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("Update")]
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_CONFIRM_REASON entity)
{
return WitUpdate(entity);
}
/// <summary>
/// 批量更新
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("BatchUpdate")]
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_CONFIRM_REASON> entity)
{
return WitBantchUpdate(entity?.Data);
}
/// <summary>
/// 批量删除数据
/// </summary>
/// <param name="ids">id字符串id用逗号分隔</param>
/// <returns></returns>
[HttpGet, Route("BatchDelete")]
public JsonActionResult<bool> BatchDelete(string ids)
{
return WitRealBatchDelete(ids);
}
/// <summary>
/// 获得单条实体数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Get")]
public JsonActionResult<T_SK_HIDDEN_DANGER_CONFIRM_REASON> Get([FromBody] KeywordFilter filter)
{
return WitEntity(null, filter);
}
}
#endregion
@ -6902,6 +7013,117 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
#endregion
#region HiddenDangerRectifyNoticeDetailReason-
/// <summary>
/// 导航:隐患原因
/// </summary>
[Route("api/SK/HiddenDangerRectifyNoticeDetailReason")]
public partial class HiddenDangerRectifyNoticeDetailReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>
{
/// <summary>
/// 查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Entities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
{
return WitEntities(null, filter);
}
/// <summary>
/// 排序查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderEntities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
{
return WitOrderEntities(null, filter);
}
/// <summary>
/// 分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Paged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
{
return WitPaged(null, pageFilter);
}
/// <summary>
/// 排序分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderPaged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
{
return WitOrderPaged(null, pageFilter);
}
/// <summary>
/// 根据主键删除数据
/// </summary>
/// <param name="id">主键ID</param>
/// <returns></returns>
[HttpGet, Route("Delete")]
public JsonActionResult<bool> Delete(string id)
{
return WitRealDelete(id);
}
/// <summary>
/// 更新或新增数据
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("Update")]
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON entity)
{
return WitUpdate(entity);
}
/// <summary>
/// 批量更新
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("BatchUpdate")]
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> entity)
{
return WitBantchUpdate(entity?.Data);
}
/// <summary>
/// 批量删除数据
/// </summary>
/// <param name="ids">id字符串id用逗号分隔</param>
/// <returns></returns>
[HttpGet, Route("BatchDelete")]
public JsonActionResult<bool> BatchDelete(string ids)
{
return WitRealBatchDelete(ids);
}
/// <summary>
/// 获得单条实体数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Get")]
public JsonActionResult<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
{
return WitEntity(null, filter);
}
}
#endregion
@ -7568,6 +7790,117 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
#endregion
#region HiddenDangerRectifyRecordReason-
/// <summary>
/// 导航:隐患原因
/// </summary>
[Route("api/SK/HiddenDangerRectifyRecordReason")]
public partial class HiddenDangerRectifyRecordReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>
{
/// <summary>
/// 查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Entities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>> Entities([FromBody]KeywordFilter filter)
{
return WitEntities(null, filter);
}
/// <summary>
/// 排序查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderEntities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>> OrderEntities([FromBody]KeywordFilter filter)
{
return WitOrderEntities(null, filter);
}
/// <summary>
/// 分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Paged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
{
return WitPaged(null, pageFilter);
}
/// <summary>
/// 排序分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderPaged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
{
return WitOrderPaged(null, pageFilter);
}
/// <summary>
/// 根据主键删除数据
/// </summary>
/// <param name="id">主键ID</param>
/// <returns></returns>
[HttpGet, Route("Delete")]
public JsonActionResult<bool> Delete(string id)
{
return WitRealDelete(id);
}
/// <summary>
/// 更新或新增数据
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("Update")]
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON entity)
{
return WitUpdate(entity);
}
/// <summary>
/// 批量更新
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("BatchUpdate")]
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> entity)
{
return WitBantchUpdate(entity?.Data);
}
/// <summary>
/// 批量删除数据
/// </summary>
/// <param name="ids">id字符串id用逗号分隔</param>
/// <returns></returns>
[HttpGet, Route("BatchDelete")]
public JsonActionResult<bool> BatchDelete(string ids)
{
return WitRealBatchDelete(ids);
}
/// <summary>
/// 获得单条实体数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Get")]
public JsonActionResult<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> Get([FromBody] KeywordFilter filter)
{
return WitEntity(null, filter);
}
}
#endregion
@ -8012,6 +8345,117 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
#endregion
#region HiddenDangerReportDetailReason-
/// <summary>
/// 导航:隐患原因
/// </summary>
[Route("api/SK/HiddenDangerReportDetailReason")]
public partial class HiddenDangerReportDetailReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>
{
/// <summary>
/// 查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Entities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
{
return WitEntities(null, filter);
}
/// <summary>
/// 排序查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderEntities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
{
return WitOrderEntities(null, filter);
}
/// <summary>
/// 分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Paged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
{
return WitPaged(null, pageFilter);
}
/// <summary>
/// 排序分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderPaged")]
public PagedActionResult<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
{
return WitOrderPaged(null, pageFilter);
}
/// <summary>
/// 根据主键删除数据
/// </summary>
/// <param name="id">主键ID</param>
/// <returns></returns>
[HttpGet, Route("Delete")]
public JsonActionResult<bool> Delete(string id)
{
return WitRealDelete(id);
}
/// <summary>
/// 更新或新增数据
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("Update")]
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON entity)
{
return WitUpdate(entity);
}
/// <summary>
/// 批量更新
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("BatchUpdate")]
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> entity)
{
return WitBantchUpdate(entity?.Data);
}
/// <summary>
/// 批量删除数据
/// </summary>
/// <param name="ids">id字符串id用逗号分隔</param>
/// <returns></returns>
[HttpGet, Route("BatchDelete")]
public JsonActionResult<bool> BatchDelete(string ids)
{
return WitRealBatchDelete(ids);
}
/// <summary>
/// 获得单条实体数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Get")]
public JsonActionResult<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
{
return WitEntity(null, filter);
}
}
#endregion
@ -8123,6 +8567,117 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
#endregion
#region HiddenReason-
/// <summary>
/// 导航:隐患原因
/// </summary>
[Route("api/SK/HiddenReason")]
public partial class HiddenReasonController : AuthorizeApiController<T_SK_HIDDEN_REASON>
{
/// <summary>
/// 查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Entities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_REASON>> Entities([FromBody]KeywordFilter filter)
{
return WitEntities(null, filter);
}
/// <summary>
/// 排序查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderEntities")]
public JsonActionResult<IEnumerable<T_SK_HIDDEN_REASON>> OrderEntities([FromBody]KeywordFilter filter)
{
return WitOrderEntities(null, filter);
}
/// <summary>
/// 分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Paged")]
public PagedActionResult<T_SK_HIDDEN_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
{
return WitPaged(null, pageFilter);
}
/// <summary>
/// 排序分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderPaged")]
public PagedActionResult<T_SK_HIDDEN_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
{
return WitOrderPaged(null, pageFilter);
}
/// <summary>
/// 根据主键删除数据
/// </summary>
/// <param name="id">主键ID</param>
/// <returns></returns>
[HttpGet, Route("Delete")]
public JsonActionResult<bool> Delete(string id)
{
return WitRealDelete(id);
}
/// <summary>
/// 更新或新增数据
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("Update")]
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_REASON entity)
{
return WitUpdate(entity);
}
/// <summary>
/// 批量更新
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("BatchUpdate")]
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_REASON> entity)
{
return WitBantchUpdate(entity?.Data);
}
/// <summary>
/// 批量删除数据
/// </summary>
/// <param name="ids">id字符串id用逗号分隔</param>
/// <returns></returns>
[HttpGet, Route("BatchDelete")]
public JsonActionResult<bool> BatchDelete(string ids)
{
return WitRealBatchDelete(ids);
}
/// <summary>
/// 获得单条实体数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Get")]
public JsonActionResult<T_SK_HIDDEN_REASON> Get([FromBody] KeywordFilter filter)
{
return WitEntity(null, filter);
}
}
#endregion
@ -15682,6 +16237,117 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
#endregion
#region SecurityInspectionRecordDetailReason-
/// <summary>
/// 导航:隐患原因
/// </summary>
[Route("api/SK/SecurityInspectionRecordDetailReason")]
public partial class SecurityInspectionRecordDetailReasonController : AuthorizeApiController<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>
{
/// <summary>
/// 查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Entities")]
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
{
return WitEntities(null, filter);
}
/// <summary>
/// 排序查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderEntities")]
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
{
return WitOrderEntities(null, filter);
}
/// <summary>
/// 分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Paged")]
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
{
return WitPaged(null, pageFilter);
}
/// <summary>
/// 排序分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderPaged")]
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
{
return WitOrderPaged(null, pageFilter);
}
/// <summary>
/// 根据主键删除数据
/// </summary>
/// <param name="id">主键ID</param>
/// <returns></returns>
[HttpGet, Route("Delete")]
public JsonActionResult<bool> Delete(string id)
{
return WitRealDelete(id);
}
/// <summary>
/// 更新或新增数据
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("Update")]
public JsonActionResult<bool> Update([FromBody]T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON entity)
{
return WitUpdate(entity);
}
/// <summary>
/// 批量更新
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("BatchUpdate")]
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> entity)
{
return WitBantchUpdate(entity?.Data);
}
/// <summary>
/// 批量删除数据
/// </summary>
/// <param name="ids">id字符串id用逗号分隔</param>
/// <returns></returns>
[HttpGet, Route("BatchDelete")]
public JsonActionResult<bool> BatchDelete(string ids)
{
return WitRealBatchDelete(ids);
}
/// <summary>
/// 获得单条实体数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Get")]
public JsonActionResult<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
{
return WitEntity(null, filter);
}
}
#endregion
@ -16348,6 +17014,117 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
#endregion
#region SecurityInspectionRecordSummaryDetailReason-
/// <summary>
/// 导航:隐患原因
/// </summary>
[Route("api/SK/SecurityInspectionRecordSummaryDetailReason")]
public partial class SecurityInspectionRecordSummaryDetailReasonController : AuthorizeApiController<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>
{
/// <summary>
/// 查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Entities")]
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
{
return WitEntities(null, filter);
}
/// <summary>
/// 排序查询所有数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderEntities")]
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
{
return WitOrderEntities(null, filter);
}
/// <summary>
/// 分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Paged")]
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
{
return WitPaged(null, pageFilter);
}
/// <summary>
/// 排序分页查询数据
/// </summary>
/// <param name="pageFilter">分页过滤实体</param>
/// <returns></returns>
[HttpPost, Route("OrderPaged")]
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
{
return WitOrderPaged(null, pageFilter);
}
/// <summary>
/// 根据主键删除数据
/// </summary>
/// <param name="id">主键ID</param>
/// <returns></returns>
[HttpGet, Route("Delete")]
public JsonActionResult<bool> Delete(string id)
{
return WitRealDelete(id);
}
/// <summary>
/// 更新或新增数据
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("Update")]
public JsonActionResult<bool> Update([FromBody]T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON entity)
{
return WitUpdate(entity);
}
/// <summary>
/// 批量更新
/// </summary>
/// <param name="entity">对象实体</param>
/// <returns></returns>
[HttpPost, Route("BatchUpdate")]
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> entity)
{
return WitBantchUpdate(entity?.Data);
}
/// <summary>
/// 批量删除数据
/// </summary>
/// <param name="ids">id字符串id用逗号分隔</param>
/// <returns></returns>
[HttpGet, Route("BatchDelete")]
public JsonActionResult<bool> BatchDelete(string ids)
{
return WitRealBatchDelete(ids);
}
/// <summary>
/// 获得单条实体数据
/// </summary>
/// <param name="filter">过滤实体</param>
/// <returns></returns>
[HttpPost, Route("Get")]
public JsonActionResult<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
{
return WitEntity(null, filter);
}
}
#endregion