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

<!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>
<script language="javascript" src="LodopFuncs.js"></script>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
	<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop.exe"></embed>
</object> 
</head>
<body>
<script language="javascript" type="text/javascript"> 
	var LODOP; //声明为全局变量
	function Preview(){
		LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));  
		LODOP.PRINT_INIT("酒店结账收据");
		LODOP.ADD_PRINT_HTM(10,"2%",700,500,document.getElementById("div1").innerHTML);	
		LODOP.SET_PRINT_PAGESIZE(3,1450,45,"");
		LODOP.PREVIEW();	
	};
</script>
<div id="div1">
<style type="text/css">
.tt2 {
	font-size: 24px;
	font-weight: bold;
}
.tt
{
  border:1px #000000 solid;
  border-collapse:collapse;
}
.tt td
{
  border:0px #000000 solid;
  border-collapse:collapse;
}
</style>
<div style="display:block; font-size:28px; font-weight:bold; width:500px; line-height:50px; text-align:center; padding-bottom:20px;">&nbsp;</div>


<table width="500" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" align="left">客户名称(Name):<asp:Label ID="lbGuestName" runat="server" Text=""></asp:Label></td>
    <td height="25" align="left">房号(Room NO):<asp:Label ID="lbRoomCode" runat="server" Text=""></asp:Label></td>
  </tr>
  <tr>
    <td height="25" align="left">帐号(Account No):<asp:Label ID="lbAccountNumber" runat="server" Text=""></asp:Label></td>
    <td height="25" align="left">房价(Room Rate):<asp:Label ID="lbRoomPrice" runat="server" Text=""></asp:Label></td>
  </tr>
  <tr>
    <td height="25" align="left">付款方式(Payment):<asp:Label ID="lbPayType" runat="server" Text=""></asp:Label></td>
    <td height="25" align="left">抵店时间(AT.):<asp:Label ID="lbInTime1" runat="server" Text=""></asp:Label></td>
  </tr>
  <tr>
    <td height="25" align="left">入店时间(AT.):<asp:Label ID="lbInTime2" runat="server" Text=""></asp:Label></td>
    <td height="25" align="left">离店时间(Dep.):<asp:Label ID="lbLeaveTime" runat="server" Text=""></asp:Label></td>
  </tr>
</table>


<table width="500" border="0" cellpadding="0" cellspacing="0" class="tt">
    <tr style="display:none;">
        <td height="15" colspan="3">-------------------------------------------------------------------------</td>
      </tr>
    <tr>
        <td height="23" width="100">日期</td>
        <td height="23" width="80">房号</td>
        <td height="23" width="170">账项</td>
        <td height="23" width="75">费用</td>
        <td height="23" width="75">收款</td>
      </tr>

    <tr>
        <td height="23">Date</td>
        <td height="23">Room</td>
        <td height="23">Items</td>
        <td height="23">Debits</td>
        <td height="23">Credits</td>
      </tr>
    
    <asp:Repeater ID="rpItem" runat="server">
    <ItemTemplate>
      <tr>
        <td height="23"><%#Eval("AddDate", "{0:MM/dd HH.mm}")%></td>
        <td height="23"><%#Eval("RoomCode")%></td>
        <td height="23"><%#Eval("Name")%></td>
        <td height="23"><%#Eval("ReceivableAmount", "{0:0.00}")%></td>
        <td height="23"><%# Eval("Deposit").ToString() == "0" ? "" : Eval("Deposit", "{0:0.00}")%></td>
      </tr>
    </ItemTemplate>
    </asp:Repeater>
    <tr style="display:none;">
        <td height="15" colspan="3">-------------------------------------------------------------------------</td>
      </tr>
</table>
<table width="500" border="0" cellpadding="0" cellspacing="0" class="">
    <tr>
        <td height="23" width="100">&nbsp;</td>
        <td height="23" width="80">总计</td>
        <td height="23" width="170">Total</td>
        <td height="23" width="75"><asp:Label ID="lbTotalDebits" runat="server" Text=""></asp:Label></td>
        <td height="23" width="75"><asp:Label ID="lbTotalCredits" runat="server" Text=""></asp:Label></td>
      </tr>
</table>
<table width="500" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="300" height="25" align="left">费用合计(Debits):<asp:Label ID="lbDebits" runat="server" Text=""></asp:Label></td>
    <td width="200" height="25" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td width="300" height="25" align="left">交款合计(Credits):<asp:Label ID="lbCredits" runat="server" Text=""></asp:Label></td>
    <td width="200" height="25" align="left">余款(Balance):<asp:Label ID="lbBalance" runat="server" Text=""></asp:Label></td>
  </tr>
  <tr>
    <td width="300" height="25" align="left">工号(User):<asp:Label ID="lbUserName" runat="server" Text=""></asp:Label></td>
    <td width="200" height="25" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td width="300" height="25" align="left">&nbsp;</td>
    <td width="200" height="25" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td width="300" height="25" align="left">我同意支付上述费用</td>
    <td width="200" height="25" align="left">签名:<asp:Label ID="lbCustomerSign" runat="server" Text=""></asp:Label></td>
  </tr>
</table>


</div>

</body>
</html>
<script type="text/javascript">
    Preview();
</script>
