no message

This commit is contained in:
Harid Promsri (Bright) 2023-08-23 16:43:28 +07:00
parent ad30cb849b
commit 71a4edaa7d

View file

@ -10,11 +10,11 @@ using Telerik.Reporting.Processing;
namespace BMA.EHR.Report.Service.Controllers
{
[Route("api/v{version:apiVersion}/report/retire")]
[ApiVersion("1.0")]
[ApiVersion("2.0")]
[ApiController]
[Produces("application/json")]
[Authorize]
[SwaggerTag("รายงานระบบเกษียณ")]
[SwaggerTag("API รายงานระบบเกษียณ")]
public class RetireReportController : BaseController
{
private readonly RetireReportRepository _service;
@ -28,6 +28,14 @@ namespace BMA.EHR.Report.Service.Controllers
_configuration = configuration;
}
/// <summary>
/// รายงานหน้าประกาศเกษียณ
/// </summary>
/// <param name="Id">Id ของรอบเกษียณ</param>
/// <returns></returns>
/// <response code="200">เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("{Id}")]
public async Task<ActionResult<ResponseObject>> GetProfileRetirement([FromRoute] Guid Id)
{
@ -97,12 +105,10 @@ namespace BMA.EHR.Report.Service.Controllers
organizationOrganization = profile.GetType().GetProperty("organizationOrganization").GetValue(profile).ToString(),
});
}
//Binding to Table
var tblProfile = (Telerik.Reporting.Table)report.Items["detailSection1"].Items["table1"];
tblProfile.DataSource = _profileList;
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
InstanceReportSource instanceReportSource = new InstanceReportSource()
{
@ -115,7 +121,5 @@ namespace BMA.EHR.Report.Service.Controllers
return File(content, "application/pdf", returnfile);
}
}
}
}