Ejemplo n.º 1
0
 public void method_0()
 {
     try
     {
         string location = Assembly.GetExecutingAssembly().Location;
         this.string_1 = location.Substring(0, location.LastIndexOf(@"\")) + @"\" + AttributeName.QYXXFileName;
         XmlDocument document = new XmlDocument();
         if (!Class87.bool_3)
         {
             if (File.Exists(this.string_1))
             {
                 Class101.smethod_0("更新企业参数同步数据:数据文件已存在。");
                 document.Load(this.string_1);
                 Class101.smethod_0("更新企业参数同步数据:!    " + document.InnerXml);
                 if (string.IsNullOrEmpty(document.InnerXml))
                 {
                     if (Class87.bool_3)
                     {
                         Class87.dictionary_0["UpdateBZ"] = "1";
                         Class87.dictionary_0["Message"]  = "服务器端异常,返回信息为空";
                     }
                     return;
                 }
                 this.class84_0.method_18(document);
                 if (File.Exists(this.string_1))
                 {
                     File.Delete(this.string_1);
                 }
                 MessageHelper.MsgWait();
                 Class86.smethod_9();
             }
             document      = this.class84_0.method_16();
             this.string_0 = document.InnerXml;
             ThreadStart start = new ThreadStart(this.method_1);
             new Thread(start).Start();
         }
         else
         {
             document = this.class84_0.method_16();
             if (document != null)
             {
                 Class103.smethod_0(document, "OptionToServer");
                 string str2 = "";
                 Class101.smethod_0("开始企业信息上传,【企业参数同步】上传报文:" + document.InnerXml);
                 if (HttpsSender.SendMsg("0001", document.InnerXml.ToString(), out str2) != 0)
                 {
                     Class101.smethod_1("企业信息上传失败!    " + str2.ToString());
                     Class95.bool_0   = false;
                     Class95.string_0 = "企业参数更新失败:" + str2;
                     Class95.bool_1   = false;
                     Class95.string_1 = Class95.string_2 + "同步失败:" + str2;
                     if (Class87.bool_3)
                     {
                         Class87.dictionary_0["UpdateBZ"] = "0";
                         Class87.dictionary_0["Message"]  = str2;
                     }
                 }
                 else
                 {
                     Class101.smethod_0("企业参数同步,局端返回数据:!    " + str2.ToString());
                     if (string.IsNullOrEmpty(str2))
                     {
                         if (Class87.bool_3)
                         {
                             Class87.dictionary_0["UpdateBZ"] = "1";
                             Class87.dictionary_0["Message"]  = "服务器端异常,返回信息为空";
                         }
                     }
                     else
                     {
                         XmlDocument document2 = new XmlDocument();
                         document2.LoadXml(str2);
                         Class103.smethod_0(document2, "OptionFromServer");
                         this.class84_0.method_18(document2);
                         MessageHelper.MsgWait();
                         Class86.smethod_9();
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         Class101.smethod_1("更新企业参数信息失败!" + exception.ToString());
     }
 }
Ejemplo n.º 2
0
        public void method_1(string string_0)
        {
            try
            {
                Class84 class2 = new Class84();
                class2.method_40(string_0);
                Class87.list_1.Clear();
                DataTable table = new DataTable();
                table.Columns.Add("FPSLH", typeof(string));
                DataRow row = table.NewRow();
                row["FPSLH"] = string_0;
                table.Rows.Add(row);
                table.AcceptChanges();
                this.list_0.Clear();
                this.list_0 = this.class84_0.method_5(table);
                XmlDocument document = new XmlDocument();
                string      str      = "";
                int         num4     = (this.list_0.Count > 5) ? 5 : this.list_0.Count;
                for (int i = 0; i < num4; i++)
                {
                    Class103.smethod_0(this.list_0[i], "DownMethodToServer" + i);
                    string str2 = this.class84_0.method_28(this.list_0[i]);
                    Class101.smethod_0("(发票下载)通过受理序列号得到的票种为:" + str2);
                    if (!str2.Equals("q") && !str2.Equals("JSFP"))
                    {
                        if (HttpsSender.SendMsg("0004", this.list_0[i].InnerXml.ToString(), out str) == 0)
                        {
                            goto Label_023F;
                        }
                        Class87.bool_1 = false;
                        int index = str.IndexOf("[");
                        int num   = str.IndexOf("]");
                        if ((index > -1) && (num > index))
                        {
                            Class87.string_3 = str.Substring(index + 1, num - 1);
                        }
                        if (num > 0)
                        {
                            Class87.string_2 = str.Substring(num + 1);
                        }
                        else
                        {
                            Class87.string_2 = str;
                        }
                        Class87.xmlDocument_1 = class2.method_26(1);
                        class2.method_22(this.list_0[i], str, 3);
                        continue;
                    }
                    Class101.smethod_0("(发票下载)开始卷票上传,原文:" + this.list_0[i].InnerXml);
                    if (HttpsSender.SendMsg("0030", this.list_0[i].InnerXml.ToString(), out str) != 0)
                    {
                        class2.method_22(this.list_0[i], str, 3);
                        Class101.smethod_1("(下载线程)发票下载失败!            " + str);
                        continue;
                    }
Label_023F:
                    Class87.bool_1 = true;
                    document.LoadXml(str);
                    if (Class87.bool_2)
                    {
                        XmlDocument document2 = new XmlDocument();
                        document2.LoadXml(document.InnerXml);
                        Class101.smethod_0("发票下载-批量接口:局端返回报文处理前:" + document2.InnerXml);
                        Class87.xmlDocument_1 = this.class84_0.method_25(document2);
                        Class101.smethod_0("发票下载-批量接口:局端返回报文处理后:" + document2.InnerXml);
                    }
                    Class103.smethod_0(document, "DownMethodFromServer" + i);
                    Class101.smethod_0("开始调用AnalyzeDownMethodXmlDoc-Single");
                    this.class84_0.method_9(document, this.list_0[i]);
                }
                Class88.smethod_1();
                Class88.smethod_4();
            }
            catch (Exception exception)
            {
                Class101.smethod_1("DownLoadBySingle异常:" + exception.ToString());
            }
        }
Ejemplo n.º 3
0
        public static int smethod_1(Class103 class103_1, int[] int_25, int[] int_26, int[] int_27, int[] int_28, Class102 class102_0)
        {
            int num = 0;
            int result = 1;
            int num2 = -2147483648;
            if (class103_1.int_3 == null)
            {
                return 2;
            }
            if (class103_1.int_4 == 0)
            {
                int arg_26_1 = 0;
                int_26[0] = 0;
                int_25[arg_26_1] = 0;
                return 0;
            }
            bool ILE4 = false;
            for (; ; )
            {
                while (ILE4 || class103_1.int_3[num, 0] != 0)
                {
                    if (!ILE4)
                    {
                        if (class102_0.method_2() != 0)
                        {
                            while (class103_1.int_3[num, 1] >= 250)
                            {
                                num += class103_1.int_3[num, 1];
                            }
                            num += class103_1.int_3[num, 1];
                        }
                        else
                        {
                            while (class103_1.int_3[num, 0] >= 250)
                            {
                                num += class103_1.int_3[num, 0];
                            }
                            num += class103_1.int_3[num, 0];
                        }

                        num2 >>= 1;
                    }
                    if (ILE4 || num2 == 0 && num >= 0)
                    {
                        //IL_E4:
                        if (class103_1.char_0 == '3' && (class103_1.char_1 == '2' || class103_1.char_1 == '3'))
                        {
                            int_27[0] = (int_26[0] >> 3 & 1);
                            int_28[0] = (int_26[0] >> 2 & 1);
                            int_25[0] = (int_26[0] >> 1 & 1);
                            int_26[0] = (int_26[0] & 1);
                            if (int_27[0] != 0 && class102_0.method_2() != 0)
                            {
                                int_27[0] = -int_27[0];
                            }
                            if (int_28[0] != 0 && class102_0.method_2() != 0)
                            {
                                int_28[0] = -int_28[0];
                            }
                            if (int_25[0] != 0 && class102_0.method_2() != 0)
                            {
                                int_25[0] = -int_25[0];
                            }
                            if (int_26[0] != 0 && class102_0.method_2() != 0)
                            {
                                int_26[0] = -int_26[0];
                            }
                        }
                        else
                        {
                            if (class103_1.int_2 != 0 && class103_1.int_0 - 1 == int_25[0])
                            {
                                int_25[0] += class102_0.method_1(class103_1.int_2);
                            }
                            if (int_25[0] != 0 && class102_0.method_2() != 0)
                            {
                                int_25[0] = -int_25[0];
                            }
                            if (class103_1.int_2 != 0 && class103_1.int_1 - 1 == int_26[0])
                            {
                                int_26[0] += class102_0.method_1(class103_1.int_2);
                            }
                            if (int_26[0] != 0 && class102_0.method_2() != 0)
                            {
                                int_26[0] = -int_26[0];
                            }
                        }
                        return result;
                    }
                }
                int num3 = class103_1.int_3[num, 1];
                int_25[0] = num3 >> 4;
                int_26[0] = (class103_1.int_3[num, 1] & 15);
                result = 0;
                ILE4 = true;
            }
            //goto IL_E4;
        }
Ejemplo n.º 4
0
        private void method_2()
        {
            try
            {
                Class101.smethod_0("进入beginDownloadTread");
                Class87.list_1.Clear();
                if (this.bool_0)
                {
                    this.int_0       = 0;
                    this.int_1       = 0;
                    this.dataTable_0 = this.class100_0.method_4();
                }
                if (((this.dataTable_0 != null) && (this.dataTable_0.Rows.Count >= 1)) && ((this.int_0 < this.dataTable_0.Rows.Count) && (this.int_1 < this.dataTable_0.Rows.Count)))
                {
                    this.int_1 = this.int_0 + 10;
                    if (this.int_1 > this.dataTable_0.Rows.Count)
                    {
                        this.int_1 = this.dataTable_0.Rows.Count;
                    }
                    this.bool_0 = false;
                    this.dataTable_1.Clear();
                    for (int i = this.int_0; i < this.int_1; i++)
                    {
                        this.dataTable_1.Rows.Add(this.dataTable_0.Rows[i].ItemArray);
                    }
                    this.list_0.Clear();
                    this.list_0 = this.class84_0.method_5(this.dataTable_1);
                    XmlDocument document = new XmlDocument();
                    string      str      = "";
                    Class101.smethod_0("Begin For Loop : " + this.list_0.Count.ToString());
                    for (int j = 0; j < this.list_0.Count; j++)
                    {
                        Class101.smethod_1("(下载线程)开始下载发票信息!");
                        Class103.smethod_0(this.list_0[j], "DownMethodToServer" + j);
                        string str2 = this.class84_0.method_28(this.list_0[j]);
                        Class101.smethod_0("(发票下载)通过受理序列号得到的票种为:" + str2);
                        if (!str2.Equals("q") && !str2.Equals("JSFP"))
                        {
                            if (HttpsSender.SendMsg("0004", this.list_0[j].InnerXml.ToString(), out str) == 0)
                            {
                                goto Label_02AC;
                            }
                            this.class84_0.method_22(this.list_0[j], str, 3);
                            Class101.smethod_1("(下载线程)发票下载失败!            " + str);
                            continue;
                        }
                        Class101.smethod_0("(发票下载)开始卷票上传,原文:" + this.list_0[j].InnerXml);
                        if (HttpsSender.SendMsg("0030", this.list_0[j].InnerXml.ToString(), out str) != 0)
                        {
                            this.class84_0.method_22(this.list_0[j], str, 3);
                            Class101.smethod_1("(下载线程)发票下载失败!            " + str);
                            continue;
                        }
Label_02AC:
                        Class101.smethod_0("(下载线程)开始下载发票信息结束,准备解析服务器返回数据:" + str);
                        document.LoadXml(str);
                        Class103.smethod_0(document, "DownMethodFromServer" + j);
                        Class101.smethod_0("开始调用AnalyzeDownMethodXmlDoc,发送给局端数据:" + this.list_0[j].InnerXml);
                        this.class84_0.method_9(document, this.list_0[j]);
                    }
                    Class88.smethod_1();
                    Class88.smethod_4();
                    this.int_0 += 10;
                }
                else
                {
                    this.bool_0 = true;
                    this.dataTable_0.Clear();
                    this.dataTable_1.Clear();
                }
            }
            catch (Exception exception)
            {
                Class101.smethod_1("(下载线程)发票下载失败!" + exception.ToString());
            }
        }
Ejemplo n.º 5
0
        private void method_0(bool bool_2, bool bool_3, string string_0, string string_1, string string_2, string string_3)
        {
            try
            {
                XmlDocument       document = new XmlDocument();
                UpdateTransMethod wBS      = UpdateTransMethod.WBS;
                string            str      = string.Empty;
                this.dateTime_0 = DateTime.Now;
                this.bool_0     = false;
                Class87.list_0.Clear();
                if (bool_3)
                {
                    this.int_0 = this.method_5(UpdateTransMethod.BSZ);
                    wBS        = UpdateTransMethod.BSZ;
                }
                else if (this.int_0 < 1)
                {
                    this.int_0 = this.method_5(UpdateTransMethod.WBS);
                    wBS        = UpdateTransMethod.WBS;
                }
                if (Class87.bool_3)
                {
                    this.int_0 = 1;
                }
                else
                {
                    if (this.int_0 < 1)
                    {
                        this.int_1  = 0;
                        this.int_2  = 0;
                        this.bool_0 = true;
                        Class101.smethod_0("发票上传:没有需要上传的发票");
                        return;
                    }
                    if (bool_3)
                    {
                        this.bool_0 = true;
                    }
                    else
                    {
                        this.bool_0 = false;
                    }
                }
                if (Class87.bool_3)
                {
                    this.int_1 = 1;
                    this.int_2 = this.int_0 + 1;
                }
                else if ((!bool_2 && !bool_3) && !FormMain.bContinuUpload)
                {
                    this.int_1++;
                    this.int_2 = this.int_1 + 1;
                }
                else
                {
                    this.int_1 = 1;
                    this.int_2 = this.int_0 + 1;
                }
                if (((!string.IsNullOrEmpty(string_1) && !string.IsNullOrEmpty(string_0)) && !string.IsNullOrEmpty(string_2)) || !string.IsNullOrEmpty(string_3))
                {
                    this.int_1 = 1;
                    this.int_2 = 2;
                    wBS        = UpdateTransMethod.BszAndWbs;
                }
                bool flag = false;
                int  num  = this.int_1;
                while (true)
                {
                    if (num >= this.int_2)
                    {
                        break;
                    }
                    this.list_0.Clear();
                    this.list_1.Clear();
                    this.list_2.Clear();
                    this.list_3.Clear();
                    this.list_4.Clear();
                    Class101.smethod_1("(上传线程)开始获取待上传的发票信息");
                    if (!this.class84_0.method_3(ref this.list_0, ref this.list_1, ref this.list_2, ref this.list_3, ref this.list_4, num, wBS, string_1, string_0, string_2, string_3))
                    {
                        Class101.smethod_1("(上传线程)没有需要上传的发票信息");
                        this.bool_0 = true;
                        this.int_0  = 0;
                        this.int_1  = 0;
                        this.int_2  = 0;
                    }
                    else
                    {
                        Class101.smethod_1("(上传线程)获取待上传的发票信息结束");
                        try
                        {
                            str = string.Empty;
                            for (int i = 0; i < this.list_0.Count; i++)
                            {
                                if (!bool_2 && (Class97.dataTable_0.Rows.Count >= Class87.int_0))
                                {
                                    goto Label_0398;
                                }
                                Class103.smethod_0(this.list_0[i], "UpMethodZPToServer" + i);
                                Class101.smethod_1("(上传线程)开始专普发票上传");
                                if (HttpsSender.SendMsg("0003", this.list_0[i].InnerXml.ToString(), out str) != 0)
                                {
                                    Class101.smethod_1("(上传线程)专普发票上传失败!             " + str.ToString());
                                    Class87.bool_0 = false;
                                    int index = str.IndexOf("[");
                                    int num3  = str.IndexOf("]");
                                    if ((index > -1) && (num3 > index))
                                    {
                                        Class87.string_0 = str.Substring(index + 1, num3 - 1);
                                    }
                                    if (num3 > 0)
                                    {
                                        Class87.string_1 = str.Substring(num3 + 1);
                                    }
                                    else
                                    {
                                        Class87.string_1 = str;
                                    }
                                    this.class84_0.method_19(this.list_0[i], "执行发票上传失败,原因:" + str, 0);
                                    this.bool_0 = this.bool_0;
                                }
                                else
                                {
                                    Class101.smethod_1("(上传线程)开始解析专普发票上传结果。");
                                    if (!string.IsNullOrEmpty(str))
                                    {
                                        document.LoadXml(str);
                                        Class103.smethod_0(document, "UpMethodZPFromServer" + i);
                                        if (this.class100_0.method_6(document, this.list_0[i]))
                                        {
                                            Class87.bool_0 = true;
                                            this.bool_0    = true;
                                            flag           = true;
                                            Class101.smethod_0("(上传线程)专普发票上传结束!");
                                        }
                                    }
                                }
                            }
                            goto Label_03A6;
Label_0398:
                            this.int_1 = 0;
                            this.int_2 = 0;
Label_03A6:
                            this.list_0.Clear();
                        }
                        catch (Exception exception)
                        {
                            Class101.smethod_1("(上传线程)专普发票上传失败!" + exception.ToString());
                        }
                        try
                        {
                            str = string.Empty;
                            for (int j = 0; j < this.list_1.Count; j++)
                            {
                                if (!bool_2 && (Class97.dataTable_0.Rows.Count >= Class87.int_0))
                                {
                                    goto Label_0575;
                                }
                                Class103.smethod_0(this.list_1[j], "UpMethodHYTOServer" + j);
                                Class101.smethod_1("(上传线程)开始上传货运发票!");
                                if (HttpsSender.SendMsg("0005", this.list_1[j].InnerXml.ToString(), out str) != 0)
                                {
                                    Class101.smethod_1("(上传线程)货运发票上传失败!        " + str.ToString());
                                    Class87.bool_0 = false;
                                    int num6 = str.IndexOf("[");
                                    int num7 = str.IndexOf("]");
                                    if ((num6 > -1) && (num7 > num6))
                                    {
                                        Class87.string_0 = str.Substring(num6 + 1, num7 - 1);
                                    }
                                    if (num7 > 0)
                                    {
                                        Class87.string_1 = str.Substring(num7 + 1);
                                    }
                                    else
                                    {
                                        Class87.string_1 = str;
                                    }
                                    this.class84_0.method_21(this.list_1[j], "f", "执行发票上传失败,原因:" + str, 0);
                                    this.bool_0 = this.bool_0;
                                }
                                else
                                {
                                    Class101.smethod_1("<上传线程>开始解析货运发票上传结果。");
                                    if (!string.IsNullOrEmpty(str))
                                    {
                                        document.LoadXml(str);
                                        Class103.smethod_0(document, "UpMethodHYFromServer" + j);
                                        if (this.class100_0.method_8(document, this.list_1[j], "f"))
                                        {
                                            this.bool_0    = true;
                                            Class87.bool_0 = true;
                                            flag           = true;
                                            Class101.smethod_0("(上传线程)货运发票上传结束!");
                                        }
                                    }
                                }
                            }
                            goto Label_0583;
Label_0575:
                            this.int_1 = 0;
                            this.int_2 = 0;
Label_0583:
                            this.list_1.Clear();
                        }
                        catch (Exception exception2)
                        {
                            Class101.smethod_1("(上传线程)货运发票上传失败!" + exception2.ToString());
                        }
                        try
                        {
                            for (int k = 0; k < this.list_2.Count; k++)
                            {
                                if (!bool_2 && (Class97.dataTable_0.Rows.Count >= Class87.int_0))
                                {
                                    goto Label_0752;
                                }
                                str = string.Empty;
                                Class103.smethod_0(this.list_2[k], "UpMethodJDCTOServer" + k);
                                Class101.smethod_1("(上传线程)开始上传机动车发票!");
                                if (HttpsSender.SendMsg("0005", this.list_2[k].InnerXml.ToString(), out str) != 0)
                                {
                                    Class101.smethod_1("(上传线程)机动车发票上传失败!        " + str.ToString());
                                    Class87.bool_0 = false;
                                    int num10 = str.IndexOf("[");
                                    int num9  = str.IndexOf("]");
                                    if ((num10 > -1) && (num9 > num10))
                                    {
                                        Class87.string_0 = str.Substring(num10 + 1, num9 - 1);
                                    }
                                    if (num9 > 0)
                                    {
                                        Class87.string_1 = str.Substring(num9 + 1);
                                    }
                                    else
                                    {
                                        Class87.string_1 = str;
                                    }
                                    this.class84_0.method_21(this.list_2[k], "j", "执行发票上传失败,原因:" + str, 0);
                                    this.bool_0 = this.bool_0;
                                }
                                else
                                {
                                    Class101.smethod_1("(上传线程)开始解析机动车发票上传结果。");
                                    if (!string.IsNullOrEmpty(str))
                                    {
                                        document.LoadXml(str);
                                        Class103.smethod_0(document, "UpMethodJDCFromServer" + k);
                                        if (this.class100_0.method_8(document, this.list_2[k], "j"))
                                        {
                                            Class87.bool_0 = true;
                                            this.bool_0    = true;
                                            flag           = true;
                                            Class101.smethod_0("(上传线程)机动车发票上传结束!");
                                        }
                                    }
                                }
                            }
                            goto Label_0760;
Label_0752:
                            this.int_1 = 0;
                            this.int_2 = 0;
Label_0760:
                            this.list_2.Clear();
                        }
                        catch (Exception exception3)
                        {
                            Class101.smethod_1("(上传线程)机动车发票上传失败!   " + exception3.ToString());
                        }
                        try
                        {
                            str = string.Empty;
                            for (int m = 0; m < this.list_3.Count; m++)
                            {
                                if (!bool_2 && (Class97.dataTable_0.Rows.Count >= Class87.int_0))
                                {
                                    goto Label_0925;
                                }
                                Class103.smethod_0(this.list_3[m], "UpMethodZPToServer" + m);
                                Class101.smethod_1("(上传线程)开始电子发票上传");
                                if (HttpsSender.SendMsg("0031", this.list_3[m].InnerXml.ToString(), out str) != 0)
                                {
                                    Class101.smethod_1("(上传线程)电子发票上传失败!             " + str.ToString());
                                    Class87.bool_0 = false;
                                    int num13 = str.IndexOf("[");
                                    int num12 = str.IndexOf("]");
                                    if ((num13 > -1) && (num12 > num13))
                                    {
                                        Class87.string_0 = str.Substring(num13 + 1, num12 - 1);
                                    }
                                    if (num12 > 0)
                                    {
                                        Class87.string_1 = str.Substring(num12 + 1);
                                    }
                                    else
                                    {
                                        Class87.string_1 = str;
                                    }
                                    this.class84_0.method_19(this.list_3[m], "执行发票上传失败,原因:" + str, 0);
                                    this.bool_0 = this.bool_0;
                                }
                                else
                                {
                                    Class101.smethod_1("(上传线程)开始解析电子发票上传结果。");
                                    if (!string.IsNullOrEmpty(str))
                                    {
                                        document.LoadXml(str);
                                        Class103.smethod_0(document, "UpMethodZPFromServer" + m);
                                        if (this.class100_0.method_6(document, this.list_3[m]))
                                        {
                                            Class87.bool_0 = true;
                                            flag           = true;
                                            this.bool_0    = true;
                                            Class101.smethod_0("(上传线程)电子发票上传结束!");
                                        }
                                    }
                                }
                            }
                            goto Label_0933;
Label_0925:
                            this.int_1 = 0;
                            this.int_2 = 0;
Label_0933:
                            this.list_3.Clear();
                        }
                        catch (Exception exception4)
                        {
                            Class101.smethod_1("(上传线程)电子发票上传失败!" + exception4.ToString());
                        }
                        try
                        {
                            str = string.Empty;
                            for (int n = 0; n < this.list_4.Count; n++)
                            {
                                if (!bool_2 && (Class97.dataTable_0.Rows.Count >= Class87.int_0))
                                {
                                    goto Label_0B08;
                                }
                                Class103.smethod_0(this.list_4[n], "UpMethodJSFPToServer" + n);
                                Class101.smethod_1("(上传线程)开始卷式发票上传");
                                if (HttpsSender.SendMsg("0029", this.list_4[n].InnerXml.ToString(), out str) != 0)
                                {
                                    Class101.smethod_1("(上传线程)卷式发票上传失败!             " + str.ToString());
                                    Class87.bool_0 = false;
                                    int num16 = str.IndexOf("[");
                                    int num15 = str.IndexOf("]");
                                    if ((num16 > -1) && (num15 > num16))
                                    {
                                        Class87.string_0 = str.Substring(num16 + 1, num15 - 1);
                                    }
                                    if (num15 > 0)
                                    {
                                        Class87.string_1 = str.Substring(num15 + 1);
                                    }
                                    else
                                    {
                                        Class87.string_1 = str;
                                    }
                                    this.class84_0.method_20(this.list_4[n], "执行发票上传失败,原因:" + str, 0);
                                    this.bool_0 = this.bool_0;
                                }
                                else
                                {
                                    Class101.smethod_1("(上传线程)开始解析卷式发票上传结果。");
                                    Class101.smethod_0("(上传线程)上传卷票返回:" + str);
                                    if (!string.IsNullOrEmpty(str))
                                    {
                                        document.LoadXml(str);
                                        Class103.smethod_0(document, "UpMethodZPFromServer" + n);
                                        if (this.class100_0.method_7(document, this.list_4[n]))
                                        {
                                            Class87.bool_0 = true;
                                            flag           = true;
                                            this.bool_0    = true;
                                            Class101.smethod_0("(上传线程)卷式发票上传结束!");
                                        }
                                    }
                                }
                            }
                            goto Label_0B16;
Label_0B08:
                            this.int_1 = 0;
                            this.int_2 = 0;
Label_0B16:
                            this.list_4.Clear();
                        }
                        catch (Exception exception5)
                        {
                            Class101.smethod_1("(上传线程)卷式发票上传失败!" + exception5.ToString());
                        }
                    }
                    num++;
                }
                Class88.smethod_0();
                if (Class87.bool_2)
                {
                    this.class81_0.method_15();
                }
                Class88.smethod_3();
                if ((this.int_2 > this.int_0) && (this.int_0 != 1))
                {
                    this.int_1  = 0;
                    this.int_2  = 0;
                    this.int_0  = 0;
                    this.bool_0 = true;
                }
                if ((!string.IsNullOrEmpty(string_1) && !string.IsNullOrEmpty(string_0)) && (!string.IsNullOrEmpty(string_2) && !flag))
                {
                    Class96 class2 = this.class100_0.method_3(Class97.dataTable_0, string_0, string_1);
                    if ((class2 != null) && !string.IsNullOrEmpty(class2.FPSLH))
                    {
                        Class87.bool_0   = true;
                        Class87.string_0 = "0000";
                        Class87.string_1 = class2.FPSLH;
                    }
                    else
                    {
                        Class87.bool_0   = false;
                        Class87.string_0 = "-0007";
                        Class87.string_1 = "上传失败,未查询到受理序列号!";
                    }
                }
            }
            catch (Exception exception6)
            {
                Class101.smethod_1("<上传线程>发票上传异常:" + exception6.ToString());
            }
            finally
            {
                this.list_0.Clear();
                this.list_1.Clear();
                this.list_2.Clear();
                this.list_3.Clear();
                this.list_4.Clear();
            }
        }