|
|
|
@ -778,9 +778,17 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
patient_register_no_rule_coding = spv_tjzx.Where(m => m.SysParmId == "patient_register_no_rule_coding").FirstOrDefault().ParmValue; |
|
|
|
} |
|
|
|
if (string.IsNullOrWhiteSpace(patient_register_no_rule_coding)) |
|
|
|
{ |
|
|
|
var patient_register_no_rule_coding_ent = spv_global.Where(m => m.SysParmId == "patient_register_no_rule_coding").FirstOrDefault(); |
|
|
|
if (patient_register_no_rule_coding_ent == null) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("全局系统参数patient_register_no_rule_coding未配置"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
//获取全局配置
|
|
|
|
patient_register_no_rule_coding = spv_global.Where(m => m.SysParmId == "patient_register_no_rule_coding").FirstOrDefault().ParmValue; |
|
|
|
patient_register_no_rule_coding = patient_register_no_rule_coding_ent.ParmValue; |
|
|
|
} |
|
|
|
} |
|
|
|
if (string.IsNullOrWhiteSpace(patient_register_no_rule_coding)) |
|
|
|
{ |
|
|
|
@ -794,9 +802,18 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
patient_register_no_rule_prefix = spv_tjzx.Where(m => m.SysParmId == "patient_register_no_rule_prefix").FirstOrDefault().ParmValue; |
|
|
|
} |
|
|
|
if (string.IsNullOrWhiteSpace(patient_register_no_rule_prefix)) |
|
|
|
{ |
|
|
|
var patient_register_no_rule_prefix_ent = spv_global.Where(m => m.SysParmId == "patient_register_no_rule_prefix").FirstOrDefault(); |
|
|
|
if (patient_register_no_rule_prefix_ent == null) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("全局系统参数patient_register_no_rule_prefix未配置"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
//获取全局配置
|
|
|
|
patient_register_no_rule_prefix = spv_global.Where(m => m.SysParmId == "patient_register_no_rule_prefix").FirstOrDefault().ParmValue; |
|
|
|
patient_register_no_rule_prefix = patient_register_no_rule_prefix_ent.ParmValue; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (!string.IsNullOrEmpty(patient_register_no_rule_prefix)) |
|
|
|
{ |
|
|
|
@ -810,9 +827,18 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(patient_register_no_rule_tail_len)) |
|
|
|
{ |
|
|
|
var patient_register_no_rule_tail_len_ent = spv_global.Where(m => m.SysParmId == "patient_register_no_rule_tail_len").FirstOrDefault(); |
|
|
|
if (patient_register_no_rule_tail_len_ent == null) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("全局系统参数patient_register_no_rule_tail_len未配置"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
//获取全局配置
|
|
|
|
patient_register_no_rule_tail_len = spv_global.Where(m => m.SysParmId == "patient_register_no_rule_tail_len").FirstOrDefault().ParmValue; |
|
|
|
patient_register_no_rule_tail_len = patient_register_no_rule_tail_len_ent.ParmValue; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(patient_register_no_rule_tail_len)) |
|
|
|
|