<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Lending.aspx.cs" Inherits="TotCms.Web.Office.Archives.Lending" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!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="../style/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="right_dqwz">档案借阅</div>

    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic">&nbsp;文号：<asp:TextBox ID="tbCode" runat="server"></asp:TextBox>
&nbsp;密级：<asp:DropDownList ID="rbEncrypt" runat="server">
    </asp:DropDownList>
    名称：<asp:TextBox ID="tbTitle" runat="server"></asp:TextBox>
    来源：<asp:TextBox ID="tbPubBy" runat="server"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Text="查询" onclick="Button1_Click" />
    </td>
      </tr>   
    </table>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">         
    <asp:Repeater ID="rptList" runat="server" 
      onitemcommand="rptList_ItemCommand">
        <HeaderTemplate>
          <tr class="suphead">
              <td> </td>
              <td>名称</td>
              <td>文号</td>
              <td>来源</td>
              <td>密级</td>
              <td>文件类型</td>
              <td>公开</td>
              <td>日期</td>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr class="lines">
            <td>
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
              <ContentTemplate>
              <asp:CheckBox ID="ChkId" runat="server" Checked="false" />
              </ContentTemplate>
              <Triggers>
              <asp:AsyncPostBackTrigger ControlID="BtnSelect" EventName="Click" /> 
              </Triggers>
              </asp:UpdatePanel>
              <asp:TextBox ID="ChkTxt" runat="server" CssClass="hidden" Text='<%# Eval("id") %>'></asp:TextBox>              
              </td>
            <td><%# Eval("Title")%></td>
            <td><%# Eval("Code")%></td>
            <td><%# Eval("PubBy")%></td>
            <td><%# Eval("Encrypt")%></td>
            <td><%# Eval("FileType")%></td>
            <td><%# Convert.ToInt32(Eval("IsOpenView"))==1?"是":"否"%></td>
            <td><%# Eval("PubDate","{0:yyyy-MM-dd}")%></td>            
          </tr>
         </ItemTemplate>
         </asp:Repeater>
         <tr>
          <td colspan="9" align="center">
            <asp:Button ID="BtnSelect" runat="server" Text="反选" onclick="BtnSelect_Click" />
            <asp:Button ID="BtnRun" runat="server" Text="借阅选中文件" onclick="BtnRun_Click" />
          </td>
         </tr>      
    </table>    
    
    <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" />
    
    </form>
</body>
</html>


