เพิ่ม api ผลตรวจเลือด
This commit is contained in:
parent
060765d373
commit
4a17aef039
18 changed files with 27329 additions and 562 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,188 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableInsigniaRequestProfilefeildDocumentStatusnull : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Special",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<double>(
|
||||
name: "Salary",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "double",
|
||||
nullable: true,
|
||||
oldClrType: typeof(decimal),
|
||||
oldType: "decimal(65,30)",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "QualificationStatus",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Note",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "MatchingConditions",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "DocumentStatus",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "InsigniaRequestProfiles",
|
||||
keyColumn: "Special",
|
||||
keyValue: null,
|
||||
column: "Special",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Special",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldNullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<decimal>(
|
||||
name: "Salary",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "decimal(65,30)",
|
||||
nullable: true,
|
||||
oldClrType: typeof(double),
|
||||
oldType: "double",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "InsigniaRequestProfiles",
|
||||
keyColumn: "QualificationStatus",
|
||||
keyValue: null,
|
||||
column: "QualificationStatus",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "QualificationStatus",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldNullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "InsigniaRequestProfiles",
|
||||
keyColumn: "Note",
|
||||
keyValue: null,
|
||||
column: "Note",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Note",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "InsigniaRequestProfiles",
|
||||
keyColumn: "MatchingConditions",
|
||||
keyValue: null,
|
||||
column: "MatchingConditions",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "MatchingConditions",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "InsigniaRequestProfiles",
|
||||
keyColumn: "DocumentStatus",
|
||||
keyValue: null,
|
||||
column: "DocumentStatus",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "DocumentStatus",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldNullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
13157
BMA.EHR.Infrastructure/Migrations/20230809145014_update table PlacementTransfers add position.Designer.cs
generated
Normal file
13157
BMA.EHR.Infrastructure/Migrations/20230809145014_update table PlacementTransfers add position.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,165 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementTransfersaddposition : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "AmountOld",
|
||||
table: "PlacementTransfers",
|
||||
type: "double",
|
||||
nullable: true,
|
||||
comment: "ข้อมูลหน่วยงานเดิม เงินเดือน");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "Date",
|
||||
table: "PlacementTransfers",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "ตั้งแต่วันที่");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "OrganizationPositionOldId",
|
||||
table: "PlacementTransfers",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionLevelOldId",
|
||||
table: "PlacementTransfers",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionNumberOldId",
|
||||
table: "PlacementTransfers",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionTypeOldId",
|
||||
table: "PlacementTransfers",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementTransfers_OrganizationPositionOldId",
|
||||
table: "PlacementTransfers",
|
||||
column: "OrganizationPositionOldId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementTransfers_PositionLevelOldId",
|
||||
table: "PlacementTransfers",
|
||||
column: "PositionLevelOldId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementTransfers_PositionNumberOldId",
|
||||
table: "PlacementTransfers",
|
||||
column: "PositionNumberOldId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementTransfers_PositionTypeOldId",
|
||||
table: "PlacementTransfers",
|
||||
column: "PositionTypeOldId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementTransfers_OrganizationPositions_OrganizationPositio~",
|
||||
table: "PlacementTransfers",
|
||||
column: "OrganizationPositionOldId",
|
||||
principalTable: "OrganizationPositions",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementTransfers_PositionLevels_PositionLevelOldId",
|
||||
table: "PlacementTransfers",
|
||||
column: "PositionLevelOldId",
|
||||
principalTable: "PositionLevels",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementTransfers_PositionNumbers_PositionNumberOldId",
|
||||
table: "PlacementTransfers",
|
||||
column: "PositionNumberOldId",
|
||||
principalTable: "PositionNumbers",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementTransfers_PositionTypes_PositionTypeOldId",
|
||||
table: "PlacementTransfers",
|
||||
column: "PositionTypeOldId",
|
||||
principalTable: "PositionTypes",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementTransfers_OrganizationPositions_OrganizationPositio~",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementTransfers_PositionLevels_PositionLevelOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementTransfers_PositionNumbers_PositionNumberOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementTransfers_PositionTypes_PositionTypeOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementTransfers_OrganizationPositionOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementTransfers_PositionLevelOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementTransfers_PositionNumberOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementTransfers_PositionTypeOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AmountOld",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Date",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationPositionOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionLevelOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionNumberOldId",
|
||||
table: "PlacementTransfers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionTypeOldId",
|
||||
table: "PlacementTransfers");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5280,7 +5280,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("DocumentStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)");
|
||||
|
||||
|
|
@ -5307,18 +5306,15 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("MatchingConditions")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Note")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<Guid>("ProfileId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("QualificationStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)");
|
||||
|
||||
|
|
@ -5331,11 +5327,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid>("RequestInsigniaId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<decimal?>("Salary")
|
||||
.HasColumnType("decimal(65,30)");
|
||||
b.Property<double?>("Salary")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<string>("Special")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)");
|
||||
|
||||
|
|
@ -10870,6 +10865,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasComment("PrimaryKey")
|
||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<double?>("AmountOld")
|
||||
.HasColumnType("double")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เงินเดือน");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
|
|
@ -10889,6 +10888,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<DateTime?>("Date")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ตั้งแต่วันที่");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("สถานะการใช้งาน");
|
||||
|
|
@ -10916,6 +10919,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ขอโอนไป");
|
||||
|
||||
b.Property<Guid?>("OrganizationPositionOldId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionLevelOldId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionNumberOldId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionTypeOldId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid>("ProfileId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
|
|
@ -10930,6 +10945,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("OrganizationPositionOldId");
|
||||
|
||||
b.HasIndex("PositionLevelOldId");
|
||||
|
||||
b.HasIndex("PositionNumberOldId");
|
||||
|
||||
b.HasIndex("PositionTypeOldId");
|
||||
|
||||
b.HasIndex("ProfileId");
|
||||
|
||||
b.ToTable("PlacementTransfers");
|
||||
|
|
@ -12764,12 +12787,36 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementTransfer", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPositionOld")
|
||||
.WithMany()
|
||||
.HasForeignKey("OrganizationPositionOldId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevelOld")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionLevelOldId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumberOld")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionNumberOldId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionTypeOld")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionTypeOldId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile")
|
||||
.WithMany()
|
||||
.HasForeignKey("ProfileId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("OrganizationPositionOld");
|
||||
|
||||
b.Navigation("PositionLevelOld");
|
||||
|
||||
b.Navigation("PositionNumberOld");
|
||||
|
||||
b.Navigation("PositionTypeOld");
|
||||
|
||||
b.Navigation("Profile");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue