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

📄 changeform.aspx

📁 C# + MYSQL 课程设计 ASP.NET 2.0数据库开发《餐饮消费管理系统》功能完整
💻 ASPX
字号:
<%--文件名:ChangeForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChangeForm.aspx.cs" Inherits="EatingManage_ChangeForm" Title="当前位置:用餐管理->客人换台管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 558px; height: 1px">
        <tr>
            <td align="center" style="font-size: 0.8em; width: 550px; font-family: 宋体; height: 17px;
                background-color: deepskyblue">
                &nbsp;请首先在下面的表格中选择需要换台的客人:</td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 550px; height: 103px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="555px">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
                        DataKeyNames="用餐单号" DataSourceID="SqlDataSource1" Font-Names="宋体" Font-Size="Small"
                        GridLines="None" Width="650px" OnRowDataBound="GridView1_RowDataBound">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="Navy" Font-Bold="True" ForeColor="#E7E7FF" HorizontalAlign="Center" />
                        <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>
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyEateryDBConnectionString %>"
                        SelectCommand="SELECT [用餐单号], [入座台位], [宾客人数], [用餐日期], [用餐类别], [当前状态], [补充说明] FROM [用餐信息] WHERE ([当前状态] = '正在用餐')">
                    </asp:SqlDataSource>
                    &nbsp; &nbsp;
                    &nbsp; &nbsp;
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td style="font-size: 0.8em; width: 550px; font-family: 宋体; height: 17px; background-color: lightseagreen" align="center">
                &nbsp;请在下面的表格中选择将要换台的台位,在确认无误后再单击<asp:Button ID="Button1" runat="server" Text="确认换台"
                    Width="87px" OnClick="Button1_Click" />按钮</td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 550px; height: 103px; background-color: gainsboro">
                <table style="width: 558px; height: 1px">
                    <tr>
                        <td style="overflow: auto; width: 550px; height: 103px; background-color: gainsboro">
                            <asp:Panel ID="Panel2" runat="server" Height="150px" ScrollBars="Auto" Width="555px">
                                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" BackColor="White"
                                    BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" Font-Names="宋体" Font-Size="Small"
                                    GridLines="None"
                                    Width="750px" DataKeyNames="台位编号" DataSourceID="SqlDataSource2">
                                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                    <HeaderStyle BackColor="Navy" Font-Bold="True" ForeColor="#E7E7FF" HorizontalAlign="Center" />
                                    <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>
                                </asp:GridView>
                                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyEateryDBConnectionString %>"
                                    SelectCommand="SELECT * FROM [台位信息] WHERE ([当前状态] ='空置')">
                                </asp:SqlDataSource>
                                &nbsp; &nbsp;
                                &nbsp; &nbsp;
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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