เพิ่มฟิวเช็คผู้ร้องเรียนที่ยืนมาจากก่อนหน้านี่
This commit is contained in:
parent
491ee1a302
commit
2f51a4e26e
10 changed files with 3089 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
|
|||
LastName = p.LastName,
|
||||
Position = p.Position,
|
||||
PositionLevel = p.PositionLevel,
|
||||
IsAncestorDNA = p.IsAncestorDNA,
|
||||
Salary = p.Salary,
|
||||
PersonId = p.PersonId,
|
||||
PosNo = p.PosNo,
|
||||
|
|
@ -249,6 +250,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
|
|||
PosNo = item.posNo,
|
||||
Position = item.position,
|
||||
PositionLevel = item.positionLevel,
|
||||
IsAncestorDNA = true,
|
||||
CreatedFullName = FullName ?? "System Administrator",
|
||||
CreatedUserId = UserId ?? "",
|
||||
CreatedAt = DateTime.Now,
|
||||
|
|
@ -318,6 +320,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
|
|||
Organization = item.organization,
|
||||
Position = item.position,
|
||||
PositionLevel = item.positionLevel,
|
||||
IsAncestorDNA = true,
|
||||
Salary = item.salary,
|
||||
PersonId = item.personId,
|
||||
PosNo = item.posNo,
|
||||
|
|
@ -450,6 +453,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
|
|||
PosNo = item.PosNo,
|
||||
Position = item.Position,
|
||||
PositionLevel = item.PositionLevel,
|
||||
IsAncestorDNA = true,
|
||||
IsDisciplinary = false,
|
||||
CreatedFullName = FullName ?? "System Administrator",
|
||||
CreatedUserId = UserId ?? "",
|
||||
|
|
|
|||
|
|
@ -459,6 +459,7 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers
|
|||
LastName = p.LastName,
|
||||
Position = p.Position,
|
||||
PositionLevel = p.PositionLevel,
|
||||
IsAncestorDNA = p.IsAncestorDNA,
|
||||
Salary = p.Salary,
|
||||
PersonId = p.PersonId,
|
||||
PosNo = p.PosNo,
|
||||
|
|
@ -688,6 +689,7 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers
|
|||
Organization = item.organization,
|
||||
Position = item.position,
|
||||
PositionLevel = item.positionLevel,
|
||||
IsAncestorDNA = isReport == null ? false : isReport.IsAncestorDNA,
|
||||
Salary = item.salary,
|
||||
PersonId = item.personId,
|
||||
PosNo = item.posNo,
|
||||
|
|
|
|||
|
|
@ -287,6 +287,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers
|
|||
LastName = p.LastName,
|
||||
Position = p.Position,
|
||||
PositionLevel = p.PositionLevel,
|
||||
IsAncestorDNA = p.IsAncestorDNA,
|
||||
Salary = p.Salary,
|
||||
PersonId = p.PersonId,
|
||||
PosNo = p.PosNo,
|
||||
|
|
@ -453,6 +454,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers
|
|||
Organization = item.organization,
|
||||
Position = item.position,
|
||||
PositionLevel = item.positionLevel,
|
||||
IsAncestorDNA = isReport == null ? false : isReport.IsAncestorDNA,
|
||||
Salary = item.salary,
|
||||
PersonId = item.personId,
|
||||
PosNo = item.posNo,
|
||||
|
|
@ -579,6 +581,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers
|
|||
PosNo = item.PosNo,
|
||||
Position = item.Position,
|
||||
PositionLevel = item.PositionLevel,
|
||||
IsAncestorDNA = true,
|
||||
Status = "NEW",
|
||||
StatusDiscard = "NEW",
|
||||
IsReport = "NEW",
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
|
|||
LastName = p.LastName,
|
||||
Position = p.Position,
|
||||
PositionLevel = p.PositionLevel,
|
||||
IsAncestorDNA = p.IsAncestorDNA,
|
||||
Salary = p.Salary,
|
||||
PersonId = p.PersonId,
|
||||
PosNo = p.PosNo,
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
public string? PositionLevel { get; set; }
|
||||
[Comment("เงินเดือน")]
|
||||
public double? Salary { get; set; }
|
||||
[Comment("รายการเก่า")]
|
||||
public bool? IsAncestorDNA { get; set; } = false;
|
||||
[Required, Comment("Id เรื่องร้องเรียน")]
|
||||
public DisciplineComplaint DisciplineComplaint { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
public string? IsReport { get; set; } = "NEW";
|
||||
[Comment("ส่งไปพักราชการ")]
|
||||
public string? IsSuspend { get; set; } = "NEW";
|
||||
[Comment("รายการเก่า")]
|
||||
public bool? IsAncestorDNA { get; set; } = false;
|
||||
[Required, Comment("Id เรื่องสอบสวน")]
|
||||
public DisciplineDisciplinary DisciplineDisciplinary { get; set; }
|
||||
// public virtual List<DisciplineReport_Profile> DisciplineReport_Profiles { get; set; } = new List<DisciplineReport_Profile>();
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
public string? IsReport { get; set; } = "NEW";
|
||||
[Comment("ส่งไปสอบสวน")]
|
||||
public bool? IsDisciplinary { get; set; } = false;
|
||||
[Comment("รายการเก่า")]
|
||||
public bool? IsAncestorDNA { get; set; } = false;
|
||||
[Required, Comment("Id เรื่องสืบสวน")]
|
||||
public DisciplineInvestigate DisciplineInvestigate { get; set; }
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,51 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableDisciplineDisciplinary_ProfileComplaintInvestigatesaddIsAncestorDNA : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsAncestorDNA",
|
||||
table: "DisciplineInvestigate_ProfileComplaints",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "รายการเก่า");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsAncestorDNA",
|
||||
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "รายการเก่า");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsAncestorDNA",
|
||||
table: "DisciplineComplaint_Profiles",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "รายการเก่า");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsAncestorDNA",
|
||||
table: "DisciplineInvestigate_ProfileComplaints");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsAncestorDNA",
|
||||
table: "DisciplineDisciplinary_ProfileComplaintInvestigates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsAncestorDNA",
|
||||
table: "DisciplineComplaint_Profiles");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -518,6 +518,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("varchar(100)")
|
||||
.HasComment("ชื่อ");
|
||||
|
||||
b.Property<bool?>("IsAncestorDNA")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("รายการเก่า");
|
||||
|
||||
b.Property<string>("LastName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
|
|
@ -1673,6 +1677,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("varchar(100)")
|
||||
.HasComment("ชื่อ");
|
||||
|
||||
b.Property<bool?>("IsAncestorDNA")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("รายการเก่า");
|
||||
|
||||
b.Property<string>("IsReport")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ส่งไปยุติเรื่อง");
|
||||
|
|
@ -2280,6 +2288,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("varchar(100)")
|
||||
.HasComment("ชื่อ");
|
||||
|
||||
b.Property<bool?>("IsAncestorDNA")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("รายการเก่า");
|
||||
|
||||
b.Property<bool?>("IsDisciplinary")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ส่งไปสอบสวน");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue