<%@ Page Language="c#" CodeBehind="sys_SmsReceive.aspx.cs" AutoEventWireup="True"
    Inherits="SWTraining.SMS.sys_SmsReceive" Title="短信管理-已收短信" %>

<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ 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" method="post" runat="server">
    <div class="tool_Search">
        <label class="lab_buttom">
<asp:Button ID="btnDownSMS" runat="server" OnClick="btnDownSMS_Click" Text="手动下载回复短信" />
</label>
        &nbsp;<asp:Label ID="labMsg" runat="server" ForeColor="Red"></asp:Label>
    </div>
    <div class="both">
    </div>
    <div class="divpanel">
        <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
            DataKeyNames="SMSID" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting">
            <SelectedRowStyle CssClass="selected" />
            <Columns>
                <asp:TemplateField HeaderText="回复者编号">
                    <ItemTemplate>
                        <%#Eval("ClientID")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="回复者">
                    <ItemTemplate>
                        <%#Eval("ClientName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="手机号码">
                    <ItemTemplate>
                        <%#Eval("Mobile")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Msg" ReadOnly="True" HeaderText="内容" />
                <asp:BoundField DataField="RepTime" ReadOnly="True" HeaderText="回复时间" />
                <asp:BoundField DataField="TrueName" ReadOnly="True" HeaderText="接收者" />
                <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>
    </div>
    <div class="both">
    </div>
    <div class="backpanel">
        <label class="lab_buttom">
<input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
</label>
    </div>
    </form>
</body>
</html>
