<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sys_Sending.aspx.cs" Inherits="MTCUN.SMS.sys_Sending"
    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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="divpanel">
        <table class="table" cellspacing="0">
            <tr>
                <th>
                    发送队列
                </th>
            </tr>
            <tr>
                <td style="padding: 20px; min-height: 25px; height: 25px">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick" Enabled="False">
                            </asp:Timer>
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="smsID"
                                CssClass="smallgridview">
                                <Columns>
                                    <asp:BoundField DataField="smsID" HeaderText="短信编号" ReadOnly="True" />
                                    <asp:BoundField DataField="ClientName" HeaderText="接收者" />
                                    <asp:TemplateField HeaderText="手机号">
                                        <ItemTemplate>
                                            <%# ShowSMSGroup((string)Eval("TargetNo"))%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Content" HeaderText="内容" />
                                    <asp:BoundField DataField="DateAndTime" HeaderText="时间" />
                                    <asp:BoundField DataField="Errors" HeaderText="失败次数" />
                                    <asp:BoundField DataField="SchoolID" HeaderText="校区" />
                                    <asp:BoundField DataField="TrueName" HeaderText="发送者" />
                                    <asp:TemplateField HeaderText="类型">
                                        <ItemTemplate>
                                            <%# ShowMsgType((int)Eval("App")) %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                    <div style="float: left">
                        <label class="lab_button">
                            <asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="清空队列" />
                        </label>
                        <asp:CheckBox ID="cbxShowApp" runat="server" AutoPostBack="True" OnCheckedChanged="cbxAutoRefresh_CheckedChanged"
                            Text="显示App消息" Visible="False" />
                        <asp:CheckBox ID="cbxAutoRefresh" runat="server" AutoPostBack="True" OnCheckedChanged="cbxAutoRefresh_CheckedChanged"
                            Text="自动刷新" />
                    </div>
                    <div style="float: right">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                            <ContentTemplate>
                                <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <div style="clear: both; font-size: 0px; height: 0px; line-height: 0px">
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
