From 9806a6e5a28457b5112a336f1585699c96430fde Mon Sep 17 00:00:00 2001 From: Kittapath Date: Mon, 28 Aug 2023 09:47:53 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=9F=E0=B8=B4=E0=B8=A7=E0=B8=88=E0=B8=B1=E0=B8=94=E0=B8=AA?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/InsigniaManageController.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/BMA.EHR.Insignia.Service/Controllers/InsigniaManageController.cs b/BMA.EHR.Insignia.Service/Controllers/InsigniaManageController.cs index e3561122..cbe5aca2 100644 --- a/BMA.EHR.Insignia.Service/Controllers/InsigniaManageController.cs +++ b/BMA.EHR.Insignia.Service/Controllers/InsigniaManageController.cs @@ -526,6 +526,31 @@ namespace BMA.EHR.Insignia.Service.Controllers ReturnReason = p.ReturnReason, LastUpdatedAt = p.LastUpdatedAt, CreatedAt = p.CreatedAt, + + InsigniaNoteProfileId = p.InsigniaNoteProfile.Id, + Prefix = p.InsigniaNoteProfile.Profile.Prefix == null ? null : p.InsigniaNoteProfile.Profile.Prefix.Name, + Position = p.InsigniaNoteProfile.Profile.Position == null ? null : p.InsigniaNoteProfile.Profile.Position.Name, + p.InsigniaNoteProfile.Profile.CitizenId, + p.InsigniaNoteProfile.Profile.ProfileType, + FullName = $"{p.InsigniaNoteProfile.Profile.FirstName} {p.InsigniaNoteProfile.Profile.LastName}", + RequestInsignia = p.InsigniaNoteProfile.RequestInsignia == null ? null : p.InsigniaNoteProfile.RequestInsignia.Name, + RequestInsigniaId = p.InsigniaNoteProfile.RequestInsignia == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.InsigniaNoteProfile.RequestInsignia.Id, + RequestInsigniaShortName = p.InsigniaNoteProfile.RequestInsignia == null ? null : p.InsigniaNoteProfile.RequestInsignia.ShortName, + p.InsigniaNoteProfile.DateReceive, + p.InsigniaNoteProfile.OrganizationOrganizationSend, + p.InsigniaNoteProfile.OrganizationOrganizationReceive, + InsigniaNoteProfileStatus = p.InsigniaNoteProfile.Status, + p.InsigniaNoteProfile.Issue, + p.InsigniaNoteProfile.Date, + p.InsigniaNoteProfile.VolumeNo, + p.InsigniaNoteProfile.Section, + p.InsigniaNoteProfile.Page, + p.InsigniaNoteProfile.No, + p.InsigniaNoteProfile.DatePayment, + p.InsigniaNoteProfile.TypePayment, + p.InsigniaNoteProfile.Address, + p.InsigniaNoteProfile.Number, + p.InsigniaNoteProfile.Salary, }) .ToListAsync(); return Success(data);