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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="China315" %>
<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<!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 rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

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

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnableScriptGlobalization="true" EnableScriptLocalization="true"
        runat="server">
    </asp:ScriptManager>
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTitle" runat="server" Text="邮件发送历史"></asp:Label></div>
            <div class="query">
                <table width="100%" cellpadding="0" cellspacing="1" border="0">
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="LocalizeTitle" runat="server" Text="邮件标题:"></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTitle" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTitle" runat="server"
                                ControlToValidate="TextBoxTitle" Display="Dynamic" ErrorMessage="最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td style="text-align: right;">
                            <asp:Localize ID="LocalizeState" runat="server" Text="发送状态:"></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListState" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="LocalizeSendObject" runat="server" Text="发送对象:"></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxSendObject" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxSendObject"
                                runat="server" ControlToValidate="TextBoxSendObject" Display="Dynamic" ErrorMessage="最多50个字符"
                                ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td style="text-align: right;">
                            <asp:Localize ID="LocalizeReplyTime" runat="server" Text="发送时间:"></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTime1" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="imgCalendarSReplyTime2" alt="" src="images/Calendar.png" style="width: 16px;
                                height:18px; position:relative; top:4px" /><China315:CalendarExtender ID="CalendarExtender4" runat="server"
                                    TargetControlID="TextBoxTime1" PopupButtonID="imgCalendarSReplyTime2" CssClass="ajax__calendar" /><asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTime1" runat="server"
                                ControlToValidate="TextBoxTime1" 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:TextBox ID="TextBoxTime2" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="imgCalendarSReplyTime3" alt="" src="images/Calendar.png" style="width: 16px;
                                height:18px; position:relative; top:4px" /><China315:CalendarExtender ID="CalendarExtender1" runat="server"
                                    TargetControlID="TextBoxTime2" PopupButtonID="imgCalendarSReplyTime3" CssClass="ajax__calendar" /><asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTime2" runat="server"
                                ControlToValidate="TextBoxTime2" 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>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeIsTime" runat="server" Text="是否定时发送:"></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsTime" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2">
                            <asp:Button ID="Button1" runat="server" Text="查询" CssClass="bnt1" />
                        </td>
                    </tr>
                </table></div>
                <cc1:GroupFlyGridView ID="GroupFlyGridViewDate" runat="server" AddSequenceColumn="False"
                    AllowMultiColumnSorting="False" AutoGenerateColumns="False" BorderColor="#CCDDEF"
                    CellPadding="0" Del="False" DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False"
                    GridViewSortDirection="Ascending" PagingStyle="None" TableName="" Width="100%"
                    AllowSorting="True" GridLines="None" CellSpacing="1" DataSourceID="ObjectDataSourceDate"
                    Style="margin-left: 0px;">
                    <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" value='<%# Eval("Guid") %>' type="checkbox" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="邮件标题" DataField="EmailTitle" />
                        <asp:TemplateField HeaderText="发送状态">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# ChangeState(Eval("State").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="发送时间" DataField="CreateTime" />
                        <asp:BoundField HeaderText="发送对象" DataField="SendObject" />
<%--                        <asp:TemplateField HeaderText="发送方式">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ChangeisTime(Eval("IsTime").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                    </Columns>
                </cc1:GroupFlyGridView>
            
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonSend" runat="server" OnClientClick="return EditButton()" CausesValidation="False"
            Text="重新发送" CssClass="bt3 cancel" OnClick="ButtonSend_Click" />
        <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" Text="删除" CssClass="bnt1 cancel"
            OnClick="ButtonDelete_Click1" OnClientClick="return DeleteButton()" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
        <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="SearchEmailGroupSend"
            TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_Email_Action" 
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBoxTitle" Name="emailtitle" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="TextBoxTime1" Name="strtime1" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="TextBoxTime2" Name="strtime2" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="TextBoxSendObject" Name="sendObjectEmail" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="DropDownListState" Name="state" PropertyName="SelectedValue"
                    Type="Int32" />
                <asp:ControlParameter ControlID="DropDownListIsTime" Name="istime" PropertyName="SelectedValue"
                    Type="Int32" />
                <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" 
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="HiddenFieldXmlPath" runat="server" />
        <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
        <asp:HiddenField ID="ProduceMemLoginID" runat ="server" Value ="0" />
    </div>
    </form>
</body>
</html>
