<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Task_Manage.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Task.Task_Manage" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" 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 runat="server">
    <title>任务管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>
    <link rel="stylesheet" type="text/css" href="../Style.css" />
    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="12000">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="4" width="100%" border="0" id="NavigationPath">
                <tr>
                    <td>
                        <img src="../../Images/arrow.gif" alt="" />
                        您现在的位置：&nbsp;
                        <asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                    <td>
                        &nbsp;<a href="Task_Add.aspx">添加任务</a>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                OnRowCommand="GV_List_RowCommand" OnRowDataBound="GV_List_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="TaskName" HeaderText="计划任务名称"></asp:BoundField>
                    <asp:BoundField DataField="TaskActiveName" HeaderText="执行方式">
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="LastRunTime" DataFormatString="{0:yy-MM-dd HH:mm:ss}"
                        HeaderText="上次执行时间" HtmlEncode="False">
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:ButtonField HeaderText="任务状态" CommandName="IsUsed" DataTextField="IsUsed">
                        <HeaderStyle Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                    <asp:HyperLinkField Text="修改" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Task_Add.aspx?ID={0}">
                        <HeaderStyle Width="40px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:HyperLinkField>
                    <asp:ButtonField Text="删除">
                        <HeaderStyle Width="40px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                    <asp:ButtonField Text="立即执行" Visible="False">
                        <HeaderStyle Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
