<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Order_Order_Merge, V5Shop.Shop.Order" 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 id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <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> 
            <a href="Order_Order_Manage.aspx" title="返回订单管理列表">返回列表</a>
        </div>
    </div>
        <div id="search">
            <table width="100%" align="center" id="OperateTable" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="right" style="height: 25px" width="20%">
                        <asp:Label ID="lblSearch" runat="server" Text="用户名："></asp:Label></td>
                    <td style="height: 25px">
                        <asp:TextBox ID="txtSearchName" runat="server"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click"
                            Text="搜索用户" CausesValidation="False" />
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height: 25px" width="20%">
                        <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="选择用户" ImageURL="images/help.gif"
                            Text="请先搜索用户，然后在这里选择" />
                        <asp:Label ID="lblSelectUser" runat="server" Text="选择用户："></asp:Label></td>
                    <td style="width: 3px; height: 25px"><asp:DropDownList ID="ddlUserList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlUserList_SelectedIndexChanged">
                    </asp:DropDownList></td>
                </tr>
                <tr>
                    <td width="20%" align="right">
                        <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="合并订单" ImageURL="images/help.gif"
                            Text="合并订单只能和平同一个会员的订单，且不能合并已付款的订单。合并后的订单信息以主订单为主。如收货地址、配送支付方式、包装、贺卡等"/>
                        <asp:Label ID="lblToOrder" runat="server" Text="主订单："></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtToOrder" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtToOrder"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                        <asp:DropDownList ID="ddlToOrder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlToOrder_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right">
                        <asp:Label ID="lblFromOrder" runat="server" Text="从订单："></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtFromOrder" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFromOrder"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                        <asp:DropDownList ID="ddlFromOrder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlFromOrder_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height: 26px" width="20%">
                    </td>
                    <td style="height: 26px">
                        <asp:Button ID="btnMerge" runat="server" OnClick="btnMerge_Click" Text="合并" CssClass="button" /></td>
                </tr>
                <tr>
                    <td align="right" style="height: 35px" width="20%">
                    </td>
                    <td style="height: 35px">
                        <asp:Label ID="lblShowResult" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></td>
                </tr>
            </table>
        </div>
                <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
        </script>
        <uc1:PageBottom ID="PageBottom1" runat="server" />
    </form>
</body>
</html>
