Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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());
            }
        }
Exemplo n.º 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);
             }
         }
     }
 }