|
|
@ -55,7 +55,7 @@ namespace Shentun.Peis.ItemTypes |
|
|
MedicalReportTypeId = entity.MedicalReportTypeId, |
|
|
MedicalReportTypeId = entity.MedicalReportTypeId, |
|
|
ParentId = entity.ParentId, |
|
|
ParentId = entity.ParentId, |
|
|
PathCode = await CreatePathCode(entity.ParentId), |
|
|
PathCode = await CreatePathCode(entity.ParentId), |
|
|
LineModeFlag = entity.LineModeFlag |
|
|
|
|
|
|
|
|
IsWrap = entity.IsWrap |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
@ -80,7 +80,7 @@ namespace Shentun.Peis.ItemTypes |
|
|
targetEntity.GuidTypeId = sourceEntity.GuidTypeId; |
|
|
targetEntity.GuidTypeId = sourceEntity.GuidTypeId; |
|
|
targetEntity.IsMergeAsbitem = sourceEntity.IsMergeAsbitem; |
|
|
targetEntity.IsMergeAsbitem = sourceEntity.IsMergeAsbitem; |
|
|
targetEntity.MedicalReportTypeId = sourceEntity.MedicalReportTypeId; |
|
|
targetEntity.MedicalReportTypeId = sourceEntity.MedicalReportTypeId; |
|
|
targetEntity.LineModeFlag = sourceEntity.LineModeFlag; |
|
|
|
|
|
|
|
|
targetEntity.IsWrap = sourceEntity.IsWrap; |
|
|
if (!string.IsNullOrEmpty(sourceEntity.PathCode) && sourceEntity.PathCode != targetEntity.PathCode) |
|
|
if (!string.IsNullOrEmpty(sourceEntity.PathCode) && sourceEntity.PathCode != targetEntity.PathCode) |
|
|
{ |
|
|
{ |
|
|
throw new ArgumentException($"路径编码不支持修改"); |
|
|
throw new ArgumentException($"路径编码不支持修改"); |
|
|
@ -99,6 +99,7 @@ namespace Shentun.Peis.ItemTypes |
|
|
DataHelper.CheckStringIsNull(entity.DisplayName, "名称"); |
|
|
DataHelper.CheckStringIsNull(entity.DisplayName, "名称"); |
|
|
DataHelper.CheckGuidIsDefaultValue(entity.GuidTypeId, "指引类别"); |
|
|
DataHelper.CheckGuidIsDefaultValue(entity.GuidTypeId, "指引类别"); |
|
|
DataHelper.CheckCharIsYOrN(entity.IsMergeAsbitem, "是否合并组合项目"); |
|
|
DataHelper.CheckCharIsYOrN(entity.IsMergeAsbitem, "是否合并组合项目"); |
|
|
|
|
|
DataHelper.CheckCharIsYOrN(entity.IsWrap, "项目结果行模式"); |
|
|
DataHelper.CheckGuidIsDefaultValue(entity.MedicalReportTypeId, "体检报告类别"); |
|
|
DataHelper.CheckGuidIsDefaultValue(entity.MedicalReportTypeId, "体检报告类别"); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|