<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Failure.aspx.cs" Inherits="SWTraining.SMS.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:BoundField DataField="TargetNo" HeaderText = "手机号" />
                                    <asp:BoundField DataField="Content" HeaderText = "内容" />
                                    <asp:BoundField DataField="DateAndTime" 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="divpanel" style="text-align:left">
        <asp:Button ID="btnClear" runat="server" onclick="btnClear_Click" Text = "全部清空" />
    &nbsp;<asp:Button ID="btnRetry" runat="server" onclick="btnRetry_Click" 
            Text = "全部重试" />
    </div>
    </form>
</body>
</html>
