您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->酒店管理系统(三层开发)源码>>WebSite_hotel/BookOnLine.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:酒店管理系统(三层开发)源码
当前文件:文件类型 ThreeLayerHotel/WebSite_hotel/BookOnLine.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="BookOnLine.aspx.cs" Inherits="BookOnLine" Title="无标题页" %> 2 3<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> 4 <style type="text/css"> 5 .style20 6 { 7 width: 599px; 8 } 9 .style21 10 { 11 width: 100%; 12 } 13 .style23 14 { 15 width: 100%; 16 } 17 .style24 18 { 19 width: 214px; 20 } 21 .style25 22 { 23 width: 68px; 24 } 25 .style26 26 { 27 width: 111px; 28 } 29 .style28 30 { 31 } 32 .style29 33 { 34 width: 98px; 35 } 36 .style31 37 { 38 width: 95px; 39 } 40 .style32 41 { 42 width: 72px; 43 } 44 .style33 45 { 46 width: 41px; 47 } 48 .style34 49 { 50 } 51 .style35 52 { 53 width: 213px; 54 } 55 </style> 56</asp:Content> 57<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 58 <br /> 59<asp:UpdatePanel ID="UpdatePanel9" runat="server"> 60 <ContentTemplate> 61 <asp:MultiView ID="MultiView5" runat="server"> 62 <table class="style21"> 63 <tr> 64 <td> 65 <asp:View ID="View9" runat="server"> 66 <table class="style21"> 67 <tr> 68 <td align="right" class="style29"> 69 房间类型:</td> 70 <td align="left" class="style33"> 71 <asp:DropDownList ID="DropDownList1" runat="server" 72 DataSourceID="SqlDataSource1" DataTextField="TypeName" 73 DataValueField="TypeName" Height="16px" Width="76px"> 74 </asp:DropDownList> 75 </td> 76 <td align="right" class="style31"> 77 入住人数:</td> 78 <td align="left"> 79 <asp:TextBox ID="txtguestnumber" runat="server" Width="63px"></asp:TextBox> 80 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 81 ControlToValidate="txtguestnumber" ErrorMessage="*" Font-Size="Small" 82 ValidationExpression="^[0-9]*[1-9][0-9]*$"></asp:RegularExpressionValidator> 83 </td> 84 <td align="right" class="style32"> 85 床位数:</td> 86 <td align="left"> 87 <asp:TextBox ID="txtbednumber" runat="server" Width="61px"></asp:TextBox> 88 <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 89 ControlToValidate="txtbednumber" Display="Dynamic" ErrorMessage="*" 90 Font-Size="Small" ValidationExpression="^[0-9]*[1-9][0-9]*$"></asp:RegularExpressionValidator> 91 </td> 92 </tr> 93 <tr> 94 <td colspan="6" align="right"> 95 <asp:LinkButton ID="LinkButton11" runat="server" ForeColor="Blue" 96 onclick="LinkButton11_Click">查询数据</asp:LinkButton> 97 &nbsp;&nbsp;&nbsp;&nbsp; 98 <asp:LinkButton ID="LinkButton12" runat="server" ForeColor="Blue" 99 onclick="LinkButton12_Click">查询所有</asp:LinkButton> 100 &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 101 </td> 102 </tr> 103 <tr> 104 <td colspan="6"> 105 <asp:MultiView ID="MultiView4" runat="server"> 106 <asp:View ID="View7" runat="server"> 107 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 108 AutoGenerateColumns="False" CellPadding="4" DataKeyNames="roomid" 109 ForeColor="#333333" GridLines="None" Height="69px" 110 onpageindexchanging="GridView1_PageIndexChanging" 111 onrowdatabound="GridView1_RowDataBound" 112 onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="5" 113 Width="573px"> 114 <PagerSettings FirstPageText="1" LastPageText="&lt;&lt;" 115 NextPageText="&amp;gt;&gt;&gt;" PageButtonCount="5" /> 116 <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> 117 <RowStyle BackColor="#EFF3FB" /> 118 <Columns> 119 <asp:BoundField DataField="Number" HeaderText="房间号" /> 120 <asp:BoundField DataField="TypeName" HeaderText="房间类型" /> 121 <asp:BoundField DataField="GuestNumber" HeaderText="入住人数" /> 122 <asp:BoundField DataField="BedNumber" HeaderText="床位数" /> 123 <asp:BoundField DataField="State" HeaderText="状态" /> 124 <asp:TemplateField> 125 <ItemTemplate> 126 <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select" 127 ForeColor="Blue">详细</asp:LinkButton> 128 </ItemTemplate> 129 </asp:TemplateField> 130 </Columns> 131 <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> 132 <EmptyDataTemplate> 133 <asp:Label ID="Label1" runat="server" Text="没有查询到数据!"></asp:Label> 134 </EmptyDataTemplate> 135 <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> 136 <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> 137 <EditRowStyle BackColor="#2461BF" /> 138 <AlternatingRowStyle BackColor="White" /> 139 </asp:GridView> 140 </asp:View> 141 <br /> 142 <asp:View ID="View8" runat="server"> 143 <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 144 AutoGenerateColumns="False" CellPadding="4" DataKeyNames="roomid" 145 ForeColor="#333333" GridLines="None" Height="69px" 146 onpageindexchanging="GridView2_PageIndexChanging" 147 onrowdatabound="GridView2_RowDataBound" 148 onselectedindexchanged="GridView2_SelectedIndexChanged" PageSize="5" 149 Width="573px"> 150 <PagerSettings FirstPageText="1" LastPageText="&lt;&lt;" 151 NextPageText="&amp;gt;&gt;&gt;" PageButtonCount="5" /> 152 <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> 153 <RowStyle BackColor="#EFF3FB" /> 154 <Columns> 155 <asp:BoundField DataField="Number" HeaderText="房间号" /> 156 <asp:BoundField DataField="TypeName" HeaderText="房间类型" /> 157 <asp:BoundField DataField="GuestNumber" HeaderText="入住人数" /> 158 <asp:BoundField DataField="BedNumber" HeaderText="床位数" /> 159 <asp:BoundField DataField="State" HeaderText="状态" /> 160 <asp:TemplateField> 161 <ItemTemplate> 162 <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Select" 163 ForeColor="Blue">详细</asp:LinkButton> 164 </ItemTemplate> 165 </asp:TemplateField> 166 </Columns> 167 <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> 168 <EmptyDataTemplate> 169 <asp:Label ID="Label2" runat="server" Text="没有查询到数据!"></asp:Label> 170 </EmptyDataTemplate> 171 <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> 172 <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> 173 <EditRowStyle BackColor="#2461BF" /> 174 <AlternatingRowStyle BackColor="White" /> 175 </asp:GridView> 176 </asp:View> 177 </asp:MultiView> 178 </td> 179 </tr> 180 </table> 181 </asp:View> 182 </td> 183 </tr> 184 <tr> 185 <td> 186 <asp:View ID="View6" runat="server"> 187 <br /> 188 189 <table align="center" class="style23"> 190 <tr> 191 <td align="right" class="style35"> 192&nbsp;&nbsp; 号:</td> 193 <td align="left" class="style34"> 194 <asp:Label ID="lblnumber" runat="server" Text="Label"></asp:Label> 195 </td> 196 <td align="left" rowspan="8"> 197 <asp:Image ID="Image1" runat="server" /> 198 </td> 199 </tr> 200 <tr> 201 <td align="right" class="style35"> 202 房间类型:</td> 203 <td align="left" class="style34"> 204 <asp:Label ID="lbltypename" runat="server" Text="Label"></asp:Label> 205 </td> 206 </tr> 207 <tr> 208 <td align="right" class="style35"> 209 当前状态:</td> 210 <td align="left" class="style34"> 211 <asp:Label ID="lblstate" runat="server" Text="Label"></asp:Label> 212 </td> 213 </tr> 214 <tr> 215 <td align="right" class="style35"> 216&nbsp;&nbsp; 数:</td> 217 <td align="left" class="style34"> 218 <asp:Label ID="lblbednumber" runat="server" Text="Label"></asp:Label> 219 </td> 220 </tr> 221 <tr> 222 <td align="right" class="style35"> 223 入住人数:</td> 224 <td align="left" class="style34"> 225 <asp:Label ID="lblguestnumber" runat="server" Text="Label"></asp:Label> 226 </td> 227 </tr> 228 <tr> 229 <td align="right" class="style35"> 230 类型价格:</td> 231 <td align="left" class="style34"> 232 <asp:Label ID="lbltypeprice" runat="server" Text="Label"></asp:Label> 233 </td> 234 </tr> 235 <tr> 236 <td align="right" class="style35"> 237 是否加床:</td> 238 <td align="left" class="style34"> 239 <asp:Label ID="lblisaddbed" runat="server" Text="Label"></asp:Label> 240 </td> 241 </tr> 242 <tr> 243 <td align="right" class="style35"> 244 加床价格:</td> 245 <td align="left" class="style34"> 246 <asp:Label ID="lbladdbedprice" runat="server" Text="Label"></asp:Label> 247 </td> 248 </tr> 249 <tr> 250 <td align="right" class="style35">