📄 queryconsumeform.aspx
字号:
<%--文件名:QueryConsumeForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="QueryConsumeForm.aspx.cs" Inherits="QueryManage_QueryConsumeForm" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 558px; height: 1px">
<tr>
<td align="left" style="font-size: 0.8em; width: 584px; font-family: 宋体; height: 21px;
background-color: slategray">
商品名称:<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
DataTextField="名称" DataValueField="名称" Width="80px">
</asp:DropDownList>
开始日期:<asp:TextBox ID="TextBox1" runat="server" Width="65px">2005-6-26</asp:TextBox>
结束日期:<asp:TextBox ID="TextBox2" runat="server" Width="65px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="查询" Width="50px" /><asp:Button
ID="Button2" runat="server" OnClick="Button2_Click" Text="打印" Width="50px" /></td>
</tr>
<tr>
<td style="overflow: auto; width: 580px; height: 90px; background-color: gainsboro">
<asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
CellPadding="3" DataSourceID="SqlDataSource2" Font-Names="宋体" Font-Size="Small"
GridLines="Vertical" Width="552px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<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="实际金额" ReadOnly="True" SortExpression="实际金额" />
<asp:BoundField DataField="期望金额" HeaderText="期望金额" ReadOnly="True" 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>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHotelDBConnectionString %>"
SelectCommand="SELECT * FROM [消费商品]" ></asp:SqlDataSource>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -