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

📄 eatingform.aspx

📁 一个关于宾馆酒店管理系统的源代码
💻 ASPX
字号:
<%--文件名:EatingForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EatingForm.aspx.cs" Inherits="ConsumeManage_EatingForm" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 557px; height: 2px">
        <tr>
            <td align="center" style="font-size: 0.8em; width: 1193px; font-family: 宋体; height: 16px;
                background-color: gainsboro">
                餐费编号:<asp:TextBox ID="TextBox4" runat="server" BackColor="#E0E0E0" Width="338px"></asp:TextBox>
                <asp:Button
                    ID="Button5" runat="server" OnClick="Button4_Click" Text="随机生成餐费编号" Width="132px" /></td>
        </tr>
        <tr>
            <td align="center" style="font-size: 0.8em; width: 1193px; font-family: 宋体; height: 16px;
                background-color: gainsboro">
                酒店房号:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
                    DataTextField="房号" DataValueField="房号">
                </asp:DropDownList>
                旅客姓名:<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource2"
                    DataTextField="客人姓名" DataValueField="入住编号" >
                </asp:DropDownList>
                用餐时间:<asp:TextBox ID="TextBox1" runat="server" Width="107px"></asp:TextBox>
                类别:<asp:DropDownList ID="DropDownList3" runat="server" Width="64px">
                    <asp:ListItem>早餐</asp:ListItem>
                    <asp:ListItem>中餐</asp:ListItem>
                    <asp:ListItem>晚餐</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="center" style="font-size: 0.8em; width: 1193px; font-family: 宋体; height: 16px;
                background-color: gainsboro">
                金额:<asp:TextBox ID="TextBox2" runat="server" Width="48px">78.00</asp:TextBox>
                说明:<asp:TextBox ID="TextBox3" runat="server" Width="112px">暂无</asp:TextBox>
                操作人员:<asp:TextBox ID="TextBox5" runat="server" BackColor="#E0E0E0" Width="60px"></asp:TextBox>
                记账时间:<asp:TextBox ID="TextBox6" runat="server" BackColor="#E0E0E0" Width="85px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="center" style="font-size: 0.8em; width: 1193px; font-family: 宋体; height: 16px;
                background-color: gainsboro">
                <asp:Button ID="Button1" runat="server" Text="新增" Width="80px" OnClick="Button1_Click" />
                <asp:Button ID="Button2" runat="server" Text="打印" Width="80px" OnClick="Button2_Click" />
                <asp:Button ID="Button3" runat="server" Text="保存" Width="80px" OnClick="Button3_Click" /></td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 1193px; font-family: 宋体; height: 10px;
                background-color: gainsboro">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHotelDBConnectionString %>"
                    SelectCommand="Select 房号 From 酒店房间 Where 已住人数>0"></asp:SqlDataSource>
                &nbsp; &nbsp;<asp:GridView ID="GridView1" runat="server">
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyHotelDBConnectionString %>"
                    SelectCommand="SELECT * FROM [客房入住单] WHERE ([入住房号] = @入住房号) AND (入住编号 NOT IN (SELECT 入住编号 FROM 客房结账单))">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList1" Name="入住房号" PropertyName="SelectedValue"
                            Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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