213
This commit is contained in:
commit
fdf4bd38d6
129897
APT.Data.Migrations/Migrations/20251023121339_hmr2025102304.Designer.cs
generated
Normal file
129897
APT.Data.Migrations/Migrations/20251023121339_hmr2025102304.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,79 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102304 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_CONFIRM",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HIDDEN_REASON",
|
||||
table: "T_SK_HIDDEN_DANGER_CONFIRM");
|
||||
}
|
||||
}
|
||||
}
|
||||
130473
APT.Data.Migrations/Migrations/20251024022928_hmr2025102401.Designer.cs
generated
Normal file
130473
APT.Data.Migrations/Migrations/20251024022928_hmr2025102401.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
412
APT.Data.Migrations/Migrations/20251024022928_hmr2025102401.cs
Normal file
412
APT.Data.Migrations/Migrations/20251024022928_hmr2025102401.cs
Normal file
@ -0,0 +1,412 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102401 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_HIDDEN_REASON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_HIDDEN_REASON", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_REASON_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
HIDDEN_DANGER_CONFIRM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_CONFIRM_REASON", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_CONFIRM_REASON_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_CONFIRM_REASON_T_SK_HIDDEN_DANGER_CONFIRM_HIDDEN_DANGER_CONFIRM_ID",
|
||||
column: x => x.HIDDEN_DANGER_CONFIRM_ID,
|
||||
principalTable: "T_SK_HIDDEN_DANGER_CONFIRM",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_CONFIRM_REASON_T_SK_HIDDEN_REASON_REASON_ID",
|
||||
column: x => x.REASON_ID,
|
||||
principalTable: "T_SK_HIDDEN_REASON",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL~",
|
||||
column: x => x.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID,
|
||||
principalTable: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
|
||||
column: x => x.REASON_ID,
|
||||
principalTable: "T_SK_HIDDEN_REASON",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
HIDDEN_DANGER_RECTIFY_RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_HIDDEN_DANGER_RECTIFY_RECORD_ID",
|
||||
column: x => x.HIDDEN_DANGER_RECTIFY_RECORD_ID,
|
||||
principalTable: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_T_SK_HIDDEN_REASON_REASON_ID",
|
||||
column: x => x.REASON_ID,
|
||||
principalTable: "T_SK_HIDDEN_REASON",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
HIDDEN_DANGER_REPORT_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_T_SK_HIDDEN_DANGER_REPORT_DETAIL_HIDDEN_DANGER_REPORT_DETAIL_ID",
|
||||
column: x => x.HIDDEN_DANGER_REPORT_DETAIL_ID,
|
||||
principalTable: "T_SK_HIDDEN_DANGER_REPORT_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
|
||||
column: x => x.REASON_ID,
|
||||
principalTable: "T_SK_HIDDEN_REASON",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
SECURITY_INSPECTION_RECORD_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
|
||||
column: x => x.REASON_ID,
|
||||
principalTable: "T_SK_HIDDEN_REASON",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_SECURITY_INSPECTION_RECORD_DETAIL_ID",
|
||||
column: x => x.SECURITY_INSPECTION_RECORD_DETAIL_ID,
|
||||
principalTable: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REASON_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_T_SK_HIDDEN_REASON_REASON_ID",
|
||||
column: x => x.REASON_ID,
|
||||
principalTable: "T_SK_HIDDEN_REASON",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_SECURITY_INSPECTION_REC~",
|
||||
column: x => x.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID,
|
||||
principalTable: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_CONFIRM_REASON_HIDDEN_DANGER_CONFIRM_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
|
||||
column: "HIDDEN_DANGER_CONFIRM_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_CONFIRM_REASON_ORG_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_CONFIRM_REASON_REASON_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_CONFIRM_REASON",
|
||||
column: "REASON_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
|
||||
column: "HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_ORG_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON_REASON_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON",
|
||||
column: "REASON_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_HIDDEN_DANGER_RECTIFY_RECORD_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
|
||||
column: "HIDDEN_DANGER_RECTIFY_RECORD_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_ORG_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON_REASON_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON",
|
||||
column: "REASON_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_HIDDEN_DANGER_REPORT_DETAIL_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
|
||||
column: "HIDDEN_DANGER_REPORT_DETAIL_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_ORG_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON_REASON_ID",
|
||||
table: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON",
|
||||
column: "REASON_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_HIDDEN_REASON_ORG_ID",
|
||||
table: "T_SK_HIDDEN_REASON",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_ORG_ID",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_REASON_ID",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
|
||||
column: "REASON_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON_SECURITY_INSPECTION_RECORD_DETAIL_ID",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON",
|
||||
column: "SECURITY_INSPECTION_RECORD_DETAIL_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_ORG_ID",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_REASON_ID",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
|
||||
column: "REASON_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID",
|
||||
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON",
|
||||
column: "SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_HIDDEN_DANGER_CONFIRM_REASON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_HIDDEN_REASON");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -75691,6 +75691,10 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<string>("HIDDEN_REASON")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -75928,6 +75932,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_CONFIRM_PHOTO");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_CONFIRM_REASON", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("HIDDEN_DANGER_CONFIRM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("REASON_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("HIDDEN_DANGER_CONFIRM_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REASON_ID");
|
||||
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_CONFIRM_REASON");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_HAND_REPORT", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -76380,6 +76441,10 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<string>("HIDDEN_REASON")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<Guid?>("IMPLEMENT_USER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -76547,6 +76612,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("REASON_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REASON_ID");
|
||||
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_FILE", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -76719,6 +76841,10 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<string>("HIDDEN_REASON")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<Guid?>("IMPLEMENT_USER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -77027,6 +77153,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_RECORD_PHOTOB");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("HIDDEN_DANGER_RECTIFY_RECORD_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("REASON_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("HIDDEN_DANGER_RECTIFY_RECORD_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REASON_ID");
|
||||
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -77193,6 +77376,10 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<string>("HIDDEN_REASON")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<bool>("ISCHECK")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -77355,6 +77542,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_REPORT_DETAIL_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("HIDDEN_DANGER_REPORT_DETAIL_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("REASON_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("HIDDEN_DANGER_REPORT_DETAIL_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REASON_ID");
|
||||
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_FILE", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -77412,6 +77656,61 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_HIDDEN_DANGER_REPORT_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("CODE")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("NAME")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.ToTable("T_SK_HIDDEN_REASON");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -82344,6 +82643,10 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<string>("HIDDEN_REASON")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -82498,6 +82801,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_DETAIL_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("REASON_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("SECURITY_INSPECTION_RECORD_DETAIL_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REASON_ID");
|
||||
|
||||
b.HasIndex("SECURITY_INSPECTION_RECORD_DETAIL_ID");
|
||||
|
||||
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_USER", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -82783,6 +83143,10 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<string>("HIDDEN_REASON")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -82937,6 +83301,63 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("REASON_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("REASON_ID");
|
||||
|
||||
b.HasIndex("SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID");
|
||||
|
||||
b.ToTable("T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_USER", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -120114,6 +120535,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_CONFIRM_REASON", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_CONFIRM", "Nav_Confirm")
|
||||
.WithMany("Nav_Reasons")
|
||||
.HasForeignKey("HIDDEN_DANGER_CONFIRM_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
|
||||
.WithMany()
|
||||
.HasForeignKey("REASON_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Nav_Confirm");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Reason");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_HAND_REPORT", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
|
||||
@ -120372,6 +120819,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_RectifyDetail");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL", "Nav_RectifyDetail")
|
||||
.WithMany("Nav_RectifyDetailReasons")
|
||||
.HasForeignKey("HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
|
||||
.WithMany()
|
||||
.HasForeignKey("REASON_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Reason");
|
||||
|
||||
b.Navigation("Nav_RectifyDetail");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_FILE", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_NOTICE", "Nav_Rectify")
|
||||
@ -120587,6 +121060,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Rectify");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD", "Nav_Rectify")
|
||||
.WithMany("Nav_RectifyReasons")
|
||||
.HasForeignKey("HIDDEN_DANGER_RECTIFY_RECORD_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
|
||||
.WithMany()
|
||||
.HasForeignKey("REASON_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Reason");
|
||||
|
||||
b.Navigation("Nav_Rectify");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
|
||||
@ -120726,6 +121225,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_ReportDetail");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_DETAIL", "Nav_ReportDetail")
|
||||
.WithMany("Nav_ReportDetailReasons")
|
||||
.HasForeignKey("HIDDEN_DANGER_REPORT_DETAIL_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
|
||||
.WithMany()
|
||||
.HasForeignKey("REASON_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Reason");
|
||||
|
||||
b.Navigation("Nav_ReportDetail");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT_FILE", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", "Nav_Report")
|
||||
@ -120753,6 +121278,17 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Report");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ApplyDepartment")
|
||||
@ -122604,6 +123140,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
|
||||
.WithMany()
|
||||
.HasForeignKey("REASON_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL", "Nav_CheckRecordDetail")
|
||||
.WithMany("Nav_CheckRecordDetailReasons")
|
||||
.HasForeignKey("SECURITY_INSPECTION_RECORD_DETAIL_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetail");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Reason");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_DETAIL_USER", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
@ -122789,6 +123351,32 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_REASON", "Nav_Reason")
|
||||
.WithMany()
|
||||
.HasForeignKey("REASON_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL", "Nav_CheckRecordDetail")
|
||||
.WithMany("Nav_CheckRecordDetailReasons")
|
||||
.HasForeignKey("SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetail");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_Reason");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_USER", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
@ -129303,6 +129891,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Photos");
|
||||
|
||||
b.Navigation("Nav_Reasons");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_HAND_REPORT", b =>
|
||||
@ -129322,6 +129912,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_RectifyDetailBasics");
|
||||
|
||||
b.Navigation("Nav_RectifyDetailFiles");
|
||||
|
||||
b.Navigation("Nav_RectifyDetailReasons");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_RECTIFY_RECORD", b =>
|
||||
@ -129333,6 +129925,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_RectifyPhotoas");
|
||||
|
||||
b.Navigation("Nav_RectifyPhotobs");
|
||||
|
||||
b.Navigation("Nav_RectifyReasons");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_HIDDEN_DANGER_REPORT", b =>
|
||||
@ -129347,6 +129941,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_ReportDetailBasics");
|
||||
|
||||
b.Navigation("Nav_ReportDetailFiles");
|
||||
|
||||
b.Navigation("Nav_ReportDetailReasons");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SK.T_SK_IDENTIFY_EVALUATION_PLAN", b =>
|
||||
@ -129502,6 +130098,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetailFiles");
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetailReasons");
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetailUsers");
|
||||
});
|
||||
|
||||
@ -129518,6 +130116,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetailFiles");
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetailReasons");
|
||||
|
||||
b.Navigation("Nav_CheckRecordDetailUsers");
|
||||
});
|
||||
|
||||
|
||||
@ -12933,6 +12933,7 @@ builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.CONTEXT);
|
||||
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
|
||||
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
|
||||
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@ -12967,6 +12968,17 @@ builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).
|
||||
builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Photos).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerConfirmReason
|
||||
public partial class SKHiddenDangerConfirmReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_CONFIRM_REASON>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_CONFIRM_REASON> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Reasons).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerHandReport
|
||||
@ -13064,6 +13076,7 @@ builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_ImplementUser).WithMany().HasForeignKey(t => t.IMPLEMENT_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_AcceptUser).WithMany().HasForeignKey(t => t.ACCEPT_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.Nav_DetailContents);
|
||||
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@ -13087,6 +13100,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
|
||||
builder.HasOne(t => t.Nav_RectifyDetail).WithMany(t=>t.Nav_RectifyDetailFiles).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerRectifyNoticeDetailReason
|
||||
public partial class SKHiddenDangerRectifyNoticeDetailReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_RectifyDetail).WithMany(t=>t.Nav_RectifyDetailReasons).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerRectifyNoticeFile
|
||||
@ -13133,6 +13157,7 @@ builder.Ignore(t => t.CONTEXT);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
|
||||
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
|
||||
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@ -13178,6 +13203,17 @@ builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).
|
||||
builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyPhotobs).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerRectifyRecordReason
|
||||
public partial class SKHiddenDangerRectifyRecordReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyReasons).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerReport
|
||||
@ -13218,6 +13254,7 @@ builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_RecitifyUser).WithMany().HasForeignKey(t => t.RECITIFY_USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.STATUS);
|
||||
builder.Ignore(t => t.Nav_DetailContents);
|
||||
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@ -13241,6 +13278,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
|
||||
builder.HasOne(t => t.Nav_ReportDetail).WithMany(t=>t.Nav_ReportDetailFiles).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerReportDetailReason
|
||||
public partial class SKHiddenDangerReportDetailReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ReportDetail).WithMany(t=>t.Nav_ReportDetailReasons).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerReportFile
|
||||
@ -13252,6 +13300,17 @@ builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).
|
||||
builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_ReportFiles).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region HiddenReason
|
||||
public partial class SKHiddenReasonMap :APTEntityBaseMap<T_SK_HIDDEN_REASON>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_REASON> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(50);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region IdentifyEvaluationPlan
|
||||
@ -14207,6 +14266,7 @@ builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTI
|
||||
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
|
||||
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
|
||||
builder.Ignore(t => t.Nav_DetailContents);
|
||||
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@ -14230,6 +14290,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
|
||||
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SecurityInspectionRecordDetailReason
|
||||
public partial class SKSecurityInspectionRecordDetailReasonMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailReasons).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SecurityInspectionRecordDetailUser
|
||||
@ -14287,6 +14358,7 @@ builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTI
|
||||
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
|
||||
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
|
||||
builder.Ignore(t => t.Nav_DetailContents);
|
||||
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@ -14310,6 +14382,17 @@ builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(
|
||||
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SecurityInspectionRecordSummaryDetailReason
|
||||
public partial class SKSecurityInspectionRecordSummaryDetailReasonMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailReasons).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region SecurityInspectionRecordSummaryDetailUser
|
||||
|
||||
@ -224,5 +224,15 @@ namespace APT.MS.Domain.Entities.SK
|
||||
[DataFieldLength(50)]
|
||||
[Description("发起人岗位")]
|
||||
public string ApplyPostName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 隐患原因
|
||||
/// </summary>
|
||||
[Description("隐患原因")]
|
||||
[DataFieldLength(200)]
|
||||
public string HIDDEN_REASON { get; set; }
|
||||
|
||||
[Description("导航:隐患原因")]
|
||||
public virtual ICollection<T_SK_HIDDEN_DANGER_CONFIRM_REASON> Nav_Reasons { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SK
|
||||
{
|
||||
[Description("导航:隐患原因")]
|
||||
public class T_SK_HIDDEN_DANGER_CONFIRM_REASON : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 隐患确认表
|
||||
/// </summary>
|
||||
[Description("隐患确认表")]
|
||||
[DataFieldForeignKey("Nav_Confirm", "Nav_Reasons")]
|
||||
public Guid HIDDEN_DANGER_CONFIRM_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:隐患确认表
|
||||
/// </summary>
|
||||
[Description("导航:隐患确认表")]
|
||||
public virtual T_SK_HIDDEN_DANGER_CONFIRM Nav_Confirm { get; set; }
|
||||
[Description("隐患原因")]
|
||||
[DataFieldForeignKey("Nav_Reason")]
|
||||
public Guid? REASON_ID { get; set; }
|
||||
|
||||
[Description("导航属性:隐患原因")]
|
||||
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
|
||||
}
|
||||
}
|
||||
@ -169,5 +169,15 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// </summary>
|
||||
[Description("导航:检查依据")]
|
||||
public virtual ICollection<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_BASIC> Nav_RectifyDetailBasics { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 隐患原因
|
||||
/// </summary>
|
||||
[Description("隐患原因")]
|
||||
[DataFieldLength(200)]
|
||||
public string HIDDEN_REASON { get; set; }
|
||||
|
||||
[Description("导航:隐患原因")]
|
||||
public virtual ICollection<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> Nav_RectifyDetailReasons { 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_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 隐患通知明细表
|
||||
/// </summary>
|
||||
[Description("隐患通知明细表")]
|
||||
[DataFieldForeignKey("Nav_RectifyDetail", "Nav_RectifyDetailReasons")]
|
||||
public Guid HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:隐患通知明细表
|
||||
/// </summary>
|
||||
[Description("导航:隐患通知明细表")]
|
||||
public virtual T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL Nav_RectifyDetail { get; set; }
|
||||
|
||||
[Description("隐患原因")]
|
||||
[DataFieldForeignKey("Nav_Reason")]
|
||||
public Guid? REASON_ID { get; set; }
|
||||
|
||||
[Description("导航属性:隐患原因")]
|
||||
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
|
||||
}
|
||||
}
|
||||
@ -279,5 +279,15 @@ namespace APT.MS.Domain.Entities.SK
|
||||
[DataFieldLength(50)]
|
||||
[Description("发起人岗位")]
|
||||
public string ApplyPostName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 隐患原因
|
||||
/// </summary>
|
||||
[Description("隐患原因")]
|
||||
[DataFieldLength(200)]
|
||||
public string HIDDEN_REASON { get; set; }
|
||||
|
||||
[Description("导航:隐患原因")]
|
||||
public virtual ICollection<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> Nav_RectifyReasons { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SK
|
||||
{
|
||||
[Description("导航:隐患原因")]
|
||||
public class T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 隐患整改记录表
|
||||
/// </summary>
|
||||
[Description("隐患整改记录表")]
|
||||
[DataFieldForeignKey("Nav_Rectify", "Nav_RectifyReasons")]
|
||||
public Guid HIDDEN_DANGER_RECTIFY_RECORD_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:隐患整改记录表
|
||||
/// </summary>
|
||||
[Description("导航:隐患整改记录表")]
|
||||
public virtual T_SK_HIDDEN_DANGER_RECTIFY_RECORD Nav_Rectify { get; set; }
|
||||
[Description("隐患原因")]
|
||||
[DataFieldForeignKey("Nav_Reason")]
|
||||
public Guid? REASON_ID { get; set; }
|
||||
|
||||
[Description("导航属性:隐患原因")]
|
||||
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
|
||||
}
|
||||
}
|
||||
@ -164,5 +164,14 @@ namespace APT.MS.Domain.Entities.SK
|
||||
|
||||
[Description("导航:检查依据")]
|
||||
public virtual ICollection<T_SK_HIDDEN_DANGER_REPORT_DETAIL_BASIC> Nav_ReportDetailBasics { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 隐患原因
|
||||
/// </summary>
|
||||
[Description("隐患原因")]
|
||||
[DataFieldLength(200)]
|
||||
public string HIDDEN_REASON { get; set; }
|
||||
[Description("导航:隐患原因")]
|
||||
public virtual ICollection<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> Nav_ReportDetailReasons { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.LR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SK
|
||||
{
|
||||
[Description("导航:隐患原因")]
|
||||
public class T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 隐患上报明细表
|
||||
/// </summary>
|
||||
[Description("隐患上报明细表")]
|
||||
[DataFieldForeignKey("Nav_ReportDetail", "Nav_ReportDetailReasons")]
|
||||
public Guid HIDDEN_DANGER_REPORT_DETAIL_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:隐患上报明细表
|
||||
/// </summary>
|
||||
[Description("导航:隐患上报明细表")]
|
||||
public virtual T_SK_HIDDEN_DANGER_REPORT_DETAIL Nav_ReportDetail { get; set; }
|
||||
|
||||
[Description("隐患原因")]
|
||||
[DataFieldForeignKey("Nav_Reason")]
|
||||
public Guid? REASON_ID { get; set; }
|
||||
|
||||
[Description("导航属性:隐患原因")]
|
||||
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
|
||||
}
|
||||
}
|
||||
20
APT.MS.Domain/Entities/SK/T_SK_HIDDEN_REASON.cs
Normal file
20
APT.MS.Domain/Entities/SK/T_SK_HIDDEN_REASON.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SK
|
||||
{
|
||||
[Description("导航:隐患原因")]
|
||||
public class T_SK_HIDDEN_REASON : MesEntityBase
|
||||
{
|
||||
[Description("编号")]
|
||||
[DataFieldLength(50)]
|
||||
public string CODE { get; set; }
|
||||
|
||||
[Description("名称")]
|
||||
[DataFieldLength(100)]
|
||||
public string NAME { get; set; }
|
||||
}
|
||||
}
|
||||
@ -145,5 +145,18 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// </summary>
|
||||
[Description("顺序")]
|
||||
public int? NUM { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 隐患原因
|
||||
/// </summary>
|
||||
[Description("隐患原因")]
|
||||
[DataFieldLength(200)]
|
||||
public string HIDDEN_REASON { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性:隐患原因
|
||||
/// </summary>
|
||||
[Description("导航:隐患原因")]
|
||||
public virtual ICollection<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> Nav_CheckRecordDetailReasons { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.MS.Domain.Entities.LR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SK
|
||||
{
|
||||
[Description("导航:隐患原因")]
|
||||
public class T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 检查记录明细表
|
||||
/// </summary>
|
||||
[Description("检查记录明细表")]
|
||||
[DataFieldForeignKey("Nav_CheckRecordDetail", "Nav_CheckRecordDetailReasons")]
|
||||
public Guid SECURITY_INSPECTION_RECORD_DETAIL_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:检查记录明细表
|
||||
/// </summary>
|
||||
[Description("导航:检查记录明细表")]
|
||||
public virtual T_SK_SECURITY_INSPECTION_RECORD_DETAIL Nav_CheckRecordDetail { get; set; }
|
||||
|
||||
[Description("隐患原因")]
|
||||
[DataFieldForeignKey("Nav_Reason")]
|
||||
public Guid? REASON_ID { get; set; }
|
||||
|
||||
[Description("导航属性:隐患原因")]
|
||||
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
|
||||
}
|
||||
}
|
||||
@ -139,5 +139,15 @@ namespace APT.MS.Domain.Entities.SK
|
||||
/// </summary>
|
||||
[Description("顺序")]
|
||||
public int? NUM { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 隐患原因
|
||||
/// </summary>
|
||||
[Description("隐患原因")]
|
||||
[DataFieldLength(200)]
|
||||
public string HIDDEN_REASON { get; set; }
|
||||
|
||||
[Description("导航:隐患原因")]
|
||||
public virtual ICollection<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> Nav_CheckRecordDetailReasons { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.MS.Domain.Entities.SK
|
||||
{
|
||||
[Description("导航:隐患原因")]
|
||||
public class T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 检查记录明细表
|
||||
/// </summary>
|
||||
[Description("检查记录明细表")]
|
||||
[DataFieldForeignKey("Nav_CheckRecordDetail", "Nav_CheckRecordDetailReasons")]
|
||||
public Guid SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航:检查记录明细表
|
||||
/// </summary>
|
||||
[Description("导航:检查记录明细表")]
|
||||
public virtual T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL Nav_CheckRecordDetail { get; set; }
|
||||
|
||||
[Description("隐患原因")]
|
||||
[DataFieldForeignKey("Nav_Reason")]
|
||||
public Guid? REASON_ID { get; set; }
|
||||
|
||||
[Description("导航属性:隐患原因")]
|
||||
public T_SK_HIDDEN_REASON Nav_Reason { get; set; }
|
||||
}
|
||||
}
|
||||
@ -357,6 +357,32 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 除车间级班组级向下查询,其他层级查所有人
|
||||
/// </summary>
|
||||
/// <param name="pageFilter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPagedWithLevel")]
|
||||
public PagedActionResult<T_FM_USER> OrderPagedWithLevel([FromBody] KeywordPageFilter pageFilter)
|
||||
{
|
||||
return SafeGetPagedData<T_FM_USER>((ret) =>
|
||||
{
|
||||
var departId = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentId;
|
||||
var departIdType = this.GetEntity<T_FM_DEPARTMENT>(departId.ToString())?.DEPARTMENT_TYPE;
|
||||
Expression<Func<T_FM_USER, bool>> express = t => t.ENABLE_STATUS == 0 && !t.CODE.Contains("admin");
|
||||
if (departIdType != null && (departIdType == 15 || departIdType == 20))
|
||||
{
|
||||
List<Guid> departmentId = new List<Guid>();
|
||||
departmentId.Add(Guid.Parse(departId.ToString()));
|
||||
List<Guid> departmentIds = new List<Guid>() { APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID.Value };
|
||||
DepartmentService.GetDepartmentIds(pageFilter.OrgId.Value, departmentId, ref departmentIds);
|
||||
express = express.And(t => t.DEPARTMENT_ID != null && departmentIds.Contains((Guid)t.DEPARTMENT_ID));
|
||||
}
|
||||
var result = this.GetOrderPageEntities<T_FM_USER>(express, pageFilter);
|
||||
ret.TotalCount = result.TotalCount;
|
||||
ret.Data = result.Data;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 重写用户查询接口
|
||||
/// </summary>
|
||||
/// <param name="pageFilter"></param>
|
||||
|
||||
@ -662,6 +662,7 @@ namespace APT.PP.WebApi.Controllers.Api
|
||||
detail.CHECKPROOF = item2.CHECKPROOF;
|
||||
detail.CHECKSTANDARD = item2.CHECKSTANDARD;
|
||||
detail.NUM = i;
|
||||
detail.CHECK_RESULT = SKCheckResultEnum.None;
|
||||
recordDetails.Add(detail);
|
||||
if (item2.Nav_CheckNoticeDetailUsers != null && item2.Nav_CheckNoticeDetailUsers.Any())
|
||||
{
|
||||
|
||||
@ -108,9 +108,16 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
var level = (param == "Major" || param == "重大") ? "重大" : "一般";
|
||||
if (hiddenLevel == SKHiddenLevel.General)
|
||||
{
|
||||
var departmentType = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID && t.ENABLE_STATUS == 0)?.DEPARTMENT_TYPE;
|
||||
var departmentType = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID && t.ENABLE_STATUS == 0);
|
||||
//level = Enum.GetName(typeof(SKDepartmentTypeEnum), departmentType);
|
||||
level = ((SKDepartmentTypeEnum)departmentType).GetDescription();
|
||||
if (departmentType != null)
|
||||
{
|
||||
level = ((SKDepartmentTypeEnum)departmentType.DEPARTMENT_TYPE).GetDescription();
|
||||
if (departmentType.DEPARTMENT_STATUS != 1)
|
||||
{
|
||||
level = "公司级";
|
||||
}
|
||||
}
|
||||
}
|
||||
//触发审批
|
||||
entity.STATUS = PFStandardStatus.Approving;
|
||||
|
||||
@ -177,9 +177,16 @@ namespace APT.SK.WebApi.Controllers
|
||||
var level = param == "Major" ? "重大" : "一般";
|
||||
if (entity.HIDDEN_LEVEL == SKHiddenLevel.General)
|
||||
{
|
||||
var departmentType = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID && t.ENABLE_STATUS == 0)?.DEPARTMENT_TYPE;
|
||||
var departmentType = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID && t.ENABLE_STATUS == 0);
|
||||
//param = Enum.GetName(typeof(SKDepartmentTypeEnum), departmentType);
|
||||
param = ((SKDepartmentTypeEnum)departmentType).GetDescription();
|
||||
if (departmentType != null)
|
||||
{
|
||||
param = ((SKDepartmentTypeEnum)departmentType.DEPARTMENT_TYPE).GetDescription();
|
||||
if (departmentType.DEPARTMENT_STATUS != 1)
|
||||
{
|
||||
param = "公司级";
|
||||
}
|
||||
}
|
||||
}
|
||||
MFlowPermitService.InsertApprove(serialCode[0], "SK022", param, entity.ID, "SK022_SHOWPRINT", entity.TaskID, true, () =>
|
||||
{
|
||||
|
||||
@ -188,9 +188,16 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
var level = param == "Major" ? "重大" : "一般";
|
||||
if (hiddenLevel == SKHiddenLevel.General)
|
||||
{
|
||||
var departmentType = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID && t.ENABLE_STATUS == 0)?.DEPARTMENT_TYPE;
|
||||
var departmentType = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID && t.ENABLE_STATUS == 0);
|
||||
//param = Enum.GetName(typeof(FMDepartmentType), departmentType);
|
||||
param = ((SKDepartmentTypeEnum)departmentType).GetDescription();
|
||||
if (departmentType != null)
|
||||
{
|
||||
param = ((SKDepartmentTypeEnum)departmentType.DEPARTMENT_TYPE).GetDescription();
|
||||
if (departmentType.DEPARTMENT_STATUS != 1)
|
||||
{
|
||||
param = "公司级";
|
||||
}
|
||||
}
|
||||
}
|
||||
MFlowPermitService.InsertApprove(serialCode[0], "SK014", param, entity.ID, "SK014_SHOWPRINT", entity.TaskID, true, () =>
|
||||
{
|
||||
|
||||
@ -226,6 +226,10 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
if (department != null)
|
||||
{
|
||||
param = Enum.GetName(typeof(SKDepartmentTypeEnum), department.DEPARTMENT_TYPE);
|
||||
if (department.DEPARTMENT_STATUS != 1)
|
||||
{
|
||||
param = "公司级";
|
||||
}
|
||||
}
|
||||
var date = DateTime.Now.Year + DateTime.Now.Month.PadLeft(2, '0') + DateTime.Now.Day.PadLeft(2, '0');
|
||||
entity.STATUS = PFStandardStatus.Approving;
|
||||
@ -496,36 +500,16 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
|
||||
var result = new JsonActionResult<List<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL>>();
|
||||
var dataList = new List<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL>();
|
||||
if (!string.IsNullOrEmpty(filter.Parameter1) && !string.IsNullOrEmpty(filter.Parameter2) && !string.IsNullOrEmpty(filter.Parameter3))
|
||||
if (!string.IsNullOrEmpty(filter.Parameter1) && !string.IsNullOrEmpty(filter.Parameter2) && !string.IsNullOrEmpty(filter.Parameter3) && !string.IsNullOrEmpty(filter.Parameter4))
|
||||
{
|
||||
var loginUserId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var personId = this.GetEntity<T_FM_USER>(t => t.ID == loginUserId && t.ENABLE_STATUS == 0)?.PERSON_ID;
|
||||
if (personId == null)
|
||||
throw new Exception("用户数据异常,请联系管理员排查");
|
||||
var postId = this.GetEntity<T_FM_PERSON>(t => t.ID == personId)?.POST_ID;
|
||||
if (postId == null)
|
||||
throw new Exception("请先维护登陆人岗位");
|
||||
var mineType = FMProductionUnit.Mine;
|
||||
if (filter.Parameter1 == "30")
|
||||
{
|
||||
mineType = FMProductionUnit.Mine;
|
||||
}
|
||||
else if (filter.Parameter1 == "10")
|
||||
{
|
||||
mineType = FMProductionUnit.MineChoose;
|
||||
}
|
||||
else if (filter.Parameter1 == "20")
|
||||
{
|
||||
mineType = FMProductionUnit.Minelast;
|
||||
}
|
||||
else if (filter.Parameter1 == "0")
|
||||
{
|
||||
mineType = FMProductionUnit.All;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("生产单元错误");
|
||||
}
|
||||
var departId = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
|
||||
//var personId = this.GetEntity<T_FM_USER>(t => t.ID == loginUserId && t.ENABLE_STATUS == 0)?.PERSON_ID;
|
||||
//if (personId == null)
|
||||
// throw new Exception("用户数据异常,请联系管理员排查");
|
||||
//var postId = this.GetEntity<T_FM_PERSON>(t => t.ID == personId)?.POST_ID;
|
||||
//if (postId == null)
|
||||
// throw new Exception("请先维护登陆人岗位");
|
||||
var departType = SKDepartmentTypeEnum.部门级;
|
||||
if (filter.Parameter3 == "0")
|
||||
{
|
||||
@ -551,20 +535,50 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
{
|
||||
throw new Exception("检查层级错误");
|
||||
}
|
||||
var posts = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_POST>(t => t.POST_ID == postId, new BaseFilter(filter.OrgId));
|
||||
var departIds = posts.Select(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART_ID).ToList();
|
||||
var departs = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART>(t => departIds.Contains(t.ID) && t.CHECK_TYPE_ID == Guid.Parse(filter.Parameter2) && t.CHECK_TYPE == departType, new BaseFilter(filter.OrgId));
|
||||
var contentIds = departs.Select(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID).ToList();
|
||||
var libraryContents = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT>(t => contentIds.Contains(t.ID), new BaseFilter(filter.OrgId), new string[] {"Nav_Contents","Nav_LibraryDetail",
|
||||
"Nav_LibraryDetail.Nav_Library.Nav_Area"});
|
||||
var cycle = SKPLANCHECKFREQUENCYEnum.Date;
|
||||
if (filter.Parameter4 == "20")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Week;
|
||||
}
|
||||
else if (filter.Parameter4 == "30")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Month;
|
||||
}
|
||||
else if (filter.Parameter4 == "40")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Quarter;
|
||||
}
|
||||
else if (filter.Parameter4 == "50")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.HalfYear;
|
||||
}
|
||||
else if (filter.Parameter4 == "60")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Year;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("检查周期错误");
|
||||
}
|
||||
var libs = this.GetEntities<T_SK_ENTERPRISE_LIBRARY>(t => t.PRODUCTION_UNIT_ID == Guid.Parse(filter.Parameter1), new BaseFilter(filter.OrgId),"Nav_Area").ToList();
|
||||
var libIds = libs.Select(m=>m.ID).ToList();
|
||||
var details = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL>(t => libIds.Contains(t.ENTERPRISE_LIBRARY_ID), new BaseFilter(filter.OrgId)).ToList();
|
||||
var detailIds = details.Select(m => m.ID).ToList();
|
||||
var contents = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT>(t => detailIds.Contains(t.ENTERPRISE_LIBRARY_DETAIL_ID), new BaseFilter(filter.OrgId), "Nav_Contents").ToList();
|
||||
var contentIds = contents.Select(m=>m.ID).ToList();
|
||||
var departs = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART>(t => contentIds.Contains(t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID) && t.DEPARTMENT_ID == departId && t.CHECK_TYPE_ID == Guid.Parse(filter.Parameter2) && t.CHECK_TYPE == departType && t.CHECK_CYCLE == cycle, new BaseFilter(filter.OrgId));
|
||||
var contentDepIds = departs.Select(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID).ToList();
|
||||
var libraryContents = contents.Where(t => contentDepIds.Contains(t.ID)).ToList();
|
||||
if (libraryContents != null && libraryContents.Any())
|
||||
{
|
||||
foreach (var item in libraryContents)
|
||||
{
|
||||
var detailFist = details.FirstOrDefault(t => t.ID == item.ENTERPRISE_LIBRARY_DETAIL_ID);
|
||||
var libFirst= libs.FirstOrDefault(t => t.ID == detailFist?.ENTERPRISE_LIBRARY_ID);
|
||||
T_SK_SECURITY_INSPECTION_NOTICE_DETAIL detail = new T_SK_SECURITY_INSPECTION_NOTICE_DETAIL();
|
||||
detail.ORG_ID = filter.OrgId;
|
||||
detail.RISK_AREA_ID = item.Nav_LibraryDetail?.Nav_Library?.AREA_ID;
|
||||
detail.Nav_RiskArea = item.Nav_LibraryDetail?.Nav_Library?.Nav_Area;
|
||||
detail.RISK_AREA_ID = libFirst?.AREA_ID;
|
||||
detail.Nav_RiskArea = libFirst?.Nav_Area;
|
||||
detail.CHECK_CONTENTS_ID = item.CHECK_CONTENTS_ID;
|
||||
detail.Nav_Contents = item.Nav_Contents;
|
||||
detail.CHECKCONTENT = item.CHECK_CONTENT;
|
||||
@ -592,15 +606,16 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
|
||||
var result = new JsonActionResult<List<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL>>();
|
||||
var dataList = new List<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL>();
|
||||
if (!string.IsNullOrEmpty(filter.Parameter1) && !string.IsNullOrEmpty(filter.Parameter2) && !string.IsNullOrEmpty(filter.Parameter3))
|
||||
if (!string.IsNullOrEmpty(filter.Parameter1) && !string.IsNullOrEmpty(filter.Parameter2) && !string.IsNullOrEmpty(filter.Parameter3) && !string.IsNullOrEmpty(filter.Parameter4))
|
||||
{
|
||||
var loginUserId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||
var personId = this.GetEntity<T_FM_USER>(t => t.ID == loginUserId && t.ENABLE_STATUS == 0)?.PERSON_ID;
|
||||
if (personId == null)
|
||||
throw new Exception("用户数据异常,请联系管理员排查");
|
||||
var postId = this.GetEntity<T_FM_PERSON>(t => t.ID == personId)?.POST_ID;
|
||||
if (postId == null)
|
||||
throw new Exception("请先维护登陆人岗位");
|
||||
var departId = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
|
||||
//var personId = this.GetEntity<T_FM_USER>(t => t.ID == loginUserId && t.ENABLE_STATUS == 0)?.PERSON_ID;
|
||||
//if (personId == null)
|
||||
// throw new Exception("用户数据异常,请联系管理员排查");
|
||||
//var postId = this.GetEntity<T_FM_PERSON>(t => t.ID == personId)?.POST_ID;
|
||||
//if (postId == null)
|
||||
// throw new Exception("请先维护登陆人岗位");
|
||||
//var mineType = SKProductionUnit.Mine;
|
||||
//if (filter.Parameter1 == "30")
|
||||
//{
|
||||
@ -659,12 +674,40 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
{
|
||||
throw new Exception("检查层级错误");
|
||||
}
|
||||
var posts = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_POST>(t => t.POST_ID == postId, new BaseFilter(filter.OrgId));
|
||||
var departIds = posts.Select(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART_ID).ToList();
|
||||
var departs = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART>(t => departIds.Contains(t.ID) && t.CHECK_TYPE_ID == Guid.Parse(filter.Parameter2) && t.CHECK_TYPE == departType, new BaseFilter(filter.OrgId));
|
||||
var contentIds = departs.Select(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID).ToList();
|
||||
var libraryContents = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT>(t => contentIds.Contains(t.ID), new BaseFilter(filter.OrgId), new string[] {"Nav_Contents","Nav_LibraryDetail",
|
||||
"Nav_LibraryDetail.Nav_Library.Nav_Area"});
|
||||
var cycle = SKPLANCHECKFREQUENCYEnum.Date;
|
||||
if (filter.Parameter4 == "20")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Week;
|
||||
}
|
||||
else if (filter.Parameter4 == "30")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Month;
|
||||
}
|
||||
else if (filter.Parameter4 == "40")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Quarter;
|
||||
}
|
||||
else if (filter.Parameter4 == "50")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.HalfYear;
|
||||
}
|
||||
else if (filter.Parameter4 == "60")
|
||||
{
|
||||
cycle = SKPLANCHECKFREQUENCYEnum.Year;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("检查周期错误");
|
||||
}
|
||||
var libs = this.GetEntities<T_SK_ENTERPRISE_LIBRARY>(t => t.PRODUCTION_UNIT_ID == Guid.Parse(filter.Parameter1), new BaseFilter(filter.OrgId), "Nav_Area").ToList();
|
||||
var libIds = libs.Select(m => m.ID).ToList();
|
||||
var details = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL>(t => libIds.Contains(t.ENTERPRISE_LIBRARY_ID), new BaseFilter(filter.OrgId)).ToList();
|
||||
var detailIds = details.Select(m => m.ID).ToList();
|
||||
var libContents = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT>(t => detailIds.Contains(t.ENTERPRISE_LIBRARY_DETAIL_ID), new BaseFilter(filter.OrgId), "Nav_Contents").ToList();
|
||||
var contentIds = libContents.Select(m => m.ID).ToList();
|
||||
var departs = this.GetEntities<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART>(t => contentIds.Contains(t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID) && t.DEPARTMENT_ID == departId && t.CHECK_TYPE_ID == Guid.Parse(filter.Parameter2) && t.CHECK_TYPE == departType && t.CHECK_CYCLE == cycle, new BaseFilter(filter.OrgId));
|
||||
var contentDepIds = departs.Select(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID).ToList();
|
||||
var libraryContents = libContents.Where(t => contentDepIds.Contains(t.ID)).ToList();
|
||||
if (libraryContents != null && libraryContents.Any())
|
||||
{
|
||||
foreach (var item in libraryContents)
|
||||
|
||||
@ -6011,6 +6011,118 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenDangerConfirmReason-导航:隐患原因
|
||||
/// <summary>
|
||||
/// 导航:隐患原因
|
||||
/// </summary>
|
||||
[Route("api/SK/HiddenDangerConfirmReason")]
|
||||
public partial class HiddenDangerConfirmReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_CONFIRM_REASON>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_CONFIRM_REASON>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_CONFIRM_REASON>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_CONFIRM_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_CONFIRM_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_CONFIRM_REASON entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_CONFIRM_REASON> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_SK_HIDDEN_DANGER_CONFIRM_REASON> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenDangerHandReport-手动隐患上报表
|
||||
/// <summary>
|
||||
/// 手动隐患上报表
|
||||
@ -6774,6 +6886,118 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenDangerRectifyNoticeDetailReason-导航:隐患原因
|
||||
/// <summary>
|
||||
/// 导航:隐患原因
|
||||
/// </summary>
|
||||
[Route("api/SK/HiddenDangerRectifyNoticeDetailReason")]
|
||||
public partial class HiddenDangerRectifyNoticeDetailReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenDangerRectifyNoticeFile-隐患整改通知附件
|
||||
/// <summary>
|
||||
/// 隐患整改通知附件
|
||||
@ -7426,6 +7650,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenDangerRectifyRecordReason-导航:隐患原因
|
||||
/// <summary>
|
||||
/// 导航:隐患原因
|
||||
/// </summary>
|
||||
[Route("api/SK/HiddenDangerRectifyRecordReason")]
|
||||
public partial class HiddenDangerRectifyRecordReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
#region HiddenDangerReport-隐患上报表
|
||||
@ -7864,6 +8199,118 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenDangerReportDetailReason-导航:隐患原因
|
||||
/// <summary>
|
||||
/// 导航:隐患原因
|
||||
/// </summary>
|
||||
[Route("api/SK/HiddenDangerReportDetailReason")]
|
||||
public partial class HiddenDangerReportDetailReasonController : AuthorizeApiController<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenDangerReportFile-隐患上报附件表
|
||||
/// <summary>
|
||||
/// 隐患上报附件表
|
||||
@ -7971,6 +8418,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HiddenReason-导航:隐患原因
|
||||
/// <summary>
|
||||
/// 导航:隐患原因
|
||||
/// </summary>
|
||||
[Route("api/SK/HiddenReason")]
|
||||
public partial class HiddenReasonController : AuthorizeApiController<T_SK_HIDDEN_REASON>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_REASON>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_HIDDEN_REASON>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_HIDDEN_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_SK_HIDDEN_REASON entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_HIDDEN_REASON> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_SK_HIDDEN_REASON> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
#region IdentifyEvaluationPlan-辨识评估计划
|
||||
@ -15393,6 +15951,117 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region SecurityInspectionRecordDetailReason-导航:隐患原因
|
||||
/// <summary>
|
||||
/// 导航:隐患原因
|
||||
/// </summary>
|
||||
[Route("api/SK/SecurityInspectionRecordDetailReason")]
|
||||
public partial class SecurityInspectionRecordDetailReasonController : AuthorizeApiController<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
#region SecurityInspectionRecordDetailUser-检查明细人员表
|
||||
@ -16049,6 +16718,118 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region SecurityInspectionRecordSummaryDetailReason-导航:隐患原因
|
||||
/// <summary>
|
||||
/// 导航:隐患原因
|
||||
/// </summary>
|
||||
[Route("api/SK/SecurityInspectionRecordSummaryDetailReason")]
|
||||
public partial class SecurityInspectionRecordSummaryDetailReasonController : AuthorizeApiController<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region SecurityInspectionRecordSummaryDetailUser-检查明细人员表
|
||||
/// <summary>
|
||||
/// 检查明细人员表
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user