|
@@ -35,6 +35,7 @@ namespace PTMedicalInsurance.Forms
|
|
|
private HisIrisServices hIS = new HisIrisServices();
|
|
|
private MIIrisServices mIS = new MIIrisServices();
|
|
|
HisMainBusiness hBus = new HisMainBusiness();
|
|
|
+ CenterBusiness cBus = new CenterBusiness();
|
|
|
|
|
|
public MedInsuQuery()
|
|
|
{
|
|
@@ -1250,10 +1251,12 @@ namespace PTMedicalInsurance.Forms
|
|
|
|
|
|
if (Global.inf.areaCode == "340100")
|
|
|
{
|
|
|
+ Global.inf.interfaceDr = 17;
|
|
|
Global.inf.areaCode = "340100";
|
|
|
Global.inf.centerURL = "http://10.67.240.74:8086/1.0.0/hsa-fsi-";
|
|
|
}else
|
|
|
{
|
|
|
+ Global.inf.interfaceDr = 15;
|
|
|
Global.inf.areaCode = "349900";
|
|
|
Global.inf.centerURL = "http://10.66.155.173:8086/1.0.0/hsa-fsi-";
|
|
|
}
|
|
@@ -1273,16 +1276,45 @@ namespace PTMedicalInsurance.Forms
|
|
|
|
|
|
if (Global.inf.areaCode == "349900")
|
|
|
{
|
|
|
+ Global.inf.interfaceDr = 17;
|
|
|
+ Global.pat.insuplc_admdvs = "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.pat.insuplc_admdvs = "349900";
|
|
|
Global.inf.centerURL = "http://10.66.155.173:8086/1.0.0/hsa-fsi-";
|
|
|
+ Global.inf.interfaceDr = 15;
|
|
|
}
|
|
|
|
|
|
- joRtn = invoker.invokeCenterService("1101", JsonHelper.setCenterInpar("1101", joInput));
|
|
|
+
|
|
|
+
|
|
|
+ //签到
|
|
|
+ if (cBus.signIn(out joRtn) != 0)
|
|
|
+ {
|
|
|
+ MessageBox.Show("医保签到异常,请检查医保环境!");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Global.curEvt.signno = JsonHelper.getDestValue(joRtn, "output.signinoutb.sign_no");
|
|
|
+
|
|
|
+ //插入签到表
|
|
|
+ if (mIS.saveSignRecord(Global.curEvt.signno, out errMsg) != 0)
|
|
|
+ {
|
|
|
+ //MessageBox.Show("中心签到成功但插入签到表失败!");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ //签到成功
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ joRtn = invoker.invokeCenterService("1101", JsonHelper.setCenterInpar("1101", joInput));
|
|
|
|
|
|
|
|
|
outParam = joRtn.ToString();
|