<%@ page language="C#" autoeventwireup="true" inherits="Admin_SendMessage_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="ShopNum1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ShopNum1" %>
<!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">
    <title>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True"
        EnableScriptLocalization="True" />
    <table width="100%" cellpadding="0">
        <tr>
            <td>
                <div class="navigator">
                    【 消息发件箱 】</div>
                <div class="query">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="20%" align="right">
                                消息标题：
                            </td>
                            <td width="27%">
                                <asp:TextBox ID="textBoxSTitle" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right" width="27%">
                                消息类型：
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownListSType" runat="server" CssClass="select1">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                发送人：
                            </td>
                            <td>
                                <asp:TextBox ID="textBoxSLoginID" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right">
                                读写状态：
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownListSIsRead" runat="server" CssClass="select1">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                接收会员：
                            </td>
                            <td>
                                <asp:TextBox ID="textBoxSMemLoginID" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                发送时间：
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="textBoxSSendTimeStart" runat="server" CssClass="input1"></asp:TextBox>
                                <img id="imgSendTimeStart" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                    align="absmiddle" />
                                <ShopNum1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="textBoxSSendTimeStart"
                                    PopupButtonID="imgSendTimeStart" CssClass="ajax__calendar">
                                </ShopNum1:CalendarExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorSSendTimeStart" runat="server"
                                    ControlToValidate="textBoxSSendTimeStart" Display="Dynamic" ErrorMessage="时间格式不正确"
                                    ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                                -<asp:Label ID="LabelName2" runat="server" Text="" Font-Bold="False"></asp:Label>
                                <asp:TextBox ID="textBoxSSendTimeEnd" runat="server" CssClass="input1"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorSSendTimeEnd" runat="server"
                                    ControlToValidate="textBoxSSendTimeEnd" Display="Dynamic" ErrorMessage="时间格式不正确"
                                    ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                                <img id="imgSendTimeEnd" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                    align="absmiddle" />
                                <ShopNum1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="textBoxSSendTimeEnd"
                                    PopupButtonID="imgSendTimeEnd" CssClass="ajax__calendar">
                                </ShopNum1:CalendarExtender>
                            </td>
                            <td>
                                <asp:Button ID="ButtonSearch" runat="server" OnClick="ButtonSearch_Click" Text="查询"
                                    CssClass="bt2" />&nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                &nbsp;
            </td>
        </tr>
    </table>
    <cc1:Num1GridView ID="Num1GridiewShow" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" Width="100%" AscendingImageUrl="~/images/SortAsc.gif"
        DescendingImageUrl="~/images/SortDesc.gif" Font-Size="Small" Font-Bold="False"
        AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF"
        BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？"
        Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
        Style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">
        <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
        </HeaderStyle>
        <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                </HeaderTemplate>
                <ItemTemplate>
                    <input id="checkboxItem" type="checkbox" value='<%# Eval("Guid") %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="Guid" HeaderText="GUID" SortExpression="Guid" Visible="False" />
            <asp:BoundField DataField="Title" HeaderText="消息标题" SortExpression="Title" />
            <asp:BoundField DataField="SendMemLoginID" HeaderText="发送人" SortExpression="SendMemLoginID">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="发送时间" DataField="CreateTime" SortExpression="CreateTime">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="ReceiveMemLoginID" HeaderText="接收会员" SortExpression="ReceiveMemLoginID">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>            
            <asp:BoundField HeaderText="消息类型" DataField="Type" SortExpression="Type">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
        </Columns>
    </cc1:Num1GridView>
    <div class="vote">
        <asp:Button ID="ButtonAdd" runat="server" OnClick="ButtonAdd_Click" Text="添加短信"  CssClass="bt3" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
            OnClick="ButtonDelete_Click" CssClass="bt2" />
        <asp:Button ID="ButtonDetail" runat="server"  
            Text="查看详细" OnClientClick="return EditButton()"
            CssClass="bt3" onclick="ButtonDetail_Click" />
        <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="SearchSend"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_MessageInfo_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxSMemLoginID" Name="receiveMemLoginID" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="DropDownListSIsRead" Name="isRead" PropertyName="SelectedValue"
                Type="String" />
            <asp:ControlParameter ControlID="textBoxSTitle" Name="title" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="RegularExpressionValidatorSSendTimeStart" Name="createTime1"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="RegularExpressionValidatorSSendTimeEnd" Name="createTime2"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="DropDownListSType" Name="receiveMemType" PropertyName="SelectedValue"
                Type="String" />
            <asp:ControlParameter ControlID="textBoxSLoginID" Name="sendMemLoginID" PropertyName="Text"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
