📄 bookingcheckform.aspx
字号:
<%--文件名:BookingCheckForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="BookingCheckForm.aspx.cs" Inherits="BookingManage_BookingCheckForm" 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">
请输入已经结账的预订用餐客人的预订编号:<asp:TextBox ID="TextBox1" runat="server" Width="196px">%%</asp:TextBox>
<asp:Button ID="Button3" runat="server" Text="查询" Width="69px" /></td>
</tr>
<tr>
<td align="left" style="font-size: 0.8em; width: 550px; font-family: 宋体; height: 17px;
background-color: darkseagreen">
预订编号:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
DataSourceID="SqlDataSource1" DataTextField="预订编号" DataValueField="预订编号" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
Width="180px">
</asp:DropDownList>
用餐金额(元):<asp:TextBox ID="TextBox2" runat="server" Width="56px">0</asp:TextBox>
预收订金(元):<asp:TextBox ID="TextBox3" runat="server" Width="45px">0</asp:TextBox><br />
折扣金额(元):<asp:TextBox ID="TextBox4" runat="server" Width="43px">0</asp:TextBox>
实收金额(元):<asp:TextBox ID="TextBox5" runat="server" Width="44px">0</asp:TextBox>
补充说明:<asp:TextBox ID="TextBox6" runat="server" Width="188px">暂无</asp:TextBox><br />
客人意见:<asp:TextBox ID="TextBox7" runat="server" Width="320px">暂无</asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="结账" Width="69px" />
<asp:Button ID="Button2" runat="server" Text="打印" Width="69px" OnClick="Button2_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" OnRowDataBound="GridView1_RowDataBound"
Width="950px" 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="用餐要求" />
<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 (([预订编号] LIKE '%' + @预订编号 + '%') AND ([当前状态] = @当前状态))">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="预订编号" PropertyName="Text" Type="String" />
<asp:Parameter DefaultValue="已经处理" Name="当前状态" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyEateryDBConnectionString %>"
SelectCommand="SELECT * FROM [预订信息] WHERE ([当前状态] = @当前状态)">
<SelectParameters>
<asp:Parameter DefaultValue="已经预订" Name="当前状态" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Panel>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -