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

📄 roomstatusform.aspx

📁 一个关于宾馆酒店管理系统的源代码
💻 ASPX
字号:
<%--文件名:RoomStatusForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RoomStatusForm.aspx.cs" Inherits="QueryManage_RoomStatusForm" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 558px; height: 42px">
        <tr>
            <td align="center" style="font-size: 0.8em; width: 584px; font-family: 宋体; height: 21px;
                background-color: slategray">
                <asp:Label ID="Label1" runat="server" Text="Label" Width="422px"></asp:Label></td>
        </tr>
        <tr>
            <td style="font-size: 0.8em; width: 173px; font-family: 宋体; height: 203px; background-color: gainsboro">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                    CellPadding="3" DataKeyNames="房号" DataSourceID="SqlDataSource1" Font-Names="宋体"
                    Font-Size="Small" GridLines="Vertical" PageSize="5" Width="547px" OnRowDataBound="GridView1_RowDataBound" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <Columns>
                        <asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" />
                        <asp:BoundField DataField="房号" HeaderText="房号" ReadOnly="True" SortExpression="房号" />
                        <asp:BoundField DataField="已住人数" HeaderText="已住人数" SortExpression="已住人数" />
                        <asp:BoundField DataField="可住人数" HeaderText="可住人数" SortExpression="可住人数" />
                        <asp:BoundField DataField="类别" HeaderText="类别" SortExpression="类别" />
                        <asp:BoundField DataField="楼层" HeaderText="楼层" SortExpression="楼层" />
                        <asp:BoundField DataField="单价" HeaderText="单价" SortExpression="单价" />
                    </Columns>
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHotelDBConnectionString %>"
                    SelectCommand="SELECT [房号], [已住人数], [可住人数], [类别], [楼层], [单价] FROM [酒店房间]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td align="center" style="font-size: 0.8em; width: 584px; font-family: 宋体; height: 21px;
                background-color: slategray">
                <asp:Label ID="Label2" runat="server" Text="当前入住客人基本登记信息" Width="422px"></asp:Label></td>
        </tr>
        <tr>
            <td style="font-size: 0.8em; width: 173px; font-family: 宋体; background-color: gainsboro">
                <asp:GridView ID="GridView2" runat="server" AllowPaging="True" BackColor="White"
                    BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
                    GridLines="Vertical" PageSize="4" Width="550px">
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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