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

<!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>
    <script language="javascript" src="js/Web25175_Hotel2.operate.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/js.Btns.js" type="text/javascript"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--M:btnInsert$Web25_RoomIn_Operate.aspx,btnUpdate$Web25_RoomIn_Operate.aspx?,btnDelete,btnView$Web25_RoomIn_View.aspx?,search,PayType,GuestSex,IDCardType,State-->
    <form id="form1" runat="server" autocomplete="off">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblManage" runat="server" Text="住宿管理"></asp:Label>
            </div>
        </div>
        <div id="search" runat="server" text="查询">
            <!-- 查询栏 -->
            <table class="SearchTable">
                <tr class="FFtr">
                    <td align="left">
                        <asp:Label ID="lblA_AccountNumber" runat="server" Text="账单号"></asp:Label>：<asp:TextBox ID="txtA_AccountNumber" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
                        <asp:Label ID="lblA_RoomCode" runat="server" Text="客房号"></asp:Label>：<asp:TextBox ID="txtA_RoomCode" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
                        <asp:Label ID="lblA_PayType" runat="server" Text="付款方式"></asp:Label>：
                        <asp:DropDownList ID="txtA_PayType" runat="server" CssClass="dropdownlist">
                            <asp:ListItem Value=" ">所有付款方式</asp:ListItem>
                            <asp:ListItem Value="现金">现金</asp:ListItem>
                            <asp:ListItem Value="银行卡">银行卡</asp:ListItem>
                            <asp:ListItem Value="其他">其他</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lblA_GuestName" runat="server" Text="宾客姓名"></asp:Label>：<asp:TextBox ID="txtA_GuestName" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>

                    </td>
                </tr>
                <tr class="F7tr">
                    <td align="left">
                        <asp:Label ID="lblA_IDCardNo" runat="server" Text="证件号码"></asp:Label>：<asp:TextBox ID="txtA_IDCardNo" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
                        <asp:Label ID="lblA_Tel" runat="server" Text="联系电话"></asp:Label>：<asp:TextBox ID="txtA_Tel" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" CssClass="btnSearch" />

                    </td>
                </tr>
            </table>
        </div>
        <div id="operate" runat="server">
            <!-- 操作栏 -->
            <div id="btns">
                <div style="width: auto; float: left; padding-right: 8px;">
                    <asp:Button ID="btnInsert" runat="server" CssClass="btnInsert" OnClick="btnInsert_Click"
                        OnClientClick='return Operat.Insert("住宿管理","Web25_RoomIn_Operate.aspx",600,600);'
                        Text="添加"  />
                    <asp:Button ID="btnUpdate" runat="server" CssClass="btnUpdate" OnClick="btnUpdate_Click"
                        OnClientClick='return Operat.Update("住宿管理","Web25_RoomIn_Operate.aspx?ID=",600,600);'
                        Text="修改" />
                    <asp:Button ID="btnDelete" runat="server" CssClass="btnDelete" OnClick="btnDelete_Click"
                        OnClientClick='return Operat.Delete();' Text="删除" />
                    <asp:Button ID="btnView" runat="server" CssClass="btnView" OnClientClick='return Operat.View("住宿管理","Web25_RoomIn_View.aspx?ID=",600,600);'
                        Text="查看" />
                </div>
                <div id="PayType" runat="server" class="btnsbtn" text="付款方式">
                    <div class="btnspanel">
                        <div class="btnstitle">
                            付款方式</div>
                        <div class="btnsmenuhide" group='btnPayType0'>
                            <asp:Button ID="btnPayType0" runat="server" CssClass='btnsstyle' OnClick="btnPayType_Click" CommandArgument="现金"
                                Text="现金" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnPayType1'>
                            <asp:Button ID="btnPayType1" runat="server" CssClass='btnsstyle' OnClick="btnPayType_Click" CommandArgument="银行卡"
                                Text="银行卡" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnPayType2'>
                            <asp:Button ID="btnPayType2" runat="server" CssClass='btnsstyle' OnClick="btnPayType_Click" CommandArgument="其他"
                                Text="其他" Width="100px" /></div>

                    </div>
                </div>
                <div id="GuestSex" runat="server" class="btnsbtn" text="宾客性别">
                    <div class="btnspanel">
                        <div class="btnstitle">
                            宾客性别</div>
                        <div class="btnsmenuhide" group='btnGuestSex0'>
                            <asp:Button ID="btnGuestSex0" runat="server" CssClass='btnsstyle' OnClick="btnGuestSex_Click" CommandArgument="男"
                                Text="男" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnGuestSex1'>
                            <asp:Button ID="btnGuestSex1" runat="server" CssClass='btnsstyle' OnClick="btnGuestSex_Click" CommandArgument="女"
                                Text="女" Width="100px" /></div>

                    </div>
                </div>
                <div id="IDCardType" runat="server" class="btnsbtn" text="证件类型">
                    <div class="btnspanel">
                        <div class="btnstitle">
                            证件类型</div>
                        <div class="btnsmenuhide" group='btnIDCardType0'>
                            <asp:Button ID="btnIDCardType0" runat="server" CssClass='btnsstyle' OnClick="btnIDCardType_Click" CommandArgument="身份证"
                                Text="身份证" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnIDCardType1'>
                            <asp:Button ID="btnIDCardType1" runat="server" CssClass='btnsstyle' OnClick="btnIDCardType_Click" CommandArgument="驾驶证"
                                Text="驾驶证" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnIDCardType2'>
                            <asp:Button ID="btnIDCardType2" runat="server" CssClass='btnsstyle' OnClick="btnIDCardType_Click" CommandArgument="学生证"
                                Text="学生证" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnIDCardType3'>
                            <asp:Button ID="btnIDCardType3" runat="server" CssClass='btnsstyle' OnClick="btnIDCardType_Click" CommandArgument="军官证"
                                Text="军官证" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnIDCardType4'>
                            <asp:Button ID="btnIDCardType4" runat="server" CssClass='btnsstyle' OnClick="btnIDCardType_Click" CommandArgument="护照"
                                Text="护照" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnIDCardType5'>
                            <asp:Button ID="btnIDCardType5" runat="server" CssClass='btnsstyle' OnClick="btnIDCardType_Click" CommandArgument="工作证"
                                Text="工作证" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnIDCardType6'>
                            <asp:Button ID="btnIDCardType6" runat="server" CssClass='btnsstyle' OnClick="btnIDCardType_Click" CommandArgument="其他"
                                Text="其他" Width="100px" /></div>

                    </div>
                </div>
                <div id="State" runat="server" class="btnsbtn" text="状态">
                    <div class="btnspanel">
                        <div class="btnstitle">
                            状态</div>
                        <div class="btnsmenuhide" group='btnState0'>
                            <asp:Button ID="btnState0" runat="server" CssClass='btnsstyle' OnClick="btnState_Click" CommandArgument="正在消费"
                                Text="正在消费" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnState1'>
                            <asp:Button ID="btnState1" runat="server" CssClass='btnsstyle' OnClick="btnState_Click" CommandArgument="未消费"
                                Text="未消费" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnState2'>
                            <asp:Button ID="btnState2" runat="server" CssClass='btnsstyle' OnClick="btnState_Click" CommandArgument="结帐"
                                Text="结帐" Width="100px" /></div>

                    </div>
                </div>
                <div style="clear:both"></div>
            </div>
        </div>
        <div id="content" runat="server">
            <!-- 内容栏 -->
            <script>var chk = new Array();</script>
            <Web25175_Hotel2:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                CssClass="gv" GetSort="" GridLines="Horizontal" OnRowDataBound="GridView1_RowDataBound"
                OnSubSort="GridView1_SubSort" Width="100%" IsGradient="True">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <headertemplate>
                            <input  onclick="Operat.AllCancel(this)" type=checkbox />
                        </headertemplate>
                        <itemstyle width="30px" />
                        <itemtemplate>
                             <asp:CheckBox id="cboxSelect" runat="server"></asp:CheckBox>
                             <asp:Literal id="cboxHelp" runat="server"></asp:Literal> 
                             <asp:HiddenField runat="server" id="HFID" Value='<%# Eval("A_ID")%>'></asp:HiddenField>
                         
                        </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="账单号" SortExpression="A_AccountNumber">
                         <itemstyle width="140px" />
                         <itemtemplate>
                            <asp:Label id="lblA_AccountNumber_gv" runat="server" Text='<%# Eval("A_AccountNumber")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="客房号" SortExpression="A_RoomCode">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_RoomCode_gv" runat="server" Text='<%# Eval("A_RoomCode")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>                    
                    <asp:TemplateField HeaderText="房间类型" SortExpression="A_RoomType">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_RoomType_gv" runat="server" Text='<%# Eval("A_RoomType")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="预设单价" SortExpression="A_RoomPrice">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_RoomPrice_gv" runat="server" Text='<%# Eval("A_RoomPrice").ToString().Trim()!=""?Convert.ToSingle(Eval("A_RoomPrice").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="预住天数" SortExpression="A_InDay">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_InDay_gv" runat="server" Text='<%# Eval("A_InDay").ToString().Trim()!=""?Convert.ToSingle(Eval("A_InDay").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="押金" SortExpression="A_Deposit">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_Deposit_gv" runat="server" Text='<%# Eval("A_Deposit").ToString().Trim()!=""?Convert.ToSingle(Eval("A_Deposit").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="(?)是否钟点房" SortExpression="A_IsHour">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_IsHour_gv" runat="server" Text='<%# Eval("A_IsHour")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="打折比例" SortExpression="A_DiscountPercentage">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_DiscountPercentage_gv" runat="server" Text='<%# Eval("A_DiscountPercentage").ToString().Trim()!=""?Convert.ToSingle(Eval("A_DiscountPercentage").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="实际单价" SortExpression="A_Price">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_Price_gv" runat="server" Text='<%# Eval("A_Price").ToString().Trim()!=""?Convert.ToSingle(Eval("A_Price").ToString()).ToString("F"):"" %>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="宾客人数" SortExpression="A_InNumber">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_InNumber_gv" runat="server" Text='<%# Eval("A_InNumber")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="付款方式" SortExpression="A_PayType">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_PayType_gv" runat="server" Text='<%# Eval("A_PayType")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="宾客类型" SortExpression="A_GuestType">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_GuestType_gv" runat="server" Text='<%# Eval("A_GuestType")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="宾客姓名" SortExpression="A_GuestName">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_GuestName_gv" runat="server" Text='<%# Eval("A_GuestName")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="证件号码" SortExpression="A_IDCardNo">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_IDCardNo_gv" runat="server" Text='<%# Eval("A_IDCardNo")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="联系电话" SortExpression="A_Tel">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_Tel_gv" runat="server" Text='<%# Eval("A_Tel")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                         <itemtemplate>
                         </itemtemplate>
                    </asp:TemplateField>
                </Columns>
            </Web25175_Hotel2:GridView>
        </div>
        <div id='pager' runat="server" class='pager'>
            <Web25175_Hotel2:Pager ID="Pager1" runat="server" OnSubPager="Pager1_SubPager" PageBind="BindData"
                PagesCss="PageOff" PagesCssFirst="PageFirst" PagesCssLast="PageLast" PagesCssNext="PageNext"
                PagesCssOn="PageOn" PagesCssPrev="PagePrev" PageSize="20" />
        </div>
    </form>
    <script type="text/javascript">
    uiReady(function() {
        InitBtnsGroup();

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

