Exemple #1
0
    public string TRANS_Add(string TARGET_EP_ID, string TRIGGER_TYPE_ID, string MISC, string DT, string SK)
    {
        string[,] p = new string[2, 4];
        p[0, 0]     = "TARGET_EP_ID";
        p[1, 0]     = TARGET_EP_ID;
        p[0, 1]     = "TRIGGER_TYPE_ID";
        p[1, 1]     = TRIGGER_TYPE_ID;
        p[0, 2]     = "MISC";
        p[1, 2]     = MISC;
        p[0, 3]     = "DT";
        p[1, 3]     = DT;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK))
        {
            return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4"));
        }

        TARGET_EP_ID    = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(TARGET_EP_ID);
        TRIGGER_TYPE_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(TRIGGER_TYPE_ID);
        MISC            = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MISC);
        DT = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(DT);

        COS_WEBSERVICE_TRANS cos_w_trans = new COS_WEBSERVICE_TRANS();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_trans.TRANS_Add(TARGET_EP_ID, TRIGGER_TYPE_ID, MISC, DT).ToString()));
    }
    public string TRANS_Add(string TARGET_EP_ID, string TRIGGER_TYPE_ID, string MISC, string DT, string SK)
    {
        string[,] p = new string[2, 4];
        p[0, 0] = "TARGET_EP_ID";
        p[1, 0] = TARGET_EP_ID;
        p[0, 1] = "TRIGGER_TYPE_ID";
        p[1, 1] = TRIGGER_TYPE_ID;
        p[0, 2] = "MISC";
        p[1, 2] = MISC;
        p[0, 3] = "DT";
        p[1, 3] = DT;

        if (!COS_SECURITY_TOOL.SECURITY_RequestDecrypt(p, SK)) return COS_SECURITY_TOOL.SECURITY_ContentEncrypt("-4");

        TARGET_EP_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(TARGET_EP_ID);
        TRIGGER_TYPE_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(TRIGGER_TYPE_ID);
        MISC = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(MISC);
        DT = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(DT);

        COS_WEBSERVICE_TRANS cos_w_trans = new COS_WEBSERVICE_TRANS();
        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_trans.TRANS_Add(TARGET_EP_ID, TRIGGER_TYPE_ID, MISC, DT).ToString());

    }