⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bookonline.aspx

📁 酒店管理系统项目需求说明 第一部分 引言 1 1.1编写目的 1 1.2背景 1 第二部分 任务概述 2 3.1实现目标 2 3.1.1客房类型模块: 2 3.1.2客房信息
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="BookOnLine.aspx.cs" Inherits="BookOnLine" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style20
    {
        width: 599px;
    }
    .style21
    {
        width: 100%;
    }
    .style23
    {
        width: 100%;
    }
    .style24
    {
            width: 214px;
        }
        .style25
    {
        width: 68px;
    }
    .style26
    {
        width: 111px;
    }
    .style28
    {
        }
    .style29
    {
        width: 98px;
    }
    .style31
    {
        width: 95px;
    }
    .style32
    {
        width: 72px;
    }
    .style33
    {
        width: 41px;
    }
        .style34
        {
        }
    .style35
    {
        width: 213px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
<asp:UpdatePanel ID="UpdatePanel9" runat="server">
    <ContentTemplate>
        <asp:MultiView ID="MultiView5" runat="server">
            <table class="style21">
                <tr>
                    <td>
                        <asp:View ID="View9" runat="server">
                            <table class="style21">
                                <tr>
                                    <td align="right" class="style29">
                                        房间类型:</td>
                                    <td align="left" class="style33">
                                        <asp:DropDownList ID="DropDownList1" runat="server" 
                                    DataSourceID="SqlDataSource1" DataTextField="TypeName" 
                                    DataValueField="TypeName" Height="16px" Width="76px">
                                        </asp:DropDownList>
                                    </td>
                                    <td align="right" class="style31">
                                        入住人数:</td>
                                    <td align="left">
                                        <asp:TextBox ID="txtguestnumber" runat="server" Width="63px"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                    ControlToValidate="txtguestnumber" ErrorMessage="*" Font-Size="Small" 
                                    ValidationExpression="^[0-9]*[1-9][0-9]*$"></asp:RegularExpressionValidator>
                                    </td>
                                    <td align="right" class="style32">
                                        床位数:</td>
                                    <td align="left">
                                        <asp:TextBox ID="txtbednumber" runat="server" Width="61px"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                    ControlToValidate="txtbednumber" Display="Dynamic" ErrorMessage="*" 
                                    Font-Size="Small" ValidationExpression="^[0-9]*[1-9][0-9]*$"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6" align="right">
                                        <asp:LinkButton ID="LinkButton11" runat="server" ForeColor="Blue" 
                                    onclick="LinkButton11_Click">查询数据</asp:LinkButton>
                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:LinkButton ID="LinkButton12" runat="server" ForeColor="Blue" 
                                    onclick="LinkButton12_Click">查询所有</asp:LinkButton>
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <asp:MultiView ID="MultiView4" runat="server">
                                            <asp:View ID="View7" runat="server">
                                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                                            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="roomid" 
                                            ForeColor="#333333" GridLines="None" Height="69px" 
                                            onpageindexchanging="GridView1_PageIndexChanging" 
                                            onrowdatabound="GridView1_RowDataBound" 
                                            onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="5" 
                                            Width="573px">
                                                    <PagerSettings FirstPageText="1" LastPageText="&lt;&lt;" 
                                                NextPageText="&amp;gt;&gt;&gt;" PageButtonCount="5" />
                                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                    <RowStyle BackColor="#EFF3FB" />
                                                    <Columns>
                                                        <asp:BoundField DataField="Number" HeaderText="房间号" />
                                                        <asp:BoundField DataField="TypeName" HeaderText="房间类型" />
                                                        <asp:BoundField DataField="GuestNumber" HeaderText="入住人数" />
                                                        <asp:BoundField DataField="BedNumber" HeaderText="床位数" />
                                                        <asp:BoundField DataField="State" HeaderText="状态" />
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select" 
                                                                    ForeColor="Blue">详细</asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="Label1" runat="server" Text="没有查询到数据!"></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                    <EditRowStyle BackColor="#2461BF" />
                                                    <AlternatingRowStyle BackColor="White" />
                                                </asp:GridView>
                                            </asp:View>
                                            <br />
                                            <asp:View ID="View8" runat="server">
                                                <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                                            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="roomid" 
                                            ForeColor="#333333" GridLines="None" Height="69px" 
                                            onpageindexchanging="GridView2_PageIndexChanging" 
                                            onrowdatabound="GridView2_RowDataBound" 
                                            onselectedindexchanged="GridView2_SelectedIndexChanged" PageSize="5" 
                                            Width="573px">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -