<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SubTree.aspx.cs" Inherits="Chaokers.CN.SysMembership.Web.SubTree" %>
<%@ Register assembly="Chaokers.CN.SysMembership.Components" namespace="Chaokers.CN.SysMembership.Components.Controls" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<asp:Literal runat="server">权限管理</asp:Literal>    
</head>
<body>
<script type="text/javascript">
    function edit(privilegeID) {
        window.parent.mainFrame.location = "SubPrivilegeEdit.aspx?ModuleID=<% = base.moduleID %>&PrivilegeID=" + privilegeID + "&ParentID=<% = base.parentID %>";
    }
    function del(privilegeID) {
        if (confirm("确定要删除该权限吗？\n注：删除该权限将级联删除其所有子权限，请慎重操作！")) {
            window.location.href = "DelPrivilege.aspx?PrivilegeID=" + privilegeID + "&ReturnURL=SubTree.aspx?ModuleID=<% = base.moduleID %>|ParentID=<% = base.parentID %>";
            window.parent.mainFrame.location.href = "SubPrivilegeEdit.aspx?ModuleID=<% = base.moduleID %>&ParentID=<% = base.parentID %>";
        }
    }
    function move(privilegeID) {
        var obj = showModalDialog('PrivilegeMove.aspx?PrivilegeID=' + privilegeID + "&Random=" + Math.random(), window, 'dialogWidth:700px;dialogHeight=270px;help:0;status:0;resizable:1;scroll:0;');
        window.location.reload();
    }
</script>
<form id="form1" runat="server">    
<div style="margin:5px;">

   <cc1:AspTreeView ID="aspTreeView1" runat="server" ShowSubPrivilegesOperation="false" ShowDeleteButton="true" />

</div>
</form>
</body>
</html>
