<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_ShippingAdvice_Manage, V5Shop.Shop.Category" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<!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 id="Head1" runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />

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

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

</head>
<body>
    <form id="form1" runat="server">
        <uc3:ManageHeader ID="ManageHeader1" runat="server" />
        <div>
            <div id="search">
                <div style="padding: 10px 20px; border: 1px #eeeeee solid; background: #f7f7f7">
                    <asp:Label ID="lblUserName" runat="server" Text="会员ID："></asp:Label><asp:TextBox ID="txtSendName" runat="server"></asp:TextBox>
                    <asp:Label ID="lblSendName" runat="server" Text="订购人："></asp:Label><asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                    <asp:Label ID="lblOrderNumber" runat="server" Text="订单号码："></asp:Label><asp:TextBox
                        ID="txtOrderNumber" runat="server"></asp:TextBox>
                    <asp:Label ID="lblSendTime" runat="server" Text="发货时间："></asp:Label><asp:TextBox ID="txtStartDate" runat="server" Width="80px"></asp:TextBox>
                    <img id="sltStart" src="images/calendar1.gif" title="打开日历" alt="打开日历" align="absmiddle" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtStartDate"
                        runat="server" ErrorMessage="日期格式不正确" ValidationExpression="^\d{4}-\d{2}-\d{2}$"
                        Display="Dynamic"></asp:RegularExpressionValidator>－<asp:TextBox ID="txtEndDate" runat="server" Width="80px"></asp:TextBox>
                    <img id="sltEnd" src="images/calendar1.gif" title="打开日历" alt="打开日历" align="absmiddle" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtEndDate"
                        runat="server" ErrorMessage="日期格式不正确" ValidationExpression="^\d{4}-\d{2}-\d{2}$"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                    <asp:Label ID="lblIsRead" runat="server"
                            Text="是否已读："></asp:Label><asp:DropDownList ID="ddlIsRead" runat="server">
                    </asp:DropDownList>
                    <asp:Label ID="lblIsShow" runat="server" Text="是否显示："></asp:Label><asp:DropDownList ID="ddlIsShow" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="button" OnClick="btnSearch_Click" />
                </div>
            </div>
            <div id="content">
                <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                    <input type="checkbox" id="CheckAllBox" onclick="CheckAll()" class="checkbox" />
                    全选
　
<asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
　
<asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click"
                        OnClientClick="return CheckEdit()"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
　
<asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click"
                        OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
　
<asp:LinkButton ID="btnShow" runat="server" ForeColor="#4B6888" OnClientClick="return CheckSelect()" OnClick="btnShow_Click"><img src="images/icon/key_show.gif" /> 显示</asp:LinkButton>
　
<asp:LinkButton ID="btnHidden" runat="server" ForeColor="#4B6888" OnClientClick="return CheckSelect()" OnClick="btnHidden_Click"><img src="images/icon/key_hermit.gif" /> 隐藏</asp:LinkButton>
                </div>
                <div class="listborder">
                    <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000"
                        EmptyDataText="没有查询到任何记录" TableName="ShippingAdvice" CacheName="ShippingAdvice"
                        PageSize="12" BorderWidth="0px" GridLines="None" Width="100%">
                        <Columns>
                            <asp:TemplateField>
                                <itemstyle horizontalalign="Center" width="3%" />
                                <itemtemplate>
                            <input runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
</itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ID" SortExpression="ID" ItemStyle-Width="6%">
                                <itemtemplate>
<asp:Label runat="server" Text='<%# Bind("ID") %>' id="ID"></asp:Label>
</itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="TrueName" HeaderText="订购人姓名" SortExpression="TrueName" />
                            <asp:BoundField DataField="OrderNumber" SortExpression="OrderNumber" HeaderText="订单号" />
                            <asp:BoundField DataField="ExpressCompany" SortExpression="ExpressCompany" HeaderText="快递公司名称" />
                            <asp:BoundField DataField="ExpressNumber" HeaderText="快递单号" SortExpression="ExpressNumber" />
                            <asp:TemplateField HeaderText="是否显示" SortExpression="IsShow">
                                <itemtemplate>
<asp:Label runat="server" Text='<%# FormatIsOut(DataBinder.Eval(Container,"DataItem(IsShow)","{0}")) %>' id="IsShow"></asp:Label>
</itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="是否已读" SortExpression="IsRead">
                                <itemtemplate>
<asp:Label runat="server" Text='<%# FormatIsOut(DataBinder.Eval(Container,"DataItem(IsRead)","{0}")) %>' id="IsRead"></asp:Label>
</itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="SendDate" HeaderText="发货时间" SortExpression="SendDate" />
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <HeaderStyle CssClass="category" ForeColor="Black" Height="18px" />
                    </V5Shop:V5ShopGridView>
                </div>
            </div>
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
                <script type="text/javascript">
        Calendar.setup({
	        inputField     :    "txtStartDate",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltStart",
	        align          :    "Br",
	        singleClick    :    true
        });
        Calendar.setup({
	        inputField     :    "txtEndDate",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltEnd",
	        align          :    "Br",
	        singleClick    :    true
        });
        </script>
    </form>
</body>
</html>
