|
@@ -186,7 +186,11 @@ namespace PTMedicalInsurance
|
|
case "M1":
|
|
case "M1":
|
|
case "Z1":
|
|
case "Z1":
|
|
{
|
|
{
|
|
- Global.pat.adm_Dr = int.Parse(JsonHelper.getDestValue(joInParam, "params[0].admID"));
|
|
+ string admId = JsonHelper.getDestValue(joInParam, "params[0].admID");
|
|
|
|
+ if (!string.IsNullOrEmpty(admId)) {
|
|
|
|
+ Global.pat.adm_Dr = int.Parse(admId);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
PatientService patientService = new PatientService();
|
|
PatientService patientService = new PatientService();
|
|
patientService.readPatientInfo(out outParam);
|
|
patientService.readPatientInfo(out outParam);
|