Exemple #1
0
    internal void method_0(TableCell A_0)
    {
        int      num    = 14;
        Class400 class2 = this.class422_0.method_18();

        this.class86_0 = new Class86();
        this.method_1(A_0, A_0.CellFormat);
        if (this.class86_0.class580_0 != null)
        {
            this.method_1(A_0, this.class86_0.class580_0.method_4());
        }
        class2.method_4(BookmarkStart.b("䜳䈵䄷嘹夻н㐿⍁♃⩅ⵇ杉⽋⭍㱏㹑祓♕⩗㕙ⱛ㭝቟ᙡൣͥ᭧", num));
        class2.method_40(BookmarkStart.b("刳夵ȷ堹崻崽⬿╁㙃⥅㵇⑉⡋捍㍏㵑㡓㥕⩗", num), this.class86_0.string_0);
        class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㘿❁㙃㉅ⅇ⥉ⵋ≍絏㍑㡓㽕㽗㑙", num), this.class86_0.string_1);
        this.class86_0.class1048_0.method_0(class2);
        if (!this.class422_0.method_14().method_13())
        {
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㜿ぁⵃ㉅ⅇ⑉⭋捍㵏㵑こ㍕", num), this.class86_0.string_2);
        }
        object obj2 = A_0.CellFormat.method_31(0xc6c);

        if (obj2 != null)
        {
            class2.method_40(BookmarkStart.b("刳夵ȷ䴹主弽〿潁⭃㙅㱇⍉⍋⁍", num), ((bool)obj2) ? BookmarkStart.b("䌳䐵夷䨹", num) : BookmarkStart.b("娳夵ᔷ䴹主弽〿", num));
        }
        class2.method_6(BookmarkStart.b("䜳䈵䄷嘹夻н㐿⍁♃⩅ⵇ杉⽋⭍㱏㹑祓♕⩗㕙ⱛ㭝቟ᙡൣͥ᭧", num));
    }
Exemple #2
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);
         }
     }
 }
Exemple #3
0
    // Token: 0x060001BE RID: 446 RVA: 0x00003B12 File Offset: 0x00001D12
    public override Class80 vmethod_4()
    {
        Class86 @class = new Class86();

        @class.method_3(this.double_0);
        @class.method_1(base.method_0());
        return(@class);
    }
Exemple #4
0
 // Token: 0x06000340 RID: 832 RVA: 0x0001F24C File Offset: 0x0001D44C
 public static bool smethod_0(Type type_0, Type type_1)
 {
     if (type_0 == type_1)
     {
         return(true);
     }
     if (type_0 == null || type_1 == null)
     {
         return(false);
     }
     if (type_0.IsByRef)
     {
         return(type_1.IsByRef && Class86.smethod_0(type_0.GetElementType(), type_1.GetElementType()));
     }
     if (type_1.IsByRef)
     {
         return(false);
     }
     if (type_0.IsPointer)
     {
         return(type_1.IsPointer && Class86.smethod_0(type_0.GetElementType(), type_1.GetElementType()));
     }
     if (type_1.IsPointer)
     {
         return(false);
     }
     if (type_0.IsArray)
     {
         return(type_1.IsArray && type_0.GetArrayRank() == type_1.GetArrayRank() && Class86.smethod_0(type_0.GetElementType(), type_1.GetElementType()));
     }
     if (type_1.IsArray)
     {
         return(false);
     }
     if (type_0.IsGenericType && !type_0.IsGenericTypeDefinition)
     {
         type_0 = type_0.GetGenericTypeDefinition();
     }
     if (type_1.IsGenericType && !type_1.IsGenericTypeDefinition)
     {
         type_1 = type_1.GetGenericTypeDefinition();
     }
     return(type_0 == type_1);
 }
Exemple #5
0
 // Token: 0x060009FD RID: 2557 RVA: 0x00038754 File Offset: 0x00036954
 private static Type smethod_11(Type type_0)
 {
     foreach (Attribute attribute in Class90.smethod_34(type_0, null, true))
     {
         Type type = attribute.GetType();
         if (string.Equals(type.FullName, "System.ComponentModel.DataAnnotations.MetadataTypeAttribute", StringComparison.Ordinal))
         {
             if (Class124.class86_0 == null)
             {
                 Class124.class86_0 = Class86.Create(type, new string[]
                 {
                     "MetadataClassType"
                 });
             }
             return((Type)Class124.class86_0.method_2(attribute, "MetadataClassType"));
         }
     }
     return(null);
 }
Exemple #6
0
    // Token: 0x06000148 RID: 328 RVA: 0x0000F174 File Offset: 0x0000D374
    public static Class80 smethod_1(object object_0, Type type_0)
    {
        Class80 @class = object_0 as Class80;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class90());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class37.smethod_1(type_0);
        if (type_0 == Class175.type_0)
        {
            @class = new Class90();
            if (object_0 != null && object_0.GetType() != Class175.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class29.smethod_0 <Array>(type_0))
        {
            @class = new Class93();
        }
        else if (Class29.smethod_0 <string>(type_0))
        {
            @class = new Class96();
        }
        else if (Class29.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class99();
        }
        else if (Class29.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class83();
        }
        else if (Class29.smethod_0 <ulong>(type_0))
        {
            @class = new Class89();
        }
        else if (Class29.smethod_0 <uint>(type_0))
        {
            @class = new Class92();
        }
        else if (Class29.smethod_0 <ushort>(type_0))
        {
            @class = new Class87();
        }
        else if (Class29.smethod_0 <long>(type_0))
        {
            @class = new Class82();
        }
        else if (Class29.smethod_0 <int>(type_0))
        {
            @class = new Class98();
        }
        else if (Class29.smethod_0 <short>(type_0))
        {
            @class = new Class94();
        }
        else if (Class29.smethod_0 <byte>(type_0))
        {
            @class = new Class88();
        }
        else if (Class29.smethod_0 <sbyte>(type_0))
        {
            @class = new Class85();
        }
        else if (Class29.smethod_0 <double>(type_0))
        {
            @class = new Class86();
        }
        else if (Class29.smethod_0 <float>(type_0))
        {
            @class = new Class91();
        }
        else if (Class29.smethod_0 <bool>(type_0))
        {
            @class = new Class97();
        }
        else if (Class29.smethod_0 <char>(type_0))
        {
            @class = new Class81();
        }
        else if (Class175.smethod_0(type_0))
        {
            Class90 class2 = new Class90();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class29.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class175.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class175.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class84(enum_));
            }
            if (Class29.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class175.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class107(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class107(object_0);
                }
                return(@class);
            }
            @class = new Class90();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }