Esempio n. 1
0
    // Token: 0x060004F1 RID: 1265 RVA: 0x00029218 File Offset: 0x00027418
    internal static decimal smethod_1(byte[] byte_3)
    {
        int int_  = (int)byte_3[0] | (int)byte_3[1] << 8 | (int)byte_3[2] << 16 | (int)byte_3[3] << 24;
        int int_2 = (int)byte_3[4] | (int)byte_3[5] << 8 | (int)byte_3[6] << 16 | (int)byte_3[7] << 24;
        int int_3 = (int)byte_3[8] | (int)byte_3[9] << 8 | (int)byte_3[10] << 16 | (int)byte_3[11] << 24;
        int int_4 = (int)byte_3[12] | (int)byte_3[13] << 8 | (int)byte_3[14] << 16 | (int)byte_3[15] << 24;

        return(Class123.smethod_0(int_, int_2, int_3, int_4));
    }
Esempio n. 2
0
        private static Hashtable smethod_2(string string_9)
        {
            Hashtable hashtable = new Hashtable();
            string    str       = string.Empty;
            string    str2      = string.Empty;

            try
            {
                if (string_9.ToUpper().IndexOf("TCD") > -1)
                {
                    string[] strArray = string_9.Split(new char[] { '_' });
                    str  = strArray[1];
                    str2 = strArray[2];
                }
                else
                {
                    str = string_9;
                }
                string str6 = smethod_3();
                if (string_9.ToUpper().IndexOf("CA_") > -1)
                {
                    str  = string_9.Split(new char[] { '_' })[1];
                    str2 = "";
                    string    str3  = "select * from ERRMSG2 where id='" + str + "'";
                    DataTable table = null;
                    if (string.Equals(TaxCardFactory.CreateTaxCard().SoftVersion, "FWKP_V2.0_Svr_Server"))
                    {
                        table = Class113.smethod_0(str3);
                    }
                    else
                    {
                        table = Class123.smethod_0(str3);
                    }
                    if ((table != null) && (table.Rows.Count > 0))
                    {
                        hashtable.Add("id", str);
                        hashtable.Add("type", "CE");
                        hashtable.Add("value", "证书接口调用失败!");
                        hashtable.Add("title", "证书相关");
                        hashtable.Add("operate", "证书接口调用");
                        if (table.Rows[0]["solution"] != null)
                        {
                            string str8 = table.Rows[0]["solution"].ToString().Replace("\n", Environment.NewLine);
                            hashtable.Add("solution", string.Format("证书接口返回错误信息:{0}", str8));
                        }
                        else
                        {
                            hashtable.Add("solution", string.Format("证书接口返回错误信息:{0}", str));
                        }
                        hashtable.Add("version", "0");
                        hashtable.Add("MsgBoxButtons", "1");
                        hashtable.Add("MsgBoxIcon", "1");
                        hashtable.Add("MsgBoxDefaultButton", "0");
                        hashtable.Add("funcode", str2);
                        return(hashtable);
                    }
                    hashtable.Add("id", str);
                    hashtable.Add("type", "CE");
                    hashtable.Add("value", "证书接口调用失败!");
                    hashtable.Add("title", "证书相关");
                    hashtable.Add("operate", "证书接口调用");
                    hashtable.Add("solution", string.Format("证书接口返回错误信息:{0}", str.ToString()));
                    hashtable.Add("version", "0");
                    hashtable.Add("MsgBoxButtons", "1");
                    hashtable.Add("MsgBoxIcon", "1");
                    hashtable.Add("MsgBoxDefaultButton", "0");
                    hashtable.Add("funcode", str2);
                    return(hashtable);
                }
                string    str5   = "select * from ERRMSG where id='" + str + "' and version <= " + str6 + " order by version desc";
                DataTable table2 = null;
                if (string.Equals(TaxCardFactory.CreateTaxCard().SoftVersion, "FWKP_V2.0_Svr_Server"))
                {
                    table2 = Class113.smethod_0(str5);
                }
                else
                {
                    table2 = Class123.smethod_0(str5);
                }
                if ((table2 == null) || (table2.Rows.Count <= 0))
                {
                    return(hashtable);
                }
                hashtable.Add("id", table2.Rows[0]["id"]);
                hashtable.Add("type", table2.Rows[0]["type"]);
                if (table2.Rows[0]["value"] != null)
                {
                    hashtable.Add("value", table2.Rows[0]["value"]);
                }
                else
                {
                    hashtable.Add("value", "");
                }
                if (table2.Rows[0]["title"] != null)
                {
                    hashtable.Add("title", table2.Rows[0]["title"]);
                }
                else
                {
                    hashtable.Add("title", "");
                }
                if (table2.Rows[0]["operate"] != null)
                {
                    string str7 = table2.Rows[0]["operate"].ToString().Replace("\n", Environment.NewLine);
                    hashtable.Add("operate", str7);
                }
                else
                {
                    hashtable.Add("operate", "");
                }
                if (table2.Rows[0]["solution"] != null)
                {
                    string str4 = table2.Rows[0]["solution"].ToString().Replace("\n", Environment.NewLine);
                    hashtable.Add("solution", str4);
                }
                else
                {
                    hashtable.Add("solution", "");
                }
                hashtable.Add("version", table2.Rows[0]["version"]);
                hashtable.Add("MsgBoxButtons", table2.Rows[0]["buttons"]);
                hashtable.Add("MsgBoxIcon", table2.Rows[0]["icon"]);
                hashtable.Add("MsgBoxDefaultButton", table2.Rows[0]["defaultbutton"]);
                hashtable.Add("funcode", str2);
            }
            catch (Exception)
            {
                hashtable = null;
            }
            return(hashtable);
        }