<%@ page language="C#" autoeventwireup="true" inherits="myWorks_lentFiles, App_Web_n_ukpybn" %>

<!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 id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
    <style type ="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style> 
         <script src="../scripts/openWin.js" type="text/javascript"></script>
        <script type="text/javascript">
         function ssx(op,idd)
        {
            var wy ="checkLeaderWord2.aspx?type="+idd+"&id="+op;
            window.open( wy,'','width=612,height=430,top=100,left=300,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
        }
             function tz()
        {
            window.parent['homeLeft'].location='appLeft.aspx?id=0';
            window.location='lentFiles.aspx';
        }
        </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
    <div>
        <table  width =100% style="font-size: 9pt;"><tr ><td align =left >目前位置：我的申请 - 申请记录 - 借阅申请 &nbsp; &nbsp;
        <asp:DropDownList
                ID="DropDownList1" runat="server" style="margin-left:20px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
            </asp:DropDownList>
        
        </td>
        
        <td align =right  valign =bottom >
        <asp:Label ID="lblstate" runat="server" Text="" ForeColor="Red"></asp:Label> 
            <img src="../Images/18.gif" onclick="tz()" title="刷新"
                                            style="cursor: pointer" id="IMG1" />
                          <a href="../OnlineHelp/OnlineHelp.aspx" target="_blank">
                                        <img src="../Images/8.gif" style="border-top-style: none; border-right-style: none;
                                            border-left-style: none; border-bottom-style: none;" /></a>  
            </td></tr></table>
            
        <div  class ="mycss">
        <asp:GridView ID="GridView1" runat="server" style="width:100%; text-align:center" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"   Font-Bold="False" Font-Size="9pt" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="30" OnDataBound="GridView1_DataBound">
           
           <EmptyDataTemplate>
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr style=" background-color: #1471b0; ">
                                        <td align="center" style="font-weight: bold; font-size: 9pt; color: white">
                                            是否阅读
                                        </td>
                                         <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            文件编号
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            文件名称
                                        </td>
                                        
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            审批状态
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            审批人
                                        </td>
                                       
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            审批时间
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="3" style="font-weight: normal; font-size: 9pt;">
                                            没有数据................................
                                        </td>
                                    </tr>
                                </table>
                            </EmptyDataTemplate> 
            <Columns>                           
                <asp:TemplateField HeaderText="文件编号">
                    <ItemTemplate>
               
                   <asp:LinkButton ID="link_docpage2" runat="server" ForeColor ='<%# getColor(Eval("fileno"),Eval("id")) %>' OnClientClick ='<%# getUrl(Eval("fileno"),Eval("id")) %>'><%# Eval("fileno") %></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="文件名称" SortExpression="fname">
                   
                    <ItemTemplate  >
                                     
                <a href ='<%# getHref(Eval("id")) %>'  target ='<%# getTarget(Eval("id")) %>'  style ='<%# getStyle(Eval("id")) %>' >    <%# Eval("fname") %></a>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            
                
              
                 <asp:TemplateField  HeaderText ="审批状态">
                <ItemTemplate >
                <asp:Label ID="lbl_state" runat="server" Text='<%# Eval("state") %>' ToolTip='<%# getDownload( Eval("id")) %>'></asp:Label>
                </ItemTemplate>
                
                </asp:TemplateField>
             
                 <asp:TemplateField HeaderText="审批人">
                                   
                                    <ItemTemplate>
                                     
                                         <asp:LinkButton ID="linkb_checkleaderwords" runat="server"  ToolTip ="点击查看批准历史记录" ValidationGroup ='<%# Eval("id") %>' ForeColor="Blue"   >   <%# getApproverName(Eval("approverid")) %> </asp:LinkButton>   
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
              
               <%-- <asp:TemplateField HeaderText="审批意见">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# common.GetFirstSomeChars(Eval("leaderReason")) %>' style="cursor:pointer" ToolTip='<%# Eval("leaderReason") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>--%>
                  <asp:BoundField DataField="adate" HeaderText="审批时间" SortExpression="adate"  />
                  <asp:BoundField DataField="edate" HeaderText="到期时间" SortExpression="edate"  />
                   <asp:TemplateField HeaderText="下载">
                                    <ItemTemplate>
                                      
                                          <asp:LinkButton ID="linkb_download" runat="server" Visible =false  ValidationGroup ='<%# getFid( Eval("fileno") )%>' >下载</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                  <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/del2.gif" OnClientClick="return confirm('确认删除？')"
                            CommandName='<%# Eval("id") %>' OnClick="ImageButton2_Click" ToolTip="删除记录" />
                    </ItemTemplate>
                </asp:TemplateField>
             
            </Columns>
            <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
        </asp:GridView>
        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
        </asp:SqlDataSource>
    </div>
    </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
