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

📄 changeform.aspx

📁 旅客信息管理、酒店客房管理、各种信息查询
💻 ASPX
字号:
<%--文件名:ChangeForm.aspx--%>
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ChangeForm.aspx.vb" Inherits="RoomManage_ChangeForm" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 558px; height: 61px">
        <tr>
            <td align="center" style="font-size: 0.8em; font-family: 宋体; height: 10px; background-color: slategray">
                请输入旅客姓名:<asp:TextBox ID="TextBox1" runat="server" Width="67px">%%</asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="查询" Width="70px" />
                请选择客房类别:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Width="98px">
                    <asp:ListItem>单人间</asp:ListItem>
                    <asp:ListItem>双人间</asp:ListItem>
                    <asp:ListItem>三人间</asp:ListItem>
                    <asp:ListItem>四人间</asp:ListItem>
                    <asp:ListItem>豪华间</asp:ListItem>
                    <asp:ListItem>钟点房</asp:ListItem>
                    <asp:ListItem>棋牌室</asp:ListItem>
                    <asp:ListItem>会议室</asp:ListItem>
                    <asp:ListItem>其他项1</asp:ListItem>
                    <asp:ListItem>其他项2</asp:ListItem>
                    <asp:ListItem>其他项3</asp:ListItem>
                    <asp:ListItem>其他项4</asp:ListItem>
                    <asp:ListItem>其他项5</asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="Button2" runat="server" Text="换房" Width="70px" /></td>
        </tr>
        <tr>
            <td style="font-size: 0.8em; width: 500px; font-family: 宋体; height: 21px; background-color: gainsboro">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHotelDBConnectionString %>"
                    SelectCommand="SELECT [入住编号], [入住房号], [折扣价格], [住宿人数], [客人姓名], [客人性别], [离开日期] FROM [客房入住单] WHERE ([客人姓名] LIKE '%' + @客人姓名 + '%') AND (入住编号 NOT IN (Select 入住编号 FROM 客房结账单))">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="TextBox1" Name="客人姓名" PropertyName="Text" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyHotelDBConnectionString %>"
                    SelectCommand="SELECT [房号], [类别], [楼层], [单价], [可住人数], [已住人数], [说明] FROM [酒店房间] WHERE ([类别] LIKE '%' + @类别 + '%') AND (可住人数>已住人数)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList1" Name="类别" PropertyName="SelectedValue"
                            Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                    CellPadding="3" DataKeyNames="入住编号" DataSourceID="SqlDataSource1" GridLines="Vertical"
                    PageSize="3" Width="553px">
                    <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="客人性别" />
                        <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>
            </td>
        </tr>
        <tr>
            <td style="font-size: 0.8em; width: 100px; font-family: 宋体; height: 21px; background-color: gainsboro">
                <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                    CellPadding="3" DataKeyNames="房号" DataSourceID="SqlDataSource2" GridLines="Vertical"
                    PageSize="3" Width="554px">
                    <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="已住人数" />
                        <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>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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