Пример #1
0
    // Token: 0x0600069E RID: 1694 RVA: 0x0002C0FC File Offset: 0x0002A2FC
    public override Action <Fu5NDKQjdwdau68ILj6, object> vmethod_6 <Fu5NDKQjdwdau68ILj6>(PropertyInfo propertyInfo_0)
    {
        Class101.smethod_0(propertyInfo_0, "propertyInfo");
        if (propertyInfo_0.DeclaringType.smethod_13())
        {
            return(Class84.smethod_0().vmethod_6 <Fu5NDKQjdwdau68ILj6>(propertyInfo_0));
        }
        Type typeFromHandle  = typeof(Fu5NDKQjdwdau68ILj6);
        Type typeFromHandle2 = typeof(object);
        ParameterExpression parameterExpression  = Expression.Parameter(typeFromHandle, "instance");
        ParameterExpression parameterExpression2 = Expression.Parameter(typeFromHandle2, "value");
        Expression          expression           = this.method_3(parameterExpression2, propertyInfo_0.PropertyType, false);
        MethodInfo          setMethod            = propertyInfo_0.GetSetMethod(true);
        Expression          body;

        if (setMethod.IsStatic)
        {
            body = Expression.Call(setMethod, expression);
        }
        else
        {
            body = Expression.Call(this.method_3(parameterExpression, propertyInfo_0.DeclaringType, false), setMethod, new Expression[]
            {
                expression
            });
        }
        return((Action <Fu5NDKQjdwdau68ILj6, object>)Expression.Lambda(typeof(Action <Fu5NDKQjdwdau68ILj6, object>), body, new ParameterExpression[]
        {
            parameterExpression,
            parameterExpression2
        }).Compile());
    }
Пример #2
0
 public static Class41 smethod_1(byte[] byte_3, int int_4)
 {
     try
     {
         Class41 class2 = new Class41();
         int     index  = int_4;
         class2.byte_1 = byte_3[index];
         index++;
         class2.byte_2 = byte_3[index];
         index++;
         class2.ushort_0 = BitConverter.ToUInt16(byte_3, index);
         index          += 2;
         class2.int_2    = BitConverter.ToInt32(byte_3, index);
         index          += 4;
         class2.int_3    = BitConverter.ToInt32(byte_3, index);
         index          += 4;
         byte num2 = byte_3[index];
         index++;
         class2.string_0 = Class84.smethod_0().imethod_8(byte_3, index, num2);
         index          += int_0;
         byte num3 = byte_3[index];
         index++;
         class2.string_1 = Class84.smethod_0().imethod_8(byte_3, index, num3);
         index          += int_0;
         return(class2);
     }
     catch
     {
         return(null);
     }
 }
Пример #3
0
 public void UpdateSPFL()
 {
     try
     {
         MessageHelper.MsgWait("正在同步" + Class95.string_2 + "信息,请耐心等待...");
         Class84 class2 = new Class84();
         string  str    = class2.method_31();
         string  str2   = "";
         Class101.smethod_0("商品分类信息同步,发送给局端数据:" + str);
         if (HttpsSender.SendMsg("0037", str, out str2) != 0)
         {
             Class101.smethod_1("商品分类更新失败:" + str2);
             if (!this.isAuto)
             {
                 MessageHelper.MsgWait();
                 Class86.smethod_7(Class95.string_2 + "更新失败,请选择手动更新或去税局下载更新包导入更新:" + str2);
             }
         }
         else
         {
             Class101.smethod_1("商品分类信息同步,局端返回数据:" + str2);
             class2.method_32(str2, this.isAuto);
         }
         MessageHelper.MsgWait();
     }
     catch (Exception exception)
     {
         MessageHelper.MsgWait();
         Class101.smethod_1("UpdateSPFL:" + exception.ToString());
         if (!this.isAuto)
         {
             Class86.smethod_7("商品和服务税收分类编码更新失败,请选择手动更新或去税局下载更新包导入更新:" + exception.Message);
         }
     }
 }
Пример #4
0
    // Token: 0x06000114 RID: 276 RVA: 0x00003543 File Offset: 0x00001743
    public override Class80 vmethod_4()
    {
        Class84 @class = new Class84(this.enum_0);

        @class.method_1(base.method_0());
        return(@class);
    }
Пример #5
0
 // Token: 0x0600069D RID: 1693 RVA: 0x0002C028 File Offset: 0x0002A228
 public override Action <aO5jiiQTN2H7SNbj5Xi, object> vmethod_5 <aO5jiiQTN2H7SNbj5Xi>(FieldInfo fieldInfo_0)
 {
     Class101.smethod_0(fieldInfo_0, "fieldInfo");
     if (!fieldInfo_0.DeclaringType.smethod_13() && !fieldInfo_0.IsInitOnly)
     {
         ParameterExpression parameterExpression  = Expression.Parameter(typeof(aO5jiiQTN2H7SNbj5Xi), "source");
         ParameterExpression parameterExpression2 = Expression.Parameter(typeof(object), "value");
         Expression          expression;
         if (fieldInfo_0.IsStatic)
         {
             expression = Expression.Field(null, fieldInfo_0);
         }
         else
         {
             expression = Expression.Field(this.method_3(parameterExpression, fieldInfo_0.DeclaringType, false), fieldInfo_0);
         }
         Expression       right = this.method_3(parameterExpression2, expression.Type, false);
         BinaryExpression body  = Expression.Assign(expression, right);
         return((Action <aO5jiiQTN2H7SNbj5Xi, object>)Expression.Lambda(typeof(Action <aO5jiiQTN2H7SNbj5Xi, object>), body, new ParameterExpression[]
         {
             parameterExpression,
             parameterExpression2
         }).Compile());
     }
     return(Class84.smethod_0().vmethod_5 <aO5jiiQTN2H7SNbj5Xi>(fieldInfo_0));
 }
Пример #6
0
        public object[] UploadFPInPatch(object[] object_2)
        {
            Class84 class2 = new Class84();

            Class101.smethod_0("发票上传-批量接口:进入");
            if ((object_2 != null) && (object_2.Length >= 1))
            {
                Class101.smethod_0("发票上传-批量接口:传入发票为:" + object_2[0].ToString());
                try
                {
                    Class87.bool_3 = true;
                    if (Class87.bool_4)
                    {
                        new ServerUP().UPloadInPatch(object_2[0].ToString());
                    }
                    else
                    {
                        Class87.bool_2 = true;
                        Class85 class3 = new Class85();
                        Class87.string_1 = string.Empty;
                        Class87.bool_0   = false;
                        class3.method_3(object_2[0].ToString());
                    }
                    Class101.smethod_0("发票上传-批量接口:离开");
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("发票上传-批量接口:接口异常" + exception.ToString());
                    Class87.string_1 = exception.ToString();
                }
                return(new object[] { Class87.xmlDocument_0 });
            }
            Class101.smethod_0("发票上传-批量接口:没有传入发票信息");
            return(new object[] { class2.method_24() });
        }
Пример #7
0
 public ServerUP()
 {
     this.string_0   = "0000";
     this.ibaseDAO_0 = BaseDAOFactory.GetBaseDAOSQLite();
     this.class84_0  = new Class84();
     this.taxCard_0  = TaxCard.CreateInstance(CTaxCardType.const_7);
 }
Пример #8
0
 // Token: 0x06000A05 RID: 2565 RVA: 0x0000959E File Offset: 0x0000779E
 public static Class81 smethod_19()
 {
     if (Class124.smethod_17())
     {
         return(Class82.smethod_0());
     }
     return(Class84.smethod_0());
 }
Пример #9
0
        internal static SerializationErrorCallback smethod_1(MethodInfo methodInfo_0)
        {
            Class84 class2 = new Class84 {
                methodInfo_0 = methodInfo_0
            };

            return(new SerializationErrorCallback(class2.method_0));
        }
Пример #10
0
    public MessageHandler method_11()
    {
        if (!this.nullable_0.HasValue)
        {
            string str = Class84.smethod_0().imethod_8(this.byte_0, 0, this.int_4);
            if (str.Length == 1)
            {
                return(null);
            }
            this.nullable_0 = new bool?(str.ToLower().Contains("websocket"));
            if (this.nullable_0.Value)
            {
                Class9 class7 = new Class9(str);
                this.int_4 = 0;
                byte[] buffer = Class84.smethod_0().imethod_9(class7.method_2());
                base.GetStream().Write(buffer, 0, buffer.Length);
                return(null);
            }
        }
        if (this.nullable_0.Value)
        {
            int     num    = 0;
            Class12 class4 = Class12.smethod_0(this.byte_0, this.int_4, out num);
            if (class4 == null)
            {
                return(null);
            }
            if (class4.Header.method_4() == 8)
            {
                this.bool_1 = true;
                return(null);
            }
            this.method_12(num);
            Class41 class3 = Class41.smethod_1(class4.method_1(), 0);
            class3.SetClientType((base.GetStream() is SslStream) ? ClientType.WebSocket_SSL : ClientType.WebSocket);
            return(new MessageHandler(class3, class4.method_1(), class3.imethod_4(), base.GetIPEndPoint()));
        }
        if (this.int_4 < this.int_3)
        {
            return(null);
        }
        Class41 class6 = Class41.smethod_1(this.byte_0, 0);

        if (class6.imethod_5() == 0)
        {
            this.method_12(class6.imethod_4());
            return(new MessageHandler(class6, null, base.GetIPEndPoint()));
        }
        if (this.int_4 < (this.int_3 + class6.imethod_5()))
        {
            return(null);
        }
        byte[] dst = new byte[class6.imethod_5()];
        Buffer.BlockCopy(this.byte_0, class6.imethod_4(), dst, 0, class6.imethod_5());
        this.method_12(class6.imethod_4() + class6.imethod_5());
        return(new MessageHandler(class6, dst, 0, base.GetIPEndPoint()));
    }
Пример #11
0
    public byte[] ToStream()
    {
        int num2;

        byte[] buffer = new byte[this.imethod_4()];
        int    index  = 0;

        buffer[0] = this.byte_1;
        index     = 1;
        buffer[1] = this.byte_2;
        index     = 2;
        byte[] bytes = BitConverter.GetBytes(this.ushort_0);
        for (num2 = 0; num2 < bytes.Length; num2++)
        {
            buffer[index + num2] = bytes[num2];
        }
        index += 2;
        byte[] buffer5 = BitConverter.GetBytes(this.int_2);
        for (num2 = 0; num2 < buffer5.Length; num2++)
        {
            buffer[index + num2] = buffer5[num2];
        }
        index += 4;
        byte[] buffer4 = BitConverter.GetBytes(this.int_3);
        for (num2 = 0; num2 < buffer4.Length; num2++)
        {
            buffer[index + num2] = buffer4[num2];
        }
        index += 4;
        byte[] buffer6 = Class84.smethod_0().imethod_9(this.string_0);
        if (buffer6.Length > int_0)
        {
            throw new Exception(string.Format("Length of UserID [{0}] exceed limited !", this.string_0));
        }
        buffer[index] = (byte)buffer6.Length;
        index++;
        for (num2 = 0; num2 < buffer6.Length; num2++)
        {
            buffer[index + num2] = buffer6[num2];
        }
        index += int_0;
        byte[] buffer3 = Class84.smethod_0().imethod_9(this.string_1);
        if (buffer3.Length > int_0)
        {
            throw new Exception(string.Format("Length of DestUserID [{0}] exceed limited !", this.string_1));
        }
        buffer[index] = (byte)buffer3.Length;
        index++;
        for (num2 = 0; num2 < buffer3.Length; num2++)
        {
            buffer[index + num2] = buffer3[num2];
        }
        index += int_0;
        return(buffer);
    }
Пример #12
0
        public void UPloadInPatch(string string_1)
        {
            Class84 class2 = new Class84();

            if (string_1 == "")
            {
                Class87.xmlDocument_0 = class2.method_24();
            }
            else
            {
                try
                {
                    string[] strArray = string_1.Split(new char[] { ';' });
                    if ((strArray != null) && (strArray.Length >= 1))
                    {
                        string str = "'0'";
                        foreach (string str3 in strArray)
                        {
                            if (!(str3 == ""))
                            {
                                str = str + ",'" + str3 + "'";
                            }
                        }
                        string    str2  = "SELECT FPDM,FPHM,FPZL,BSZT,BSRZ,ZFBZ FROM XXFP WHERE FPDM||','||FPHM||','||FPZL IN (" + str + ")";
                        DataTable table = this.ibaseDAO_0.querySQLDataTable(str2);
                        this.method_3(table);
                    }
                    else
                    {
                        Class101.smethod_0("UPloadInPatch:未获取到发票信息");
                    }
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("UPloadInPatch:" + exception.ToString());
                }
            }
        }
Пример #13
0
 public Interface10 imethod_2()
 {
     return(Class84.smethod_0());
 }
Пример #14
0
 public byte[] imethod_9(string string_0)
 {
     return(Class84.smethod_0().imethod_9(string_0));
 }
Пример #15
0
 public string imethod_8(byte[] byte_1, int int_1, int int_2)
 {
     return(Class84.smethod_0().imethod_8(byte_1, int_1, int_2));
 }
Пример #16
0
        public object[] DownloadFPInPatch(object[] object_2)
        {
            Class84 class2 = new Class84();

            Class101.smethod_0("发票下载-批量接口:进入");
            if ((object_2 != null) && (object_2.Length >= 1))
            {
                Class101.smethod_0("发票下载-批量接口:传入受理序列号:" + object_2[0].ToString());
                try
                {
                    Class87.bool_2 = true;
                    Class87.bool_1 = false;
                    if (Class87.bool_4)
                    {
                        new ServerUP().DonwloadInInterface(object_2[0].ToString());
                    }
                    else
                    {
                        new Class105().method_1(object_2[0].ToString());
                    }
                }
                catch (Exception exception)
                {
                    Class101.smethod_0("发票下载-批量接口异常:接口" + exception.ToString());
                }
                if (Class87.string_3.Equals("0000"))
                {
                    Class101.smethod_0("发票下载-批量接口:下载返回结果:" + Class87.xmlDocument_1.InnerXml);
                    return(new object[] { Class87.xmlDocument_1 });
                }
                XmlNode oldChild = Class87.xmlDocument_1.SelectSingleNode("//FPXT/OUTPUT/DATA/FP_SUCC/FPXX");
                if (oldChild != null)
                {
                    string[] strArray = oldChild.InnerText.Split(new char[] { ';' });
                    for (int i = 0; i < strArray.Length; i++)
                    {
                        string[] strArray2 = strArray[i].Split(new char[] { ',' });
                        if (strArray2.Length >= 2)
                        {
                            XmlNode    node2    = Class87.xmlDocument_1.SelectSingleNode("//FPXT/OUTPUT/DATA/FP_ERR");
                            XmlElement newChild = Class87.xmlDocument_1.CreateElement("FP");
                            node2.AppendChild(newChild);
                            XmlElement element2 = Class87.xmlDocument_1.CreateElement("FPDM");
                            element2.InnerText = strArray2[0];
                            newChild.AppendChild(element2);
                            XmlElement element3 = Class87.xmlDocument_1.CreateElement("FPHM");
                            element3.InnerText = strArray2[1];
                            newChild.AppendChild(element3);
                            XmlElement element4 = Class87.xmlDocument_1.CreateElement("CODE");
                            element4.InnerText = Class87.string_3;
                            newChild.AppendChild(element4);
                            XmlElement element5 = Class87.xmlDocument_1.CreateElement("MESS");
                            element5.InnerText = Class87.string_2;
                            newChild.AppendChild(element5);
                        }
                    }
                    oldChild.ParentNode.RemoveChild(oldChild);
                    return(new object[] { Class87.xmlDocument_1 });
                }
                return(new object[] { Class87.xmlDocument_1 });
            }
            Class101.smethod_0("发票下载-批量接口:没有传入受理序列号信息");
            return(new object[] { class2.method_26(0) });
        }