diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs
index d79907a0..402fe56b 100644
--- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs
+++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs
@@ -1468,6 +1468,64 @@ namespace BMA.EHR.Placement.Service.Controllers
return Success();
}
+ ///
+ /// เอกสารแนบท้าย C-PM-01
+ ///
+ /// Record Id ของคำสั่ง
+ /// pdf, docx หรือ xlsx
+ ///
+ /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ
+ /// ไม่ได้ Login เข้าระบบ
+ /// เมื่อเกิดข้อผิดพลาดในการทำงาน
+ [HttpGet("recruit/report/attachment")]
+ [AllowAnonymous]
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ [ProducesResponseType(StatusCodes.Status401Unauthorized)]
+ [ProducesResponseType(StatusCodes.Status500InternalServerError)]
+ public async Task> PostReportRecruitAttachment([FromBody] ReportPersonRequest req)
+ {
+ try
+ {
+ var report_data = "null";
+ // var report_data = (from r in req.refIds
+ // join p in _dbContext.Set()
+ // .Include(x => x.PlacementEducations)
+ // .Include(x => x.Placement)
+ // on r equals p.Id
+ // orderby r.Sequence
+ // select new CommandType01Response
+ // {
+ // Education = p.PlacementEducations == null || p.PlacementEducations.Count == 0 ? "" :
+ // p.PlacementEducations.FirstOrDefault().Degree,
+ // Seq = r.Sequence.ToString().ToThaiNumber(),
+ // CitizenId = r.CitizenId == null ? "-" : r.CitizenId.ToThaiNumber(),
+ // FullName = $"{r.Prefix}{r.FirstName} {r.LastName}",
+ // Oc = p.root == null ? "" : p.root,
+ // PositionName = p.positionName == null ? "" : p.positionName,
+ // PositionLevel = p.posLevelName == null ? "" : p.posLevelName,
+ // PositionType = p.posTypeName == null ? "" : p.posTypeName,
+ // PositionNumber = p.posMasterNo == null ? "" :
+ // p.node == 4 ? $"{p.child4ShortName}{p.posMasterNo}".ToThaiNumber() :
+ // p.node == 3 ? $"{p.child3ShortName}{p.posMasterNo}".ToThaiNumber() :
+ // p.node == 2 ? $"{p.child2ShortName}{p.posMasterNo}".ToThaiNumber() :
+ // p.node == 1 ? $"{p.child1ShortName}{p.posMasterNo}".ToThaiNumber() :
+ // p.node == 0 ? $"{p.rootShortName}{p.posMasterNo}".ToThaiNumber() : "",
+ // Salary = p.Amount == null ? "0" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber().ToThaiNumber(),
+ // AppointDate = p.ReportingDate == null ? "" : p.ReportingDate.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()}",
+ // RemarkHorizontal = p.RemarkHorizontal,
+ // RemarkVertical = p.RemarkVertical,
+ // }).ToList();
+
+ return Success(report_data);
+ }
+ catch
+ {
+ throw;
+ }
+ }
+
///
/// ออกคำสั่ง C-PM-01
///