<%@ page language="C#" autoeventwireup="true" inherits="myApp_toLend, 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 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>

        <script type="text/javascript">
       
    </script>
</head>
<body style="font-size: 9pt;" >
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="font-size: 9pt">
                   
                           
                              <div style="text-align: right">
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                    <td align ="left" > &nbsp;目前位置：我的申请 - 借阅申请
                          </td>
                                       
                                        <td style="text-align: right; height: 24px; width :70%">
                                        <asp:Label ID="Label2" runat="server" Font-Bold="False" ForeColor="Red" Font-Size="9pt"></asp:Label><asp:Label
                                                ID="Label3" runat="server" Enabled="False" Visible="False"></asp:Label>
                                            <asp:Button ID="button1" runat="server" Text="提交记录" OnClick="button1_Click" Height="21" />
                                             <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>
                            <div class ="mycss">
                                <asp:GridView ID="GridView1" runat="server" Style="width: 100%; text-align: center;
                                    font-size: 9pt" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
                                    Font-Size="9pt" HeaderStyle-BackColor="InactiveCaption" HeaderStyle-Font-Size="9pt"
                                    HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="White" OnDataBound="GridView1_DataBound1" PageSize="30" OnPageIndexChanging="GridView1_PageIndexChanging">
                                    <EmptyDataTemplate>
                                        <table width="100%">
                                            <tr style="font-weight: bold; font-size: 9pt; color: #ffffff; background-color:#1471B0;
                                                border-right: #6699cc 1px solid; border-top: #6699cc 1px solid; border-left: #6699cc 1px solid;
                                                border-bottom: #6699cc 1px solid;">
                                                <td align="center" style="font-weight: bold;color: white;">
                                                    文件编号
                                                </td>
                                                <td align="center" style="font-weight: bold;  color: white; border-left: white 1px solid;">
                                                    文件名称
                                                </td>
                                                <td align="center" style="font-weight: bold;  color: white; border-left: white 1px solid;">
                                                    版本号
                                                </td>
                                                 <td align="center" style="font-weight: bold;  color: white; border-left: white 1px solid;">
                                                    借阅批准人
                                                </td>
                                                <td align="center" style="font-weight: bold;  color: white; border-left: white 1px solid;">
                                                    编制人
                                                </td>
                                                <td align="center" style="font-weight: bold;color: white; border-left: white 1px solid;">
                                                    文件状态
                                                </td>
                                                <td align="center" style="font-weight: bold;  color: white; border-left: white 1px solid;">
                                                    创建日期
                                                </td>
                                              
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="3" style="font-weight: normal; ">
                                                    没有数据................................
                                                </td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <Columns>
                                        <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                                            SortExpression="id" Visible="False" />
                                        <asp:TemplateField   ItemStyle-Width ="5%">
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="CheckBox2" Text ="全选"  runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged1" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chk_id" runat="server"  ValidationGroup='<%# Eval("id") %>'
                                                     />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                         <asp:BoundField DataField="fileno" HeaderText="文件编号" SortExpression="fileno"   ItemStyle-Width ="20%"/>
                                        <asp:BoundField DataField="fname" HeaderText="文件名称" SortExpression="fname"   ItemStyle-Width ="20%"/>
                                        <asp:BoundField DataField="version" HeaderText="版本号" SortExpression="version" />
                                          
                                          <asp:TemplateField HeaderText="借阅批准人">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_lender" runat="server" Text='<%# GetUname(Eval("lendapprover")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField> 
                                        <asp:TemplateField HeaderText="编制人">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# GetUname(Eval("people")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                         <asp:BoundField DataField="filestate" HeaderText="文件状态" SortExpression="filestate" />
                                        <asp:BoundField DataField="cdate" DataFormatString="{0:yy-MM-dd}" HeaderText="创建日期" />
                                      
                                    </Columns>
                                    <HeaderStyle BackColor="#1471B0" Font-Bold="True" Font-Size="9pt" ForeColor="White" BorderStyle="None" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
                                   
                                </asp:SqlDataSource>
                            </div>
                  
                             
                     <asp:Panel ID="Panel1" runat="server" Visible="false" BackColor="White">
                    
                           <div style="position: absolute; z-index:120; left: 121px; width: 694px;height:351px; top: 0px; "  runat="server" >
                         
                             <table style =" position :relative ; z-index :5;height:30px;height:30px; width: 694px;" cellpadding="0" cellspacing="0">
                      <tr >
                       <td align ="left" style="font-weight: bold; font-size: 9pt; color: white; width :395px;background-image:url(../Images/top_left.gif);" > &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;  文件借阅申请</td>
                        <td align ="right" style ="width :299px;background-image:url(../Images/top_right.gif);" ><asp:ImageButton ID="ImageButton1" runat="server" OnClick="ImageButton1_Click" ImageUrl="~/Images/close.gif" style="padding-top:3px;  padding-right:4px;" ToolTip="关闭" /></td>
                        </tr>
                
                    </table>
                    <div   style=" width: 686px; border-right: #036cfe 4px solid; border-left: #036cfe 4px solid; border-bottom: #036cfe 4px solid;
                                background-color: #f2f8fd;" >
                
           
             
                            <div  style=" width: 685px; height :120px; overflow :auto ">
                                <asp:GridView ID="GridView2" runat="server" Style="width: 685px; text-align: center;
                                    font-size: 9pt" AutoGenerateColumns="False" DataSourceID="SqlDataSource2"
                                    Font-Size="9pt" HeaderStyle-BackColor="InactiveCaption" HeaderStyle-Font-Size="9pt"
                                    HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="White" OnDataBound="GridView2_DataBound">
                                    <EmptyDataTemplate>
                                        <table width="100%">
                                            <tr style="font-weight: bold; font-size: 9pt; color: #ffffff; background-color: InactiveCaption;
                                                border-right: #6699cc 1px solid; border-top: #6699cc 1px solid; border-left: #6699cc 1px solid;
                                                border-bottom: #6699cc 1px solid;">
                                                <td align="center">
                                                    文件编号
                                                </td>
                                                <td align="center">
                                                    文件名称
                                                </td>
                                                <td align="center">
                                                    版本号
                                                </td>
                                                <td align="center">
                                                    编制人
                                                </td>
                                                <td align="center">
                                                    创建时间
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="3" style="font-weight: normal; font-size: 9pt;">
                                                    没有数据................................
                                                </td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <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>
                                           
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chk_selected_id" runat="server"  ValidationGroup='<%# Eval("id") %>'
                                                    />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="fileno" HeaderText="文件编号" SortExpression="fileno" />
                                        <asp:BoundField DataField="fname" HeaderText="文件名称" SortExpression="fname" />
                                        <asp:BoundField DataField="version" HeaderText="版本号" SortExpression="version" />
                                        <asp:TemplateField HeaderText="编制人">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# GetUname(Eval("people")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="cdate" DataFormatString="{0:yy-MM-dd}" HeaderText="创建时间" />
                                    </Columns>
                                    <HeaderStyle BackColor="#1471B0" Font-Bold="True" Font-Size="9pt" ForeColor="White" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="SqlDataSource2" runat="server" >
                                </asp:SqlDataSource>
                            </div>
                            
                            
                            <div style="margin-top: 5px; z-index :20; width :100%; text-align :center ; position :relative ;left:1px;">
                                <table cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr ><td align ="left" >
                                    &nbsp;借阅理由：</td></tr>
                                    <tr>
                                        
                                        <td style="vertical-align: top; text-align:center; position :relative  ; z-index : 41; ">
                                           <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Enabled =true  Text =""   Width="678px" Height="100px" TabIndex="1" 
                                               ></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div style="text-align: right;">
                                <table width="100%" cellpadding="0" cellspacing="0">
                                <tr >
                                <td colspan =2 style="text-align: left">
                                            <asp:CheckBox ID="chk_prints" runat="server"  Text="打印权"/><asp:CheckBox ID="chk_downloads" runat="server" Text ="下载权" /> 
                                            <asp:CheckBox ID="CheckBox3" runat="server" Text="短消息通知批准人" Checked="True" Enabled="False" /><asp:CheckBox ID="CheckBox4"
                                                runat="server" Text="Email通知批准人" />
                                        </td>
                                </tr>
                                    <tr>
                                        <td style="text-align: left; width: 429px;">
                                            <asp:Label ID="Label4" runat="server" Font-Bold="False" ForeColor="Red" Font-Size="9pt" ></asp:Label>
                                        </td>
                                        
                                        <td style="text-align: right; font-size: 9pt; ">
                                           
                                           <asp:Button
                                                ID="Button3" runat="server" Text="提  交" OnClick="Button3_Click" ValidationGroup="qwsd"  Height="23px"  />
                                            <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="关  闭"  Height="23px"  />
                                            </td>
                                    </tr>
                                </table>
                            </div>
                  </div>         
                    
                </div>
                </asp:Panel>
              </div> 
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
