<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_LineOrderEdit.aspx.vb" Inherits="TourEx.Web.Admin_LineOrderEdit" %>
<%@ Import Namespace="TourEx.BLL" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题页</title>
<link rel="stylesheet" type="text/css" href="Css/Style.css"/>
<script language="javascript" src="../Sys/Js/jquery.js"></script>
</head>
<body>
<ul class="navLocation">
	<li>您当前位置：<a href="Admin_Main.aspx">首页</a> &gt; <a href="Admin_LineList.aspx">度假管理</a> &gt; 度假订单</li>
</ul>
<form runat="server" id="TourExForm" onsubmit="return checkform();">
<div class="infoBox">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="infoBoxTd">度假线路名称：</td>
		<td>
            <asp:Label ID="O_LineName" runat="server" Text=""></asp:Label> × <asp:Label ID="O_Quantity" runat="server" Text=""></asp:Label>人
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">预订会员：</td>
		<td>
            <asp:Label ID="O_UserName" runat="server" Text=""></asp:Label>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">度假时间：</td>
		<td>
            <asp:Label ID="O_StartDate" runat="server" Text=""></asp:Label>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">联系方式：</td>
		<td>
            联系人：<asp:Label ID="O_Contact" runat="server" Text=""></asp:Label> / 手机：<asp:Label ID="O_Mobile" runat="server" Text=""></asp:Label> / E-Mail：<asp:Label ID="O_Email" runat="server" Text=""></asp:Label>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">游客名单：</td>
		<td>
            <asp:Label ID="O_Visitor" runat="server" Text=""></asp:Label>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">其它要求：</td>
		<td>
            <asp:Label ID="O_Text" runat="server" Text=""></asp:Label>&nbsp;
		</td>
	</tr>
	 <tr>
		<td class="infoBoxTd">总金额：</td>
		<td style="font-family:Arial, Helvetica, sans-serif;color:red;font-weight:700;">
            ¥<asp:Label ID="O_FeesCount" runat="server" Text=""></asp:Label>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd"><%=WebCache.Sys.Read("WebSet")(15)%>总计：</td>
		<td style="font-family:Arial, Helvetica, sans-serif;color:red;font-weight:700;">
            ¥<asp:Label ID="O_BonusCount" runat="server" Text=""></asp:Label>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">订单状态：</td>
		<td>
            <asp:RadioButtonList ID="O_Mark" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem Value="0" Text="处理中"></asp:ListItem>
            <asp:ListItem Value="1" Text="已取消"></asp:ListItem>
            <asp:ListItem Value="2" Text="已处理(待出团)"></asp:ListItem>
            <asp:ListItem Value="3" Text="已出团(待点评)"></asp:ListItem>
            </asp:RadioButtonList>
            <asp:Label ID="MarkStr" runat="server" Text=""></asp:Label>
            <asp:HyperLink ID="ReviewsLink" runat="server"></asp:HyperLink>
		</td>
	</tr>
	<tr id="CancelReasonContainer" style="display:none">
		<td class="infoBoxTd">取消原因：</td>
		<td>
            <asp:TextBox ID="O_CancelReason" runat="server"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd"></td>
		<td>
            <asp:Button ID="Button1" runat="server" Text="确定" CssClass="formInput01" />
		</td>
	</tr>
</table>
</div>
</form>
<script type="text/javascript">
var tmp='',tmp2,tmp1;
tmp1=$('#O_Visitor').html().split('|');
for(var i=0;i<tmp1.length;i++)
{
    tmp2=tmp1[i].split(',');
    if(tmp2[2]=='')tmp2[2]='儿童无证件';
    tmp +='第'+(i+1)+'位游客<br />'
    +' 姓名：'+tmp2[0]
    +' 性别：'+tmp2[1]
    +' 身份证：'+tmp2[2];
}
$('#O_Visitor').html(tmp);
function checkform()
{
    if($('input[name^="O_Mark"]').length>0)
    {
        if($('input[name^="O_Mark"]:checked').val()==1 && $('#O_CancelReason').val()=='')
        {
            alert('请填写取消原因！');return false;
        }
        return true;
    }
}
if($('input[name^="O_Mark"]').length>0)
{
    if($('input[name^="O_Mark"]:checked').val()==1) $('#CancelReasonContainer').show();
    $('input[name^="O_Mark"]').click(function(){
        if($(this).val()==1)
        {
            $('#CancelReasonContainer').show();
        }else{
            $('#CancelReasonContainer').hide();
        }
    
    });
}
</script>
</body>
</html>
