<%@ Page language="c#" Codebehind="OrderList.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.OrderList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
	<!--#include file="inc/head.inc"-->
	<title>OrderList</title>
		<script src="inc/ui.datepicker.cn.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="style/ui.datepicker.css" />
		<script type="text/javascript" src="inc/PageBar.js"></script>
		<script type="text/javascript" src="inc/OrderList.js"></script>
		<script type="text/javascript" src="inc/multi_popup.js"></script>
		<link type="text/css" rel="stylesheet" href="style/multi_popup.css" />
		<script type="text/javascript" src="inc/jquery.easydrag.handler.beta2.js"></script>
		<style type="text/css">
		    .c1 {width:2%}
		    .c2 {width:9%;text-align:center;}
		    .c3 {width:11%}
		    .c4 {width:5%}
		    .c5 {width:4%}
		    .c6 {width:4%}
		    .c7 {width:4%}
		    .c8 {width:4%}
		    .c9 {width:5%}
		    .c10 {width:5%}
		    .c11 {width:5%}
		    .c12 {width:5%}
		    .c13 {width:5%}
		    .c14 {width:7%}
		    .c15 {width:4%}
		    .c16 {width:3%}
		    .c17 {width:3%;text-align:left;}
		    .c18 {width:6%;}
		    .manager{display:none;}
		    .delete{display:none;}
		    .searchDetails { display:none;}
		    th{word-break: break-all; word-wrap:break-word;}
		    td{word-break: break-all; word-wrap:break-word;}
			table{table-layout: fixed;}
		</style>
		<script type="text/javascript">
		    var  CanExportOrder="<%=CanExportOrder %>";
		</script>
</HEAD>
<body>
	<div class="container">
	<div class="sub_container" style="background-color:#E9E9E9;">
	<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />订单管理  <asp:Label id="lblTitleInfo" runat="server"></asp:Label></div>
	<form id="Form1" method="post" runat="server">
	<div class="sub_container_operation">
	    <table cellSpacing="0" cellPadding="0" width="100%" align="center">
	        <tr>
	            <td>
	                <asp:button id="btnUpdateManagers" runat="server" Text="更新跟单员" CssClass="inputbtn hide"></asp:button>
					<asp:Button id="btnDelete" runat="server" Text="删除订单" CssClass="inputbtn hide"></asp:Button>
					<asp:Button id="bt_print" OnClick="bt_print_Click" runat="server" Text="打印订单" CssClass="inputbtn hide" Visible="false"></asp:Button>
					<asp:Button id="bt_ExportPart" onclick="bt_ExportPart_Click" runat="server" Text="导出勾选的订单" CssClass="inputbtn"></asp:Button>
					<asp:Button id="bt_Export" onclick="bt_Export_Click"  runat="server" Text="导出筛选订单" CssClass="inputbtn"></asp:Button>
	            </td>
	            <td style="vertical-align:top;">
	                <div style="position:relative; width:440px;">
	                    <div id="advContent" class="advContent" style=" border:none;">
                            <div id="frmAdvSearch" ><!--class="frmAdvSearch"-->
                                    <table class="sptable" cellspacing="0" cellpadding="0" style="margin-bottom:0px; width:100%;">
                                        <tr class="searchDetails">
								            <td align="center" style="width:33%">订单状态</td>
								            <td align="center" style="width:33%">配送方式</td>
								            <td align="center" style="width:33%">下订方式</td>
							            </tr>
							            <tr class="searchDetails">
							                <td align="center">
							                    <select id="selStatus" name='selStatus' size="5" class="searchvalue">
                                                    <option value="-1" selected="selected">状态不限</option>
                                                    <option value="0">未付款</option>
                                                    <option value="1">部分付款</option>
                                                    <option value="2">已付款</option>
                                                    <option value="3">已确认</option>
                                                    <option value="4">正在配货</option>
                                                    <option value="5">部分发货</option>
                                                    <option value="6">已发货</option>
                                                    <option value="7">已签收</option>
                                                    <option value="8">等待退款</option>
                                                    <option value="9">已退款</option>
                                                    <option value="10">交易取消</option>
                                                    <option value="11">交易失败</option>
                                                    <option value="12">交易完成</option>
                                                </select>
							                </td>
							                <td align="center">
							                    <select id="selShipType" name="selShipType" size="5" class="searchvalue"><%=GetShips() %></select>
							                </td>
							                <td align="center">
							                    <select id="selAddMethod" name="selAddMethod" size="5" class="searchvalue">
                                                    <option value="0" selected="selected">所有方式</option>
                                                    <option value="1">网上订单</option>
                                                    <option value="2">电话订单</option>
                                                </select>
							                </td>
							            </tr>
							            <tr class="searchDetails">
							                <td colspan="3">支付方式：<select id="ddlPayType" name="ddlPayType" class="searchvalue"><option value="">所有支付方式</option><%=GetPayment() %></select></td>
							            </tr>
							            <tr class="searchDetails">
							                <td colspan="3">收货地区：<select id="ddlTopAreas" name="ddlTopAreas" class="searchvalue"><%=GetSubArea(0)%></select></td>
							            </tr>
							            <tr class="searchDetails">
							                <td colspan="3">订单日期：从<input type="text" id="txtStartTime" name="txtStartTime" class="searchvalue" />到<input type="text" id="txtEndTime" name="txtEndTime" class="searchvalue" /></td>
							            </tr>
							            <tr>
                                            <td colspan="3">
                                                <select id="ddlKeyType" name="ddlKeyType" class="searchvalue">
                                                    <option value="1">订单号</option>
                                                    <option value="2">收货人姓名</option>
                                                    <option value="3">收货人电话</option>
                                                    <option value="4">商家名字</option>
                                                    <option value="5">商家ID</option>
                                                    
                                                </select>
                                                <input type="text" id="txtKeyword" name="txtKeyword" class="searchvalue" />
                                                <input type="button" id="btnSearch" value="搜索"class="inputbtn" />
                                                <input type="button" id="btnSearchAdv" value="高级搜索"class="inputbtn" />
                                                <input type="hidden" id="ustatus" name="ustatus" class="searchvalue" value='<%=Request.QueryString["ustatus"]%>' />
                                                <input type="hidden" id="adminID" name="adminID" class="searchvalue" value='<%=Request.QueryString["AdminMemberID"]%>' />
                                            </td>
                                        </tr>
                                    </table>
                            </div>
	                    </div>
	                </div>
	            </td>
	        </tr>
	    </table>
	    
	</div>
	<div class="sub_container_listhead" style="padding:0px;">
        <table cellSpacing="0" cellPadding="0" class="llist">
            <tr id="listhead"><%--id="listhead"不能少--%>
                <th class="c1"><input type="checkbox" id="chkAll" name="chkAll" /></th>
                <th class="c18">订单所属商家</th>
                <th class="c2 manager">跟单员</th>
                <th class="c3">单号</th>
                <th class="c4">下订时间</th>
                <th class="c5">货品总额</th>
                <th class="c6">运费</th>
                <th class="c7">总金额</th>
                <th class="c8">预付款</th>
                <th class="c9">还需付款</th>
                <th class="c10">配送方式</th>
                <th class="c11">支付类型</th>
                <th class="c12">购物会员</th>
                <th class="c13">收货人</th>
                <th class="c14">联系电话</th>
                <th class="c15">订单状态</th>
                <th class="c16">管理</th>
                <th class="c17 delete" style="text-align:left;">删除</th>
            </tr>
        </table>
    </div>
    <div class="sub_container_content" style="padding:0px;">  
        <table id="datas" cellSpacing="0" cellPadding="0" class="llist" style="text-align:center;word-break:break-all">
	        <tr id="template" style="display:none;"><%--id="template"不能少--%>
	            <td class="c1" id="CheckBox"></td>
	            <td class="c18" id="SupplierID"></td>
	            <td class="c2" id="Manager" style=" text-align:center;"></td>
	            <td class="c3" id="OrderNo" style="word-break:break-all;"></td>
	            <td class="c4" id="OrderTime"></td>
	            <td class="c5" id="ProductPrice"></td>
	            <td class="c6" id="ShipPrice"></td>
	            <td class="c7" id="TotalPrice"></td>
	            <td class="c8" id="AdvancePayment"></td>
	            <td class="c9" id="NeedPay"></td>
	            <td class="c10" id="ShippingType"></td>
	            <td class="c11" id="PayType"></td>
	            <td class="c12" id="MemberName"></td>
	            <td class="c13" id="ReceiverName"></td>
	            <td class="c14" id="ReceiverPhone"></td>
	            <td class="c15" id="Status"></td>
	            <td class="c16" id="Modify"></td>
	            <td class="c17" id="Delete"></td>
	        </tr>
        </table>
    </div>
    <!-- 翻页开始-->
    <div class="sub_container_page" id="pageDataList1_Pager"></div>
    <!-- 翻页结束-->
    
	</form>
	</div>
	</div>
	
	<div id="ShowOrderProduct" class="popupContact" style="z-index:2; width:800px;">
        <div id="ShowOrderProductHead" class="popupHead">
            <div class="popupTitle">订单详情</div>
            <div class="popupClose" id="ShowOrderProductClose" title="关闭">关闭</div>
            <div style="clear:both;"></div>
        </div>
        <div style=" padding:10px;">
            <table style="width:100%;" class="thinBorder">
                    <tr>
                        <td style="width:15%;">订单商品：</td>
                        <td style="width:85%;"><span id="span_Product"></span></td>
                    </tr>
            </table>
            <table style="width:100%;" class="thinBorder2">
                    <tr>
                        <td style="width:15%;"></td>
                        <td style="width:85%;"></td>
                    </tr>
            </table>
        </div>
    </div>
	
	<iframe id="frmModify" style="width:100%;height:0px;display:none" scrolling="no"></iframe>
	<input type="hidden" id="frmHeight" /><%--记录窗口高度--%>
</body>
</HTML>
