noti วินัย

This commit is contained in:
kittapath 2025-02-19 17:56:02 +07:00
parent 9e513d3f1a
commit ae990c0c5f
21 changed files with 244 additions and 1508 deletions

View file

@ -583,13 +583,6 @@ namespace BMA.EHR.Placement.Service.Controllers
posTypeName = placementTransfer.posTypeNameOld,
});
}
// await _repositoryNoti.PushNotificationAsync(
// Guid.Parse("08dbc953-6268-4e2c-80a3-aca65eedc6d0"),
// $"{profile.Prefix?.Name}{profile.FirstName} {profile.LastName} ได้ทำการยื่นคำขอโอน",
// $"{profile.Prefix?.Name}{profile.FirstName} {profile.LastName} ได้ทำการยื่นคำขอโอนไปยัง {req.Organization}",
// "",
// true
// );
await _context.SaveChangesAsync();
return Success(placementTransfer.Id);
@ -661,20 +654,6 @@ namespace BMA.EHR.Placement.Service.Controllers
uppdated.LastUpdateFullName = FullName ?? "System Administrator";
uppdated.LastUpdateUserId = UserId ?? "";
uppdated.LastUpdatedAt = DateTime.Now;
// await _repositoryNoti.PushNotificationAsync(
// Guid.Parse("08dbc953-6268-4e2c-80a3-aca65eedc6d0"),
// $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} ได้ทำการยื่นคำขอโอนได้รับการอนุมัติ",
// $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} ได้ทำการยื่นคำขอโอนไปยัง {uppdated.Organization}ได้รับการอนุมัติ",
// "",
// true
// );
// await _repositoryNoti.PushNotificationAsync(
// Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6"),
// $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} ได้ทำการยื่นคำขอโอน",
// $"{uppdated.Profile.Prefix?.Name}{uppdated.Profile.FirstName} {uppdated.Profile.LastName} ได้ทำการยื่นคำขอโอนไปยัง {uppdated.Organization}ได้รับการอนุมัติ",
// "",
// true
// );
await _context.SaveChangesAsync();
return Success();