Compare commits
No commits in common. "7493821ba132625393bdcdfdb0e4b4c31cdfc005" and "0db60e5ee0f529d0081ed2760b6e427131ee6d2d" have entirely different histories.
7493821ba1
...
0db60e5ee0
136464
APT.Data.Migrations/Migrations/20251126150008_wyw2025112601.Designer.cs
generated
Normal file
136464
APT.Data.Migrations/Migrations/20251126150008_wyw2025112601.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class wyw2025112601 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "ISNEEDINI",
|
||||||
|
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ISNEEDINI",
|
||||||
|
table: "T_SE_TRAIN_PLAN_DETAIL");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136494
APT.Data.Migrations/Migrations/20251128031047_wyw2025112801.Designer.cs
generated
Normal file
136494
APT.Data.Migrations/Migrations/20251128031047_wyw2025112801.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,98 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class wyw2025112801 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "ENABLE_STATUS",
|
||||||
|
table: "T_SE_TRAIN_RECORD_USER",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "EXAMETIMES",
|
||||||
|
table: "T_SE_TRAIN_RECORD_USER",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 1);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "RECORD_UUSER_ID",
|
||||||
|
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "USER_ID_TEACHER",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SE_TRAIN_RECORD_PAPER_RECORD_UUSER_ID",
|
||||||
|
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||||
|
column: "RECORD_UUSER_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SE_TRAIN_NOTIFY_USER_ID_TEACHER",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY",
|
||||||
|
column: "USER_ID_TEACHER");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_SE_TRAIN_NOTIFY_T_FM_USER_USER_ID_TEACHER",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY",
|
||||||
|
column: "USER_ID_TEACHER",
|
||||||
|
principalTable: "T_FM_USER",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_USER_RECORD_UUSER_ID",
|
||||||
|
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||||
|
column: "RECORD_UUSER_ID",
|
||||||
|
principalTable: "T_SE_TRAIN_RECORD_USER",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_SE_TRAIN_NOTIFY_T_FM_USER_USER_ID_TEACHER",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY");
|
||||||
|
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_USER_RECORD_UUSER_ID",
|
||||||
|
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_SE_TRAIN_RECORD_PAPER_RECORD_UUSER_ID",
|
||||||
|
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_SE_TRAIN_NOTIFY_USER_ID_TEACHER",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ENABLE_STATUS",
|
||||||
|
table: "T_SE_TRAIN_RECORD_USER");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "EXAMETIMES",
|
||||||
|
table: "T_SE_TRAIN_RECORD_USER");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "RECORD_UUSER_ID",
|
||||||
|
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "USER_ID_TEACHER",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136500
APT.Data.Migrations/Migrations/20251128031755_wyw2025112802.Designer.cs
generated
Normal file
136500
APT.Data.Migrations/Migrations/20251128031755_wyw2025112802.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,35 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class wyw2025112802 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "IN_OUT",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 5);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "TRAINTYPE",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "IN_OUT",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TRAINTYPE",
|
||||||
|
table: "T_SE_TRAIN_NOTIFY");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136509
APT.Data.Migrations/Migrations/20251201125645_wyw2025120101.Designer.cs
generated
Normal file
136509
APT.Data.Migrations/Migrations/20251201125645_wyw2025120101.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class wyw2025120101 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SE_NEW_USER_DETAIL_NEXT_DEPARTMENT_ID",
|
||||||
|
table: "T_SE_NEW_USER_DETAIL",
|
||||||
|
column: "NEXT_DEPARTMENT_ID");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_SE_NEW_USER_DETAIL_T_FM_DEPARTMENT_NEXT_DEPARTMENT_ID",
|
||||||
|
table: "T_SE_NEW_USER_DETAIL",
|
||||||
|
column: "NEXT_DEPARTMENT_ID",
|
||||||
|
principalTable: "T_FM_DEPARTMENT",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_SE_NEW_USER_DETAIL_T_FM_DEPARTMENT_NEXT_DEPARTMENT_ID",
|
||||||
|
table: "T_SE_NEW_USER_DETAIL");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_SE_NEW_USER_DETAIL_NEXT_DEPARTMENT_ID",
|
||||||
|
table: "T_SE_NEW_USER_DETAIL");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136691
APT.Data.Migrations/Migrations/20251203153918_hmr2025120301.Designer.cs
generated
Normal file
136691
APT.Data.Migrations/Migrations/20251203153918_hmr2025120301.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
244
APT.Data.Migrations/Migrations/20251203153918_hmr2025120301.cs
Normal file
244
APT.Data.Migrations/Migrations/20251203153918_hmr2025120301.cs
Normal file
@ -0,0 +1,244 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class hmr2025120301 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_T_FM_USER_POST_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST");
|
||||||
|
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_T_FM_USER_POST_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST");
|
||||||
|
|
||||||
|
migrationBuilder.RenameColumn(
|
||||||
|
name: "POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST",
|
||||||
|
newName: "DEPARTMENT_ID");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST",
|
||||||
|
newName: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DEPARTMENT_ID");
|
||||||
|
|
||||||
|
migrationBuilder.RenameColumn(
|
||||||
|
name: "POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
newName: "DEPARTMENT_ID");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
newName: "IX_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DEPARTMENT_ID");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "DEPARTMENT_TYPE",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "DEPARTMENT_TYPE",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
RISK_IDENTIFY_DETAIL_RESULT_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_IDENTIFY_DETAIL_RESULT_POST_DETAIL", x => x.ID);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_DETAIL_RESULT_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_IDENTIFY_DETAIL_RESULT_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_IDENTIFY_DETAIL_RESULT_POST_DETAIL_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_RISK_IDENTIFY_DETAIL_RESULT_POST_ID",
|
||||||
|
column: x => x.RISK_IDENTIFY_DETAIL_RESULT_POST_ID,
|
||||||
|
principalTable: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
IDENTIFY_RESULT_SUMMARY_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_IDENTIFY_RESULT_SUMMARY_POST_DETAIL", x => x.ID);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_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_IDENTIFY_RESULT_SUMMARY_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_IDENTIFY_RESULT_SUMMARY_POST_DETAIL_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_IDENTIFY_RESULT_SUMMARY_POST_ID",
|
||||||
|
column: x => x.IDENTIFY_RESULT_SUMMARY_POST_ID,
|
||||||
|
principalTable: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL_ORG_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL",
|
||||||
|
column: "ORG_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL",
|
||||||
|
column: "POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL_RISK_IDENTIFY_DETAIL_RESULT_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL",
|
||||||
|
column: "RISK_IDENTIFY_DETAIL_RESULT_POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL_IDENTIFY_RESULT_SUMMARY_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL",
|
||||||
|
column: "IDENTIFY_RESULT_SUMMARY_POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL_ORG_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL",
|
||||||
|
column: "ORG_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL",
|
||||||
|
column: "POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
column: "DEPARTMENT_ID",
|
||||||
|
principalTable: "T_FM_DEPARTMENT",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_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_IDENTIFY_DETAIL_RESULT_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST");
|
||||||
|
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "DEPARTMENT_TYPE",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "DEPARTMENT_TYPE",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST");
|
||||||
|
|
||||||
|
migrationBuilder.RenameColumn(
|
||||||
|
name: "DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST",
|
||||||
|
newName: "POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST",
|
||||||
|
newName: "IX_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.RenameColumn(
|
||||||
|
name: "DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
newName: "POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DEPARTMENT_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
newName: "IX_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_POST_ID");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_T_FM_USER_POST_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST",
|
||||||
|
column: "POST_ID",
|
||||||
|
principalTable: "T_FM_USER_POST",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_T_FM_USER_POST_POST_ID",
|
||||||
|
table: "T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST",
|
||||||
|
column: "POST_ID",
|
||||||
|
principalTable: "T_FM_USER_POST",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136949
APT.Data.Migrations/Migrations/20251205141546_hmr2025120501.Designer.cs
generated
Normal file
136949
APT.Data.Migrations/Migrations/20251205141546_hmr2025120501.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
194
APT.Data.Migrations/Migrations/20251205141546_hmr2025120501.cs
Normal file
194
APT.Data.Migrations/Migrations/20251205141546_hmr2025120501.cs
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class hmr2025120501 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "T_FO_TECH_DISCLOSURE_FILE",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TECH_DISCLOSURE_FROM_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_FO_TECH_DISCLOSURE_FILE", x => x.ID);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_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_FO_TECH_DISCLOSURE_FILE_T_FO_TECH_DISCLOSURE_FROM_TECH_DISCLOSURE_FROM_ID",
|
||||||
|
column: x => x.TECH_DISCLOSURE_FROM_ID,
|
||||||
|
principalTable: "T_FO_TECH_DISCLOSURE_FROM",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||||
|
column: x => x.IMG_FILE_ID,
|
||||||
|
principalTable: "T_PF_IMG_FILE",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TECH_DISCLOSURE_FROM_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_FO_TECH_DISCLOSURE_FROM_SAFE_FILE", x => x.ID);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_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_FO_TECH_DISCLOSURE_FROM_SAFE_FILE_T_FO_TECH_DISCLOSURE_FROM_SAFE_TECH_DISCLOSURE_FROM_ID",
|
||||||
|
column: x => x.TECH_DISCLOSURE_FROM_ID,
|
||||||
|
principalTable: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||||
|
column: x => x.IMG_FILE_ID,
|
||||||
|
principalTable: "T_PF_IMG_FILE",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "T_FO_TECH_DISCLOSURE_FROM_TECH_FILE",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TECH_DISCLOSURE_FROM_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_FO_TECH_DISCLOSURE_FROM_TECH_FILE", x => x.ID);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_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_FO_TECH_DISCLOSURE_FROM_TECH_FILE_T_FO_TECH_DISCLOSURE_FROM_TECH_TECH_DISCLOSURE_FROM_ID",
|
||||||
|
column: x => x.TECH_DISCLOSURE_FROM_ID,
|
||||||
|
principalTable: "T_FO_TECH_DISCLOSURE_FROM_TECH",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||||
|
column: x => x.IMG_FILE_ID,
|
||||||
|
principalTable: "T_PF_IMG_FILE",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FILE_IMG_FILE_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FILE",
|
||||||
|
column: "IMG_FILE_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FILE_ORG_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FILE",
|
||||||
|
column: "ORG_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FILE_TECH_DISCLOSURE_FROM_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FILE",
|
||||||
|
column: "TECH_DISCLOSURE_FROM_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE_IMG_FILE_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE",
|
||||||
|
column: "IMG_FILE_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE_ORG_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE",
|
||||||
|
column: "ORG_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE_TECH_DISCLOSURE_FROM_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE",
|
||||||
|
column: "TECH_DISCLOSURE_FROM_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_FILE_IMG_FILE_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH_FILE",
|
||||||
|
column: "IMG_FILE_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_FILE_ORG_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH_FILE",
|
||||||
|
column: "ORG_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_FILE_TECH_DISCLOSURE_FROM_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH_FILE",
|
||||||
|
column: "TECH_DISCLOSURE_FROM_ID");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "T_FO_TECH_DISCLOSURE_FILE");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "T_FO_TECH_DISCLOSURE_FROM_TECH_FILE");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136984
APT.Data.Migrations/Migrations/20251206043336_hmr2025120601.Designer.cs
generated
Normal file
136984
APT.Data.Migrations/Migrations/20251206043336_hmr2025120601.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
125
APT.Data.Migrations/Migrations/20251206043336_hmr2025120601.cs
Normal file
125
APT.Data.Migrations/Migrations/20251206043336_hmr2025120601.cs
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class hmr2025120601 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "USER_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "uniqueidentifier");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "CLASS_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "DRIVER_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "TECH_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_SCHEDULING_CLASS_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
column: "CLASS_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_SCHEDULING_DRIVER_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
column: "DRIVER_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_SCHEDULING_TECH_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
column: "TECH_ID");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_FO_SCHEDULING_T_FM_CLASS_CLASS_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
column: "CLASS_ID",
|
||||||
|
principalTable: "T_FM_CLASS",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_FO_SCHEDULING_T_FM_USER_DRIVER_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
column: "DRIVER_ID",
|
||||||
|
principalTable: "T_FM_USER",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_FO_SCHEDULING_T_FM_USER_TECH_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
column: "TECH_ID",
|
||||||
|
principalTable: "T_FM_USER",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_FO_SCHEDULING_T_FM_CLASS_CLASS_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_FO_SCHEDULING_T_FM_USER_DRIVER_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_FO_SCHEDULING_T_FM_USER_TECH_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_FO_SCHEDULING_CLASS_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_FO_SCHEDULING_DRIVER_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_FO_SCHEDULING_TECH_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CLASS_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "DRIVER_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TECH_ID",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "USER_ID",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "uniqueidentifier",
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136988
APT.Data.Migrations/Migrations/20251206092548_hmr2025120602.Designer.cs
generated
Normal file
136988
APT.Data.Migrations/Migrations/20251206092548_hmr2025120602.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,46 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class hmr2025120602 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "PHONE",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(500)",
|
||||||
|
oldMaxLength: 500,
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "REMARK",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "nvarchar(500)",
|
||||||
|
maxLength: 500,
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "REMARK",
|
||||||
|
table: "T_FO_SCHEDULING");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "PHONE",
|
||||||
|
table: "T_FO_SCHEDULING",
|
||||||
|
type: "nvarchar(500)",
|
||||||
|
maxLength: 500,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(50)",
|
||||||
|
oldMaxLength: 50,
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136996
APT.Data.Migrations/Migrations/20251207110557_hmr2025120701.Designer.cs
generated
Normal file
136996
APT.Data.Migrations/Migrations/20251207110557_hmr2025120701.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,83 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class hmr2025120701 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "IS_AUTO",
|
||||||
|
table: "T_SK_CHECK_SET",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "IS_HOLIDAY",
|
||||||
|
table: "T_FO_FIRE_JOB_WB",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "IS_HOLIDAY",
|
||||||
|
table: "T_FO_FIRE_JOB",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "NEXT_CLASS_TEAM_ID",
|
||||||
|
table: "T_FO_CURRENT_CLASS_RECORD",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "uniqueidentifier");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "CLASS_TEAM_ID",
|
||||||
|
table: "T_FO_CURRENT_CLASS_RECORD",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "uniqueidentifier");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "IS_AUTO",
|
||||||
|
table: "T_SK_CHECK_SET");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "IS_HOLIDAY",
|
||||||
|
table: "T_FO_FIRE_JOB_WB");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "IS_HOLIDAY",
|
||||||
|
table: "T_FO_FIRE_JOB");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "NEXT_CLASS_TEAM_ID",
|
||||||
|
table: "T_FO_CURRENT_CLASS_RECORD",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "uniqueidentifier",
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "CLASS_TEAM_ID",
|
||||||
|
table: "T_FO_CURRENT_CLASS_RECORD",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "uniqueidentifier",
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
137040
APT.Data.Migrations/Migrations/20251210082458_hmr2025121001.Designer.cs
generated
Normal file
137040
APT.Data.Migrations/Migrations/20251210082458_hmr2025121001.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
133
APT.Data.Migrations/Migrations/20251210082458_hmr2025121001.cs
Normal file
133
APT.Data.Migrations/Migrations/20251210082458_hmr2025121001.cs
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class hmr2025121001 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_SECURITY_INSPECTION_RECORD",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_SECURITY_INSPECTION_NOTICE",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_REPORT",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_HAND_REPORT",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_CONFIRM",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "FIRE_JOB_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_FIRE_JOB_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
||||||
|
column: "FIRE_JOB_ID");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
||||||
|
column: "FIRE_JOB_ID",
|
||||||
|
principalTable: "T_FO_FIRE_JOB",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_FIRE_JOB_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_SECURITY_INSPECTION_RECORD_SUMMARY");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_SECURITY_INSPECTION_RECORD");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_SECURITY_INSPECTION_NOTICE");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_REPORT");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_RECTIFY_NOTICE");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_HAND_REPORT");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NOTICE_CODE",
|
||||||
|
table: "T_SK_HIDDEN_DANGER_CONFIRM");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "FIRE_JOB_ID",
|
||||||
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
137043
APT.Data.Migrations/Migrations/20251218062611_wyw2025121801.Designer.cs
generated
Normal file
137043
APT.Data.Migrations/Migrations/20251218062611_wyw2025121801.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class wyw2025121801 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "ISGETMSG",
|
||||||
|
table: "T_FM_USER",
|
||||||
|
type: "bit",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ISGETMSG",
|
||||||
|
table: "T_FM_USER");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace APT.Data.Migrations.Migrations
|
namespace APT.Data.Migrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(MigrationContext))]
|
[DbContext(typeof(MigrationContext))]
|
||||||
[Migration("20260202064225_wyw2026020201")]
|
[Migration("20251219062203_wyw2025121901")]
|
||||||
partial class wyw2026020201
|
partial class wyw2025121901
|
||||||
{
|
{
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
@ -71962,207 +71962,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.ToTable("T_SE_CERTIFICATE_TYPE");
|
b.ToTable("T_SE_CERTIFICATE_TYPE");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("CODE")
|
|
||||||
.HasMaxLength(30)
|
|
||||||
.HasColumnType("nvarchar(30)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid>("DEPARTMENTID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<string>("FILENAME")
|
|
||||||
.HasMaxLength(200)
|
|
||||||
.HasColumnType("nvarchar(200)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FILE_DB_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("FILE_PATH")
|
|
||||||
.HasMaxLength(200)
|
|
||||||
.HasColumnType("nvarchar(200)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<string>("NAME")
|
|
||||||
.HasMaxLength(50)
|
|
||||||
.HasColumnType("nvarchar(50)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<decimal>("SCOREPASS")
|
|
||||||
.HasColumnType("decimal(18,2)");
|
|
||||||
|
|
||||||
b.Property<Guid>("USER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("DEPARTMENTID");
|
|
||||||
|
|
||||||
b.HasIndex("FILE_DB_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_COURSEWEARLIBRARY");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_DETAIL", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid>("EDU_CARD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("NUM")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<decimal>("SCOREPER")
|
|
||||||
.HasColumnType("decimal(18,2)");
|
|
||||||
|
|
||||||
b.Property<Guid>("TEST_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("EDU_CARD_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("TEST_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_COURSEWEARLIBRARY_DETAIL");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_FILE", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("COURSEWEARLIBRARY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("IMG_FILE_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("COURSEWEARLIBRARY_ID");
|
|
||||||
|
|
||||||
b.HasIndex("IMG_FILE_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_COURSEWEARLIBRARY_FILE");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -72454,7 +72253,7 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasMaxLength(10)
|
.HasMaxLength(10)
|
||||||
.HasColumnType("nvarchar(10)");
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<int?>("TRAINTYPE")
|
b.Property<int>("TRAINTYPE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("TRAIN_STATUS")
|
b.Property<int>("TRAIN_STATUS")
|
||||||
@ -72597,8 +72396,8 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("CODE")
|
b.Property<string>("CODE")
|
||||||
.HasMaxLength(30)
|
.HasMaxLength(10)
|
||||||
.HasColumnType("nvarchar(30)");
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
b.Property<Guid?>("CREATER_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
@ -72792,9 +72591,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<Guid?>("TEST_ID")
|
b.Property<Guid?>("TEST_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("TEXT_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
b.Property<Guid?>("USER_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -72806,79 +72602,11 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.HasIndex("TEST_ID");
|
b.HasIndex("TEST_ID");
|
||||||
|
|
||||||
b.HasIndex("TEXT_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
b.HasIndex("USER_ID");
|
||||||
|
|
||||||
b.ToTable("T_SE_NEW_USER_DETAIL_PAPER");
|
b.ToTable("T_SE_NEW_USER_DETAIL_PAPER");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("ISPASS")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("RECORD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int?>("SCORE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("TEXT_TIMES")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("RECORD_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_NEW_USER_DETAIL_TEXT");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -74572,9 +74300,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
b.Property<int>("ENTITY_ORG_TPYE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("EXAMETYPE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
b.Property<Guid?>("FLOW_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -74750,66 +74475,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.ToTable("T_SE_TRAIN_NOTIFY_CONTENT_REL");
|
b.ToTable("T_SE_TRAIN_NOTIFY_CONTENT_REL");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("COURSEWEARLIBRARY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid>("NOTIFY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("NUM")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("COURSEWEARLIBRARY_ID");
|
|
||||||
|
|
||||||
b.HasIndex("NOTIFY_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -75376,16 +75041,9 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<DateTime?>("CREATE_TIME")
|
b.Property<DateTime?>("CREATE_TIME")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<Guid?>("EDU_CARD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
b.Property<int>("ENTITY_ORG_TPYE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("FILE_PATH")
|
|
||||||
.HasMaxLength(200)
|
|
||||||
.HasColumnType("nvarchar(200)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
b.Property<Guid?>("FLOW_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -75423,9 +75081,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<Guid?>("TEST_ID")
|
b.Property<Guid?>("TEST_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("TEXT_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
b.Property<Guid?>("USER_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -75439,8 +75094,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.HasIndex("TEST_ID");
|
b.HasIndex("TEST_ID");
|
||||||
|
|
||||||
b.HasIndex("TEXT_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
b.HasIndex("USER_ID");
|
||||||
|
|
||||||
b.ToTable("T_SE_TRAIN_RECORD_PAPER");
|
b.ToTable("T_SE_TRAIN_RECORD_PAPER");
|
||||||
@ -75476,9 +75129,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
b.Property<int>("ENTITY_ORG_TPYE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("EXAMINATION_RESULTS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
b.Property<Guid?>("FLOW_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -75553,72 +75203,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.ToTable("T_SE_TRAIN_RECORD_REPORT");
|
b.ToTable("T_SE_TRAIN_RECORD_REPORT");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool?>("ISPASS")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("RECORD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int?>("SCORE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("TEXT_TIMES")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("RECORD_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_TRAIN_RECORD_TEXT");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -124183,94 +123767,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Org");
|
b.Navigation("Nav_Org");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("DEPARTMENTID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_FILE_DB", "Nav_FileDB")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("FILE_DB_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("USER_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Department");
|
|
||||||
|
|
||||||
b.Navigation("Nav_FileDB");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_DETAIL", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", "Nav_Cour")
|
|
||||||
.WithMany("Nav_Detail")
|
|
||||||
.HasForeignKey("EDU_CARD_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TEST", "Nav_Test")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("TEST_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Cour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Test");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_FILE", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", "Nav_Cour")
|
|
||||||
.WithMany("Nav_Files")
|
|
||||||
.HasForeignKey("COURSEWEARLIBRARY_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("IMG_FILE_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Cour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_ImgFile");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_LaunchDepartment")
|
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_LaunchDepartment")
|
||||||
@ -124535,11 +124031,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasForeignKey("TEST_ID")
|
.HasForeignKey("TEST_ID")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", "Nav_Text")
|
|
||||||
.WithMany("Nav_ListPaper")
|
|
||||||
.HasForeignKey("TEXT_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("USER_ID")
|
.HasForeignKey("USER_ID")
|
||||||
@ -124551,34 +124042,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("Nav_Test");
|
b.Navigation("Nav_Test");
|
||||||
|
|
||||||
b.Navigation("Nav_Text");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL", "Nav_Record")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("RECORD_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("USER_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Record");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
b.Navigation("Nav_User");
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -125240,33 +124703,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Point");
|
b.Navigation("Nav_Point");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", "Nav_Cour")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("COURSEWEARLIBRARY_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY", "Nav_Notify")
|
|
||||||
.WithMany("Nav_ListCour")
|
|
||||||
.HasForeignKey("NOTIFY_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Cour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Notify");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
||||||
@ -125502,11 +124938,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasForeignKey("TEST_ID")
|
.HasForeignKey("TEST_ID")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", "Nav_Text")
|
|
||||||
.WithMany("Nav_ListPaper")
|
|
||||||
.HasForeignKey("TEXT_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("USER_ID")
|
.HasForeignKey("USER_ID")
|
||||||
@ -125520,8 +124951,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("Nav_Test");
|
b.Navigation("Nav_Test");
|
||||||
|
|
||||||
b.Navigation("Nav_Text");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
b.Navigation("Nav_User");
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -125536,32 +124965,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Org");
|
b.Navigation("Nav_Org");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD", "Nav_Record")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("RECORD_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("USER_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Record");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||||
@ -136819,13 +136222,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Posts");
|
b.Navigation("Nav_Posts");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Nav_Detail");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Files");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Nav_DepTrainPlanDetail");
|
b.Navigation("Nav_DepTrainPlanDetail");
|
||||||
@ -136852,11 +136248,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Papers");
|
b.Navigation("Nav_Papers");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Nav_ListPaper");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Nav_Files");
|
b.Navigation("Nav_Files");
|
||||||
@ -136908,8 +136299,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
{
|
{
|
||||||
b.Navigation("Nav_Files");
|
b.Navigation("Nav_Files");
|
||||||
|
|
||||||
b.Navigation("Nav_ListCour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_TrainContentList");
|
b.Navigation("Nav_TrainContentList");
|
||||||
|
|
||||||
b.Navigation("Nav_TrainUserList");
|
b.Navigation("Nav_TrainUserList");
|
||||||
@ -136936,11 +136325,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Users");
|
b.Navigation("Nav_Users");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Nav_ListPaper");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_SURVEY", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_SURVEY", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Nav_Demands");
|
b.Navigation("Nav_Demands");
|
||||||
107
APT.Data.Migrations/Migrations/20251219062203_wyw2025121901.cs
Normal file
107
APT.Data.Migrations/Migrations/20251219062203_wyw2025121901.cs
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class wyw2025121901 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TEACHER",
|
||||||
|
table: "T_SE_NEW_USERS");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TRAIN_MODEL",
|
||||||
|
table: "T_SE_NEW_USERS");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "TRAINTYPE",
|
||||||
|
table: "T_SE_NEW_USERS",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "T_SE_NEW_USERS_TEACHER",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
NEW_USERS_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
USER_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_NEW_USERS_TEACHER", x => x.ID);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_SE_NEW_USERS_TEACHER_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_NEW_USERS_TEACHER_T_FM_USER_USER_ID",
|
||||||
|
column: x => x.USER_ID,
|
||||||
|
principalTable: "T_FM_USER",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_T_SE_NEW_USERS_TEACHER_T_SE_NEW_USERS_NEW_USERS_ID",
|
||||||
|
column: x => x.NEW_USERS_ID,
|
||||||
|
principalTable: "T_SE_NEW_USERS",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SE_NEW_USERS_TEACHER_NEW_USERS_ID",
|
||||||
|
table: "T_SE_NEW_USERS_TEACHER",
|
||||||
|
column: "NEW_USERS_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SE_NEW_USERS_TEACHER_ORG_ID",
|
||||||
|
table: "T_SE_NEW_USERS_TEACHER",
|
||||||
|
column: "ORG_ID");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_SE_NEW_USERS_TEACHER_USER_ID",
|
||||||
|
table: "T_SE_NEW_USERS_TEACHER",
|
||||||
|
column: "USER_ID");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "T_SE_NEW_USERS_TEACHER");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TRAINTYPE",
|
||||||
|
table: "T_SE_NEW_USERS");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "TEACHER",
|
||||||
|
table: "T_SE_NEW_USERS",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "TRAIN_MODEL",
|
||||||
|
table: "T_SE_NEW_USERS",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace APT.Data.Migrations.Migrations
|
namespace APT.Data.Migrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(MigrationContext))]
|
[DbContext(typeof(MigrationContext))]
|
||||||
[Migration("20260121093039_wyw2026012101")]
|
[Migration("20251219071541_wyw2025121902")]
|
||||||
partial class wyw2026012101
|
partial class wyw2025121902
|
||||||
{
|
{
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
@ -17348,17 +17348,12 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<Guid?>("ENTITY_ID")
|
b.Property<Guid?>("ENTITY_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("VALUE")
|
b.Property<string>("VALUE")
|
||||||
.HasMaxLength(600)
|
.HasMaxLength(600)
|
||||||
.HasColumnType("nvarchar(600)");
|
.HasColumnType("nvarchar(600)");
|
||||||
|
|
||||||
b.HasKey("ID");
|
b.HasKey("ID");
|
||||||
|
|
||||||
b.HasIndex("T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID");
|
|
||||||
|
|
||||||
b.ToTable("T_PF_PARAM");
|
b.ToTable("T_PF_PARAM");
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -71967,207 +71962,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.ToTable("T_SE_CERTIFICATE_TYPE");
|
b.ToTable("T_SE_CERTIFICATE_TYPE");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("CODE")
|
|
||||||
.HasMaxLength(30)
|
|
||||||
.HasColumnType("nvarchar(30)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid>("DEPARTMENTID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<string>("FILENAME")
|
|
||||||
.HasMaxLength(200)
|
|
||||||
.HasColumnType("nvarchar(200)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FILE_DB_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("FILE_PATH")
|
|
||||||
.HasMaxLength(200)
|
|
||||||
.HasColumnType("nvarchar(200)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<string>("NAME")
|
|
||||||
.HasMaxLength(50)
|
|
||||||
.HasColumnType("nvarchar(50)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<decimal>("SCOREPASS")
|
|
||||||
.HasColumnType("decimal(18,2)");
|
|
||||||
|
|
||||||
b.Property<Guid>("USER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("DEPARTMENTID");
|
|
||||||
|
|
||||||
b.HasIndex("FILE_DB_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_COURSEWEARLIBRARY");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_DETAIL", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid>("EDU_CARD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("NUM")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<decimal>("SCOREPER")
|
|
||||||
.HasColumnType("decimal(18,2)");
|
|
||||||
|
|
||||||
b.Property<Guid>("TEST_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("EDU_CARD_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("TEST_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_COURSEWEARLIBRARY_DETAIL");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_FILE", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("COURSEWEARLIBRARY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("IMG_FILE_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("COURSEWEARLIBRARY_ID");
|
|
||||||
|
|
||||||
b.HasIndex("IMG_FILE_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_COURSEWEARLIBRARY_FILE");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -72602,8 +72396,8 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("CODE")
|
b.Property<string>("CODE")
|
||||||
.HasMaxLength(30)
|
.HasMaxLength(10)
|
||||||
.HasColumnType("nvarchar(30)");
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
b.Property<Guid?>("CREATER_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
@ -72797,9 +72591,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<Guid?>("TEST_ID")
|
b.Property<Guid?>("TEST_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("TEXT_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
b.Property<Guid?>("USER_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -72811,79 +72602,11 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.HasIndex("TEST_ID");
|
b.HasIndex("TEST_ID");
|
||||||
|
|
||||||
b.HasIndex("TEXT_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
b.HasIndex("USER_ID");
|
||||||
|
|
||||||
b.ToTable("T_SE_NEW_USER_DETAIL_PAPER");
|
b.ToTable("T_SE_NEW_USER_DETAIL_PAPER");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("ISPASS")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("RECORD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int?>("SCORE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("TEXT_TIMES")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("RECORD_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_NEW_USER_DETAIL_TEXT");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -74577,9 +74300,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
b.Property<int>("ENTITY_ORG_TPYE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("EXAMETYPE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
b.Property<Guid?>("FLOW_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -74755,80 +74475,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.ToTable("T_SE_TRAIN_NOTIFY_CONTENT_REL");
|
b.ToTable("T_SE_TRAIN_NOTIFY_CONTENT_REL");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("COURSEWEARLIBRARY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<string>("DbConn")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid>("NOTIFY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("NUM")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("Nav_CourID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("Nav_NotifyID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("Nav_OrgID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("TaskID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("Nav_CourID");
|
|
||||||
|
|
||||||
b.HasIndex("Nav_NotifyID");
|
|
||||||
|
|
||||||
b.HasIndex("Nav_OrgID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -75483,9 +75129,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
b.Property<int>("ENTITY_ORG_TPYE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("EXAMINATION_RESULTS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
b.Property<Guid?>("FLOW_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -103214,13 +102857,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Org");
|
b.Navigation("Nav_Org");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.Infrastructure.Core.T_PF_PARAM", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", null)
|
|
||||||
.WithMany("Nav_SysParams")
|
|
||||||
.HasForeignKey("T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.AE.T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.AE.T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||||
@ -124131,94 +123767,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Org");
|
b.Navigation("Nav_Org");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("DEPARTMENTID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_FILE_DB", "Nav_FileDB")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("FILE_DB_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("USER_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Department");
|
|
||||||
|
|
||||||
b.Navigation("Nav_FileDB");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_DETAIL", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", "Nav_Cour")
|
|
||||||
.WithMany("Nav_Detail")
|
|
||||||
.HasForeignKey("EDU_CARD_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TEST", "Nav_Test")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("TEST_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Cour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Test");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY_FILE", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", "Nav_Cour")
|
|
||||||
.WithMany("Nav_Files")
|
|
||||||
.HasForeignKey("COURSEWEARLIBRARY_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("IMG_FILE_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Cour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_ImgFile");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_LaunchDepartment")
|
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_LaunchDepartment")
|
||||||
@ -124483,11 +124031,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasForeignKey("TEST_ID")
|
.HasForeignKey("TEST_ID")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", "Nav_Text")
|
|
||||||
.WithMany("Nav_ListPaper")
|
|
||||||
.HasForeignKey("TEXT_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("USER_ID")
|
.HasForeignKey("USER_ID")
|
||||||
@ -124499,34 +124042,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("Nav_Test");
|
b.Navigation("Nav_Test");
|
||||||
|
|
||||||
b.Navigation("Nav_Text");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL", "Nav_Record")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("RECORD_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("USER_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Record");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
b.Navigation("Nav_User");
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -125188,27 +124703,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Point");
|
b.Navigation("Nav_Point");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", "Nav_Cour")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("Nav_CourID");
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY", "Nav_Notify")
|
|
||||||
.WithMany("Nav_ListCour")
|
|
||||||
.HasForeignKey("Nav_NotifyID");
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("Nav_OrgID");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Cour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Notify");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
||||||
@ -136728,13 +136222,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Posts");
|
b.Navigation("Nav_Posts");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Nav_Detail");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Files");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_DEP_TRAIN_PLAN", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Nav_DepTrainPlanDetail");
|
b.Navigation("Nav_DepTrainPlanDetail");
|
||||||
@ -136761,11 +136248,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Papers");
|
b.Navigation("Nav_Papers");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_NEW_USER_DETAIL_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Nav_ListPaper");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_RENEWAL_TRAIN", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Nav_Files");
|
b.Navigation("Nav_Files");
|
||||||
@ -136817,18 +136299,11 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
{
|
{
|
||||||
b.Navigation("Nav_Files");
|
b.Navigation("Nav_Files");
|
||||||
|
|
||||||
b.Navigation("Nav_ListCour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_TrainContentList");
|
b.Navigation("Nav_TrainContentList");
|
||||||
|
|
||||||
b.Navigation("Nav_TrainUserList");
|
b.Navigation("Nav_TrainUserList");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Nav_SysParams");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_PLAN", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_PLAN", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Nav_Files");
|
b.Navigation("Nav_Files");
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class wyw2025121902 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "TRAINTYPE",
|
||||||
|
table: "T_SE_NEW_USERS",
|
||||||
|
type: "int",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "TRAINTYPE",
|
||||||
|
table: "T_SE_NEW_USERS",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,122 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
namespace APT.Data.Migrations.Migrations
|
|
||||||
{
|
|
||||||
public partial class wyw2026012101 : Migration
|
|
||||||
{
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.AddColumn<int>(
|
|
||||||
name: "EXAMETYPE",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY",
|
|
||||||
type: "int",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: 0);
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
NOTIFY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
Nav_NotifyID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
COURSEWEARLIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
Nav_CourID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
NUM = table.Column<int>(type: "int", nullable: false),
|
|
||||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
||||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
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),
|
|
||||||
DbConn = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
||||||
Nav_OrgID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
TaskID = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", x => x.ID);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
|
|
||||||
column: x => x.Nav_OrgID,
|
|
||||||
principalTable: "T_FM_ORGANIZATION",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
|
||||||
column: x => x.COURSEWEARLIBRARY_ID,
|
|
||||||
principalTable: "T_SE_COURSEWEARLIBRARY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
|
||||||
column: x => x.NOTIFY_ID,
|
|
||||||
principalTable: "T_SE_TRAIN_NOTIFY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM",
|
|
||||||
column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "COURSEWEARLIBRARY_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "NOTIFY_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "Nav_OrgID");
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM",
|
|
||||||
column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
principalTable: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "EXAMETYPE",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,355 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
namespace APT.Data.Migrations.Migrations
|
|
||||||
{
|
|
||||||
public partial class wyw2026020201 : Migration
|
|
||||||
{
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM");
|
|
||||||
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "DbConn",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "Nav_CourID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "Nav_NotifyID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "Nav_OrgID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "TaskID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM");
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "EDU_CARD_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<string>(
|
|
||||||
name: "FILE_PATH",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
|
||||||
type: "nvarchar(200)",
|
|
||||||
maxLength: 200,
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "TEXT_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.AlterColumn<Guid>(
|
|
||||||
name: "ORG_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
|
||||||
oldClrType: typeof(Guid),
|
|
||||||
oldType: "uniqueidentifier",
|
|
||||||
oldNullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "T_SE_TRAIN_RECORD_TEXT",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
SCORE = table.Column<int>(type: "int", nullable: true),
|
|
||||||
TEXT_TIMES = table.Column<int>(type: "int", nullable: false),
|
|
||||||
ISPASS = table.Column<bool>(type: "bit", 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_RECORD_TEXT", x => x.ID);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_RECORD_TEXT_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_RECORD_TEXT_T_FM_USER_USER_ID",
|
|
||||||
column: x => x.USER_ID,
|
|
||||||
principalTable: "T_FM_USER",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_RECORD_TEXT_T_SE_TRAIN_RECORD_RECORD_ID",
|
|
||||||
column: x => x.RECORD_ID,
|
|
||||||
principalTable: "T_SE_TRAIN_RECORD",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_RECORD_PAPER_TEXT_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
|
||||||
column: "TEXT_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "COURSEWEARLIBRARY_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "NOTIFY_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "ORG_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_RECORD_TEXT_ORG_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_TEXT",
|
|
||||||
column: "ORG_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_RECORD_TEXT_RECORD_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_TEXT",
|
|
||||||
column: "RECORD_ID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_RECORD_TEXT_USER_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_TEXT",
|
|
||||||
column: "USER_ID");
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "ORG_ID",
|
|
||||||
principalTable: "T_FM_ORGANIZATION",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "COURSEWEARLIBRARY_ID",
|
|
||||||
principalTable: "T_SE_COURSEWEARLIBRARY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "NOTIFY_ID",
|
|
||||||
principalTable: "T_SE_TRAIN_NOTIFY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
|
||||||
column: "TEXT_ID",
|
|
||||||
principalTable: "T_SE_TRAIN_RECORD_TEXT",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "T_SE_TRAIN_RECORD_TEXT");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_RECORD_PAPER_TEXT_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "EDU_CARD_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "FILE_PATH",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "TEXT_ID",
|
|
||||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
|
||||||
|
|
||||||
migrationBuilder.AlterColumn<Guid>(
|
|
||||||
name: "ORG_ID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true,
|
|
||||||
oldClrType: typeof(Guid),
|
|
||||||
oldType: "uniqueidentifier");
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<string>(
|
|
||||||
name: "DbConn",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
type: "nvarchar(max)",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "Nav_CourID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "Nav_NotifyID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "Nav_OrgID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "TaskID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM",
|
|
||||||
type: "uniqueidentifier",
|
|
||||||
nullable: true);
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "Nav_CourID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "Nav_NotifyID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "Nav_OrgID");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM",
|
|
||||||
column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID");
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
table: "T_PF_PARAM",
|
|
||||||
column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
|
||||||
principalTable: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "Nav_OrgID",
|
|
||||||
principalTable: "T_FM_ORGANIZATION",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "Nav_CourID",
|
|
||||||
principalTable: "T_SE_COURSEWEARLIBRARY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
|
|
||||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
|
||||||
column: "Nav_NotifyID",
|
|
||||||
principalTable: "T_SE_TRAIN_NOTIFY",
|
|
||||||
principalColumn: "ID",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -74570,9 +74570,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
b.Property<int>("ENTITY_ORG_TPYE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("EXAMETYPE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
b.Property<Guid?>("FLOW_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -74748,66 +74745,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.ToTable("T_SE_TRAIN_NOTIFY_CONTENT_REL");
|
b.ToTable("T_SE_TRAIN_NOTIFY_CONTENT_REL");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("COURSEWEARLIBRARY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid>("NOTIFY_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("NUM")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("COURSEWEARLIBRARY_ID");
|
|
||||||
|
|
||||||
b.HasIndex("NOTIFY_ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -75374,16 +75311,9 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<DateTime?>("CREATE_TIME")
|
b.Property<DateTime?>("CREATE_TIME")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<Guid?>("EDU_CARD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
b.Property<int>("ENTITY_ORG_TPYE")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("FILE_PATH")
|
|
||||||
.HasMaxLength(200)
|
|
||||||
.HasColumnType("nvarchar(200)");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
b.Property<Guid?>("FLOW_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -75421,9 +75351,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<Guid?>("TEST_ID")
|
b.Property<Guid?>("TEST_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("TEXT_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
b.Property<Guid?>("USER_ID")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
@ -75437,8 +75364,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.HasIndex("TEST_ID");
|
b.HasIndex("TEST_ID");
|
||||||
|
|
||||||
b.HasIndex("TEXT_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
b.HasIndex("USER_ID");
|
||||||
|
|
||||||
b.ToTable("T_SE_TRAIN_RECORD_PAPER");
|
b.ToTable("T_SE_TRAIN_RECORD_PAPER");
|
||||||
@ -75551,72 +75476,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.ToTable("T_SE_TRAIN_RECORD_REPORT");
|
b.ToTable("T_SE_TRAIN_RECORD_REPORT");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("ID")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CREATER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("CREATE_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<int>("ENTITY_ORG_TPYE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FLOW_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_SEND_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("FLOW_STATUS")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("FORM_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<bool?>("ISPASS")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<bool>("IS_DELETED")
|
|
||||||
.HasColumnType("bit");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MODIFIER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("MODIFY_TIME")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("RECORD_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int?>("SCORE")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<int>("TEXT_TIMES")
|
|
||||||
.HasColumnType("int");
|
|
||||||
|
|
||||||
b.Property<Guid?>("USER_ID")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.HasKey("ID");
|
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
|
||||||
|
|
||||||
b.HasIndex("RECORD_ID");
|
|
||||||
|
|
||||||
b.HasIndex("USER_ID");
|
|
||||||
|
|
||||||
b.ToTable("T_SE_TRAIN_RECORD_TEXT");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ID")
|
b.Property<Guid>("ID")
|
||||||
@ -125238,33 +125097,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Point");
|
b.Navigation("Nav_Point");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_COURSEWEARLIBRARY", "Nav_Cour")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("COURSEWEARLIBRARY_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY", "Nav_Notify")
|
|
||||||
.WithMany("Nav_ListCour")
|
|
||||||
.HasForeignKey("NOTIFY_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Nav_Cour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Notify");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_NOTIFY_FILE", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
||||||
@ -125500,11 +125332,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasForeignKey("TEST_ID")
|
.HasForeignKey("TEST_ID")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", "Nav_Text")
|
|
||||||
.WithMany("Nav_ListPaper")
|
|
||||||
.HasForeignKey("TEXT_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("USER_ID")
|
.HasForeignKey("USER_ID")
|
||||||
@ -125518,8 +125345,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("Nav_Test");
|
b.Navigation("Nav_Test");
|
||||||
|
|
||||||
b.Navigation("Nav_Text");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
b.Navigation("Nav_User");
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -125534,32 +125359,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Org");
|
b.Navigation("Nav_Org");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("ORG_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD", "Nav_Record")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("RECORD_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("USER_ID")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.Navigation("Nav_Org");
|
|
||||||
|
|
||||||
b.Navigation("Nav_Record");
|
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_USER", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||||
@ -136906,8 +136705,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
{
|
{
|
||||||
b.Navigation("Nav_Files");
|
b.Navigation("Nav_Files");
|
||||||
|
|
||||||
b.Navigation("Nav_ListCour");
|
|
||||||
|
|
||||||
b.Navigation("Nav_TrainContentList");
|
b.Navigation("Nav_TrainContentList");
|
||||||
|
|
||||||
b.Navigation("Nav_TrainUserList");
|
b.Navigation("Nav_TrainUserList");
|
||||||
@ -136934,11 +136731,6 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Navigation("Nav_Users");
|
b.Navigation("Nav_Users");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_RECORD_TEXT", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Nav_ListPaper");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_SURVEY", b =>
|
modelBuilder.Entity("APT.MS.Domain.Entities.SE.T_SE_TRAIN_SURVEY", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Nav_Demands");
|
b.Navigation("Nav_Demands");
|
||||||
|
|||||||
@ -10632,12 +10632,10 @@ builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).
|
|||||||
public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_PAPER> builder)
|
public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_PAPER> builder)
|
||||||
{
|
{
|
||||||
base.Configure(builder);
|
base.Configure(builder);
|
||||||
builder.HasOne(t => t.Nav_Text).WithMany(t=>t.Nav_ListPaper).HasForeignKey(t => t.TEXT_ID).OnDelete(DeleteBehavior.Restrict);
|
builder.HasOne(t => t.Nav_RecordUser).WithMany().HasForeignKey(t => t.RECORD_UUSER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||||
builder.HasOne(t => t.Nav_RecordUser).WithMany().HasForeignKey(t => t.RECORD_UUSER_ID).OnDelete(DeleteBehavior.Restrict);
|
|
||||||
builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Papers).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
|
builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Papers).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
|
||||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||||
builder.HasOne(t => t.Nav_Test).WithMany().HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
|
builder.HasOne(t => t.Nav_Test).WithMany().HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
|
||||||
builder.Property(t => t.FILE_PATH).HasMaxLength(200);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@ -10977,17 +10975,6 @@ builder.HasIndex("NAME").IsUnique();
|
|||||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||||
builder.HasIndex("NAME").IsUnique();
|
builder.HasIndex("NAME").IsUnique();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
#region TrainNotifyCoursewearlibrary
|
|
||||||
public partial class SETrainNotifyCoursewearlibraryMap :APTEntityBaseMap<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY>
|
|
||||||
{
|
|
||||||
public override void Configure(EntityTypeBuilder<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> builder)
|
|
||||||
{
|
|
||||||
base.Configure(builder);
|
|
||||||
builder.HasOne(t => t.Nav_Notify).WithMany(t=>t.Nav_ListCour).HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
|
|
||||||
builder.HasOne(t => t.Nav_Cour).WithMany().HasForeignKey(t => t.COURSEWEARLIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region TrainPlan
|
#region TrainPlan
|
||||||
@ -11059,17 +11046,6 @@ builder.Property(t => t.TRAIN_TEACHER).HasMaxLength(100);
|
|||||||
builder.Ignore(t => t.START_TIME_S);
|
builder.Ignore(t => t.START_TIME_S);
|
||||||
builder.Ignore(t => t.START_TIME_E);
|
builder.Ignore(t => t.START_TIME_E);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
#region TrainRecordText
|
|
||||||
public partial class SETrainRecordTextMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_TEXT>
|
|
||||||
{
|
|
||||||
public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_TEXT> builder)
|
|
||||||
{
|
|
||||||
base.Configure(builder);
|
|
||||||
builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
|
|
||||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region TrainTypeEnum
|
#region TrainTypeEnum
|
||||||
|
|||||||
@ -278,18 +278,5 @@ namespace APT.MS.Domain.Entities.SE
|
|||||||
[FormFieldEdit]
|
[FormFieldEdit]
|
||||||
[EnumName("TrainType")]
|
[EnumName("TrainType")]
|
||||||
public TrainType TRAINTYPE { get; set; }
|
public TrainType TRAINTYPE { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 培训课件
|
|
||||||
/// </summary>
|
|
||||||
[Description("培训课件")]
|
|
||||||
public ICollection<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> Nav_ListCour { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 考试类型 默认都要考
|
|
||||||
/// 上一个课件合格才下一个 预留功能暂不开发
|
|
||||||
/// </summary>
|
|
||||||
[Description("考试类型")]
|
|
||||||
public ExameType EXAMETYPE { get; set; } = ExameType.ALL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,20 +10,6 @@ namespace APT.MS.Domain.Entities.SE
|
|||||||
[Description("人员试题")]
|
[Description("人员试题")]
|
||||||
public class T_SE_TRAIN_RECORD_PAPER : MesEntityBase
|
public class T_SE_TRAIN_RECORD_PAPER : MesEntityBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// 人员试卷 必填
|
|
||||||
/// </summary>
|
|
||||||
[Description("人员试卷")]
|
|
||||||
[FormFieldEdit]
|
|
||||||
[DataFieldForeignKey("Nav_Text", "Nav_ListPaper")]
|
|
||||||
public Guid? TEXT_ID { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 人员试卷
|
|
||||||
/// </summary>
|
|
||||||
[Description("人员试卷")]
|
|
||||||
public T_SE_TRAIN_RECORD_TEXT Nav_Text { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 人员试卷 必填
|
/// 人员试卷 必填
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -41,7 +27,7 @@ namespace APT.MS.Domain.Entities.SE
|
|||||||
/// 培训记录
|
/// 培训记录
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("培训记录")]
|
[Description("培训记录")]
|
||||||
[DataFieldForeignKey("Nav_Record", "Nav_Papers")]
|
[DataFieldForeignKey("Nav_Record","Nav_Papers")]
|
||||||
public Guid RECORD_ID { get; set; }
|
public Guid RECORD_ID { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 导航: 培训记录
|
/// 导航: 培训记录
|
||||||
@ -83,18 +69,5 @@ namespace APT.MS.Domain.Entities.SE
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("考试得分")]
|
[Description("考试得分")]
|
||||||
public int SCORE { get; set; }
|
public int SCORE { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 课件 只做记录 不做外键了
|
|
||||||
/// </summary>
|
|
||||||
[Description("课件")]
|
|
||||||
public Guid? EDU_CARD_ID { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 视频、查看附件 路径 冗余字段
|
|
||||||
/// </summary>
|
|
||||||
[Description("文件路径")]
|
|
||||||
[DataFieldLength(200)]
|
|
||||||
public string FILE_PATH { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,54 +0,0 @@
|
|||||||
using APT.BaseData.Domain.Entities.FM;
|
|
||||||
using APT.BaseData.Domain.Enums;
|
|
||||||
using APT.Infrastructure.Core;
|
|
||||||
using APT.MS.Domain.Enums;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
|
|
||||||
namespace APT.MS.Domain.Entities.SE
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 培训课件
|
|
||||||
/// </summary>
|
|
||||||
[Description("培训课件")]
|
|
||||||
public class T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY : MesEntityBase
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 通知ID
|
|
||||||
/// </summary>
|
|
||||||
[Description("通知")]
|
|
||||||
[FormFieldTable]
|
|
||||||
[FormFieldQuery]
|
|
||||||
[FormFieldEdit]
|
|
||||||
[DataFieldForeignKey("Nav_Notify", "Nav_ListCour")]
|
|
||||||
public Guid NOTIFY_ID { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 通知
|
|
||||||
/// </summary>
|
|
||||||
[Description("通知")]
|
|
||||||
public T_SE_TRAIN_NOTIFY Nav_Notify { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 课件
|
|
||||||
/// </summary>
|
|
||||||
[Description("课件")]
|
|
||||||
[FormFieldTable]
|
|
||||||
[FormFieldQuery]
|
|
||||||
[FormFieldEdit]
|
|
||||||
[DataFieldForeignKey("Nav_Cour")]
|
|
||||||
public Guid COURSEWEARLIBRARY_ID { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 课件
|
|
||||||
/// </summary>
|
|
||||||
[Description("课件")]
|
|
||||||
[FormFieldEdit]
|
|
||||||
public T_SE_COURSEWEARLIBRARY Nav_Cour { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 顺序 考试按此顺序
|
|
||||||
/// </summary>
|
|
||||||
[Description("顺序")]
|
|
||||||
public int NUM { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
using APT.BaseData.Domain.Entities.FM;
|
|
||||||
using APT.Infrastructure.Core;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
namespace APT.MS.Domain.Entities.SE
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 人员试卷
|
|
||||||
/// </summary>
|
|
||||||
[Description("人员试卷")]
|
|
||||||
public class T_SE_TRAIN_RECORD_TEXT : MesEntityBase
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 培训记录
|
|
||||||
/// </summary>
|
|
||||||
[Description("培训记录")]
|
|
||||||
[DataFieldForeignKey("Nav_Record")]
|
|
||||||
public Guid RECORD_ID { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 导航: 培训记录
|
|
||||||
/// </summary>
|
|
||||||
[Description("导航: 培训记录")]
|
|
||||||
public T_SE_TRAIN_RECORD Nav_Record { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 人员ID
|
|
||||||
/// </summary>
|
|
||||||
[Description("人员")]
|
|
||||||
[DataFieldForeignKey("Nav_User")]
|
|
||||||
public Guid? USER_ID { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 导航: 人员
|
|
||||||
/// </summary>
|
|
||||||
[Description("导航: 人员")]
|
|
||||||
public T_FM_USER Nav_User { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 试题
|
|
||||||
/// </summary>
|
|
||||||
[Description("试题")]
|
|
||||||
public ICollection<T_SE_TRAIN_RECORD_PAPER> Nav_ListPaper { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 考试得分
|
|
||||||
/// </summary>
|
|
||||||
[Description("考试得分")]
|
|
||||||
public int? SCORE { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 考试次数
|
|
||||||
/// </summary>
|
|
||||||
[Description("考试次数")]
|
|
||||||
public int TEXT_TIMES { get; set; } = 1;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 考试是否通过
|
|
||||||
/// </summary>
|
|
||||||
[Description("考试是否通过")]
|
|
||||||
public bool? ISPASS { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -265,20 +265,4 @@ namespace APT.MS.Domain.Enums
|
|||||||
Split = 10,
|
Split = 10,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 考试类型
|
|
||||||
/// </summary>
|
|
||||||
public enum ExameType
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 所有一起考 通过
|
|
||||||
/// </summary>
|
|
||||||
ALL = 0,
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 一个课件考完 不及格就结束
|
|
||||||
/// </summary>
|
|
||||||
PerPass = 5
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,11 +49,10 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
throw new Exception("通知发送,不可更改");
|
throw new Exception("通知发送,不可更改");
|
||||||
}
|
}
|
||||||
var Nav_TrainContentList = entity.Nav_TrainContentList;
|
var Nav_TrainContentList = entity.Nav_TrainContentList;
|
||||||
var ListCour = entity.Nav_ListCour;
|
if (Nav_TrainContentList == null || !Nav_TrainContentList.Any() || Nav_TrainContentList.Count() < 1)
|
||||||
//if (Nav_TrainContentList == null || !Nav_TrainContentList.Any() || Nav_TrainContentList.Count() < 1)
|
{
|
||||||
//{
|
throw new Exception("请选择培训内容");
|
||||||
// throw new Exception("请选择培训内容");
|
}
|
||||||
//}
|
|
||||||
if (entity.Nav_TrainUserList == null || entity.Nav_TrainUserList.Count() < 1)
|
if (entity.Nav_TrainUserList == null || entity.Nav_TrainUserList.Count() < 1)
|
||||||
{
|
{
|
||||||
throw new Exception("请选择培训人员");
|
throw new Exception("请选择培训人员");
|
||||||
@ -72,15 +71,10 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
List<T_FM_NOTIFICATION_TASK> sendNoticeTask = null;
|
List<T_FM_NOTIFICATION_TASK> sendNoticeTask = null;
|
||||||
T_FM_NOTIFICATION_TASK finishNoticeTask = null;
|
T_FM_NOTIFICATION_TASK finishNoticeTask = null;
|
||||||
|
|
||||||
//foreach (var item in Nav_TrainContentList)
|
foreach (var item in Nav_TrainContentList)
|
||||||
//{
|
{
|
||||||
// item.Nav_Point = null;
|
item.Nav_Point = null;
|
||||||
//}
|
};
|
||||||
if (Nav_TrainContentList != null)
|
|
||||||
Nav_TrainContentList.ForEach(e => e.Nav_Point = null);
|
|
||||||
if (ListCour != null)
|
|
||||||
ListCour.ForEach(e => e.Nav_Cour = null);
|
|
||||||
|
|
||||||
if (entity.LAUNCH_TIME == null)
|
if (entity.LAUNCH_TIME == null)
|
||||||
{
|
{
|
||||||
entity.LAUNCH_TIME = DateTime.Now;
|
entity.LAUNCH_TIME = DateTime.Now;
|
||||||
@ -124,10 +118,9 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
throw new Exception("培训结束时间需大于培训开始时间");
|
throw new Exception("培训结束时间需大于培训开始时间");
|
||||||
}
|
}
|
||||||
//在线考核 必须 课件、考核内容 二选一
|
if (Nav_TrainContentList == null)
|
||||||
if ((Nav_TrainContentList == null || Nav_TrainContentList.Count() < 1) && (ListCour == null || ListCour.Count() < 1))
|
|
||||||
{
|
{
|
||||||
throw new Exception("培训内容或课件至少二选一!");//原来 培训内容必填 现可不必填
|
throw new Exception("培训内容不可为空!");
|
||||||
}
|
}
|
||||||
if (Nav_TrainUserList == null || Nav_TrainUserList.Where(t => t.IS_DELETED == false).Count() == 0)
|
if (Nav_TrainUserList == null || Nav_TrainUserList.Where(t => t.IS_DELETED == false).Count() == 0)
|
||||||
{
|
{
|
||||||
@ -137,7 +130,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
throw new Exception("培训时长不能为0!");
|
throw new Exception("培训时长不能为0!");
|
||||||
}
|
}
|
||||||
|
|
||||||
entity.STATUS = SETrainNotifyStatus.通知中;
|
entity.STATUS = SETrainNotifyStatus.通知中;
|
||||||
//触发培训通知给所有培训人员
|
//触发培训通知给所有培训人员
|
||||||
var allSendUserNames = new List<string>();
|
var allSendUserNames = new List<string>();
|
||||||
@ -179,7 +171,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
entity.Nav_Files = null;
|
entity.Nav_Files = null;
|
||||||
entity.Nav_TrainUserList = null;
|
entity.Nav_TrainUserList = null;
|
||||||
entity.Nav_TrainContentList = null;
|
entity.Nav_TrainContentList = null;
|
||||||
entity.Nav_ListCour = null;
|
|
||||||
|
|
||||||
|
|
||||||
UnifiedCommit(() =>
|
UnifiedCommit(() =>
|
||||||
@ -187,8 +178,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
UpdateEntityNoCommit(entity);
|
UpdateEntityNoCommit(entity);
|
||||||
if (Nav_TrainContentList != null && Nav_TrainContentList.Any())
|
if (Nav_TrainContentList != null && Nav_TrainContentList.Any())
|
||||||
BantchSaveEntityNoCommit(Nav_TrainContentList);
|
BantchSaveEntityNoCommit(Nav_TrainContentList);
|
||||||
if (ListCour != null && ListCour.Any())
|
|
||||||
BantchSaveEntityNoCommit(ListCour);
|
|
||||||
if (Nav_TrainUserList != null && Nav_TrainUserList.Any())
|
if (Nav_TrainUserList != null && Nav_TrainUserList.Any())
|
||||||
BantchSaveEntityNoCommit(Nav_TrainUserList);
|
BantchSaveEntityNoCommit(Nav_TrainUserList);
|
||||||
if (Nav_Files != null && Nav_Files.Any())
|
if (Nav_Files != null && Nav_Files.Any())
|
||||||
|
|||||||
@ -65,7 +65,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
// throw new Exception("请上传附件!");
|
// 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_Notify.Nav_TrainContentList", "Nav_Notify.Nav_ListCour", "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.草稿)
|
if (data != null && data.STATUS != SETrainRecordStatus.草稿)
|
||||||
{
|
{
|
||||||
throw new Exception("当前状态不可提交");
|
throw new Exception("当前状态不可提交");
|
||||||
@ -79,101 +79,91 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
//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)
|
if (data.Nav_Notify != null && data.Nav_Notify.CHECKTYPE == PlanCheckType.InOnLine)
|
||||||
{
|
{
|
||||||
if (data.Nav_Notify.Nav_ListCour != null && data.Nav_Notify.Nav_ListCour.Count() > 0)
|
var config = GetEntity<T_SE_SECONFIG>(t => true);
|
||||||
|
var SCount = 1;
|
||||||
|
var MCount = 1;
|
||||||
|
var CCount = 1;
|
||||||
|
if (config != null)
|
||||||
{
|
{
|
||||||
//如果有课件 有题目 不判断
|
if (config.M_TEST_COUNT > 0 || config.S_TEST_COUNT > 0 || config.C_TEST_COUNT > 0)
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//原来的方式
|
|
||||||
var config = GetEntity<T_SE_SECONFIG>(t => true);
|
|
||||||
var SCount = 1;
|
|
||||||
var MCount = 1;
|
|
||||||
var CCount = 1;
|
|
||||||
if (config != null)
|
|
||||||
{
|
{
|
||||||
if (config.M_TEST_COUNT > 0 || config.S_TEST_COUNT > 0 || config.C_TEST_COUNT > 0)
|
//王永文 只要有配置 就获取
|
||||||
|
MCount = config.M_TEST_COUNT;
|
||||||
|
SCount = config.S_TEST_COUNT;
|
||||||
|
CCount = config.C_TEST_COUNT;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//保持原来的版本
|
||||||
|
if (config.M_TEST_COUNT > 0)
|
||||||
{
|
{
|
||||||
//王永文 只要有配置 就获取
|
|
||||||
MCount = config.M_TEST_COUNT;
|
MCount = config.M_TEST_COUNT;
|
||||||
|
}
|
||||||
|
if (config.S_TEST_COUNT > 0)
|
||||||
|
{
|
||||||
SCount = config.S_TEST_COUNT;
|
SCount = config.S_TEST_COUNT;
|
||||||
|
}
|
||||||
|
if (config.C_TEST_COUNT > 0)
|
||||||
|
{
|
||||||
CCount = config.C_TEST_COUNT;
|
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>();
|
|
||||||
var testFilter = new BaseFilter(entity.ORG_ID);
|
|
||||||
testFilter.Include = new string[] { "Nav_Points" };
|
|
||||||
|
|
||||||
|
|
||||||
//var allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME.Contains(data.Nav_Notify.NAME) && st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
|
||||||
//if (allTests.Count() == 0)
|
|
||||||
//{
|
|
||||||
// allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
|
||||||
//}
|
|
||||||
var allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
|
||||||
if (allTests.Count() == 0)
|
|
||||||
{
|
|
||||||
allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME.Contains(data.Nav_Notify.NAME) && st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
|
||||||
}
|
|
||||||
|
|
||||||
var errorMsg = "";
|
|
||||||
foreach (var testPoint in pointIDS)
|
|
||||||
{
|
|
||||||
var havepoint = allTests.Where(st => st.Nav_Points.Any(pt => pt.POINT_ID == testPoint));
|
|
||||||
if (havepoint.Count() < 1)
|
|
||||||
{
|
|
||||||
var noPoint = GetEntity<T_SE_TEST_ENUM_POINT>(testPoint);
|
|
||||||
errorMsg += noPoint.NAME + ",";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (errorMsg != "")
|
|
||||||
{
|
|
||||||
throw new Exception("知识点 " + errorMsg + " 没有题目!");
|
|
||||||
}
|
|
||||||
var SCurrentCount = allTests.Count(t => t.TYPE == SETestTypeEnum.单选题);
|
|
||||||
var MCurrentCount = allTests.Count(t => t.TYPE == SETestTypeEnum.多选题);
|
|
||||||
var CCurrentCount = allTests.Count(t => t.TYPE == SETestTypeEnum.是非题);
|
|
||||||
errorMsg = "";
|
|
||||||
if (SCurrentCount < SCount)
|
|
||||||
{
|
|
||||||
errorMsg += "题库中题目数量不足!";
|
|
||||||
errorMsg += "单选题还需" + (SCount - SCurrentCount) + "题\n";
|
|
||||||
}
|
|
||||||
if (MCurrentCount < MCount)
|
|
||||||
{
|
|
||||||
errorMsg += "题库中题目数量不足!";
|
|
||||||
errorMsg += "多选题还需" + (MCount - MCurrentCount) + "题\n";
|
|
||||||
}
|
|
||||||
if (CCurrentCount < CCount)
|
|
||||||
{
|
|
||||||
errorMsg += "题库中题目数量不足!";
|
|
||||||
errorMsg += "是非题还需" + (CCount - CCurrentCount) + "题\n";
|
|
||||||
}
|
|
||||||
if (errorMsg != "")
|
|
||||||
{
|
|
||||||
throw new Exception(errorMsg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var pointIDS = data.Nav_Notify.Nav_TrainContentList.Select(t => t.POINT_ID).ToList();
|
||||||
|
var testidlist = new List<Guid>();
|
||||||
|
var testFilter = new BaseFilter(entity.ORG_ID);
|
||||||
|
testFilter.Include = new string[] { "Nav_Points" };
|
||||||
|
|
||||||
|
|
||||||
|
//var allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME.Contains(data.Nav_Notify.NAME) && st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
||||||
|
//if (allTests.Count() == 0)
|
||||||
|
//{
|
||||||
|
// allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
||||||
|
//}
|
||||||
|
var allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
||||||
|
if (allTests.Count() == 0)
|
||||||
|
{
|
||||||
|
allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME.Contains(data.Nav_Notify.NAME) && st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)), testFilter).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
var errorMsg = "";
|
||||||
|
foreach (var testPoint in pointIDS)
|
||||||
|
{
|
||||||
|
var havepoint = allTests.Where(st => st.Nav_Points.Any(pt => pt.POINT_ID == testPoint));
|
||||||
|
if (havepoint.Count() < 1)
|
||||||
|
{
|
||||||
|
var noPoint = GetEntity<T_SE_TEST_ENUM_POINT>(testPoint);
|
||||||
|
errorMsg += noPoint.NAME + ",";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (errorMsg != "")
|
||||||
|
{
|
||||||
|
throw new Exception("知识点 " + errorMsg + " 没有题目!");
|
||||||
|
}
|
||||||
|
var SCurrentCount = allTests.Count(t => t.TYPE == SETestTypeEnum.单选题);
|
||||||
|
var MCurrentCount = allTests.Count(t => t.TYPE == SETestTypeEnum.多选题);
|
||||||
|
var CCurrentCount = allTests.Count(t => t.TYPE == SETestTypeEnum.是非题);
|
||||||
|
errorMsg = "";
|
||||||
|
if (SCurrentCount < SCount)
|
||||||
|
{
|
||||||
|
errorMsg += "题库中题目数量不足!";
|
||||||
|
errorMsg += "单选题还需" + (SCount - SCurrentCount) + "题\n";
|
||||||
|
}
|
||||||
|
if (MCurrentCount < MCount)
|
||||||
|
{
|
||||||
|
errorMsg += "题库中题目数量不足!";
|
||||||
|
errorMsg += "多选题还需" + (MCount - MCurrentCount) + "题\n";
|
||||||
|
}
|
||||||
|
if (CCurrentCount < CCount)
|
||||||
|
{
|
||||||
|
errorMsg += "题库中题目数量不足!";
|
||||||
|
errorMsg += "是非题还需" + (CCount - CCurrentCount) + "题\n";
|
||||||
|
}
|
||||||
|
if (errorMsg != "")
|
||||||
|
{
|
||||||
|
throw new Exception(errorMsg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
entity.TRAIN_COUNT = joinUsers.Count(t => t.STATUS == SETrainRecordUserStatusEnum.参与);
|
entity.TRAIN_COUNT = joinUsers.Count(t => t.STATUS == SETrainRecordUserStatusEnum.参与);
|
||||||
var allSendTitles = new List<string>();
|
var allSendTitles = new List<string>();
|
||||||
var allSendDataIds = new List<Guid>();
|
var allSendDataIds = new List<Guid>();
|
||||||
@ -202,6 +192,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
// currJoinUser.OK = true;
|
// currJoinUser.OK = true;
|
||||||
//}
|
//}
|
||||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModels(allSendTitles, allSendDataIds, entity.ORG_ID, allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddHours(12), 1, "SE017_SHOWPRINT");
|
sendNotice = NotificationTaskService.InsertUserNoticeTaskModels(allSendTitles, allSendDataIds, entity.ORG_ID, allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddHours(12), 1, "SE017_SHOWPRINT");
|
||||||
|
|
||||||
}
|
}
|
||||||
entity.Nav_Notify = null;
|
entity.Nav_Notify = null;
|
||||||
joinUsers.ForEach(m => m.Nav_User = null);
|
joinUsers.ForEach(m => m.Nav_User = null);
|
||||||
@ -351,7 +342,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
userID = finishNotice.USER_ID;
|
userID = finishNotice.USER_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
var record = GetEntity<T_SE_TRAIN_RECORD>(filter.Keyword, new string[] { "Nav_Notify", "Nav_Notify.Nav_TrainContentList", "Nav_Users.Nav_User", "Nav_Notify.Nav_ListCour" });
|
var record = GetEntity<T_SE_TRAIN_RECORD>(filter.Keyword, new string[] { "Nav_Notify", "Nav_Notify.Nav_TrainContentList", "Nav_Users.Nav_User" });
|
||||||
if (record == null)
|
if (record == null)
|
||||||
{
|
{
|
||||||
throw new Exception("未查到当前培训记录,无法签到");
|
throw new Exception("未查到当前培训记录,无法签到");
|
||||||
@ -368,7 +359,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
|
|
||||||
var login = GetEntity<T_FM_USER>(userID.Value, "Nav_Person");
|
var login = GetEntity<T_FM_USER>(userID.Value, "Nav_Person");
|
||||||
//笔试才触发问卷,20201103提的需求
|
//笔试才触发问卷,20201103提的需求
|
||||||
T_SE_TRAIN_RECORD_TEXT modelRecordText = null;
|
|
||||||
IEnumerable<T_SE_TRAIN_RECORD_PAPER> listCheckPaper = null;
|
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)
|
if (record.Nav_Notify != null && record.Nav_Notify.CHECKTYPE == PlanCheckType.InOnLine)
|
||||||
@ -388,149 +379,103 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
throw new Exception("试题已生成!");
|
throw new Exception("试题已生成!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Nav_Papers = new List<T_SE_TRAIN_RECORD_PAPER>();
|
var config = GetEntity<T_SE_SECONFIG>(t => true);
|
||||||
var testidlist = new List<Guid>();
|
var SCount = 1;
|
||||||
|
var MCount = 1;
|
||||||
modelRecordText = new T_SE_TRAIN_RECORD_TEXT();
|
var CCount = 1;
|
||||||
modelRecordText.ID = Guid.NewGuid();
|
if (config != null)
|
||||||
modelRecordText.ORG_ID = record.ORG_ID;
|
|
||||||
modelRecordText.RECORD_ID = record.ID;
|
|
||||||
modelRecordText.USER_ID = userID;
|
|
||||||
modelRecordText.TEXT_TIMES = 1;
|
|
||||||
DateTime dtN = DateTime.Now;
|
|
||||||
int secAdd = 0;
|
|
||||||
if (record.Nav_Notify.Nav_ListCour != null && record.Nav_Notify.Nav_ListCour.Count() > 0)
|
|
||||||
{
|
{
|
||||||
#region 根据课件生成试题
|
if (config.M_TEST_COUNT > 0 || config.S_TEST_COUNT > 0 || config.C_TEST_COUNT > 0)
|
||||||
List<Guid> listCoutID = record.Nav_Notify.Nav_ListCour.Select(e => e.COURSEWEARLIBRARY_ID).ToList();
|
|
||||||
var listCourDetail = GetEntities<T_SE_COURSEWEARLIBRARY_DETAIL>(e => listCoutID.Contains(e.EDU_CARD_ID) && !e.IS_DELETED, null, "Nav_Cour").OrderBy(e => e.EDU_CARD_ID).ThenBy(e => e.NUM);
|
|
||||||
foreach (var item in listCourDetail)
|
|
||||||
{
|
{
|
||||||
var p = new T_SE_TRAIN_RECORD_PAPER
|
//王永文 只要有配置 就获取
|
||||||
{
|
MCount = config.M_TEST_COUNT;
|
||||||
RECORD_ID = record.ID,
|
SCount = config.S_TEST_COUNT;
|
||||||
ID = Guid.NewGuid(),
|
CCount = config.C_TEST_COUNT;
|
||||||
ORG_ID = filter.GetOrgId(),
|
|
||||||
USER_ID = userID,
|
|
||||||
TEST_ID = item.TEST_ID,
|
|
||||||
ANSWER = 0,
|
|
||||||
FILE_PATH = item.Nav_Cour.FILE_PATH,
|
|
||||||
EDU_CARD_ID = item.EDU_CARD_ID,
|
|
||||||
TEXT_ID = modelRecordText.ID,
|
|
||||||
CREATE_TIME = dtN.AddSeconds(secAdd),
|
|
||||||
};
|
|
||||||
Nav_Papers.Add(p);
|
|
||||||
secAdd++;
|
|
||||||
}
|
}
|
||||||
#endregion
|
else
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
#region 原有方式考试 生成试题
|
|
||||||
|
|
||||||
var config = GetEntity<T_SE_SECONFIG>(t => true);
|
|
||||||
var SCount = 1;
|
|
||||||
var MCount = 1;
|
|
||||||
var CCount = 1;
|
|
||||||
if (config != null)
|
|
||||||
{
|
{
|
||||||
if (config.M_TEST_COUNT > 0 || config.S_TEST_COUNT > 0 || config.C_TEST_COUNT > 0)
|
//保持原来的版本
|
||||||
|
if (config.M_TEST_COUNT > 0)
|
||||||
{
|
{
|
||||||
//王永文 只要有配置 就获取
|
|
||||||
MCount = config.M_TEST_COUNT;
|
MCount = config.M_TEST_COUNT;
|
||||||
|
}
|
||||||
|
if (config.S_TEST_COUNT > 0)
|
||||||
|
{
|
||||||
SCount = config.S_TEST_COUNT;
|
SCount = config.S_TEST_COUNT;
|
||||||
|
}
|
||||||
|
if (config.C_TEST_COUNT > 0)
|
||||||
|
{
|
||||||
CCount = config.C_TEST_COUNT;
|
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 testFilter = new BaseFilter(filter.GetOrgId());
|
var pointIDS = record.Nav_Notify.Nav_TrainContentList.Select(t => t.POINT_ID).ToList();
|
||||||
testFilter.Include = new string[] { "Nav_Points", "Nav_Posts" };//岗位也得进去加以限制
|
var testidlist = new List<Guid>();
|
||||||
|
var testFilter = new BaseFilter(filter.GetOrgId());
|
||||||
|
testFilter.Include = new string[] { "Nav_Points", "Nav_Posts" };//岗位也得进去加以限制
|
||||||
|
|
||||||
//根据 培训名称 全字 匹配 如果有题库 再判断 知识点
|
//根据 培训名称 全字 匹配 如果有题库 再判断 知识点
|
||||||
//如果没匹配到题目 只匹配知识点
|
//如果没匹配到题目 只匹配知识点
|
||||||
Guid? LoginPostID = null;
|
Guid? LoginPostID = null;
|
||||||
//Nav_Person
|
//Nav_Person
|
||||||
LoginPostID = login.Nav_Person?.POST_ID;
|
LoginPostID = login.Nav_Person?.POST_ID;
|
||||||
bool isNameRule = false;
|
bool isNameRule = false;
|
||||||
//var allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME == record.Nav_Notify.NAME && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
//var allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME == record.Nav_Notify.NAME && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
||||||
//if (allTests == null || allTests.Count() == 0)
|
//if (allTests == null || allTests.Count() == 0)
|
||||||
//{
|
//{
|
||||||
// isNameRule = false;
|
// isNameRule = false;
|
||||||
// allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)) && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
// allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)) && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
||||||
//}
|
//}
|
||||||
var allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)) && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
var allTests = GetEntities<T_SE_TEST>(st => st.Nav_Points.Any(pt => pointIDS.Contains(pt.POINT_ID.Value)) && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
||||||
if (allTests == null || allTests.Count() == 0)
|
if (allTests == null || allTests.Count() == 0)
|
||||||
{
|
{
|
||||||
isNameRule = true;
|
isNameRule = true;
|
||||||
allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME == record.Nav_Notify.NAME && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
allTests = GetEntities<T_SE_TEST>(st => st.TRAINNAME == record.Nav_Notify.NAME && (LoginPostID == null || st.Nav_Posts.Count() < 1 || st.Nav_Posts.Any(e => e.POST_ID.HasValue && e.POST_ID.Value == LoginPostID.Value)), testFilter).ToList();
|
||||||
}
|
|
||||||
|
|
||||||
var errorMsg = "";
|
|
||||||
if (!isNameRule)
|
|
||||||
{
|
|
||||||
//根据名称来的就不要知识点限制了
|
|
||||||
foreach (var testPoint in pointIDS)
|
|
||||||
{
|
|
||||||
var havepoint = allTests.Where(st => st.Nav_Points.Any(pt => pt.POINT_ID == testPoint));
|
|
||||||
if (havepoint.Count() < 1)
|
|
||||||
{
|
|
||||||
var noPoint = GetEntity<T_SE_TEST_ENUM_POINT>(testPoint);
|
|
||||||
errorMsg += noPoint.NAME + ",";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (errorMsg != "")
|
|
||||||
{
|
|
||||||
if (errorMsg.EndsWith(","))
|
|
||||||
errorMsg = errorMsg.Substring(0, errorMsg.Length - 1);
|
|
||||||
throw new Exception("知识点【" + errorMsg + "】没有题目!");
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTestList(allTests, testidlist, pointIDS, (int)SETestTypeEnum.是非题, CCount);
|
|
||||||
CreateTestList(allTests, testidlist, pointIDS, (int)SETestTypeEnum.单选题, SCount);
|
|
||||||
CreateTestList(allTests, testidlist, pointIDS, (int)SETestTypeEnum.多选题, MCount);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
if (testidlist.Count == 0)
|
|
||||||
{
|
|
||||||
throw new Exception("当前题库数据不足,未能正常生成问卷");
|
|
||||||
}
|
|
||||||
|
|
||||||
testidlist.ForEach(testid =>
|
|
||||||
{
|
|
||||||
var p = new T_SE_TRAIN_RECORD_PAPER
|
|
||||||
{
|
|
||||||
RECORD_ID = record.ID,
|
|
||||||
ID = Guid.NewGuid(),
|
|
||||||
ORG_ID = filter.GetOrgId(),
|
|
||||||
USER_ID = userID,
|
|
||||||
TEST_ID = testid,
|
|
||||||
ANSWER = 0,
|
|
||||||
TEXT_ID = modelRecordText.ID,
|
|
||||||
CREATE_TIME = dtN.AddSeconds(secAdd)
|
|
||||||
};
|
|
||||||
Nav_Papers.Add(p);
|
|
||||||
secAdd++;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var errorMsg = "";
|
||||||
|
if (!isNameRule)
|
||||||
|
{
|
||||||
|
//根据名称来的就不要知识点限制了
|
||||||
|
foreach (var testPoint in pointIDS)
|
||||||
|
{
|
||||||
|
var havepoint = allTests.Where(st => st.Nav_Points.Any(pt => pt.POINT_ID == testPoint));
|
||||||
|
if (havepoint.Count() < 1)
|
||||||
|
{
|
||||||
|
var noPoint = GetEntity<T_SE_TEST_ENUM_POINT>(testPoint);
|
||||||
|
errorMsg += noPoint.NAME + ",";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (errorMsg != "")
|
||||||
|
{
|
||||||
|
if (errorMsg.EndsWith(","))
|
||||||
|
errorMsg = errorMsg.Substring(0, errorMsg.Length - 1);
|
||||||
|
throw new Exception("知识点【" + errorMsg + "】没有题目!");
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateTestList(allTests, testidlist, pointIDS, (int)SETestTypeEnum.是非题, CCount);
|
||||||
|
CreateTestList(allTests, testidlist, pointIDS, (int)SETestTypeEnum.单选题, SCount);
|
||||||
|
CreateTestList(allTests, testidlist, pointIDS, (int)SETestTypeEnum.多选题, MCount);
|
||||||
|
if (testidlist.Count == 0)
|
||||||
|
{
|
||||||
|
throw new Exception("当前题库数据不足,未能正常生成问卷");
|
||||||
|
}
|
||||||
|
Nav_Papers = new List<T_SE_TRAIN_RECORD_PAPER>();
|
||||||
|
|
||||||
|
testidlist.ForEach(testid =>
|
||||||
|
{
|
||||||
|
var p = new T_SE_TRAIN_RECORD_PAPER
|
||||||
|
{
|
||||||
|
RECORD_ID = record.ID,
|
||||||
|
ID = Guid.NewGuid(),
|
||||||
|
ORG_ID = filter.GetOrgId(),
|
||||||
|
USER_ID = userID,
|
||||||
|
TEST_ID = testid,
|
||||||
|
ANSWER = 0,
|
||||||
|
};
|
||||||
|
Nav_Papers.Add(p);
|
||||||
|
});
|
||||||
T_FM_NOTIFICATION_TASK sendNotice2 = null;
|
T_FM_NOTIFICATION_TASK sendNotice2 = null;
|
||||||
if (isReSend)
|
if (isReSend)
|
||||||
{
|
{
|
||||||
@ -540,8 +485,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
}
|
}
|
||||||
if (sendNotice2 == null)
|
if (sendNotice2 == null)
|
||||||
{
|
{
|
||||||
// record.ID => modelRecordText.ID
|
sendNotice2 = NotificationTaskService.InsertUserNoticeTaskModel("培训记录在线答题-" + record.Nav_Notify.NAME, record.ID, filter.GetOrgId(), login.ID, login.NAME, DateTime.Now, DateTime.Now.AddDays(2), 1, "SE018_PAPERPAGE");
|
||||||
sendNotice2 = NotificationTaskService.InsertUserNoticeTaskModel("培训记录在线答题-" + record.Nav_Notify.NAME, modelRecordText.ID, filter.GetOrgId(), login.ID, login.NAME, DateTime.Now, DateTime.Now.AddDays(2), 1, "SE018_PAPERPAGE");
|
|
||||||
}
|
}
|
||||||
sendNotices.Add(sendNotice2);
|
sendNotices.Add(sendNotice2);
|
||||||
}
|
}
|
||||||
@ -591,7 +535,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
UpdateEntityNoCommit(record, "STATUS");
|
UpdateEntityNoCommit(record, "STATUS");
|
||||||
UpdateEntityNoCommit(recordUser, "OK");
|
UpdateEntityNoCommit(recordUser, "OK");
|
||||||
UpdateEntityNoCommit(modelRecordText);//试题
|
|
||||||
if (finishNotice != null)
|
if (finishNotice != null)
|
||||||
UpdateEntityNoCommit(finishNotice);
|
UpdateEntityNoCommit(finishNotice);
|
||||||
if (effect != null)
|
if (effect != null)
|
||||||
|
|||||||
@ -56241,111 +56241,6 @@ using APT.MS.Domain.Entities.HM;
|
|||||||
return WitEntity(null, filter);
|
return WitEntity(null, filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
#region TrainNotifyCoursewearlibrary-培训课件
|
|
||||||
/// <summary>
|
|
||||||
/// 培训课件
|
|
||||||
/// </summary>
|
|
||||||
[Route("api/SE/TrainNotifyCoursewearlibrary")]
|
|
||||||
public partial class TrainNotifyCoursewearlibraryController : AuthorizeApiController<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY>
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 查询所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("Entities")]
|
|
||||||
public JsonActionResult<IEnumerable<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY>> Entities([FromBody]KeywordFilter filter)
|
|
||||||
{
|
|
||||||
return WitEntities(null, filter);
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 排序查询所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
|
|
||||||
[HttpPost, Route("OrderEntities")]
|
|
||||||
public JsonActionResult<IEnumerable<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY>> OrderEntities([FromBody]KeywordFilter filter)
|
|
||||||
{
|
|
||||||
return WitOrderEntities(null, filter);
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 分页查询数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="pageFilter">分页过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("Paged")]
|
|
||||||
public PagedActionResult<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
||||||
{
|
|
||||||
return WitPaged(null, pageFilter);
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 排序分页查询数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="pageFilter">分页过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("OrderPaged")]
|
|
||||||
public PagedActionResult<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> 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_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY entity)
|
|
||||||
{
|
|
||||||
return WitUpdate(entity);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 批量更新
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity">对象实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("BatchUpdate")]
|
|
||||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> 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_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> Get([FromBody] KeywordFilter filter)
|
|
||||||
{
|
|
||||||
return WitEntity(null, filter);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region TrainPlan-年度培训计划
|
#region TrainPlan-年度培训计划
|
||||||
@ -56871,111 +56766,6 @@ using APT.MS.Domain.Entities.HM;
|
|||||||
return WitEntity(null, filter);
|
return WitEntity(null, filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
#region TrainRecordText-人员试卷
|
|
||||||
/// <summary>
|
|
||||||
/// 人员试卷
|
|
||||||
/// </summary>
|
|
||||||
[Route("api/SE/TrainRecordText")]
|
|
||||||
public partial class TrainRecordTextController : AuthorizeApiController<T_SE_TRAIN_RECORD_TEXT>
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 查询所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("Entities")]
|
|
||||||
public JsonActionResult<IEnumerable<T_SE_TRAIN_RECORD_TEXT>> Entities([FromBody]KeywordFilter filter)
|
|
||||||
{
|
|
||||||
return WitEntities(null, filter);
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 排序查询所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
|
|
||||||
[HttpPost, Route("OrderEntities")]
|
|
||||||
public JsonActionResult<IEnumerable<T_SE_TRAIN_RECORD_TEXT>> OrderEntities([FromBody]KeywordFilter filter)
|
|
||||||
{
|
|
||||||
return WitOrderEntities(null, filter);
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 分页查询数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="pageFilter">分页过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("Paged")]
|
|
||||||
public PagedActionResult<T_SE_TRAIN_RECORD_TEXT> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
||||||
{
|
|
||||||
return WitPaged(null, pageFilter);
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 排序分页查询数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="pageFilter">分页过滤实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("OrderPaged")]
|
|
||||||
public PagedActionResult<T_SE_TRAIN_RECORD_TEXT> 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_SE_TRAIN_RECORD_TEXT entity)
|
|
||||||
{
|
|
||||||
return WitUpdate(entity);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 批量更新
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity">对象实体</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost, Route("BatchUpdate")]
|
|
||||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_SE_TRAIN_RECORD_TEXT> 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_SE_TRAIN_RECORD_TEXT> Get([FromBody] KeywordFilter filter)
|
|
||||||
{
|
|
||||||
return WitEntity(null, filter);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region TrainTypeEnum-培训类型
|
#region TrainTypeEnum-培训类型
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user