Merge branch 'develop' into develop-Bright
This commit is contained in:
commit
cf56ef9297
13 changed files with 201 additions and 112 deletions
|
|
@ -93,7 +93,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
Type = x.Type,
|
Type = x.Type,
|
||||||
ReceiveDate = x.ReceiveDate,
|
ReceiveDate = x.ReceiveDate,
|
||||||
OpenDate = x.OpenDate,
|
OpenDate = x.OpenDate,
|
||||||
Payload = x.Payload == "" ? null : JsonConvert.DeserializeObject<CommandPayload>(Regex.Unescape(x.Payload))
|
Payload = x.Payload
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
var data_opens = await _dbContext.Set<Notification>()
|
var data_opens = await _dbContext.Set<Notification>()
|
||||||
|
|
@ -185,7 +185,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task PushNotificationAsync(Guid ReceiverUserId, string Subject, string Body, string Payload = "", bool IsSendInbox = false, bool IsSendMail = false)
|
public async Task PushNotificationAsync(Guid ReceiverUserId, string Subject, string Body, string Payload = "", string NotiLink = "", bool IsSendInbox = false, bool IsSendMail = false)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -197,7 +197,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
Body = Body,
|
Body = Body,
|
||||||
ReceiverUserId = ReceiverUserId,
|
ReceiverUserId = ReceiverUserId,
|
||||||
Type = "",
|
Type = "",
|
||||||
Payload = Payload,
|
Payload = NotiLink,
|
||||||
CreatedFullName = FullName ?? "System Administrator",
|
CreatedFullName = FullName ?? "System Administrator",
|
||||||
CreatedUserId = UserId ?? "",
|
CreatedUserId = UserId ?? "",
|
||||||
CreatedAt = DateTime.Now,
|
CreatedAt = DateTime.Now,
|
||||||
|
|
@ -234,7 +234,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task PushNotificationsAsync(Guid[] ReceiverUserIds, string Subject, string Body, string Payload = "", bool IsSendInbox = false, bool IsSendMail = false)
|
public async Task PushNotificationsAsync(Guid[] ReceiverUserIds, string Subject, string Body, string Payload = "", string NotiLink = "", bool IsSendInbox = false, bool IsSendMail = false)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -245,7 +245,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
Body = Body,
|
Body = Body,
|
||||||
ReceiverUserId = ReceiverUserId,
|
ReceiverUserId = ReceiverUserId,
|
||||||
Type = "",
|
Type = "",
|
||||||
Payload = Payload,
|
Payload = NotiLink,
|
||||||
CreatedFullName = FullName ?? "System Administrator",
|
CreatedFullName = FullName ?? "System Administrator",
|
||||||
CreatedUserId = UserId ?? "",
|
CreatedUserId = UserId ?? "",
|
||||||
CreatedAt = DateTime.Now,
|
CreatedAt = DateTime.Now,
|
||||||
|
|
@ -281,6 +281,59 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class NotisLinkRequest
|
||||||
|
{
|
||||||
|
public Guid ReceiverUserId { get; set; }
|
||||||
|
public string NotiLink { get; set; }
|
||||||
|
}
|
||||||
|
public async Task PushNotificationsLinkAsync(NotisLinkRequest[] ReceiverUserIds, string Subject, string Body, string Payload = "", bool IsSendInbox = false, bool IsSendMail = false)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
foreach (var ReceiverUserId in ReceiverUserIds)
|
||||||
|
{
|
||||||
|
_dbContext.Set<Notification>().Add(new Notification
|
||||||
|
{
|
||||||
|
Body = Body,
|
||||||
|
ReceiverUserId = ReceiverUserId.ReceiverUserId,
|
||||||
|
Type = "",
|
||||||
|
Payload = ReceiverUserId.NotiLink,
|
||||||
|
CreatedFullName = FullName ?? "System Administrator",
|
||||||
|
CreatedUserId = UserId ?? "",
|
||||||
|
CreatedAt = DateTime.Now,
|
||||||
|
LastUpdateFullName = FullName ?? "System Administrator",
|
||||||
|
LastUpdateUserId = UserId ?? "",
|
||||||
|
LastUpdatedAt = DateTime.Now,
|
||||||
|
});
|
||||||
|
if (IsSendInbox == true)
|
||||||
|
{
|
||||||
|
_dbContext.Set<Inbox>().Add(new Inbox
|
||||||
|
{
|
||||||
|
Subject = Subject,
|
||||||
|
Body = Body,
|
||||||
|
ReceiverUserId = ReceiverUserId.ReceiverUserId,
|
||||||
|
Payload = Payload,
|
||||||
|
CreatedFullName = FullName ?? "System Administrator",
|
||||||
|
CreatedUserId = UserId ?? "",
|
||||||
|
CreatedAt = DateTime.Now,
|
||||||
|
LastUpdateFullName = FullName ?? "System Administrator",
|
||||||
|
LastUpdateUserId = UserId ?? "",
|
||||||
|
LastUpdatedAt = DateTime.Now,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (IsSendMail == true)
|
||||||
|
{
|
||||||
|
_emailSenderService.SendMail(Subject, Body, "kittapath@frappet.com");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
await _dbContext.SaveChangesAsync();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
public async Task PushNotificationAsyncV2(string? ReceiverUserId, string Subject, string Body, string Payload = "", bool IsSendInbox = false, bool IsSendMail = false)
|
public async Task PushNotificationAsyncV2(string? ReceiverUserId, string Subject, string Body, string Payload = "", bool IsSendInbox = false, bool IsSendMail = false)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -973,6 +973,7 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
||||||
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
await _repositoryNoti.PushNotificationAsync(
|
await _repositoryNoti.PushNotificationAsync(
|
||||||
|
|
@ -980,6 +981,7 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
||||||
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -990,6 +990,7 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
cronjobNoti.Subject,
|
cronjobNoti.Subject,
|
||||||
cronjobNoti.Body,
|
cronjobNoti.Body,
|
||||||
cronjobNoti.Payload,
|
cronjobNoti.Payload,
|
||||||
|
"",
|
||||||
cronjobNoti.IsSendInbox,
|
cronjobNoti.IsSendInbox,
|
||||||
cronjobNoti.IsSendMail
|
cronjobNoti.IsSendMail
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
public string Type { get; set; } = "TEXT";
|
public string Type { get; set; } = "TEXT";
|
||||||
|
|
||||||
public CommandPayload Payload { get; set; } = new();
|
public string Payload { get; set; } = string.Empty;
|
||||||
|
|
||||||
public bool IsOpen { get; set; } = false;
|
public bool IsOpen { get; set; } = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -362,6 +362,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
|
||||||
$"มีคำขอร้องเรียนเรื่อง {req.title}",
|
$"มีคำขอร้องเรียนเรื่อง {req.title}",
|
||||||
$"มีคำขอร้องเรียนเรื่อง {req.title}",
|
$"มีคำขอร้องเรียนเรื่อง {req.title}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true,
|
true,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -392,6 +392,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
||||||
$"มีคำขอยื่นอุทธรณ์/ร้องทุกข์จาก {req.Fullname}",
|
$"มีคำขอยื่นอุทธรณ์/ร้องทุกข์จาก {req.Fullname}",
|
||||||
$"มีคำขอยื่นอุทธรณ์/ร้องทุกข์จาก {req.Fullname}",
|
$"มีคำขอยื่นอุทธรณ์/ร้องทุกข์จาก {req.Fullname}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true,
|
true,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -700,6 +700,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
|
|
@ -763,6 +764,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
await _repositoryNoti.PushNotificationAsync(
|
await _repositoryNoti.PushNotificationAsync(
|
||||||
|
|
@ -770,6 +772,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ยื่นขอมูลข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
|
|
@ -807,6 +810,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
$"{(org == null ? null : org.Root)} ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
$"{(org == null ? null : org.Root)} ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"{(org == null ? null : org.Root)} ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
|
|
@ -842,6 +846,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
$"สกจ. ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"สกจ. ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
$"สกจ. ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
$"สกจ. ตีกลับข้อมูลผู้มีสิทธิ์ได้รับเครื่องราชฯ {requestNew.Period.Name}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
req.Subject,
|
req.Subject,
|
||||||
req.Body,
|
req.Body,
|
||||||
req.Payload,
|
req.Payload,
|
||||||
|
"",
|
||||||
req.IsSendInbox,
|
req.IsSendInbox,
|
||||||
req.IsSendMail
|
req.IsSendMail
|
||||||
);
|
);
|
||||||
|
|
@ -93,6 +94,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
req.Subject,
|
req.Subject,
|
||||||
req.Body,
|
req.Body,
|
||||||
req.Payload,
|
req.Payload,
|
||||||
|
"",
|
||||||
req.IsSendInbox,
|
req.IsSendInbox,
|
||||||
req.IsSendMail
|
req.IsSendMail
|
||||||
);
|
);
|
||||||
|
|
@ -111,6 +113,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
req.Subject,
|
req.Subject,
|
||||||
req.Body,
|
req.Body,
|
||||||
req.Payload,
|
req.Payload,
|
||||||
|
"",
|
||||||
req.IsSendInbox,
|
req.IsSendInbox,
|
||||||
req.IsSendMail
|
req.IsSendMail
|
||||||
);
|
);
|
||||||
|
|
@ -121,8 +124,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
[HttpPost("profiles")]
|
[HttpPost("profiles")]
|
||||||
public async Task<ActionResult<ResponseObject>> UpdatePropertyByUserProfiles([FromBody] NotisRequest req)
|
public async Task<ActionResult<ResponseObject>> UpdatePropertyByUserProfiles([FromBody] NotisRequest req)
|
||||||
{
|
{
|
||||||
await _repositoryNoti.PushNotificationsAsync(
|
await _repositoryNoti.PushNotificationsLinkAsync(
|
||||||
req.ReceiverUserIds.Select(x => Guid.Parse(x)).ToArray(),
|
req.ReceiverUserIds,
|
||||||
req.Subject,
|
req.Subject,
|
||||||
req.Body,
|
req.Body,
|
||||||
req.Payload,
|
req.Payload,
|
||||||
|
|
@ -157,6 +160,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
req.Subject,
|
req.Subject,
|
||||||
req.Body,
|
req.Body,
|
||||||
req.Payload,
|
req.Payload,
|
||||||
|
"",
|
||||||
req.IsSendInbox,
|
req.IsSendInbox,
|
||||||
req.IsSendMail
|
req.IsSendMail
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1683,6 +1683,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
profileId = string.Empty,
|
profileId = string.Empty,
|
||||||
date = r.commandAffectDate,
|
date = r.commandAffectDate,
|
||||||
|
commandId = r.commandId,
|
||||||
amount = r.amount,
|
amount = r.amount,
|
||||||
positionSalaryAmount = r.positionSalaryAmount,
|
positionSalaryAmount = r.positionSalaryAmount,
|
||||||
mouthSalaryAmount = r.mouthSalaryAmount,
|
mouthSalaryAmount = r.mouthSalaryAmount,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using BMA.EHR.Domain.Models.MetaData;
|
using BMA.EHR.Domain.Models.MetaData;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using static BMA.EHR.Application.Repositories.MessageQueue.NotificationRepository;
|
||||||
|
|
||||||
namespace BMA.EHR.Placement.Service.Requests
|
namespace BMA.EHR.Placement.Service.Requests
|
||||||
{
|
{
|
||||||
|
|
@ -8,7 +9,8 @@ namespace BMA.EHR.Placement.Service.Requests
|
||||||
public string Subject { get; set; }
|
public string Subject { get; set; }
|
||||||
public string Body { get; set; }
|
public string Body { get; set; }
|
||||||
public string Payload { get; set; }
|
public string Payload { get; set; }
|
||||||
public string[] ReceiverUserIds { get; set; }
|
// public string NotiLink { get; set; }
|
||||||
|
public NotisLinkRequest[] ReceiverUserIds { get; set; }
|
||||||
public bool IsSendMail { get; set; }
|
public bool IsSendMail { get; set; }
|
||||||
public bool IsSendInbox { get; set; }
|
public bool IsSendInbox { get; set; }
|
||||||
public bool IsSendNotification { get; set; }
|
public bool IsSendNotification { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ namespace BMA.EHR.Placement.Service.Requests
|
||||||
public string? refId { get; set; }
|
public string? refId { get; set; }
|
||||||
public DateTime commandAffectDate { get; set; }
|
public DateTime commandAffectDate { get; set; }
|
||||||
public string? commandNo { get; set; }
|
public string? commandNo { get; set; }
|
||||||
|
public string? commandId { get; set; }
|
||||||
public int commandYear { get; set; }
|
public int commandYear { get; set; }
|
||||||
public string? templateDoc { get; set; }
|
public string? templateDoc { get; set; }
|
||||||
public double? amount { get; set; }
|
public double? amount { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -710,6 +710,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"หนังสือเวียนถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
$"หนังสือเวียนถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
||||||
$"แจ้งข่าวการถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
$"แจ้งข่าวการถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
||||||
payload_str,
|
payload_str,
|
||||||
|
"",
|
||||||
profile.IsSendInbox,
|
profile.IsSendInbox,
|
||||||
profile.IsSendMail
|
profile.IsSendMail
|
||||||
);
|
);
|
||||||
|
|
@ -727,6 +728,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"หนังสือเวียนถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
$"หนังสือเวียนถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
||||||
$"แจ้งข่าวการถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
$"แจ้งข่าวการถึงแก่กรรมของ {item.RetirementDeceased.prefix}{item.RetirementDeceased.firstName} {item.RetirementDeceased.lastName}",
|
||||||
payload_str,
|
payload_str,
|
||||||
|
"",
|
||||||
item.IsSendInbox,
|
item.IsSendInbox,
|
||||||
item.IsSendMail
|
item.IsSendMail
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -505,6 +505,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName} ได้ทำการยื่นขอลาออก",
|
$"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName} ได้ทำการยื่นขอลาออก",
|
||||||
$"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName} ได้ทำการยื่นขอลาออก",
|
$"{retirementResign.prefix}{retirementResign.firstName} {retirementResign.lastName} ได้ทำการยื่นขอลาออก",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
|
|
@ -668,6 +669,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -678,9 +680,9 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (updated.OligarchReject != null)
|
if (updated.OligarchReject != null)
|
||||||
{
|
{
|
||||||
|
|
@ -689,6 +691,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้ทำการขอยกเลิก",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -806,6 +809,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (updated.profileId != null)
|
if (updated.profileId != null)
|
||||||
|
|
@ -815,6 +819,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากการเจ้าหน้าที่",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -853,6 +858,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (updated.profileId != null)
|
if (updated.profileId != null)
|
||||||
|
|
@ -862,6 +868,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากการเจ้าหน้าที่",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -898,6 +905,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (updated.profileId != null)
|
if (updated.profileId != null)
|
||||||
|
|
@ -907,6 +915,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้บังคับบัญชา",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -945,6 +954,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (updated.profileId != null)
|
if (updated.profileId != null)
|
||||||
|
|
@ -954,6 +964,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้บังคับบัญชา",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -989,6 +1000,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (updated.profileId != null)
|
if (updated.profileId != null)
|
||||||
|
|
@ -998,6 +1010,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -1036,17 +1049,19 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ได้รับการอนุมัติจากผู้มีอำนาจ",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (updated.profileId != null)
|
if (updated.profileId != null)
|
||||||
{
|
{
|
||||||
await _repositoryNoti.PushNotificationAsync(
|
await _repositoryNoti.PushNotificationAsync(
|
||||||
Guid.Parse(updated.profileId),
|
Guid.Parse(updated.profileId),
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้มีอำนาจ",
|
||||||
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้มีอำนาจ",
|
$"คำขอลาออกของ {updated.prefix}{updated.firstName} {updated.lastName} ถูกยับยั้งจากผู้มีอำนาจ",
|
||||||
|
"",
|
||||||
"",
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
|
|
||||||
|
|
@ -1454,6 +1469,7 @@ $"คำขอลาออกของ {updated.prefix}{updated.firstName} {upda
|
||||||
$"การนัดสัมภาษณ์เหตุผลการลาออก {req.AppointDate.ToThaiFullDate()}",
|
$"การนัดสัมภาษณ์เหตุผลการลาออก {req.AppointDate.ToThaiFullDate()}",
|
||||||
$"การนัดสัมภาษณ์เหตุผลการลาออก {req.AppointDate.ToThaiFullDate()}",
|
$"การนัดสัมภาษณ์เหตุผลการลาออก {req.AppointDate.ToThaiFullDate()}",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue