zhengjie 1 year ago
parent
commit
93d10b3ca7
1 changed files with 14 additions and 9 deletions
  1. 14 9
      Forms/Clearing.cs

+ 14 - 9
Forms/Clearing.cs

@@ -29,6 +29,8 @@ namespace PTMedicalInsurance.Forms
         private UIDataGridViewFooter dgvHisSettlRecFooter = new Sunny.UI.UIDataGridViewFooter();
         JObject jo9102Rtn = new JObject();
 
+        MIIrisServices iris = new MIIrisServices();
+
         public Clearing()
         {
             InitializeComponent();
@@ -295,11 +297,6 @@ namespace PTMedicalInsurance.Forms
             JObject joData = new JObject();
             joData.Add("data", joClearing);
 
-            //先签到
-            //CenterBusiness cBus = new CenterBusiness();
-            //JObject jo9001Rtn = new JObject();
-            //cBus.signIn(out jo9001Rtn);
-
             InvokeHelper invoker = new InvokeHelper();
             JObject joRtn = invoker.invokeCenterService(TradeEnum.ClearingApply, joData);
             if (JsonHelper.parseCenterReturnJson(joRtn, out error) != 0)
@@ -369,10 +366,6 @@ namespace PTMedicalInsurance.Forms
             JObject joData = new JObject();
             joData.Add("data", joClearing);
             //上传给中心
-            //先签到
-            CenterBusiness cBus = new CenterBusiness();
-            JObject jo9001Rtn = new JObject();
-            cBus.signIn(out jo9001Rtn);
 
             InvokeHelper invoker = new InvokeHelper();
             JObject joRtn = invoker.invokeCenterService(TradeEnum.ClearingOtherApply, joData);
@@ -1424,6 +1417,18 @@ namespace PTMedicalInsurance.Forms
         private void tmsClearing_2_Click(object sender, EventArgs e)
         {
             string error = "";
+
+            JObject joSignRtn = new JObject();
+            if (!iris.isSigned(ref Global.curEvt.signno))
+            {
+                CallResult ret = new SignInProcess().Process(joSignRtn);
+                Global.writeLog("清算签到:" + ret.Data);
+            }
+            else
+            {
+                Global.writeLog("收费员已签到!");
+            }
+
             if ((Global.inf.interfaceDr == 38) && (cbOtherPlaceFlag.SelectedIndex == 1))
             {
                 if (OthPlcClearing_Single(out error) != 0)