示例#1
0
 public byte[] method_13(byte[] byte_0, string string_0)
 {
     byte[] array = new byte[byte_0.Length];
     if (!string.IsNullOrEmpty(string_0) && (byte_0.Length >= 1))
     {
         string text1 = string_0 + "#";
         try
         {
             byte_0.CopyTo(array, 0);
             Class100 class2   = new Class100();
             string[] strArray = string_0.Split(new char[] { ';' });
             if ((strArray != null) && (strArray.Length >= 1))
             {
                 array = this.method_16(array, new byte[] { Convert.ToByte(strArray.Length) });
                 for (int i = 0; i < strArray.Length; i++)
                 {
                     string[] strArray2 = strArray[i].Split(new char[] { ',' });
                     if ((strArray2 != null) && (strArray2.Length > 0))
                     {
                         Class96 class3 = new Class96 {
                             FPDM = strArray2[0],
                             FPNO = strArray2[1]
                         };
                         class3 = class2.method_3(Class97.dataTable_0, class3.FPNO, class3.FPDM);
                         string dZSYH = "0";
                         if ((class3 != null) && !string.IsNullOrEmpty(class3.DZSYH))
                         {
                             dZSYH = class3.DZSYH;
                             Class101.smethod_0("组装密文地址索引号:fpdm:" + strArray2[0] + "   fphm:" + strArray2[1] + "   dzsyh:" + dZSYH);
                         }
                         else
                         {
                             Class101.smethod_0("组装密文地址索引号--fprow为null或者空:fpdm:" + strArray2[0] + "   fphm:" + strArray2[1]);
                             dZSYH = this.method_12(strArray2[1], strArray2[0]);
                             if (string.IsNullOrEmpty(dZSYH))
                             {
                                 Class101.smethod_0("组装密文无地址索引号--补0:fpdm:" + strArray2[0] + "   fphm:" + strArray2[1]);
                                 dZSYH = "0";
                             }
                         }
                         byte[] bytes = BitConverter.GetBytes(Convert.ToInt32(dZSYH));
                         bytes = this.method_17(bytes);
                         array = this.method_16(array, bytes);
                     }
                 }
                 return(array);
             }
             Class101.smethod_1("(发票下载)组装地址索引号异常:受理序列号为空");
             return(array);
         }
         catch (Exception exception)
         {
             Class101.smethod_1("(发票下载)组装地址索引号异常:" + exception.ToString());
             array = byte_0;
         }
         return(array);
     }
     Class101.smethod_1("(发票下载)组装地址索引号异常:受理序列号为空");
     return(array);
 }
示例#2
0
        public FPLX method_14(string string_0)
        {
            FPLX zYFP = FPLX.ZYFP;

            try
            {
                Class100 class2   = new Class100();
                string[] strArray = string_0.Split(new char[] { ';' });
                if ((strArray != null) && (strArray.Length >= 1))
                {
                    string[] strArray2 = strArray[0].Split(new char[] { ',' });
                    Class96  class3    = new Class96 {
                        FPDM = strArray2[0],
                        FPNO = strArray2[1]
                    };
                    class3 = class2.method_3(Class97.dataTable_0, class3.FPNO, class3.FPDM);
                    if (class3 == null)
                    {
                        Class101.smethod_1("(发票下载)获取发票种类异常:fpRow为null");
                        return(zYFP);
                    }
                    if (class3.Fplx.Equals("ZYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.ZYFP);
                    }
                    if (class3.Fplx.Equals("PTFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.PTFP);
                    }
                    if (class3.Fplx.Equals("HYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.HYFP);
                    }
                    if (class3.Fplx.Equals("JDCFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.JDCFP);
                    }
                    if (class3.Fplx.Equals("DZFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.DZFP);
                    }
                    if (class3.Fplx.Equals("JSFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        zYFP = FPLX.JSFP;
                    }
                    return(zYFP);
                }
                Class101.smethod_1("(发票下载)获取发票种类异常:受理序列号为空");
                return(zYFP);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("发票下载:" + exception.ToString());
            }
            return(zYFP);
        }
示例#3
0
        public void method_15()
        {
            Class100      class2 = new Class100();
            Class84       class3 = new Class84();
            List <string> slxlhs = new List <string>();
            List <Dictionary <string, string> > listFP = new List <Dictionary <string, string> >();

            try
            {
                foreach (string str in Class87.string_4.Split(new char[] { ';' }))
                {
                    if (!string.IsNullOrEmpty(str))
                    {
                        string[] strArray3 = str.Split(new char[] { ',' });
                        if (strArray3.Length >= 2)
                        {
                            string str2 = strArray3[1];
                            if (str2.Length < 8)
                            {
                                str2 = str2.PadLeft(8, '0');
                            }
                            Class96 class4 = class2.method_3(Class97.dataTable_0, str2, strArray3[0]);
                            if ((class4 != null) && !string.IsNullOrEmpty(class4.FPSLH))
                            {
                                if (!slxlhs.Contains(class4.FPSLH))
                                {
                                    slxlhs.Add(class4.FPSLH);
                                }
                            }
                            else
                            {
                                Dictionary <string, string> item = new Dictionary <string, string>();
                                item.Add("FPDM", strArray3[0]);
                                item.Add("FPHM", str2);
                                listFP.Add(item);
                            }
                        }
                    }
                }
                Class87.xmlDocument_0 = class3.method_23(slxlhs, listFP);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("发票上传-获取批量上传结果异常:" + exception.ToString());
            }
        }
示例#4
0
 public void method_3(Dictionary <string, object> dict)
 {
     if ((dict != null) && (dict.Count >= 1))
     {
         Class100 class2 = new Class100();
         Class96  class3 = class2.method_3(Class97.dataTable_0, dict["FPHM"].ToString().PadLeft(8, '0'), dict["FPDM"].ToString());
         if (class3 != null)
         {
             if (dict["BSZT"].ToString() == "3")
             {
                 class3.Boolean_0 = true;
                 class2.method_1(class3, Enum10.Update);
             }
             else
             {
                 class2.method_1(class3, Enum10.Delete);
             }
         }
     }
 }
示例#5
0
 public bool method_1(Class96 class96_0, Enum10 enum10_0)
 {
     if (class96_0 != null)
     {
         Class101.smethod_0("(发票上传)存临时表开始:fpdm:" + class96_0.FPDM + "  fphm:" + class96_0.FPNO + "   fpzl:" + class96_0.Fplx + "  method:" + enum10_0.ToString());
         try
         {
             lock (Class97.dataTable_0)
             {
                 if (enum10_0 == Enum10.Insert)
                 {
                     if (this.method_3(Class97.dataTable_0, class96_0.FPNO, class96_0.FPDM) != null)
                     {
                         return(this.method_1(class96_0, Enum10.Update));
                     }
                     DataRow row = Class97.dataTable_0.NewRow();
                     row["FPNO"]             = class96_0.FPNO;
                     row["FPDM"]             = class96_0.FPDM;
                     row["FPSLH"]            = class96_0.FPSLH;
                     row["FPStatus"]         = class96_0.FPStatus;
                     row["FPSQHRecieveTime"] = class96_0.FPSQHRecieveTime;
                     row["Fplx"]             = class96_0.Fplx;
                     row["FpUploadTime"]     = class96_0.FpUploadTime;
                     row["FpNSRSBH"]         = class96_0.FpNSRSBH;
                     row["FpSBBH"]           = class96_0.FpSBBH;
                     row["FpKPJH"]           = class96_0.FpKPJH;
                     row["IsFpUpFailed"]     = class96_0.IsFpUpFailed;
                     row["ISFpDownFailed"]   = class96_0.ISFpDownFailed;
                     row["isDBUpdated"]      = class96_0.Boolean_0;
                     row["ZFBZ"]             = class96_0.ZFBZ;
                     row["DZSYH"]            = class96_0.DZSYH;
                     Class97.dataTable_0.Rows.Add(row);
                     Class97.dataTable_0.AcceptChanges();
                     return(true);
                 }
                 if (enum10_0 == Enum10.Update)
                 {
                     DataRow[] rowArray = Class97.dataTable_0.Select("FPNO='" + class96_0.FPNO + "' AND FPDM='" + class96_0.FPDM + "' AND FPLX='" + class96_0.Fplx + "'");
                     if ((rowArray != null) && (rowArray.Length >= 1))
                     {
                         rowArray[0]["FPSLH"]            = class96_0.FPSLH;
                         rowArray[0]["FPDM"]             = class96_0.FPDM;
                         rowArray[0]["FPStatus"]         = class96_0.FPStatus;
                         rowArray[0]["FPSQHRecieveTime"] = class96_0.FPSQHRecieveTime;
                         rowArray[0]["Fplx"]             = class96_0.Fplx;
                         rowArray[0]["FpUploadTime"]     = class96_0.FpUploadTime;
                         rowArray[0]["FpNSRSBH"]         = class96_0.FpNSRSBH;
                         rowArray[0]["FpSBBH"]           = class96_0.FpSBBH;
                         rowArray[0]["FpKPJH"]           = class96_0.FpKPJH;
                         rowArray[0]["IsFpUpFailed"]     = class96_0.IsFpUpFailed;
                         rowArray[0]["ISFpDownFailed"]   = class96_0.ISFpDownFailed;
                         rowArray[0]["isDBUpdated"]      = class96_0.Boolean_0;
                         rowArray[0]["ZFBZ"]             = class96_0.ZFBZ;
                         rowArray[0]["DZSYH"]            = class96_0.DZSYH;
                         Class97.dataTable_0.AcceptChanges();
                         return(true);
                     }
                     return(false);
                 }
                 if (enum10_0 == Enum10.Delete)
                 {
                     DataRow[] rowArray2 = Class97.dataTable_0.Select("FPNO='" + class96_0.FPNO + "' AND FPDM='" + class96_0.FPDM + "' AND FPLX='" + class96_0.Fplx + "'");
                     if ((rowArray2 != null) && (rowArray2.Length >= 1))
                     {
                         Class97.dataTable_0.Rows.Remove(rowArray2[0]);
                         Class97.dataTable_0.AcceptChanges();
                         return(true);
                     }
                     return(false);
                 }
             }
             Class101.smethod_0("(发票上传)存临时表结束:fpdm:" + class96_0.FPDM + "  fphm:" + class96_0.FPNO + "   fpzl:" + class96_0.Fplx);
         }
         catch (Exception exception)
         {
             Class101.smethod_1("Update UpDownload FpTableInfo Error!" + exception.ToString());
         }
     }
     return(false);
 }
示例#6
0
 public bool method_9(string string_0, string string_1, int int_0)
 {
     if (!string.IsNullOrEmpty(string_0) && !string.IsNullOrEmpty(string_1))
     {
         try
         {
             Class101.smethod_0("(发票下载):发票明文串:" + string_0);
             string[] strArray = string_0.Split(new char[] { ';' });
             Class101.smethod_0("(发票下载):fpxl长度:" + strArray.Length);
             if ((strArray != null) && (strArray.Length >= 1))
             {
                 for (int i = 0; i < strArray.Length; i++)
                 {
                     Dictionary <string, object> item = new Dictionary <string, object>();
                     string[] strArray2 = strArray[i].Split(new char[] { ',' });
                     Class101.smethod_0("(发票下载):fp长度:" + strArray2.Length);
                     if ((strArray2 != null) && (strArray2.Length > 0))
                     {
                         Class96 class2 = new Class96 {
                             FPDM = strArray2[0],
                             FPNO = strArray2[1]
                         };
                         Class101.smethod_0("(发票下载)解析成功明文开始:" + string_0 + "   fpdm:" + strArray2[0] + "   fphm:" + strArray2[1]);
                         class2 = this.method_3(Class97.dataTable_0, class2.FPNO, class2.FPDM);
                         if (class2 != null)
                         {
                             Class101.smethod_0("(发票下载)解析成功明文-从临时表获取发票信息:" + string_0 + "   fpdm:" + class2.FPDM + "   fphm:" + class2.FPNO + "  fpzl:" + class2.Fplx);
                             class2.FPSQHRecieveTime = DateTime.Now.ToString();
                             if (!string.IsNullOrEmpty(string_1))
                             {
                                 class2.Boolean_0 = false;
                                 class2.FPStatus  = "1";
                                 if ((int_0 != 0) && (i >= (int_0 - 1)))
                                 {
                                     class2.FPStatus = "999";
                                 }
                                 this.method_1(class2, Enum10.Update);
                             }
                             item.Add("FPDM", class2.FPDM);
                             int result = 0;
                             if (int.TryParse(class2.FPNO, out result))
                             {
                                 item.Add("FPHM", result);
                             }
                             if (class2.Fplx.Equals(FPLX.PTFP.ToString()))
                             {
                                 item.Add("FPZL", "c");
                             }
                             else if (class2.Fplx.Equals(FPLX.ZYFP.ToString()))
                             {
                                 item.Add("FPZL", "s");
                             }
                             else if (class2.Fplx.Equals(FPLX.HYFP.ToString()))
                             {
                                 item.Add("FPZL", "f");
                             }
                             else if (class2.Fplx.Equals(FPLX.JDCFP.ToString()))
                             {
                                 item.Add("FPZL", "j");
                             }
                             else if (class2.Fplx.Equals(FPLX.DZFP.ToString()))
                             {
                                 item.Add("FPZL", "p");
                             }
                             else if (class2.Fplx.Equals(FPLX.JSFP.ToString()))
                             {
                                 item.Add("FPZL", "q");
                             }
                             else
                             {
                                 item.Add("FPZL", class2.Fplx);
                             }
                             if ((int_0 != 0) && (i >= (int_0 - 1)))
                             {
                                 item.Add("BSRZ", "已执行发票上传结果查询,底层更新发票异常,状态已置为报送失败,请做发票修复以重新上传该发票。");
                                 item.Add("BSZT", 2);
                             }
                             else
                             {
                                 item.Add("BSRZ", "已执行发票上传结果查询,发票报送状态已置为已报送。");
                                 item.Add("BSZT", 1);
                             }
                             if (item.Count >= 4)
                             {
                                 Class87.list_1.Add(item);
                             }
                         }
                     }
                 }
                 return(true);
             }
             return(false);
         }
         catch (Exception exception)
         {
             Class101.smethod_1("发票上传结果下载接口查询结果解析--对于上传成功的发票 失败!" + exception.ToString());
         }
     }
     return(false);
 }
示例#7
0
        public Class96 method_3(DataTable dataTable_0, string string_0, string string_1)
        {
            if ((dataTable_0 == null) || (dataTable_0.Rows.Count < 1))
            {
                return(null);
            }
            Class96 class2 = new Class96();

            try
            {
                DataRow[] rowArray;
                lock (Class97.dataTable_0)
                {
                    rowArray = dataTable_0.Select("FPNO='" + string_0 + "' AND FPDM='" + string_1 + "'");
                }
                if ((rowArray == null) || (rowArray.Length < 1))
                {
                    return(null);
                }
                class2.FpKPJH           = rowArray[0]["FpKPJH"].ToString();
                class2.FPNO             = rowArray[0]["FPNO"].ToString();
                class2.FPDM             = rowArray[0]["FPDM"].ToString();
                class2.FpNSRSBH         = rowArray[0]["FpNSRSBH"].ToString();
                class2.FpSBBH           = rowArray[0]["FpSBBH"].ToString();
                class2.FPSLH            = rowArray[0]["FPSLH"].ToString();
                class2.FPSQHRecieveTime = rowArray[0]["FPSQHRecieveTime"].ToString();
                class2.ZFBZ             = Convert.ToBoolean(rowArray[0]["ZFBZ"]);
                Class101.smethod_0("GetOneFpRow--fpdm:" + rowArray[0]["FPDM"].ToString() + "   fphm:" + rowArray[0]["FPNO"].ToString() + "  fpzl:" + rowArray[0]["Fplx"].ToString());
                int result = -1;
                if (int.TryParse(rowArray[0]["Fplx"].ToString(), out result) && (result > -1))
                {
                    class2.Fplx = Enum.GetName(typeof(FPLX), result);
                }
                else if (rowArray[0]["Fplx"].ToString() == "c")
                {
                    class2.Fplx = FPLX.PTFP.ToString();
                }
                else if (rowArray[0]["Fplx"].ToString() == "s")
                {
                    class2.Fplx = FPLX.ZYFP.ToString();
                }
                else if (rowArray[0]["Fplx"].ToString() == "f")
                {
                    class2.Fplx = FPLX.HYFP.ToString();
                }
                else if (rowArray[0]["Fplx"].ToString() == "j")
                {
                    class2.Fplx = FPLX.JDCFP.ToString();
                }
                else if (rowArray[0]["Fplx"].ToString() == "p")
                {
                    class2.Fplx = FPLX.DZFP.ToString();
                }
                else if (rowArray[0]["Fplx"].ToString() == "q")
                {
                    class2.Fplx = FPLX.JSFP.ToString();
                }
                else
                {
                    class2.Fplx = rowArray[0]["Fplx"].ToString();
                }
                class2.FPStatus       = rowArray[0]["FPStatus"].ToString();
                class2.FpUploadTime   = rowArray[0]["FpUploadTime"].ToString();
                class2.IsFpUpFailed   = Convert.ToBoolean(rowArray[0]["IsFpUpFailed"]);
                class2.ISFpDownFailed = Convert.ToBoolean(rowArray[0]["ISFpDownFailed"]);
                class2.Boolean_0      = Convert.ToBoolean(rowArray[0]["isDBUpdated"]);
                class2.DZSYH          = Convert.ToString(rowArray[0]["DZSYH"]);
                return(class2);
            }
            catch (Exception)
            {
            }
            return(class2);
        }
示例#8
0
        public bool method_2(ref List <Fpxx> list_0, ref List <Fpxx> list_1, ref List <Fpxx> list_2, ref List <Fpxx> list_3, ref List <Fpxx> list_4, string string_0, UpdateTransMethod updateTransMethod_0, string string_1, string string_2, string string_3, string string_4)
        {
            List <Fpxx> list   = new GetFpInfoDal().GetFpInfo(string_0, Class87.int_1.ToString(), updateTransMethod_0, string_2, string_1, string_3, string_4);
            Class81     class2 = new Class81();

            if ((list != null) && (list.Count >= 1))
            {
                Class96 class3 = new Class96();
                TaxCard card   = TaxCard.CreateInstance(CTaxCardType.const_7);
                try
                {
                    for (int i = 0; i < list.Count; i++)
                    {
                        Class101.smethod_0("发票类型:" + list[i].fplx.ToString());
                        if ((list[i].bszt.ToString() == "3") && !Class87.bool_3)
                        {
                            class3.FpKPJH           = card.Machine.ToString();
                            class3.FPNO             = list[i].fphm;
                            class3.FPDM             = list[i].fpdm;
                            class3.FpNSRSBH         = card.TaxCode;
                            class3.FpSBBH           = card.GetInvControlNum();
                            class3.Fplx             = list[i].fplx.ToString();
                            class3.ISFpDownFailed   = false;
                            class3.IsFpUpFailed     = false;
                            class3.Boolean_0        = true;
                            class3.FpUploadTime     = this.class81_0.method_1(class3.FPNO, class3.FPDM, class3.Fplx).ToString();
                            class3.FPSQHRecieveTime = DateTime.Now.ToString();
                            class3.FPSLH            = class2.method_3(class3.FPNO, class3.FPDM, class3.Fplx);
                            string str = this.class81_0.method_2(class3.FPNO, class3.FPDM, class3.Fplx);
                            class3.DZSYH = list[i].dzsyh;
                            Class101.smethod_0("(发票上传)上传报送中发票--fpdm:" + list[i].fpdm + "    fphm:" + list[i].fphm + "   dzsyh:" + list[i].dzsyh + "  zfbz:" + str + "  fpslh:" + class3.FPSLH);
                            if (str.Equals("1"))
                            {
                                class3.ZFBZ = true;
                            }
                            else if (str.Equals("0"))
                            {
                                class3.ZFBZ = false;
                            }
                            else
                            {
                                class3.ZFBZ = list[i].zfbz;
                            }
                            if ((class3.FPSLH != null) && !(class3.FPSLH == ""))
                            {
                                class3.FPStatus = list[i].bszt.ToString();
                            }
                            else
                            {
                                class3.FPStatus = "0";
                            }
                            this.method_1(class3, Enum10.Insert);
                        }
                        else if ((list[i].fplx != FPLX.PTFP) && (list[i].fplx != FPLX.ZYFP))
                        {
                            if (list[i].fplx == FPLX.HYFP)
                            {
                                list_1.Add(list[i]);
                            }
                            else if (list[i].fplx == FPLX.JDCFP)
                            {
                                list_2.Add(list[i]);
                            }
                            else if (list[i].fplx == FPLX.DZFP)
                            {
                                list_3.Add(list[i]);
                            }
                            else if (list[i].fplx == FPLX.JSFP)
                            {
                                list_4.Add(list[i]);
                            }
                        }
                        else
                        {
                            list_0.Add(list[i]);
                        }
                        Class101.smethod_0("发票上传:fpdm:" + list[i].fpdm + "  发票号码:" + list[i].fphm.ToString() + "  发票种类:" + list[i].fplx.ToString() + "  报送状态:" + list[i].bszt.ToString());
                    }
                    return(true);
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("(上传线程)分发发票信息表到上传线程表出错!" + exception.ToString());
                }
                finally
                {
                    list.Clear();
                    list = null;
                }
                Class101.smethod_0("(上传线程)分发发票信息表到上传线程表出错!");
                return(false);
            }
            return(false);
        }
示例#9
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();
            }
        }