辨识要求改为多选
This commit is contained in:
parent
138efccfc9
commit
c52165c765
129669
APT.Data.Migrations/Migrations/20251021064221_hmr2025102101.Designer.cs
generated
Normal file
129669
APT.Data.Migrations/Migrations/20251021064221_hmr2025102101.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
374
APT.Data.Migrations/Migrations/20251021064221_hmr2025102101.cs
Normal file
374
APT.Data.Migrations/Migrations/20251021064221_hmr2025102101.cs
Normal file
@ -0,0 +1,374 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102101 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IDENTIFY_EVALUATION_PLAN_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_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_IDENTIFY_EVALUATION_PLAN_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_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_IDENTIFY_EVALUATION_PLAN_REQUIRE_T_SK_IDENTIFY_EVALUATION_PLAN_IDENTIFY_EVALUATION_PLAN_ID",
|
||||
column: x => x.IDENTIFY_EVALUATION_PLAN_ID,
|
||||
principalTable: "T_SK_IDENTIFY_EVALUATION_PLAN",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_EVALUATION_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_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_RISK_EVALUATION_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_REQUIRE_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_RISK_EVALUATION_REQUIRE_T_SK_EVALUATION_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_EVALUATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_REQUIRE_T_SK_RISK_EVALUATION_RISK_EVALUATION_ID",
|
||||
column: x => x.RISK_EVALUATION_ID,
|
||||
principalTable: "T_SK_RISK_EVALUATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_EVALUATION_SUMMARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_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_RISK_EVALUATION_SUMMARY_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_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_RISK_EVALUATION_SUMMARY_REQUIRE_T_SK_EVALUATION_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_EVALUATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_T_SK_RISK_EVALUATION_SUMMARY_RISK_EVALUATION_SUMMARY_ID",
|
||||
column: x => x.RISK_EVALUATION_SUMMARY_ID,
|
||||
principalTable: "T_SK_RISK_EVALUATION_SUMMARY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_IDENTIFY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_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_RISK_IDENTIFY_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_REQUIRE_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_RISK_IDENTIFY_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_REQUIRE_T_SK_RISK_IDENTIFY_RISK_IDENTIFY_ID",
|
||||
column: x => x.RISK_IDENTIFY_ID,
|
||||
principalTable: "T_SK_RISK_IDENTIFY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_IDENTIFY_RESULT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_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_RISK_IDENTIFY_RESULT_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_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_RISK_IDENTIFY_RESULT_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_T_SK_RISK_IDENTIFY_RESULT_RISK_IDENTIFY_RESULT_ID",
|
||||
column: x => x.RISK_IDENTIFY_RESULT_ID,
|
||||
principalTable: "T_SK_RISK_IDENTIFY_RESULT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IDENTIFY_RESULT_SUMMARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_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_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_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_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_IDENTIFY_RESULT_SUMMARY_ID",
|
||||
column: x => x.IDENTIFY_RESULT_SUMMARY_ID,
|
||||
principalTable: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_IDENTIFY_EVALUATION_PLAN_ID",
|
||||
table: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
column: "IDENTIFY_EVALUATION_PLAN_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_ORG_ID",
|
||||
table: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_REQUIRE_RISK_EVALUATION_ID",
|
||||
table: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
column: "RISK_EVALUATION_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_RISK_EVALUATION_SUMMARY_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
column: "RISK_EVALUATION_SUMMARY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_REQUIRE_RISK_IDENTIFY_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
column: "RISK_IDENTIFY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_RISK_IDENTIFY_RESULT_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
column: "RISK_IDENTIFY_RESULT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_IDENTIFY_RESULT_SUMMARY_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
column: "IDENTIFY_RESULT_SUMMARY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_EVALUATION_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_IDENTIFY_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -77659,6 +77659,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_IDENTIFY_EVALUATION_PLAN_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE", 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>("IDENTIFY_EVALUATION_PLAN_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?>("REQUIRE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("IDENTIFY_EVALUATION_PLAN_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REQUIRE_ID");
|
||||
|
||||
b.ToTable("T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_LIBRARY_IMPORT_MAIN", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -79340,6 +79397,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_RISK_EVALUATION_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_REQUIRE", 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?>("REQUIRE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("RISK_EVALUATION_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REQUIRE_ID");
|
||||
|
||||
b.HasIndex("RISK_EVALUATION_ID");
|
||||
|
||||
b.ToTable("T_SK_RISK_EVALUATION_REQUIRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_SUMMARY", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -79812,6 +79926,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_RISK_EVALUATION_SUMMARY_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_SUMMARY_REQUIRE", 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?>("REQUIRE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("RISK_EVALUATION_SUMMARY_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REQUIRE_ID");
|
||||
|
||||
b.HasIndex("RISK_EVALUATION_SUMMARY_ID");
|
||||
|
||||
b.ToTable("T_SK_RISK_EVALUATION_SUMMARY_REQUIRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -80313,6 +80484,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_RISK_IDENTIFY_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_REQUIRE", 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?>("REQUIRE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("RISK_IDENTIFY_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REQUIRE_ID");
|
||||
|
||||
b.HasIndex("RISK_IDENTIFY_ID");
|
||||
|
||||
b.ToTable("T_SK_RISK_IDENTIFY_REQUIRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -80585,6 +80813,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_RISK_IDENTIFY_RESULT_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_REQUIRE", 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?>("REQUIRE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("RISK_IDENTIFY_RESULT_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REQUIRE_ID");
|
||||
|
||||
b.HasIndex("RISK_IDENTIFY_RESULT_ID");
|
||||
|
||||
b.ToTable("T_SK_RISK_IDENTIFY_RESULT_REQUIRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_SUMMARY", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -81045,6 +81330,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE", 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>("IDENTIFY_RESULT_SUMMARY_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?>("REQUIRE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("IDENTIFY_RESULT_SUMMARY_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REQUIRE_ID");
|
||||
|
||||
b.ToTable("T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_NAME", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -120366,6 +120708,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Plan");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN", "Nav_Plan")
|
||||
.WithMany("Nav_Requires")
|
||||
.HasForeignKey("IDENTIFY_EVALUATION_PLAN_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_REQUEST", "Nav_Require")
|
||||
.WithMany()
|
||||
.HasForeignKey("REQUIRE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Plan");
|
||||
|
||||
b.Navigation("Nav_Require");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_LIBRARY_IMPORT_MAIN", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
@ -120813,6 +121181,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_REQUIRE", 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_EVALUATION", "Nav_Require")
|
||||
.WithMany()
|
||||
.HasForeignKey("REQUIRE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION", "Nav_Evaluation")
|
||||
.WithMany("Nav_Requires")
|
||||
.HasForeignKey("RISK_EVALUATION_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Evaluation");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Require");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_SUMMARY", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
|
||||
@ -121025,6 +121419,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_SUMMARY_REQUIRE", 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_EVALUATION", "Nav_Require")
|
||||
.WithMany()
|
||||
.HasForeignKey("REQUIRE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_SUMMARY", "Nav_Evaluation")
|
||||
.WithMany("Nav_Requires")
|
||||
.HasForeignKey("RISK_EVALUATION_SUMMARY_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Evaluation");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Require");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
|
||||
@ -121228,6 +121648,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_REQUIRE", 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_REQUEST", "Nav_Require")
|
||||
.WithMany()
|
||||
.HasForeignKey("REQUIRE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY", "Nav_Identify")
|
||||
.WithMany("Nav_Requires")
|
||||
.HasForeignKey("RISK_IDENTIFY_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Identify");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Require");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
|
||||
@ -121348,6 +121794,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_REQUIRE", 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_REQUEST", "Nav_Require")
|
||||
.WithMany()
|
||||
.HasForeignKey("REQUIRE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT", "Nav_IdentifyResult")
|
||||
.WithMany("Nav_Requires")
|
||||
.HasForeignKey("RISK_IDENTIFY_RESULT_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_IdentifyResult");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Require");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_SUMMARY", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
|
||||
@ -121546,6 +122018,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_SummaryDetail");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_SUMMARY", "Nav_IdentifySummary")
|
||||
.WithMany("Nav_Requires")
|
||||
.HasForeignKey("IDENTIFY_RESULT_SUMMARY_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_REQUEST", "Nav_Require")
|
||||
.WithMany()
|
||||
.HasForeignKey("REQUIRE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Nav_IdentifySummary");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Require");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_NAME", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
@ -128655,6 +129153,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Details");
|
||||
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Requires");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN_DETAIL", b =>
|
||||
@ -128683,6 +129183,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Details");
|
||||
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Requires");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_DETAIL", b =>
|
||||
@ -128699,6 +129201,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Details");
|
||||
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Requires");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_EVALUATION_SUMMARY_DETAIL", b =>
|
||||
@ -128715,6 +129219,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Details");
|
||||
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Requires");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_DETAIL", b =>
|
||||
@ -128727,6 +129233,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Details");
|
||||
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Requires");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_DETAIL", b =>
|
||||
@ -128743,6 +129251,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Details");
|
||||
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Requires");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_RISK_IDENTIFY_RESULT_SUMMARY_DETAIL", b =>
|
||||
|
||||
@ -13303,6 +13303,17 @@ builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelet
|
||||
builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region IdentifyEvaluationPlanRequire
|
||||
public partial class SKIdentifyEvaluationPlanRequireMap :APTEntityBaseMap<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region LibraryImportMain
|
||||
@ -13637,6 +13648,17 @@ builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelet
|
||||
builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskEvaluationRequire
|
||||
public partial class SKRiskEvaluationRequireMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_REQUIRE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_REQUIRE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskEvaluationSummary
|
||||
@ -13725,6 +13747,17 @@ builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelet
|
||||
builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskEvaluationSummaryRequire
|
||||
public partial class SKRiskEvaluationSummaryRequireMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskIdentify
|
||||
@ -13819,6 +13852,17 @@ builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelet
|
||||
builder.HasOne(t => t.Nav_Identify).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskIdentifyRequire
|
||||
public partial class SKRiskIdentifyRequireMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_REQUIRE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_REQUIRE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Identify).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskIdentifyResult
|
||||
@ -13871,6 +13915,17 @@ builder.Property(t => t.IDENTIFY_POST).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_IdentifyResult).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskIdentifyResultRequire
|
||||
public partial class SKRiskIdentifyResultRequireMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_REQUIRE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_REQUIRE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_IdentifyResult).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskIdentifyResultSummary
|
||||
@ -13958,6 +14013,17 @@ builder.Property(t => t.EMERGENCY).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_SummaryDetail).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskIdentifyResultSummaryRequire
|
||||
public partial class SKRiskIdentifyResultSummaryRequireMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_IdentifySummary).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RiskName
|
||||
|
||||
@ -84,6 +84,9 @@ namespace APT.MS.Domain.Entities.SK
|
||||
public string ApplyDepartmentName { get; set; }
|
||||
[DataFieldLength(50)]
|
||||
[Description("发起人岗位")]
|
||||
public string ApplyPostName { get; set; }
|
||||
public string ApplyPostName { get; set; }
|
||||
|
||||
[Description("导航:辨识要求表")]
|
||||
public virtual ICollection<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE> Nav_Requires { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -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_IDENTIFY_EVALUATION_PLAN_REQUIRE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 辨识评估计划
|
||||
/// </summary>
|
||||
[Description("辨识评估计划")]
|
||||
[DataFieldForeignKey("Nav_Plan", "Nav_Requires")]
|
||||
public Guid IDENTIFY_EVALUATION_PLAN_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:辨识评估计划
|
||||
/// </summary>
|
||||
[Description("导航:辨识评估计划")]
|
||||
public virtual T_SK_IDENTIFY_EVALUATION_PLAN Nav_Plan { get; set; }
|
||||
|
||||
[Description("辨识要求")]
|
||||
[DataFieldForeignKey("Nav_Require")]
|
||||
public Guid? REQUIRE_ID { get; set; }
|
||||
|
||||
[Description("导航属性:辨识要求")]
|
||||
public virtual T_SK_REQUEST Nav_Require { get; set; }
|
||||
}
|
||||
}
|
||||
@ -57,7 +57,10 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// 检查附件表
|
||||
/// </summary>
|
||||
[Description("导航:检查附件表")]
|
||||
public virtual ICollection<T_SK_RISK_EVALUATION_FILE> Nav_Files { get; set; }
|
||||
public virtual ICollection<T_SK_RISK_EVALUATION_FILE> Nav_Files { get; set; }
|
||||
|
||||
[Description("导航:评价要求")]
|
||||
public virtual ICollection<T_SK_RISK_EVALUATION_REQUIRE> Nav_Requires { get; set; }
|
||||
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
|
||||
32
APT.MS.Domain/Entities/SK/T_SK_RISK_EVALUATION_REQUIRE.cs
Normal file
32
APT.MS.Domain/Entities/SK/T_SK_RISK_EVALUATION_REQUIRE.cs
Normal 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_RISK_EVALUATION_REQUIRE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全风险评估表
|
||||
/// </summary>
|
||||
[Description("安全风险评估表")]
|
||||
[DataFieldForeignKey("Nav_Evaluation", "Nav_Requires")]
|
||||
public Guid RISK_EVALUATION_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:安全风险评估表
|
||||
/// </summary>
|
||||
[Description("导航:安全风险评估表")]
|
||||
public virtual T_SK_RISK_EVALUATION Nav_Evaluation { get; set; }
|
||||
|
||||
[Description("评价要求")]
|
||||
[DataFieldForeignKey("Nav_Require")]
|
||||
public Guid? REQUIRE_ID { get; set; }
|
||||
|
||||
[Description("导航属性:评价要求")]
|
||||
public virtual T_SK_EVALUATION Nav_Require { get; set; }
|
||||
}
|
||||
}
|
||||
@ -57,7 +57,10 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// 检查附件表
|
||||
/// </summary>
|
||||
[Description("导航:检查附件表")]
|
||||
public virtual ICollection<T_SK_RISK_EVALUATION_SUMMARY_FILE> Nav_Files { get; set; }
|
||||
public virtual ICollection<T_SK_RISK_EVALUATION_SUMMARY_FILE> Nav_Files { get; set; }
|
||||
|
||||
[Description("导航:评价要求")]
|
||||
public virtual ICollection<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE> Nav_Requires { get; set; }
|
||||
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
|
||||
@ -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_RISK_EVALUATION_SUMMARY_REQUIRE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全风险评估汇总表
|
||||
/// </summary>
|
||||
[Description("安全风险评估汇总表")]
|
||||
[DataFieldForeignKey("Nav_Evaluation", "Nav_Requires")]
|
||||
public Guid RISK_EVALUATION_SUMMARY_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:安全风险评估汇总表
|
||||
/// </summary>
|
||||
[Description("导航:安全风险评估汇总表")]
|
||||
public virtual T_SK_RISK_EVALUATION_SUMMARY Nav_Evaluation { get; set; }
|
||||
[Description("评价要求")]
|
||||
[DataFieldForeignKey("Nav_Require")]
|
||||
public Guid? REQUIRE_ID { get; set; }
|
||||
|
||||
[Description("导航属性:评价要求")]
|
||||
public virtual T_SK_EVALUATION Nav_Require { get; set; }
|
||||
}
|
||||
}
|
||||
@ -60,7 +60,10 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// 检查附件表
|
||||
/// </summary>
|
||||
[Description("导航:检查附件表")]
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_FILE> Nav_Files { get; set; }
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_FILE> Nav_Files { get; set; }
|
||||
|
||||
[Description("导航:辨识要求表")]
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_REQUIRE> Nav_Requires { get; set; }
|
||||
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
|
||||
32
APT.MS.Domain/Entities/SK/T_SK_RISK_IDENTIFY_REQUIRE.cs
Normal file
32
APT.MS.Domain/Entities/SK/T_SK_RISK_IDENTIFY_REQUIRE.cs
Normal 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_RISK_IDENTIFY_REQUIRE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全风险辨识
|
||||
/// </summary>
|
||||
[Description("安全风险辨识")]
|
||||
[DataFieldForeignKey("Nav_Identify", "Nav_Requires")]
|
||||
public Guid RISK_IDENTIFY_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:安全风险辨识
|
||||
/// </summary>
|
||||
[Description("导航:安全风险辨识")]
|
||||
public virtual T_SK_RISK_IDENTIFY Nav_Identify { get; set; }
|
||||
|
||||
[Description("辨识要求")]
|
||||
[DataFieldForeignKey("Nav_Require")]
|
||||
public Guid? REQUIRE_ID { get; set; }
|
||||
|
||||
[Description("导航属性:辨识要求")]
|
||||
public virtual T_SK_REQUEST Nav_Require { get; set; }
|
||||
}
|
||||
}
|
||||
@ -68,7 +68,10 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// 检查附件表
|
||||
/// </summary>
|
||||
[Description("导航:检查附件表")]
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_RESULT_FILE> Nav_Files { get; set; }
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_RESULT_FILE> Nav_Files { get; set; }
|
||||
|
||||
[Description("导航:辨识要求表")]
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_RESULT_REQUIRE> Nav_Requires { get; set; }
|
||||
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
|
||||
@ -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_RISK_IDENTIFY_RESULT_REQUIRE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全风险辨识结果
|
||||
/// </summary>
|
||||
[Description("安全风险辨识结果")]
|
||||
[DataFieldForeignKey("Nav_IdentifyResult", "Nav_Requires")]
|
||||
public Guid RISK_IDENTIFY_RESULT_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:安全风险辨识结果
|
||||
/// </summary>
|
||||
[Description("导航:安全风险辨识结果")]
|
||||
public virtual T_SK_RISK_IDENTIFY_RESULT Nav_IdentifyResult { get; set; }
|
||||
|
||||
[Description("辨识要求")]
|
||||
[DataFieldForeignKey("Nav_Require")]
|
||||
public Guid? REQUIRE_ID { get; set; }
|
||||
|
||||
[Description("导航属性:辨识要求")]
|
||||
public virtual T_SK_REQUEST Nav_Require { get; set; }
|
||||
}
|
||||
}
|
||||
@ -71,7 +71,10 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// 检查附件表
|
||||
/// </summary>
|
||||
[Description("导航:检查附件表")]
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_FILE> Nav_Files { get; set; }
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_FILE> Nav_Files { get; set; }
|
||||
|
||||
[Description("导航:辨识要求表")]
|
||||
public virtual ICollection<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE> Nav_Requires { get; set; }
|
||||
|
||||
[Description("状态")]
|
||||
[EnumName("PFStandardStatus")]
|
||||
|
||||
@ -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_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全风险辨识结果汇总
|
||||
/// </summary>
|
||||
[Description("安全风险辨识结果汇总")]
|
||||
[DataFieldForeignKey("Nav_IdentifySummary", "Nav_Requires")]
|
||||
public Guid IDENTIFY_RESULT_SUMMARY_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:安全风险辨识结果汇总
|
||||
/// </summary>
|
||||
[Description("导航:安全风险辨识结果汇总")]
|
||||
public virtual T_SK_RISK_IDENTIFY_RESULT_SUMMARY Nav_IdentifySummary { get; set; }
|
||||
|
||||
[Description("辨识要求")]
|
||||
[DataFieldForeignKey("Nav_Require")]
|
||||
public Guid? REQUIRE_ID { get; set; }
|
||||
|
||||
[Description("导航属性:辨识要求")]
|
||||
public virtual T_SK_REQUEST Nav_Require { get; set; }
|
||||
}
|
||||
}
|
||||
@ -50,6 +50,8 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
entity.Nav_Details = null;
|
||||
var files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
var requires = entity.Nav_Requires;
|
||||
entity.Nav_Requires = null;
|
||||
entity.ApplyDepartmentName = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == departId).NAME;
|
||||
entity.ApplyPostName = this.GetEntity<T_FM_USER>(t => t.ID == userId, "Nav_Person.Nav_Post")?.Nav_Person?.Nav_Post?.NAME;
|
||||
if (entity.START_DATE.Value.Date < DateTime.Now.Date)
|
||||
@ -99,6 +101,15 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
item.Nav_ImgFile = null;
|
||||
}
|
||||
}
|
||||
if (requires != null && requires.Any())
|
||||
{
|
||||
foreach (var item in requires)
|
||||
{
|
||||
item.ORG_ID = entity.ORG_ID;
|
||||
item.IDENTIFY_EVALUATION_PLAN_ID = entity.ID;
|
||||
item.Nav_Require = null;
|
||||
}
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
@ -129,6 +140,8 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (userList != null && userList.Any())
|
||||
BantchSaveEntityNoCommit(userList);
|
||||
}, null, null, null, null, null, "SK031_SHOWPRINT", null, "安全风险辨识与评估计划审批");
|
||||
@ -147,6 +160,8 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (userList != null && userList.Any())
|
||||
BantchSaveEntityNoCommit(userList);
|
||||
});
|
||||
@ -169,7 +184,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
this.ThrowError("060010");
|
||||
filter.IgnoreDataRule = true;
|
||||
var result = this.GetEntity<T_SK_IDENTIFY_EVALUATION_PLAN>(id, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment",
|
||||
"Nav_Files.Nav_ImgFile"});
|
||||
"Nav_Files.Nav_ImgFile","Nav_Requires.Nav_Require"});
|
||||
if (result != null)
|
||||
{
|
||||
var details = this.GetEntities<T_SK_IDENTIFY_EVALUATION_PLAN_DETAIL>(t => t.IDENTIFY_EVALUATION_PLAN_ID == result.ID, new BaseFilter(filter.OrgId), "Nav_Department");
|
||||
|
||||
@ -1,19 +1,21 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.SK;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.MS.Domain.Enums.SK;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.VisualStudio.Web.CodeGeneration.Utils;
|
||||
using MySqlX.XDevAPI.Common;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using APT.MS.Domain.Enums.SK;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace APT.SK.WebApi.Controllers.Api
|
||||
{
|
||||
@ -48,7 +50,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (entity.IDENTIFY_EVALUATION_PLAN_ID == null)
|
||||
entity.APPLY_DEPARTMENT_ID = this.GetEntity<T_SK_IDENTIFY_EVALUATION_PLAN>(t => t.START_DATE.Value.Date == entity.START_DATE.Value.Date && t.STATUS == PFStandardStatus.Archived && t.ISSEND == true)?.ID;
|
||||
var details = entity.Nav_Details;
|
||||
entity.Nav_Details = null;
|
||||
entity.Nav_Details = null;
|
||||
var requires = entity.Nav_Requires;
|
||||
entity.Nav_Requires = null;
|
||||
var files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
entity.ApplyDepartmentName = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == departId).NAME;
|
||||
@ -178,6 +182,15 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
item.RISK_EVALUATION_ID = entity.ID;
|
||||
item.Nav_ImgFile = null;
|
||||
}
|
||||
}
|
||||
if (requires != null && requires.Any())
|
||||
{
|
||||
foreach (var item in requires)
|
||||
{
|
||||
item.ORG_ID = entity.ORG_ID;
|
||||
item.RISK_EVALUATION_ID = entity.ID;
|
||||
item.Nav_Require = null;
|
||||
}
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
@ -208,6 +221,8 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -231,6 +246,8 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -254,7 +271,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
this.ThrowError("060010");
|
||||
filter.IgnoreDataRule = true;
|
||||
var result = this.GetEntity<T_SK_RISK_EVALUATION>(id, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment","Nav_Require",
|
||||
"Nav_Files.Nav_ImgFile"});
|
||||
"Nav_Files.Nav_ImgFile","Nav_Requires.Nav_Require"});
|
||||
if (result != null)
|
||||
{
|
||||
var details = this.GetEntities<T_SK_RISK_EVALUATION_DETAIL>(t => t.RISK_EVALUATION_ID == result.ID, new BaseFilter(filter.OrgId), "Nav_Area", "Nav_Type", "Nav_RiskName", "Nav_SCOREL", "Nav_SCOREE", "Nav_SCOREC", "Nav_ProductionUnit");
|
||||
|
||||
@ -46,7 +46,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (entity.IDENTIFY_EVALUATION_PLAN_ID == null)
|
||||
entity.APPLY_DEPARTMENT_ID = this.GetEntity<T_SK_IDENTIFY_EVALUATION_PLAN>(t => t.START_DATE.Value.Date == entity.START_DATE.Value.Date && t.STATUS == PFStandardStatus.Archived && t.ISSEND == true)?.ID;
|
||||
var details = entity.Nav_Details;
|
||||
entity.Nav_Details = null;
|
||||
entity.Nav_Details = null;
|
||||
var requires = entity.Nav_Requires;
|
||||
entity.Nav_Requires = null;
|
||||
var files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
entity.ApplyDepartmentName = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == departId).NAME;
|
||||
@ -101,6 +103,15 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
item.Nav_ImgFile = null;
|
||||
}
|
||||
}
|
||||
if (requires != null && requires.Any())
|
||||
{
|
||||
foreach (var item in requires)
|
||||
{
|
||||
item.ORG_ID = entity.ORG_ID;
|
||||
item.RISK_EVALUATION_SUMMARY_ID = entity.ID;
|
||||
item.Nav_Require = null;
|
||||
}
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
@ -119,7 +130,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -134,7 +147,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -160,7 +175,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
this.ThrowError("060010");
|
||||
filter.IgnoreDataRule = true;
|
||||
var result = this.GetEntity<T_SK_RISK_EVALUATION_SUMMARY>(id, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment","Nav_Require",
|
||||
"Nav_Files.Nav_ImgFile"});
|
||||
"Nav_Files.Nav_ImgFile","Nav_Requires.Nav_Require"});
|
||||
if (result != null)
|
||||
{
|
||||
var details = this.GetEntities<T_SK_RISK_EVALUATION_SUMMARY_DETAIL>(t => t.RISK_EVALUATION_SUMMARY_ID == result.ID, new BaseFilter(filter.OrgId), "Nav_Area", "Nav_Type", "Nav_RiskName", "Nav_SCOREL", "Nav_SCOREE", "Nav_SCOREC", "Nav_ProductionUnit");
|
||||
|
||||
@ -49,7 +49,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (entity.IDENTIFY_EVALUATION_PLAN_ID == null)
|
||||
entity.APPLY_DEPARTMENT_ID = this.GetEntity<T_SK_IDENTIFY_EVALUATION_PLAN>(t => t.START_DATE.Value.Date == entity.START_DATE.Value.Date && t.STATUS == PFStandardStatus.Archived && t.ISSEND == true)?.ID;
|
||||
var details = entity.Nav_Details;
|
||||
entity.Nav_Details = null;
|
||||
entity.Nav_Details = null;
|
||||
var requires = entity.Nav_Requires;
|
||||
entity.Nav_Requires = null;
|
||||
var files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
entity.ApplyDepartmentName = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == departId).NAME;
|
||||
@ -115,6 +117,15 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
item.RISK_IDENTIFY_ID = entity.ID;
|
||||
item.Nav_ImgFile = null;
|
||||
}
|
||||
}
|
||||
if (requires != null && requires.Any())
|
||||
{
|
||||
foreach (var item in requires)
|
||||
{
|
||||
item.ORG_ID = entity.ORG_ID;
|
||||
item.RISK_IDENTIFY_ID = entity.ID;
|
||||
item.Nav_Require = null;
|
||||
}
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
@ -144,7 +155,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
}, null, null, null, null, null, "SK033_SHOWPRINT", null, "安全风险辨识表审批");
|
||||
@ -161,7 +174,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
});
|
||||
@ -209,7 +224,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
this.ThrowError("060010");
|
||||
filter.IgnoreDataRule = true;
|
||||
var result = this.GetEntity<T_SK_RISK_IDENTIFY>(id, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment","Nav_Require",
|
||||
"Nav_Files.Nav_ImgFile"});
|
||||
"Nav_Files.Nav_ImgFile","Nav_Requires.Nav_Require"});
|
||||
if (result != null)
|
||||
{
|
||||
var details = this.GetEntities<T_SK_RISK_IDENTIFY_DETAIL>(t => t.RISK_IDENTIFY_ID == result.ID, new BaseFilter(filter.OrgId), "Nav_Area", "Nav_Type", "Nav_RiskName", "Nav_ProductionUnit");
|
||||
|
||||
@ -1,18 +1,20 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.BaseData.Domain.IServices.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.SK;
|
||||
using APT.MS.Domain.Enums;
|
||||
using APT.MS.Domain.Enums.SK;
|
||||
using APT.Utility;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using APT.MS.Domain.Enums.SK;
|
||||
using Microsoft.VisualStudio.Web.CodeGeneration.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace APT.SK.WebApi.Controllers.Api
|
||||
@ -48,7 +50,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (entity.IDENTIFY_EVALUATION_PLAN_ID == null)
|
||||
entity.APPLY_DEPARTMENT_ID = this.GetEntity<T_SK_RISK_IDENTIFY>(t => t.ID == entity.IDENTIFY_ID)?.IDENTIFY_EVALUATION_PLAN_ID;
|
||||
var details = entity.Nav_Details;
|
||||
entity.Nav_Details = null;
|
||||
entity.Nav_Details = null;
|
||||
var requires = entity.Nav_Requires;
|
||||
entity.Nav_Requires = null;
|
||||
var files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
entity.ApplyDepartmentName = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == departId).NAME;
|
||||
@ -150,6 +154,15 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
item.RISK_IDENTIFY_RESULT_ID = entity.ID;
|
||||
item.Nav_ImgFile = null;
|
||||
}
|
||||
}
|
||||
if (requires != null && requires.Any())
|
||||
{
|
||||
foreach (var item in requires)
|
||||
{
|
||||
item.ORG_ID = entity.ORG_ID;
|
||||
item.RISK_IDENTIFY_RESULT_ID = entity.ID;
|
||||
item.Nav_Require = null;
|
||||
}
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
@ -179,7 +192,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -204,7 +219,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -230,7 +247,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
this.ThrowError("060010");
|
||||
filter.IgnoreDataRule = true;
|
||||
var result = this.GetEntity<T_SK_RISK_IDENTIFY_RESULT>(id, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment","Nav_Require",
|
||||
"Nav_Files.Nav_ImgFile"});
|
||||
"Nav_Files.Nav_ImgFile","Nav_Requires.Nav_Require"});
|
||||
if (result != null)
|
||||
{
|
||||
var details = this.GetEntities<T_SK_RISK_IDENTIFY_RESULT_DETAIL>(t => t.RISK_IDENTIFY_RESULT_ID == result.ID, new BaseFilter(filter.OrgId), "Nav_Area", "Nav_Type", "Nav_RiskName", "Nav_ProductionUnit");
|
||||
|
||||
@ -46,7 +46,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (entity.IDENTIFY_EVALUATION_PLAN_ID == null)
|
||||
entity.APPLY_DEPARTMENT_ID = this.GetEntity<T_SK_RISK_IDENTIFY_RESULT>(t => t.ID == entity.IDENTIFY_RESULT_ID)?.IDENTIFY_EVALUATION_PLAN_ID;
|
||||
var details = entity.Nav_Details;
|
||||
entity.Nav_Details = null;
|
||||
entity.Nav_Details = null;
|
||||
var requires = entity.Nav_Requires;
|
||||
entity.Nav_Requires = null;
|
||||
var files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
entity.ApplyDepartmentName = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == departId).NAME;
|
||||
@ -107,6 +109,15 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
item.IDENTIFY_RESULT_SUMMARY = entity.ID;
|
||||
item.Nav_ImgFile = null;
|
||||
}
|
||||
}
|
||||
if (requires != null && requires.Any())
|
||||
{
|
||||
foreach (var item in requires)
|
||||
{
|
||||
item.ORG_ID = entity.ORG_ID;
|
||||
item.IDENTIFY_RESULT_SUMMARY_ID = entity.ID;
|
||||
item.Nav_Require = null;
|
||||
}
|
||||
}
|
||||
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
@ -132,7 +143,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -155,7 +168,9 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (details != null && details.Any())
|
||||
BantchSaveEntityNoCommit(details);
|
||||
if (files != null && files.Any())
|
||||
BantchSaveEntityNoCommit(files);
|
||||
BantchSaveEntityNoCommit(files);
|
||||
if (requires != null && requires.Any())
|
||||
BantchSaveEntityNoCommit(requires);
|
||||
if (measureList != null && measureList.Any())
|
||||
BantchSaveEntityNoCommit(measureList);
|
||||
if (departList != null && departList.Any())
|
||||
@ -182,7 +197,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
this.ThrowError("060010");
|
||||
filter.IgnoreDataRule = true;
|
||||
var result = this.GetEntity<T_SK_RISK_IDENTIFY_RESULT_SUMMARY>(id, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment","Nav_Require",
|
||||
"Nav_Files.Nav_ImgFile"});
|
||||
"Nav_Files.Nav_ImgFile","Nav_Requires.Nav_Require"});
|
||||
if (result != null)
|
||||
{
|
||||
var details = this.GetEntities<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_DETAIL>(t => t.IDENTIFY_RESULT_SUMMARY_ID == result.ID, new BaseFilter(filter.OrgId), "Nav_Area", "Nav_Type", "Nav_RiskName", "Nav_ProductionUnit");
|
||||
|
||||
@ -8567,6 +8567,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region IdentifyEvaluationPlanRequire-辨识要求表
|
||||
/// <summary>
|
||||
/// 辨识要求表
|
||||
/// </summary>
|
||||
[Route("api/SK/IdentifyEvaluationPlanRequire")]
|
||||
public partial class IdentifyEvaluationPlanRequireController : AuthorizeApiController<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE> 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_IDENTIFY_EVALUATION_PLAN_REQUIRE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE> 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_IDENTIFY_EVALUATION_PLAN_REQUIRE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -10798,6 +10909,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RiskEvaluationRequire-导航属性:评价要求
|
||||
/// <summary>
|
||||
/// 导航属性:评价要求
|
||||
/// </summary>
|
||||
[Route("api/SK/RiskEvaluationRequire")]
|
||||
public partial class RiskEvaluationRequireController : AuthorizeApiController<T_SK_RISK_EVALUATION_REQUIRE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_EVALUATION_REQUIRE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_EVALUATION_REQUIRE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_RISK_EVALUATION_REQUIRE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_RISK_EVALUATION_REQUIRE> 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_RISK_EVALUATION_REQUIRE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_RISK_EVALUATION_REQUIRE> 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_RISK_EVALUATION_REQUIRE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -11464,6 +11686,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RiskEvaluationSummaryRequire-导航属性:评价要求
|
||||
/// <summary>
|
||||
/// 导航属性:评价要求
|
||||
/// </summary>
|
||||
[Route("api/SK/RiskEvaluationSummaryRequire")]
|
||||
public partial class RiskEvaluationSummaryRequireController : AuthorizeApiController<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE> 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_RISK_EVALUATION_SUMMARY_REQUIRE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE> 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_RISK_EVALUATION_SUMMARY_REQUIRE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -12241,6 +12574,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RiskIdentifyRequire-辨识要求表
|
||||
/// <summary>
|
||||
/// 辨识要求表
|
||||
/// </summary>
|
||||
[Route("api/SK/RiskIdentifyRequire")]
|
||||
public partial class RiskIdentifyRequireController : AuthorizeApiController<T_SK_RISK_IDENTIFY_REQUIRE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_IDENTIFY_REQUIRE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_IDENTIFY_REQUIRE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_RISK_IDENTIFY_REQUIRE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_RISK_IDENTIFY_REQUIRE> 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_RISK_IDENTIFY_REQUIRE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_RISK_IDENTIFY_REQUIRE> 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_RISK_IDENTIFY_REQUIRE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -12574,6 +13018,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RiskIdentifyResultRequire-辨识要求表
|
||||
/// <summary>
|
||||
/// 辨识要求表
|
||||
/// </summary>
|
||||
[Route("api/SK/RiskIdentifyResultRequire")]
|
||||
public partial class RiskIdentifyResultRequireController : AuthorizeApiController<T_SK_RISK_IDENTIFY_RESULT_REQUIRE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_IDENTIFY_RESULT_REQUIRE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_IDENTIFY_RESULT_REQUIRE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_RISK_IDENTIFY_RESULT_REQUIRE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_RISK_IDENTIFY_RESULT_REQUIRE> 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_RISK_IDENTIFY_RESULT_REQUIRE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_RISK_IDENTIFY_RESULT_REQUIRE> 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_RISK_IDENTIFY_RESULT_REQUIRE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -13240,6 +13795,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RiskIdentifyResultSummaryRequire-辨识要求表
|
||||
/// <summary>
|
||||
/// 辨识要求表
|
||||
/// </summary>
|
||||
[Route("api/SK/RiskIdentifyResultSummaryRequire")]
|
||||
public partial class RiskIdentifyResultSummaryRequireController : AuthorizeApiController<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE> 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_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE> 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_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user