1、培训通知 添加 是否触发 培训通知 默认是 2、添加签到开始时间 3、添加定时任务 触发生成培训签到待办 4、流程修改 :签到就是签到 5、培训记录添加了很多之前签到完成后的功能 6、添加停止签到 功能,如果没处理就单子提交时处理 7、添加单人发送培训签到功能 8、培训记录添加取消功能
This commit is contained in:
parent
483f416e9f
commit
b47872e8b5
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026040201 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SK_RISK_TYPE_NAME",
|
||||
table: "T_SK_RISK_TYPE");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_RISK_TYPE_NAME",
|
||||
table: "T_SK_RISK_TYPE",
|
||||
column: "NAME",
|
||||
unique: true,
|
||||
filter: "[NAME] IS NOT NULL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,629 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026040202 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
COMPANY_NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
IDENTIFY_CODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
USER_NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
WORK_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
WORK_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
TYPE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
METHOD = table.Column<int>(type: "int", nullable: true),
|
||||
MODE = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
||||
AREA = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
||||
ALLOW_NO = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
ALLOW_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
ALLOW_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
SAFE_ALLOW_NO = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
SAFE_ALLOW_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
SAFE_ALLOW_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
COMPANY_DESCRIPTION = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_MONITOR_DEPART",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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_MONITOR_DEPART", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MONITOR_DEPART_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTERPRISE_INFORMATION_REGISTRATION_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_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_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE_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_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ENTERPRISE_INFORMATION_REGISTRAT~",
|
||||
column: x => x.ENTERPRISE_INFORMATION_REGISTRATION_ID,
|
||||
principalTable: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE_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_ENTERPRISE_INFORMATION_REGISTRATION_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTERPRISE_INFORMATION_REGISTRATION_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_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_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_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_ENTERPRISE_INFORMATION_REGISTRATION_FILE_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ENTERPRISE_INFORMATION_REGISTRATION_ID",
|
||||
column: x => x.ENTERPRISE_INFORMATION_REGISTRATION_ID,
|
||||
principalTable: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_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_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTERPRISE_INFORMATION_REGISTRATION_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_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_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE_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_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ENTERPRISE_INFORMATION_REGISTRATI~",
|
||||
column: x => x.ENTERPRISE_INFORMATION_REGISTRATION_ID,
|
||||
principalTable: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE_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_ENTERPRISE_INFORMATION_REGISTRATION_UNIT",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTERPRISE_INFORMATION_REGISTRATION_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PRODUCTION_UNIT_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_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT_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_ENTERPRISE_INFORMATION_REGISTRATION_UNIT_T_FM_USER_PRODUCTION_UNIT_SET_PRODUCTION_UNIT_ID",
|
||||
column: x => x.PRODUCTION_UNIT_ID,
|
||||
principalTable: "T_FM_USER_PRODUCTION_UNIT_SET",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ENTERPRISE_INFORMATION_REGISTRATION_ID",
|
||||
column: x => x.ENTERPRISE_INFORMATION_REGISTRATION_ID,
|
||||
principalTable: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTERPRISE_INFORMATION_REGISTRATION_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_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_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE_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_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ENTERPRISE_INFORMATION_REGISTRATI~",
|
||||
column: x => x.ENTERPRISE_INFORMATION_REGISTRATION_ID,
|
||||
principalTable: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE_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_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
HIDDEN_DANGER_RECTIFY_RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
APPLY_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
APPLY_DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
NOTICE_CODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
HIDDEN_DESCRIPTION = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
HIDDEN_REASON = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
CHARGE_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
REVIEW_DESCRIPTION = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
REVIEW_RESULT = table.Column<int>(type: "int", nullable: true),
|
||||
REPORT_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MONITOR_DEPART_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MONITOR_OPINION = table.Column<string>(type: "nvarchar(500)", maxLength: 500, 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_MAJOR_ACCIDENT_HAZARD_MANAGE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_T_FM_DEPARTMENT_APPLY_DEPARTMENT_ID",
|
||||
column: x => x.APPLY_DEPARTMENT_ID,
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_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_MAJOR_ACCIDENT_HAZARD_MANAGE_T_FM_USER_APPLY_USER_ID",
|
||||
column: x => x.APPLY_USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_T_FM_USER_CHARGE_USER_ID",
|
||||
column: x => x.CHARGE_USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_T_SK_HIDDEN_DANGER_RECTIFY_RECORD_HIDDEN_DANGER_RECTIFY_RECORD_ID",
|
||||
column: x => x.HIDDEN_DANGER_RECTIFY_RECORD_ID,
|
||||
principalTable: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_T_SK_MONITOR_DEPART_MONITOR_DEPART_ID",
|
||||
column: x => x.MONITOR_DEPART_ID,
|
||||
principalTable: "T_SK_MONITOR_DEPART",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
MAJOR_ACCIDENT_HAZARD_MANAGE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_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_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_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_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||
column: x => x.IMG_FILE_ID,
|
||||
principalTable: "T_PF_IMG_FILE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_MAJOR_ACCIDENT_HAZARD_MANAGE_ID",
|
||||
column: x => x.MAJOR_ACCIDENT_HAZARD_MANAGE_ID,
|
||||
principalTable: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
MAJOR_ACCIDENT_HAZARD_MANAGE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
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_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER_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_MAJOR_ACCIDENT_HAZARD_MANAGE_USER_T_FM_USER_USER_ID",
|
||||
column: x => x.USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_MAJOR_ACCIDENT_HAZARD_MANAGE_ID",
|
||||
column: x => x.MAJOR_ACCIDENT_HAZARD_MANAGE_ID,
|
||||
principalTable: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ORG_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE_ENTERPRISE_INFORMATION_REGISTRATION_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE",
|
||||
column: "ENTERPRISE_INFORMATION_REGISTRATION_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE_IMG_FILE_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE_ORG_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE_ENTERPRISE_INFORMATION_REGISTRATION_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE",
|
||||
column: "ENTERPRISE_INFORMATION_REGISTRATION_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE_IMG_FILE_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE_ORG_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE_ENTERPRISE_INFORMATION_REGISTRATION_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE",
|
||||
column: "ENTERPRISE_INFORMATION_REGISTRATION_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE_IMG_FILE_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE_ORG_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT_ENTERPRISE_INFORMATION_REGISTRATION_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT",
|
||||
column: "ENTERPRISE_INFORMATION_REGISTRATION_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT_ORG_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT_PRODUCTION_UNIT_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT",
|
||||
column: "PRODUCTION_UNIT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE_ENTERPRISE_INFORMATION_REGISTRATION_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE",
|
||||
column: "ENTERPRISE_INFORMATION_REGISTRATION_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE_IMG_FILE_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE_ORG_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_APPLY_DEPARTMENT_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
column: "APPLY_DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_APPLY_USER_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
column: "APPLY_USER_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_CHARGE_USER_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
column: "CHARGE_USER_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_HIDDEN_DANGER_RECTIFY_RECORD_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
column: "HIDDEN_DANGER_RECTIFY_RECORD_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_MONITOR_DEPART_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
column: "MONITOR_DEPART_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_ORG_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE_IMG_FILE_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE_MAJOR_ACCIDENT_HAZARD_MANAGE_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE",
|
||||
column: "MAJOR_ACCIDENT_HAZARD_MANAGE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE_ORG_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER_MAJOR_ACCIDENT_HAZARD_MANAGE_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER",
|
||||
column: "MAJOR_ACCIDENT_HAZARD_MANAGE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER_ORG_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER_USER_ID",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER",
|
||||
column: "USER_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SK_MONITOR_DEPART_ORG_ID",
|
||||
table: "T_SK_MONITOR_DEPART",
|
||||
column: "ORG_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SK_MONITOR_DEPART");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,87 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026040301 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "STATUS",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "APPLY_DEPARTMENT_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "APPLY_USER_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_APPLY_DEPARTMENT_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
column: "APPLY_DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_APPLY_USER_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
column: "APPLY_USER_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_T_FM_DEPARTMENT_APPLY_DEPARTMENT_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
column: "APPLY_DEPARTMENT_ID",
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_T_FM_USER_APPLY_USER_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
column: "APPLY_USER_ID",
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_T_FM_DEPARTMENT_APPLY_DEPARTMENT_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_T_FM_USER_APPLY_USER_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_APPLY_DEPARTMENT_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_FO_ENTERPRISE_INFORMATION_REGISTRATION_APPLY_USER_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "STATUS",
|
||||
table: "T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "APPLY_DEPARTMENT_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "APPLY_USER_ID",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026040902 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "COMPANY_DESCRIPTION",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
type: "nvarchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(500)",
|
||||
oldMaxLength: 500,
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "COMPANY_DESCRIPTION",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
type: "nvarchar(500)",
|
||||
maxLength: 500,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(1000)",
|
||||
oldMaxLength: 1000,
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,31 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026040903 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ACCEPT_RESULTE",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ACCEPT_RESULTE",
|
||||
table: "T_SK_HIDDEN_DANGER_RECTIFY_RECORD",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,45 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026040901 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "APPROVAL_ROLE_ID",
|
||||
table: "T_SE_SECONFIG",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_SECONFIG_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_SECONFIG",
|
||||
column: "APPROVAL_ROLE_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_SECONFIG_T_PF_APPROVAL_ROLE_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_SECONFIG",
|
||||
column: "APPROVAL_ROLE_ID",
|
||||
principalTable: "T_PF_APPROVAL_ROLE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_SECONFIG_T_PF_APPROVAL_ROLE_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_SECONFIG");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_SECONFIG_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_SECONFIG");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "APPROVAL_ROLE_ID",
|
||||
table: "T_SE_SECONFIG");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,45 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026041001 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "APPROVAL_ROLE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
column: "APPROVAL_ROLE_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_T_PF_APPROVAL_ROLE_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL",
|
||||
column: "APPROVAL_ROLE_ID",
|
||||
principalTable: "T_PF_APPROVAL_ROLE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_TRAIN_PLAN_DETAIL_T_PF_APPROVAL_ROLE_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_TRAIN_PLAN_DETAIL_APPROVAL_ROLE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "APPROVAL_ROLE_ID",
|
||||
table: "T_SE_TRAIN_PLAN_DETAIL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,58 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026041702 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_ANNOURCEMENT",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TITLE = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true),
|
||||
ABSTRACT = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||
START = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
END = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CONTENT = table.Column<string>(type: "nvarchar(max)", maxLength: 5000, nullable: true),
|
||||
NUM = table.Column<int>(type: "int", nullable: false),
|
||||
ISPUBLISH = table.Column<bool>(type: "bit", nullable: false),
|
||||
ENABLE_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_PF_ANNOURCEMENT", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ID",
|
||||
table: "T_PF_ANNOURCEMENT",
|
||||
column: "ORG_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_ANNOURCEMENT");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,145 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026042001 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_ANNOURCEMENT",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_ANNOURCEMENT_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ANNOURCEMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_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_PF_ANNOURCEMENT_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_FILE_T_PF_ANNOURCEMENT_ANNOURCEMENT_ID",
|
||||
column: x => x.ANNOURCEMENT_ID,
|
||||
principalTable: "T_PF_ANNOURCEMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_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_PF_ANNOURCEMENT_ORG",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ANNOURCEMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ORG_ID_SUB = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_PF_ANNOURCEMENT_ORG", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_ORG_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_ORG_T_FM_ORGANIZATION_ORG_ID_SUB",
|
||||
column: x => x.ORG_ID_SUB,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_ORG_T_PF_ANNOURCEMENT_ANNOURCEMENT_ID",
|
||||
column: x => x.ANNOURCEMENT_ID,
|
||||
principalTable: "T_PF_ANNOURCEMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_FILE_ANNOURCEMENT_ID",
|
||||
table: "T_PF_ANNOURCEMENT_FILE",
|
||||
column: "ANNOURCEMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_FILE_IMG_FILE_ID",
|
||||
table: "T_PF_ANNOURCEMENT_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_FILE_ORG_ID",
|
||||
table: "T_PF_ANNOURCEMENT_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ANNOURCEMENT_ID",
|
||||
table: "T_PF_ANNOURCEMENT_ORG",
|
||||
column: "ANNOURCEMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ORG_ID",
|
||||
table: "T_PF_ANNOURCEMENT_ORG",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ORG_ID_SUB",
|
||||
table: "T_PF_ANNOURCEMENT_ORG",
|
||||
column: "ORG_ID_SUB");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_ANNOURCEMENT_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_ANNOURCEMENT_ORG");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_ANNOURCEMENT");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,66 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026042201 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_BITITLE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TITLE = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
VERSION = table.Column<int>(type: "int", nullable: false),
|
||||
STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
USER_ID_CREATER = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PARENTID = 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_PF_BITITLE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BITITLE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BITITLE_T_FM_USER_USER_ID_CREATER",
|
||||
column: x => x.USER_ID_CREATER,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_BITITLE_ORG_ID",
|
||||
table: "T_PF_BITITLE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_BITITLE_USER_ID_CREATER",
|
||||
table: "T_PF_BITITLE",
|
||||
column: "USER_ID_CREATER");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_BITITLE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,45 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026042201 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "FIRE_JOB_ID",
|
||||
table: "T_FO_TECH_DISCLOSURE_FROM",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_FO_TECH_DISCLOSURE_FROM_FIRE_JOB_ID",
|
||||
table: "T_FO_TECH_DISCLOSURE_FROM",
|
||||
column: "FIRE_JOB_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_FO_TECH_DISCLOSURE_FROM_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
||||
table: "T_FO_TECH_DISCLOSURE_FROM",
|
||||
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_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
||||
table: "T_FO_TECH_DISCLOSURE_FROM");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_FO_TECH_DISCLOSURE_FROM_FIRE_JOB_ID",
|
||||
table: "T_FO_TECH_DISCLOSURE_FROM");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "FIRE_JOB_ID",
|
||||
table: "T_FO_TECH_DISCLOSURE_FROM");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,35 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026042301 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "TITLE",
|
||||
table: "T_PF_BITITLE",
|
||||
type: "nvarchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(500)",
|
||||
oldMaxLength: 500,
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "TITLE",
|
||||
table: "T_PF_BITITLE",
|
||||
type: "nvarchar(500)",
|
||||
maxLength: 500,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(1000)",
|
||||
oldMaxLength: 1000,
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,169 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026042302 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_BIPLAY_SET",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
V_ISAUTO = table.Column<bool>(type: "bit", nullable: false),
|
||||
V_ISRE = table.Column<bool>(type: "bit", nullable: false),
|
||||
V_ISSILENT = table.Column<bool>(type: "bit", nullable: false),
|
||||
V_ISSHOWCONTROL = table.Column<bool>(type: "bit", nullable: false),
|
||||
IMG_TIMESPAN = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
||||
IMG_ISRE = table.Column<bool>(type: "bit", nullable: false),
|
||||
IMG_EFFECT = table.Column<int>(type: "int", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_PF_BIPLAY_SET", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BIPLAY_SET_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_BIVIDEOIMG",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TITLE = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true),
|
||||
DESCRIBE = table.Column<string>(type: "nvarchar(600)", maxLength: 600, nullable: true),
|
||||
TYPE = table.Column<int>(type: "int", nullable: false),
|
||||
STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
USER_ID_CREATER = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_PF_BIVIDEOIMG", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BIVIDEOIMG_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BIVIDEOIMG_T_FM_USER_USER_ID_CREATER",
|
||||
column: x => x.USER_ID_CREATER,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_BIVIDEOIMG_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
VIDEOIMG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_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_PF_BIVIDEOIMG_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BIVIDEOIMG_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BIVIDEOIMG_FILE_T_PF_BIVIDEOIMG_VIDEOIMG_ID",
|
||||
column: x => x.VIDEOIMG_ID,
|
||||
principalTable: "T_PF_BIVIDEOIMG",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_BIVIDEOIMG_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_PF_BIPLAY_SET_ORG_ID",
|
||||
table: "T_PF_BIPLAY_SET",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_BIVIDEOIMG_ORG_ID",
|
||||
table: "T_PF_BIVIDEOIMG",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_BIVIDEOIMG_USER_ID_CREATER",
|
||||
table: "T_PF_BIVIDEOIMG",
|
||||
column: "USER_ID_CREATER");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_BIVIDEOIMG_FILE_IMG_FILE_ID",
|
||||
table: "T_PF_BIVIDEOIMG_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_BIVIDEOIMG_FILE_ORG_ID",
|
||||
table: "T_PF_BIVIDEOIMG_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_BIVIDEOIMG_FILE_VIDEOIMG_ID",
|
||||
table: "T_PF_BIVIDEOIMG_FILE",
|
||||
column: "VIDEOIMG_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_BIPLAY_SET");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_BIVIDEOIMG_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_BIVIDEOIMG");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,32 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026042303 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "END",
|
||||
table: "T_PF_ANNOURCEMENT",
|
||||
type: "datetime2",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime2");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "END",
|
||||
table: "T_PF_ANNOURCEMENT",
|
||||
type: "datetime2",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime2",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026042701 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "TYPE",
|
||||
table: "T_PF_BIVIDEOIMG_FILE",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TYPE",
|
||||
table: "T_PF_BIVIDEOIMG_FILE");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
[DbContext(typeof(MigrationContext))]
|
||||
[Migration("20260427012532_wyw2026042701")]
|
||||
partial class wyw2026042701
|
||||
[Migration("20260518085704_wyw2026051802")]
|
||||
partial class wyw2026051802
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
@ -8315,6 +8315,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("PRODUCTION")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
@ -12262,8 +12265,12 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TITLE")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
.HasMaxLength(1500)
|
||||
.HasColumnType("nvarchar(1500)");
|
||||
|
||||
b.Property<string>("TITLE_SHOW")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<Guid>("USER_ID_CREATER")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
@ -73318,6 +73325,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("PARENT_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("START_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
@ -75520,6 +75530,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime?>("DT_START_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -78643,6 +78656,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("ADD_TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("CHECK_CYCLE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -78682,6 +78698,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_SEND")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026051802 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DT_START_SIGN",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DT_START_SIGN",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
[DbContext(typeof(MigrationContext))]
|
||||
[Migration("20260423082148_wyw2026042303")]
|
||||
partial class wyw2026042303
|
||||
[Migration("20260518091342_wyw2026051803")]
|
||||
partial class wyw2026051803
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
@ -8315,6 +8315,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("PRODUCTION")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
@ -12262,8 +12265,12 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TITLE")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
.HasMaxLength(1500)
|
||||
.HasColumnType("nvarchar(1500)");
|
||||
|
||||
b.Property<string>("TITLE_SHOW")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<Guid>("USER_ID_CREATER")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
@ -12389,6 +12396,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid>("VIDEOIMG_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -73315,6 +73325,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("PARENT_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("START_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
@ -75517,6 +75530,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime?>("DT_START_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -75541,6 +75557,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("IN_OUT")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("ISSENDSIGN")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -78640,6 +78659,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("ADD_TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("CHECK_CYCLE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -78679,6 +78701,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_SEND")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -2,13 +2,13 @@
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026041601 : Migration
|
||||
public partial class wyw2026051803 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISDEFAULT",
|
||||
table: "T_FM_ROLE",
|
||||
name: "ISSENDSIGN",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
@ -17,8 +17,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISDEFAULT",
|
||||
table: "T_FM_ROLE");
|
||||
name: "ISSENDSIGN",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
[DbContext(typeof(MigrationContext))]
|
||||
[Migration("20260423054451_wyw2026042302")]
|
||||
partial class wyw2026042302
|
||||
[Migration("20260519020745_wyw2026051901")]
|
||||
partial class wyw2026051901
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
@ -8315,6 +8315,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("PRODUCTION")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
@ -11523,7 +11526,7 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("ENABLE_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("END")
|
||||
b.Property<DateTime?>("END")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
@ -12262,8 +12265,12 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TITLE")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
.HasMaxLength(1500)
|
||||
.HasColumnType("nvarchar(1500)");
|
||||
|
||||
b.Property<string>("TITLE_SHOW")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<Guid>("USER_ID_CREATER")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
@ -12389,6 +12396,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid>("VIDEOIMG_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -73315,6 +73325,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("PARENT_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("START_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
@ -75517,6 +75530,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime?>("DT_START_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -75541,6 +75557,12 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("IN_OUT")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("ISSENDNOTICE")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("ISSENDSIGN")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -78640,6 +78662,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("ADD_TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("CHECK_CYCLE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -78679,6 +78704,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_SEND")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -1,24 +1,24 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026040901 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IS_SEND",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IS_SEND",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION");
|
||||
}
|
||||
}
|
||||
}
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026051901 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISSENDNOTICE",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISSENDNOTICE",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
[DbContext(typeof(MigrationContext))]
|
||||
[Migration("20260423030645_wyw2026042301")]
|
||||
partial class wyw2026042301
|
||||
[Migration("20260519070426_wyw2026051902")]
|
||||
partial class wyw2026051902
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
@ -8315,6 +8315,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("PRODUCTION")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
@ -11523,7 +11526,7 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("ENABLE_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("END")
|
||||
b.Property<DateTime?>("END")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
@ -12147,6 +12150,74 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_PF_APPROVE_TEMP_DETAIL");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BIPLAY_SET", 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<int>("IMG_EFFECT")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("IMG_ISRE")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<decimal>("IMG_TIMESPAN")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
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<bool>("V_ISAUTO")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("V_ISRE")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("V_ISSHOWCONTROL")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("V_ISSILENT")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.ToTable("T_PF_BIPLAY_SET");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BITITLE", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -12194,8 +12265,12 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TITLE")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
.HasMaxLength(1500)
|
||||
.HasColumnType("nvarchar(1500)");
|
||||
|
||||
b.Property<string>("TITLE_SHOW")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<Guid>("USER_ID_CREATER")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
@ -12212,6 +12287,132 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_PF_BITITLE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BIVIDEOIMG", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("DESCRIBE")
|
||||
.HasMaxLength(600)
|
||||
.HasColumnType("nvarchar(600)");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TITLE")
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("nvarchar(300)");
|
||||
|
||||
b.Property<int>("TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid>("USER_ID_CREATER")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("USER_ID_CREATER");
|
||||
|
||||
b.ToTable("T_PF_BIVIDEOIMG");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BIVIDEOIMG_FILE", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("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.Property<int>("TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid>("VIDEOIMG_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("IMG_FILE_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("VIDEOIMG_ID");
|
||||
|
||||
b.ToTable("T_PF_BIVIDEOIMG_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BTN", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -73124,6 +73325,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("PARENT_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("START_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
@ -75326,6 +75530,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime?>("DT_START_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -75350,6 +75557,12 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("IN_OUT")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("ISSENDNOTICE")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("ISSENDSIGN")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -76020,6 +76233,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime?>("DT_SSEND_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -76035,6 +76251,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("ISSTOPSIGN")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -76397,6 +76616,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<DateTime?>("DT_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENABLE_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -78449,6 +78671,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("ADD_TYPE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("CHECK_CYCLE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -78488,6 +78713,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_SEND")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
@ -103318,6 +103546,17 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BIPLAY_SET", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BITITLE", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
@ -103337,6 +103576,51 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BIVIDEOIMG", b =>
|
||||
{
|
||||
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_CREATER")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BIVIDEOIMG_FILE", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
||||
.WithMany()
|
||||
.HasForeignKey("IMG_FILE_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.T_PF_BIVIDEOIMG", "Nav_BIFile")
|
||||
.WithMany("Nav_Files")
|
||||
.HasForeignKey("VIDEOIMG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_BIFile");
|
||||
|
||||
b.Navigation("Nav_ImgFile");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BTN", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
@ -136567,6 +136851,11 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_ApproveTempDetails");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BIVIDEOIMG", b =>
|
||||
{
|
||||
b.Navigation("Nav_Files");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CLIENT_MENU", b =>
|
||||
{
|
||||
b.Navigation("Nav_Children");
|
||||
@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026051902 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DT_SIGN",
|
||||
table: "T_SE_TRAIN_RECORD_USER",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DT_SSEND_SIGN",
|
||||
table: "T_SE_TRAIN_RECORD",
|
||||
type: "datetime2",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISSTOPSIGN",
|
||||
table: "T_SE_TRAIN_RECORD",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DT_SIGN",
|
||||
table: "T_SE_TRAIN_RECORD_USER");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DT_SSEND_SIGN",
|
||||
table: "T_SE_TRAIN_RECORD");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISSTOPSIGN",
|
||||
table: "T_SE_TRAIN_RECORD");
|
||||
}
|
||||
}
|
||||
}
|
||||
139677
APT.Data.Migrations/Migrations/20260519070708_wyw2026051903.Designer.cs
generated
Normal file
139677
APT.Data.Migrations/Migrations/20260519070708_wyw2026051903.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 wyw2026051903 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "REASONCANCLE",
|
||||
table: "T_SE_TRAIN_RECORD",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "REASONCANCLE",
|
||||
table: "T_SE_TRAIN_RECORD");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -75528,6 +75528,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime?>("DT_START_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -75552,6 +75555,12 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<int>("IN_OUT")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("ISSENDNOTICE")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("ISSENDSIGN")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -76222,6 +76231,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime?>("DT_SSEND_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -76237,6 +76249,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("ISSTOPSIGN")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -76253,6 +76268,10 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("REASONCANCLE")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<int>("STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -76599,6 +76618,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<DateTime?>("DT_SIGN")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENABLE_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
|
||||
@ -10692,6 +10692,7 @@ builder.Property(t => t.POST_NAME).HasMaxLength(50);
|
||||
builder.HasOne(t => t.Nav_Notify).WithMany().HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
builder.Ignore(t => t.IS_OVERTIME);
|
||||
builder.Property(t => t.REASONCANCLE).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -291,5 +291,23 @@ namespace APT.MS.Domain.Entities.SE
|
||||
/// </summary>
|
||||
[Description("考试类型")]
|
||||
public ExameType EXAMETYPE { get; set; } = ExameType.ALL;
|
||||
|
||||
/// <summary>
|
||||
/// 签到触发时间
|
||||
/// </summary>
|
||||
[Description("签到触发时间")]
|
||||
public DateTime? DT_START_SIGN { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否触发培训通知
|
||||
/// </summary>
|
||||
[Description("是否触发培训通知")]
|
||||
public bool ISSENDNOTICE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否触发签到
|
||||
/// </summary>
|
||||
[Description("是否触发签到")]
|
||||
public bool ISSENDSIGN { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ namespace APT.MS.Domain.Entities.SE
|
||||
[Description("培训人员")]
|
||||
[FormFieldEdit]
|
||||
public ICollection<T_SE_TRAIN_RECORD_USER> Nav_Users { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
@ -65,5 +65,25 @@ namespace APT.MS.Domain.Entities.SE
|
||||
/// </summary>
|
||||
[Description("培训人数")]
|
||||
public int TRAIN_COUNT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发送签到时间
|
||||
/// </summary>
|
||||
[Description("发送签到时间")]
|
||||
public DateTime? DT_SSEND_SIGN { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否结束签到
|
||||
/// </summary>
|
||||
[Description("是否结束签到")]
|
||||
public bool ISSTOPSIGN { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取消原因
|
||||
/// </summary>
|
||||
[Description("取消原因")]
|
||||
[DataFieldLength(200)]
|
||||
public string REASONCANCLE { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -97,5 +97,11 @@ namespace APT.MS.Domain.Entities.SE
|
||||
/// </summary>
|
||||
[Description("附件")]
|
||||
public ICollection<T_SE_TRAIN_RECORD_USER_FILE> Nav_Files { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签到时间
|
||||
/// </summary>
|
||||
[Description("签到时间")]
|
||||
public DateTime? DT_SIGN { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -1920,14 +1920,14 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
catch { }
|
||||
}
|
||||
|
||||
//ActionExecutingContext context
|
||||
|
||||
DateTime maxTime = dt.AddMinutes(2);//10
|
||||
var orgId = filter.GetOrgId();
|
||||
BaseFilter baseFilter = new BaseFilter(orgId);
|
||||
baseFilter.Include = new string[] { "Nav_RecordUser", "Nav_TrainUserList.Nav_User.Nav_Department", "Nav_TrainUserList.Nav_User.Nav_Person.Nav_Post", "Nav_Files" };
|
||||
|
||||
var notifys = GetEntities<T_SE_TRAIN_NOTIFY>(t => (t.STATUS == SETrainNotifyStatus.通知中 || t.STATUS == SETrainNotifyStatus.签到完成) && t.TRAIN_START_TIME.Value < maxTime && t.CREATE_NOTIFY_RECORD == true, baseFilter).ToList();
|
||||
#region 培训记录
|
||||
|
||||
if (notifys != null || notifys.Any())
|
||||
{
|
||||
List<T_FM_NOTIFICATION_TASK> SendNotices = null;
|
||||
@ -2037,6 +2037,93 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
BantchUpdateEntityNoCommit(finishNotifys1);
|
||||
});
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 培训记录签到
|
||||
|
||||
notifys = GetEntities<T_SE_TRAIN_NOTIFY>(t => t.STATUS != SETrainNotifyStatus.草稿 && !t.ISSENDSIGN && t.DT_START_SIGN.HasValue && t.DT_START_SIGN.Value < maxTime, baseFilter).ToList();
|
||||
|
||||
if (notifys != null && notifys.Count() > 0)
|
||||
{
|
||||
var listNotifyID = notifys.Select(e => e.ID).Distinct();
|
||||
var iListR = GetEntities<T_SE_TRAIN_RECORD>(e => listNotifyID.Contains(e.NOTIFY_ID), null, null);
|
||||
var listRecordID = iListR.Select(e => e.ID);
|
||||
var listUsers = GetEntities<T_SE_TRAIN_RECORD_USER>(e => listRecordID.Contains(e.RECORD_ID) && e.STATUS == SETrainRecordUserStatusEnum.参与 && e.Nav_User.ENABLE_STATUS == 0 && !e.Nav_User.IS_DELETED, null, "Nav_User");
|
||||
IEnumerable<T_SE_TRAIN_RECORD_USER> iListTemp = null;
|
||||
T_SE_TRAIN_NOTIFY modelTr = null;
|
||||
|
||||
List<string> allSendTitles = null;
|
||||
List<Guid> allSendDataIds = null;
|
||||
List<Guid> allSendUserIds = null;
|
||||
List<string> allSendUserNames = null;
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotice = null;
|
||||
|
||||
foreach (var item in iListR)
|
||||
{
|
||||
try
|
||||
{
|
||||
modelTr = notifys.FirstOrDefault(e => e.ID == item.NOTIFY_ID);
|
||||
if (modelTr == null)
|
||||
continue;
|
||||
iListTemp = listUsers.Where(e => e.RECORD_ID == item.ID);
|
||||
if (iListTemp == null || iListTemp.Count() < 1)
|
||||
continue;
|
||||
|
||||
allSendTitles = new List<string>();
|
||||
allSendDataIds = new List<Guid>();
|
||||
allSendUserIds = new List<Guid>();
|
||||
allSendUserNames = new List<string>();
|
||||
|
||||
modelTr.ISSENDSIGN = true;
|
||||
modelTr.MODIFY_TIME = DateTime.Now;
|
||||
foreach (var itemU in iListTemp)
|
||||
{
|
||||
allSendUserIds.Add(itemU.USER_ID);
|
||||
allSendUserNames.Add(itemU.Nav_User.NAME);
|
||||
allSendTitles.Add("培训记录签到-" + modelTr.NAME);
|
||||
allSendDataIds.Add(item.ID);
|
||||
}
|
||||
sendNotice = NotificationTaskService.InsertUserNoticeTaskModels(allSendTitles, allSendDataIds, item.ORG_ID, allSendUserIds, allSendUserNames, DateTime.Now, modelTr.TRAIN_END_TIME.HasValue ? modelTr.TRAIN_END_TIME.Value : DateTime.Now.AddHours(12), 1, "SE017_SHOWPRINT");
|
||||
|
||||
//培训老师 记录人 默认签到
|
||||
List<Guid> listDon = new List<Guid>();
|
||||
if (modelTr.RECORD_USER_ID.HasValue)
|
||||
{
|
||||
listDon.Add(modelTr.RECORD_USER_ID.Value);
|
||||
}
|
||||
if (modelTr.USER_ID_TEACHER.HasValue)
|
||||
{
|
||||
listDon.Add(modelTr.USER_ID_TEACHER.Value);
|
||||
}
|
||||
|
||||
if (listDon.Count > 0)
|
||||
{
|
||||
sendNotice.ForEach(e =>
|
||||
{
|
||||
if (listDon.Contains(e.USER_ID))
|
||||
{
|
||||
e.NOTICE_STATUS = 0;
|
||||
e.TASK_DT = DateTime.Now;
|
||||
}
|
||||
});
|
||||
}
|
||||
item.DT_SSEND_SIGN = DateTime.Now;
|
||||
item.STATUS = SETrainRecordStatus.签到中;
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(modelTr);
|
||||
UpdateEntityNoCommit(item);
|
||||
if (sendNotice != null && sendNotice.Any())
|
||||
BantchSaveEntityNoCommit(sendNotice);
|
||||
});
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@ -66,7 +66,10 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
{
|
||||
throw new Exception("培训开始时间不能大于培训结束时间!");
|
||||
}
|
||||
|
||||
if (entity.DT_START_SIGN.HasValue && entity.TRAIN_END_TIME.HasValue && entity.DT_START_SIGN.Value >= entity.TRAIN_END_TIME.Value)
|
||||
{
|
||||
throw new Exception("签到开始时间不能大于培训结束时间!");
|
||||
}
|
||||
var Nav_TrainUserList = entity.Nav_TrainUserList.Where(t => t.USER_ID != Guid.Empty);
|
||||
var Nav_Files = entity.Nav_Files;
|
||||
List<T_FM_NOTIFICATION_TASK> sendNoticeTask = null;
|
||||
@ -227,43 +230,56 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
entity.STATUS = SETrainNotifyStatus.通知中;
|
||||
//触发培训通知给所有培训人员
|
||||
var allSendUserNames = new List<string>();
|
||||
|
||||
var sendUsers = Nav_TrainUserList.Where(t => t.IS_DELETED == false && t.USER_ID != entity.LAUNCH_USER_ID).Select(t => t.USER_ID).ToList();
|
||||
var sendUserAll = Nav_TrainUserList.Where(t => t.IS_DELETED == false).Select(t => t.USER_ID).ToList();
|
||||
|
||||
BaseFilter userFilter = new BaseFilter(entity.ORG_ID);
|
||||
userFilter.Include = new string[] { "Nav_Person.Nav_Post", "Nav_Department" };
|
||||
IEnumerable<T_FM_USER> userNames = GetEntities<T_FM_USER>(t => sendUserAll.Contains(t.ID), userFilter);
|
||||
|
||||
foreach (var user in Nav_TrainUserList)
|
||||
if (entity.ISSENDNOTICE)
|
||||
{
|
||||
if (user.IS_DELETED)
|
||||
continue;
|
||||
entity.STATUS = SETrainNotifyStatus.通知中;
|
||||
//触发培训通知给所有培训人员
|
||||
var allSendUserNames = new List<string>();
|
||||
var sendUsers = Nav_TrainUserList.Where(t => t.IS_DELETED == false && t.USER_ID != entity.LAUNCH_USER_ID).Select(t => t.USER_ID).ToList();
|
||||
var sendUserAll = Nav_TrainUserList.Where(t => t.IS_DELETED == false).Select(t => t.USER_ID).ToList();
|
||||
|
||||
user.DEPARTMENT_NAME = userNames.FirstOrDefault(t => t.ID == user.USER_ID)?.Nav_Department?.NAME;
|
||||
user.POST_NAME = userNames.FirstOrDefault(t => t.ID == user.USER_ID).Nav_Person?.Nav_Post?.NAME;
|
||||
BaseFilter userFilter = new BaseFilter(entity.ORG_ID);
|
||||
userFilter.Include = new string[] { "Nav_Person.Nav_Post", "Nav_Department" };
|
||||
IEnumerable<T_FM_USER> userNames = GetEntities<T_FM_USER>(t => sendUserAll.Contains(t.ID), userFilter);
|
||||
|
||||
foreach (var user in Nav_TrainUserList)
|
||||
{
|
||||
if (user.IS_DELETED)
|
||||
continue;
|
||||
|
||||
user.DEPARTMENT_NAME = userNames.FirstOrDefault(t => t.ID == user.USER_ID)?.Nav_Department?.NAME;
|
||||
user.POST_NAME = userNames.FirstOrDefault(t => t.ID == user.USER_ID).Nav_Person?.Nav_Post?.NAME;
|
||||
}
|
||||
foreach (var user in sendUsers)
|
||||
{
|
||||
allSendUserNames.Add(userNames.FirstOrDefault(t => t.ID == user).NAME);
|
||||
}
|
||||
|
||||
//2023/04/23当前人自动签到
|
||||
var currTrainUser = Nav_TrainUserList.FirstOrDefault(t => t.USER_ID == entity.LAUNCH_USER_ID);
|
||||
if (currTrainUser != null)
|
||||
{
|
||||
currTrainUser.IS_LEAVE = SETrainYesNoEnum.参加;
|
||||
}
|
||||
|
||||
sendNoticeTask = NotificationTaskService.InsertUserNoticeTaskModels("培训通知-" + entity.NAME + "-确认", entity.ID, entity.ORG_ID, sendUsers, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "SE013_SHOWPRINT");
|
||||
}
|
||||
foreach (var user in sendUsers)
|
||||
else
|
||||
{
|
||||
allSendUserNames.Add(userNames.FirstOrDefault(t => t.ID == user).NAME);
|
||||
//没有触发培训通知
|
||||
if (entity.CREATE_NOTIFY_RECORD)
|
||||
{
|
||||
entity.STATUS = SETrainNotifyStatus.签到完成;
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.STATUS = SETrainNotifyStatus.归档;
|
||||
}
|
||||
}
|
||||
|
||||
//2023/04/23当前人自动签到
|
||||
var currTrainUser = Nav_TrainUserList.FirstOrDefault(t => t.USER_ID == entity.LAUNCH_USER_ID);
|
||||
if (currTrainUser != null)
|
||||
{
|
||||
currTrainUser.IS_LEAVE = SETrainYesNoEnum.参加;
|
||||
}
|
||||
|
||||
sendNoticeTask = NotificationTaskService.InsertUserNoticeTaskModels("培训通知-" + entity.NAME + "-确认", entity.ID, entity.ORG_ID, sendUsers, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "SE013_SHOWPRINT");
|
||||
|
||||
if (entity.TaskID != Guid.Empty)
|
||||
{
|
||||
finishNoticeTask = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "SE013_SHOWPRINT");
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user