<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sys_Failure.aspx.cs" Inherits="SWTraining.SMS.sys_Failure"
    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" CssClass="gridview" AutoGenerateColumns="False"
            DataKeyNames="smsID" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound"
            OnRowCommand="GridView1_RowCommand">
            <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="SchoolID" HeaderText="校区" />
                <asp:BoundField DataField="TrueName" HeaderText="发送者" />
                <asp:BoundField DataField="ErrorNum" HeaderText="错误码" />
                <asp:TemplateField HeaderText="重发">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbnRe" runat="server" Text="重发" CommandName="Re" CommandArgument='<%#Eval("smsID") %>'></asp:LinkButton>
                    </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 class="divpanel">
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    <div class="tool_Search">
        <label class="lab_buttom">
            <asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="全部清空" OnClientClick="return confirm('您确定要清除所有短信？');" />
        </label>
        <label class="lab_buttom">
            <asp:Button ID="btnRetry" runat="server" OnClick="btnRetry_Click" OnClientClick="return confirm('注意：只能激活48小时内的短信，有些已过时的短信可能被激活发送，\n您确定要重试失败短信吗？');"
                Text="全部重试" /></label>
    </div>
    <div class="both">
    </div>
    <div class="divremark">
        <b>注意事项：</b><br />
        1、失败短信错误码查询请<a href="http://www.mtcnsoft.com/sms.aspx" target="_blank">[点击]</a>。<br />
        <span style="color: #FF0000">2、进行“全部重试”操作时注意，只能激活48小时内的短信，有些已过时的短信可能被激活发送。</span><br />
        3、<img src="../images/sms_ico1.gif" />表示单条发送，一次仅发送给一个手机号码。<br />
        4、<img src="../images/sms_ico2.gif" />表示批量发送，一次发送给多个手机号码。<br />
    </div>
    </form>
</body>
</html>
