<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Web25_RoomState_YD.aspx.cs" Inherits="Web25175_Hotel2.Web.Web25_RoomState_YD" %>

<!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>
    <script language="javascript" src="js/Web25175_Hotel2.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/Web25175_Hotel2.calendar.js" type="text/javascript"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rt
{
   width:400px;
    background-color: #CCCCCC;
    border: 1px solid #333333;
   padding:2px;
   position:absolute;
   top:42px;
   left:350px;
}
.rt table
{
	border-collapse:collapse;
    border: 1px solid #333333;
}
.rt .yh td
{
      background-color: #2E70A4;
      color:#ffffff;
    border: 1px solid #17486E;
}
.rt table td
{
    border: 1px solid #333333;
    line-height:18px;
    height:18px;
    padding:2px;
 background-color: #F7F7F7;
}
</style>
</head>
<body>
    <form id="form1" runat="server">
<asp:HiddenField ID="HFID" runat="server" />
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblInsert" runat="server" Text="预订"></asp:Label>
            </div>
        </div>
        <table class="OperateTable">
            <tr class="FFtr">
                <td class="left">房间号：</td>
                <td>
                   <asp:TextBox ID="txtRoomCode" runat="server" CssClass="textbox"></asp:TextBox>
                   <font color=red>*</font>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidatorRoomCode1" runat="server" ControlToValidate="txtRoomCode" ErrorMessage="请填写：房间号" Display="None"></asp:RequiredFieldValidator>


                </td>
            </tr>
            <tr class="F7tr">
                <td class="left">房间类型：</td>
                <td>
                   <asp:TextBox ID="txtRoomType" runat="server" CssClass="textbox"></asp:TextBox>
                   
                </td>
            </tr>
            <tr class="FFtr">
                <td class="left">姓名：</td>
                <td>
                   <asp:TextBox ID="txtName" runat="server" CssClass="textbox"></asp:TextBox>
                   <font color=red>*</font>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidatorName1" runat="server" ControlToValidate="txtName" ErrorMessage="请填写：姓名" Display="None"></asp:RequiredFieldValidator>


                </td>
            </tr>
            <tr class="F7tr">
                <td class="left">电话：</td>
                <td>
                   <asp:TextBox ID="txtTel" runat="server" CssClass="textbox"></asp:TextBox>
                   <font color=red>*</font>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidatorTel1" runat="server" ControlToValidate="txtTel" ErrorMessage="请填写：电话" Display="None"></asp:RequiredFieldValidator>


                </td>
            </tr>
            <tr class="FFtr">
                <td class="left">预抵时间：</td>
                <td>
                   <asp:TextBox ID="txtInTime" runat="server" CssClass="textbox" AutoPostBack="True" OnTextChanged="txtInTime_TextChanged"></asp:TextBox>
                   <font color=red>*</font>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidatorInTime1" runat="server" ControlToValidate="txtInTime" ErrorMessage="请填写：预抵时间" Display="None"></asp:RequiredFieldValidator>


                </td>
            </tr>
            <tr class="F7tr">
                <td class="left">预离时间：</td>
                <td>
                   <asp:TextBox ID="txtLeaveTime" runat="server" CssClass="textbox"></asp:TextBox>
                   <font color=red>*</font>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidatorLeaveTime1" runat="server" ControlToValidate="txtLeaveTime" ErrorMessage="请填写：预离时间" Display="None"></asp:RequiredFieldValidator>


                </td>
            </tr>
            <tr class="FFtr">
                <td class="left">保留时间：</td>
                <td>
                   <asp:TextBox ID="txtSaveTime" runat="server" CssClass="textbox"></asp:TextBox>
                   <font color=red>*</font>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidatorSaveTime1" runat="server" ControlToValidate="txtSaveTime" ErrorMessage="请填写：保留时间" Display="None"></asp:RequiredFieldValidator>


                </td>
            </tr>
        </table>
        <div class="rt">
          已预订： <asp:Label ID="lblRoomCode" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>&nbsp;
            的宾客
         <div>
         <div style="position:relative; height:23px; overflow:hidden">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="yh">
          <tr>
            <td style="width:80px;">姓名</td>
            <td style="width:150px;">预抵时间</td>
            <td>联系电话</td>
          </tr>
        </table>
        </div>
        <div style="overflow:auto; height:138px; padding-top:1px;position:relative; top:-2px">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <asp:Repeater ID="rpt_order" runat="server">
          <ItemTemplate>
          <tr>
            <td style="width:80px"><%#Eval("Name") %></td>
            <td style="width:150px"><%#Eval("InTime") %></td>
            <td><%#Eval("Tel") %></td>
          </tr>
          </ItemTemplate>
         </asp:Repeater>
         <% if(this.rpt_order.Items.Count==0) {%>
          <tr>
            <td colspan="3" style="text-align:center">无</td>
          </tr>
         <%} %>
        </table>
        </div>
         </div>
        </div>
        <table id="OperateButton">
            <tr>
                <td class="left">
                    </td>
                <td style="width: auto; text-align: left;">
                    <asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" Text="确定" CssClass="btn" />
                    <asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="关闭" CssClass="btn" ValidationGroup="B" /></td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />
    </form>
    <script type="text/javascript">
    uiReady(function() {
//        uiCalendar_Setup("txtInTime","yyyy-MM-dd HH:mm:ss");
//        uiCalendar_Setup("txtLeaveTime","yyyy-MM-dd HH:mm:ss");
//        uiCalendar_Setup("txtSaveTime","yyyy-MM-dd HH:mm:ss");

    })
    </script>
</body>
</html>
