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

<%@ 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">
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="Label1" runat="server" Text="邮件类型管理"></asp:Label></div>
            <div class="query">
                <table width="100%">
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeBoxTypeName" runat="server" Text="邮件分类名称: "></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTypeName" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTypeName" runat="server"
                                ControlToValidate="TextBoxTypeName" Display="Dynamic" ErrorMessage="最多50个字符"
                                ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td colspan="2">
                            <asp:Button ID="ButtonSearh" runat="server" Text="查询" CssClass="bnt1" />
                        </td>
                    </tr>
                </table>
            </div>
            <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" 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" DataSourceID="ObjectDataSourceDate" GridLines="None" CellSpacing="1"
                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="TypeName" />
                    <asp:BoundField HeaderText="邮件分类描述" DataField="Description" />
                </Columns>
            </cc1:GroupFlyGridView>
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonAdd" runat="server" Text="添加" CssClass="bnt1" OnClientClick="return GetCheckedBoxValues()"
            OnClick="ButtonAdd_Click" />
        <asp:Button ID="ButtonEdite" runat="server" Text="编辑" CssClass="bnt1 cancel" OnClientClick="return EditButton()"
            OnClick="ButtonEdite_Click" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" CssClass="bnt1 cancel" OnClientClick="return DeleteButton()"
            OnClick="ButtonDelete_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
        <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="Search"
            TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_EmailType_Action" OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBoxTypeName" Name="typename" PropertyName="Text"
                    Type="String" DefaultValue="" />
                <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
                <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" PropertyName="Value"
                    Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
        <asp:HiddenField ID="ProduceMemLoginID" runat="server" Value="0" />
    </div>
    </form>
</body>
</html>
