冲突
This commit is contained in:
commit
fa4bc55e00
@ -192,10 +192,10 @@ namespace APT.BaseData.Services.DomainServices
|
||||
trainNotify.TRAIN_TEACHER = plan.TEACHER;
|
||||
trainNotify.TRAIN_MODEL = plan.TRAIN_MODEL;
|
||||
|
||||
if (plan.CHECK_TYPE_ID != null)
|
||||
{
|
||||
trainNotify.CHECK_TYPE_ID = plan.CHECK_TYPE_ID.Value;
|
||||
}
|
||||
//if (plan.CHECK_TYPE_ID != null)
|
||||
//{
|
||||
// trainNotify.CHECK_TYPE_ID = plan.CHECK_TYPE_ID.Value;
|
||||
//}
|
||||
trainNotify.STATUS = SETrainNotifyStatus.草稿;
|
||||
trainNotify.ORG_ID = orgId;
|
||||
trainNotify.CODE = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,25 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025092201 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ZDEX",
|
||||
table: "T_PC_INFO",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ZDEX",
|
||||
table: "T_PC_INFO");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,55 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025092202 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_HOME_TITLE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TITLE = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||
ISHEAD = table.Column<bool>(type: "bit", nullable: false),
|
||||
SECOND = table.Column<int>(type: "int", nullable: false),
|
||||
COCOR = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
FONTSIZE = table.Column<int>(type: "int", nullable: false),
|
||||
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_PF_HOME_TITLE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_HOME_TITLE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_HOME_TITLE_ORG_ID",
|
||||
table: "T_PF_HOME_TITLE",
|
||||
column: "ORG_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_HOME_TITLE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025092203 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISTOCHILE",
|
||||
table: "T_PF_HOME_TITLE",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISTOCHILE",
|
||||
table: "T_PF_HOME_TITLE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,117 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025092301 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_NOTICE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TITLE = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true),
|
||||
CONTENT = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
||||
CREATE_NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
CREATE_DEPARTMENT = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
ISHEAD = table.Column<bool>(type: "bit", nullable: false),
|
||||
ISTOCHILE = table.Column<bool>(type: "bit", nullable: false),
|
||||
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_PF_NOTICE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_NOTICE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_NOTICE_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
NOTICE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
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_PF_NOTICE_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_NOTICE_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_NOTICE_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||
column: x => x.IMG_FILE_ID,
|
||||
principalTable: "T_PF_IMG_FILE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_NOTICE_FILE_T_PF_NOTICE_NOTICE_ID",
|
||||
column: x => x.NOTICE_ID,
|
||||
principalTable: "T_PF_NOTICE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_NOTICE_ORG_ID",
|
||||
table: "T_PF_NOTICE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_NOTICE_FILE_IMG_FILE_ID",
|
||||
table: "T_PF_NOTICE_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_NOTICE_FILE_NOTICE_ID",
|
||||
table: "T_PF_NOTICE_FILE",
|
||||
column: "NOTICE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_NOTICE_FILE_ORG_ID",
|
||||
table: "T_PF_NOTICE_FILE",
|
||||
column: "ORG_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_NOTICE_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_NOTICE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025092302 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "STATUS",
|
||||
table: "T_PF_NOTICE",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "STATUS",
|
||||
table: "T_PF_NOTICE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,46 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025100901 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MARK",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MARK",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MARK",
|
||||
table: "T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MARK",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MARK",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MARK",
|
||||
table: "T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,43 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102001 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_HIDDEN",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_ENTERPRISE_LIBRARY_DETAIL",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_HIDDEN");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_ENTERPRISE_LIBRARY_DETAIL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,43 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102002 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_BASIC_LIBRARY_DETAIL_CONTENT_HIDDEN",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_BASIC_LIBRARY_DETAIL_CONTENT",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_BASIC_LIBRARY_DETAIL",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_BASIC_LIBRARY_DETAIL_CONTENT_HIDDEN");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_BASIC_LIBRARY_DETAIL_CONTENT");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ROW_NO",
|
||||
table: "T_SK_BASIC_LIBRARY_DETAIL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,374 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102101 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IDENTIFY_EVALUATION_PLAN_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_T_SK_IDENTIFY_EVALUATION_PLAN_IDENTIFY_EVALUATION_PLAN_ID",
|
||||
column: x => x.IDENTIFY_EVALUATION_PLAN_ID,
|
||||
principalTable: "T_SK_IDENTIFY_EVALUATION_PLAN",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_EVALUATION_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_RISK_EVALUATION_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_REQUIRE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_REQUIRE_T_SK_EVALUATION_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_EVALUATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_REQUIRE_T_SK_RISK_EVALUATION_RISK_EVALUATION_ID",
|
||||
column: x => x.RISK_EVALUATION_ID,
|
||||
principalTable: "T_SK_RISK_EVALUATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_EVALUATION_SUMMARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_T_SK_EVALUATION_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_EVALUATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_T_SK_RISK_EVALUATION_SUMMARY_RISK_EVALUATION_SUMMARY_ID",
|
||||
column: x => x.RISK_EVALUATION_SUMMARY_ID,
|
||||
principalTable: "T_SK_RISK_EVALUATION_SUMMARY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_IDENTIFY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_RISK_IDENTIFY_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_REQUIRE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_REQUIRE_T_SK_RISK_IDENTIFY_RISK_IDENTIFY_ID",
|
||||
column: x => x.RISK_IDENTIFY_ID,
|
||||
principalTable: "T_SK_RISK_IDENTIFY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_IDENTIFY_RESULT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_RISK_IDENTIFY_RESULT_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_T_SK_RISK_IDENTIFY_RESULT_RISK_IDENTIFY_RESULT_ID",
|
||||
column: x => x.RISK_IDENTIFY_RESULT_ID,
|
||||
principalTable: "T_SK_RISK_IDENTIFY_RESULT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IDENTIFY_RESULT_SUMMARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
REQUIRE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_T_SK_REQUEST_REQUIRE_ID",
|
||||
column: x => x.REQUIRE_ID,
|
||||
principalTable: "T_SK_REQUEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_IDENTIFY_RESULT_SUMMARY_ID",
|
||||
column: x => x.IDENTIFY_RESULT_SUMMARY_ID,
|
||||
principalTable: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_IDENTIFY_EVALUATION_PLAN_ID",
|
||||
table: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
column: "IDENTIFY_EVALUATION_PLAN_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_ORG_ID",
|
||||
table: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_REQUIRE_RISK_EVALUATION_ID",
|
||||
table: "T_SK_RISK_EVALUATION_REQUIRE",
|
||||
column: "RISK_EVALUATION_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_REQUIRE_RISK_EVALUATION_SUMMARY_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE",
|
||||
column: "RISK_EVALUATION_SUMMARY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_REQUIRE_RISK_IDENTIFY_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_REQUIRE",
|
||||
column: "RISK_IDENTIFY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_REQUIRE_RISK_IDENTIFY_RESULT_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE",
|
||||
column: "RISK_IDENTIFY_RESULT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_IDENTIFY_RESULT_SUMMARY_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
column: "IDENTIFY_RESULT_SUMMARY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_ORG_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE_REQUIRE_ID",
|
||||
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE",
|
||||
column: "REQUIRE_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_EVALUATION_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_EVALUATION_SUMMARY_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_IDENTIFY_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_REQUIRE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025102101 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_APPROVAL_ROLE",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_APPROVAL_ROLE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025102201 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_APPROVE_DETAIL",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_APPROVE_DETAIL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,222 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102301 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_DETAIL_POST_T_FM_USER_POST_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_T_FM_USER_POST_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST",
|
||||
newName: "DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST",
|
||||
newName: "IX_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST",
|
||||
newName: "DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_DETAIL_POST_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST",
|
||||
newName: "IX_T_SK_RISK_EVALUATION_DETAIL_POST_DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_EVALUATION_DETAIL_POST_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
POST_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL_T_FM_USER_POST_POST_ID",
|
||||
column: x => x.POST_ID,
|
||||
principalTable: "T_FM_USER_POST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL_T_SK_RISK_EVALUATION_DETAIL_POST_RISK_EVALUATION_DETAIL_POST_ID",
|
||||
column: x => x.RISK_EVALUATION_DETAIL_POST_ID,
|
||||
principalTable: "T_SK_RISK_EVALUATION_DETAIL_POST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RISK_EVALUATION_SUMMARY_DETAIL_POST_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
POST_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL_T_FM_USER_POST_POST_ID",
|
||||
column: x => x.POST_ID,
|
||||
principalTable: "T_FM_USER_POST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_RISK_EVALUATION_SUMMARY_DETAIL_POST~",
|
||||
column: x => x.RISK_EVALUATION_SUMMARY_DETAIL_POST_ID,
|
||||
principalTable: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL_ORG_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL",
|
||||
column: "POST_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL_RISK_EVALUATION_DETAIL_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL",
|
||||
column: "RISK_EVALUATION_DETAIL_POST_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL_ORG_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL",
|
||||
column: "POST_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL_RISK_EVALUATION_SUMMARY_DETAIL_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL",
|
||||
column: "RISK_EVALUATION_SUMMARY_DETAIL_POST_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_DETAIL_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST",
|
||||
column: "DEPARTMENT_ID",
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST",
|
||||
column: "DEPARTMENT_ID",
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_DETAIL_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST",
|
||||
newName: "POST_ID");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST",
|
||||
newName: "IX_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_POST_ID");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST",
|
||||
newName: "POST_ID");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_T_SK_RISK_EVALUATION_DETAIL_POST_DEPARTMENT_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST",
|
||||
newName: "IX_T_SK_RISK_EVALUATION_DETAIL_POST_POST_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_DETAIL_POST_T_FM_USER_POST_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_DETAIL_POST",
|
||||
column: "POST_ID",
|
||||
principalTable: "T_FM_USER_POST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_T_FM_USER_POST_POST_ID",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST",
|
||||
column: "POST_ID",
|
||||
principalTable: "T_FM_USER_POST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102302 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EVALUATION_DEPARTMENT",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL",
|
||||
type: "nvarchar(500)",
|
||||
maxLength: 500,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EVALUATION_POST",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL",
|
||||
type: "nvarchar(500)",
|
||||
maxLength: 500,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EVALUATION_DEPARTMENT",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EVALUATION_POST",
|
||||
table: "T_SK_RISK_EVALUATION_SUMMARY_DETAIL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,55 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025102303 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "Nav_UnitID",
|
||||
table: "T_FM_DEPARTMENT",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PRODUCTION_UNIT_ID",
|
||||
table: "T_FM_DEPARTMENT",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FM_DEPARTMENT_Nav_UnitID",
|
||||
table: "T_FM_DEPARTMENT",
|
||||
column: "Nav_UnitID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_FM_DEPARTMENT_T_FM_USER_PRODUCTION_UNIT_SET_Nav_UnitID",
|
||||
table: "T_FM_DEPARTMENT",
|
||||
column: "Nav_UnitID",
|
||||
principalTable: "T_FM_USER_PRODUCTION_UNIT_SET",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_FM_DEPARTMENT_T_FM_USER_PRODUCTION_UNIT_SET_Nav_UnitID",
|
||||
table: "T_FM_DEPARTMENT");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_FM_DEPARTMENT_Nav_UnitID",
|
||||
table: "T_FM_DEPARTMENT");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Nav_UnitID",
|
||||
table: "T_FM_DEPARTMENT");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PRODUCTION_UNIT_ID",
|
||||
table: "T_FM_DEPARTMENT");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,79 +0,0 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025102401 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_APPROVE_TEMP_DETAIL",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "REJECT_INTERFACE",
|
||||
table: "T_PF_APPROVE",
|
||||
type: "nvarchar(100)",
|
||||
maxLength: 100,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_APPROVE_TEMP_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "REJECT_INTERFACE",
|
||||
table: "T_PF_APPROVE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,412 +0,0 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,289 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025110401 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_TRAIN_PLAN",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PLAN_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
TYPE = table.Column<int>(type: "int", nullable: false),
|
||||
YEAR = table.Column<int>(type: "int", nullable: false),
|
||||
LAUNCH_TIME = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
END_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
LAUNCH_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
PLAN_NAME = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||
GUIDE_PRINCIPLE = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
TRAIN_REQUIREMENT = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
PERSENT = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
||||
STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
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_SE_TRAIN_PLAN", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
column: x => x.DEPARTMENT_ID,
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_T_FM_USER_LAUNCH_USER_ID",
|
||||
column: x => x.LAUNCH_USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PLAN_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PLAN_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
DATE_TRAIN = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
IN_OUT = table.Column<int>(type: "int", nullable: false),
|
||||
TYPE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
OBJECT = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
TRAINTYPE = table.Column<int>(type: "int", nullable: false),
|
||||
CHECKTYPE = table.Column<int>(type: "int", nullable: false),
|
||||
CLASSHOUR = table.Column<int>(type: "int", nullable: false),
|
||||
SPRINTTYPE = table.Column<int>(type: "int", nullable: false),
|
||||
ISALL = table.Column<bool>(type: "bit", nullable: false),
|
||||
DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
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_SE_TRAIN_PLAN_DETAIL", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
column: x => x.DEPARTMENT_ID,
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_T_SE_TRAIN_PLAN_PLAN_ID",
|
||||
column: x => x.PLAN_ID,
|
||||
principalTable: "T_SE_TRAIN_PLAN",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_T_SE_TRAIN_TYPE_ENUM_TYPE_ID",
|
||||
column: x => x.TYPE_ID,
|
||||
principalTable: "T_SE_TRAIN_TYPE_ENUM",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_TRAIN_PLAN_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PLAN_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
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_SE_TRAIN_PLAN_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||
column: x => x.IMG_FILE_ID,
|
||||
principalTable: "T_PF_IMG_FILE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_FILE_T_SE_TRAIN_PLAN_PLAN_ID",
|
||||
column: x => x.PLAN_ID,
|
||||
principalTable: "T_SE_TRAIN_PLAN",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PLAN_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
DEPARTMENT_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_SE_TRAIN_PLAN_DETAIL_DEPARTMENT", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
column: x => x.DEPARTMENT_ID,
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT_T_SE_TRAIN_PLAN_DETAIL_PLAN_DETAIL_ID",
|
||||
column: x => x.PLAN_DETAIL_ID,
|
||||
principalTable: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DEPARTMENT_ID",
|
||||
table: "T_SE_TRAIN_PLAN",
|
||||
column: "DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_LAUNCH_USER_ID",
|
||||
table: "T_SE_TRAIN_PLAN",
|
||||
column: "LAUNCH_USER_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_ORG_ID",
|
||||
table: "T_SE_TRAIN_PLAN",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
column: "DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_ORG_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_PLAN_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
column: "PLAN_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_TYPE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
column: "TYPE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT_DEPARTMENT_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT",
|
||||
column: "DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT_ORG_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT_PLAN_DETAIL_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT",
|
||||
column: "PLAN_DETAIL_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_FILE_IMG_FILE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_FILE_ORG_ID",
|
||||
table: "T_SE_TRAIN_PLAN_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_FILE_PLAN_ID",
|
||||
table: "T_SE_TRAIN_PLAN_FILE",
|
||||
column: "PLAN_ID");
|
||||
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_TRAIN_PLAN_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_TRAIN_PLAN_DETAIL");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_TRAIN_PLAN");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025110701 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PLANDETAILID",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PLANDETAILID",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025110702 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "DEPARTMENT_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<decimal>(
|
||||
name: "CLASSHOUR",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
type: "decimal(18,2)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "DEPARTMENT_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "CLASSHOUR",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
oldClrType: typeof(decimal),
|
||||
oldType: "decimal(18,2)");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025110702 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "BORN_DATE",
|
||||
table: "T_FM_USER",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BORN_DATE",
|
||||
table: "T_FM_USER");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025112001 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_T_SE_TRAIN_CHECK_TYPE_ENUM_CHECK_TYPE_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_CHECK_TYPE_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CHECK_TYPE_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "CHECKTYPE",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 56);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CHECKTYPE",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "CHECK_TYPE_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_CHECK_TYPE_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
column: "CHECK_TYPE_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_T_SE_TRAIN_CHECK_TYPE_ENUM_CHECK_TYPE_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
column: "CHECK_TYPE_ID",
|
||||
principalTable: "T_SE_TRAIN_CHECK_TYPE_ENUM",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,33 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025112101 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_USER",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SCORE",
|
||||
table: "T_SE_TRAIN_RECORD_USER",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_USER");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SCORE",
|
||||
table: "T_SE_TRAIN_RECORD_USER");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025112102 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "EVALUATION_RESULT",
|
||||
table: "T_SE_TRAINING_EFFECT_EVALUATION_SURVEY_RESULTS",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "EVALUATION_RESULT",
|
||||
table: "T_SE_TRAINING_EFFECT_EVALUATION_SURVEY_RESULTS",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -73784,7 +73784,7 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("EVALUATION_RESULT")
|
||||
b.Property<int?>("EVALUATION_RESULT")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
@ -74000,8 +74000,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CHECK_TYPE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
b.Property<int>("CHECKTYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CODE")
|
||||
.HasMaxLength(100)
|
||||
@ -74111,8 +74111,6 @@ namespace APT.Data.Migrations.Migrations
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("CHECK_TYPE_ID");
|
||||
|
||||
b.HasIndex("LAUNCH_DEPARTMENT_ID");
|
||||
|
||||
b.HasIndex("LAUNCH_USER_ID");
|
||||
@ -74924,6 +74922,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("EXAMINATION_RESULTS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -74959,6 +74960,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<Guid>("RECORD_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("SCORE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -124000,11 +124004,6 @@ namespace APT.Data.Migrations.Migrations
|
||||
|
||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY", b =>
|
||||
{
|
||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_CHECK_TYPE_ENUM", "Nav_TrainCheckType")
|
||||
.WithMany()
|
||||
.HasForeignKey("CHECK_TYPE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_LaunchDepartment")
|
||||
.WithMany()
|
||||
.HasForeignKey("LAUNCH_DEPARTMENT_ID")
|
||||
@ -124044,8 +124043,6 @@ namespace APT.Data.Migrations.Migrations
|
||||
|
||||
b.Navigation("Nav_RecordUser");
|
||||
|
||||
b.Navigation("Nav_TrainCheckType");
|
||||
|
||||
b.Navigation("Nav_TrainDepartment");
|
||||
|
||||
b.Navigation("Nav_TrainType");
|
||||
|
||||
@ -10517,7 +10517,6 @@ builder.HasOne(t => t.Nav_TrainType).WithMany().HasForeignKey(t => t.TRAIN_TYPE)
|
||||
builder.Property(t => t.TRAIN_ADDR).HasMaxLength(100);
|
||||
builder.Property(t => t.TRAIN_TEACHER).HasMaxLength(100);
|
||||
builder.Property(t => t.TRAIN_MODEL).HasMaxLength(50);
|
||||
builder.HasOne(t => t.Nav_TrainCheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.TRAIN_PLAN).HasMaxLength(500);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
|
||||
@ -139,18 +139,13 @@ namespace APT.MS.Domain.Entities.SE
|
||||
public string TRAIN_MODEL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核方式ID
|
||||
/// 考核方式 线上培训/线下培训 委外培训
|
||||
/// </summary>
|
||||
[Description("考核方式")]
|
||||
[FormFieldTable]
|
||||
[FormFieldEdit]
|
||||
[DataFieldForeignKey("Nav_TrainCheckType")]
|
||||
public Guid? CHECK_TYPE_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 考核方式
|
||||
/// </summary>
|
||||
[Description("导航: 考核方式")]
|
||||
public T_SE_TRAIN_CHECK_TYPE_ENUM Nav_TrainCheckType { get; set; }
|
||||
[EnumName("PlanCheckType")]
|
||||
public PlanCheckType CHECKTYPE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 导航: 培训内容
|
||||
/// </summary>
|
||||
|
||||
@ -51,6 +51,19 @@ namespace APT.MS.Domain.Entities.SE
|
||||
[Description("岗位")]
|
||||
[DataFieldLength(50)]
|
||||
public string POST_NAME { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考核结果
|
||||
/// </summary>
|
||||
[Description("考核结果")]
|
||||
public SEExaminationResultsEnum? EXAMINATION_RESULTS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分数
|
||||
/// </summary>
|
||||
[Description("分数")]
|
||||
public int? SCORE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
|
||||
@ -14,7 +14,7 @@ namespace APT.MS.Domain.Entities.SE
|
||||
/// 培训效果评估调查表
|
||||
/// </summary>
|
||||
[Description("培训效果评估调查表")]
|
||||
[DataFieldForeignKey("Nav_TrainingEffectSurvey","Nav_ResultList")]
|
||||
[DataFieldForeignKey("Nav_TrainingEffectSurvey", "Nav_ResultList")]
|
||||
public Guid TRAINING_EFFECT_EVALUATION_SURVEY_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 导航: 培训效果评估调查表
|
||||
@ -39,7 +39,7 @@ namespace APT.MS.Domain.Entities.SE
|
||||
[Description("评估结果")]
|
||||
[EnumName("SEEvaluationResultEnum")]
|
||||
[FormFieldEdit]
|
||||
public SEEvaluationResultEnum EVALUATION_RESULT { get; set; }
|
||||
public SEEvaluationResultEnum? EVALUATION_RESULT { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,137 +1,128 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// T4模板文件:基础接口类
|
||||
// 此代码由T4模板自动生成
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
//------------------------------------------------------------------------------
|
||||
using APT.Infrastructure.Core;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Collections.Generic;
|
||||
using APT.Utility;
|
||||
using APT.Infrastructure.Api;
|
||||
using APT.BaseData.Domain.ApiModel.PF;
|
||||
namespace APT.LG.WebApi.Controllers.Api
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// T4模板文件:基础接口类
|
||||
// 此代码由T4模板自动生成
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
//------------------------------------------------------------------------------
|
||||
using APT.Infrastructure.Core;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Collections.Generic;
|
||||
using APT.Utility;
|
||||
using APT.Infrastructure.Api;
|
||||
using APT.BaseData.Domain.ApiModel.PF;
|
||||
namespace APT.LG.WebApi.Controllers.Api
|
||||
{
|
||||
using APT.BaseData.Domain.Entities.LG;
|
||||
|
||||
#region Oprate-表单操作日志表
|
||||
/// <summary>
|
||||
/// 表单操作日志表
|
||||
/// </summary>
|
||||
[Route("api/LG/Oprate")]
|
||||
public partial class OprateController : AuthorizeApiController<T_LG_OPRATE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_LG_OPRATE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_LG_OPRATE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_LG_OPRATE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_LG_OPRATE> 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_LG_OPRATE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_LG_OPRATE> 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_LG_OPRATE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Oprate-表单操作日志表
|
||||
/// <summary>
|
||||
/// 表单操作日志表
|
||||
/// </summary>
|
||||
[Route("api/LG/Oprate")]
|
||||
public partial class OprateController : AuthorizeApiController<T_LG_OPRATE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_LG_OPRATE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_LG_OPRATE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_LG_OPRATE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_LG_OPRATE> 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_LG_OPRATE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_LG_OPRATE> 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_LG_OPRATE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
@ -1,370 +1,356 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// T4模板文件:基础接口类
|
||||
// 此代码由T4模板自动生成
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
//------------------------------------------------------------------------------
|
||||
using APT.Infrastructure.Core;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Collections.Generic;
|
||||
using APT.Utility;
|
||||
using APT.Infrastructure.Api;
|
||||
using APT.BaseData.Domain.ApiModel.PF;
|
||||
namespace APT.NW.WebApi.Controllers.Api
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// T4模板文件:基础接口类
|
||||
// 此代码由T4模板自动生成
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
//------------------------------------------------------------------------------
|
||||
using APT.Infrastructure.Core;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Collections.Generic;
|
||||
using APT.Utility;
|
||||
using APT.Infrastructure.Api;
|
||||
using APT.BaseData.Domain.ApiModel.PF;
|
||||
namespace APT.NW.WebApi.Controllers.Api
|
||||
{
|
||||
using APT.BaseData.Domain.Entities.NW;
|
||||
|
||||
#region Enterprise-子企业表
|
||||
/// <summary>
|
||||
/// 子企业表
|
||||
/// </summary>
|
||||
[Route("api/NW/Enterprise")]
|
||||
public partial class EnterpriseController : AuthorizeTreeApiController<T_NW_ENTERPRISE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ENTERPRISE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ENTERPRISE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_NW_ENTERPRISE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_NW_ENTERPRISE> 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_NW_ENTERPRISE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_NW_ENTERPRISE> 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_NW_ENTERPRISE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得树形实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("TreeData")]
|
||||
public JsonActionResult<IEnumerable<TreeNode<T_NW_ENTERPRISE>>> TreeData([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitTreeOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RoleDataPerm-子企业数据权限表
|
||||
/// <summary>
|
||||
/// 子企业数据权限表
|
||||
/// </summary>
|
||||
[Route("api/NW/RoleDataPerm")]
|
||||
public partial class RoleDataPermController : AuthorizeApiController<T_NW_ROLE_DATA_PERM>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_DATA_PERM>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_DATA_PERM>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_NW_ROLE_DATA_PERM> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_NW_ROLE_DATA_PERM> 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_NW_ROLE_DATA_PERM entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_NW_ROLE_DATA_PERM> 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_NW_ROLE_DATA_PERM> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RoleMenu-子企业权限表
|
||||
/// <summary>
|
||||
/// 子企业权限表
|
||||
/// </summary>
|
||||
[Route("api/NW/RoleMenu")]
|
||||
public partial class RoleMenuController : AuthorizeApiController<T_NW_ROLE_MENU>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_MENU>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_MENU>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_NW_ROLE_MENU> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_NW_ROLE_MENU> 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_NW_ROLE_MENU entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_NW_ROLE_MENU> 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_NW_ROLE_MENU> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enterprise-子企业表
|
||||
/// <summary>
|
||||
/// 子企业表
|
||||
/// </summary>
|
||||
[Route("api/NW/Enterprise")]
|
||||
public partial class EnterpriseController : AuthorizeTreeApiController<T_NW_ENTERPRISE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ENTERPRISE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ENTERPRISE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_NW_ENTERPRISE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_NW_ENTERPRISE> 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_NW_ENTERPRISE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_NW_ENTERPRISE> 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_NW_ENTERPRISE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得树形实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("TreeData")]
|
||||
public JsonActionResult<IEnumerable<TreeNode<T_NW_ENTERPRISE>>> TreeData([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitTreeOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
#region RoleDataPerm-子企业数据权限表
|
||||
/// <summary>
|
||||
/// 子企业数据权限表
|
||||
/// </summary>
|
||||
[Route("api/NW/RoleDataPerm")]
|
||||
public partial class RoleDataPermController : AuthorizeApiController<T_NW_ROLE_DATA_PERM>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_DATA_PERM>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_DATA_PERM>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_NW_ROLE_DATA_PERM> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_NW_ROLE_DATA_PERM> 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_NW_ROLE_DATA_PERM entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_NW_ROLE_DATA_PERM> 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_NW_ROLE_DATA_PERM> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
#region RoleMenu-子企业权限表
|
||||
/// <summary>
|
||||
/// 子企业权限表
|
||||
/// </summary>
|
||||
[Route("api/NW/RoleMenu")]
|
||||
public partial class RoleMenuController : AuthorizeApiController<T_NW_ROLE_MENU>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_MENU>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_NW_ROLE_MENU>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_NW_ROLE_MENU> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_NW_ROLE_MENU> 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_NW_ROLE_MENU entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_NW_ROLE_MENU> 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_NW_ROLE_MENU> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -315,7 +315,7 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
||||
AlibabaCloud.SDK.Dysmsapi20170525.Models.SendSmsRequest sendReq = new AlibabaCloud.SDK.Dysmsapi20170525.Models.SendSmsRequest { };
|
||||
sendReq.PhoneNumbers = user.PHONE;
|
||||
sendReq.SignName = "吐鲁番金源矿冶";// "小鸣学习";
|
||||
sendReq.TemplateCode = "SMS_496760196";// "SMS_472015260";
|
||||
sendReq.TemplateCode = "SMS_496915204";// "SMS_472015260";
|
||||
//sendReq.TemplateParam = "{'name':'" + send.NOTICE_TITLE + "','time':'" + send.TASK_ENDDT + "'}";
|
||||
sendReq.TemplateParam = "{'state':'临超期','name':'" + send.NOTICE_TITLE + "','time':'" + send.TASK_ENDDT + "'}";
|
||||
|
||||
@ -339,7 +339,7 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
||||
AlibabaCloud.SDK.Dysmsapi20170525.Models.SendSmsRequest sendReq = new AlibabaCloud.SDK.Dysmsapi20170525.Models.SendSmsRequest { };
|
||||
sendReq.PhoneNumbers = user.PHONE;
|
||||
sendReq.SignName = "吐鲁番金源矿冶";// "小鸣学习";
|
||||
sendReq.TemplateCode = "SMS_496760196";// "SMS_472015260";
|
||||
sendReq.TemplateCode = "SMS_496915204";// "SMS_472015260";
|
||||
//sendReq.TemplateParam = "{'name':'" + send.NOTICE_TITLE + "','time':'" + send.TASK_ENDDT + "'}";
|
||||
sendReq.TemplateParam = "{'state':'新','name':'" + send.NOTICE_TITLE + "','time':'" + send.TASK_ENDDT + "'}";
|
||||
AlibabaCloud.SDK.Dysmsapi20170525.Models.SendSmsResponse sendResp = client.SendSms(sendReq);
|
||||
|
||||
@ -86,11 +86,10 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
|
||||
//部门培训计划
|
||||
//CheckDepTrainPlan(filter, dtNow, config);
|
||||
CreateYearTrainPlan(filter, dtNow, config);
|
||||
CreateYearTrainPlan(filter, dtNow, config);//培训计划 (给安环部安全员)
|
||||
//到时间触发年度培训计划,搜集完成的部门培训计划
|
||||
//FinishYearTrainPlan(filter, dtNow, config); wyw 只触发给公司级 没必要添加结束时间 就一单 时间没到做归档也没意义
|
||||
//培训通知
|
||||
CheckYearTrainPlan(filter, dtNow);
|
||||
//CheckYearTrainPlan(filter, dtNow); //培训通知 旧模式 可废弃
|
||||
//培训通知 wyw
|
||||
TrainPlan(filter, dtNow);
|
||||
//换证培训触发
|
||||
@ -340,7 +339,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
try
|
||||
{
|
||||
var riskFilter = new BaseFilter(filter.GetOrgId());
|
||||
riskFilter.Include = new string[] { "Nav_User.Nav_Department", "Nav_Record.Nav_Notify.Nav_TrainCheckType", "Nav_Record.Nav_Papers", "Nav_User.Nav_ProdutionUnit.Nav_Enums", "Nav_Record.Nav_Papers" };
|
||||
riskFilter.Include = new string[] { "Nav_User.Nav_Department", "Nav_Record.Nav_Notify", "Nav_Record.Nav_Papers", "Nav_User.Nav_ProdutionUnit.Nav_Enums", "Nav_Record.Nav_Papers" };
|
||||
var param = GetEntity<T_FM_SYNC_TASK>(t => t.INTERFACE_ADDRESS == "PP/SEController/updateTrainRecordReport");
|
||||
var searchTime = DateTime.Parse("2023-01-01");
|
||||
if (param.SYNC_PARAM != null)
|
||||
@ -368,7 +367,9 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
newRecord.END_TIME = (DateTime)item.Nav_Record.Nav_Notify.TRAIN_END_TIME;
|
||||
newRecord.TRAIN_TYPE = changeEnum(item.Nav_Record.Nav_Notify.TRAIN_MODEL);
|
||||
newRecord.TRAIN_HOUR = item.Nav_Record.Nav_Notify.HOURS;
|
||||
newRecord.TRAIN_MODEL = item.Nav_Record.Nav_Notify.Nav_TrainCheckType.NAME;
|
||||
//newRecord.TRAIN_MODEL = item.Nav_Record.Nav_Notify.Nav_TrainCheckType.NAME;
|
||||
newRecord.TRAIN_MODEL = item.Nav_Record.Nav_Notify.CHECKTYPE.GetDescription();
|
||||
|
||||
newRecord.ORG_ID = filter.GetOrgId();
|
||||
newRecord.RECORD_ID = item.RECORD_ID;
|
||||
newRecord.TRAIN_TEACHER = item.Nav_Record.Nav_Notify.TRAIN_TEACHER;
|
||||
@ -401,7 +402,9 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
newRecord.END_TIME = (DateTime)item.Nav_Record.Nav_Notify.TRAIN_END_TIME;
|
||||
newRecord.TRAIN_TYPE = changeEnum(item.Nav_Record.Nav_Notify.TRAIN_MODEL);
|
||||
newRecord.TRAIN_HOUR = item.Nav_Record.Nav_Notify.HOURS;
|
||||
newRecord.TRAIN_MODEL = item.Nav_Record.Nav_Notify.Nav_TrainCheckType.NAME;
|
||||
//newRecord.TRAIN_MODEL = item.Nav_Record.Nav_Notify.Nav_TrainCheckType.NAME;
|
||||
newRecord.TRAIN_MODEL = item.Nav_Record.Nav_Notify.CHECKTYPE.GetDescription();
|
||||
|
||||
newRecord.ORG_ID = filter.GetOrgId();
|
||||
|
||||
newRecord.USER_ID = item.USER_ID;
|
||||
@ -1358,6 +1361,14 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
return true;
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 培训计划 (给安环部安全员)
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <param name="dtNow"></param>
|
||||
/// <param name="config"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="Exception"></exception>
|
||||
private JsonActionResult<bool> CreateYearTrainPlan(KeywordFilter filter, DateTime dtNow, T_SE_SECONFIG config)
|
||||
{
|
||||
return SafeExecute<bool>(() =>
|
||||
@ -1383,10 +1394,19 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
{
|
||||
return true;
|
||||
}
|
||||
var approveRole = this.GetEntity<T_PF_APPROVAL_ROLE>(e => e.NAME.Contains("安环部负责人"));
|
||||
T_FM_USER user = null;
|
||||
var approveRole = this.GetEntity<T_PF_APPROVAL_ROLE>(e => e.NAME.Contains("安环部安全员"));
|
||||
if (approveRole != null)
|
||||
{
|
||||
var user = GetEntity<T_FM_USER>(e => e.APPROVE_ROLE_ID.HasValue && e.APPROVE_ROLE_ID.Value == approveRole.ID && e.ENABLE_STATUS == 0);
|
||||
user = GetEntity<T_FM_USER>(e => e.APPROVE_ROLE_ID.HasValue && e.APPROVE_ROLE_ID.Value == approveRole.ID && e.ENABLE_STATUS == 0);
|
||||
}
|
||||
if (user == null)
|
||||
{
|
||||
approveRole = this.GetEntity<T_PF_APPROVAL_ROLE>(e => e.NAME.Contains("安环部负责人"));
|
||||
}
|
||||
if (approveRole != null)
|
||||
{
|
||||
user = GetEntity<T_FM_USER>(e => e.APPROVE_ROLE_ID.HasValue && e.APPROVE_ROLE_ID.Value == approveRole.ID && e.ENABLE_STATUS == 0);
|
||||
if (user == null)
|
||||
{
|
||||
approveRole = this.GetEntity<T_PF_APPROVAL_ROLE>(e => e.NAME.Contains("总监") && e.NAME.Contains("安"));
|
||||
@ -1552,7 +1572,8 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
trainNotify.TRAIN_ADDR = plan.ADDRESS;
|
||||
trainNotify.TRAIN_TEACHER = plan.TEACHER;
|
||||
trainNotify.TRAIN_MODEL = plan.TRAIN_MODEL;
|
||||
trainNotify.CHECK_TYPE_ID = plan.CHECK_TYPE_ID.Value;
|
||||
//trainNotify.CHECK_TYPE_ID = plan.CHECK_TYPE_ID.Value;
|
||||
|
||||
trainNotify.STATUS = SETrainNotifyStatus.草稿;
|
||||
trainNotify.ORG_ID = filter.GetOrgId();
|
||||
trainNotify.CODE = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
@ -1732,7 +1753,9 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
catch { }
|
||||
}
|
||||
|
||||
DateTime maxTime = dt.AddMinutes(10);
|
||||
//ActionExecutingContext context
|
||||
|
||||
DateTime maxTime = dt.AddMinutes(2);//10
|
||||
var orgId = filter.GetOrgId();
|
||||
BaseFilter baseFilter = new BaseFilter(orgId);
|
||||
baseFilter.Include = new string[] { "Nav_RecordUser", "Nav_TrainUserList.Nav_User.Nav_Department", "Nav_TrainUserList.Nav_User.Nav_Person.Nav_Post", "Nav_Files" };
|
||||
@ -2172,6 +2195,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
modelNotify.NAME = item.NAME;
|
||||
modelNotify.CREATE_NOTIFY_RECORD = true;
|
||||
|
||||
modelNotify.CHECKTYPE = item.CHECKTYPE;
|
||||
modelNotify.TRAIN_TYPE = TRAIN_TYPE;
|
||||
modelNotify.LEVEL = LEVEL;
|
||||
modelNotify.HOURS = item.CLASSHOUR;//培训学时
|
||||
|
||||
@ -1,13 +1,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// T4模板文件:基础接口类
|
||||
// 此代码由T4模板自动生成
|
||||
@ -21,5 +15,4 @@ using APT.Infrastructure.Api;
|
||||
using APT.BaseData.Domain.ApiModel.PF;
|
||||
namespace APT.PP.WebApi.Controllers.Api
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -695,7 +695,7 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
||||
#region 13
|
||||
|
||||
PerformanceModel CHARTZYRW1 = new PerformanceModel();
|
||||
var allzyrw = GetEntities<T_HM_OPERATION_LINK>(t=>t.IS_DELETED==false, new BaseFilter(filter.GetOrgId()));
|
||||
var allzyrw = GetEntities<T_HM_OPERATION_LINK>(t => t.IS_DELETED == false, new BaseFilter(filter.GetOrgId()));
|
||||
CHARTZYRW1.NAME = new List<string> { "许可作业", "关键任务", "一般任务" };
|
||||
var zy1 = allzyrw.Count(t => t.TASK_LEVEL == 1);
|
||||
var zy2 = allzyrw.Count(t => t.TASK_LEVEL == 2);
|
||||
@ -794,7 +794,7 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
||||
return SafeExecute<safeTrainData>(() =>
|
||||
{
|
||||
var riskFilter = new BaseFilter(filter.GetOrgId());
|
||||
riskFilter.Include = new string[] { "Nav_Notify.Nav_TrainUserList", "Nav_Users", "Nav_Notify.Nav_TrainCheckType" };
|
||||
riskFilter.Include = new string[] { "Nav_Notify.Nav_TrainUserList", "Nav_Users", "Nav_Notify" };
|
||||
DateTime time = DateTime.Parse(filter.Parameter1);
|
||||
DateTime currYear = DateTime.Parse(time.Year + " 01-01");
|
||||
var startTime = time.AddDays(1 - time.Day);
|
||||
@ -820,8 +820,12 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
||||
trainRecord.TIMERANGE = item.Nav_Notify.TRAIN_START_TIME + "-" + item.Nav_Notify.TRAIN_END_TIME;
|
||||
trainRecord.SHOULD_TRAINER = item.Nav_Notify.Nav_TrainUserList.Count();
|
||||
trainRecord.ACTUAL_TRAINER = item.Nav_Users.Count();
|
||||
trainRecord.METHOD = item.Nav_Notify.Nav_TrainCheckType.NAME;
|
||||
if (item.Nav_Notify.Nav_TrainCheckType.NAME == "笔试")
|
||||
|
||||
//trainRecord.METHOD = item.Nav_Notify.Nav_TrainCheckType.NAME;
|
||||
//if (item.Nav_Notify.Nav_TrainCheckType.NAME == "笔试")
|
||||
|
||||
trainRecord.METHOD = item.Nav_Notify.CHECKTYPE.GetDescription();
|
||||
if (item.Nav_Notify.CHECKTYPE == PlanCheckType.InOnLine)
|
||||
{
|
||||
var currExams = exams.Where(t => t.RECORD_ID == item.ID);
|
||||
var currCount = currExams.Count();
|
||||
|
||||
@ -57,6 +57,14 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
{
|
||||
throw new Exception("请选择培训人员");
|
||||
}
|
||||
if (entity.TRAIN_START_TIME.HasValue && entity.TRAIN_START_TIME.Value <= DateTime.Now)
|
||||
{
|
||||
throw new Exception("培训开始时间不能小于当前时间!");
|
||||
}
|
||||
if (entity.TRAIN_START_TIME.HasValue && entity.TRAIN_END_TIME.HasValue && entity.TRAIN_START_TIME.Value > entity.TRAIN_END_TIME.Value)
|
||||
{
|
||||
throw new Exception("培训开始时间不能大于培训结束时间!");
|
||||
}
|
||||
|
||||
var Nav_TrainUserList = entity.Nav_TrainUserList.Where(t => t.USER_ID != Guid.Empty);
|
||||
var Nav_Files = entity.Nav_Files;
|
||||
|
||||
@ -63,7 +63,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
// throw new Exception("请上传附件!");
|
||||
// }
|
||||
//}
|
||||
var data = GetEntity<T_SE_TRAIN_RECORD>(t => t.ID == entity.ID, new BaseFilter(entity.ORG_ID), new string[] { "Nav_Notify.Nav_TrainCheckType", "Nav_Notify.Nav_TrainContentList", "Nav_Users" });
|
||||
var data = GetEntity<T_SE_TRAIN_RECORD>(t => t.ID == entity.ID, new BaseFilter(entity.ORG_ID), new string[] { "Nav_Notify", "Nav_Notify.Nav_TrainContentList", "Nav_Users" });
|
||||
if (data != null && data.STATUS != SETrainRecordStatus.草稿)
|
||||
{
|
||||
throw new Exception("当前状态不可提交");
|
||||
@ -74,7 +74,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "SE017_SHOWPRINT");
|
||||
}
|
||||
|
||||
if (data.Nav_Notify != null && data.Nav_Notify.Nav_TrainCheckType != null && data.Nav_Notify.Nav_TrainCheckType.NAME == "笔试")
|
||||
//if (data.Nav_Notify != null && data.Nav_Notify.Nav_TrainCheckType != null && data.Nav_Notify.Nav_TrainCheckType.NAME == "笔试")
|
||||
if (data.Nav_Notify != null && data.Nav_Notify.CHECKTYPE == PlanCheckType.InOnLine)
|
||||
{
|
||||
var config = GetEntity<T_SE_SECONFIG>(t => true);
|
||||
var SCount = 1;
|
||||
@ -82,18 +83,29 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
var CCount = 1;
|
||||
if (config != null)
|
||||
{
|
||||
if (config.M_TEST_COUNT > 0)
|
||||
if (config.M_TEST_COUNT > 0 || config.S_TEST_COUNT > 0 || config.C_TEST_COUNT > 0)
|
||||
{
|
||||
//王永文 只要有配置 就获取
|
||||
MCount = config.M_TEST_COUNT;
|
||||
}
|
||||
if (config.S_TEST_COUNT > 0)
|
||||
{
|
||||
SCount = config.S_TEST_COUNT;
|
||||
}
|
||||
if (config.C_TEST_COUNT > 0)
|
||||
{
|
||||
CCount = config.C_TEST_COUNT;
|
||||
}
|
||||
else
|
||||
{
|
||||
//保持原来的版本
|
||||
if (config.M_TEST_COUNT > 0)
|
||||
{
|
||||
MCount = config.M_TEST_COUNT;
|
||||
}
|
||||
if (config.S_TEST_COUNT > 0)
|
||||
{
|
||||
SCount = config.S_TEST_COUNT;
|
||||
}
|
||||
if (config.C_TEST_COUNT > 0)
|
||||
{
|
||||
CCount = config.C_TEST_COUNT;
|
||||
}
|
||||
}
|
||||
}
|
||||
var pointIDS = data.Nav_Notify.Nav_TrainContentList.Select(t => t.POINT_ID).ToList();
|
||||
var testidlist = new List<Guid>();
|
||||
@ -229,6 +241,10 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
if (entity.TaskID == Guid.Empty)
|
||||
{
|
||||
throw new Exception("获取待办传参失败,请在首页待办进入考试!");
|
||||
}
|
||||
if (entity.Nav_Papers == null || entity.Nav_Papers.Count == 0)
|
||||
{
|
||||
throw new Exception("试卷不能为空");
|
||||
@ -261,10 +277,25 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
item.SCORE = score;
|
||||
}
|
||||
var finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID);
|
||||
T_SE_TRAIN_RECORD_USER RecordUser = null;
|
||||
if (APT.Infrastructure.Api.AppContext.CurrentSession.UserID.HasValue)
|
||||
{
|
||||
RecordUser = GetEntity<T_SE_TRAIN_RECORD_USER>(e => e.RECORD_ID == finishNotice.SOURCE_DATA_ID && e.USER_ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID);
|
||||
RecordUser.SCORE = score;
|
||||
int PASS_MARK = entity.Nav_Config.PASS_MARK;
|
||||
if (PASS_MARK == 0)
|
||||
{
|
||||
PASS_MARK = 60;
|
||||
}
|
||||
RecordUser.EXAMINATION_RESULTS = RecordUser.SCORE < PASS_MARK ? SEExaminationResultsEnum.不合格 : SEExaminationResultsEnum.合格;
|
||||
}
|
||||
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (finishNotice != null)
|
||||
UpdateEntityNoCommit(finishNotice);
|
||||
if (RecordUser != null)
|
||||
UpdateEntityNoCommit(RecordUser);
|
||||
BantchSaveEntityNoCommit(entity.Nav_Papers);
|
||||
|
||||
});
|
||||
@ -309,7 +340,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
userID = finishNotice.USER_ID;
|
||||
}
|
||||
|
||||
var record = GetEntity<T_SE_TRAIN_RECORD>(filter.Keyword, new string[] { "Nav_Notify.Nav_TrainCheckType", "Nav_Notify.Nav_TrainContentList", "Nav_Users.Nav_User" });
|
||||
var record = GetEntity<T_SE_TRAIN_RECORD>(filter.Keyword, new string[] { "Nav_Notify", "Nav_Notify.Nav_TrainContentList", "Nav_Users.Nav_User" });
|
||||
if (record == null)
|
||||
{
|
||||
throw new Exception("未查到当前培训记录,无法签到");
|
||||
@ -328,7 +359,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
//笔试才触发问卷,20201103提的需求
|
||||
|
||||
IEnumerable<T_SE_TRAIN_RECORD_PAPER> listCheckPaper = null;
|
||||
if (record.Nav_Notify != null && record.Nav_Notify.Nav_TrainCheckType != null && record.Nav_Notify.Nav_TrainCheckType.NAME == "笔试")
|
||||
//if (record.Nav_Notify != null && record.Nav_Notify.Nav_TrainCheckType != null && record.Nav_Notify.Nav_TrainCheckType.NAME == "笔试")
|
||||
if (record.Nav_Notify != null && record.Nav_Notify.CHECKTYPE == PlanCheckType.InOnLine)
|
||||
{
|
||||
listCheckPaper = GetEntities<T_SE_TRAIN_RECORD_PAPER>(t => t.RECORD_ID == record.ID && t.USER_ID == userID, null, null);
|
||||
if (isReSend)
|
||||
@ -351,18 +383,29 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
var CCount = 1;
|
||||
if (config != null)
|
||||
{
|
||||
if (config.M_TEST_COUNT > 0)
|
||||
if (config.M_TEST_COUNT > 0 || config.S_TEST_COUNT > 0 || config.C_TEST_COUNT > 0)
|
||||
{
|
||||
//王永文 只要有配置 就获取
|
||||
MCount = config.M_TEST_COUNT;
|
||||
}
|
||||
if (config.S_TEST_COUNT > 0)
|
||||
{
|
||||
SCount = config.S_TEST_COUNT;
|
||||
}
|
||||
if (config.C_TEST_COUNT > 0)
|
||||
{
|
||||
CCount = config.C_TEST_COUNT;
|
||||
}
|
||||
else
|
||||
{
|
||||
//保持原来的版本
|
||||
if (config.M_TEST_COUNT > 0)
|
||||
{
|
||||
MCount = config.M_TEST_COUNT;
|
||||
}
|
||||
if (config.S_TEST_COUNT > 0)
|
||||
{
|
||||
SCount = config.S_TEST_COUNT;
|
||||
}
|
||||
if (config.C_TEST_COUNT > 0)
|
||||
{
|
||||
CCount = config.C_TEST_COUNT;
|
||||
}
|
||||
}
|
||||
}
|
||||
var pointIDS = record.Nav_Notify.Nav_TrainContentList.Select(t => t.POINT_ID).ToList();
|
||||
var testidlist = new List<Guid>();
|
||||
@ -546,7 +589,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
HOURS = item.Nav_Notify.HOURS,
|
||||
TRAIN_TEACHER = item.Nav_User.NAME,//默认带转训的人
|
||||
TRAIN_MODEL = item.Nav_Notify.TRAIN_MODEL,
|
||||
CHECK_TYPE_ID = item.Nav_Notify.CHECK_TYPE_ID,
|
||||
//CHECK_TYPE_ID = item.Nav_Notify.CHECK_TYPE_ID,
|
||||
CHECKTYPE = item.Nav_Notify.CHECKTYPE,
|
||||
TRAIN_PLAN = item.Nav_Notify.TRAIN_PLAN,
|
||||
CREATE_NOTIFY_RECORD = true,
|
||||
ORIGINAL_NOTIFY_ID = item.Nav_Notify.ID,
|
||||
@ -598,8 +642,9 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
var absentUsers = "";
|
||||
var leaveUsers = data.Nav_Users.Where(t => t.STATUS == SETrainRecordUserStatusEnum.请假);
|
||||
var missUsers = data.Nav_Users.Where(t => t.STATUS == SETrainRecordUserStatusEnum.缺席);
|
||||
var UnqualifiedUsers = data.Nav_Users.Where(t => t.STATUS == SETrainRecordUserStatusEnum.参与 && t.EXAMINATION_RESULTS.HasValue && t.EXAMINATION_RESULTS.Value == SEExaminationResultsEnum.不合格);
|
||||
|
||||
if (leaveUsers.Count() > 0 || missUsers.Count() > 0)
|
||||
if (leaveUsers.Count() > 0 || missUsers.Count() > 0 || UnqualifiedUsers.Count() > 0)
|
||||
{
|
||||
foreach (var user in leaveUsers)
|
||||
{
|
||||
@ -617,7 +662,15 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
allSendUserNames.Add(user.Nav_User.NAME);
|
||||
absentUsers += user.Nav_User.NAME + " ";
|
||||
}
|
||||
allSendUserTitles.Add("请假和缺席人员:" + absentUsers + "未参加" + data.Nav_Notify.TRAIN_START_TIME.ToString().Substring(0, 10) + "举办的《" + data.Nav_Notify.NAME + "》培训,请重新安排培训!");
|
||||
foreach (var user in UnqualifiedUsers)
|
||||
{
|
||||
allSendUserTitles.Add("您未通过" + data.Nav_Notify.TRAIN_START_TIME.ToString().Substring(0, 10) + "举办的《" + data.Nav_Notify.NAME + "》培训考试,请关注下次培训!");
|
||||
allSendDataIds.Add(Guid.Parse(filter.Keyword));
|
||||
allSendUserIds.Add(user.USER_ID);
|
||||
allSendUserNames.Add(user.Nav_User.NAME);
|
||||
absentUsers += user.Nav_User.NAME + " ";
|
||||
}
|
||||
allSendUserTitles.Add("请假、缺席和未通过考核人员:" + absentUsers + "未参加/通过" + data.Nav_Notify.TRAIN_START_TIME.ToString().Substring(0, 10) + "举办的《" + data.Nav_Notify.NAME + "》培训,请重新安排培训!");
|
||||
allSendDataIds.Add(Guid.Parse(filter.Keyword));
|
||||
allSendUserIds.Add((Guid)data.Nav_Notify.LAUNCH_USER_ID);
|
||||
allSendUserNames.Add(data.Nav_Notify.Nav_LaunchUser.NAME);
|
||||
|
||||
@ -273,18 +273,29 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
var CCount = 1;
|
||||
if (config != null)
|
||||
{
|
||||
if (config.M_TEST_COUNT > 0)
|
||||
if (config.M_TEST_COUNT > 0 || config.S_TEST_COUNT > 0 || config.C_TEST_COUNT > 0)
|
||||
{
|
||||
//王永文 只要有配置 就获取
|
||||
MCount = config.M_TEST_COUNT;
|
||||
}
|
||||
if (config.S_TEST_COUNT > 0)
|
||||
{
|
||||
SCount = config.S_TEST_COUNT;
|
||||
}
|
||||
if (config.C_TEST_COUNT > 0)
|
||||
{
|
||||
CCount = config.C_TEST_COUNT;
|
||||
}
|
||||
else
|
||||
{
|
||||
//保持原来的版本
|
||||
if (config.M_TEST_COUNT > 0)
|
||||
{
|
||||
MCount = config.M_TEST_COUNT;
|
||||
}
|
||||
if (config.S_TEST_COUNT > 0)
|
||||
{
|
||||
SCount = config.S_TEST_COUNT;
|
||||
}
|
||||
if (config.C_TEST_COUNT > 0)
|
||||
{
|
||||
CCount = config.C_TEST_COUNT;
|
||||
}
|
||||
}
|
||||
}
|
||||
var testidlist = new List<Guid>();
|
||||
var testFilter = new BaseFilter(filter.GetOrgId());
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user