Browse Source

perf: 读卡提示优化

zhengjie 1 year ago
parent
commit
4fe4f8275f

+ 0 - 1
Business/Basic/PatientService.cs

@@ -44,7 +44,6 @@ namespace PTMedicalInsurance.Business
             //打开读卡窗口,操作员选择读卡类型后进行读卡器读卡,再进行1101获取参保信息
             if (readCard(out outParam) != 0)
             {
-                outParam = JsonHelper.setExceptionJson(-100, "读卡失败!", outParam).ToString();
                 return -1;
             }
             else

+ 2 - 2
Business/Basic/ReadPatientProcess.cs

@@ -20,7 +20,7 @@ namespace PTMedicalInsurance.Business
             int ret = patientService.readPatientInfo(out patInfo);
             if (ret != 0)
             {
-                return Error(patInfo);
+                return Exception(ret,"获取基本信息",patInfo);
             }
 
             if ("RegisterOP".Equals(Global.operationType))
@@ -28,7 +28,7 @@ namespace PTMedicalInsurance.Business
                 // 门诊挂号(医疗类别/统筹类别)
                 Global.pat.medType = "12";
             }
-            Global.writeLog("医疗类别:" + Global.pat.medType);
+            //Global.writeLog("医疗类别:" + Global.pat.medType);
 
             // 返回:data、mdtrtinfo、diseinfo、settlement
             if (hBus.showOutPatRegisterForm(patInfo, out outParam) != 0)

+ 1 - 1
Business/Local/ReadCardProcess.cs

@@ -88,7 +88,7 @@ namespace PTMedicalInsurance.Business
                             trade1101(out outParam);
                             return Success();
                         }
-                        return Error("读卡失败:"+outParam);
+                        return Exception(-1, "读卡", outParam);
                         #endregion
 
                     }