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

📄 checkform.aspx

📁 C# + MYSQL 课程设计 ASP.NET 2.0数据库开发《餐饮消费管理系统》功能完整
💻 ASPX
字号:
<%--文件名:CheckForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CheckForm.aspx.cs" Inherits="EatingManage_CheckForm" Title="当前位置:用餐管理->客人结账管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 558px; height: 1px">
        <tr>
            <td align="left" style="font-size: 0.8em; width: 550px; font-family: 宋体; height: 17px;
                background-color: deepskyblue">
                &nbsp; &nbsp;请输入需要结账的用餐日期:<asp:TextBox ID="TextBox1" runat="server" Width="81px">2007-9-18</asp:TextBox>
                服务人员:<asp:DropDownList ID="DropDownList1" runat="server" Width="106px" DataSourceID="SqlDataSource1" DataTextField="员工姓名" DataValueField="员工编号" AutoPostBack="True">
                </asp:DropDownList>&nbsp;
                <asp:Button ID="Button1" runat="server" Text="统计" Width="74px" OnClick="Button1_Click" /></td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 550px; font-family: 宋体; height: 17px;
                background-color: darkseagreen">
                &nbsp;用餐编号:<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource2"
                    DataTextField="用餐单号" DataValueField="用餐单号" Width="187px" AutoPostBack="True">
                </asp:DropDownList>
                用餐金额(元):<asp:TextBox ID="TextBox2" runat="server" Width="58px">0</asp:TextBox>
                折扣金额(元):<asp:TextBox ID="TextBox3" runat="server" Width="40px">0</asp:TextBox><br />
                &nbsp;实收金额(元):<asp:TextBox ID="TextBox4" runat="server" Width="74px">0</asp:TextBox>
                补充说明:<asp:TextBox ID="TextBox5" runat="server" Width="220px">暂无</asp:TextBox>
                <asp:Button ID="Button2" runat="server" Text="结账" Width="74px" OnClick="Button2_Click" /><br />
                &nbsp;客人意见:<asp:TextBox ID="TextBox6" runat="server" Width="393px">暂无</asp:TextBox>
                <asp:Button ID="Button3" runat="server" Text="打印" Width="74px" OnClick="Button3_Click" /></td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 550px; height: 103px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="250px" ScrollBars="Auto" Width="555px">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
                        Font-Names="宋体" Font-Size="Small" GridLines="None"
                        Width="1250px" DataKeyNames="用餐单号" DataSourceID="SqlDataSource3" 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="折扣金额" />
                            <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="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:MyEateryDBConnectionString %>"
                        SelectCommand="SELECT * FROM [用餐信息] WHERE ([用餐日期] = @用餐日期) AND ([当前状态] = '已经结账')">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TextBox1" Name="用餐日期" PropertyName="Text" Type="DateTime" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    &nbsp; &nbsp;&nbsp;
                </asp:Panel>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyEateryDBConnectionString %>"
                    SelectCommand="SELECT * FROM [员工信息] WHERE ([所属部门] ='服务生组')">                  
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyEateryDBConnectionString %>"
                    SelectCommand="SELECT * FROM [用餐信息] WHERE (([用餐日期] = @用餐日期) AND ([服务人员] = @服务人员) AND ([当前状态] ='正在用餐'))">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="TextBox1" Name="用餐日期" PropertyName="Text" Type="DateTime" />
                        <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 + -