示例#1
0
    public void EditRBACResource()
    {
        int    RBAC_Resource_ID      = tools.CheckInt(Request.Form["RBAC_Resource_ID"]);
        int    RBAC_Resource_GroupID = tools.CheckInt(Request.Form["RBAC_Resource_GroupID"]);
        string RBAC_Resource_Name    = tools.CheckStr(Request.Form["RBAC_Resource_Name"]);

        RBACResourceInfo entity = new RBACResourceInfo();

        entity.RBAC_Resource_ID      = RBAC_Resource_ID;
        entity.RBAC_Resource_GroupID = RBAC_Resource_GroupID;
        entity.RBAC_Resource_Name    = RBAC_Resource_Name;
        entity.RBAC_Resource_Site    = "CN";

        if (MyBLL.EditRBACResource(entity, Public.GetUserPrivilege()))
        {
            Public.Msg("positive", "操作成功", "操作成功", true, "resource_list.aspx");
        }
        else
        {
            Public.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
        }
    }