Ejemplo n.º 1
0
 protected override void RunCommand()
 {
     try
     {
         if (!Tool.Instance().IsChaoBaoQi())
         {
             DockForm form = base.ShowForm <XfjfpfpForm>();
             if (form != null)
             {
                 form.set_TabText("选择要分配的发票卷");
                 (form as XfjfpfpForm).FormAction();
             }
         }
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
 }
Ejemplo n.º 2
0
 protected override void RunCommand()
 {
     try
     {
         if (((dlg == null) || !dlg.HasShow()) && !Tool.Instance().IsChaoBaoQi())
         {
             DockForm form = base.ShowForm <FpKuChunChaXunForm>();
             if (form != null)
             {
                 form.set_TabText("金税设备库存发票查询");
                 form.Text = "金税设备库存发票查询";
                 dlg       = form as FpKuChunChaXunForm;
                 dlg.FormAction();
             }
         }
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
 }
Ejemplo n.º 3
0
 protected override void RunCommand()
 {
     try
     {
         string driverVersion = Tool.Instance().GetDriverVersion();
         string softVersion   = Tool.Instance().GetSoftVersion();
         string str3          = driverVersion.Substring(7, 2) + driverVersion.Substring(10, 6);
         if (softVersion.Equals("FWKP_V2.0_Svr_Client"))
         {
             if (str3.CompareTo("A0160120") < 0)
             {
                 MessageManager.ShowMsgBox("INP-441208", new string[] { "主机网上分票" });
                 return;
             }
         }
         else if (str3.CompareTo("L1160120") < 0)
         {
             MessageManager.ShowMsgBox("INP-441208", new string[] { "主机网上分票" });
             return;
         }
         if (!Tool.Instance().IsChaoBaoQi())
         {
             new AllocateController().Run();
             DockForm form = base.ShowForm <AllocateVolume>();
             if (form != null)
             {
                 form.set_TabText("选择要分配的发票卷");
                 (form as AllocateVolume).FormAction();
             }
         }
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
 }