|
@@ -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()
|