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

<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ 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" method="post" runat="server">
        <div class="tool_Search">
            <label class="lab_button">
                <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:TemplateField HeaderText="回复">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divReply" runat="server">
                                <asp:HyperLink runat="server" ID="hlkReply" Text="回复" NavigateUrl='<%# string.Format("SendToReply.aspx?SMSID={0}&GetUrl={1}",Eval("SMSID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divDelete" runat="server">
                                <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                            </div>
                        </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_button">
                <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_button" id="__mt_labBack" runat="server">
                <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
            </label>
        </div>
    </form>
</body>
</html>
