|
@@ -508,22 +508,19 @@ namespace PTMedicalInsurance.Business
|
|
|
joSumFee = new JObject();
|
|
|
|
|
|
errMsg = "";
|
|
|
- decimal ybAmt, psnAcctAmt, hospAmt, psnPartAmt, psnCashAmt, medFee,otherAmt, mafPay, medisPay, fundAmt;
|
|
|
+ decimal ybAmt, psnAcctAmt, hospAmt, psnPartAmt, psnCashAmt, medFee, fundAmt;
|
|
|
try
|
|
|
{
|
|
|
- //getFee(jo, "hifp_pay") //基本医保统筹基金支出
|
|
|
- //+ getFee(jo, "hifes_pay") //企业补充医疗保险基金支出(民政补助)
|
|
|
- //+ getFee(jo, "hifmi_pay") //居民大病保险
|
|
|
- //+ getFee(jo, "cvlserv_pay") //公务员医疗补助
|
|
|
- //mafPay = getFee(jo, "maf_pay"); //医疗救助基金支出(医疗补助\优抚补助); //ylbzje
|
|
|
- //medisPay = +getFee(jo, "medis_pay"); //医疗减免金额 //jmje
|
|
|
-
|
|
|
- //otherAmt = getFee(jo, "oth_pay"); //其他支出
|
|
|
-
|
|
|
- ////基金支付总额
|
|
|
- //fundAmt = getFee(jo, "hifob_pay") //职工大额医疗费用补助 //dezf
|
|
|
- // + mafPay + medisPay + otherAmt
|
|
|
- // + getFee(jo, "poor_pay"); //贫困人口再补助
|
|
|
+ //基金支付总额
|
|
|
+ fundAmt = getFee(jo, "hifp_pay") //基本医保统筹基金支出
|
|
|
+ + getFee(jo, "hifes_pay") //企业补充医疗保险基金支出(民政补助)
|
|
|
+ + getFee(jo, "hifmi_pay") //居民大病保险
|
|
|
+ + getFee(jo, "cvlserv_pay") //公务员医疗补助
|
|
|
+ + getFee(jo, "hifob_pay") //职工大额医疗费用补助
|
|
|
+ + getFee(jo, "maf_pay") //医疗救助基金支出(医疗补助\优抚补助);
|
|
|
+ + getFee(jo, "medis_pay") //医疗减免金额
|
|
|
+ + getFee(jo, "hifdm_pay") //伤残人员医疗保障
|
|
|
+ + getFee(jo, "oth_pay"); //其他支出
|
|
|
|
|
|
psnAcctAmt = getFee(jo, "acct_pay"); //账户支付金额
|
|
|
psnCashAmt = getFee(jo, "psn_cash_pay"); //现金支付金额
|
|
@@ -531,15 +528,15 @@ namespace PTMedicalInsurance.Business
|
|
|
hospAmt = getFee(jo, "hosp_part_amt"); //医院承担金额
|
|
|
|
|
|
medFee = getFee(jo, "medfee_sumamt"); //总费用
|
|
|
- ybAmt = medFee - psnAcctAmt - psnCashAmt - hospAmt; //(医保支付金额)
|
|
|
+ //ybAmt = medFee - psnAcctAmt - psnCashAmt - hospAmt; //(医保支付金额)
|
|
|
+ ybAmt = fundAmt + psnAcctAmt + psnCashAmt + hospAmt;
|
|
|
|
|
|
joSumFee.Add("ybAmt", ybAmt);
|
|
|
joSumFee.Add("psnAcctAmt", psnAcctAmt);
|
|
|
joSumFee.Add("hospAmt", hospAmt);
|
|
|
joSumFee.Add("psnCashAmt", psnCashAmt);
|
|
|
- //zje(medfee_sumamt) = ybfdje(fund_pay_sumamt) + brfdje(psn_part_amt) + ylbzje(maf_pay) + yyfdje(hosp_part_amt) + yljmje(medis_pay) + pkryzjzje(poor_pay) + mzbzje(hifob_pay)
|
|
|
|
|
|
- decimal total = (ybAmt + psnAcctAmt + psnCashAmt + hospAmt);
|
|
|
+ decimal total = (ybAmt);
|
|
|
if (medFee != total)
|
|
|
{
|
|
|
Global.writeLog("ybAmt:"+ybAmt+ ",psnAcctAmt:" + psnAcctAmt + "psnCashAmt:"+ psnCashAmt + ",hospAmt:" + hospAmt);
|