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

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register src="../UC_AjaxLoading.ascx" tagname="UC_AjaxLoading" tagprefix="uc1" %>
<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link rel="stylesheet" type="text/css" href="../Style.css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <style type="text/css">
        .RowTitle
        {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True"
        EnableScriptLocalization="True">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%;" id="Tab1" class="TabelGrid">
                <tr>
                    <td class="RowTitle">
                        任务别名：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_TaskName" runat="server" Width="250px"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入任务别名" ControlToValidate="TB_TaskName"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        任务状态：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_IsUsed" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="1">正常</asp:ListItem>
                            <asp:ListItem Value="0">停用</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        插件DLL：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_DLLName" runat="server" Width="250px"></asp:TextBox>
                        &nbsp;区分大小写
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TB_DLLName"
                            ErrorMessage="请输入"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        插件方法名称：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_FullClassName" runat="server" Width="250px"></asp:TextBox>
                        &nbsp;区分大小写
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TB_FullClassName"
                            ErrorMessage="请输入"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        插件命令行：</td>
                    <td>
                        <asp:TextBox ID="TB_CommandLine" runat="server" Width="250px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        激活类型：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_TaskActive" runat="server" RepeatLayout="Flow" OnSelectedIndexChanged="RBL_TaskActive_SelectedIndexChanged"
                            AutoPostBack="True">
                            <asp:ListItem Value="1">一次</asp:ListItem>
                            <asp:ListItem Value="2">重复</asp:ListItem>
                            <asp:ListItem Value="3">每日</asp:ListItem>
                            <asp:ListItem Value="4" Selected="True">每周</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        激活条件：
                    </td>
                    <td>
                        <asp:Panel ID="Panel1" runat="server" Visible="False">
                            执行日期：<asp:TextBox ID="TB_RunDate" runat="server"></asp:TextBox>
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Admin/Images/Calendar_scheduleHS.png" />
                            <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="Image1"
                                TargetControlID="TB_RunDate">
                            </ajaxToolkit:CalendarExtender>
                            <br />
                            执行时间：<asp:TextBox ID="TB_RunTime" runat="server">06:00:00</asp:TextBox>
                            格式 23:59:00</asp:Panel>
                        <asp:Panel ID="Panel2" runat="server" Visible="False">
                            间隔时间（分）：<asp:TextBox ID="TB_IntervalMinute" runat="server" Width="39px">60</asp:TextBox>
                        </asp:Panel>
                        <asp:Panel ID="Panel3" runat="server" Visible="False">
                            执行时间：<asp:TextBox ID="TB_RunTime2" runat="server">06:00:00</asp:TextBox>
                            格式 23:59:00</asp:Panel>
                        <asp:Panel ID="Panel4" runat="server" Visible="True">
                            <asp:RadioButtonList ID="RBL_Week" runat="server" RepeatDirection="Horizontal">
                                <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:ListItem Value="5">星期五</asp:ListItem>
                                <asp:ListItem Value="6">星期六</asp:ListItem>
                                <asp:ListItem Value="7" Selected="True">星期天</asp:ListItem>
                            </asp:RadioButtonList>
                            执行时间：<asp:TextBox ID="TB_RunTime3" runat="server">06:00:00</asp:TextBox>
                            格式 23:59:00</asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        如何处理未执行任务：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_UnexecuteType" runat="server" RepeatLayout="Flow">
                            <asp:ListItem Value="1" Selected="True">延至下次预定时间</asp:ListItem>
                            <asp:ListItem Value="2">尽快执行</asp:ListItem>
                        </asp:RadioButtonList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择“如何处理未执行任务”"
                            ControlToValidate="RBL_UnexecuteType"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center;">
                        &nbsp; &nbsp;
                        <asp:Button ID="BT_OK" runat="server" CssClass="btn" Text="确定" OnClick="BT_OK_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
