<%@ page language="C#" autoeventwireup="true" inherits="Document_relatedGrid, App_Web_rddppaaw" %>

<!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">
    <title>无标题页</title>
    <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
</head>
<body style="font-size: 9pt;">
    <form id="form1" runat="server">
   <div  style ="width :100%; height :100%"; >
        <table width="100%"  >
            <tr>
                <td style="height: 24px" valign="top" >
                   
                 <table  width="100%" cellpadding="0" cellspacing="0"><tr>
                 <td align="left"  style ="width :30%;">选择相关文件：</td>
                 <td align="right"  style ="width :70%;"><asp:Label ID="lblState" runat="server" Font-Size="9pt" ForeColor="Red" Visible="False"
                        ></asp:Label> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添  加" /></td>
                 </tr></table>  
                </td>
            </tr>
            <tr>
                <td valign="top" >
                <div  style ="width :100%; height :100%; overflow :auto ;">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        DataKeyNames="文件编号" DataSourceID="SqlDataSource1" Width="100%" SelectedRowStyle-BorderStyle="Dotted" CellPadding="0"  Font-Size="9pt" HeaderStyle-BackColor="InactiveCaption" HeaderStyle-Font-Size="9pt" HeaderStyle-ForeColor="White" HeaderStyle-Height="22px" PageSize="20" OnDataBound="GridView1_DataBound" OnPageIndexChanging="GridView1_PageIndexChanging">
                         <EmptyDataTemplate>
                            <table width="100%"  cellpadding="0" cellspacing="0">
                                <tr  style=" height:20px ;background-color: #1471b0; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                    <td   align =center  style="font-weight: bold; font-size: 9pt; color: white; ">文件编号
                                    </td>
                                    <td align =center  style="font-weight: bold; font-size: 9pt; color: white; ">文件名称
                                    </td>
                                    <td align =center  style="font-weight: bold; font-size: 9pt; color: white; ">类别编号
                                    </td>
                                  
                                   
                                    <td align =center  style="font-weight: bold; font-size: 9pt; color: white; ">编制人
                                    </td>
                                     <td align =center style="font-weight: bold; font-size: 9pt; color: white; ">版本号
                                    </td>
                                     <td align =center  style="font-weight: bold; font-size: 9pt; color: white; ">编制日期
                                    </td>
                                </tr>
                                <tr>
                                    <td   align =center colspan =6 style="font-weight: normal; font-size: 9pt;"> 没有数据................................
                                    </td>
                                   
                                </tr>
                            </table>
                        </EmptyDataTemplate>
                        
                        <Columns>
                            <asp:BoundField DataField="文件编号" HeaderText="文件编号" ReadOnly="True" SortExpression="文件编号" />
                            <asp:BoundField DataField="文件名称" HeaderText="文件名称" SortExpression="文件名称" />
                           <asp:TemplateField HeaderText="所属类别">
                               
                                <ItemTemplate>
                                    <div ><%= getTreeName() %></div> 
                                         
                                </ItemTemplate>
                            </asp:TemplateField>
                        
                             <asp:TemplateField HeaderText="编制人">
                               
                                <ItemTemplate>
                                    <div ><%# getUname(Eval("编制人"))%></div> 
                                         
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="版本号" HeaderText="版本号" SortExpression="版本号" />
                            <asp:BoundField DataField="编制日期" HeaderText="编制日期" SortExpression="编制日期"  DataFormatString="{0:yyyy-MM-dd}"  />
                           
                            <asp:TemplateField HeaderText="选择">
                               
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"  ValidationGroup='<%# Eval("文件编号") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <SelectedRowStyle BorderStyle="Dotted" />
                        <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" Height="22px" />
                        <AlternatingRowStyle BackColor="White" />
                    
                    </asp:GridView>
                    </div>
                </td>
            </tr>
          
        </table>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
           
        </asp:SqlDataSource>
        </div>
    </form>
</body>
</html>
