diff --git a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs index d306b3e9..d65be882 100644 --- a/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs +++ b/BMA.EHR.Application/Repositories/Commands/CommandRepository.cs @@ -3154,7 +3154,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับรรจุเป็นข้าราชการกรุงเทพมหานครสามัญ ตามคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (profileId != null) { @@ -3220,7 +3220,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งบรรจุเป็นข้าราชการกรุงเทพมหานครสามัญ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -3339,7 +3339,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้ง เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -3401,7 +3401,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้ง คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -3520,7 +3520,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งย้าย เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -3582,7 +3582,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งย้าย คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -3701,7 +3701,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเลื่อน เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -3763,7 +3763,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเลื่อน คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -3884,7 +3884,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้ง เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (recv.RefPlacementProfileId != null) { @@ -3948,7 +3948,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้ง คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -4069,7 +4069,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเลื่อน เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox { @@ -4130,7 +4130,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเลื่อน คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -4251,7 +4251,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งย้าย เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -4313,7 +4313,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งย้าย คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -4430,7 +4430,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox { @@ -4491,7 +4491,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งบรรจุและแต่งตั้งข้าราชการฯ กลับเข้ารับราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -4608,7 +4608,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -4670,7 +4670,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งบรรจุและแต่งตั้งผู้ออกไปรับราชการทหารกลับเข้ารับราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -4802,7 +4802,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -4864,7 +4864,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -4959,7 +4959,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ข้าราชการที่มีผลการทดลองปฏิบัติหน้าที่ราชการไม่ต่ำกว่ามาตรฐานที่กำหนดรับราชการต่อไป เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -5021,7 +5021,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ข้าราชการที่มีผลการทดลองปฏิบัติหน้าที่ราชการไม่ต่ำกว่ามาตรฐานที่กำหนดรับราชการต่อไป คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -5116,7 +5116,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งให้ข้าราชการออกจากราชการเพราะผลการทดลองปฏิบัติหน้าที่ราชการต่ำกว่ามาตรฐานที่กำหนด เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -5178,7 +5178,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ข้าราชการออกจากราชการเพราะผลการทดลองปฏิบัติหน้าที่ราชการต่ำกว่ามาตรฐานที่กำหนด คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -5306,7 +5306,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -5368,7 +5368,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้โอนข้าราชการกรุงเทพมหานครสามัญ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -5492,7 +5492,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับโอนเป็นข้าราชการกรุงเทพมหานครสามัญ ตามคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (placementProfile.profileId != null) { @@ -5556,7 +5556,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งรับโอนข้าราชการกรุงเทพมหานครสามัญ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -5672,7 +5672,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ช่วยราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (data.profileId != null) { var inbox = new Inbox @@ -5735,7 +5735,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ช่วยราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -5851,7 +5851,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งส่งตัวกลับ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (data.profileId != null) { @@ -5915,7 +5915,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งส่งตัวกลับ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -6047,7 +6047,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (data.profileId != null) { @@ -6111,7 +6111,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งอนุญาตให้ข้าราชการลาออกจากราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -6243,7 +6243,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งให้ออกจากราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (data.profileId != null) { @@ -6307,7 +6307,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ออกจากราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -6402,7 +6402,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งปลดออกจากราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -6485,7 +6485,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งปลดออกจากราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -6580,7 +6580,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งไล่ออกจากราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -6663,7 +6663,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งไล่ออกจากราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -6746,7 +6746,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -6808,7 +6808,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งลูกจ้างชั่วคราวเป็นลูกจ้างประจำ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -6925,7 +6925,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งลูกจ้างประจำ(ปรับระดับชั้นงาน) เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); // รอเอาข้อมูลที่ได้มาส่ง inbox noti ให้ผู้รับคำสั่ง @@ -6991,7 +6991,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งลูกจ้างประจำ(ปรับระดับชั้นงาน) คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -7082,7 +7082,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งให้ลูกจ้างออกจากราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (data.profileId != null) { @@ -7146,7 +7146,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ลูกจ้างออกจากราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -7263,7 +7263,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งลูกจ้างประจำ(ย้าย) เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); // รอเอาข้อมูลที่ได้มาส่ง inbox noti ให้ผู้รับคำสั่ง @@ -7329,7 +7329,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งแต่งตั้งลูกจ้างประจำ(ย้าย) คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -7427,7 +7427,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งพักจากราชการ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox { @@ -7487,7 +7487,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งพักจากราชการ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -7586,7 +7586,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งให้ออกจากราชการไว้ก่อน เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -7647,7 +7647,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ออกจากราชการไว้ก่อน คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -7746,7 +7746,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งลงโทษ ภาคทัณฑ์ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -7807,7 +7807,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งลงโทษ ภาคทัณฑ์ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -7906,7 +7906,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งลงโทษ ตัดเงินเดือน เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -7967,7 +7967,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งลงโทษ ตัดเงินเดือน คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -8066,7 +8066,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งลงโทษ ลดขั้นเงินเดือน เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -8127,7 +8127,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งลงโทษ ลดขั้นเงินเดือน คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -8226,7 +8226,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งเพิ่มโทษ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -8287,7 +8287,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเพิ่มโทษ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -8386,7 +8386,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งงดโทษ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -8447,7 +8447,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งงดโทษ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -8546,7 +8546,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งยุติเรื่อง เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -8607,7 +8607,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งยุติเรื่อง คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -8689,7 +8689,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งเลื่อนเงินเดือน เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -8750,7 +8750,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเลื่อนเงินเดือน คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -8832,7 +8832,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งค่าตอบแทนพิเศษ และผู้ไม่ได้เลื่อน เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -8893,7 +8893,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งค่าตอบแทนพิเศษ และผู้ไม่ได้เลื่อน คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -8975,7 +8975,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งเลื่อนเงินเดือนข้าราชการเกษียณ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox { @@ -9035,7 +9035,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเลื่อนเงินเดือนข้าราชการเกษียณ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -9117,7 +9117,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งเลื่อนขั้นค่าจ้าง เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -9178,7 +9178,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งเลื่อนขั้นค่าจ้าง คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -9260,7 +9260,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งให้ลูกจ้างประจำได้รับค่าตอบแทนพิเศษ เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox @@ -9321,7 +9321,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ลูกจ้างประจำได้รับค่าตอบแทนพิเศษ คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -9399,7 +9399,7 @@ namespace BMA.EHR.Application.Repositories.Commands // // Send noti inbox and email // var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; // var body = $"คุณได้รับคำสั่งยุติเรื่อง เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); // var inbox = new Inbox @@ -9460,7 +9460,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งปรับโครงสร้าง คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -9540,7 +9540,7 @@ namespace BMA.EHR.Application.Repositories.Commands { var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งให้ข้าราชการรักษาการในตำแหน่ง คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } @@ -9659,7 +9659,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คุณได้รับคำสั่งยกเลิกการลาออก เลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); if (data.profileId != null) { @@ -9723,7 +9723,7 @@ namespace BMA.EHR.Application.Repositories.Commands // Send noti inbox and email var subject = $"คุณได้รับสำเนาคำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; var body = $"คำสั่งยกเลิกการลาออก คำสั่งเลขที่ {command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate.Value.ToThaiFullDate3()}"; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); } diff --git a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs index d4bc0ea8..19818e4e 100644 --- a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs @@ -85,7 +85,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants var subject = subject_str; var body = body_str; - _emailSenderService.SendMail(subject, body, "dev@frappet.com"); + // _emailSenderService.SendMail(subject, body, "dev@frappet.com"); var inbox = new Inbox diff --git a/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs index a3b0c124..10050396 100644 --- a/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs +++ b/BMA.EHR.Leave/Controllers/LeaveBeginningController.cs @@ -363,6 +363,34 @@ namespace BMA.EHR.Leave.Service.Controllers } } + [HttpPatch("update-profile")] + public async Task> UpdateProfileAsync([FromBody] EditProfileDto req) + { + try + { + var leaveBeginnings = await _context.LeaveBeginnings + .Where(x => x.ProfileId == req.ProfileId) + .ToListAsync(); + + foreach (var item in leaveBeginnings) + { + item.Prefix = req.Prefix; + item.FirstName = req.FirstName; + item.LastName = req.LastName; + _context.LeaveBeginnings.Update(item); + } + + await _context.SaveChangesAsync(); + return Success("อัพเดทข้อมูลสำเร็จ"); + + } + catch (Exception e) + { + return Error(e); + } + } + + // /// แก้ไขรายการ diff --git a/BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs b/BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs index a41aa9f2..0b2c3347 100644 --- a/BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs +++ b/BMA.EHR.Leave/DTOs/LeaveBeginnings/EditLeaveBeginningDto.cs @@ -30,6 +30,18 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveBeginnings public int BeginningLeaveCount { get; set; } = 0; } + public class EditProfileDto + { + [Required] + public Guid ProfileId { get; set; } = Guid.Empty; + [Required] + public string Prefix { get; set; } = string.Empty; + [Required] + public string FirstName { get; set; } = string.Empty; + [Required] + public string LastName {get; set; } = string.Empty; + } + public class ScheduleEditLeaveBeginningDto {