|
|
|
@ -107,7 +107,7 @@ namespace Shentun.Peis.RegisterChecks |
|
|
|
registerCheckEnt.CompleteFlag = CompleteFlag; |
|
|
|
if (registerCheckEnt.CompleteFlag == RegisterCheckCompleteFlag.UnChecked) |
|
|
|
{ |
|
|
|
registerCheckEnt.CheckDoctorId = null; |
|
|
|
//registerCheckEnt.CheckDoctorId = null; //保留医生 删除结果时
|
|
|
|
registerCheckEnt.ExecOrganizationUnitId = null; |
|
|
|
registerCheckEnt.CheckDate = null; |
|
|
|
} |
|
|
|
@ -210,13 +210,13 @@ namespace Shentun.Peis.RegisterChecks |
|
|
|
} |
|
|
|
entity.CheckDoctorId = checkDoctorId; |
|
|
|
entity.CompleteFlag = RegisterCheckCompleteFlag.Checked; |
|
|
|
if(execOrganizationUnitId != null && execOrganizationUnitId != Guid.Empty) |
|
|
|
if (execOrganizationUnitId != null && execOrganizationUnitId != Guid.Empty) |
|
|
|
{ |
|
|
|
entity.ExecOrganizationUnitId = execOrganizationUnitId; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if(Guid.TryParse(entity.CheckDoctorId,out var checkDoctorIdGuid)) |
|
|
|
if (Guid.TryParse(entity.CheckDoctorId, out var checkDoctorIdGuid)) |
|
|
|
{ |
|
|
|
var identityUserOrganizationUnit = _identityUserOrganizationUnitRepository.GetAsync(o => o.UserId == checkDoctorIdGuid).Result; |
|
|
|
entity.ExecOrganizationUnitId = identityUserOrganizationUnit.OrganizationUnitId; |
|
|
|
@ -488,7 +488,7 @@ namespace Shentun.Peis.RegisterChecks |
|
|
|
//获取全局配置
|
|
|
|
check_request_no_rule_prefix = check_request_no_rule_prefix_ent.ParmValue; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(check_request_no_rule_tail_len)) |
|
|
|
@ -530,8 +530,8 @@ namespace Shentun.Peis.RegisterChecks |
|
|
|
{ |
|
|
|
maxnum = (Convert.ToInt32(primarykeyBuilderEnt.SerialNo) + 1).ToString(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
primarykeyBuilderEnt.SerialNo = maxnum; //更新新的序列号
|
|
|
|
|
|
|
|
CheckRequestNo = check_request_no_rule_prefix + date + maxnum.PadLeft(Convert.ToInt32(check_request_no_rule_tail_len), '0'); |
|
|
|
@ -551,7 +551,7 @@ namespace Shentun.Peis.RegisterChecks |
|
|
|
SerialNo = maxnum |
|
|
|
}; |
|
|
|
|
|
|
|
await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt,true); |
|
|
|
await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt, true); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
} |
|
|
|
@ -578,7 +578,7 @@ namespace Shentun.Peis.RegisterChecks |
|
|
|
SerialNo = maxnum |
|
|
|
}; |
|
|
|
|
|
|
|
await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt,true); |
|
|
|
await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt, true); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|