<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Web25_RoomConsume.aspx.cs" Inherits="Web25175_Hotel2.Web.Manage.Web25_RoomConsume" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>增加消费</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.tbs {
	border:1px #CCCCCC solid;
	border-collapse:collapse;
}
.tbs td {
	border:1px #CCCCCC solid;
}
.tbs th {
	border:1px #CCCCCC solid;
	line-height:30px;
	height:30px;
	background-color:#CCCCCC;
	text-align:center;
}
.tbs .div2 {
	line-height:30px;
	height:30px;
}
.tbs .div {
	}.div td {
	border:none;
}
option {
	line-height:18px;
	text-indent:2px;
	height:18px;
	padding-top:3px;
	padding-left:3px;
}
.gd th {
	background-color:#999999;
}
#inputPanel .txt {
	height:23px;
	line-height:23px;
	border:1px solid #999999;
	padding-left:3px;
	font-size:12px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
  <div id="error" runat="server" visible="false">
    <div style="padding:8px; border:1px green solid; line-height:30px; height:30px; background-color:#E3FDDB; font-size:14px;"> 无法获取宾客入住信息。 </div>
  </div>
  <div id="show" runat="server" visible="false" style="position:relative">
    <div id="inputPanel" runat="server" style="border:4px solid #cccccc; padding:8px; position:absolute; top:120px; background-color:#ffffff; height:100px; width:500px;left:40px" visible="false">
      <h3>自定义费用</h3>
      <div> 消费项目：
        <asp:Label ID="lblName" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
        &nbsp;
        消费金额：
        <asp:TextBox ID="txtAmount" runat="server" CssClass="txt" Width="80px" MaxLength="10"></asp:TextBox>
          <asp:HiddenField ID="txtRate" runat="server" Value="1" />
          &nbsp; &nbsp; &nbsp; &nbsp;
        <asp:Button ID="Button2" runat="server" Text="确定" CssClass="btn" OnClick="Button2_Click" />
        <asp:Button ID="Button3" runat="server" Text="取消" CssClass="btn" OnClick="Button3_Click"/>
      </div>
    </div>
    <asp:HiddenField ID="RoomInID" runat="server" />
    <table border="0" cellspacing="0" cellpadding="0" class="tbs" style="height: 304px; width:600px; table-layout:fixed">
      <tr>
        <th style="height: 29px; width: 206px;">项目消费</th>
        <th style="width: 57px; height: 29px;">&nbsp;</th>
        <th style="height: 29px; width: 244px;"> <asp:Label ID="lblRoomCode" runat="server" ForeColor="Red"></asp:Label>
          消费清单</th>
      </tr>
      <tr>
        <td valign="top" style="width: 206px" ><div class="div" style="overflow:auto; height:200px;">
            <asp:TreeView ID="TreeView1" runat="server"> </asp:TreeView>
          </div></td>
        <td style="width: 57px; vertical-align:middle" ><div>
            <asp:Button ID="btnAdd" runat="server" Text=">>" CssClass="btn" OnClick="btnAdd_Click" />
          </div>
          <div> &nbsp;</div></td>
        <td  valign="top" style="width: 244px" align="center"><div style="overflow:auto; height:300px;">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" CellPadding="0" ForeColor="Black"
            GridLines="Vertical" Height="63px" Width="269px" CssClass='gd'>
              <RowStyle BackColor="#FFE0C0" BorderStyle="Solid" Height="20px" />
              <Columns>
              <asp:TemplateField HeaderText="选">
                <ItemStyle Width="25px" />
                <ItemTemplate>
                  <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
              </asp:TemplateField>
              <asp:BoundField DataField="RoomCode" HeaderText="房间号">
                <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
              </asp:BoundField>
              <asp:BoundField DataField="Name" HeaderText="项目名称" />
              <asp:BoundField DataField="Number" HeaderText="消费数量">
                <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
              </asp:BoundField>
              <asp:BoundField DataField="Price" HeaderText="消费单价">
                <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
              </asp:BoundField>
              </Columns>
              <FooterStyle BackColor="#CCCC99" />
              <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
              <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
              <HeaderStyle BackColor="DimGray" Font-Bold="True" ForeColor="White" Height="25px" />
              <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
          </div></td>
      </tr>
    </table>
    <table id="OperateButton" style="width: 600px">
      <tr>
        <td colspan="2" style="width: 590px; padding-right:80px;" align="right"><asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" Text="关闭确定" CssClass="btn" />
          <asp:Button ID="Button1" runat="server" CssClass="btn" Text="消费退单" Width="61px" OnClick="Button1_Click" /></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
