Przeglądaj źródła

20250304医保移动支付业务更新CM

837390164@qq.com 3 miesięcy temu
rodzic
commit
821a2a0a3b
3 zmienionych plików z 42 dodań i 43 usunięć
  1. 1 2
      Business/HisMainBusiness.cs
  2. 1 1
      Business/IrisServices.cs
  3. 40 40
      Business/MobilePay.cs

+ 1 - 2
Business/HisMainBusiness.cs

@@ -1447,8 +1447,7 @@ namespace PTMedicalInsurance.Business
                     joSetlInpar.Add("acct_used_flag", frmReg.personAccountUsedFlag);//个人账户使用标志
                     joSetlInpar.Add("insutype", frmReg.insuType);//险种类型
                     joSetlInpar.Add("pub_hosp_rfom_flag", "");
-                    joSetlInpar.Add("exp_content", "");
-                    joSetlInpar.Add("insuplc_admdvs", Global.pat.insuplc_admdvs); //此处增加参保地入参 HIS医保登记表插入
+                    joSetlInpar.Add("exp_content", "");          
 
                     joReg.Add("mdtrtinfo", joMdtrtinfo);
                     joReg.Add("diseinfo", jaDiagnoses);

+ 1 - 1
Business/IrisServices.cs

@@ -651,13 +651,13 @@ namespace PTMedicalInsurance.Business
                 joTmp.regInfo = joSetlInpar;
                 joTmp.middleSettleFlag = "";
                 joTmp.interfaceDr = Global.inf.interfaceDr;
+                joTmp.insuplc_admdvs = Global.pat.insuplc_admdvs; //此处增加参保地入参 HIS医保登记表插入
                 dynamic joHisInfo = new JObject();
                 joHisInfo.admID = Global.pat.adm_Dr;
                 joHisInfo.billID = Global.pat.billID;
                 joHisInfo.recordID = Global.pat.recordID;
                 joTmp.hisInfo = joHisInfo;
                 joTmp.psn_type = Global.pat.psn_type;
-
                 joTmp.sumFeeObj = joSumFee;
 
                 //0511018 {"feeObj":{"ybAmt":"医保支付","psnAcctAmt":"个人账户","psnCashAmt":"个人现金","hospAmt":"医院垫付"}}

+ 40 - 40
Business/MobilePay.cs

@@ -208,10 +208,10 @@ namespace PTMedicalInsurance.Business
                 }
 
                 JObject joEncData = JObject.Parse(errMsg);
-                JObject joSettlInfo = JObject.Parse(JsonHelper.getDestValue(joEncData, "extData.SETLINFO"));
+                //JObject joSettlInfo = JObject.Parse(JsonHelper.getDestValue(joEncData, "data.extData.SETLINFO"));
 
                 //设置
-                setSettlementsBy6301Rtn(joSettlInfo);
+                setSettlementsBy6301Rtn(joEncData);
                 MSettl.confirmFlag = 1;
                 //存入MI 结算表
                 if (updateSettlement(out errMsg) != 0)
@@ -282,7 +282,7 @@ namespace PTMedicalInsurance.Business
                 else
                 {
                     JObject joEncData = JObject.Parse(errMsg);
-                    string newSettlID = JsonHelper.getDestValue(joEncData, "extData.setlInfo.setl_id");
+                    string newSettlID = JsonHelper.getDestValue(joEncData, "data.extData.setlInfo.setl_id");
                     //处理撤销数据
                     if (cancleSettlement(MPat.settlID, out errMsg) != 0)
                     {
@@ -631,46 +631,46 @@ namespace PTMedicalInsurance.Business
 
         public void setSettlementsBy6301Rtn(JObject jo)
         {
-            MSettl.settlID = JsonHelper.getDestValue(jo, "setl_id");
-            MPat.psn_no = JsonHelper.getDestValue(jo, "psn_no");
-            MPat.naty = JsonHelper.getDestValue(jo, "naty");
-            //MPat.name = JsonHelper.getDestValue(jo, "name");
-            MPat.age = JsonHelper.getDestValue(jo, "age");
-            MPat.gend = JsonHelper.getDestValue(jo, "gend");
-            MPat.certNO = JsonHelper.getDestValue(jo, "certno");
-            MPat.brdy = JsonHelper.getDestValue(jo, "brdy");
-            MPat.insuType = JsonHelper.getDestValue(jo, "insutype");
-            MPat.psn_type = JsonHelper.getDestValue(jo, "psn_type");
-            MPat.mdtrtcertType = JsonHelper.getDestValue(jo, "mdtrt_cert_type");
-            MPat.medType = JsonHelper.getDestValue(jo, "med_type");
+            MSettl.settlID = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.setl_id");
+            MPat.psn_no = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.psn_no");
+            MPat.naty = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.naty");
+            //MPat.name = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.name");
+            MPat.age = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.age");
+            MPat.gend = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.gend");
+            MPat.certNO = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.certno");
+            MPat.brdy = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.brdy");
+            MPat.insuType = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.insutype");
+            MPat.psn_type = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.psn_type");
+            MPat.mdtrtcertType = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.mdtrt_cert_type");
+            MPat.medType = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.med_type");
             //MPat.insuplc_admdvs = JsonHelper.getDestValue(jo, "insuplc_admdvs");
             //MPat.payOrdId = JsonHelper.getDestValue(jo, "payOrdId");
-            MSettl.ordStas = JsonHelper.getDestValue(jo, "ordStas");
-            MSettl.sumamt = getDecimalFee(jo, "medfee_sumamt");
-            MSettl.personCashPay = getDecimalFee(jo, "psn_cash_pay");
-            MSettl.accountPaySumamt = getDecimalFee(jo, "acct_pay");
-            MSettl.fundPaySumamt = getDecimalFee(jo, "fund_pay_sumamt");
+            MSettl.ordStas = JsonHelper.getDestValue(jo, "data.ordStas");
+            MSettl.sumamt = getDecimalFee(jo, "data.extData.SETLINFO.medfee_sumamt");
+            MSettl.personCashPay = getDecimalFee(jo, "data.extData.SETLINFO.psn_cash_pay");
+            MSettl.accountPaySumamt = getDecimalFee(jo, "data.extData.SETLINFO.acct_pay");
+            MSettl.fundPaySumamt = getDecimalFee(jo, "data.extData.SETLINFO.fund_pay_sumamt");
             //MSettl.deposit = getDecimalFee(jo, "deposit");
-            MSettl.clearingOrgan = JsonHelper.getDestValue(jo, "clr_optins");
-            MSettl.clearingType = JsonHelper.getDestValue(jo, "clr_type");
-            MSettl.clearingWay = JsonHelper.getDestValue(jo, "clr_way");
-            MSettl.civilserviceAllowancePay = getDecimalFee(jo, "cvlserv_pay");
-            MSettl.ownPayAmount = getDecimalFee(jo, "fulamt_ownpay_amt");
-            MSettl.overLimitAmountmt = getDecimalFee(jo, "overlmt_selfpay");
-            MSettl.preSelfPayAmount = getDecimalFee(jo, "preselfpay_amt");
-            MSettl.inPolicyRangeAmount = getDecimalFee(jo, "inscp_scp_amt");
-            MSettl.actualPayDeductible = getDecimalFee(jo, "act_pay_dedc");
-            MSettl.healthInsurancePay = getDecimalFee(jo, "hifp_pay");
-            MSettl.healthInsuranceRatio = getDecimalFee(jo, "pool_prop_selfpay");
-            MSettl.enterpriseSupplementPay = getDecimalFee(jo, "hifes_pay");
-            MSettl.seriousIllnessPay = getDecimalFee(jo, "hifmi_pay");
-            MSettl.largeExpensesSupplementPay = getDecimalFee(jo, "hifob_pay");
-            MSettl.medicalAssistPay = getDecimalFee(jo, "maf_pay");
-            MSettl.hospitalPartAmount = getDecimalFee(jo, "hosp_part_amt");
-            MSettl.otherPay = getDecimalFee(jo, "oth_pay");
-            MSettl.personPaySumamt = getDecimalFee(jo, "psn_part_amt");
-            MSettl.balance = getDecimalFee(jo, "balc");
-            MSettl.accountMutualAidAmount = getDecimalFee(jo, "acct_mulaid_pay");
+            MSettl.clearingOrgan = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.clr_optins");
+            MSettl.clearingType = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.clr_type");
+            MSettl.clearingWay = JsonHelper.getDestValue(jo, "data.extData.SETLINFO.clr_way");
+            MSettl.civilserviceAllowancePay = getDecimalFee(jo, "data.extData.SETLINFO.cvlserv_pay");
+            MSettl.ownPayAmount = getDecimalFee(jo, "data.extData.SETLINFO.fulamt_ownpay_amt");
+            MSettl.overLimitAmountmt = getDecimalFee(jo, "data.extData.SETLINFO.overlmt_selfpay");
+            MSettl.preSelfPayAmount = getDecimalFee(jo, "data.extData.SETLINFO.preselfpay_amt");
+            MSettl.inPolicyRangeAmount = getDecimalFee(jo, "data.extData.SETLINFO.inscp_scp_amt");
+            MSettl.actualPayDeductible = getDecimalFee(jo, "data.extData.SETLINFO.act_pay_dedc");
+            MSettl.healthInsurancePay = getDecimalFee(jo, "data.extData.SETLINFO.hifp_pay");
+            MSettl.healthInsuranceRatio = getDecimalFee(jo, "data.extData.SETLINFO.pool_prop_selfpay");
+            MSettl.enterpriseSupplementPay = getDecimalFee(jo, "data.extData.SETLINFO.hifes_pay");
+            MSettl.seriousIllnessPay = getDecimalFee(jo, "data.extData.SETLINFO.hifmi_pay");
+            MSettl.largeExpensesSupplementPay = getDecimalFee(jo, "data.extData.SETLINFO.hifob_pay");
+            MSettl.medicalAssistPay = getDecimalFee(jo, "data.extData.SETLINFO.maf_pay");
+            MSettl.hospitalPartAmount = getDecimalFee(jo, "data.extData.SETLINFO.hosp_part_amt");
+            MSettl.otherPay = getDecimalFee(jo, "data.extData.SETLINFO.oth_pay");
+            MSettl.personPaySumamt = getDecimalFee(jo, "data.extData.SETLINFO.psn_part_amt");
+            MSettl.balance = getDecimalFee(jo, "data.extData.SETLINFO.balc");
+            MSettl.accountMutualAidAmount = getDecimalFee(jo, "data.extData.SETLINFO.acct_mulaid_pay");
         }
 
         public void setSettlementsByInPar()