add field

This commit is contained in:
Suphonchai Phoonsawat 2024-02-13 13:25:01 +07:00
parent c704556891
commit e45cf014b1
11 changed files with 51436 additions and 0 deletions

View file

@ -337,5 +337,7 @@ namespace BMA.EHR.Domain.Models.HR
public virtual List<ProfileLeaveSummary> LeaveSummary { get; set; } = new();
public bool IsSendVerified { get; set; } = false;
}
}

View file

@ -26,5 +26,8 @@ namespace BMA.EHR.Domain.Models.HR
// public string? OrganizationOrganization { get; set; }
public virtual List<ProfileHonorHistory> ProfileHonorHistorys { get; set; } = new List<ProfileHonorHistory>();
public virtual Profile? Profile { get; set; }
[Comment("ประเภทช่วงเวลา")]
public bool? IsDate { get; set; }
}
}

View file

@ -30,5 +30,8 @@ namespace BMA.EHR.Domain.Models.HR
public DateTime? EndDate { get; set; }
public virtual List<ProfileTrainingHistory> ProfileTrainingHistorys { get; set; } = new List<ProfileTrainingHistory>();
public virtual Profile? Profile { get; set; }
[Comment("ประเภทช่วงเวลา")]
public bool? IsDate { get; set; }
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddFieldsIsDateTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsDate",
table: "ProfileTrainings",
type: "tinyint(1)",
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsDate",
table: "ProfileTrainings");
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddFieldsIsSendVerifiedTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsSendVerified",
table: "Profiles",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsSendVerified",
table: "Profiles");
}
}
}

View file

@ -0,0 +1,51 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddFieldsIsDatetoProfileHonorTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<bool>(
name: "IsDate",
table: "ProfileTrainings",
type: "tinyint(1)",
nullable: true,
comment: "ประเภทช่วงเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ประเภทช่วงเวลาการศึกษา");
migrationBuilder.AddColumn<bool>(
name: "IsDate",
table: "ProfileHonors",
type: "tinyint(1)",
nullable: true,
comment: "ประเภทช่วงเวลา");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsDate",
table: "ProfileHonors");
migrationBuilder.AlterColumn<bool>(
name: "IsDate",
table: "ProfileTrainings",
type: "tinyint(1)",
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ประเภทช่วงเวลา");
}
}
}

View file

@ -1185,6 +1185,9 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Property<bool>("IsProbation")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsSendVerified")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsTransfer")
.HasColumnType("tinyint(1)");
@ -3744,6 +3747,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(2000)")
.HasComment("รายละเอียด");
b.Property<bool?>("IsDate")
.HasColumnType("tinyint(1)")
.HasComment("ประเภทช่วงเวลา");
b.Property<DateTime?>("IssueDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่ได้รับ");
@ -5357,6 +5364,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("datetime(6)")
.HasComment("วันสิ้นสุดการฝึกอบรม/ดูงาน");
b.Property<bool?>("IsDate")
.HasColumnType("tinyint(1)")
.HasComment("ประเภทช่วงเวลา");
b.Property<string>("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)

View file

@ -14,6 +14,7 @@
"AllowedHosts": "*",
"ConnectionStrings": {
//"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB",
//"DefaultConnection": "server=192.168.1.81;user=root;password=adminVM123;port=4061;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;",
"DefaultConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;",
"ExamConnection": "server=192.168.1.80;user=root;password=adminVM123;port=3306;database=bma_ehr_exam_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;",
//"LeaveConnection": "server=192.168.4.11;user=root;password=P@ssw0rd;port=3306;database=bma_ehr_leave;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;"