Merge branch 'develop' into working

This commit is contained in:
Suphonchai Phoonsawat 2024-01-11 10:14:20 +07:00
commit 3bd22608e4
23 changed files with 9215 additions and 53 deletions

View file

@ -28,7 +28,8 @@ namespace BMA.EHR.Application.Repositories
public async Task NotifyDisciplineComplaint()
{
var cronjobNotis = await _dbDisContext.Set<DisciplineComplaint>()
.Where(x => x.DateNotification != null && x.DateNotification.Date == DateTime.Now.Date)
.Where(x => x.DateNotification != null)
.Where(x => x.DateNotification.Value.Date == DateTime.Now.Date)
.AsQueryable()
.ToListAsync();
foreach (var cronjobNoti in cronjobNotis)

View file

@ -61,7 +61,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
{
var data_search = (from x in _context.DisciplineComplaints
where x.Title.Contains(keyword) ||
x.Appellant.Contains(keyword)
(x.Appellant == null ? false : x.Appellant.Contains(keyword))
select x).ToList();
if (status.Trim().ToUpper() != "ALL")
data_search = data_search.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList();
@ -80,7 +80,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
Status = x.Status,//สถานะเรื่องร้องเรียน มีดังนี้ ใหม่ (NEW), ยุติเรื่อง (STOP), มีมูลส่งไปสืบสวนแล้ว (SEND_INVESTIGATE)
Result = x.Result,
})
.OrderByDescending(x => x.CreatedAt)
.OrderByDescending(x => x.DateConsideration)
.Skip((page - 1) * pageSize)
.Take(pageSize)
.ToList();

View file

@ -446,12 +446,12 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
public async Task<ActionResult<ResponseObject>> GetDisciplineAdmin(string status = "ALL", string type = "ALL", int year = 0, int page = 1, int pageSize = 25, string keyword = "")
{
var data_search = (from x in _context.DisciplineComplaint_Appeals
where x.Title.Contains(keyword) ||
x.Description.Contains(keyword) ||
x.CaseType.Contains(keyword) ||
x.CaseNumber.Contains(keyword) ||
x.Fullname.Contains(keyword) ||
x.CitizenId.Contains(keyword)
where (x.Title == null ? false : x.Title.Contains(keyword)) ||
(x.Description == null ? false : x.Description.Contains(keyword)) ||
(x.CaseType == null ? false : x.CaseType.Contains(keyword)) ||
(x.CaseNumber == null ? false : x.CaseNumber.Contains(keyword)) ||
(x.Fullname == null ? false : x.Fullname.Contains(keyword)) ||
(x.CitizenId == null ? false : x.CitizenId.Contains(keyword))
select x).ToList();
if (status.Trim().ToUpper() != "ALL")
data_search = data_search.Where(x => x.Status == status).ToList();

View file

@ -75,8 +75,10 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers
DisciplinaryCaseFault = x.DisciplinaryCaseFault,//กรณีความผิด
Status = x.Status,//สถานะหรือผลการสอบสวน
CreatedAt = x.CreatedAt,//วันที่สร้างเรื่องสอบสวน
DisciplinaryDateStart = x.DisciplinaryDateStart,//
DisciplinaryDateEnd = x.DisciplinaryDateEnd,//
})
.OrderByDescending(x => x.CreatedAt)
.OrderByDescending(x => x.DisciplinaryDateStart)
.Skip((page - 1) * pageSize)
.Take(pageSize)
.ToList();
@ -632,7 +634,7 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers
Name = sumExtend > 0 ? "ขยายครั้งที่" + sumExtend : "วันที่สอบสวน",
Num = sumExtend,
DaysExtend = data.DisciplinaryDaysExtend,
DateStart = sumExtend > 0 ? data.DisciplinaryDateEnd.Value.AddDays(data.DisciplinaryDaysExtend == null ? 0 : -(double)data.DisciplinaryDaysExtend) : data.DisciplinaryDateStart,
DateStart = sumExtend > 0 && data.DisciplinaryDateEnd != null ? data.DisciplinaryDateEnd.Value.AddDays(data.DisciplinaryDaysExtend == null ? 0 : -(double)data.DisciplinaryDaysExtend + 1) : data.DisciplinaryDateStart,
DateEnd = data.DisciplinaryDateEnd,
CreatedFullName = FullName ?? "System Administrator",
CreatedUserId = UserId ?? "",

View file

@ -74,7 +74,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers
InvestigationDetail = x.InvestigationDetail,
InvestigationStatusResult = x.InvestigationStatusResult,
})
.OrderByDescending(x => x.CreatedAt)
.OrderByDescending(x => x.InvestigationDateStart)
.Skip((page - 1) * pageSize)
.Take(pageSize)
.ToList();
@ -377,12 +377,12 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers
var editExtend = false;
if (data.InvestigationDateEnd != req.investigationDateEnd) editExtend = true;
data.InvestigationDetail = req.investigationDetail.Trim().ToUpper();
data.InvestigationDetail = req.investigationDetail == null ? null : req.investigationDetail.Trim().ToUpper();
data.InvestigationDetailOther = req.investigationDetailOther;
data.InvestigationDateStart = req.investigationDateStart;
data.InvestigationDateEnd = req.investigationDateEnd;
data.InvestigationDescription = req.investigationDescription;
data.InvestigationStatusResult = req.investigationStatusResult.Trim().ToUpper();
data.InvestigationStatusResult = req.investigationStatusResult == null ? null : req.investigationStatusResult.Trim().ToUpper();
data.InvestigationCauseText = req.investigationCauseText;
data.InvestigationExtendStatus = req.investigationExtendStatus;
data.InvestigationDaysExtend = req.investigationDaysExtend;
@ -399,7 +399,7 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers
Name = sumExtend > 0 ? "ขยายครั้งที่" + sumExtend : "วันที่สืบสวน",
Num = sumExtend,
DaysExtend = data.InvestigationDaysExtend,
DateStart = sumExtend > 0 ? data.InvestigationDateEnd.Value.AddDays(data.InvestigationDaysExtend == null ? 0 : -(double)data.InvestigationDaysExtend) : data.InvestigationDateStart,
DateStart = sumExtend > 0 && data.InvestigationDateEnd != null ? data.InvestigationDateEnd.Value.AddDays(data.InvestigationDaysExtend == null ? 0 : -(double)data.InvestigationDaysExtend + 1) : data.InvestigationDateStart,
DateEnd = data.InvestigationDateEnd,
CreatedFullName = FullName ?? "System Administrator",
CreatedUserId = UserId ?? "",

View file

@ -56,15 +56,15 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers
public async Task<ActionResult<ResponseObject>> GetDisciplineSuspend(int page = 1, int pageSize = 25, string keyword = "")
{
var data_search = (from x in _context.DisciplineReport_Profiles
where x.CitizenId.Contains(keyword) ||
x.Prefix.Contains(keyword) ||
x.FirstName.Contains(keyword) ||
x.LastName.Contains(keyword) ||
x.Organization.Contains(keyword) ||
x.Position.Contains(keyword) ||
x.PosNo.Contains(keyword) ||
x.PositionLevel.Contains(keyword) ||
x.Title.Contains(keyword)
where (x.CitizenId == null ? false : x.CitizenId.Contains(keyword)) ||
(x.Prefix == null ? false : x.Prefix.Contains(keyword)) ||
(x.FirstName == null ? false : x.FirstName.Contains(keyword)) ||
(x.LastName == null ? false : x.LastName.Contains(keyword)) ||
(x.Organization == null ? false : x.Organization.Contains(keyword)) ||
(x.Position == null ? false : x.Position.Contains(keyword)) ||
(x.PosNo == null ? false : x.PosNo.Contains(keyword)) ||
(x.PositionLevel == null ? false : x.PositionLevel.Contains(keyword)) ||
(x.Title == null ? false : x.Title.Contains(keyword))
select x).ToList();
var data = data_search
.Select(x => new

View file

@ -120,6 +120,7 @@ var builder = WebApplication.CreateBuilder(args);
PrepareSchemaIfNecessary = true,
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
InvisibilityTimeout = TimeSpan.FromHours(3),
TablesPrefix = "Hangfire"
})));
builder.Services.AddHangfireServer();

View file

@ -10,11 +10,11 @@ namespace BMA.EHR.Discipline.Service.Requests
public Guid consideredAgency { get; set; }// *หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง
public string title { get; set; }// *เรื่องที่ร้องเรียน
public string? description { get; set; }// *รายละเอียดของเรื่องร้องเรียน
public DateTime dateReceived { get; set; }// *วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ
public DateTime? dateReceived { get; set; }// *วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ
public string? levelConsideration { get; set; }// *ระดับการพิจารณา "ยังไม่ระบุ" (NORMAL คือ ปกติ, URGENT คือ ด่วน, VERY_URGENT คือ ด่วนมาก)
public DateTime? dateConsideration { get; set; }// วันที่กำหนดพิจารณา
public string? offenseDetails { get; set; }// *ลักษณะความผิดครั้งแรกจะเป็น "ยังไม่ระบุ" (NOT_SPECIFIED คือ ยังไม่ระบุ, NOT_DEADLY คือ ไม่ร้ายแรง, DEADLY คือ ร้ายแรง)
public DateTime dateNotification { get; set; }//*วันแจ้งเตือนล่วงหน้า
public DateTime? dateNotification { get; set; }//*วันแจ้งเตือนล่วงหน้า
public string? complaintFrom { get; set; }//*รับเรื่องร้องเรียนจาก ระบุว่ารับเรื่องมาจากใคร/หน่วยงานไหน (สตง., ปปช., ปปท., จดหมาย, อีเมล, โทรศัพท์, บอกกล่าว)
public string? appellant { get; set; }//*ผู้ร้องเรียน
public string? result { get; set; }

View file

@ -14,12 +14,12 @@ namespace BMA.EHR.Discipline.Service.Requests
public DateTime? DisciplinaryDateEvident { get; set; }
public DateTime? DisciplinaryDateAllegation { get; set; }
public DateTime DisciplinaryDateStart { get; set; }
public DateTime DisciplinaryDateEnd { get; set; }
public DateTime? DisciplinaryDateStart { get; set; }
public DateTime? DisciplinaryDateEnd { get; set; }
public int? DaysExtend { get; set; }
public bool ExtendStatus { get; set; } = false;
public DateTime? DisciplinaryDateInvestigation { get; set; }
public DateTime DisciplinaryDateResult { get; set; }
public DateTime? DisciplinaryDateResult { get; set; }
public string? DisciplinaryStatusResult { get; set; }
public string? DisciplinaryCauseText { get; set; }
public string? DisciplinaryResult { get; set; }

View file

@ -4,12 +4,12 @@ namespace BMA.EHR.Discipline.Service.Requests
{
public class DisciplineInvestigateRequest
{
public string investigationDetail { get; set; }
public string? investigationDetail { get; set; }
public string? investigationDetailOther { get; set; }
public DateTime investigationDateStart { get; set; }
public DateTime investigationDateEnd { get; set; }
public string investigationDescription { get; set; }
public string investigationStatusResult { get; set; }
public DateTime? investigationDateStart { get; set; }
public DateTime? investigationDateEnd { get; set; }
public string? investigationDescription { get; set; }
public string? investigationStatusResult { get; set; }
public string? investigationCauseText { get; set; }
public bool investigationExtendStatus { get; set; } = false;
public int? investigationDaysExtend { get; set; }

View file

@ -4,7 +4,7 @@ namespace BMA.EHR.Discipline.Service.Requests
{
public class DisciplineResultRequest
{
public string resultDescription { get; set; }// *สรุปผลการพิจารณา
public string? resultDescription { get; set; }// *สรุปผลการพิจารณา
public string? oc { get; set; }//
public string? disciplineType { get; set; }//
public string? titleType { get; set; }//

View file

@ -20,8 +20,8 @@ namespace BMA.EHR.Domain.Models.Discipline
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "text")]
public string? Description { get; set; } = string.Empty;
[Required, Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
public DateTime DateReceived { get; set; }
[Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
public DateTime? DateReceived { get; set; }
[Comment("ระดับการพิจารณา 'ยังไม่ระบุ' (NORMAL คือ ปกติ, URGENT คือ ด่วน, VERY_URGENT คือ ด่วนมาก)")]
public string? LevelConsideration { get; set; } = string.Empty;
@ -30,8 +30,8 @@ namespace BMA.EHR.Domain.Models.Discipline
[Comment("ลักษณะความผิดครั้งแรกจะเป็น 'ยังไม่ระบุ' (NOT_SPECIFIED คือ ยังไม่ระบุ, NOT_DEADLY คือ ไม่ร้ายแรง, DEADLY คือ ร้ายแรง)")]
public string? OffenseDetails { get; set; } = string.Empty;
[Required, Comment("วันแจ้งเตือนล่วงหน้า")]
public DateTime DateNotification { get; set; }
[Comment("วันแจ้งเตือนล่วงหน้า")]
public DateTime? DateNotification { get; set; }
[Comment("รับเรื่องร้องเรียนจาก ระบุว่ารับเรื่องมาจากใคร/หน่วยงานไหน (สตง., ปปช., ปปท., จดหมาย, อีเมล, โทรศัพท์, บอกกล่าว)")]
public string? ComplaintFrom { get; set; } = string.Empty;

View file

@ -20,8 +20,8 @@ namespace BMA.EHR.Domain.Models.Discipline
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "text")]
public string? Description { get; set; } = string.Empty;
[Required, Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
public DateTime DateReceived { get; set; }
[Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
public DateTime? DateReceived { get; set; }
[Comment("ระดับการพิจารณา 'ยังไม่ระบุ' (NORMAL คือ ปกติ, URGENT คือ ด่วน, VERY_URGENT คือ ด่วนมาก)")]
public string? LevelConsideration { get; set; } = string.Empty;
@ -30,8 +30,8 @@ namespace BMA.EHR.Domain.Models.Discipline
[Comment("ลักษณะความผิดครั้งแรกจะเป็น 'ยังไม่ระบุ' (NOT_SPECIFIED คือ ยังไม่ระบุ, NOT_DEADLY คือ ไม่ร้ายแรง, DEADLY คือ ร้ายแรง)")]
public string? OffenseDetails { get; set; } = string.Empty;
[Required, Comment("วันแจ้งเตือนล่วงหน้า")]
public DateTime DateNotification { get; set; }
[Comment("วันแจ้งเตือนล่วงหน้า")]
public DateTime? DateNotification { get; set; }
[Comment("รับเรื่องร้องเรียนจาก ระบุว่ารับเรื่องมาจากใคร/หน่วยงานไหน (สตง., ปปช., ปปท., จดหมาย, อีเมล, โทรศัพท์, บอกกล่าว)")]
public string? ComplaintFrom { get; set; } = string.Empty;

View file

@ -20,8 +20,8 @@ namespace BMA.EHR.Domain.Models.Discipline
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "text")]
public string? Description { get; set; } = string.Empty;
[Required, Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
public DateTime DateReceived { get; set; }
[Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
public DateTime? DateReceived { get; set; }
[Comment("ระดับการพิจารณา 'ยังไม่ระบุ' (NORMAL คือ ปกติ, URGENT คือ ด่วน, VERY_URGENT คือ ด่วนมาก)")]
public string? LevelConsideration { get; set; } = string.Empty;
@ -30,8 +30,8 @@ namespace BMA.EHR.Domain.Models.Discipline
[Comment("ลักษณะความผิดครั้งแรกจะเป็น 'ยังไม่ระบุ' (NOT_SPECIFIED คือ ยังไม่ระบุ, NOT_DEADLY คือ ไม่ร้ายแรง, DEADLY คือ ร้ายแรง)")]
public string? OffenseDetails { get; set; } = string.Empty;
[Required, Comment("วันแจ้งเตือนล่วงหน้า")]
public DateTime DateNotification { get; set; }
[Comment("วันแจ้งเตือนล่วงหน้า")]
public DateTime? DateNotification { get; set; }
[Comment("รับเรื่องร้องเรียนจาก ระบุว่ารับเรื่องมาจากใคร/หน่วยงานไหน (สตง., ปปช., ปปท., จดหมาย, อีเมล, โทรศัพท์, บอกกล่าว)")]
public string? ComplaintFrom { get; set; } = string.Empty;

View file

@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinary_DirectorInvestigatesdatestartnullable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View file

@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinary_DirectorInvestigatesdatestartnullable1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View file

@ -0,0 +1,151 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinary_DirectorInvestigatesdatestartnullable2 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "DateReceived",
table: "DisciplineInvestigates",
type: "datetime(6)",
nullable: true,
comment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldComment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
migrationBuilder.AlterColumn<DateTime>(
name: "DateNotification",
table: "DisciplineInvestigates",
type: "datetime(6)",
nullable: true,
comment: "วันแจ้งเตือนล่วงหน้า",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldComment: "วันแจ้งเตือนล่วงหน้า");
migrationBuilder.AlterColumn<DateTime>(
name: "DateReceived",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: true,
comment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldComment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
migrationBuilder.AlterColumn<DateTime>(
name: "DateNotification",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: true,
comment: "วันแจ้งเตือนล่วงหน้า",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldComment: "วันแจ้งเตือนล่วงหน้า");
migrationBuilder.AlterColumn<DateTime>(
name: "DateReceived",
table: "DisciplineComplaints",
type: "datetime(6)",
nullable: true,
comment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldComment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
migrationBuilder.AlterColumn<DateTime>(
name: "DateNotification",
table: "DisciplineComplaints",
type: "datetime(6)",
nullable: true,
comment: "วันแจ้งเตือนล่วงหน้า",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldComment: "วันแจ้งเตือนล่วงหน้า");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "DateReceived",
table: "DisciplineInvestigates",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
comment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true,
oldComment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
migrationBuilder.AlterColumn<DateTime>(
name: "DateNotification",
table: "DisciplineInvestigates",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
comment: "วันแจ้งเตือนล่วงหน้า",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true,
oldComment: "วันแจ้งเตือนล่วงหน้า");
migrationBuilder.AlterColumn<DateTime>(
name: "DateReceived",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
comment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true,
oldComment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
migrationBuilder.AlterColumn<DateTime>(
name: "DateNotification",
table: "DisciplineDisciplinarys",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
comment: "วันแจ้งเตือนล่วงหน้า",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true,
oldComment: "วันแจ้งเตือนล่วงหน้า");
migrationBuilder.AlterColumn<DateTime>(
name: "DateReceived",
table: "DisciplineComplaints",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
comment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true,
oldComment: "วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
migrationBuilder.AlterColumn<DateTime>(
name: "DateNotification",
table: "DisciplineComplaints",
type: "datetime(6)",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
comment: "วันแจ้งเตือนล่วงหน้า",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true,
oldComment: "วันแจ้งเตือนล่วงหน้า");
}
}
}

View file

@ -63,11 +63,11 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("datetime(6)")
.HasComment("วันที่กำหนดพิจารณา");
b.Property<DateTime>("DateNotification")
b.Property<DateTime?>("DateNotification")
.HasColumnType("datetime(6)")
.HasComment("วันแจ้งเตือนล่วงหน้า");
b.Property<DateTime>("DateReceived")
b.Property<DateTime?>("DateReceived")
.HasColumnType("datetime(6)")
.HasComment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
@ -704,11 +704,11 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("datetime(6)")
.HasComment("วันที่กำหนดพิจารณา");
b.Property<DateTime>("DateNotification")
b.Property<DateTime?>("DateNotification")
.HasColumnType("datetime(6)")
.HasComment("วันแจ้งเตือนล่วงหน้า");
b.Property<DateTime>("DateReceived")
b.Property<DateTime?>("DateReceived")
.HasColumnType("datetime(6)")
.HasComment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
@ -1793,11 +1793,11 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("datetime(6)")
.HasComment("วันที่กำหนดพิจารณา");
b.Property<DateTime>("DateNotification")
b.Property<DateTime?>("DateNotification")
.HasColumnType("datetime(6)")
.HasComment("วันแจ้งเตือนล่วงหน้า");
b.Property<DateTime>("DateReceived")
b.Property<DateTime?>("DateReceived")
.HasColumnType("datetime(6)")
.HasComment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");

View file

@ -121,6 +121,7 @@ var builder = WebApplication.CreateBuilder(args);
PrepareSchemaIfNecessary = true,
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
InvisibilityTimeout = TimeSpan.FromHours(3),
TablesPrefix = "Hangfire"
})));
builder.Services.AddHangfireServer();

View file

@ -119,6 +119,7 @@ var builder = WebApplication.CreateBuilder(args);
PrepareSchemaIfNecessary = true,
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
InvisibilityTimeout = TimeSpan.FromHours(3),
TablesPrefix = "Hangfire"
})));
builder.Services.AddHealthChecks();