<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="TotCms.Web.Office.Archives.Manage" %>
<%@ 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 class="topic"><a href="Add.aspx">+添加档案</a>
        文号：<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>   
      <tr>
        
        <td height="25">分类：
        <asp:Repeater ID="rpClass" runat="server">
        <ItemTemplate>
          <a href='Manage.aspx?classid=<%# Eval("id") %>'><%# Eval("Title") %></a>
        </ItemTemplate>
        </asp:Repeater>
        </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>
              <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><a href='Show.aspx?id=<%# Eval("id")%>'><%# Eval("Title")%></a></td>
            <td><%# Eval("Code")%></td>
            <td><%# Eval("PubBy")%></td>
            <td><%# Eval("Encrypt")%></td>
            <td><%# Eval("FileType")%></td>
            <td><%# Convert.ToInt32(Eval("IsOpenView"))==0?"是":"否"%></td>
            <td><%# Eval("PubDate","{0:yyyy-MM-dd}")%></td>
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="edit" CommandArgument='<%# Eval("id") %>'>编辑</asp:LinkButton>
						|
						<asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="delete" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
            </td>
          </tr>
         </ItemTemplate>
         </asp:Repeater>
         <tr>
          <td colspan="9" align="center">
            <asp:Button ID="BtnSelect" runat="server" Text="反选" onclick="BtnSelect_Click" />
            <asp:DropDownList ID="BatRunType" runat="server">
            <asp:ListItem Text="选择操作" Value="" ></asp:ListItem>
            <asp:ListItem Text="批量公开" Value="open"></asp:ListItem>
            <asp:ListItem Text="取消公开" Value="unopen"></asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="BtnRun" runat="server" Text="执行操作" onclick="BtnRun_Click" OnClientClick="return confirm('确定执行吗?')" />
          </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>

