<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Web25_RoomState_checkout.aspx.cs" Inherits="Web25175_Hotel2.Web.Web25_RoomState_Checkout" %>
<!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 id="Head1" runat="server">
<title>收银结账</title>
<script language="javascript" src="js/Web25175_Hotel2.v1.1.js" type="text/javascript"></script>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.c
{
    clear:both;
}
.hl2
{
    width:800px;
    background-color:#CCCCCC;
    border:1px solid #333333;
  
}
.hl2 ul
{
    list-style:none;
    padding:0px;
    margin:0px;
}
.hl2 ul li
{
    float:left;
    width:auto;
    height:25px;
    line-height:25px;
    padding-left:10px;
}
.h13 div
{
    height:25px;
    line-height:25px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
  <asp:HiddenField ID="HFID" runat="server" />
  <div class="OperateTitle">
    <div> 收银结账 </div>
  </div>
  <table width="800" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><div class="hl2">
          <ul>
            <li><b>结账单号</b>：
              <asp:Label ID="lblAccountNumber" runat="server"></asp:Label>
            </li>
            <li><b>宾客姓名</b>：
              <asp:Label ID="lblName" runat="server"></asp:Label>
            </li>
          </ul>
          <div class="c"></div>
        </div>
        <div style="padding-top:5px; padding-left:5px; overflow:auto; height:195px; border-bottom:3px solid #cccccc">
          <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="567px" EnableModelValidation="True">
              <RowStyle BackColor="#FFE0C0" BorderStyle="Solid" Height="20px" />
              <Columns>
                  <asp:BoundField DataField="AddDate" HeaderText="消费日期" >
                      <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                      <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="RoomCode" HeaderText="结账房间" >
                      <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                      <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="Name" HeaderText="消费项目" HtmlEncode="False">
                      <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="Number" HeaderText="消费数量" >
                      <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                      <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField HeaderText="消费单价" DataField="Price" DataFormatString="{0:0.00}" >
                      <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                      <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="Deposit" HeaderText="已押金" DataFormatString="{0:0.00}" >
                      <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                      <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="ReceivableAmount" HeaderText="应收金额" DataFormatString="{0:0.00}" >
                      <HeaderStyle BorderStyle="Solid" BorderWidth="1px" />
                      <ItemStyle BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="ActualAmount" HeaderText="实收金额" DataFormatString="{0:0.00}" >
                      <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="#6B696B" Font-Bold="True" ForeColor="White" Height="25px" />
              <AlternatingRowStyle BackColor="White" />
          </asp:GridView>
        </div>
        
        </td>
    </tr>
  </table>
  <table width="800px" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="800px" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="width: 597px"><div class='h13'>
                <div>&nbsp;</div>
                <div> <b>应收金额</b>：
                  <asp:Label ID="lblReceivableAmount" runat="server"></asp:Label>
                  &nbsp; <b>已收押金</b>：
                  <asp:Label ID="lblDeposit" runat="server"></asp:Label>
                </div>
                <div> <b>实收金额</b>：
                  <asp:TextBox ID="txtActualAmount" runat="server" Width="90px"></asp:TextBox>
                  &nbsp; <b>宾客支付</b>：
                  <asp:TextBox ID="txtPayAmount" runat="server" Width="90px" AutoPostBack="True" OnTextChanged="txtPayAmount_TextChanged"></asp:TextBox>
                  &nbsp; <b>找零</b>：<asp:Label ID="lblZero" runat="server"></asp:Label>
                  
                </div>
                <div><b>结账备注</b>：
                  <asp:TextBox ID="txtRemark" runat="server" Width="433px"></asp:TextBox>
                </div>
                <div>&nbsp;</div>
              </div></td>
              <td colspan="2">
                  <asp:CheckBox ID="chkIsCard" runat="server" Text="挂账" AutoPostBack="True" OnCheckedChanged="chkIsCard_CheckedChanged" />
              <br />
              <asp:CheckBox ID="chkIsFree" runat="server" Text="免费" OnCheckedChanged="chkIsFree_CheckedChanged" AutoPostBack="True" />
              <br />
              <asp:CheckBox ID="chkIsBack" runat="server" Text="退单" OnCheckedChanged="chkIsBack_CheckedChanged" AutoPostBack="True" />
              <br />
              <asp:CheckBox ID="chkIsRefund" runat="server" Text="退押金" OnCheckedChanged="chkIsRefund_CheckedChanged" AutoPostBack="True" />
              <br />
              <asp:CheckBox ID="chkIsInvoice" runat="server" Text="开发票" />&nbsp;</td>
          </tr>
        </table>
        

        
        </td>
    </tr>
  </table>
  <table id="OperateButton" style="width:100%">
    <tr>
      <td style="width: auto; text-align:center;"><asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" Text="确定" CssClass="btn" />
        &nbsp;
        <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>
</body>
</html>
