<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaskList.aspx.cs" Inherits="SWTraining.Task.TaskList" Title="已下达的任务" %>

<%@ Import Namespace="SWTraining" %>
<!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" OnRowDeleting="GridView1_RowDeleting" 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>
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="hlkEdit" Text="编辑" NavigateUrl='<%# string.Format("PostTask.aspx?TaskID={0}&GetUrl={1}",Eval("TaskID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div style="margin: 5px">
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    </form>
</body>
</html>
