<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sys_SendEvent.aspx.cs"
    Inherits="SWTraining.SMS.sys_SendEvent" 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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="divpanel">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridview"
            DataKeyNames="SendEventID" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing"
            OnRowUpdating="GridView1_RowUpdating" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:BoundField DataField="SendEventID" HeaderText="事件编号" ReadOnly="true" />
                <asp:BoundField DataField="SendEventName" HeaderText="事件名称" />
                <asp:TemplateField HeaderText="发送短信">
                    <ItemTemplate>
                        <%# Rs.Items.GetYN((int)Eval("LockState"))%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:DropDownList runat="server" ID="ddlLockState" SelectedIndex='<%# Eval("LockState") %>'>
                            <asp:ListItem Value="0" Text="否"></asp:ListItem>
                            <asp:ListItem Value="1" Text="是"></asp:ListItem>
                        </asp:DropDownList>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="短信内容">
                    <ItemTemplate>
                        <asp:Label ID="labContent" runat="server" Text='<%# Eval("Content") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <div id="msg2" style="color: #676767">
                        </div>
                        <asp:TextBox ID="tbxContent" runat="server" Text='<%# Eval("Content") %>' TextMode="MultiLine"
                            Height="100px" Width="180px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DelayMinute" HeaderText="延时发送（分钟）" />
                <asp:CommandField HeaderText="编辑" EditText="编辑" CancelText="取消" UpdateText="更新" ShowEditButton="true" />
            </Columns>
        </asp:GridView>
    </div>
    <div class="divpanel">
        <b>注意事项：</b><br />
        1、所有事件内容中都支持如下变量：<b>{学号}{姓名}{手机}{日期时间}{日期}{时间}</b>。<br />
        2、事件4，同时支持如下变量：<b>{班号}{班级名称}{讲师}{开班日期}</b>。<br />
        3、事件5，同时支持如下变量：<b>{付款方式}{类型}{金额}</b>。<br />
        4、注意，使用变量值时不要使短信内容超出70字符，变成多条。<br />
    </div>
    </form>
</body>
</html>
