<%@ page language="C#" autoeventwireup="true" inherits="Admin_ReceiveMessage_List, ShopNum1Deploy" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ShopNum1" %>
<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" 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">
      <div>
    
   
    
    <table style="width:100%">
        <tr>
        <td style="width:100%" align="left">
        <div class="navigator">消息收件箱</div>
             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right" width="20%">发送会员：</td>
    <td><asp:TextBox ID="textBoxMemLoginID" runat="server" CssClass="input1"></asp:TextBox></td>
    <td align="right"> 读写状态：</td>
    <td><asp:DropDownList ID="DropDownListSIsRead" runat="server" CssClass="select1">
             </asp:DropDownList></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="right">接收人：</td>
    <td><asp:TextBox ID="textBoxLoginID" runat="server" CssClass="input1"></asp:TextBox></td>
    <td align="right">消息类型：</td>
    <td> <asp:DropDownList ID="DropDownListSType" runat="server" CssClass="select1">
             </asp:DropDownList></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="right">消息名称：</td>
    <td><asp:TextBox ID="textBoxSTitle" runat="server" CssClass="input1"></asp:TextBox></td>
    <td align="right">是否回复：</td>
    <td> <asp:DropDownList ID="DropDownListSIsReply" runat="server" CssClass="select1">
             </asp:DropDownList></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="right">发送时间：</td>
    <td  colspan="2">      <asp:TextBox ID="textBoxSSendTimeStart" runat="server" CssClass="input1"></asp:TextBox>
                         <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>
        <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
        EnableScriptGlobalization="True" EnableScriptLocalization="True">
             </ShopNum1:ToolkitScriptManager>
    <img id="imgCalendarStartTime" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" /><ShopNum1:CalendarExtender 
        ID="CalendarExtender1" runat="server" TargetControlID="textBoxSSendTimeStart" 
        PopupButtonID="imgCalendarStartTime" CssClass="ajax__calendar">
             </ShopNum1:CalendarExtender><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="imgCalendarEndTime" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" />
         <ShopNum1:CalendarExtender 
        ID="CalendarExtender2" runat="server" TargetControlID="textBoxSSendTimeEnd" 
        PopupButtonID="imgCalendarEndTime" CssClass="ajax__calendar">
             </ShopNum1:CalendarExtender></td>
    <td><asp:Button ID="ButtonSearch" runat="server" onclick="ButtonSearch_Click" 
                 Text="查询"  CssClass="bt2"/></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<br />
        </td>
        </tr>
          <tr>
        <td style="width:100%" align="left">
               
        <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" 
                onrowdatabound="Num1GridiewShow_RowDataBound">
<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="MemLoginID" HeaderText="发送会员" 
                    SortExpression="MemLoginID" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="发送时间" DataField="SendTime" 
                    SortExpression="SendTime" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="LoginID" HeaderText="接收人" 
                    SortExpression="LoginID" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Content" HeaderText="消息内容" 
                    SortExpression="Content" />
                <asp:TemplateField HeaderText="读写状态" SortExpression="IsRead">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# ChangeIsRead(DataBinder.Eval(Container, "DataItem(IsRead)","{0}")) %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="是否回复">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="ReplyTime" HeaderText="回复时间" 
                    SortExpression="ReplyTime" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
        </cc1:Num1GridView>
        </td>
        </tr>
          <tr>
        <td style="width:100%" align="left">
        <div class="vote">
           <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" Text="添加短信" 
            onclientclick="GetCheckedBoxValues()"  CssClass="bt3" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" 
            onclientclick="return DeleteButton()" 
            onclick="ButtonDelete_Click"  CssClass="bt2"/>
        <asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
                Text="查看|回复" onclientclick="return EditButton()"  CssClass="bt3" />
                     <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" /></div>
        </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="SearchReceive" TypeName="ShopNum1.BusinessLogic.ShopNum1_MessageInfo_Action" 
       >
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxLoginID" Name="loginID" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="textBoxMemLoginID" Name="memLoginID" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="textBoxSSendTimeStart" Name="startDate" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="textBoxSSendTimeEnd" Name="endDate" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="textBoxSTitle" Name="title" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="DropDownListSType" Name="type" 
                PropertyName="SelectedValue" Type="String" />
            <asp:ControlParameter ControlID="DropDownListSIsRead" Name="isRead" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="DropDownListSIsReply" Name="isReply" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:Parameter DefaultValue="" Name="isDelete" Type="Int32" />
        </SelectParameters>
        </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </div>
    </form>
</body>
</html>
