<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DoTask.aspx.cs" Inherits="MTCUN.Task.DoTask" Title="待办任务/已办任务" %>

<%@ Import Namespace="MTCUN" %>
<!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 id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body style=" margin:0px; padding:0px">
    <form id="form1" runat="server"  style=" margin:0px; padding:0px">
        <div style="margin:5px">
            <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                DataKeyNames="TaskID" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="TaskID" ReadOnly="True" HeaderText="编号" />
                    <asp:TemplateField HeaderText="任务名称">
                        <ItemTemplate>
                            <div class="Task_ico" style="float: left">
                            </div>
                            <div style="float: left">
                                <asp:HyperLink ID="hlkTaskName" runat="server" Text='<%# swq.Tools.HtmlEncode(Eval("TaskName")) %>'
                                    NavigateUrl='<%# swq.JScript.OpenWin(string.Format("TaskShow.aspx?TaskID={0}",Eval("TaskID")),500,500,true) %>'></asp:HyperLink>
                            </div>
                            <div style="clear: both">
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="TrueName" HeaderText="发布者" />
                    <asp:BoundField DataField="DateAndTime" HeaderText="时间" />
                    <asp:BoundField DataField="ToTrueName" HeaderText="办理人" />
                    <asp:TemplateField HeaderText="完成情况">
                        <ItemTemplate>
                            <asp:HyperLink runat="server" ID="hlkState" Text='<%# Eval("StatusName")%>' NavigateUrl='<%# string.Format("TaskReply.aspx?TaskID={0}&GetUrl={1}", Eval("TaskID"), swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div style="margin:5px">
            <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
        </div>
    </form>
</body>
</html>
