diff --git a/BMA.EHR.Application/BMA.EHR.Application.csproj b/BMA.EHR.Application/BMA.EHR.Application.csproj index 4748024b..09d5a4e1 100644 --- a/BMA.EHR.Application/BMA.EHR.Application.csproj +++ b/BMA.EHR.Application/BMA.EHR.Application.csproj @@ -1,7 +1,7 @@  - net7.0 + net6.0 enable enable diff --git a/BMA.EHR.ReportGenerator/runtimeconfig.template.json b/BMA.EHR.Application/runtimeconfig.template.json similarity index 100% rename from BMA.EHR.ReportGenerator/runtimeconfig.template.json rename to BMA.EHR.Application/runtimeconfig.template.json diff --git a/BMA.EHR.Domain/BMA.EHR.Domain.csproj b/BMA.EHR.Domain/BMA.EHR.Domain.csproj index 8332171c..2d92b31d 100644 --- a/BMA.EHR.Domain/BMA.EHR.Domain.csproj +++ b/BMA.EHR.Domain/BMA.EHR.Domain.csproj @@ -1,7 +1,7 @@  - net7.0 + net6.0 enable enable diff --git a/BMA.EHR.Domain/Models/Placement/Placement.cs b/BMA.EHR.Domain/Models/Placement/Placement.cs index 33090b9b..0cad8cdf 100644 --- a/BMA.EHR.Domain/Models/Placement/Placement.cs +++ b/BMA.EHR.Domain/Models/Placement/Placement.cs @@ -15,7 +15,8 @@ namespace BMA.EHR.Domain.Models.Placement [Required, Comment("จำนวนผู้สอบได้"), MaxLength(10)] public int Number { get; set; } = 0; [Required, Comment("ประเภทการสอบ")] - public required PlacementType PlacementType { get; set; } + public PlacementType PlacementType { get; set; } + [Required, Comment("วันที่เริ่มบัญชีบัญชี")] public DateTime StartDate { get; set; } [Required, Comment("วันที่สิ้นสุดบัญชี")] diff --git a/BMA.EHR.Domain/runtimeconfig.template.json b/BMA.EHR.Domain/runtimeconfig.template.json new file mode 100644 index 00000000..e3ad204d --- /dev/null +++ b/BMA.EHR.Domain/runtimeconfig.template.json @@ -0,0 +1,5 @@ +{ + "configProperties": { + "System.Drawing.EnableUnixSupport": true + } +} \ No newline at end of file diff --git a/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj b/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj index 548ca640..5a47e960 100644 --- a/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj +++ b/BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj @@ -1,7 +1,7 @@  - net7.0 + net6.0 enable enable diff --git a/BMA.EHR.Infrastructure/runtimeconfig.template.json b/BMA.EHR.Infrastructure/runtimeconfig.template.json new file mode 100644 index 00000000..e3ad204d --- /dev/null +++ b/BMA.EHR.Infrastructure/runtimeconfig.template.json @@ -0,0 +1,5 @@ +{ + "configProperties": { + "System.Drawing.EnableUnixSupport": true + } +} \ No newline at end of file diff --git a/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj b/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj index 9059bb4c..65c50746 100644 --- a/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj +++ b/BMA.EHR.Report.Service/BMA.EHR.Report.Service.csproj @@ -1,7 +1,7 @@  - net7.0 + net6.0 enable enable 1fb39f37-45f3-4d47-9c86-c0458563770e @@ -12,32 +12,46 @@ - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - + - + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + + + + + + Never + diff --git a/BMA.EHR.Report.Service/ConfigureSwaggerOptions.cs b/BMA.EHR.Report.Service/ConfigureSwaggerOptions.cs index c9e25402..18f4a719 100644 --- a/BMA.EHR.Report.Service/ConfigureSwaggerOptions.cs +++ b/BMA.EHR.Report.Service/ConfigureSwaggerOptions.cs @@ -69,7 +69,7 @@ namespace BMA.EHR.Report.Service { var info = new OpenApiInfo() { - Title = "BMA EHR Report Service Document", + Title = "BMA EHR Report(V2) Service Document", Version = desc.ApiVersion.ToString() }; diff --git a/BMA.EHR.Report.Service/Controllers/CommandReportController.cs b/BMA.EHR.Report.Service/Controllers/CommandReportController.cs index dcc0b28a..a9cde9c6 100644 --- a/BMA.EHR.Report.Service/Controllers/CommandReportController.cs +++ b/BMA.EHR.Report.Service/Controllers/CommandReportController.cs @@ -24,6 +24,7 @@ namespace BMA.EHR.Report.Service.Controllers private readonly IWebHostEnvironment _hostingEnvironment; private readonly IConfiguration _configuration; private readonly CommandReportRepository _commandReportRepository; + private readonly GenericReportGenerator _reportGenerator; #endregion @@ -32,12 +33,14 @@ namespace BMA.EHR.Report.Service.Controllers public CommandReportController(CommandRepository repository, IWebHostEnvironment hostingEnvironment, IConfiguration configuration, - CommandReportRepository commandReportRepository) + CommandReportRepository commandReportRepository, + GenericReportGenerator reportGenerator) { _repository = repository; _hostingEnvironment = hostingEnvironment; _configuration = configuration; _commandReportRepository = commandReportRepository; + _reportGenerator = reportGenerator; } #endregion @@ -46,6 +49,8 @@ namespace BMA.EHR.Report.Service.Controllers #region " Private " + #region " C-PM-01 " + private async Task GenerateCommandReportType01_Cover(Guid commandId, string exportType) { try @@ -82,6 +87,8 @@ namespace BMA.EHR.Report.Service.Controllers report.DataSource = command; System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable(); + if(exportType == "docx") + deviceInfo["OutputFormat"] = "DOCX"; InstanceReportSource instanceReportSource = new InstanceReportSource() { @@ -90,7 +97,7 @@ namespace BMA.EHR.Report.Service.Controllers ReportProcessor reportProcessor = new ReportProcessor(_configuration); - RenderingResult result = reportProcessor.RenderReport(exportType, instanceReportSource, deviceInfo); + RenderingResult result = reportProcessor.RenderReport(exportType.ToUpper(), instanceReportSource, deviceInfo); var content = result.DocumentBytes; @@ -155,8 +162,12 @@ namespace BMA.EHR.Report.Service.Controllers #endregion + #endregion + + #region " C-PM-01 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้ " + /// - /// รายงานหน้าคำสั่ง + /// คำสั่ง C-PM-01 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้ /// /// Record Id ของคำสั่ง /// pdf, docx หรือ xlsx @@ -164,19 +175,15 @@ namespace BMA.EHR.Report.Service.Controllers /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ /// ไม่ได้ Login เข้าระบบ /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("cover/{exportType}/{id}")] + [HttpGet("c-pm-01/cover/{exportType}/{id}")] [AllowAnonymous] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetCommandCoverReportAsync(Guid id, string exportType = "pdf") + public async Task> GetCommandType01CoverReportAsync(Guid id, string exportType = "pdf") { try { - var cmd = await _repository.GetByIdAsync(id); - if (cmd == null) - throw new Exception(GlobalMessages.CommandNotFound); - var mimeType = ""; switch (exportType.Trim().ToLower()) { @@ -185,17 +192,16 @@ namespace BMA.EHR.Report.Service.Controllers case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; } - switch (cmd.CommandType.CommandCode.Trim().ToUpper()) - { - case "C-PM-01": - case "C-PM-02": - case "C-PM-03": - { - var contentData = await GenerateCommandReportType01_Cover(id, exportType); - return File(contentData, mimeType, $"command-{cmd.CommandNo}-{cmd.CommandYear.ToInteger().ToThaiYear()}.{exportType.Trim().ToLower()}"); - } - default: throw new Exception(GlobalMessages.MethodForCommandTypeNotImplement); - } + var cmd = await _repository.GetByIdAsync(id); + if (cmd == null) + throw new Exception(GlobalMessages.CommandNotFound); + + var contentData = await GenerateCommandReportType01_Cover(id, exportType); + return File(contentData, mimeType, $"command-{cmd.CommandNo}-{cmd.CommandYear.ToInteger().ToThaiYear()}.{exportType.Trim().ToLower()}"); + + //var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-1.trdp"); + //var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + //return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); } catch { @@ -204,7 +210,7 @@ namespace BMA.EHR.Report.Service.Controllers } /// - /// รายงานเอกสารแนบท้าย + /// เอกสารแนบท้าย C-PM-01 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้ /// /// Record Id ของคำสั่ง /// pdf, docx หรือ xlsx @@ -212,12 +218,12 @@ namespace BMA.EHR.Report.Service.Controllers /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ /// ไม่ได้ Login เข้าระบบ /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("attachment/{exportType}/{id}")] + [HttpGet("c-pm-01/attachment/{exportType}/{id}")] [AllowAnonymous] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetCommandAttachmentReportAsync(Guid id, string exportType = "pdf") + public async Task> GetCommandType01AttachmentReportAsync(Guid id, string exportType = "pdf") { try { @@ -233,17 +239,8 @@ namespace BMA.EHR.Report.Service.Controllers case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; } - switch (cmd.CommandType.CommandCode.Trim().ToUpper()) - { - case "C-PM-01": - case "C-PM-02": - case "C-PM-03": - { - var contentData = await GenerateCommandReportType01_Attachment(id, exportType); - return File(contentData, mimeType, $"command-attachment-{cmd.CommandNo}-{cmd.CommandYear.ToInteger().ToThaiYear()}.{exportType.Trim().ToLower()}"); - } - default: throw new Exception(GlobalMessages.MethodForCommandTypeNotImplement); - } + var contentData = await GenerateCommandReportType01_Attachment(id, exportType); + return File(contentData, mimeType, $"command-attachment-{cmd.CommandNo}-{cmd.CommandYear.ToInteger().ToThaiYear()}.{exportType.Trim().ToLower()}"); } catch { @@ -252,5 +249,1236 @@ namespace BMA.EHR.Report.Service.Controllers } #endregion + + #region " C-PM-02 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้ได้รับคัดเลือก " + + /// + /// คำสั่ง C-PM-02 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้ได้รับคัดเลือก + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-02/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType02CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-3.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-02 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้ได้รับคัดเลือก + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-02/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType02AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-03 คำสั่งแต่งตั้ง : สำหรับข้าราชการ กทม. เดิม " + + /// + /// คำสั่ง C-PM-03 คำสั่งแต่งตั้ง : สำหรับข้าราชการ กทม. เดิม + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-03/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType03CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-03 คำสั่งแต่งตั้ง : สำหรับข้าราชการ กทม. เดิม + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-03/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType03AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-04 คำสั่งย้าย : สำหรับข้าราชการ กทม. เดิม " + + /// + /// คำสั่ง C-PM-04 คำสั่งย้าย : สำหรับข้าราชการ กทม. เดิม + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-04/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType04CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-04 คำสั่งย้าย : สำหรับข้าราชการ กทม. เดิม + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-04/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType04AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"04-คำสั่งย้ายผู้สอบแข่งขัน.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-05 คำสั่งแต่งตั้ง " + + /// + /// คำสั่ง C-PM-05 คำสั่งแต่งตั้ง + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-05/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType05CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-05 คำสั่งแต่งตั้ง + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-05/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType05AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-แนบท้ายคำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-06 คำสั่งเลื่อน " + + /// + /// คำสั่ง C-PM-06 คำสั่งเลื่อน + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-06/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType06CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-06 คำสั่งเลื่อน + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-06/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType06AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-แนบท้ายคำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-07 คำสั่งย้าย " + + /// + /// คำสั่ง C-PM-07 คำสั่งย้าย + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-07/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType07CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"07-คำสั่งย้าย.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-07 คำสั่งย้าย + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-07/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType07AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"07-แนบท้ายคำสั่งย้าย.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-08 คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ " + + /// + /// คำสั่ง C-PM-08 คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-08/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType08CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-5.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-08 คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-08/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType08AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-6.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-09 คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ " + + /// + /// คำสั่ง C-PM-09 คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-09/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType09CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-09 คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-09/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType09AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-8.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-10 คำสั่งแต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ " + + /// + /// คำสั่ง C-PM-10 คำสั่งแต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-10/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType10CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"10-แต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-11 คำสั่งให้ข้าราชการที่มีผลการทดลองปฏิบัติหน้าที่ราชการไม่ต่ำกว่ามาตรฐานที่กำหนดรับราชการต่อไป " + + /// + /// คำสั่ง C-PM-11 คำสั่งให้ข้าราชการที่มีผลการทดลองปฏิบัติหน้าที่ราชการไม่ต่ำกว่ามาตรฐานที่กำหนดรับราชการต่อไป + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-11/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType11CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-12 คำสั่งให้ข้าราชการออกจากราชการเพราะผลการทดลองปฏิบัติหน้าที่ราชการต่ำกว่ามาตรฐานที่กำหนด " + + /// + /// คำสั่ง C-PM-12 คำสั่งให้ข้าราชการออกจากราชการเพราะผลการทดลองปฏิบัติหน้าที่ราชการต่ำกว่ามาตรฐานที่กำหนด + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-12/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType12CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-13 คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ " + + /// + /// คำสั่ง C-PM-13 คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-13/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType13CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-1.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-13 คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-13/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType13AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-2.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-14 คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ " + + /// + /// คำสั่ง C-PM-14 คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-14/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType14CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-5.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-14 คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-14/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType14AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ5-10.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-15 คำสั่งให้ช่วยราชการ " + + /// + /// คำสั่ง C-PM-15 คำสั่งให้ช่วยราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-15/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType15CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"29-คำสั่งให้ช่วยราชการ-1.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-15 คำสั่งให้ช่วยราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-15/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType15AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"29-คำสั่งให้ช่วยราชการ-2.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-16 คำสั่งส่งตัวกลับ " + + /// + /// คำสั่ง C-PM-16 คำสั่งส่งตัวกลับ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-16/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType16CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"30-คำสั่งส่งตัวกลับไปปฏิบัติงานทางต้นสังกัดเดิม.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-17 คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ " + + /// + /// คำสั่ง C-PM-17 คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-17/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType17CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + /// + /// เอกสารแนบท้าย C-PM-17 คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-17/attachment/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType17AttachmentReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp"); + var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-18 คำสั่งให้ออกจากราชการ " + + /// + /// คำสั่ง C-PM-18 คำสั่งให้ออกจากราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-18/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType18CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + return StatusCode(500, new { message = "ยังไม่มีไฟล์ Template สำหรับสร้างรายงาน!!" }); + + //var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); + //var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + //return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-19 คำสั่งปลดออกจากราชการ " + + /// + /// คำสั่ง C-PM-19 คำสั่งปลดออกจากราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-19/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType19CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + return StatusCode(500, new { message = "ยังไม่มีไฟล์ Template สำหรับสร้างรายงาน!!" }); + + //var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); + //var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + //return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #region " C-PM-20 คำสั่งไล่ออกจากราชการ " + + /// + /// คำสั่ง C-PM-20 คำสั่งไล่ออกจากราชการ + /// + /// Record Id ของคำสั่ง + /// pdf, docx หรือ xlsx + /// + /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ + /// ไม่ได้ Login เข้าระบบ + /// เมื่อเกิดข้อผิดพลาดในการทำงาน + [HttpGet("c-pm-20/cover/{exportType}/{id}")] + [AllowAnonymous] + [ProducesResponseType(StatusCodes.Status200OK)] + [ProducesResponseType(StatusCodes.Status401Unauthorized)] + [ProducesResponseType(StatusCodes.Status500InternalServerError)] + public IActionResult GetCommandType20CoverReport(Guid id, string exportType = "pdf") + { + try + { + var mimeType = ""; + switch (exportType.Trim().ToLower()) + { + case "pdf": mimeType = "application/pdf"; break; + case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; + case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; + } + + return StatusCode(500, new { message = "ยังไม่มีไฟล์ Template สำหรับสร้างรายงาน!!" }); + + //var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); + //var contentData = _reportGenerator.GenerateReport(rptFile, exportType); + + //return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); + } + catch + { + throw; + } + } + + #endregion + + #endregion } } diff --git a/BMA.EHR.Report.Service/Dockerfile b/BMA.EHR.Report.Service/Dockerfile index 9d7a8c72..dce4bfcc 100644 --- a/BMA.EHR.Report.Service/Dockerfile +++ b/BMA.EHR.Report.Service/Dockerfile @@ -1,9 +1,9 @@ -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src COPY ["BMA.EHR.Domain/BMA.EHR.Domain.csproj", "BMA.EHR.Domain/"] diff --git a/BMA.EHR.ReportGenerator/GenericReportGenerator.cs b/BMA.EHR.Report.Service/GenericReportGenerator.cs similarity index 98% rename from BMA.EHR.ReportGenerator/GenericReportGenerator.cs rename to BMA.EHR.Report.Service/GenericReportGenerator.cs index a213e08f..5e7c7bea 100644 --- a/BMA.EHR.ReportGenerator/GenericReportGenerator.cs +++ b/BMA.EHR.Report.Service/GenericReportGenerator.cs @@ -2,7 +2,7 @@ using Telerik.Reporting; using Telerik.Reporting.Processing; -namespace BMA.EHR.ReportGenerator +namespace BMA.EHR.Report.Service { public class GenericReportGenerator { diff --git a/BMA.EHR.Report.Service/Program.cs b/BMA.EHR.Report.Service/Program.cs index 9a83ce24..92f93f72 100644 --- a/BMA.EHR.Report.Service/Program.cs +++ b/BMA.EHR.Report.Service/Program.cs @@ -24,6 +24,8 @@ var builder = WebApplication.CreateBuilder(args); IdentityModelEventSource.ShowPII = true; + builder.Services.AddTransient(); + builder.Services.AddHttpContextAccessor(); builder.Services.AddApiVersioning(opt => diff --git a/BMA.EHR.Report.Service/Reports/31-ประกาศเกษียณข้าราชการ.trdp b/BMA.EHR.Report.Service/Reports/31-ประกาศเกษียณข้าราชการ.trdp deleted file mode 100644 index 8bce7808..00000000 Binary files a/BMA.EHR.Report.Service/Reports/31-ประกาศเกษียณข้าราชการ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-2.trdp b/BMA.EHR.Report.Service/Reports/37-คำสั่งปลดออกจากราชการ.trdp similarity index 91% rename from BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-2.trdp rename to BMA.EHR.Report.Service/Reports/37-คำสั่งปลดออกจากราชการ.trdp index e9313772..3db30a05 100644 Binary files a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-2.trdp and b/BMA.EHR.Report.Service/Reports/37-คำสั่งปลดออกจากราชการ.trdp differ diff --git a/BMA.EHR.ReportV2.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-1.trdp b/BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ข้าราชการออกจากราชการ.trdp similarity index 91% rename from BMA.EHR.ReportV2.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-1.trdp rename to BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ข้าราชการออกจากราชการ.trdp index 5ca6ca92..26b84b16 100644 Binary files a/BMA.EHR.ReportV2.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-1.trdp and b/BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ข้าราชการออกจากราชการ.trdp differ diff --git a/BMA.EHR.ReportV2.Service/Reports/08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-5.trdp b/BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ลูกจ้างออกจากราชการ-1.trdp similarity index 92% rename from BMA.EHR.ReportV2.Service/Reports/08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-5.trdp rename to BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ลูกจ้างออกจากราชการ-1.trdp index 85021603..179f6807 100644 Binary files a/BMA.EHR.ReportV2.Service/Reports/08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-5.trdp and b/BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ลูกจ้างออกจากราชการ-1.trdp differ diff --git a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-1.trdp b/BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ลูกจ้างออกจากราชการ-2.trdp similarity index 91% rename from BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-1.trdp rename to BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ลูกจ้างออกจากราชการ-2.trdp index 8ad5f6a6..cd950499 100644 Binary files a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-1.trdp and b/BMA.EHR.Report.Service/Reports/38-คำสั่งลงโทษไล่ลูกจ้างออกจากราชการ-2.trdp differ diff --git a/BMA.EHR.Report.Service/runtimeconfig.template.json b/BMA.EHR.Report.Service/runtimeconfig.template.json new file mode 100644 index 00000000..e3ad204d --- /dev/null +++ b/BMA.EHR.Report.Service/runtimeconfig.template.json @@ -0,0 +1,5 @@ +{ + "configProperties": { + "System.Drawing.EnableUnixSupport": true + } +} \ No newline at end of file diff --git a/BMA.EHR.ReportGenerator/BMA.EHR.ReportGenerator.csproj b/BMA.EHR.ReportGenerator/BMA.EHR.ReportGenerator.csproj deleted file mode 100644 index 0611aa8a..00000000 --- a/BMA.EHR.ReportGenerator/BMA.EHR.ReportGenerator.csproj +++ /dev/null @@ -1,30 +0,0 @@ - - - - net6.0 - enable - enable - - - - - - - - - - - - - - - - - - PreserveNewest - true - PreserveNewest - - - - diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Blazor.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Blazor.17.0.23.315.nupkg deleted file mode 100644 index 06af74a5..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Blazor.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Blazor.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Blazor.17.1.23.718.nupkg deleted file mode 100644 index 07c68369..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Blazor.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.BlazorNative.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.BlazorNative.17.0.23.315.nupkg deleted file mode 100644 index b1e81f4f..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.BlazorNative.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.BlazorNative.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.BlazorNative.17.1.23.718.nupkg deleted file mode 100644 index a6b859f2..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.BlazorNative.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Html5.WebForms.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Html5.WebForms.17.0.23.315.nupkg deleted file mode 100644 index 8fee2691..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Html5.WebForms.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Html5.WebForms.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Html5.WebForms.17.1.23.718.nupkg deleted file mode 100644 index 64f6f23b..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Html5.WebForms.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Mvc.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Mvc.17.0.23.315.nupkg deleted file mode 100644 index e247f007..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Mvc.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Mvc.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Mvc.17.1.23.718.nupkg deleted file mode 100644 index a9f70c48..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Mvc.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinForms.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinForms.17.0.23.315.nupkg deleted file mode 100644 index 2d6ff585..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinForms.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinForms.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinForms.17.1.23.718.nupkg deleted file mode 100644 index 565c7472..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinForms.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinUI.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinUI.17.0.23.315.nupkg deleted file mode 100644 index 07bf588b..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinUI.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinUI.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinUI.17.1.23.718.nupkg deleted file mode 100644 index 5c3d0397..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.WinUI.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.17.0.23.315.nupkg deleted file mode 100644 index 3c2c2494..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.17.1.23.718.nupkg deleted file mode 100644 index aa66c79e..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.Themes.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.Themes.17.0.23.315.nupkg deleted file mode 100644 index 3aa503ee..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.Themes.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.Themes.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.Themes.17.1.23.718.nupkg deleted file mode 100644 index 27c4b518..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.ReportViewer.Wpf.Themes.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.17.0.23.315.nupkg deleted file mode 100644 index 1eb635fb..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.17.1.23.718.nupkg deleted file mode 100644 index 43db23e6..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Adomd.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Adomd.17.0.23.315.nupkg deleted file mode 100644 index c7cb14f7..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Adomd.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Adomd.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Adomd.17.1.23.718.nupkg deleted file mode 100644 index 41717624..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Adomd.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.Database.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.Database.17.0.23.315.nupkg deleted file mode 100644 index 8954912c..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.Database.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.Database.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.Database.17.1.23.718.nupkg deleted file mode 100644 index 68230bb4..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.Database.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.17.0.23.315.nupkg deleted file mode 100644 index 0950b16c..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.17.1.23.718.nupkg deleted file mode 100644 index 57a746f6..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.2.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.2.17.0.23.315.nupkg deleted file mode 100644 index 2e8f359a..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.2.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.2.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.2.17.1.23.718.nupkg deleted file mode 100644 index 6a7cea3d..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Cache.StackExchangeRedis.2.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.JsonSerialization.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.JsonSerialization.17.0.23.315.nupkg deleted file mode 100644 index 4d89f01f..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.JsonSerialization.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.JsonSerialization.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.JsonSerialization.17.1.23.718.nupkg deleted file mode 100644 index e05b5c52..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.JsonSerialization.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.OpenXmlRendering.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.OpenXmlRendering.17.0.23.315.nupkg deleted file mode 100644 index d182f08a..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.OpenXmlRendering.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.OpenXmlRendering.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.OpenXmlRendering.17.1.23.718.nupkg deleted file mode 100644 index 105ad728..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.OpenXmlRendering.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.AspNetCore.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.AspNetCore.17.0.23.315.nupkg deleted file mode 100644 index 7cd9b22a..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.AspNetCore.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.AspNetCore.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.AspNetCore.17.1.23.718.nupkg deleted file mode 100644 index fd57af17..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.AspNetCore.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.HttpClient.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.HttpClient.17.0.23.315.nupkg deleted file mode 100644 index c019ae02..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.HttpClient.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.HttpClient.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.HttpClient.17.1.23.718.nupkg deleted file mode 100644 index bae97d09..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.HttpClient.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.ServiceStack.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.ServiceStack.17.0.23.315.nupkg deleted file mode 100644 index 499576eb..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.ServiceStack.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.ServiceStack.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.ServiceStack.17.1.23.718.nupkg deleted file mode 100644 index eb421ce5..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.ServiceStack.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.WebApi.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.WebApi.17.0.23.315.nupkg deleted file mode 100644 index 72e4e344..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.WebApi.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.WebApi.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.WebApi.17.1.23.718.nupkg deleted file mode 100644 index b4cd0106..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.Services.WebApi.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.WebServiceDataSource.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.WebServiceDataSource.17.0.23.315.nupkg deleted file mode 100644 index 34abde7c..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.WebServiceDataSource.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.WebServiceDataSource.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.WebServiceDataSource.17.1.23.718.nupkg deleted file mode 100644 index adb06391..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.Reporting.WebServiceDataSource.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Blazor.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Blazor.17.0.23.315.nupkg deleted file mode 100644 index fb8e96c1..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Blazor.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Blazor.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Blazor.17.1.23.718.nupkg deleted file mode 100644 index 45000459..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Blazor.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Services.17.0.23.315.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Services.17.0.23.315.nupkg deleted file mode 100644 index 349e332d..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Services.17.0.23.315.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Services.17.1.23.718.nupkg b/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Services.17.1.23.718.nupkg deleted file mode 100644 index f065519e..00000000 Binary files a/BMA.EHR.ReportGenerator/Components/Telerik.WebReportDesigner.Services.17.1.23.718.nupkg and /dev/null differ diff --git a/BMA.EHR.ReportGenerator/ReportGeneratorServicesRegistration.cs b/BMA.EHR.ReportGenerator/ReportGeneratorServicesRegistration.cs deleted file mode 100644 index a7826332..00000000 --- a/BMA.EHR.ReportGenerator/ReportGeneratorServicesRegistration.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; - -namespace BMA.EHR.ReportGenerator -{ - public static class ReportGeneratorServicesRegistration - { - public static IServiceCollection AddReportGenerator(this IServiceCollection services) - { - services.AddTransient(); - - return services; - } - } -} diff --git a/BMA.EHR.ReportGenerator/nuget.config b/BMA.EHR.ReportGenerator/nuget.config deleted file mode 100644 index 7d34cfc1..00000000 --- a/BMA.EHR.ReportGenerator/nuget.config +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/BMA.EHR.ReportV2.Service/BMA.EHR.ReportV2.Service.csproj b/BMA.EHR.ReportV2.Service/BMA.EHR.ReportV2.Service.csproj deleted file mode 100644 index 04edcfed..00000000 --- a/BMA.EHR.ReportV2.Service/BMA.EHR.ReportV2.Service.csproj +++ /dev/null @@ -1,367 +0,0 @@ - - - - net7.0 - enable - enable - 7a4e5b6f-8770-4563-bef2-517999d37b32 - Linux - True - . - BMA.EHR.ReportV2.Service - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - diff --git a/BMA.EHR.ReportV2.Service/ConfigureSwaggerOptions.cs b/BMA.EHR.ReportV2.Service/ConfigureSwaggerOptions.cs deleted file mode 100644 index e7c6dd0c..00000000 --- a/BMA.EHR.ReportV2.Service/ConfigureSwaggerOptions.cs +++ /dev/null @@ -1,84 +0,0 @@ -using Microsoft.AspNetCore.Mvc.ApiExplorer; -using Microsoft.Extensions.Options; -using Microsoft.OpenApi.Models; -using Swashbuckle.AspNetCore.SwaggerGen; -using System.Reflection; - -namespace BMA.EHR.ReportV2.Service -{ - public class ConfigureSwaggerOptions : IConfigureNamedOptions - { - private readonly IApiVersionDescriptionProvider _provider; - - public ConfigureSwaggerOptions( - IApiVersionDescriptionProvider provider) - { - _provider = provider; - } - - public void Configure(SwaggerGenOptions options) - { - // add swagger document for every API version discovered - foreach (var description in _provider.ApiVersionDescriptions) - { - options.EnableAnnotations(); - - options.SwaggerDoc( - description.GroupName, - CreateVersionInfo(description)); - } - - options.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme - { - In = ParameterLocation.Header, - Description = "Please enter a valid token", - Name = "Authorization", - Type = SecuritySchemeType.Http, - BearerFormat = "JWT", - Scheme = "Bearer" - }); - - options.AddSecurityRequirement(new OpenApiSecurityRequirement - { - { - new OpenApiSecurityScheme - { - Reference = new OpenApiReference - { - Type = ReferenceType.SecurityScheme, - Id = "Bearer" - } - }, - new string[]{} - } - }); - - // generate the XML docs that'll drive the swagger docs - var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"; - var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); - options.IncludeXmlComments(xmlPath); - } - - public void Configure(string name, SwaggerGenOptions options) - { - Configure(options); - } - - private OpenApiInfo CreateVersionInfo( - ApiVersionDescription desc) - { - var info = new OpenApiInfo() - { - Title = "BMA EHR Report(V2) Service Document", - Version = desc.ApiVersion.ToString() - }; - - if (desc.IsDeprecated) - { - info.Description += " This API version has been deprecated. Please use one of the new APIs available from the explorer."; - } - - return info; - } - } -} diff --git a/BMA.EHR.ReportV2.Service/Controllers/CommandReportController.cs b/BMA.EHR.ReportV2.Service/Controllers/CommandReportController.cs deleted file mode 100644 index cde1d520..00000000 --- a/BMA.EHR.ReportV2.Service/Controllers/CommandReportController.cs +++ /dev/null @@ -1,1345 +0,0 @@ -using BMA.EHR.ReportGenerator; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.ReportV2.Service.Controllers -{ - [Route("api/v{version:apiVersion}/report/order")] - [ApiVersion("2.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("API รายงานระบบออกคำสั่ง")] - public class CommandReportController : ControllerBase - { - #region " Fields " - - private readonly GenericReportGenerator _reportGenerator; - private readonly IWebHostEnvironment _hostingEnvironment; - - #endregion - - #region " Constructor and Destructor " - - public CommandReportController(GenericReportGenerator reportGenerator, - IWebHostEnvironment hostEnvironment) - { - _reportGenerator = reportGenerator; - _hostingEnvironment = hostEnvironment; - } - - #endregion - - #region " Methods " - - #region " C-PM-01 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้ " - - /// - /// คำสั่ง C-PM-01 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-01/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType01CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-1.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-01 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-01/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType01AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-02 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้ได้รับคัดเลือก " - - /// - /// คำสั่ง C-PM-02 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้ได้รับคัดเลือก - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-02/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType02CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-3.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-02 คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้ได้รับคัดเลือก - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-02/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType02AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-03 คำสั่งแต่งตั้ง : สำหรับข้าราชการ กทม. เดิม " - - /// - /// คำสั่ง C-PM-03 คำสั่งแต่งตั้ง : สำหรับข้าราชการ กทม. เดิม - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-03/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType03CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-03 คำสั่งแต่งตั้ง : สำหรับข้าราชการ กทม. เดิม - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-03/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType03AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-04 คำสั่งย้าย : สำหรับข้าราชการ กทม. เดิม " - - /// - /// คำสั่ง C-PM-04 คำสั่งย้าย : สำหรับข้าราชการ กทม. เดิม - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-04/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType04CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-04 คำสั่งย้าย : สำหรับข้าราชการ กทม. เดิม - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-04/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType04AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"04-คำสั่งย้ายผู้สอบแข่งขัน.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-05 คำสั่งแต่งตั้ง " - - /// - /// คำสั่ง C-PM-05 คำสั่งแต่งตั้ง - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-05/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType05CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-05 คำสั่งแต่งตั้ง - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-05/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType05AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-แนบท้ายคำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-06 คำสั่งเลื่อน " - - /// - /// คำสั่ง C-PM-06 คำสั่งเลื่อน - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-06/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType06CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-06 คำสั่งเลื่อน - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-06/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType06AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"05-06-แนบท้ายคำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-07 คำสั่งย้าย " - - /// - /// คำสั่ง C-PM-07 คำสั่งย้าย - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-07/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType07CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"07-คำสั่งย้าย.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-07 คำสั่งย้าย - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-07/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType07AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"07-แนบท้ายคำสั่งย้าย.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-08 คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ " - - /// - /// คำสั่ง C-PM-08 คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-08/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType08CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-5.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-08 คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-08/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType08AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-6.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-09 คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ " - - /// - /// คำสั่ง C-PM-09 คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-09/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType09CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-09 คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-09/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType09AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-8.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-10 คำสั่งแต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ " - - /// - /// คำสั่ง C-PM-10 คำสั่งแต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-10/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType10CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"10-แต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-11 คำสั่งให้ข้าราชการที่มีผลการทดลองปฏิบัติหน้าที่ราชการไม่ต่ำกว่ามาตรฐานที่กำหนดรับราชการต่อไป " - - /// - /// คำสั่ง C-PM-11 คำสั่งให้ข้าราชการที่มีผลการทดลองปฏิบัติหน้าที่ราชการไม่ต่ำกว่ามาตรฐานที่กำหนดรับราชการต่อไป - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-11/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType11CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-12 คำสั่งให้ข้าราชการออกจากราชการเพราะผลการทดลองปฏิบัติหน้าที่ราชการต่ำกว่ามาตรฐานที่กำหนด " - - /// - /// คำสั่ง C-PM-12 คำสั่งให้ข้าราชการออกจากราชการเพราะผลการทดลองปฏิบัติหน้าที่ราชการต่ำกว่ามาตรฐานที่กำหนด - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-12/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType12CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-13 คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ " - - /// - /// คำสั่ง C-PM-13 คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-13/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType13CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-1.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-13 คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-13/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType13AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-2.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-14 คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ " - - /// - /// คำสั่ง C-PM-14 คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-14/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType14CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-5.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-14 คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-14/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType14AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ5-10.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-15 คำสั่งให้ช่วยราชการ " - - /// - /// คำสั่ง C-PM-15 คำสั่งให้ช่วยราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-15/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType15CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"29-คำสั่งให้ช่วยราชการ-1.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-15 คำสั่งให้ช่วยราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-15/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType15AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"29-คำสั่งให้ช่วยราชการ-2.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-16 คำสั่งส่งตัวกลับ " - - /// - /// คำสั่ง C-PM-16 คำสั่งส่งตัวกลับ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-16/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType16CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"30-คำสั่งส่งตัวกลับไปปฏิบัติงานทางต้นสังกัดเดิม.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-17 คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ " - - /// - /// คำสั่ง C-PM-17 คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-17/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType17CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - /// - /// เอกสารแนบท้าย C-PM-17 คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-17/attachment/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType17AttachmentReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp"); - var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - return File(contentData, mimeType, $"command-attachment.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-18 คำสั่งให้ออกจากราชการ " - - /// - /// คำสั่ง C-PM-18 คำสั่งให้ออกจากราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-18/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType18CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - return StatusCode(500, new { message = "ยังไม่มีไฟล์ Template สำหรับสร้างรายงาน!!" }); - - //var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); - //var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - //return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-19 คำสั่งปลดออกจากราชการ " - - /// - /// คำสั่ง C-PM-19 คำสั่งปลดออกจากราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-19/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType19CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - return StatusCode(500, new { message = "ยังไม่มีไฟล์ Template สำหรับสร้างรายงาน!!" }); - - //var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); - //var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - //return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #region " C-PM-20 คำสั่งไล่ออกจากราชการ " - - /// - /// คำสั่ง C-PM-20 คำสั่งไล่ออกจากราชการ - /// - /// Record Id ของคำสั่ง - /// pdf, docx หรือ xlsx - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("c-pm-20/cover/{exportType}/{id}")] - [AllowAnonymous] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public IActionResult GetCommandType20CoverReport(Guid id, string exportType = "pdf") - { - try - { - var mimeType = ""; - switch (exportType.Trim().ToLower()) - { - case "pdf": mimeType = "application/pdf"; break; - case "docx": mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; break; - case "xlsx": mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; break; - } - - return StatusCode(500, new { message = "ยังไม่มีไฟล์ Template สำหรับสร้างรายงาน!!" }); - - //var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Reports", $"34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp"); - //var contentData = _reportGenerator.GenerateReport(rptFile, exportType); - - //return File(contentData, mimeType, $"command.{exportType.Trim().ToLower()}"); - } - catch - { - throw; - } - } - - #endregion - - #endregion - } -} diff --git a/BMA.EHR.ReportV2.Service/Dockerfile b/BMA.EHR.ReportV2.Service/Dockerfile deleted file mode 100644 index 8ae5dbb2..00000000 --- a/BMA.EHR.ReportV2.Service/Dockerfile +++ /dev/null @@ -1,42 +0,0 @@ -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base -WORKDIR /app -EXPOSE 80 -EXPOSE 443 - -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build -WORKDIR /src - -#COPY ["BMA.EHR.Domain/BMA.EHR.Domain.csproj", "BMA.EHR.Domain/"] -#COPY ["BMA.EHR.Application/BMA.EHR.Application.csproj", "BMA.EHR.Application/"] -#COPY ["BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj", "BMA.EHR.Infrastructure/"] -COPY ["BMA.EHR.ReportGenerator/BMA.EHR.ReportGenerator.csproj", "BMA.EHR.ReportGenerator/"] -COPY ["BMA.EHR.ReportV2.Service/BMA.EHR.ReportV2.Service.csproj", "BMA.EHR.ReportV2.Service/"] - -COPY ./BMA.EHR.ReportGenerator/Components ./BMA.EHR.ReportGenerator/Components -COPY ./BMA.EHR.ReportGenerator/nuget.config ./BMA.EHR.ReportGenerator/ - -RUN dotnet restore "BMA.EHR.ReportGenerator/BMA.EHR.ReportGenerator.csproj" -RUN dotnet restore "BMA.EHR.ReportV2.Service/BMA.EHR.ReportV2.Service.csproj" -COPY . . -WORKDIR "/src/BMA.EHR.ReportV2.Service" -RUN dotnet build "BMA.EHR.ReportV2.Service.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "BMA.EHR.ReportV2.Service.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final - -RUN apt-get update && apt-get -y install fontconfig && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev && rm -rf /var/lib/apt/lists/* -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunIT.ttf /usr/share/fonts/truetype/ -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunITBold.ttf /usr/share/fonts/truetype/ -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunITItalic.ttf /usr/share/fonts/truetype/ -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunITBoldItalic.ttf /usr/share/fonts/truetype/ -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNew.ttf /usr/share/fonts/truetype/ -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNewBold.ttf /usr/share/fonts/truetype/ -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNewItalic.ttf /usr/share/fonts/truetype/ -COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNewBoldItalic.ttf /usr/share/fonts/truetype/ -RUN fc-cache -f -v - -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "BMA.EHR.ReportV2.Service.dll"] \ No newline at end of file diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunIT.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunIT.ttf deleted file mode 100644 index d5d56bfd..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunIT.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunITBold.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunITBold.ttf deleted file mode 100644 index e8651045..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunITBold.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunITBoldItalic.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunITBoldItalic.ttf deleted file mode 100644 index b105a1b5..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunITBoldItalic.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunITItalic.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunITItalic.ttf deleted file mode 100644 index cb58ca2a..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunITItalic.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNew.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunNew.ttf deleted file mode 100644 index 13c55aee..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNew.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewBold.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewBold.ttf deleted file mode 100644 index a059996b..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewBold.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewBoldItalic.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewBoldItalic.ttf deleted file mode 100644 index e38f6d2f..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewBoldItalic.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewItalic.ttf b/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewItalic.ttf deleted file mode 100644 index 15312bc0..00000000 Binary files a/BMA.EHR.ReportV2.Service/Fonts/THSarabunNewItalic.ttf and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Program.cs b/BMA.EHR.ReportV2.Service/Program.cs deleted file mode 100644 index d690be48..00000000 --- a/BMA.EHR.ReportV2.Service/Program.cs +++ /dev/null @@ -1,158 +0,0 @@ -using Microsoft.AspNetCore.Authentication.JwtBearer; -using Microsoft.AspNetCore.Mvc.Versioning; -using Microsoft.AspNetCore.Mvc; -using Microsoft.IdentityModel.Logging; -using Microsoft.IdentityModel.Tokens; -using Serilog; -using System.Text; -using BMA.EHR.ReportV2.Service; -using BMA.EHR.ReportGenerator; -using Serilog.Exceptions; -using Serilog.Sinks.Elasticsearch; -using System.Reflection; -using Microsoft.AspNetCore.Mvc.ApiExplorer; - -var builder = WebApplication.CreateBuilder(args); -{ - var issuer = builder.Configuration["Jwt:Issuer"]; - var key = builder.Configuration["Jwt:Key"]; - - - IdentityModelEventSource.ShowPII = true; - - builder.Services.AddHttpContextAccessor(); - - builder.Services.AddApiVersioning(opt => - { - opt.DefaultApiVersion = new ApiVersion(1, 0); - opt.AssumeDefaultVersionWhenUnspecified = true; - opt.ReportApiVersions = true; - opt.ApiVersionReader = ApiVersionReader.Combine(new UrlSegmentApiVersionReader(), - new HeaderApiVersionReader("x-api-version"), - new MediaTypeApiVersionReader("x-api-version")); - }); - - builder.Services.AddVersionedApiExplorer(setup => - { - setup.GroupNameFormat = "'v'VVV"; - setup.SubstituteApiVersionInUrl = true; - }); - - builder.Services.AddEndpointsApiExplorer(); - - // Authorization - builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(opt => - { - opt.RequireHttpsMetadata = false; //false for dev - opt.Authority = issuer; - opt.TokenValidationParameters = new() - { - ValidateIssuer = true, - ValidateAudience = false, - ValidateLifetime = true, - ValidateIssuerSigningKey = true, - ValidIssuer = issuer, - IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(key)) - }; - }); - builder.Services.AddAuthorization(); - - // use serilog - ConfigureLogs(); - builder.Host.UseSerilog(); - - // Add config CORS - builder.Services.AddCors(options => options.AddDefaultPolicy(builder => - { - builder - .AllowAnyOrigin() - .AllowAnyMethod() - .AllowAnyHeader() - .SetIsOriginAllowedToAllowWildcardSubdomains(); - })); - - - // Add services to the container. - builder.Services.AddReportGenerator(); - // builder.Services.AddApplication(); - // builder.Services.AddPersistence(builder.Configuration); - - builder.Services.AddControllers(options => - { - options.SuppressAsyncSuffixInActionNames = false; - }) - .AddNewtonsoftJson(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore); - - builder.Services.AddSwaggerGen(); - builder.Services.ConfigureOptions(); - - builder.Services.AddHealthChecks(); -} - - -var app = builder.Build(); -{ - var apiVersionDescriptionProvider = app.Services.GetRequiredService(); - - if (app.Environment.IsDevelopment()) - { - app.UseSwagger(); - app.UseSwaggerUI(options => - { - foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions) - { - options.SwaggerEndpoint($"/swagger/{description.GroupName}/swagger.json", - description.GroupName.ToUpperInvariant()); - } - }); - } - - app.MapHealthChecks("/health"); - - - app.UseHttpsRedirection(); - app.UseCors(); - app.UseAuthentication(); - app.UseAuthorization(); - app.UseDefaultFiles(); - app.UseStaticFiles(); - app.MapControllers(); - //app.UseMiddleware(); - - // apply migrations - //await using var scope = app.Services.CreateAsyncScope(); - //await using var db = scope.ServiceProvider.GetRequiredService(); - //await db.Database.MigrateAsync(); - - app.Run(); -} - -void ConfigureLogs() -{ - var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); - var configuration = new ConfigurationBuilder() - .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) - .AddJsonFile( - $"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")}.json", - optional: true) - .Build(); - - Log.Logger = new LoggerConfiguration() - .Enrich.FromLogContext() - .MinimumLevel.Error() - .WriteTo.Console() - .Enrich.WithExceptionDetails() - .WriteTo.Elasticsearch(ConfigureElasticSink(configuration, environment ?? "")) - .Enrich.WithProperty("Environment", environment) - .ReadFrom.Configuration(configuration) - .CreateLogger(); -} - -ElasticsearchSinkOptions ConfigureElasticSink(IConfigurationRoot configuration, string environment) -{ - return new ElasticsearchSinkOptions(new Uri(configuration["ElasticConfiguration:Uri"] ?? "")) - { - AutoRegisterTemplate = true, - IndexFormat = $"{Assembly.GetExecutingAssembly()?.GetName()?.Name?.ToLower().Replace(".", "-")}-{environment?.ToLower().Replace(".", "-")}" - }; -} diff --git a/BMA.EHR.ReportV2.Service/Properties/launchSettings.json b/BMA.EHR.ReportV2.Service/Properties/launchSettings.json deleted file mode 100644 index bfd5c98e..00000000 --- a/BMA.EHR.ReportV2.Service/Properties/launchSettings.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "profiles": { - "http": { - "commandName": "Project", - "launchBrowser": true, - "launchUrl": "swagger", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "dotnetRunMessages": true, - "applicationUrl": "http://localhost:5089" - }, - "https": { - "commandName": "Project", - "launchBrowser": true, - "launchUrl": "swagger", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7094;http://localhost:5089" - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "swagger", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "Docker": { - "commandName": "Docker", - "launchBrowser": true, - "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger", - "publishAllPorts": true, - "useSSL": true - } - }, - "$schema": "https://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:17826", - "sslPort": 44315 - } - } -} \ No newline at end of file diff --git a/BMA.EHR.ReportV2.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp b/BMA.EHR.ReportV2.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp deleted file mode 100644 index 552737f5..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/01-คำสั่งบรรจุและแต่งตั้งผู้สอบแข่งขันได้-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-3.trdp b/BMA.EHR.ReportV2.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-3.trdp deleted file mode 100644 index 5010ffc4..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp b/BMA.EHR.ReportV2.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp deleted file mode 100644 index c8c175ab..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/02-คำสั่งบรรจุและแต่งตั้งผู้ได้รับคัดเลือก-4.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp b/BMA.EHR.ReportV2.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp deleted file mode 100644 index 91ab6d79..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน-Head.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp b/BMA.EHR.ReportV2.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp deleted file mode 100644 index 2fabcfd8..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/03-คำสั่งแต่งตั้งผู้สอบแข่งขัน.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp b/BMA.EHR.ReportV2.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp deleted file mode 100644 index 4d4e757a..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน-Head.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp b/BMA.EHR.ReportV2.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp deleted file mode 100644 index 1e60f1d8..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/04-คำสั่งย้ายผู้สอบแข่งขัน.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp b/BMA.EHR.ReportV2.Service/Reports/05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp deleted file mode 100644 index 686219d9..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/05-06-คำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/05-06-แนบท้ายคำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp b/BMA.EHR.ReportV2.Service/Reports/05-06-แนบท้ายคำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp deleted file mode 100644 index b79be7ac..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/05-06-แนบท้ายคำสั่งแต่งตั้ง-คำสั่งเลื่อน.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/07-คำสั่งย้าย.trdp b/BMA.EHR.ReportV2.Service/Reports/07-คำสั่งย้าย.trdp deleted file mode 100644 index 50172123..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/07-คำสั่งย้าย.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/07-แนบท้ายคำสั่งย้าย.trdp b/BMA.EHR.ReportV2.Service/Reports/07-แนบท้ายคำสั่งย้าย.trdp deleted file mode 100644 index aede6a4e..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/07-แนบท้ายคำสั่งย้าย.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-6.trdp b/BMA.EHR.ReportV2.Service/Reports/08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-6.trdp deleted file mode 100644 index ca16da37..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/08-คำสั่งบรรจุและแต่งตั้งข้าราชการฯกลับเข้ารับราชการ-6.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp b/BMA.EHR.ReportV2.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp deleted file mode 100644 index 56c43d29..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-7.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-8.trdp b/BMA.EHR.ReportV2.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-8.trdp deleted file mode 100644 index c4864a0b..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/09-คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ-8.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/10-แต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ.trdp b/BMA.EHR.ReportV2.Service/Reports/10-แต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ.trdp deleted file mode 100644 index 4ae38b8b..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/10-แต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp b/BMA.EHR.ReportV2.Service/Reports/11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp deleted file mode 100644 index 079b8903..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/11-คำสั่งให้ข้าราชการที่ผ่านการประเมิน รับราชการต่อไป.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp b/BMA.EHR.ReportV2.Service/Reports/12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp deleted file mode 100644 index f99af7d9..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/12-คำสั่งให้ข้าราชการที่ไม่ผ่านการประเมิน ออกจากราชการ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-1.trdp b/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-1.trdp deleted file mode 100644 index f070febf..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-2.trdp b/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-2.trdp deleted file mode 100644 index 536ea370..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-3.trdp b/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-3.trdp deleted file mode 100644 index 9da3be1f..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/13-แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-1.trdp b/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-1.trdp deleted file mode 100644 index d1fb10ba..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-2.trdp b/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-2.trdp deleted file mode 100644 index 6fe99ba6..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-3.trdp b/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-3.trdp deleted file mode 100644 index dff42245..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-4.trdp b/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-4.trdp deleted file mode 100644 index 06da9fb9..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/14-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้ดูแล-4.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-1.trdp b/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-1.trdp deleted file mode 100644 index 4ec23444..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-2.trdp b/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-2.trdp deleted file mode 100644 index 918bcf5f..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-3.trdp b/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-3.trdp deleted file mode 100644 index dc7b067e..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-4.trdp b/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-4.trdp deleted file mode 100644 index dccb34e6..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/15-แบบบันทึกผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-4.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/16-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-1.trdp b/BMA.EHR.ReportV2.Service/Reports/16-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-1.trdp deleted file mode 100644 index c396769d..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/16-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/16-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-2.trdp b/BMA.EHR.ReportV2.Service/Reports/16-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-2.trdp deleted file mode 100644 index 8b0a1a19..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/16-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับผู้บังคับบัญชา-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-1.trdp b/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-1.trdp deleted file mode 100644 index 67f391b6..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-2.trdp b/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-2.trdp deleted file mode 100644 index 25fda0ed..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-3.trdp b/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-3.trdp deleted file mode 100644 index 2bdbfe6f..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/17-แบบประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับคณะกรรมการ-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/18-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับประธาน-1.trdp b/BMA.EHR.ReportV2.Service/Reports/18-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับประธาน-1.trdp deleted file mode 100644 index 66d32350..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/18-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับประธาน-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/18-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับประธาน-2.trdp b/BMA.EHR.ReportV2.Service/Reports/18-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับประธาน-2.trdp deleted file mode 100644 index 98fe641d..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/18-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ สำหรับประธาน-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/19-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ กรณีขยายเวลา.trdp b/BMA.EHR.ReportV2.Service/Reports/19-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ กรณีขยายเวลา.trdp deleted file mode 100644 index e9d8166e..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/19-แบบรายงานการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ กรณีขยายเวลา.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-2.trdp b/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-2.trdp deleted file mode 100644 index daa35a42..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-3.trdp b/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-3.trdp deleted file mode 100644 index 336db1e0..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-4.trdp b/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-4.trdp deleted file mode 100644 index 20c289ec..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/20-คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ-4.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-1.trdp b/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-1.trdp deleted file mode 100644 index 90ecf6f2..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-2.trdp b/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-2.trdp deleted file mode 100644 index d22e0795..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-3.trdp b/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-3.trdp deleted file mode 100644 index 6e3ca166..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-4.trdp b/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-4.trdp deleted file mode 100644 index f680ecb4..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/27-คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ-4.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-5.trdp b/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-5.trdp deleted file mode 100644 index 07383996..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-5.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-6.trdp b/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-6.trdp deleted file mode 100644 index 468aa66f..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-6.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-7.trdp b/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-7.trdp deleted file mode 100644 index 745ba152..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-7.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-8.trdp b/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-8.trdp deleted file mode 100644 index 786818a2..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-8.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-9.trdp b/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-9.trdp deleted file mode 100644 index a0e31ba0..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ-9.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ5-10.trdp b/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ5-10.trdp deleted file mode 100644 index 5249de8a..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/28-คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ5-10.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/29-คำสั่งให้ช่วยราชการ-1.trdp b/BMA.EHR.ReportV2.Service/Reports/29-คำสั่งให้ช่วยราชการ-1.trdp deleted file mode 100644 index cf653bb4..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/29-คำสั่งให้ช่วยราชการ-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/29-คำสั่งให้ช่วยราชการ-2.trdp b/BMA.EHR.ReportV2.Service/Reports/29-คำสั่งให้ช่วยราชการ-2.trdp deleted file mode 100644 index 63fbdef5..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/29-คำสั่งให้ช่วยราชการ-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/30-คำสั่งส่งตัวกลับไปปฏิบัติงานทางต้นสังกัดเดิม.trdp b/BMA.EHR.ReportV2.Service/Reports/30-คำสั่งส่งตัวกลับไปปฏิบัติงานทางต้นสังกัดเดิม.trdp deleted file mode 100644 index fc79b651..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/30-คำสั่งส่งตัวกลับไปปฏิบัติงานทางต้นสังกัดเดิม.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-1.trdp b/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-1.trdp deleted file mode 100644 index aef01206..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-3.trdp b/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-3.trdp deleted file mode 100644 index 189edb48..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ.trdp b/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ.trdp deleted file mode 100644 index 8bce7808..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/31-ประกาศเกษียณข้าราชการ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/32-ประกาศเกษียณลูกจ้างประจำ.trdp b/BMA.EHR.ReportV2.Service/Reports/32-ประกาศเกษียณลูกจ้างประจำ.trdp deleted file mode 100644 index bbb55bcf..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/32-ประกาศเกษียณลูกจ้างประจำ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-1.trdp b/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-1.trdp deleted file mode 100644 index 79123977..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-1.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-2.trdp b/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-2.trdp deleted file mode 100644 index 4508d179..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-2.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-3.trdp b/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-3.trdp deleted file mode 100644 index 999a8183..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/33-แบบฟอร์มหนังสือขอลาออกจากราชการ-3.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp b/BMA.EHR.ReportV2.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp deleted file mode 100644 index 47491558..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-4.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp b/BMA.EHR.ReportV2.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp deleted file mode 100644 index 0a828c29..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/34-คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ-5.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/39-แบบ ขร1 บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ ข้าราชการ ชั้นสายสะพาย.trdp b/BMA.EHR.ReportV2.Service/Reports/39-แบบ ขร1 บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ ข้าราชการ ชั้นสายสะพาย.trdp deleted file mode 100644 index d86540cd..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/39-แบบ ขร1 บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ ข้าราชการ ชั้นสายสะพาย.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/40-แบบ ขร2 บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ ข้าราชการ ชั้นต่ำกว่าสายสะพาย.trdp b/BMA.EHR.ReportV2.Service/Reports/40-แบบ ขร2 บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ ข้าราชการ ชั้นต่ำกว่าสายสะพาย.trdp deleted file mode 100644 index 998092bd..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/40-แบบ ขร2 บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ ข้าราชการ ชั้นต่ำกว่าสายสะพาย.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/41-แบบ ขร3 บัญชีรายชื่อข้าราชการผู้ขอพระราชทานเครื่องราชฯ.trdp b/BMA.EHR.ReportV2.Service/Reports/41-แบบ ขร3 บัญชีรายชื่อข้าราชการผู้ขอพระราชทานเครื่องราชฯ.trdp deleted file mode 100644 index f77f5fdd..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/41-แบบ ขร3 บัญชีรายชื่อข้าราชการผู้ขอพระราชทานเครื่องราชฯ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/42-แบบ ขร4 บัญชีแสดงคุณสมบัติของข้าราชการซึ่งเสนอขอเครื่องราชฯ.trdp b/BMA.EHR.ReportV2.Service/Reports/42-แบบ ขร4 บัญชีแสดงคุณสมบัติของข้าราชการซึ่งเสนอขอเครื่องราชฯ.trdp deleted file mode 100644 index f852a6df..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/42-แบบ ขร4 บัญชีแสดงคุณสมบัติของข้าราชการซึ่งเสนอขอเครื่องราชฯ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/43-บัญชีระดับผลการประเมินผลการปฏิบัติราชการในรอบ 5 ปี.trdp b/BMA.EHR.ReportV2.Service/Reports/43-บัญชีระดับผลการประเมินผลการปฏิบัติราชการในรอบ 5 ปี.trdp deleted file mode 100644 index 5cf9466c..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/43-บัญชีระดับผลการประเมินผลการปฏิบัติราชการในรอบ 5 ปี.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/44-บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ.trdp b/BMA.EHR.ReportV2.Service/Reports/44-บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ.trdp deleted file mode 100644 index 9e56a06d..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/44-บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/45-บัญชีแสดงรายชื่อผู้ขอพระราชทานเหรียญจักรพรรดิมาลา.trdp b/BMA.EHR.ReportV2.Service/Reports/45-บัญชีแสดงรายชื่อผู้ขอพระราชทานเหรียญจักรพรรดิมาลา.trdp deleted file mode 100644 index 0aa2168c..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/45-บัญชีแสดงรายชื่อผู้ขอพระราชทานเหรียญจักรพรรดิมาลา.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/Reports/46-ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.trdp b/BMA.EHR.ReportV2.Service/Reports/46-ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.trdp deleted file mode 100644 index 0afb030c..00000000 Binary files a/BMA.EHR.ReportV2.Service/Reports/46-ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.trdp and /dev/null differ diff --git a/BMA.EHR.ReportV2.Service/appsettings.Development.json b/BMA.EHR.ReportV2.Service/appsettings.Development.json deleted file mode 100644 index 0c208ae9..00000000 --- a/BMA.EHR.ReportV2.Service/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/BMA.EHR.ReportV2.Service/appsettings.json b/BMA.EHR.ReportV2.Service/appsettings.json deleted file mode 100644 index a06ebbd5..00000000 --- a/BMA.EHR.ReportV2.Service/appsettings.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "Serilog": { - "MinimumLevel": { - "Default": "Information", - "Override": { - "Microsoft": "Information", - "System": "Warning" - } - } - }, - "ElasticConfiguration": { - "Uri": "http://localhost:9200" - }, - "AllowedHosts": "*", - "ConnectionStrings": { - //"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB", - "DefaultConnection": "server=192.168.1.9;user=root;password=adminVM123;port=3306;database=bma_ehr_demo;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" - }, - "Jwt": { - "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", - "Issuer": "https://identity.frappet.com/realms/bma-ehr" - }, - "EPPlus": { - "ExcelPackage": { - "LicenseContext": "NonCommercial" - } - }, - "MinIO": { - "Endpoint": "https://s3.frappet.com/", - "AccessKey": "frappet", - "SecretKey": "P@ssw0rd", - "BucketName": "bma-recruit" - }, - "Protocol": "HTTPS" -} diff --git a/BMA.EHR.Solution.sln b/BMA.EHR.Solution.sln index 04d14ce6..72be7ede 100644 --- a/BMA.EHR.Solution.sln +++ b/BMA.EHR.Solution.sln @@ -27,10 +27,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BMA.EHR.Insignia.Service", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BMA.EHR.Retirement.Service", "BMA.EHR.Retirement.Service\BMA.EHR.Retirement.Service.csproj", "{3FFE378C-387F-42EA-96E2-68E63BB295F9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BMA.EHR.ReportGenerator", "BMA.EHR.ReportGenerator\BMA.EHR.ReportGenerator.csproj", "{8DB08650-980C-4B7E-B3C2-4435F2A5AD10}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BMA.EHR.ReportV2.Service", "BMA.EHR.ReportV2.Service\BMA.EHR.ReportV2.Service.csproj", "{DE23F598-F561-45DF-9F8C-C766568809BD}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -77,14 +73,6 @@ Global {3FFE378C-387F-42EA-96E2-68E63BB295F9}.Debug|Any CPU.Build.0 = Debug|Any CPU {3FFE378C-387F-42EA-96E2-68E63BB295F9}.Release|Any CPU.ActiveCfg = Release|Any CPU {3FFE378C-387F-42EA-96E2-68E63BB295F9}.Release|Any CPU.Build.0 = Release|Any CPU - {8DB08650-980C-4B7E-B3C2-4435F2A5AD10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8DB08650-980C-4B7E-B3C2-4435F2A5AD10}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8DB08650-980C-4B7E-B3C2-4435F2A5AD10}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8DB08650-980C-4B7E-B3C2-4435F2A5AD10}.Release|Any CPU.Build.0 = Release|Any CPU - {DE23F598-F561-45DF-9F8C-C766568809BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DE23F598-F561-45DF-9F8C-C766568809BD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DE23F598-F561-45DF-9F8C-C766568809BD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DE23F598-F561-45DF-9F8C-C766568809BD}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -101,8 +89,6 @@ Global {E4E905EE-61DF-4451-B063-5C86BC7574CE} = {FA618F0C-1AF5-49AB-AE13-C020B403B64F} {04B37ACD-65CF-44ED-BC40-B5E7A71C374B} = {FA618F0C-1AF5-49AB-AE13-C020B403B64F} {3FFE378C-387F-42EA-96E2-68E63BB295F9} = {FA618F0C-1AF5-49AB-AE13-C020B403B64F} - {8DB08650-980C-4B7E-B3C2-4435F2A5AD10} = {F3C2F68F-8DC8-45A3-825B-24F17867D380} - {DE23F598-F561-45DF-9F8C-C766568809BD} = {FA618F0C-1AF5-49AB-AE13-C020B403B64F} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {3111A492-1818-4438-B718-75199D8E779A}