Browse Source

预约

bjmzak
DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
ad8c1dfc0f
  1. 118
      src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs
  2. 17
      src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs
  3. 21
      src/Shentun.Peis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs
  4. 3
      src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs
  5. 23
      src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs

118
src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs

@ -0,0 +1,118 @@

using System;
using System.Collections.Generic;
using System.Text;
namespace Shentun.Peis.AppointPatientRegisters
{
/// <summary>
/// 预约信息
/// </summary>
public class AppointPatientRegisterDto
{
/// <summary>
/// 预约登记ID
/// </summary>
public Guid AppointPatientRegisterId { get; set; }
/// <summary>
/// 人员ID
/// </summary>
public Guid PersonId { get; set; }
/// <summary>
/// 姓名
/// </summary>
public string PersonName { get; set; }
/// <summary>
/// 身份证号
/// </summary>
public string? IdNo { get; set; }
/// <summary>
/// 性别ID
/// </summary>
public char SexId { get; set; }
/// <summary>
/// 性别名称
/// </summary>
public string SexName { get; set; }
/// <summary>
/// 婚姻状况ID
/// </summary>
public char MaritalStatusId { get; set; }
/// <summary>
/// 婚姻状况名称
/// </summary>
public string MaritalStatusName { get; set; }
/// <summary>
/// 单位ID
/// </summary>
public Guid CustomerOrgId { get; set; }
/// <summary>
/// 单位名称
/// </summary>
public string CustomerOrgName { get; set; }
public string ChildCustomerOrgName { get; set; }
/// <summary>
/// 单位分组ID
/// </summary>
public Guid? CustomerOrgGroupId { get; set; }
/// <summary>
/// 单位分组名称
/// </summary>
public string CustomerOrgGroupName { get; set; }
/// <summary>
/// 套餐ID
/// </summary>
public Guid? MedicalPackageId { get; set; }
/// <summary>
/// 套餐名称
/// </summary>
public string MedicalPackageName { get; set; }
/// <summary>
/// 完成标志
/// </summary>
public char CompleteFlag { get; set; }
/// <summary>
/// 预约日期
/// </summary>
public DateTime AppointDate { get; set; }
/// <summary>
/// 备注
/// </summary>
public string? Remark { get; set; }
/// <summary>
/// 体检中心ID
/// </summary>
public Guid MedicalCenterId { get; set; }
/// <summary>
/// 单位登记ID
/// </summary>
public Guid CustomerOrgRegisterId { get; set; }
/// <summary>
/// 备孕标志
/// </summary>
public char PregnantFlag { get; set; }
public string PregnantFlagName { get; set; }
/// <summary>
/// 身高
/// </summary>
public decimal? Height { get; set; }
/// <summary>
/// 体重
/// </summary>
public decimal? Weight { get; set; }
}
}

17
src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterInputDto.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Shentun.Peis.AppointPatientRegisters
{
public class AppointPatientRegisterInputDto
{
public Guid? MedicalCenterId { get; set; }
public string IdNo { get; set; }
public string MobilePhone { get; set; }
public DateTime? AppointStartDate { get; set; }
public DateTime? AppointStopDate { get; set; }
}
}

21
src/Shentun.Peis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs

@ -0,0 +1,21 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
namespace Shentun.Peis.AppointPatientRegisters
{
[ApiExplorerSettings(GroupName = "Work")]
[Authorize]
public class AppointPatientRegisterAppService : ApplicationService
{
//public async Task<List<AppointPatientRegisterDto>> GetListByIdNoOrMobilePhoneAsync(AppointPatientRegisterInputDto input)
//{
//}
}
}

3
src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs

@ -26,5 +26,8 @@ namespace Shentun.Peis.Enums
[Description("传输数据给WebPeis")] [Description("传输数据给WebPeis")]
public const string TranToWebPeis = "06"; public const string TranToWebPeis = "06";
[Description("网上预约查询")]
public const string WebAppoint = "07";
} }
} }

23
src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs

@ -10,6 +10,7 @@ using Volo.Abp.Domain.Repositories;
using Volo.Abp; using Volo.Abp;
using Volo.Abp.Domain.Services; using Volo.Abp.Domain.Services;
using Shentun.Peis.HelperDto; using Shentun.Peis.HelperDto;
using System.Reflection;
namespace Shentun.Peis.ThirdInterfaces namespace Shentun.Peis.ThirdInterfaces
{ {
@ -118,15 +119,25 @@ namespace Shentun.Peis.ThirdInterfaces
DataHelper.CheckStringIsNull(entity.DisplayName, "名称"); DataHelper.CheckStringIsNull(entity.DisplayName, "名称");
DataHelper.CheckStringIsNull(entity.ParmValue, "配置参数"); DataHelper.CheckStringIsNull(entity.ParmValue, "配置参数");
DataHelper.CheckCharIsYOrN(entity.IsActive, "是否启用"); DataHelper.CheckCharIsYOrN(entity.IsActive, "是否启用");
if (entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.LisRequest
&& entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ChargeRequest
&& entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportLisResult
&& entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportPacsResult
&& entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportPatientRegister
&& entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.TranToWebPeis)
Type type = typeof(ThirdInterfaceTypeFlag);
//从规定的约束内搜索字段
//约束有是静态成员,是公共成员,和返回父级的公共静态成员,
FieldInfo[] fields = type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy);
if (fields.Where(o=>o.GetValue(null) == entity.ThirdInterfaceType).Count() == 0)
{ {
throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值"); throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值");
} }
//if (entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.LisRequest
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ChargeRequest
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportLisResult
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportPacsResult
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportPatientRegister
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.TranToWebPeis
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.WebAppoint)
//{
// throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值");
//}
} }
} }
} }
Loading…
Cancel
Save