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

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>为角色分配文件类别权限</title>
      <link href="../CssHtml1.css" rel="stylesheet" type="text/css" />
      <style type="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
      <div style ="width:1180px; height : 660px; border-bottom: #0066ff 1px solid; border-left: #0066ff 1px solid; border-top: #0066ff 1px solid; border-right: #0066ff 1px solid;" >  
    
        <asp:Label ID="Label9" runat="server" Text="Label" Visible="false"></asp:Label>
        <table width ="1170px"  style ="height :30px;"><tr>
        <td style="font-weight: bold;">
           文件类别： <asp:Label ID="Label3" runat="server" ForeColor="Red"></asp:Label></td>
        <td></td>
        <td align =right >
         <asp:UpdatePanel id="UpdatePanel2" runat =server> 
                    <ContentTemplate>
                        <asp:Label ID="Label4" runat="server" ForeColor=red ></asp:Label>
                        <asp:CheckBox ID="select_all" runat="server" AutoPostBack="true" OnCheckedChanged="select_all_CheckedChanged" /> 全部选中
                        <asp:CheckBox ID="cancel_all" runat="server" AutoPostBack="true" OnCheckedChanged="cancel_all_CheckedChanged" />全部取消  <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 class ="mycss" style="font-size:9pt; width:1180px; height :620px; overflow:auto">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
    <asp:GridView ID="GridView4" runat="server" Width="1178px"  AutoGenerateColumns="False" DataSourceID="SqlDataSource4" style="text-align:center" SelectedIndex="0" PageSize="21" OnRowCreated="GridView4_RowCreated" AllowPaging="True" BorderStyle="None" OnPageIndexChanging="GridView4_PageIndexChanging"  >
                        <Columns>
                            <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                                <ItemTemplate>
                               
                                    <asp:Label ID="lbl_vtfilePower_id" runat="server" Text='<%# getVtfilePowerid( Eval("id")) %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="角色" SortExpression="roleName">
                                <ItemTemplate  >
                                    <asp:Label ID="lbl_roleName" runat="server" Text='<%# Eval("roleName") %>' ToolTip ='<%# Eval("id") %>'></asp:Label>
                                </ItemTemplate>
                                
                                 <HeaderStyle Wrap="False"  />
                                <ItemStyle Wrap =false  BackColor="#82B7EA" />
                            </asp:TemplateField>
                             
                            <asp:TemplateField HeaderText="横向全选" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_allXX" runat="server"  ValidationGroup ='<%# Eval("roleName")  %>' AutoPostBack="True" OnCheckedChanged="chk_allXX_CheckedChanged"  />
                                </ItemTemplate>
                               
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="读取权" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_reads" runat="server"  Checked='<%# getRigth(Eval("id"),"reads") %>'  />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    读取权<asp:CheckBox ID="CheckBox11" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox11_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="添加权" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_adds" runat="server" Checked='<%# getRigth(Eval("id"),"adds") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    添加权<asp:CheckBox ID="CheckBox12" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox12_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="下载权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_download" runat="server" Checked='<%# getRigth(Eval("id"),"download") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    下载权<asp:CheckBox ID="CheckBox13" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox13_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="删除权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_deletes" runat="server" Checked='<%# getRigth(Eval("id"),"deletes") %>' />
                                </ItemTemplate>
                                <HeaderTemplate >
                                    删除权<asp:CheckBox ID="CheckBox17" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox17_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="借阅权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_lends" runat="server" Checked='<%# getRigth(Eval("id"),"lends") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    借阅权<asp:CheckBox ID="CheckBox18" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox18_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="打印权">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_prints" runat="server" Checked='<%# getRigth(Eval("id"),"prints") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    打印权<asp:CheckBox ID="CheckBox19" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox19_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="Office在线修改">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_editOffice" runat="server" Checked='<%# getRigth(Eval("id"),"editOffice") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    Office在线修改<asp:CheckBox ID="CheckBox101" runat="server" AutoPostBack ="true" OnCheckedChanged="CheckBox101_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="属性修改权" >
                              
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_attris" runat="server" Checked='<%# getRigth(Eval("id"),"attris") %>'  />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    文件属性修改权<asp:CheckBox ID="CheckBox20" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox20_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="附件添加权" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_attAdds" runat="server" Checked='<%# getRigth(Eval("id"),"attAdds") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件添加权<asp:CheckBox ID="attAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="attAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="附件阅读权" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_attReads" runat="server" Checked='<%# getRigth(Eval("id"),"attReads") %>'  />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件阅读权<asp:CheckBox ID="attReads_all" runat="server" AutoPostBack="True" OnCheckedChanged="attReads_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="附件下载权" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_attDownload" runat="server" Checked='<%# getRigth(Eval("id"),"attDownload") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件下载权<asp:CheckBox ID="attDownload_all" runat="server" AutoPostBack="True" OnCheckedChanged="attDownload_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="附件打印权" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_attPrints" runat="server" Checked='<%# getRigth(Eval("id"),"attPrints") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件打印权<asp:CheckBox ID="attPrints_all" runat="server" AutoPostBack="True" OnCheckedChanged="attPrints_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="附件删除权" >
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_attDels" runat="server" Checked='<%# getRigth(Eval("id"),"attDels") %>'  />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    附件删除权<asp:CheckBox ID="attDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="attDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="历史版本添加权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_verAdds" runat="server" Checked='<%# getRigth(Eval("id"),"verAdds") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本添加权<asp:CheckBox ID="verAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="verAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="历史版本阅读权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_verReads" runat="server" Checked='<%# getRigth(Eval("id"),"verReads") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本阅读权<asp:CheckBox ID="verReads_all" runat="server" AutoPostBack="True" OnCheckedChanged="verReads_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="历史版本下载权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_verDownload" runat="server" Checked='<%# getRigth(Eval("id"),"verDownload") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本下载权<asp:CheckBox ID="CheckBox15" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox15_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="历史版本打印权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_verPrints" runat="server" Checked='<%# getRigth(Eval("id"),"verPrints") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本打印权<asp:CheckBox ID="verPrints_all" runat="server" AutoPostBack="True" OnCheckedChanged="verPrints_all_CheckedChanged" />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="历史版本删除权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_verDels" runat="server" Checked='<%# getRigth(Eval("id"),"verDels") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    历史版本删除权<asp:CheckBox ID="verDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="verDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="相关文件添加权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_relatedAdds" runat="server" Checked='<%# getRigth(Eval("id"),"relatedAdds") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    相关文件添加权<asp:CheckBox ID="relatedAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="relatedAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="相关文件删除权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_relatedDels" runat="server" Checked='<%# getRigth(Eval("id"),"relatedDels") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    相关文件删除权<asp:CheckBox ID="relatedDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="relatedDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="文件映射添加权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_mapAdds" runat="server" Checked='<%# getRigth(Eval("id"),"mapAdds") %>' />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    文件映射添加权<asp:CheckBox ID="mapAdds_all" runat="server" AutoPostBack="True" OnCheckedChanged="mapAdds_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="文件映射删除权" >
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk_mapDels" runat="server" Checked='<%# getRigth(Eval("id"),"mapDels") %>'  />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    文件映射删除权<asp:CheckBox ID="mapDels_all" runat="server" AutoPostBack="True" OnCheckedChanged="mapDels_all_CheckedChanged"  />
                                </HeaderTemplate>
                                 <HeaderStyle Wrap="False" />
                                 
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="角色" SortExpression="roleName">
                                <ItemTemplate  >
                                    <asp:Label ID="lbl_roleName2" runat="server" Text='<%# Eval("roleName") %>' ToolTip ='<%# Eval("id") %>'></asp:Label>
                                </ItemTemplate>
                                
                                 <HeaderStyle Wrap="False"  />
                                <ItemStyle Wrap =false  BackColor="#82B7EA" />
                            </asp:TemplateField>
                           
                        </Columns>
        <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White"  Wrap =False />
        <FooterStyle HorizontalAlign="Left" />
       
                    </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>
