예제 #1
0
    public string AddEPCategory(string categoryname, string categorydesp, string cosid, string devid, string sk)
    {
        string[,] p = new string[2, 4];
        p[0, 0]     = "categoryname";
        p[1, 0]     = categoryname;
        p[0, 1]     = "categorydesp";
        p[1, 1]     = categorydesp;
        p[0, 2]     = "cosid";
        p[1, 2]     = cosid;
        p[0, 3]     = "devid";
        p[1, 3]     = devid;

        devid = SEC.SECURITY_ContentDecrypt(devid);
        if (!SEC.SECURITY_RequestDecrypt(p, sk, devid))
        {
            return(SEC.SECURITY_ContentEncrypt("-4"));
        }

        categoryname = SEC.SECURITY_ContentDecrypt(categoryname);
        categorydesp = SEC.SECURITY_ContentDecrypt(categorydesp);
        cosid        = SEC.SECURITY_ContentDecrypt(cosid);

        COS_WEBSERVICE_EPTYPE c = new COS_WEBSERVICE_EPTYPE();

        return(SEC.SECURITY_ContentEncrypt(c.EPTYPE_Add(categoryname, categorydesp, cosid).ToString()));
    }
예제 #2
0
    public string EPTYPE_Add(string EP_Type_name, string EP_Type_Description, string HCCU_ID, string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0] = "EP_Type_name";
        p[1, 0] = EP_Type_name;
        p[0, 1] = "EP_Type_Description";
        p[1, 1] = EP_Type_Description;
        p[0, 2] = "HCCU_ID";
        p[1, 2] = HCCU_ID;

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

        EP_Type_name = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_Type_name);
        EP_Type_Description = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_Type_Description);
        HCCU_ID = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);

        COS_WEBSERVICE_EPTYPE cos_w_ep = new COS_WEBSERVICE_EPTYPE();
        return  COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_ep.EPTYPE_Add(EP_Type_name, EP_Type_Description, HCCU_ID).ToString());
    }
예제 #3
0
    public string EPTYPE_Add(string EP_Type_name, string EP_Type_Description, string HCCU_ID, string SK)
    {
        string[,] p = new string[2, 3];
        p[0, 0]     = "EP_Type_name";
        p[1, 0]     = EP_Type_name;
        p[0, 1]     = "EP_Type_Description";
        p[1, 1]     = EP_Type_Description;
        p[0, 2]     = "HCCU_ID";
        p[1, 2]     = HCCU_ID;

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

        EP_Type_name        = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_Type_name);
        EP_Type_Description = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(EP_Type_Description);
        HCCU_ID             = COS_SECURITY_TOOL.SECURITY_ContentDecrypt(HCCU_ID);

        COS_WEBSERVICE_EPTYPE cos_w_ep = new COS_WEBSERVICE_EPTYPE();

        return(COS_SECURITY_TOOL.SECURITY_ContentEncrypt(cos_w_ep.EPTYPE_Add(EP_Type_name, EP_Type_Description, HCCU_ID).ToString()));
    }
예제 #4
0
    public string AddEPCategory(string categoryname, string categorydesp, string devid, string sk)
    {

        string[,] p = new string[2, 3];
        p[0, 0] = "categoryname";
        p[1, 0] = categoryname;
        p[0, 1] = "categorydesp";
        p[1, 1] = categorydesp;
        p[0, 2] = "devid";
        p[1, 2] = devid;

        devid = SEC.SECURITY_ContentDecrypt(devid);
        if (!SEC.SECURITY_RequestDecrypt(p, sk, devid)) return SEC.SECURITY_ContentEncrypt("-4");

        categoryname = SEC.SECURITY_ContentDecrypt(categoryname);
        categorydesp = SEC.SECURITY_ContentDecrypt(categorydesp);

        COS_WEBSERVICE_EPTYPE c = new COS_WEBSERVICE_EPTYPE();
        return c.EPTYPE_Add(categoryname, categorydesp, devid).ToString();

    }