Пример #1
0
 protected override bool SetValid()
 {
     try
     {
         if (!GetTaxMode.GetTaxModValue())
         {
             return(false);
         }
         if (!PopUpBox.NoIsZhu_KaiPiaoJi(GetTaxMode.GetTaxCard(), GetTaxMode.GetTaxStateInfo()))
         {
             return(false);
         }
         if (!PopUpBox.NoHaveFen_KaiPiaoJi(GetTaxMode.GetTaxCard(), GetTaxMode.GetTaxStateInfo()))
         {
             string dHYBZ = GetTaxMode.GetTaxCard().get_SQInfo().DHYBZ;
             return(dHYBZ.Equals("Y") || dHYBZ.Equals("Z"));
         }
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
     return(true);
 }
Пример #2
0
 protected override bool SetValid()
 {
     try
     {
         if (!GetTaxMode.GetTaxModValue())
         {
             return(false);
         }
         if (!PopUpBox.NoIsZhu_KaiPiaoJi(GetTaxMode.GetTaxCard(), GetTaxMode.GetTaxStateInfo()))
         {
             return(ShareMethods.CheckHasDownloadAllowInvType());
         }
         if (GetTaxMode.GetTaxCard().get_QYLX().ISTDQY)
         {
             return(false);
         }
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
     return(true);
 }
Пример #3
0
 protected override bool SetValid()
 {
     try
     {
         if (GetTaxMode.GetTaxCard().get_QYLX().ISTDQY)
         {
             return(false);
         }
         if ((((!GetTaxMode.GetTaxCard().get_QYLX().ISHY&& !GetTaxMode.GetTaxCard().get_QYLX().ISJDC) && !GetTaxMode.GetTaxCard().get_QYLX().ISPTFPDZ) && !GetTaxMode.GetTaxCard().get_QYLX().ISPTFPJSP) && (GetTaxMode.GetTaxCard().get_StateInfo().MachineNumber == 0))
         {
             return(false);
         }
         if (PopUpBox.NoIsZhu_KaiPiaoJi(GetTaxMode.GetTaxCard(), GetTaxMode.GetTaxStateInfo()) && !((GetTaxMode.GetTaxCard().get_QYLX().ISPTFP || GetTaxMode.GetTaxCard().get_QYLX().ISZYFP) || GetTaxMode.GetTaxCard().get_QYLX().ISJDC))
         {
             return(false);
         }
         return(true);
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
     return(true);
 }
 protected override bool SetValid()
 {
     try
     {
         return(GetTaxMode.GetTaxModValue() && !PopUpBox.NoIsZhu_KaiPiaoJi(GetTaxMode.GetTaxCard(), GetTaxMode.GetTaxStateInfo()));
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
     return(true);
 }