<%@ Register TagPrefix="uc1" TagName="Top" Src="Top.ascx" %>
<%@ Page language="c#" Codebehind="House.aspx.cs" AutoEventWireup="false" validateRequest="false" Inherits="TourOnline.BgManage.Orders.House" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>zd_hy</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../Admin_Style.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../js/public.js"></script>
		<script language="javascript">
			function ChuLiOrder(strOIds)
			{
				var obj = new Object();
				var k = window.showModalDialog('AirplaneChuLi.aspx?OIds=' + strOIds,obj,'dialogHeight:270px;dialogWidth:430px;help:no;status:no');
				if(k != null)
				{
					document.location.reload();
				}
			}
			function PLChuLi()
			{
				var strOIds = "";
				for(var i=0;i<document.Form1.checkSelected.length;i++)
				{
					if(document.Form1.checkSelected[i].checked)
					{
						strOIds += document.Form1.checkSelected[i].value + ",";
					}
				}
				if(strOIds == "")
				{
					alert("请选择订单");
					return false;
				}
				else
				{
					 ChuLiOrder(strOIds);
				}
				
			}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="0">
				<TR class="topbg">
					<TD align="center" height="22"><FONT style="FONT-WEIGHT: bold" face="宋体">订单管理---家庭宾馆订单</FONT>
						</FONT></TD>
				</TR>
				<TR>
					<TD class="tdbg" height="30">
						<uc1:Top id="Top1" runat="server"></uc1:Top></TD>
				</TR>
				<TR>
					<TD align="left"><b>订单选项：</b>
						<asp:radiobuttonlist id="rblOpt" runat="server" CellPadding="0" AutoPostBack="True" RepeatLayout="Flow"
							CellSpacing="0" RepeatDirection="Horizontal">
							<asp:ListItem Value="all">所有订单</asp:ListItem>
							<asp:ListItem Value="0" Selected="True">未处理的订单</asp:ListItem>
							<asp:ListItem Value="1">已处理的订单</asp:ListItem>
							<asp:ListItem Value="2">已作废的订单</asp:ListItem>
						</asp:radiobuttonlist><STRONG>&nbsp;&nbsp;</STRONG></TD>
				</TR>
				<TR>
					<TD class="tdbg" height="1">
						<hr width="100%" color="#0650d2" SIZE="1">
					</TD>
				</TR>
				<TR>
					<TD align="left"><asp:datalist id="dlstHotel" runat="server" BorderWidth="0" CellPadding="0" DataKeyField="OId"
							Width="100%" BorderStyle="None" cellspacing="0" ShowFooter="False">
							<HeaderTemplate>
								<TABLE cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
									<TR class='title' height="22">
										<TD align="center" width="5%"><STRONG>选中</STRONG></TD>
										<TD align="center" width="10%"><STRONG>姓名</STRONG></TD>
										<TD align="center" width="15%"><STRONG>联系电话</STRONG></TD>
										<TD align="center" width="18%"><STRONG>预订家庭宾馆</STRONG></TD>
										<TD align="center" width="15%"><STRONG>所在地区</STRONG></TD>
										<TD align="center" width="7%"><STRONG>入住人数</STRONG></TD>
										<TD align="center" width="10%"><STRONG>价格</STRONG></TD>
										<TD align="center" width="10%"><STRONG>入住时间</STRONG></TD>
										<TD align="center" width="10%"><STRONG>离店时间</STRONG></TD>
									</TR>
								</TABLE>
							</HeaderTemplate>
							<ItemTemplate>
								<TABLE class=hand title='点击处理订单或查看处理结果。<%Response.Write("\n");%>此客户的网络联系方式：QQ:<%# DataBinder.Eval(Container, "DataItem.OQQ") %>；MSN：<%# DataBinder.Eval(Container, "DataItem.OMSN") %> ；E-mail：<%# DataBinder.Eval(Container, "DataItem.OMail") %><%Response.Write("\n");%>客户提交订单日期：<%# DataBinder.Eval(Container, "DataItem.OTime") %>' cellSpacing=1 cellPadding=0 width="100%" align=center border=0>
									<TR class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'"
										height="27">
										<TD align="center" width="5%"><INPUT onclick=javascript:QuanXuan_Check(document.Form1.chkSelectedAll,document.Form1.checkSelected) type=checkbox value='<%# DataBinder.Eval(Container.DataItem, "OId") %>' name=checkSelected>
										</TD>
										<TD align="center" width="10%" style="WORD-BREAK: break-all" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OFirstName") %>'>
											</asp:Label></TD>
										<TD align="center" width="15%" style="WORD-BREAK: break-all" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label3 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OTel") %>'>
											</asp:Label></TD>
										<TD align="center" width="18%" style="WORD-BREAK: break-all" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label4 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.HiName") %>'>
											</asp:Label></TD>
										<TD align="center" width="15%" style="WORD-BREAK: break-all" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label5 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CyId") %>'>
											</asp:Label>
											<asp:Label id=Label6 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PId") %>'>
											</asp:Label>
											<asp:Label id=Label8 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PdId") %>'>
											</asp:Label></TD>
										<TD align="center" width="7%" style="WORD-BREAK: break-all" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label9 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PeopleCount") %>'>
											</asp:Label></TD>
										<TD align="center" width="10%" style="WORD-BREAK: break-all" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label10 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.HiPrice") %>'>
											</asp:Label>
											<asp:Label id=Label11 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.HiMPrice") %>'>
											</asp:Label></TD>
										<TD align="center" width="10%" style="WORD-BREAK: break-all" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label12 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.StartDate") %>'>
											</asp:Label></TD>
										<TD align="center" width="10%" onclick='javascript:ChuLiOrder("<%# DataBinder.Eval(Container, "DataItem.OId") %>")'>
											<asp:Label id=Label13 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.EndDate") %>'>
											</asp:Label></TD>
									</TR>
								</TABLE>
							</ItemTemplate>
						</asp:datalist></TD>
				</TR>
				<TR>
					<TD class="tdbg" height="1">
						<hr width="100%" color="#0650d2" SIZE="1">
					</TD>
				</TR>
				<tr>
					<td><input onclick="javascript:JsCheckOn(this,document.Form1.checkSelected)" type="checkbox"
							name="chkSelectedAll">选中本页显示的所有订单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:button id="Button2" runat="server" CssClass="button" Text="批量作废订单"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:button id="Button3" runat="server" CssClass="button" Text="批量删除订单"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:button id="Button4" runat="server" CssClass="button" Text="批量处理订单"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:button id="Button5" runat="server" CssClass="button" Text="批量解除作废"></asp:button></td>
				</tr>
				<TR>
					<TD class="tdbg" height="1">
						<hr width="100%" color="#0650d2" SIZE="1">
					</TD>
				</TR>
				<tr>
					<td align="center"><asp:label id="Label2" runat="server"></asp:label><FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</FONT>
						<asp:linkbutton id="lbtnFirst" runat="server">首页</asp:linkbutton><FONT face="宋体">&nbsp;&nbsp;&nbsp;
						</FONT>
						<asp:linkbutton id="lbtnUp" runat="server">上一页</asp:linkbutton><FONT face="宋体">&nbsp;&nbsp;&nbsp;
						</FONT>
						<asp:linkbutton id="lbtnNext" runat="server">下一页</asp:linkbutton><FONT face="宋体">&nbsp;&nbsp;&nbsp;
						</FONT>
						<asp:linkbutton id="lbtnEnd" runat="server">末页</asp:linkbutton><FONT face="宋体">&nbsp; 
							跳转到第
							<asp:dropdownlist id="dropGotoPage" runat="server" AutoPostBack="True"></asp:dropdownlist>页</FONT>
					</td>
				</tr>
				<TR>
					<TD class="tdbg" height="1">
						<hr width="100%" color="#0650d2" SIZE="1">
					</TD>
				</TR>
				<TR>
					<TD align="left"><b>订单搜索：</b> <STRONG></STRONG>从
						<asp:textbox id="txtStartYear" runat="server" Width="32px" MaxLength="4"></asp:textbox>年
						<asp:textbox id="txtStartMonth" runat="server" Width="32px" MaxLength="2"></asp:textbox>月
						<asp:textbox id="txtStartDay" runat="server" Width="32px" MaxLength="2"></asp:textbox>日&nbsp;至 
						&nbsp;
						<asp:textbox id="txtEndYear" runat="server" Width="32px" MaxLength="4"></asp:textbox>年
						<asp:textbox id="txtEndMonth" runat="server" Width="32px" MaxLength="2"></asp:textbox>月
						<asp:textbox id="txtEndDay" runat="server" Width="32px" MaxLength="2"></asp:textbox>日<asp:button id="Button1" runat="server" CssClass="button" Text=" 搜 索 "></asp:button></TD>
				</TR>
				<TR>
					<TD class="tdbg" height="1">
						<hr width="100%" color="#0650d2" SIZE="1">
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
