|
@@ -1237,8 +1237,7 @@ namespace PTMedicalInsurance.Forms
|
|
|
JObject joInput = new JObject();
|
|
|
JObject joRtn = new JObject();
|
|
|
string errorMsg = "";
|
|
|
- if (string.IsNullOrEmpty(Global.pat.psn_no))
|
|
|
- {
|
|
|
+
|
|
|
joData.Add("mdtrt_cert_type", "02");
|
|
|
joData.Add("mdtrt_cert_no", Global.pat.certNO);
|
|
|
joData.Add("card_sn","");
|
|
@@ -1249,15 +1248,42 @@ namespace PTMedicalInsurance.Forms
|
|
|
|
|
|
joInput.Add("data", joData);
|
|
|
|
|
|
+ if (Global.inf.areaCode == "340100")
|
|
|
+ {
|
|
|
+ Global.inf.areaCode = "340100";
|
|
|
+ Global.inf.centerURL = "http://10.67.240.74:8086/1.0.0/hsa-fsi-";
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ Global.inf.areaCode = "349900";
|
|
|
+ Global.inf.centerURL = "http://10.66.155.173:8086/1.0.0/hsa-fsi-";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
joRtn = invoker.invokeCenterService("1101", JsonHelper.setCenterInpar("1101", joInput));
|
|
|
- if (JsonHelper.parseCenterRtnValue(joRtn, out errorMsg) != 0)
|
|
|
+ if (JsonHelper.parseCenterRtnValue(joRtn, out errorMsg) == 0)
|
|
|
{
|
|
|
- outParam = "获取病人参保信息失败:" + errorMsg;
|
|
|
-
|
|
|
+ outParam = joRtn.ToString();
|
|
|
+ Global.pat.insuplc_admdvs = JsonHelper.getDestValue(JObject.Parse(outParam), "output.insuinfo.insuplc_admdvs"); //参保地
|
|
|
+ Global.pat.psn_no = JsonHelper.getDestValue(JObject.Parse(outParam), "output.baseinfo.psn_no"); //人员编号
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- //joRtn.Add("cardinfo",joCardInfo);
|
|
|
+ //joRtn.Add("cardinfo",joCardInfo);
|
|
|
+
|
|
|
+
|
|
|
+ if (Global.inf.areaCode == "349900")
|
|
|
+ {
|
|
|
+ Global.inf.areaCode = "340100";
|
|
|
+ Global.inf.centerURL = "http://10.67.240.74:8086/1.0.0/hsa-fsi-";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Global.inf.areaCode = "349900";
|
|
|
+ Global.inf.centerURL = "http://10.66.155.173:8086/1.0.0/hsa-fsi-";
|
|
|
+ }
|
|
|
+
|
|
|
+ joRtn = invoker.invokeCenterService("1101", JsonHelper.setCenterInpar("1101", joInput));
|
|
|
+
|
|
|
|
|
|
outParam = joRtn.ToString();
|
|
|
Global.pat.insuplc_admdvs = JsonHelper.getDestValue(JObject.Parse(outParam), "output.insuinfo.insuplc_admdvs"); //参保地
|
|
@@ -1265,13 +1291,13 @@ namespace PTMedicalInsurance.Forms
|
|
|
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
- if (string.IsNullOrEmpty(Global.pat.psn_no))
|
|
|
- {
|
|
|
- MessageBox.Show("未获取到该患者的医保个人编号,请确认患者建卡信息是否维护身份证号!");
|
|
|
- return;
|
|
|
- }
|
|
|
+ //if (string.IsNullOrEmpty(Global.pat.psn_no))
|
|
|
+ //{
|
|
|
+ // MessageBox.Show("未获取到该患者的医保个人编号,请确认患者建卡信息是否维护身份证号!");
|
|
|
+ // return;
|
|
|
+ //}
|
|
|
|
|
|
JObject joInput1 = new JObject();
|
|
|
JObject joData1 = new JObject();
|