From 71a4edaa7d0a9bbd6f405a04c9ea7d8672aa4043 Mon Sep 17 00:00:00 2001 From: "Harid Promsri (Bright)" Date: Wed, 23 Aug 2023 16:43:28 +0700 Subject: [PATCH] no message --- .../Controllers/RetireReportController.cs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs index c97e98e0..8508289a 100644 --- a/BMA.EHR.Report.Service/Controllers/RetireReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/RetireReportController.cs @@ -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; } + /// + /// รายงานหน้าประกาศเกษียณ + /// + /// Id ของรอบเกษียณ + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน [HttpGet("{Id}")] public async Task> 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); } } - - } }