Пример #1
0
    public string EXEC_ORDER_Get(string EP_ID,string SK) {

        string[,] p = new string[2, 1];
        p[0, 0] = "EP_ID";
        p[1, 0] = EP_ID;

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

        EP_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_ID);

        COS_WEBSERVICE_EXEC_ORDER cos_w_exec = new COS_WEBSERVICE_EXEC_ORDER();
        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_exec.EXEC_ORDER_Get(EP_ID).ToString());

    }
Пример #2
0
    public string EXEC_ORDER_Get(string EP_ID, string SK)
    {
        string[,] p = new string[2, 1];
        p[0, 0]     = "EP_ID";
        p[1, 0]     = EP_ID;

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

        EP_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_ID);

        COS_WEBSERVICE_EXEC_ORDER cos_w_exec = new COS_WEBSERVICE_EXEC_ORDER();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_exec.EXEC_ORDER_Get(EP_ID).ToString()));
    }
Пример #3
0
    public string EXEC_ORDER_Add(string EP_ID, string PROP, string VALUE, string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0] = "EP_ID";
        p[1, 0] = EP_ID;
        p[0, 1] = "PROP";
        p[1, 1] = PROP;
        p[0, 2] = "VALUE";
        p[1, 2] = VALUE;

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

        EP_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_ID);
        PROP = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(PROP);
        VALUE = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(VALUE);

        COS_WEBSERVICE_EXEC_ORDER cos_w_exec = new COS_WEBSERVICE_EXEC_ORDER();
        return COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_exec.EXEC_ORDER_Add(EP_ID,PROP,VALUE).ToString());
    }
Пример #4
0
    public string EXEC_ORDER_Add(string EP_ID, string PROP, string VALUE, string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0]     = "EP_ID";
        p[1, 0]     = EP_ID;
        p[0, 1]     = "PROP";
        p[1, 1]     = PROP;
        p[0, 2]     = "VALUE";
        p[1, 2]     = VALUE;

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

        EP_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_ID);
        PROP  = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(PROP);
        VALUE = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(VALUE);

        COS_WEBSERVICE_EXEC_ORDER cos_w_exec = new COS_WEBSERVICE_EXEC_ORDER();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_exec.EXEC_ORDER_Add(EP_ID, PROP, VALUE).ToString()));
    }