|
@@ -47,40 +47,40 @@ namespace PTMedicalInsurance.Business
|
|
|
}
|
|
|
public int MobilePaySettlement(out string outPar)
|
|
|
{
|
|
|
- string errMsg, patInfo, YH6201Inpar, YH6202Inpar;
|
|
|
- //YH6201Rtn, YH6202Rtn,YH6301Inpar,YH6301Rtn;
|
|
|
+ string errMsg, patInfo, M6201Inpar, M6202Inpar;
|
|
|
+ //M6201Rtn, M6202Rtn,M6301Inpar,M6301Rtn;
|
|
|
outPar = "";
|
|
|
try
|
|
|
{
|
|
|
|
|
|
- EncryptHelper eh = new EncryptHelper();
|
|
|
+ //EncryptHelper eh = new EncryptHelper();
|
|
|
if (GetPatientInfo(out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
patInfo = errMsg;
|
|
|
- JObject jo1194Rtn = invoker.invokeCenterService("1194", JsonHelper.setCenterInpar("1194", patInfo));
|
|
|
+ JObject jo1194Rtn = invoker.invokeCenterService("1101", JsonHelper.setCenterInpar("1101", patInfo));
|
|
|
if (JsonHelper.parseCenterRtnValue(jo1194Rtn, out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
setPatientInsuInfo(jo1194Rtn);
|
|
|
- if (GetYH6201Inpar(out errMsg) != 0)
|
|
|
+ if (Get6201Inpar(out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
Global.writeLog(errMsg);
|
|
|
- YH6201Inpar = errMsg;
|
|
|
- JObject joYH6201Rtn = invoker.invokeMPService("6201", eh.encrypt(errMsg));
|
|
|
- if (JsonHelper.parseMPRtnValue(joYH6201Rtn, out errMsg) != 0)
|
|
|
+ M6201Inpar = errMsg;
|
|
|
+ JObject joM6201Rtn = invoker.invokeMPService("6201", errMsg);
|
|
|
+ if (JsonHelper.parseMPRtnValue(joM6201Rtn, out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
- JObject joEncData = JObject.Parse(eh.decrypt(errMsg));
|
|
|
+ JObject joEncData = JObject.Parse(errMsg);
|
|
|
Global.writeLog(JsonHelper.Compress(joEncData));
|
|
|
//设置
|
|
|
setPatientBy6201Rtn(joEncData);
|
|
@@ -90,20 +90,20 @@ namespace PTMedicalInsurance.Business
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
- //YH6202
|
|
|
- if (GetYH6202Inpar(JObject.Parse(YH6201Inpar), out errMsg) != 0)
|
|
|
+ //M6202
|
|
|
+ if (Get6202Inpar(JObject.Parse(M6201Inpar), out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
- YH6202Inpar = errMsg;
|
|
|
- JObject joYH6202Rtn = invoker.invokeMPService("6202", eh.encrypt(YH6202Inpar));
|
|
|
- if (JsonHelper.parseMPRtnValue(joYH6202Rtn, out errMsg) != 0)
|
|
|
+ M6202Inpar = errMsg;
|
|
|
+ JObject joM6202Rtn = invoker.invokeMPService("6202", M6202Inpar);
|
|
|
+ if (JsonHelper.parseMPRtnValue(joM6202Rtn, out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
- joEncData = JObject.Parse(eh.decrypt(errMsg));
|
|
|
+ joEncData = JObject.Parse(errMsg);
|
|
|
Global.writeLog(JsonHelper.Compress(joEncData));
|
|
|
//设置
|
|
|
setSettlementsBy6202Rtn(joEncData);
|
|
@@ -115,14 +115,14 @@ namespace PTMedicalInsurance.Business
|
|
|
return -1;
|
|
|
}
|
|
|
//6301查询具体明细信息
|
|
|
- //if (GetYH6301Inpar(out errMsg) != 0)
|
|
|
+ //if (Get6301Inpar(out errMsg) != 0)
|
|
|
//{
|
|
|
// outPar = errMsg;
|
|
|
// return -1;
|
|
|
//}
|
|
|
- //YH6301Inpar = errMsg;
|
|
|
- //JObject joYH6301Rtn = invoker.invokeMPService("6301", eh.encrypt(YH6301Inpar));
|
|
|
- //if (JsonHelper.parseMPRtnValue(joYH6301Rtn, out errMsg) != 0)
|
|
|
+ //M6301Inpar = errMsg;
|
|
|
+ //JObject joM6301Rtn = invoker.invokeMPService("6301", eh.encrypt(M6301Inpar));
|
|
|
+ //if (JsonHelper.parseMPRtnValue(joM6301Rtn, out errMsg) != 0)
|
|
|
//{
|
|
|
// outPar = errMsg;
|
|
|
// return -1;
|
|
@@ -139,7 +139,7 @@ namespace PTMedicalInsurance.Business
|
|
|
//}
|
|
|
//返回给HIS后端
|
|
|
JObject joPreSettl = JObject.Parse(JsonHelper.getDestValue(joEncData, "extData.preSetl"));
|
|
|
- //JObject joTmp = JObject.Parse(JsonHelper.getDestValue(joYH6201Rtn, "encData"));
|
|
|
+ //JObject joTmp = JObject.Parse(JsonHelper.getDestValue(joM6201Rtn, "encData"));
|
|
|
JObject joTmp = new JObject();
|
|
|
joTmp.Add("insutype", MPat.insuType);
|
|
|
joTmp.Add("psn_no", MPat.psn_no);
|
|
@@ -168,26 +168,26 @@ namespace PTMedicalInsurance.Business
|
|
|
}
|
|
|
public int MobilePayConfirmSettlement(out string outPar)
|
|
|
{
|
|
|
- string errMsg, YH6301Inpar, YH6301Rtn;
|
|
|
+ string errMsg, M6301Inpar;
|
|
|
outPar = "";
|
|
|
try
|
|
|
{
|
|
|
- EncryptHelper eh = new EncryptHelper();
|
|
|
+ //EncryptHelper eh = new EncryptHelper();
|
|
|
//6301查询具体明细信息
|
|
|
- if (GetYH6301Inpar(out errMsg) != 0)
|
|
|
+ if (Get6301Inpar(out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
- YH6301Inpar = errMsg;
|
|
|
- JObject joYH6301Rtn = invoker.invokeMPService("6301", eh.encrypt(YH6301Inpar));
|
|
|
- if (JsonHelper.parseMPRtnValue(joYH6301Rtn, out errMsg) != 0)
|
|
|
+ M6301Inpar = errMsg;
|
|
|
+ JObject joM6301Rtn = invoker.invokeMPService("6301",M6301Inpar);
|
|
|
+ if (JsonHelper.parseMPRtnValue(joM6301Rtn, out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|
|
|
return -1;
|
|
|
}
|
|
|
- JObject joEncData = JObject.Parse(eh.decrypt(errMsg));
|
|
|
- JObject joSettlInfo = JObject.Parse(JsonHelper.getDestValue(joEncData, "extData.SETLINFO"));
|
|
|
+ JObject joEncData = JObject.Parse((errMsg));
|
|
|
+ JObject joSettlInfo = JObject.Parse(JsonHelper.getDestValue(joEncData, "output.data"));
|
|
|
Global.writeLog(JsonHelper.Compress(joEncData));
|
|
|
//设置
|
|
|
setSettlementsBy6301Rtn(joSettlInfo);
|
|
@@ -220,13 +220,13 @@ namespace PTMedicalInsurance.Business
|
|
|
{
|
|
|
|
|
|
/**目前从微信那边处理退费
|
|
|
- if (GetYH6203Inpar(out errMsg) != 0)
|
|
|
+ if (Get6203Inpar(out errMsg) != 0)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
YH6203Inpar = errMsg;
|
|
|
- JObject jo6203Rtn = invoker.invokeMPService("6203", YH6203Inpar);
|
|
|
- //YH6202
|
|
|
+ JObject jo6203Rtn = invoker.invokeMPService("6203", M6203Inpar);
|
|
|
+ //M6202
|
|
|
if (ParseCenterRtnValue(jo6203Rtn, out errMsg) != 0)
|
|
|
{
|
|
|
|
|
@@ -312,7 +312,7 @@ namespace PTMedicalInsurance.Business
|
|
|
{
|
|
|
MPat.insuplc_admdvs = JsonHelper.getDestValue(jo, "output.baseinfo.insuplc_admdvs");
|
|
|
MPat.psn_no = JsonHelper.getDestValue(jo, "output.baseinfo.psn_no");
|
|
|
- MPat.insuType = JsonHelper.getDestValue(jo, "output.baseinfo.insutype");
|
|
|
+ MPat.insuType = JsonHelper.getDestValue(jo, "output.insuinfo[0].insutype");
|
|
|
Global.pat.insuplc_admdvs = MPat.insuplc_admdvs;
|
|
|
Global.pat.psn_no = MPat.psn_no;
|
|
|
Global.pat.insuType = MPat.insuType;
|
|
@@ -329,7 +329,7 @@ namespace PTMedicalInsurance.Business
|
|
|
public void setSettlementsBy6202Rtn(JObject jo)
|
|
|
{
|
|
|
MSettl.settlID = JsonHelper.getDestValue(jo, "payOrdId");
|
|
|
- MPat.payOrdId = JsonHelper.getDestValue(jo, "payOrdId");
|
|
|
+ MPat.payOrdId = MSettl.settlID;
|
|
|
MSettl.ordStas = JsonHelper.getDestValue(jo, "ordStas");
|
|
|
MSettl.sumamt = getDecimalFee(jo, "feeSumamt");
|
|
|
MSettl.personCashPay = getDecimalFee(jo, "ownPayAmt");
|
|
@@ -361,45 +361,47 @@ namespace PTMedicalInsurance.Business
|
|
|
public void setSettlementsBy6301Rtn(JObject jo)
|
|
|
{
|
|
|
//MPat.settlID = JsonHelper.getDestValue(jo, "setl_id");
|
|
|
- MPat.psn_no = JsonHelper.getDestValue(jo, "psn_no");
|
|
|
- MPat.naty = JsonHelper.getDestValue(jo, "naty");
|
|
|
+ //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");
|
|
|
+ //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");
|
|
|
//MPat.insuplc_admdvs = JsonHelper.getDestValue(jo, "insuplc_admdvs");
|
|
|
- //MPat.payOrdId = JsonHelper.getDestValue(jo, "payOrdId");
|
|
|
+
|
|
|
+ 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.sumamt = getDecimalFee(jo, "feeSumamt");
|
|
|
+ MSettl.personCashPay = getDecimalFee(jo, "ownPayAmt");
|
|
|
+ MSettl.accountPaySumamt = getDecimalFee(jo, "psnAcctPay");
|
|
|
+ MSettl.fundPaySumamt = getDecimalFee(jo, "fundPay");
|
|
|
+
|
|
|
//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, "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");
|
|
|
}
|
|
|
|
|
|
public void setSettlementsByInPar()
|
|
@@ -428,7 +430,7 @@ namespace PTMedicalInsurance.Business
|
|
|
joInpar.Add("mdtrt_cert_type", "02");//就诊凭证类型
|
|
|
joInpar.Add("mdtrt_cert_no", MPat.certNO);//就诊凭证编号
|
|
|
joInpar.Add("card_sn", "");//卡识别码
|
|
|
- joInpar.Add("begntime", "");//开始时间 获取历史参保信息时传入
|
|
|
+ joInpar.Add("begntime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));//开始时间 获取历史参保信息时传入
|
|
|
joInpar.Add("psn_cert_type", "01");//就诊凭证类型为“ 02” 时默认传 01 代表身份 证,其他证件类型按实际上传
|
|
|
joInpar.Add("certno", MPat.certNO);//证件号码
|
|
|
joInpar.Add("psn_name", MPat.name);//姓名
|
|
@@ -448,8 +450,8 @@ namespace PTMedicalInsurance.Business
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //组织YH6201入参
|
|
|
- public int GetYH6201Inpar(out string outparam)
|
|
|
+ //组织M6201入参
|
|
|
+ public int Get6201Inpar(out string outparam)
|
|
|
{
|
|
|
string errMsg = "";
|
|
|
outparam = "";
|
|
@@ -528,7 +530,7 @@ namespace PTMedicalInsurance.Business
|
|
|
//joInpar.Add("initRxOrd", JsonHelper.getDestValue(joInsuAdmObj, "initRxOrd"));//要续方的原处方流水 前端传入
|
|
|
//joInpar.Add("rxCircFlag", JsonHelper.getDestValue(joInsuAdmObj, "rxCircFlag"));//电子处方流转标志 前端传入
|
|
|
MSettl.settlTime = Convert.ToDateTime(JsonHelper.getDestValue(joMdtrtinfo, "begntime"));
|
|
|
- //joInpar.Add("begntime", JsonHelper.getDestValue(joMdtrtinfo, "begntime"));//开始时间
|
|
|
+ joInpar.Add("begntime", JsonHelper.getDestValue(joMdtrtinfo, "begntime"));//开始时间
|
|
|
joInpar.Add("idNo", JsonHelper.getDestValue(joPatBaseInfo, "credNo"));//证件号码
|
|
|
joInpar.Add("userName", JsonHelper.getDestValue(joPatBaseInfo, "patName"));//用户姓名
|
|
|
joInpar.Add("idType", JsonHelper.getDestValue(joPatBaseInfo, "credCode"));//证件类别
|
|
@@ -544,11 +546,11 @@ namespace PTMedicalInsurance.Business
|
|
|
joInpar.Add("medType", MPat.medType);//医疗类别 前端传入
|
|
|
joInpar.Add("feeType", JsonHelper.getDestValue(joInsuAdmObj, "feeType"));//费用类型 前端传入
|
|
|
joInpar.Add("medfeeSumamt", JsonHelper.getDestValue(joFee, "medfeeSumamt"));//医疗费总额
|
|
|
- //joInpar.Add("acctUsedFlag", JsonHelper.getDestValue(joInsuAdmObj, "acctUsedFlag"));//个人账户使用标志 前端传入
|
|
|
- //joInpar.Add("mainCondDscr", JsonHelper.getDestValue(joMdtrtinfo, "mainCondDscr"));//主要病情描述
|
|
|
- //joInpar.Add("diseCodg", JsonHelper.getDestValue(joMdtrtinfo, "diseCodg"));//病种编码
|
|
|
- //joInpar.Add("diseName", JsonHelper.getDestValue(joMdtrtinfo, "diseName"));//病种名称
|
|
|
- //joInpar.Add("psnSetlway", JsonHelper.getDestValue(joInsuAdmObj, "psnSetlway"));//个人结算方式 前端传入
|
|
|
+ joInpar.Add("acctUsedFlag", JsonHelper.getDestValue(joInsuAdmObj, "acctUsedFlag"));//个人账户使用标志 前端传入
|
|
|
+ joInpar.Add("mainCondDscr", JsonHelper.getDestValue(joMdtrtinfo, "mainCondDscr"));//主要病情描述
|
|
|
+ joInpar.Add("diseCodg", JsonHelper.getDestValue(joMdtrtinfo, "diseCodg"));//病种编码
|
|
|
+ joInpar.Add("diseName", JsonHelper.getDestValue(joMdtrtinfo, "diseName"));//病种名称
|
|
|
+ joInpar.Add("psnSetlway", JsonHelper.getDestValue(joInsuAdmObj, "psnSetlway"));//个人结算方式 前端传入
|
|
|
joInpar.Add("chrgBchno", JsonHelper.getDestValue(joFee, "chrgBchno"));//收费批次号
|
|
|
//joInpar.Add("pubHospRfomFlag", JsonHelper.getDestValue(joInsuAdmObj, "pubHospRfomFlag"));//公立医院改革标志
|
|
|
//joInpar.Add("invono", JsonHelper.getDestValue(joMdtrtinfo, "invono"));//发票号
|
|
@@ -573,8 +575,8 @@ namespace PTMedicalInsurance.Business
|
|
|
//joInpar.Add("dscgDed", JsonHelper.getDestValue(joMdtrtinfo, "dscgDed"));//出院床位
|
|
|
//joInpar.Add("dscgWay", JsonHelper.getDestValue(joMdtrtinfo, "dscgWay"));//离院方式
|
|
|
//joInpar.Add("dieDate", JsonHelper.getDestValue(joMdtrtinfo, "dieDate"));//死亡日期
|
|
|
- //joInpar.Add("matnType", JsonHelper.getDestValue(joMdtrtinfo, "matnType"));//生育类别
|
|
|
- //joInpar.Add("expContent", JsonHelper.getDestValue(joInsuAdmObj, "expContent"));//扩展参数 前端传入
|
|
|
+ joInpar.Add("matnType", JsonHelper.getDestValue(joMdtrtinfo, "matnType"));//生育类别
|
|
|
+ joInpar.Add("extData", JsonHelper.getDestValue(joInsuAdmObj, "expContent"));//扩展参数 前端传入
|
|
|
//joInpar.Add("midSetlFlag", JsonHelper.getDestValue(joInsuAdmObj, "midSetlFlag"));//中途结算标志 前端传入
|
|
|
joInpar.Add("diseinfoList", jaDiseinfoList);//诊断或症状明细
|
|
|
joInpar.Add("feedetailList", jaFeedetailList);//费用明细
|
|
@@ -589,23 +591,23 @@ namespace PTMedicalInsurance.Business
|
|
|
|
|
|
JObject joData = new JObject();
|
|
|
joData.Add("data",joInpar);
|
|
|
- outparam = joInpar.ToString();
|
|
|
+ outparam = joData.ToString();
|
|
|
return 0;
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
|
|
|
- outparam = "GetYH6201Inpar:" + ex.Message;
|
|
|
+ outparam = "Get6201Inpar:" + ex.Message;
|
|
|
return -1;
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- Global.writeLog("GetYH6201Inpar","",outparam);
|
|
|
+ Global.writeLog("Get6201Inpar","",outparam);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//获取入参,入参基本为类局部变量
|
|
|
- public int GetYH6202Inpar(JObject joYH6201Inpar, out string outparam)
|
|
|
+ public int Get6202Inpar(JObject joM6201Inpar, out string outparam)
|
|
|
{
|
|
|
outparam = "";
|
|
|
try
|
|
@@ -621,29 +623,29 @@ namespace PTMedicalInsurance.Business
|
|
|
joInpar.Add("ecChnlAppId", "");
|
|
|
joInpar.Add("ecChnlUserId", "");
|
|
|
joInpar.Add("mdtrtId", MPat.mdtrtID);
|
|
|
- joInpar.Add("chrgBchno", JsonHelper.getDestValue(joYH6201Inpar, "chrgBchno"));//收费批次号
|
|
|
- joInpar.Add("feeType", JsonHelper.getDestValue(joYH6201Inpar, "feeType"));//费用类别
|
|
|
+ joInpar.Add("chrgBchno", JsonHelper.getDestValue(joM6201Inpar, "chrgBchno"));//收费批次号
|
|
|
+ //joInpar.Add("feeType", JsonHelper.getDestValue(joM6201Inpar, "feeType"));//费用类别
|
|
|
//joInpar.Add("deposit", JsonHelper.getDestValue(joInsuAdmObj, "deposit"));//住院押金
|
|
|
- joInpar.Add("expContent", "");//扩展数据
|
|
|
+ joInpar.Add("expData", "");//扩展数据
|
|
|
//joInpar.Add("acctUsedFlag", "");//个账使用标识
|
|
|
- //JObject joData = new JObject();
|
|
|
- //joData.Add("data",joInpar);
|
|
|
- outparam = joInpar.ToString();
|
|
|
+ JObject joData = new JObject();
|
|
|
+ joData.Add("data", joInpar);
|
|
|
+ outparam = joData.ToString();
|
|
|
return 0;
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- outparam = "GetYH6202Inpar:" + ex.Message;
|
|
|
+ outparam = "Get6202Inpar:" + ex.Message;
|
|
|
return -1;
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- Global.writeLog("GetYH6202Inpar", "", outparam);
|
|
|
+ Global.writeLog("Get6202Inpar", "", outparam);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //组织YH6203入参
|
|
|
- public int GetYH6203Inpar(out string outparam)
|
|
|
+ //组织M6203入参
|
|
|
+ public int Get6203Inpar(out string outparam)
|
|
|
{
|
|
|
string errMsg = "";
|
|
|
outparam = "";
|
|
@@ -669,26 +671,28 @@ namespace PTMedicalInsurance.Business
|
|
|
joInpar.Add("cashRefdAmt", JsonHelper.getDestValue(joInsuAdmObj, "PersonCashPay"));//现金退费金额
|
|
|
joInpar.Add("ecToken", MPat.token);//电子凭证授权Token 前端传入
|
|
|
joInpar.Add("refdType", "ALL");//退费类型 前端传入
|
|
|
- joInpar.Add("expContent", "");//扩展数据 前端传入
|
|
|
+ joInpar.Add("expData", "");//扩展数据 前端传入
|
|
|
joInpar.Add("payAuthNo", MPat.payAuthNo);//支付授权码 前端传入
|
|
|
|
|
|
- outparam = joInpar.ToString();
|
|
|
+ JObject joData = new JObject();
|
|
|
+ joData.Add("data", joInpar);
|
|
|
+ outparam = joData.ToString();
|
|
|
return 0;
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
|
|
|
- outparam = "GetYH6203Inpar:" + ex.Message;
|
|
|
+ outparam = "Get6203Inpar:" + ex.Message;
|
|
|
return -1;
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- Global.writeLog("GetYH6203Inpar", "", outparam);
|
|
|
+ Global.writeLog("Get6203Inpar", "", outparam);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//获取入参,入参基本为类局部变量
|
|
|
- public int GetYH6301Inpar(out string outparam)
|
|
|
+ public int Get6301Inpar(out string outparam)
|
|
|
{
|
|
|
outparam = "";
|
|
|
try
|
|
@@ -709,22 +713,25 @@ namespace PTMedicalInsurance.Business
|
|
|
joInpar.Add("idNo", MPat.IDNO);//业务流水号 前端传入
|
|
|
joInpar.Add("userName", MPat.name);
|
|
|
joInpar.Add("idType", "01");
|
|
|
- joInpar.Add("expContent", "");
|
|
|
- outparam = joInpar.ToString();
|
|
|
+ joInpar.Add("expData", "");
|
|
|
+
|
|
|
+ JObject joData = new JObject();
|
|
|
+ joData.Add("data", joInpar);
|
|
|
+ outparam = joData.ToString();
|
|
|
return 0;
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- outparam = "GetYH6301Inpar:" + ex.Message;
|
|
|
+ outparam = "Get6301Inpar:" + ex.Message;
|
|
|
return -1;
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- Global.writeLog("GetYH6301Inpar", "", outparam);
|
|
|
+ Global.writeLog("Get6301Inpar", "", outparam);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public int GetYH6401Inpar(out string outparam)
|
|
|
+ public int Get6401Inpar(out string outparam)
|
|
|
{
|
|
|
string errMsg = "";
|
|
|
outparam = "";
|
|
@@ -750,21 +757,23 @@ namespace PTMedicalInsurance.Business
|
|
|
joInpar.Add("cashRefdAmt", JsonHelper.getDestValue(joInsuAdmObj, "PersonCashPay"));//现金退费金额
|
|
|
joInpar.Add("ecToken", MPat.token);//电子凭证授权Token 前端传入
|
|
|
joInpar.Add("refdType", "ALL");//退费类型 前端传入
|
|
|
- joInpar.Add("expContent", "");//扩展数据 前端传入
|
|
|
+ joInpar.Add("expData", "");//扩展数据 前端传入
|
|
|
joInpar.Add("payAuthNo", MPat.payAuthNo);//支付授权码 前端传入
|
|
|
|
|
|
- outparam = joInpar.ToString();
|
|
|
+ JObject joData = new JObject();
|
|
|
+ joData.Add("data", joInpar);
|
|
|
+ outparam = joData.ToString();
|
|
|
return 0;
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
|
|
|
- outparam = "GetYH6203Inpar:" + ex.Message;
|
|
|
+ outparam = "Get6203Inpar:" + ex.Message;
|
|
|
return -1;
|
|
|
}
|
|
|
finally
|
|
|
{
|
|
|
- Global.writeLog("GetYH6203Inpar", "", outparam);
|
|
|
+ Global.writeLog("Get6203Inpar", "", outparam);
|
|
|
}
|
|
|
}
|
|
|
|