Beispiel #1
0
 public static bool NoHaveFen_KaiPiaoJi(TaxCard taxcard, TaxStateInfo taxStateInfo)
 {
     try
     {
         if (taxStateInfo.IsWithChild == 0)
         {
             return(false);
         }
         if (0 >= taxStateInfo.MachineNumber)
         {
             return(false);
         }
     }
     catch (BaseException exception)
     {
         loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
         return(false);
     }
     catch (Exception exception2)
     {
         loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
         return(false);
     }
     return(true);
 }
Beispiel #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (!this.checkOldPW())
            {
                return;
            }
            TaxStateInfo stateInfo  = base.TaxCardInstance.GetStateInfo(false);
            ushort       isLockTime = 0;
            ushort       num2       = 0;

            foreach (InvTypeInfo info2 in stateInfo.InvTypeInfo)
            {
                if (info2.InvType == 11)
                {
                    isLockTime = info2.IsLockTime;
                }
                if (info2.InvType == 12)
                {
                    num2 = info2.IsLockTime;
                }
            }
            if (((stateInfo.IsLockReached != 0) || (isLockTime != 0)) || (num2 != 0))
            {
                MessageManager.ShowMsgBox("INP-252201");
            }
            else
            {
                switch (base.TaxCardInstance.SetCardPassword(this.txtOldPwd.Text, this.txtNewPwd.Text))
                {
                case 0:
                    MessageManager.ShowMsgBox("TCD_9113_", new List <KeyValuePair <string, string> >(), new string[] { "" }, new string[] { "" });
                    goto Label_0171;

                case 1:
                    MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                    this.txtOldPwd.Focus();
                    this.txtOldPwd.SelectAll();
                    return;

                case 2:
                    MessageManager.ShowMsgBox("INP-252203");
                    goto Label_0171;
                }
                MessageManager.ShowMsgBox("TCD_9114_", new List <KeyValuePair <string, string> >(), new string[] { "" }, new string[] { "" });
            }
Label_0171:
            FormMain.RefreashStatus();
            base.Close();
        }
Beispiel #3
0
 public static bool YiDaoShuoShiQi_JinShuiCard(TaxCard taxcard, TaxStateInfo taxStateInfo)
 {
     try
     {
         if (taxStateInfo.IsLockReached != 0)
         {
             return(false);
         }
     }
     catch (Exception exception)
     {
         loger.Error("YiDaoShuoShiQi_JinShuiCard函数异常" + exception.Message);
         return(false);
     }
     return(true);
 }
Beispiel #4
0
        private void GetMachineState()
        {
            TaxStateInfo info = this.taxCard.get_StateInfo();

            if (info.IsMainMachine == 0)
            {
                this.bIsMainMachine = false;
            }
            else
            {
                this.bIsMainMachine = true;
            }
            if (info.IsWithChild == 0)
            {
                this.bHasChild = false;
            }
            else
            {
                this.bHasChild = true;
            }
        }
 public bool IsLocked()
 {
     try
     {
         TaxStateInfo stateInfo = this.taxCard.GetStateInfo(false);
         if (stateInfo.IsLockReached == 0)
         {
             this.loger.Debug(stateInfo.IsLockReached);
             this.loger.Debug("未到锁死期");
             return(false);
         }
         this.loger.Debug("已到锁死期");
         return(true);
     }
     catch (Exception exception)
     {
         this.loger.Info("判断金税设备是否锁死失败");
         ExceptionHandler.HandleError(exception);
         return(false);
     }
 }
        public BaseForm RunCommand()
        {
            TaxCard      card      = TaxCardFactory.CreateTaxCard();
            TaxStateInfo stateInfo = card.GetStateInfo(false);

            if (card.get_RetCode() > 0)
            {
                MessageManager.ShowMsgBox(card.get_ErrCode());
                return(null);
            }
            if (stateInfo.MachineNumber != card.get_Machine())
            {
                MessageManager.ShowMsgBox("INP-252101");
                return(null);
            }
            if (card.get_ECardType() == 3)
            {
                return(new JSPStateQuery());
            }
            return(new JSKStateQuery());
        }
Beispiel #7
0
 public static bool NoIsZhu_KaiPiaoJi(TaxCard taxcard, TaxStateInfo taxStateInfo)
 {
     try
     {
         if (taxStateInfo.IsMainMachine == 0)
         {
             return(false);
         }
     }
     catch (BaseException exception)
     {
         loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
         return(false);
     }
     catch (Exception exception2)
     {
         loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
         return(false);
     }
     return(true);
 }
Beispiel #8
0
 public bool YiMan_ChunChuCard(TaxCard taxcard, TaxStateInfo taxStateInfo)
 {
     try
     {
         if (0x238f == taxcard.get_RetCode())
         {
             return(false);
         }
         return(true);
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
         return(false);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
         return(false);
     }
 }
Beispiel #9
0
 public CommFun.CorporationInfo GetCorporationInfo()
 {
     CommFun.CorporationInfo info = new CommFun.CorporationInfo();
     try
     {
         info.m_strCorpCode  = this.taxCard.get_CorpCode();
         info.m_strCorpName  = this.taxCard.get_Corporation();
         info.m_strSignCode  = this.taxCard.get_TaxCode();
         info.m_nMachineCode = this.taxCard.get_Machine();
         if (this.taxCard.get_TaxMode() == 2)
         {
             TaxStateInfo info2 = this.taxCard.get_StateInfo();
             info.m_lUpperLimit  = info2.InvLimit;
             info.m_nBranchCount = info2.MachineNumber;
         }
         else
         {
             info.m_lUpperLimit  = 0L;
             info.m_nBranchCount = 0;
         }
         info.m_strAddress     = this.taxCard.get_Address();
         info.m_strTelephone   = this.taxCard.get_Telephone();
         info.m_strBankAccount = this.taxCard.get_BankAccount();
         info.m_strAgenter     = this.taxCard.get_CorpAgent();
         info.m_bEasyLevy      = this.taxCard.get_EasyLevy();
         info.m_strRegType     = this.taxCard.get_RegType();
         info.m_strAccounter   = "";
         info.m_dtReportTime   = this.taxCard.get_RepDate();
         info.m_nSoftPanDiv    = 0;
     }
     catch (Exception exception)
     {
         this.loger.Debug(exception.Message);
         throw exception;
     }
     return(info);
 }
Beispiel #10
0
 public TaxStateWrapper(TaxStateInfo taxState, int iTaxCardMachine)
 {
     this.mTaxState = taxState;
     this.mKPJH     = iTaxCardMachine;
 }
 public InvoiceReportBLL()
 {
     this.taxStatInfo  = this.taxCard.get_StateInfo();
     this.m_InvHistory = new List <InvHistory>();
 }
Beispiel #12
0
        private void init()
        {
            TaxCard       card          = TaxCardFactory.CreateTaxCard();
            TaxStateInfo  info          = card.get_StateInfo();
            string        str           = (info.IsMainMachine == 1) ? "主开票机" : "分开票机";
            int           machineNumber = info.MachineNumber;
            DateTime      time          = card.get_RepDate();
            DateTime      time2         = card.get_TaxClock();
            double        invLimit      = info.InvLimit;
            int           isInvEmpty    = info.IsInvEmpty;
            int           isRepReached  = info.IsRepReached;
            int           isLockReached = info.IsLockReached;
            int           iCCardNo      = info.ICCardNo;
            int           iCAuthInfo    = info.ICAuthInfo;
            int           iCCapacity    = info.ICCapacity;
            int           iCRetInv      = info.ICRetInv;
            int           iCBuyInv      = info.ICBuyInv;
            int           iCRepDone     = info.ICRepDone;
            int           iCRepInfo     = info.ICRepInfo;
            int           iCInvSegm     = info.ICInvSegm;
            string        str2          = string.Format("{0}.{1:00}", info.MajorVersion, info.MinorVersion);
            string        driverVersion = info.DriverVersion;
            int           lockedDays    = info.LockedDays;
            int           companyType   = info.CompanyType;
            DateTime      time3         = card.get_LastRepDate();
            int           tBCardNo      = info.TBCardNo;
            int           tBAuthInfo    = info.TBAuthInfo;
            int           tBBuyInv      = info.TBBuyInv;
            int           tBCapacity    = info.TBCapacity;
            int           tBRegFlag     = info.TBRegFlag;
            int           tBRepDone     = info.TBRepDone;
            int           tBRepInfo     = info.TBRepInfo;
            int           tBRetInv      = info.TBRetInv;
            int           tBType        = info.TBType;
            int           isTBEnable    = info.IsTBEnable;
            SetAttribute  method        = new SetAttribute(this.OnSetAttribute);
            List <object> list          = new List <object> {
                str,
                machineNumber,
                time,
                time2,
                invLimit,
                isInvEmpty,
                isRepReached,
                isLockReached,
                iCCardNo,
                iCAuthInfo,
                iCCapacity,
                iCRetInv,
                iCBuyInv,
                iCRepDone,
                iCRepInfo,
                iCInvSegm,
                str2,
                driverVersion,
                lockedDays,
                companyType,
                time3,
                tBCardNo,
                tBAuthInfo,
                tBBuyInv,
                tBCapacity,
                tBRegFlag,
                tBRepDone,
                tBRepInfo,
                tBRetInv,
                tBType,
                isTBEnable
            };

            base.BeginInvoke(method, new object[] { list });
        }
 public TaxReportRegisterBLL()
 {
     this.taxStateInfo = this.taxCard.get_StateInfo();
 }
Beispiel #14
0
        public bool CanInvoice(FPLX fplx, out string code)
        {
            bool flag  = false;
            bool flag2 = false;
            bool flag3 = false;

            try
            {
                TaxStateInfo info = TaxCardFactory.CreateTaxCard().get_StateInfo();
                if ((fplx == null) || (fplx == 2))
                {
                    flag  = info.IsLockReached == 1;
                    flag2 = info.IsRepReached == 1;
                    flag3 = info.IsInvEmpty == 1;
                }
                else
                {
                    InvTypeInfo        info2       = new InvTypeInfo();
                    List <InvTypeInfo> invTypeInfo = info.InvTypeInfo;
                    if (fplx == 11)
                    {
                        foreach (InvTypeInfo info3 in invTypeInfo)
                        {
                            if (info3.InvType == 11)
                            {
                                info2 = info3;
                                break;
                            }
                        }
                    }
                    else if (fplx == 12)
                    {
                        foreach (InvTypeInfo info3 in invTypeInfo)
                        {
                            if (info3.InvType == 12)
                            {
                                info2 = info3;
                                break;
                            }
                        }
                    }
                    else if (fplx == 0x33)
                    {
                        foreach (InvTypeInfo info3 in invTypeInfo)
                        {
                            if (info3.InvType == 0x33)
                            {
                                info2 = info3;
                                break;
                            }
                        }
                    }
                    else if (fplx == 0x29)
                    {
                        foreach (InvTypeInfo info3 in invTypeInfo)
                        {
                            if (info3.InvType == 0x29)
                            {
                                info2 = info3;
                                break;
                            }
                        }
                    }
                    flag  = info2.IsLockTime == 1;
                    flag2 = info2.IsRepTime == 1;
                    flag3 = info.IsInvEmpty == 1;
                }
                if (flag)
                {
                    code = "INP-242101";
                    return(false);
                }
                if (flag2)
                {
                    code = "INP-242102";
                    return(false);
                }
                if (flag3)
                {
                    code = "INP-242103";
                    return(false);
                }
                code = "000000";
                return(true);
            }
            catch (Exception exception)
            {
                this.log.Error("单据管理开票前读取金税卡状态时异常:" + exception.ToString());
                code = "9999";
                return(false);
            }
        }
 public QueryPrintBLL()
 {
     this.taxStatInfo = this.taxCard.get_StateInfo();
 }
Beispiel #16
0
        private void judgeHyJdc()
        {
            TaxStateInfo       info        = base.TaxCardInstance.get_StateInfo();
            List <InvTypeInfo> invTypeInfo = info.InvTypeInfo;

            this.BSPRepInfo_ZP = info.TBRepInfo;
            foreach (InvTypeInfo info2 in invTypeInfo)
            {
                if (info2.InvType == 11)
                {
                    this.typeHY        = info2;
                    this.BSPRepInfo_HY = info2.ICRepInfo;
                }
                if ((info2.InvType == 11) && this.checkBox2.Checked)
                {
                    this.typeHY = info2;
                    string   str   = info2.LastRepDate.Split(new char[] { ' ' })[0];
                    DateTime time  = base.TaxCardInstance.get_TaxClock();
                    int      year  = -1;
                    int      month = -1;
                    int      day   = -1;
                    if ((str.Length > 0) && str.Contains("-"))
                    {
                        year  = int.Parse(str.Split(new char[] { '-' })[0]);
                        month = int.Parse(str.Split(new char[] { '-' })[1]);
                        day   = int.Parse(str.Split(new char[] { '-' })[2]);
                        DateTime time2 = new DateTime(year, month, day);
                        DateTime time3 = new DateTime(time.Year, time.Month, time.Day);
                        if ((DateTime.Compare(time2, time3) == 0) && (info2.JSPRepInfo == 0))
                        {
                            MessageManager.ShowMsgBox("TCD_9210_", new List <KeyValuePair <string, string> >(), new string[] { "货物运输业增值税专用发票" + Environment.NewLine }, new string[] { "" });
                            this.hasRepHY = true;
                        }
                    }
                }
                if (info2.InvType == 12)
                {
                    this.typeJDC        = info2;
                    this.BSPRepInfo_JDC = info2.ICRepInfo;
                }
                if ((info2.InvType == 12) && this.checkBox3.Checked)
                {
                    this.typeJDC = info2;
                    string   str2  = info2.LastRepDate.Split(new char[] { ' ' })[0];
                    DateTime time4 = base.TaxCardInstance.get_TaxClock();
                    int      num4  = -1;
                    int      num5  = -1;
                    int      num6  = -1;
                    if ((str2.Length > 0) && str2.Contains("-"))
                    {
                        num4 = int.Parse(str2.Split(new char[] { '-' })[0]);
                        num5 = int.Parse(str2.Split(new char[] { '-' })[1]);
                        num6 = int.Parse(str2.Split(new char[] { '-' })[2]);
                        DateTime time5 = new DateTime(num4, num5, num6);
                        DateTime time6 = new DateTime(time4.Year, time4.Month, time4.Day);
                        if ((DateTime.Compare(time5, time6) == 0) && (info2.JSPRepInfo == 0))
                        {
                            MessageManager.ShowMsgBox("TCD_9210_", new List <KeyValuePair <string, string> >(), new string[] { "机动车销售统一发票" + Environment.NewLine }, new string[] { "" });
                            this.hasRepJDC = true;
                        }
                    }
                }
                if ((info2.InvType == 0x33) && (base.TaxCardInstance.get_InvEleKindCode() == 0x33))
                {
                    this.typePTDZ        = info2;
                    this.BSPRepInfo_PTDZ = info2.ICRepInfo;
                }
                if (((info2.InvType == 0x33) && (base.TaxCardInstance.get_InvEleKindCode() == 0x33)) && this.checkBox3.Checked)
                {
                    this.typePTDZ = info2;
                    List <string> cSDate = base.TaxCardInstance.GetCSDate(0x33);
                    DateTime      time7  = base.TaxCardInstance.get_TaxClock();
                    string        str3   = cSDate[0];
                    int           num7   = -1;
                    int           num8   = -1;
                    int           num9   = -1;
                    if ((str3.Length > 0) && str3.Contains("-"))
                    {
                        string[] strArray = str3.Split(new char[] { '-' });
                        num7 = int.Parse(strArray[0]);
                        num8 = int.Parse(strArray[1]);
                        num9 = int.Parse(strArray[2].Substring(0, 2));
                    }
                    DateTime time8 = new DateTime(num7, num8, num9);
                    DateTime time9 = new DateTime(time7.Year, time7.Month, time7.Day);
                    if ((DateTime.Compare(time8, time9) == 0) && (info2.JSPRepInfo == 0))
                    {
                        MessageManager.ShowMsgBox("TCD_9210_", new List <KeyValuePair <string, string> >(), new string[] { "电子增值税普通发票" + Environment.NewLine }, new string[] { "" });
                        this.hasRepPTDZ = true;
                    }
                }
                if (info2.InvType == 0x29)
                {
                    this.typeJSFP        = info2;
                    this.BSPRepInfo_JSFP = info2.ICRepInfo;
                }
                if ((info2.InvType == 0x29) && this.checkBox3.Checked)
                {
                    this.typeJSFP = info2;
                    List <string> list3  = base.TaxCardInstance.GetCSDate(0x29);
                    DateTime      time10 = base.TaxCardInstance.get_TaxClock();
                    string        str4   = list3[0];
                    int           num10  = -1;
                    int           num11  = -1;
                    int           num12  = -1;
                    if ((str4.Length > 0) && str4.Contains("-"))
                    {
                        string[] strArray2 = str4.Split(new char[] { '-' });
                        num10 = int.Parse(strArray2[0]);
                        num11 = int.Parse(strArray2[1]);
                        num12 = int.Parse(strArray2[2].Substring(0, 2));
                    }
                    DateTime time11 = new DateTime(num10, num11, num12);
                    DateTime time12 = new DateTime(time10.Year, time10.Month, time10.Day);
                    if ((DateTime.Compare(time11, time12) == 0) && (info2.JSPRepInfo == 0))
                    {
                        MessageManager.ShowMsgBox("TCD_9210_", new List <KeyValuePair <string, string> >(), new string[] { "增值税普通发票(卷票)" + Environment.NewLine }, new string[] { "" });
                        this.hasRepJSFP = true;
                    }
                }
            }
        }
Beispiel #17
0
        private void baoshuipanRep()
        {
            int          num       = 0;
            int          num2      = 2;
            TaxStateInfo info      = base.TaxCardInstance.get_StateInfo();
            ushort       tBRepInfo = info.TBRepInfo;

            foreach (InvTypeInfo info2 in info.InvTypeInfo)
            {
                ushort invType = info2.InvType;
                ushort num12   = info2.InvType;
                ushort num13   = info2.InvType;
                ushort num14   = info2.InvType;
            }
            bool flag  = false;
            bool flag2 = false;
            bool flag3 = false;

            try
            {
                int             iCRepInfo;
                TaxReportResult result;
                string          str;
                int             num4;
                string          str2;
                int             num6;
                string          str3;
                int             num10;
                bool            flag4;
                if (this.checkBox1.Checked)
                {
                    iCRepInfo = base.TaxCardInstance.get_StateInfo().ICRepInfo;
                    ushort num15 = base.TaxCardInstance.get_StateInfo().TBRepInfo;
                    result = new TaxReportResult();
                    RepResult result2 = base.TaxCardInstance.TaxReport(num, 0, num2, ref result);
                    iCRepInfo = base.TaxCardInstance.get_StateInfo().ICRepInfo;
                    ushort num16 = base.TaxCardInstance.get_StateInfo().TBRepInfo;
                    str = "";
                    switch (result2)
                    {
                    case 0:
                        goto Label_01C7;

                    case 1:
                        this.ShowNextCard();
                        break;

                    case 2:
                        num4 = base.TaxCardInstance.get_RetCode();
                        if ((num4 != 0x2c7) && (num4 != 0x3e8))
                        {
                            goto Label_0144;
                        }
                        MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                        return;
                    }
                }
                goto Label_022B;
Label_0144:
                switch (num4)
                {
                case 0xca:
                case 0xd1:
                    num = 1;
                    str = base.TaxCardInstance.get_ErrCode();
                    this.loger.Error(string.Concat(new object[] { "大厅报税盘抄专普税失败-RetCode:", num4, "   ErrorCode:", str }));
                    goto Label_022B;

                default:
                    if (num4 > 0)
                    {
                        MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                    }
                    goto Label_022B;
                }
Label_01C7:
                if ((iCRepInfo != 0) && result.NewOldFlag.Equals("0"))
                {
                    this.fpDAL.UpDateBSBZ(true, false, base.TaxCardInstance.get_TaxClock(), "s", result.Period);
                    this.fpDAL.UpDateBSBZ(true, false, base.TaxCardInstance.get_TaxClock(), "c", result.Period);
                }
                flag = true;
Label_022B:
                if (this.checkBox2.Checked && !this.hasRepHY)
                {
                    num = 0;
                    int             jSPRepInfo = this.typeHY.JSPRepInfo;
                    TaxReportResult result3    = new TaxReportResult();
                    RepResult       result4    = base.TaxCardInstance.TaxReport(num, 11, num2, ref result3);
                    foreach (InvTypeInfo info4 in base.TaxCardInstance.get_StateInfo().InvTypeInfo)
                    {
                        if (info4.InvType == 11)
                        {
                            jSPRepInfo = info4.JSPRepInfo;
                        }
                    }
                    str2 = "";
                    switch (result4)
                    {
                    case 0:
                        if ((jSPRepInfo != 0) && result3.NewOldFlag.Equals("0"))
                        {
                            this.fpDAL.UpDateBSBZ(true, false, base.TaxCardInstance.get_TaxClock(), "f", result3.Period);
                        }
                        flag2 = true;
                        break;

                    case 1:
                        this.ShowNextCard();
                        break;

                    case 2:
                        num6 = base.TaxCardInstance.get_RetCode();
                        if ((num6 != 0x2c7) && (num6 != 0x3e8))
                        {
                            goto Label_031F;
                        }
                        MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                        return;
                    }
                }
                goto Label_03D5;
Label_031F:
                if (num6 == 0xca)
                {
                    num  = 1;
                    str2 = base.TaxCardInstance.get_ErrCode();
                    this.loger.Error(string.Concat(new object[] { "大厅报税盘抄货运税失败-RetCode:", num6, "   ErrorCode:", str2 }));
                }
                else if (num6 > 0)
                {
                    MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                }
Label_03D5:
                if ((this.checkBox3.Checked && !this.hasRepJDC) && (!this.hasRepPTDZ && !this.hasRepJSFP))
                {
                    if (this.CheckJDCDZFXSJ())
                    {
                        this.loger.Error(this.checkBox3.Text + "发行当天不允许抄税!");
                    }
                    else if (this.IsLingShuiDanDZ())
                    {
                        this.loger.Error(this.checkBox3.Text + "零税单电子不允许抄税!");
                    }
                    else
                    {
                        num = 0;
                        int             num7    = this.typeJDC.JSPRepInfo;
                        int             num8    = this.typePTDZ.JSPRepInfo;
                        int             num9    = this.typeJSFP.JSPRepInfo;
                        TaxReportResult result5 = new TaxReportResult();
                        RepResult       result6 = base.TaxCardInstance.TaxReport(num, 12, num2, ref result5);
                        foreach (InvTypeInfo info6 in base.TaxCardInstance.get_StateInfo().InvTypeInfo)
                        {
                            if (info6.InvType == 12)
                            {
                                num7 = info6.JSPRepInfo;
                            }
                            if (info6.InvType == 0x33)
                            {
                                num8 = info6.JSPRepInfo;
                            }
                            if (info6.InvType == 0x29)
                            {
                                num9 = info6.JSPRepInfo;
                            }
                        }
                        str3 = "";
                        switch (result6)
                        {
                        case 0:
                            if ((num7 != 0) && result5.NewOldFlag.Equals("0"))
                            {
                                this.fpDAL.UpDateBSBZ(true, false, base.TaxCardInstance.get_TaxClock(), "j", result5.Period);
                            }
                            if (((num8 != 0) && (base.TaxCardInstance.get_InvEleKindCode() == 0x33)) && result5.NewOldFlag.Equals("0"))
                            {
                                this.fpDAL.UpDateBSBZ(true, false, base.TaxCardInstance.get_TaxClock(), "p", result5.Period);
                            }
                            if ((num9 != 0) && result5.NewOldFlag.Equals("0"))
                            {
                                this.fpDAL.UpDateBSBZ(true, false, base.TaxCardInstance.get_TaxClock(), "q", result5.Period);
                            }
                            flag3 = true;
                            break;

                        case 1:
                            this.ShowNextCard();
                            break;

                        case 2:
                            num10 = base.TaxCardInstance.get_RetCode();
                            if ((num10 != 0x2c7) && (num10 != 0x3e8))
                            {
                                goto Label_057B;
                            }
                            MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                            return;
                        }
                    }
                }
                goto Label_06C4;
Label_057B:
                if (num10 == 0xca)
                {
                    num  = 1;
                    str3 = base.TaxCardInstance.get_ErrCode();
                    this.loger.Error(string.Concat(new object[] { "大厅报税盘抄机动车电子税失败-RetCode:", num10, "   ErrorCode:", str3 }));
                }
                else if (num10 > 0)
                {
                    MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                }
Label_06C4:
                flag4 = info.TBRepInfo != 0;
                bool flag5 = false;
                bool flag6 = false;
                bool flag7 = false;
                foreach (InvTypeInfo info7 in info.InvTypeInfo)
                {
                    if (info7.InvType == 11)
                    {
                        flag5 = info7.ICRepInfo != 0;
                    }
                    if (info7.InvType == 12)
                    {
                        flag6 = info7.ICRepInfo != 0;
                    }
                    if (info7.InvType == 0x33)
                    {
                        flag7 = info7.ICRepInfo != 0;
                    }
                }
                string str4 = string.Empty;
                if (flag4)
                {
                    str4 = str4 + "“" + this.checkBox1.Text + "”";
                }
                if (flag5)
                {
                    str4 = str4 + "“" + this.checkBox2.Text + "”";
                }
                if (flag6 || flag7)
                {
                    str4 = str4 + "“" + this.checkBox3.Text + "”";
                }
                if ((flag || flag2) || flag3)
                {
                    string str5 = "";
                    string str6 = "";
                    if (!string.IsNullOrEmpty(str4))
                    {
                        str5 = str5 + "报税盘包含:" + str4 + "的报税资料。";
                    }
                    str6 = Environment.NewLine + str5;
                    MessageManager.ShowMsgBox("TCD_9116_", new List <KeyValuePair <string, string> >(), new string[] { str6 }, new string[] { "" });
                }
            }
            catch (Exception exception)
            {
                MessageManager.ShowMsgBox("INP-251105", "提示", new string[] { "抄税处理异常!" });
                this.loger.Error("抄税处理异常:", exception);
            }
        }