แก้ไฟล์ build

This commit is contained in:
Kittapath 2024-05-24 13:49:17 +07:00
parent 9fb82fb45a
commit d6573a6d0c
15 changed files with 1676 additions and 374 deletions

View file

@ -1,6 +1,5 @@
using Amazon.Internal;
using BMA.EHR.Core;
using BMA.EHR.Extensions;
// using BMA.EHR.Core;
using BMA.EHR.Organization.Service.Extensions;
using BMA.EHR.Profile.Service.Services;
using BMA.EHR.Report.Service.Data;
@ -111,7 +110,7 @@ namespace BMA.EHR.Report.Service.Services
.Select(x => new { x.Id, x.ParentId })
.FirstOrDefaultAsync(x => x.Id == id);
if (oc == null)
throw new Exception(GlobalMessages.DataNotFound);
throw new Exception("ไม่พบข้อมูลในระบบ");
ret.Add(oc.Id);
var child = await _context.Organizations.AsQueryable()
@ -143,7 +142,7 @@ namespace BMA.EHR.Report.Service.Services
.Select(x => new { x.Id, x.ParentId, x.OrganizationOrder })
.FirstOrDefaultAsync(x => x.Id == id);
if (oc == null)
throw new Exception(GlobalMessages.DataNotFound);
throw new Exception("ไม่พบข้อมูลในระบบ");
var thisLevel = level;
//var thisLevel = oc.OrganizationOrder.Value;
ret.Add(new OrganizationItem { Id = oc.Id, Order = thisLevel.ToString() });