?? roomstatusform.aspx
字號:
?<%--文件名:RoomStatusForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RoomStatusForm.aspx.cs" Inherits="QueryManage_RoomStatusForm" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 558px; height: 42px">
<tr>
<td align="center" style="font-size: 0.8em; width: 584px; font-family: 宋體; height: 21px;
background-color: slategray">
<asp:Label ID="Label1" runat="server" Text="Label" Width="422px"></asp:Label></td>
</tr>
<tr>
<td style="font-size: 0.8em; width: 173px; font-family: 宋體; height: 203px; background-color: gainsboro">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
CellPadding="3" DataKeyNames="房號" DataSourceID="SqlDataSource1" Font-Names="宋體"
Font-Size="Small" GridLines="Vertical" PageSize="5" Width="547px" OnRowDataBound="GridView1_RowDataBound" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<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>
<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>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHotelDBConnectionString %>"
SelectCommand="SELECT [房號], [已住人數], [可住人數], [類別], [樓層], [單價] FROM [酒店房間]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td align="center" style="font-size: 0.8em; width: 584px; font-family: 宋體; height: 21px;
background-color: slategray">
<asp:Label ID="Label2" runat="server" Text="當前入住客人基本登記信息" Width="422px"></asp:Label></td>
</tr>
<tr>
<td style="font-size: 0.8em; width: 173px; font-family: 宋體; background-color: gainsboro">
<asp:GridView ID="GridView2" runat="server" AllowPaging="True" BackColor="White"
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
GridLines="Vertical" PageSize="4" Width="550px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<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" />
<AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
</td>
</tr>
</table>
</asp:Content>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -