Browse Source

fix: 跨省异地电子凭证增加住院结算读卡

zhengjie 6 months ago
parent
commit
2ab3907317
1 changed files with 9 additions and 1 deletions
  1. 9 1
      Business/Inpatient/IPPreSettlementProcess.cs

+ 9 - 1
Business/Inpatient/IPPreSettlementProcess.cs

@@ -1,4 +1,5 @@
 using Newtonsoft.Json.Linq;
+using PTMedicalInsurance.Common;
 using PTMedicalInsurance.Helper;
 using PTMedicalInsurance.Variables;
 using System;
@@ -76,13 +77,20 @@ namespace PTMedicalInsurance.Business
 
             #endregion
 
-            #region 昆明结算前读卡核验身份
+            #region 结算前读卡核验身份
             //string patInfo = "";
             //if (readCard(out patInfo) != 0)
             //{
             //    outParam = JsonHelper.setExceptionJson(-1, "readCard", patInfo).ToString();
             //    return -1;
             //}
+            // 跨省异地电子凭证
+            if (Utils.isOtherProvice() && string.IsNullOrEmpty(Global.pat.ecCardNo) && Global.pat.certType == "01")
+            {
+                PatientService patientService = new PatientService();
+                patientService.readCard(out outParam);
+            }
+            // Global.writeLog("是否跨省:" + Utils.isOtherProvice()+",certType="+ Global.pat.certType);
 
             #endregion