9 changed files with 467 additions and 88 deletions
-
71src/Shentun.Peis.Application.Contracts/PatientRegisters/CreatePatientRegisterDto.cs
-
6src/Shentun.Peis.Application.Contracts/Permissions/PeisPermissionDefinitionProvider.cs
-
11src/Shentun.Peis.Application.Contracts/Permissions/PeisPermissions.cs
-
219src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs
-
7src/Shentun.Peis.Application/PeisApplicationAutoMapperProfile.cs
-
2src/Shentun.Peis.Domain.Shared/Localization/Peis/en.json
-
78src/Shentun.Peis.Domain/PatientRegisterExters/CreatePatientRegisterExterArg.cs
-
85src/Shentun.Peis.Domain/PatientRegisterExters/PatientRegisterExterManager.cs
-
76src/Shentun.Peis.Domain/PatientRegisterExters/UpdatePatientRegisterExterArg.cs
@ -0,0 +1,78 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Shentun.Peis.Models |
|||
{ |
|||
public class CreatePatientRegisterExterArg |
|||
{ |
|||
public Guid PatientRegisterId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 0-高原 1-健康
|
|||
/// </summary>
|
|||
public char? QztlType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsCw { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsCy { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsGt { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsMain { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsWh { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsFj { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? IsQztlImport { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? UploadQztlFlag { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Planuserid { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Remark2 { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Remark3 { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Remark4 { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,85 @@ |
|||
using Shentun.Peis.CustomerOrgs; |
|||
using Shentun.Peis.Enums; |
|||
using Shentun.Peis.Models; |
|||
using Shentun.Peis.OrganizationUnits; |
|||
using Shentun.Peis.PatientRegisters; |
|||
using Shentun.Utilities; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Domain.Entities; |
|||
using Volo.Abp.Domain.Services; |
|||
using Volo.Abp.Guids; |
|||
|
|||
namespace Shentun.Peis.PatientRegisterExters |
|||
{ |
|||
public class PatientRegisterExterManager : DomainService |
|||
{ |
|||
public PatientRegisterExterManager() { } |
|||
|
|||
public PatientRegisterExter CreateAsync(CreatePatientRegisterExterArg entity) |
|||
{ |
|||
|
|||
DataHelper.CheckEntityIsNull(entity); |
|||
if (entity.PatientRegisterId == Guid.Empty) |
|||
throw new UserFriendlyException("PatientRegisterId不能为空"); |
|||
|
|||
var patientRegisterExterEnt = new PatientRegisterExter() |
|||
{ |
|||
PatientRegisterId = entity.PatientRegisterId, |
|||
IsQztlImport = entity.IsQztlImport, |
|||
Planuserid = entity.Planuserid, |
|||
QztlIsCw = entity.QztlIsCw, |
|||
QztlIsCy = entity.QztlIsCy, |
|||
QztlIsFj = entity.QztlIsFj, |
|||
QztlIsGt = entity.QztlIsGt, |
|||
QztlIsMain = entity.QztlIsMain, |
|||
QztlIsWh = entity.QztlIsWh, |
|||
QztlType = entity.QztlType, |
|||
Remark2 = entity.Remark2, |
|||
Remark3 = entity.Remark3, |
|||
Remark4 = entity.Remark4, |
|||
UploadQztlFlag = entity.UploadQztlFlag |
|||
}; |
|||
|
|||
|
|||
return patientRegisterExterEnt; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 更新
|
|||
/// </summary>
|
|||
/// <param name="sourceEntity">Dto实体映射数据</param>
|
|||
/// <param name="targetEntity">原始数据</param>
|
|||
/// <returns></returns>
|
|||
public void UpdateAsync( |
|||
UpdatePatientRegisterExterArg sourceEntity, |
|||
PatientRegisterExter targetEntity |
|||
) |
|||
{ |
|||
DataHelper.CheckEntityIsNull(sourceEntity); |
|||
DataHelper.CheckEntityIsNull(targetEntity); |
|||
|
|||
|
|||
targetEntity.IsQztlImport = sourceEntity.IsQztlImport; |
|||
targetEntity.Planuserid = sourceEntity.Planuserid; |
|||
targetEntity.QztlIsCw = sourceEntity.QztlIsCw; |
|||
targetEntity.QztlIsCy = sourceEntity.QztlIsCy; |
|||
targetEntity.QztlIsFj = sourceEntity.QztlIsFj; |
|||
targetEntity.QztlIsGt = sourceEntity.QztlIsGt; |
|||
targetEntity.QztlIsMain = sourceEntity.QztlIsMain; |
|||
targetEntity.QztlIsWh = sourceEntity.QztlIsWh; |
|||
targetEntity.QztlType = sourceEntity.QztlType; |
|||
targetEntity.Remark2 = sourceEntity.Remark2; |
|||
targetEntity.Remark3 = sourceEntity.Remark3; |
|||
targetEntity.Remark4 = sourceEntity.Remark4; |
|||
targetEntity.UploadQztlFlag = sourceEntity.UploadQztlFlag; |
|||
|
|||
|
|||
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,76 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Shentun.Peis.PatientRegisterExters |
|||
{ |
|||
public class UpdatePatientRegisterExterArg |
|||
{ |
|||
/// <summary>
|
|||
/// 0-高原 1-健康
|
|||
/// </summary>
|
|||
public char? QztlType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsCw { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsCy { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsGt { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsMain { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsWh { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? QztlIsFj { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? IsQztlImport { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public char? UploadQztlFlag { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Planuserid { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Remark2 { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Remark3 { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展
|
|||
/// </summary>
|
|||
public string Remark4 { get; set; } |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue