<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="View.aspx.cs" Inherits="TotCms.Web.Office.Wf.View" %>
<%@ 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">
    <div id="right_dqwz">工作流管理</div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic">分类：<asp:DropDownList ID="ddClass" runat="server">
          <asp:ListItem Value="0">请选择</asp:ListItem>
          <asp:ListItem Value="0">普通流程</asp:ListItem>
          <asp:ListItem Value="39">档案借阅</asp:ListItem>
          <asp:ListItem Value="45">发文流程</asp:ListItem>
          <asp:ListItem Value="71">登文流程</asp:ListItem>
          </asp:DropDownList>
          状态：<asp:DropDownList ID="ddStatus" runat="server">
            <asp:ListItem Value="0">请选择</asp:ListItem>
            <asp:ListItem Value="1">待办</asp:ListItem>
            <asp:ListItem Value="2">在办</asp:ListItem>
            <asp:ListItem Value="3">已办</asp:ListItem>
            <asp:ListItem Value="4">退回</asp:ListItem>
          </asp:DropDownList>
          关键字：<asp:TextBox ID="tbTitle" runat="server"></asp:TextBox>
          <asp:Button ID="search" runat="server" onclick="search_Click" Text="查询" />
        </td>
      </tr>   
    </table>
    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items"
        onselectedindexchanged="lvList_SelectedIndexChanged" 
        onitemcommand="lvList_ItemCommand" 
      onitemdatabound="lvList_ItemDataBound" DataKeyNames="id">
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>名称</td>
              <td>发起人</td>
              <td>发起日期</td>
              <td>状态</td>
              <td>执行至</td>
              <td>完成日期</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>   
        <ItemTemplate>
            <tr class="lines" onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#f5f5f5';">
            <td style="text-align:left; padding-left:5px;"><a href='<%#GetReplyLinkStr(Eval("ModuleId")) %>?id=<%# Eval("id")%>'><%# Eval("Title")%></a></td>
            <td><%# Eval("UserName")%></td>
            <td><%# Eval("PubDate")%></td>
            <td><%# GetStatus(Eval("RunStatus"))%></td>
            <td><%# Eval("CurrentStep")%></td>
            <td><%# Eval("CompleteDate") %></td>
            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            暂时没有数据.
        </EmptyDataTemplate>       
    </asp:ListView>
    
    <div class="pages">
      <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" /></div>
    </form>
</body>
</html>

