|
|
@@ -149,7 +149,6 @@ namespace PTMedicalInsurance.Business
|
|
|
return -1;
|
|
|
}
|
|
|
joEncData = JObject.Parse(errMsg);
|
|
|
- Global.writeLog(JsonHelper.Compress(joEncData));
|
|
|
//设置
|
|
|
setSettlementsBy6202Rtn(joEncData);
|
|
|
MSettl.confirmFlag = 0;
|
|
|
@@ -242,11 +241,11 @@ namespace PTMedicalInsurance.Business
|
|
|
if (MSettl.onlineYBFalg != "Y")
|
|
|
{
|
|
|
//读电子凭证
|
|
|
- //if (ReadEc(out errMsg) != 0)
|
|
|
- //{
|
|
|
- // outPar = errMsg;
|
|
|
- // return -1;
|
|
|
- //}
|
|
|
+ if (ReadEc(out errMsg) != 0)
|
|
|
+ {
|
|
|
+ outPar = errMsg;
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//获取6203入参
|
|
|
@@ -308,18 +307,14 @@ namespace PTMedicalInsurance.Business
|
|
|
string errMsg = "";
|
|
|
try
|
|
|
{
|
|
|
- dynamic jo = new JObject();
|
|
|
- jo.mdtrt_cert_type = "01";
|
|
|
- jo.cardtype = "";
|
|
|
- jo.businesstype = "01301";
|
|
|
- jo.operatorId = Global.user.ID;
|
|
|
- jo.operatorName = Global.user.ID;
|
|
|
- jo.officeId = Global.user.officeID;
|
|
|
- jo.officeName = Global.user.officeName;
|
|
|
-
|
|
|
- JObject joData = new JObject();
|
|
|
- joData.Add("data", jo);
|
|
|
- JObject jo1191Rtn = invoker.invokeCenterService("1191", JsonHelper.setCenterInpar("1191", joData.ToString()));
|
|
|
+ Global.pat.mdtrtcertType = "01";
|
|
|
+ Global.businessType = "01301";
|
|
|
+ outPar = ECTokenReader.ECQuery("1");
|
|
|
+ if (string.IsNullOrEmpty(outPar)) {
|
|
|
+ outPar = "读取电子凭证失败!";
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ JObject jo1191Rtn = JObject.Parse(outPar);
|
|
|
if (JsonHelper.parseCenterRtnValue(jo1191Rtn, out errMsg) != 0)
|
|
|
{
|
|
|
outPar = errMsg;
|