Browse Source

xiugai

bjmzak
wxd 2 years ago
parent
commit
13a44fedc3
  1. 2
      src/Shentun.Peis.Application.Contracts/CustomerOrgs/CreateCustomerOrgDto.cs
  2. 7
      src/Shentun.Peis.Application/CustomerOrgRegisters/CustomerOrgRegisterAppService.cs
  3. 9
      src/Shentun.Peis.Application/CustomerOrgs/CustomerOrgAppService.cs
  4. 4
      src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs
  5. 4
      src/Shentun.Peis.Application/RegisterAsbitems/RegisterAsbitemAppService.cs

2
src/Shentun.Peis.Application.Contracts/CustomerOrgs/CreateCustomerOrgDto.cs

@ -71,7 +71,7 @@ namespace Shentun.Peis.CustomerOrgs
/// <summary>
/// 单位性质
/// </summary>
public Guid OrgTypeId { get; set; }
public Guid? OrgTypeId { get; set; }

7
src/Shentun.Peis.Application/CustomerOrgRegisters/CustomerOrgRegisterAppService.cs

@ -195,13 +195,14 @@ namespace Shentun.Peis.CustomerOrgRegisters
/// </summary>
/// <param name="CustomerOrgId"></param>
/// <returns></returns>
[HttpGet("api/app/customerorgregister/getlistincustomerorgid")]
public async Task<List<CustomerOrgRegisterDto>> GetListInCustomerOrgIdAsync(Guid CustomerOrgId)
{
var entlist = await Repository.GetListAsync();
if (CustomerOrgId != Guid.Empty)
entlist = entlist.Where(m => m.CustomerOrgId == CustomerOrgId).ToList();
//if (CustomerOrgId != Guid.Empty)
entlist = entlist.Where(m => m.CustomerOrgId == CustomerOrgId).ToList();
var userList = await _userRepository.GetListAsync();
@ -223,7 +224,7 @@ namespace Shentun.Peis.CustomerOrgRegisters
CustomerOrgId = s.CustomerOrgId,
CreatorName = EntityHelper.GetUserNameNoSql(userList, s.CreatorId),
LastModifierName = EntityHelper.GetUserNameNoSql(userList, s.LastModifierId)
}).ToList();
}).OrderBy(o=>o.MedicalTimes).ToList();
return entdto;

9
src/Shentun.Peis.Application/CustomerOrgs/CustomerOrgAppService.cs

@ -126,6 +126,7 @@ namespace Shentun.Peis.CustomerOrgs
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("api/app/customerorg/create")]
public override async Task<CustomerOrgDto> CreateAsync(CreateCustomerOrgDto input)
{
var createEntity = ObjectMapper.Map<CreateCustomerOrgDto, CustomerOrg>(input);
@ -209,15 +210,16 @@ namespace Shentun.Peis.CustomerOrgs
if (dataList.Count > 0 && !string.IsNullOrEmpty(Filter))
dataList = dataList.Where(m => m.DisplayName.Contains(Filter) || m.ShortName.Contains(Filter)).ToList();
return dataList;
return dataList.OrderBy(o=>o.DisplayOrder).ToList();
}
/// <summary>
/// 获取组织树型结构
/// </summary>
/// <param name="IsHidePerson">是否隐藏个人信息 1 隐藏 0隐藏 默认为0</param>
/// <param name="IsHidePerson">是否隐藏个人信息 1 隐藏 0隐藏 默认为0</param>
/// <param name="Filter">名字搜索,支持模糊查找</param>
/// <returns></returns>
[HttpGet("api/app/customerorg/getbycodeall")]
public async Task<List<TreeChildViewDto>> GetByCodeAllAsync(string Filter, int IsHidePerson = 0)
{
var dataList = await Repository.GetListAsync();
@ -227,7 +229,8 @@ namespace Shentun.Peis.CustomerOrgs
{
dataList = dataList.Where(m => m.Id != Guid.Empty).ToList();
}
var items = from p in dataList
var items = from p in dataList.OrderBy(o => o.DisplayOrder)
select new TreeChildViewDto()
{
Id = p.Id,

4
src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs

@ -603,7 +603,7 @@ namespace Shentun.Peis.PatientRegisters
/// <returns></returns>
public override async Task DeleteAsync(Guid id)
{
await _manager.CheckDeleteAsync(id);
await _manager.CheckAndDeleteAsync(id);
}
@ -623,7 +623,7 @@ namespace Shentun.Peis.PatientRegisters
{
foreach (var ent in entlist)
{
await _manager.CheckDeleteAsync(ent.Id);
await _manager.CheckAndDeleteAsync(ent.Id);
}
}

4
src/Shentun.Peis.Application/RegisterAsbitems/RegisterAsbitemAppService.cs

@ -734,5 +734,9 @@ namespace Shentun.Peis.RegisterAsbitems
#endregion
#region 合并项目、取消合并
#endregion
}
}
Loading…
Cancel
Save