รายงานลัญชี 1-2-3 และรายงาน กพ7
This commit is contained in:
parent
1dc973cc73
commit
a15f2a1081
16 changed files with 1893 additions and 585 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using BMA.EHR.Profile.Service.Models;
|
||||
using Amazon.S3.Model.Internal.MarshallTransformations;
|
||||
using BMA.EHR.Profile.Service.Models;
|
||||
using BMA.EHR.Report.Service.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Text.RegularExpressions;
|
||||
|
|
@ -115,6 +116,33 @@ namespace BMA.EHR.Profile.Service.Services
|
|||
}
|
||||
}
|
||||
|
||||
public string GetOrganizationName(Guid id)
|
||||
{
|
||||
try
|
||||
{
|
||||
var organizations = _context.Organizations.ToList();
|
||||
var organizationOrganizations = _context.OrganizationOrganizations.ToList();
|
||||
|
||||
|
||||
var oc = (from o in organizations
|
||||
join oc_name in organizationOrganizations on o.OrganizationOrganizationId equals oc_name.Id
|
||||
select new
|
||||
{
|
||||
Id = o.Id,
|
||||
Name = oc_name.Name,
|
||||
//o.IsActive,
|
||||
o.ParentId,
|
||||
IsRoot = o.ParentId == null
|
||||
}).FirstOrDefault(x => x.Id == id);
|
||||
|
||||
return oc == null ? "" : oc.Name;
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public string GetOrganizationNameFullPath(Guid id, bool showRoot = false, bool descending = false)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue