no message
This commit is contained in:
parent
a3ed79227b
commit
874d310b35
1 changed files with 58 additions and 0 deletions
|
|
@ -1468,6 +1468,64 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
return Success();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// เอกสารแนบท้าย C-PM-01
|
||||
/// </summary>
|
||||
/// <param name="id">Record Id ของคำสั่ง</param>
|
||||
/// <param name="exportType">pdf, docx หรือ xlsx</param>
|
||||
/// <returns></returns>
|
||||
/// <response code="200">เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet("recruit/report/attachment")]
|
||||
[AllowAnonymous]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||
public async Task<ActionResult<ResponseObject>> PostReportRecruitAttachment([FromBody] ReportPersonRequest req)
|
||||
{
|
||||
try
|
||||
{
|
||||
var report_data = "null";
|
||||
// var report_data = (from r in req.refIds
|
||||
// join p in _dbContext.Set<PlacementProfile>()
|
||||
// .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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ออกคำสั่ง C-PM-01
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue