diff --git a/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs b/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs index e74c1907..b17ba9fc 100644 --- a/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Commands/CommandReportRepository.cs @@ -95,7 +95,9 @@ namespace BMA.EHR.Application.Repositories.Commands Salary = p.Amount == null ? "0" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber().ToThaiNumber(), AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(), ExamNumber = p.ExamNumber == null ? "0" : p.ExamNumber.Value.ToString().ToThaiNumber(), - PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}" + PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", + RemarkHorizontal = p.RemarkHorizontal, + RemarkVertical = p.RemarkVertical, }).ToList(); return report_data; @@ -147,7 +149,9 @@ namespace BMA.EHR.Application.Repositories.Commands Salary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(), ExamNumber = p.ExamNumber == null ? "" : p.ExamNumber.Value.ToString().ToThaiNumber(), - PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}" + PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}", + RemarkHorizontal = p.RemarkHorizontal, + RemarkVertical = p.RemarkVertical, }).ToList(); return report_data; @@ -208,7 +212,9 @@ namespace BMA.EHR.Application.Repositories.Commands NewPositionType = p.PositionType == null ? "" : p.PositionType.Name, NewPositionNumber = p.PositionNumber == null ? "" : p.PositionNumber.Name.ToThaiNumber(), NewSalary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(), - AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber() + AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(), + RemarkHorizontal = p.RemarkHorizontal, + RemarkVertical = p.RemarkVertical, }) .ToList(); diff --git a/BMA.EHR.Application/Responses/Reports/CommandType01Response.cs b/BMA.EHR.Application/Responses/Reports/CommandType01Response.cs index 08b56ca7..b50ff121 100644 --- a/BMA.EHR.Application/Responses/Reports/CommandType01Response.cs +++ b/BMA.EHR.Application/Responses/Reports/CommandType01Response.cs @@ -22,10 +22,12 @@ public string ExamNumber { get; set; } = "0"; - public string PlacementName { get; set;} = string.Empty; + public string PlacementName { get; set; } = string.Empty; public string Seq { get; set; } = string.Empty; public string Education { get; set; } = string.Empty; + public string? RemarkHorizontal { get; set; } = string.Empty; + public string? RemarkVertical { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Application/Responses/Reports/CommandType03Response.cs b/BMA.EHR.Application/Responses/Reports/CommandType03Response.cs index 91cd82ce..47c4e46a 100644 --- a/BMA.EHR.Application/Responses/Reports/CommandType03Response.cs +++ b/BMA.EHR.Application/Responses/Reports/CommandType03Response.cs @@ -41,5 +41,7 @@ namespace BMA.EHR.Application.Responses.Reports public string? LeaveDate { get; set; } = string.Empty; public string? MilitaryDate { get; set; } = string.Empty; public string? OldSalaryDate { get; set; } = string.Empty; + public string? RemarkHorizontal { get; set; } = string.Empty; + public string? RemarkVertical { get; set; } = string.Empty; } } diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index b1c02de4..666fdfd8 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -1257,13 +1257,14 @@ namespace BMA.EHR.Placement.Service.Controllers { var person = await _context.PlacementProfiles .Include(x => x.PlacementProfileDocs) + .ThenInclude(x => x.Document) .FirstOrDefaultAsync(x => x.Id == personalId); if (person == null) return Error(GlobalMessages.DataNotFound, 404); - var profileDoc = person.PlacementProfileDocs.FirstOrDefault(x => x.Id == docId); + var profileDoc = person.PlacementProfileDocs.FirstOrDefault(x => x.Document.Id == docId); if (profileDoc == null) - return Error(GlobalMessages.CertificateNotFound, 404); + return Error(GlobalMessages.FileNotFoundOnServer, 404); _context.PlacementProfileDocs.RemoveRange(profileDoc); var _docId = profileDoc.Document.Id; await _context.SaveChangesAsync(); diff --git a/BMA.EHR.Report.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp b/BMA.EHR.Report.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp index 749d1a4e..ae3e6ad7 100644 Binary files a/BMA.EHR.Report.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp and b/BMA.EHR.Report.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp b/BMA.EHR.Report.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp index 77584854..32330628 100644 Binary files a/BMA.EHR.Report.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp and b/BMA.EHR.Report.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp b/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp index d4de40f3..ee213bb0 100644 Binary files a/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp and b/BMA.EHR.Report.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp b/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp index 480cdd7d..44fa7156 100644 Binary files a/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp and b/BMA.EHR.Report.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp differ diff --git a/BMA.EHR.Report.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp b/BMA.EHR.Report.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp index 8cb0ad08..859c9315 100644 Binary files a/BMA.EHR.Report.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp and b/BMA.EHR.Report.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp differ