<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_updatefmqx, App_Web_wrcbq7tn" %>



<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>为角色分配文件类别权限</title>
      <link href="../CssHtml1.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
      <div >  
    
        <asp:Label ID="Label9" runat="server" Text="Label" Visible="false"></asp:Label>&nbsp;
        <table width ="1000px" ><tr>
        <td style="font-weight: bold;">
           文件类别： <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
        <td></td>
        <td align =right >
            &nbsp;&nbsp;
         <asp:UpdatePanel id="UpdatePanel2" runat =server> 
                    <ContentTemplate>
                        <asp:Label ID="Label4" runat="server" ForeColor=red ></asp:Label>
                    <asp:Button ID="Button5" runat="server" Text="确 定" OnClick="Button5_Click" />
                     <input id="Button1" type="button" value="关闭窗口" onclick="window.close()" />
                     </ContentTemplate>
                     </asp:UpdatePanel>
        
        </td>
        </tr></table>
        
            <div style="font-size:9pt; width:1000px; height :570px; overflow:auto">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">
            <ContentTemplate>
    <asp:GridView ID="GridView4" runat="server" Width="100%"  AutoGenerateColumns="False" DataSourceID="SqlDataSource4" style="text-align:center"  >
                        <Columns>
                            <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                                <EditItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="角色" SortExpression="roleid">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Getjs(Eval("roleid")) %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Getjs(Eval("roleid")) %>'></asp:Label>
                                </ItemTemplate>
                                
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="treeid" HeaderText="treeid" SortExpression="treeid" Visible="False" />
                            <asp:BoundField DataField="treeNo" HeaderText="treeNo" SortExpression="treeNo" Visible="False" />
                            <asp:TemplateField HeaderText="读取权" SortExpression="reads">
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("reads") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"  />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    读取权<asp:CheckBox ID="CheckBox11" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox11_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="添加权" SortExpression="adds">
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("adds") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    添加权<asp:CheckBox ID="CheckBox12" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox12_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="下载权" SortExpression="download">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Bind("download") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    下载权<asp:CheckBox ID="CheckBox13" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox13_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="删除权" SortExpression="deletes" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox7" runat="server" Checked='<%# Bind("deletes") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate >
                                    删除权<asp:CheckBox ID="CheckBox17" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox17_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="借阅权" SortExpression="lends">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox8" runat="server" Checked='<%# Bind("lends") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    借阅权<asp:CheckBox ID="CheckBox18" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox18_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="打印权" SortExpression="prints">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox9" runat="server" Checked='<%# Bind("prints") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    打印权<asp:CheckBox ID="CheckBox19" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox19_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="Office在线修改" SortExpression="editOffice">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_editOffice" runat="server" Checked='<%# Bind("editOffice") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    Office在线修改<asp:CheckBox ID="chk1_editOffice" runat="server" AutoPostBack="True" OnCheckedChanged="chk1_editOffice_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="属性修改权" SortExpression="attris">
                              
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox10" runat="server" Checked='<%# Bind("attris") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    属性修改权<asp:CheckBox ID="CheckBox20" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox20_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="附件添加权" SortExpression="attAdds">
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="attAdds" runat="server" Checked='<%# Bind("attAdds") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件添加权<asp:CheckBox ID="attAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="attAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="附件阅读权" SortExpression="attDownload">
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="attReads" runat="server" Checked='<%# Bind("attReads") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件阅读权<asp:CheckBox ID="attReads_all" runat="server" AutoPostBack="True" OnCheckedChanged="attReads_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="附件下载权" SortExpression="attDownload">
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="attDownload" runat="server" Checked='<%# Bind("attDownload") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件下载权<asp:CheckBox ID="attDownload_all" runat="server" AutoPostBack="True" OnCheckedChanged="attDownload_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="附件打印权" SortExpression="attDownload">
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="attPrints" runat="server" Checked='<%# Bind("attPrints") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件打印权<asp:CheckBox ID="attPrints_all" runat="server" AutoPostBack="True" OnCheckedChanged="attPrints_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="附件删除权" SortExpression="attDownload">
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="attDels" runat="server" Checked='<%# Bind("attDels") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged" />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件删除权<asp:CheckBox ID="attDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="attDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="历史版本添加权" SortExpression="verAdds">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="verAdds" runat="server" Checked='<%# Bind("verAdds") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本添加权<asp:CheckBox ID="verAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="verAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="历史版本阅读权" SortExpression="verDownload">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="verReads" runat="server" Checked='<%# Bind("verReads") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本阅读权<asp:CheckBox ID="verReads_all" runat="server" AutoPostBack="True" OnCheckedChanged="verReads_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="历史版本下载权" SortExpression="CheckBox5">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox5" runat="server" Checked='<%# Bind("verDownload") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本下载权<asp:CheckBox ID="CheckBox15" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox15_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="历史版本打印权" SortExpression="verPrints">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="verPrints" runat="server" Checked='<%# Bind("verDownload") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本打印权<asp:CheckBox ID="verPrints_all" runat="server" AutoPostBack="True" OnCheckedChanged="verPrints_all_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="历史版本删除权" SortExpression="verDownload">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="verDels" runat="server" Checked='<%# Bind("verDels") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本删除权<asp:CheckBox ID="verDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="verDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="相关文件添加权" SortExpression="verDownload">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="relatedAdds" runat="server" Checked='<%# Bind("relatedAdds") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    相关文件添加权<asp:CheckBox ID="relatedAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="relatedAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="相关文件删除权" SortExpression="verDownload">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="relatedDels" runat="server" Checked='<%# Bind("relatedDels") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    相关文件删除权<asp:CheckBox ID="relatedDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="relatedDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="文件映射添加权" SortExpression="verDownload">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="mapAdds" runat="server" Checked='<%# Bind("mapAdds") %>' AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    文件映射添加权<asp:CheckBox ID="mapAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="mapAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="文件映射删除权" SortExpression="verDownload">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="mapDels" runat="server" Checked='<%# Bind("mapDels") %>'  AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"/>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    文件映射删除权<asp:CheckBox ID="mapDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="mapDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                        </Columns>
        <HeaderStyle BackColor="InactiveCaption" Font-Size="9pt" ForeColor="White" />
       
                    </asp:GridView>
                <asp:Label ID="lbl_state" runat="server" ForeColor="Red"></asp:Label>
                    </ContentTemplate>
        </asp:UpdatePanel> 
                    </div>
                   
                    
                    <asp:SqlDataSource ID="SqlDataSource4" runat="server"  >
                       
                    </asp:SqlDataSource>
                    
    </div>
    </form>
</body>
</html>
