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

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<!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></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.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/Calendar.js"></script>

    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>

    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【 发货通知添加 】"></asp:Label>
                <asp:Label ID="lblEdit" runat="server" Text="【 发货通知编辑 】" Visible="false"></asp:Label>
                <a href="Product_ShippingAdvice_Manage.aspx" title="返回发货通知管理列表">返回列表</a>
            </div>
        </div>
        <div>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <asp:Label ID="lblKeyWords" runat="server" Text="关键字："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:TextBox ID="txtKeyWords" runat="server" Width="300px"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click"
                            Text="搜索" CausesValidation="False" />
                        <asp:Label ID="lblShippingAdviceHelp1" runat="server" Text="可以是订单号、会员ID、订购人"></asp:Label></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <asp:Label ID="lblOrderNumber" runat="server" Text="订单号："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:DropDownList ID="ddlOrderNumber" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlOrderNumber_SelectedIndexChanged" Width="150px">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <asp:Label ID="lblUserName" runat="server" Text="会员ID："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:TextBox ID="txtUserName" runat="server" Enabled="False" Width="200px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <asp:Label ID="lblSendName" runat="server" Text="订购人："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:TextBox ID="txtSendName" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtSendName"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="快递公司" ImageURL="images/help.gif"
                            Text="如：EMS，申通等。方便客户到网站查询相关信息" />
                        <asp:Label ID="lblExpressCompany" runat="server" Text="快递公司："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:TextBox ID="txtExpressCompany" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtExpressNumber"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="快递单号" ImageURL="images/help.gif"
                            Text="客户可根据此单号查询当前快递的状态。" />
                        <asp:Label ID="lbltxtExpressNumber" runat="server" Text="快递单号："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:TextBox ID="txtExpressNumber" runat="server" Width="200px" MaxLength="50"></asp:TextBox>
                        *<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtSendName"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <asp:Label ID="lblDealTime" runat="server" Text="发货时间："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:TextBox ID="txtSendDate" runat="server" Width="200px" Height="17px"></asp:TextBox>
                        <img id="sltStart" src="images/calendar1.gif" title="打开日历" alt="打开日历" align="absmiddle" />
                        *<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtSendDate"
                        runat="server" ErrorMessage="日期格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSendDate"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="是否显示" ImageURL="images/help.gif"
                            Text="如果不选择此项，则不会在前台发货通知模块。" />
                        <asp:Label ID="lblIsShow" runat="server" Text="是否显示："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:CheckBox ID="cbIsShow" runat="server" CssClass="checkboxaspx" Text="显示" Checked="True" /></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <asp:Label ID="lblRemark" runat="server" Text="备注："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:TextBox ID="txtRemark" runat="server" Height="50px" TextMode="MultiLine"
                            Width="300px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtRemark"
                            Display="Dynamic" ErrorMessage="长度必须在250字以内" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px">
                        <cc1:HelpCtrl ID="HelpCtrl4" runat="server" FontColor="red" Header="邮件通知" ImageURL="images/help.gif"
                            Text="如果选择此项，将会发送邮件通知客户。" />
                        <asp:Label ID="lblEmailNotice" runat="server" Text="是否发送邮件通知："></asp:Label></td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                        <asp:CheckBox ID="cbEmailNotice" runat="server" Text="是" /></td>
                </tr>
                <tr>
                    <td height="30" align="right" bgcolor="#FFFFFF" style="width: 20%">
                    </td>
                    <td bgcolor="#FFFFFF" align="left">
                        <asp:Button ID="btnAdd" runat="server" CssClass="button" OnClick="btnAdd_Click" Text="添加" />
                        <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" CssClass="button" Visible="False" />
                        <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                        <input id="Button1" runat="server" type="button" value="返回列表" onclick="window.location.href='Product_ShippingAdvice_Manage.aspx'"
                            class="button" />
                    </td>
                </tr>
            </table>

            <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
            Calendar.setup({
	            inputField     :    "txtSendDate",
	            ifFormat       :    "%Y-%m-%d", 
	            button         :    "sltStart",
	            align          :    "Br",
	            singleClick    :    true
            });
        </script>

        </div>
        <uc1:PageBottom ID="PageBottom1" runat="server" />
    </form>
</body>
</html>
