|
|
|
@ -1102,7 +1102,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
public async Task UpdatePatientRegisterGuidePrintTimesManyAsync(List<Guid> Ids) |
|
|
|
{ |
|
|
|
var entlist = await _repository.GetListAsync(m => Ids.Contains(m.Id)); |
|
|
|
entlist.ForEach(f => f.GuidePrintTimes = (f.GuidePrintTimes == null ? (short?)1 : (short?)(f.GuidePrintTimes + 1))); |
|
|
|
entlist.ForEach(f => f.GuidePrintTimes = (short)(f.GuidePrintTimes + 1)); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -1114,7 +1114,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
public async Task UpdatePatientRegisterReportPrintTimesManyAsync(List<Guid> Ids) |
|
|
|
{ |
|
|
|
var entlist = await _repository.GetListAsync(m => Ids.Contains(m.Id)); |
|
|
|
entlist.ForEach(f => f.ReportPrintTimes = (f.ReportPrintTimes == null ? (short?)1 : (short?)(f.ReportPrintTimes + 1))); |
|
|
|
entlist.ForEach(f => f.ReportPrintTimes = (short)(f.ReportPrintTimes + 1)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1254,7 +1254,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
|
|
|
|
#region 转换性别、出生地、婚姻状况、民族数据、单位分组、人员类别、体检类别、性激素期限
|
|
|
|
//转换性别ID
|
|
|
|
char? SexId = null; |
|
|
|
char SexId = 'U'; |
|
|
|
if (!DataHelper.IsNullOrEmpty(input.SexName)) |
|
|
|
{ |
|
|
|
var SexEnt = await _sexRepository.FirstOrDefaultAsync(m => m.DisplayName == input.SexName); |
|
|
|
@ -1285,7 +1285,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
|
|
|
|
|
|
|
|
//婚姻状况
|
|
|
|
char? MaritalStatusId = null; |
|
|
|
char MaritalStatusId = '9'; |
|
|
|
if (!DataHelper.IsNullOrEmpty(input.MaritalStatusName)) |
|
|
|
{ |
|
|
|
var MaritalStatusEnt = await _maritalStatusRepository.FirstOrDefaultAsync(m => m.DisplayName == input.MaritalStatusName); |
|
|
|
@ -1327,7 +1327,6 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
//单位分组信息
|
|
|
|
|
|
|
|
if (CustomerOrgGroupEnt.ForSexId != ForSexFlag.All |
|
|
|
&& SexId != null |
|
|
|
&& CustomerOrgGroupEnt.ForSexId != SexId) |
|
|
|
{ |
|
|
|
msg = new CreatePatientRegisterExcelDto { code = -1, msg = "[数据:" + input.PatientName + "的性别不符合所选的单位分组]=>" + "导入失败" }; |
|
|
|
@ -1523,7 +1522,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
var PatientEnt_New = await _patientManager.CreateAsync(input.OrganizationUnitId.Value, createPatientEntity); |
|
|
|
var PatientEnt_New = await _patientManager.CreateAsync(input.OrganizationUnitId, createPatientEntity); |
|
|
|
if (PatientEnt_New != null) |
|
|
|
PatientId = PatientEnt_New.Id; |
|
|
|
} |
|
|
|
@ -1608,20 +1607,20 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
AuditDate = PageHelper.ConvertDate(input.AuditDate), |
|
|
|
AuditDoctor = input.AuditDoctor, |
|
|
|
BirthDate = PageHelper.ConvertDate(input.BirthDate), |
|
|
|
CompleteFlag = input.CompleteFlag, |
|
|
|
CompleteFlag = input.CompleteFlag.Value, |
|
|
|
CustomerOrgGroupId = CustomerOrgGroupId, |
|
|
|
CustomerOrgId = input.CustomerOrgId, |
|
|
|
CustomerOrgRegisterId = input.CustomerOrgRegisterId, |
|
|
|
GuidePrintTimes = input.GuidePrintTimes, |
|
|
|
GuidePrintTimes = input.GuidePrintTimes.Value, |
|
|
|
InterposeMeasure = input.InterposeMeasure, |
|
|
|
IsAudit = input.IsAudit, |
|
|
|
IsAudit = input.IsAudit.Value, |
|
|
|
IsLock = input.IsLock, |
|
|
|
IsMedicalStart = input.IsMedicalStart, |
|
|
|
IsNameHide = input.IsNameHide, |
|
|
|
IsPhoneFollow = input.IsPhoneFollow, |
|
|
|
IsRecoverGuide = input.IsRecoverGuide, |
|
|
|
IsUpload = input.IsUpload, |
|
|
|
IsVip = input.IsVip, |
|
|
|
IsMedicalStart = input.IsMedicalStart.Value, |
|
|
|
IsNameHide = input.IsNameHide.Value, |
|
|
|
IsPhoneFollow = input.IsPhoneFollow.Value, |
|
|
|
IsRecoverGuide = input.IsRecoverGuide.Value, |
|
|
|
IsUpload = input.IsUpload.Value, |
|
|
|
IsVip = input.IsVip.Value, |
|
|
|
JobCardNo = input.JobCardNo, |
|
|
|
JobPost = input.JobPost, |
|
|
|
JobTitle = input.JobTitle, |
|
|
|
@ -1635,11 +1634,11 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
OrganizationUnitId = input.OrganizationUnitId, |
|
|
|
PatientId = PatientId, |
|
|
|
PatientName = input.PatientName, |
|
|
|
PatientRegisterNo = await _patientRegisterManager.CreatePatientRegisterNo(input.OrganizationUnitId.Value), |
|
|
|
PatientRegisterNo = await _patientRegisterManager.CreatePatientRegisterNo(input.OrganizationUnitId), |
|
|
|
PersonnelTypeId = PersonnelTypeId, |
|
|
|
Photo = input.Photo, |
|
|
|
Remark = input.Remark, |
|
|
|
ReportPrintTimes = input.ReportPrintTimes, |
|
|
|
ReportPrintTimes = input.ReportPrintTimes.Value, |
|
|
|
Salesman = input.Salesman, |
|
|
|
SexHormoneTermId = SexHormoneTermId, |
|
|
|
SexId = SexId, |
|
|
|
@ -1672,7 +1671,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
|
|
|
|
foreach (var item in customerOrgGroupDetailList) |
|
|
|
{ |
|
|
|
await _registerAsbitemManager.CreateAsync(input.OrganizationUnitId.Value, item, true); |
|
|
|
await _registerAsbitemManager.CreateAsync(input.OrganizationUnitId, item, true); |
|
|
|
} |
|
|
|
|
|
|
|
#endregion
|
|
|
|
@ -2137,7 +2136,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
|
|
|
|
foreach (var item in newRegisterAsbitemList) |
|
|
|
{ |
|
|
|
await _registerAsbitemManager.CreateAsync(patientRegisterEnt.OrganizationUnitId.Value, item, true); |
|
|
|
await _registerAsbitemManager.CreateAsync(patientRegisterEnt.OrganizationUnitId, item, true); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
@ -2412,7 +2411,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
|
|
|
|
if (input.CompleteFlag != null) |
|
|
|
{ |
|
|
|
patientRegisterList.ForEach(f => f.CompleteFlag = input.CompleteFlag); |
|
|
|
patientRegisterList.ForEach(f => f.CompleteFlag = input.CompleteFlag.Value); |
|
|
|
IsUpdate = true; |
|
|
|
} |
|
|
|
|
|
|
|
|