private void jinshuipanRep()
        {
            int num  = 0;
            int num2 = 1;

            try
            {
                int             iCRepInfo;
                TaxReportResult result;
                string          str;
                int             num4;
                int             num6;
                int             num10;
                if (this.checkBox1.Checked)
                {
                    iCRepInfo = base.TaxCardInstance.get_StateInfo().ICRepInfo;
                    ushort tBRepInfo = base.TaxCardInstance.get_StateInfo().TBRepInfo;
                    result = new TaxReportResult();
                    this.loger.Debug("办税厅抄报专普开始");
                    RepResult result2 = base.TaxCardInstance.TaxReport(num, 0, num2, ref result);
                    this.loger.Debug("办税厅抄报专普结束");
                    iCRepInfo = base.TaxCardInstance.get_StateInfo().ICRepInfo;
                    ushort num11 = base.TaxCardInstance.get_StateInfo().TBRepInfo;
                    str = "";
                    switch (result2)
                    {
                    case 0:
                        goto Label_0148;

                    case 1:
                        this.ShowNextCard();
                        break;

                    case 2:
                        goto Label_00B5;
                    }
                }
                goto Label_01AF;
Label_00B5:
                num4 = base.TaxCardInstance.get_RetCode();
                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_01AF;

                default:
                    if (num4 > 0)
                    {
                        MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                    }
                    goto Label_01AF;
                }
Label_0148:
                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);
                }
                this.zpSuccess = true;
Label_01AF:
                if (this.checkBox2.Checked && !this.hasRepHY)
                {
                    num = 0;
                    int             jSPRepInfo = this.typeHY.JSPRepInfo;
                    TaxReportResult result3    = new TaxReportResult();
                    this.loger.Debug("办税厅抄报货运开始");
                    RepResult result4 = base.TaxCardInstance.TaxReport(num, 11, num2, ref result3);
                    this.loger.Debug("办税厅抄报货运结束");
                    foreach (InvTypeInfo info2 in base.TaxCardInstance.get_StateInfo().InvTypeInfo)
                    {
                        if (info2.InvType == 11)
                        {
                            jSPRepInfo = info2.JSPRepInfo;
                        }
                    }
                    string str2 = "";
                    switch (result4)
                    {
                    case 0:
                        if ((jSPRepInfo != 0) && result3.NewOldFlag.Equals("0"))
                        {
                            this.fpDAL.UpDateBSBZ(true, false, base.TaxCardInstance.get_TaxClock(), "f", result3.Period);
                        }
                        this.hySuccess = true;
                        break;

                    case 1:
                        this.ShowNextCard();
                        break;

                    case 2:
                        num6 = base.TaxCardInstance.get_RetCode();
                        if (num6 != 0xca)
                        {
                            goto Label_02F2;
                        }
                        num  = 1;
                        str2 = base.TaxCardInstance.get_ErrCode();
                        this.loger.Error(string.Concat(new object[] { "大厅金税盘抄货运税失败-RetCode:", num6, "   ErrorCode:", str2 }));
                        break;
                    }
                }
                goto Label_0355;
Label_02F2:
                if (num6 > 0)
                {
                    MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                }
Label_0355:
                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();
                        this.loger.Debug("办税厅抄报机动车开始");
                        RepResult result6 = base.TaxCardInstance.TaxReport(num, 12, num2, ref result5);
                        this.loger.Debug("办税厅抄报机动车结束");
                        foreach (InvTypeInfo info4 in base.TaxCardInstance.get_StateInfo().InvTypeInfo)
                        {
                            if (info4.InvType == 12)
                            {
                                num7 = info4.JSPRepInfo;
                            }
                            if (info4.InvType == 0x33)
                            {
                                num8 = info4.JSPRepInfo;
                            }
                            if (info4.InvType == 0x29)
                            {
                                num9 = info4.JSPRepInfo;
                            }
                        }
                        string 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);
                            }
                            this.jdcSuccess = true;
                            break;

                        case 1:
                            this.ShowNextCard();
                            break;

                        case 2:
                            num10 = base.TaxCardInstance.get_RetCode();
                            if (num10 != 0xca)
                            {
                                goto Label_054D;
                            }
                            num  = 1;
                            str3 = base.TaxCardInstance.get_ErrCode();
                            this.loger.Error(string.Concat(new object[] { "大厅金税盘抄机动车电子卷票税失败-RetCode:", num10, "   ErrorCode:", str3 }));
                            break;
                        }
                    }
                }
                goto Label_0640;
Label_054D:
                if (num10 > 0)
                {
                    MessageManager.ShowMsgBox(base.TaxCardInstance.get_ErrCode());
                }
Label_0640:
                if ((this.zpSuccess || this.hySuccess) || this.jdcSuccess)
                {
                    MessageManager.ShowMsgBox("TCD_9116_", new List <KeyValuePair <string, string> >(), new string[] { "" }, new string[] { "" });
                }
            }
            catch (Exception exception)
            {
                MessageManager.ShowMsgBox("INP-251105", "提示", new string[] { "抄税处理异常!" });
                this.loger.Error("抄税处理异常:", exception);
            }
        }
        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);
            }
        }