Sei sulla pagina 1di 32

Tunga Restaurant 1 ________________________________________________________________________

INTRODUCTION
TUNGA restaurants are known for their wide range of continental cuisine and consummate style.TUNGA provides range fully-equipped, private meeting rooms, and regal banquet halls which offer the perfect combination of efficiency and convenience. They are also popular among school & college students for range of bakery & fast food products. With increasing popularity and the customer base, organization has decided to go techno savvy to meet customer expectations with respect to its exclusive services in the market. Organization has decided to reach out to its customers via online services through a web site on the internet. The web site talks about other business aspects of the firm and has online reservation and home delivery service as one of its premium services.

APTECH Computer Education

2009

Tunga Restaurant 2 ________________________________________________________________________

2. Analysis
Customer Specifications:
The site should allow customer to choose the services offered by the restaurant. 1. Online table reservation in the restaurant for specific date and time. This will a. Provide the list of restaurants in the country so that the user can choose accordingly. b. Provide the list of tables available for online reservation at different dining rooms in the restaurant. c. Mention the number of guests that can be accommodated on the particular table. d. Accept the booking for tables. e. Online table reservations are done 6hrs in advance for the current date. f. Table reservation can be done up to one month in advance. g. Give a token number to the customer as an acknowledgement of booking. 2. Online order for food under restaurants exclusive home delivery service. a. This facility is valid for 24hrs. from the time of order. b. Accept the customers order so that the nearest restaurant can service the order in stipulated time (60 - 120 Minutes). c. Record the customers name, residence address and contact numbers and other vital details if required. d. Facilitate with the choice of food keeping Vegetarian and non-vegetarian customers in mind. e. Provide the menu list with their price tags accordingly and also mention the number of persons that can be served with one unit of order. This will help the customer to decide the quantity to be ordered. f. Display the list items select from the menu and exact amount (itemized bill) that the customer is supposed to pay (inclusive of all taxes applicable).

APTECH Computer Education

2009

Tunga Restaurant 3 ________________________________________________________________________ g. Give a token number as an acknowledgement to the customer that the order has been noted down by the restaurant. h. Show the approximate time (in minutes) in which the ordered will be delivered to the customer. 3. The site should have the appropriate look and feel suitable to the restaurants reputation and status.

APTECH Computer Education

2009

Tunga Restaurant 4 ________________________________________________________________________

3. Design
1.1 DFDs :
DFD SYMBOLS: In the DFD, there are four symbols 1. A square defines a source(originator) or destination of system data 2. An arrow identifies data flow. It is the pipeline through which the information flows 3. A circle or a bubble represents a process that transforms incoming data flow into outgoing data flows. 4. An open rectangle is a data store, data at rest or a temporary repository of data

Process that transforms dataflow

Source or Destination of data

Data flow Data Store

APTECH Computer Education

2009

Tunga Restaurant 5 ________________________________________________________________________ DATA FLOW DIAGRAMS Level 1:

Reservation

User

TUNGA Home Home Delivery

Level 2 DFD For Reservation:


TungaProperty_Restaurants

Provide Details

No

Check Availabilit y

Yes
Customer Information

Token No

Updated Reservation Details

APTECH Computer Education

2009

Tunga Restaurant 6 ________________________________________________________________________

Level 2 DFD for Home Delivery Order Processing:

Customer Information

Update Customer Details

Not Available

Check Customer Information

Available Items Yes Select No

TokenNo Time Spam

Update User Selection Finished Update Final Items

APTECH Computer Education

2009

Tunga Restaurant 7 ________________________________________________________________________

3.2 FlowCharts:
3.3.1 Online table reservation in the restaurant:

Start

Preferred Restaurant

Date&time

No Of Persons

Check Availabilit y Y Available

Not Available

Customer Details

Reserver Stop 3.3.2 Online HomeDelivery From The Restaurants: APTECH Computer Education 2009

Tunga Restaurant 8 ________________________________________________________________________

Start

EnterYour ContactDetails

Veg

GoToFoo dSelectio n

NonVeg

SelectVegItem

SelectNonVegItem

SelectNo.Of Persons

Quantity

AddToMyList

1.2 Database Design/Structure: Stop

APTECH Computer Education

2009

Tunga Restaurant 9 ________________________________________________________________________


TungaProperty Field Name TungaPropertyId TungaPropertyName ContactAddress Phone Fax Email TungaProperty_Restaurants Field Name RestaurantId TungaPropertyId RestaurantName Tunga_RestaurantTables Field Name TableId RestaurantId CapacityOfAccommodation Tunga_TableReservation Field Name TableId ReservationDateandTime CustomerName Email ContactNo TokenNo Default Value Allow Nulls No No No No No Yes Data Type int
datetime

Default Value

Allow Nulls No No No No No No

Data Type int varchar(30) varchar(100) varchar(50) varchar(20) varchar(50)

Constraints auto number(PK)

Default Value

Allow Nulls No No No

Data Type int int varchar(50)

Constraints auto number(PK) ForeignKey

Default Value

Allow Nulls No No No

Data Type int int int

Constraints auto number(PK) ForeignKey

Constraints ForeignKey

varchar(50) varchar(50) varchar(30) Varchar(30)

APTECH Computer Education

2009

Tunga Restaurant 10 ________________________________________________________________________


FoodItemType Field Name ItemTypeId ItemType FoodItems Field Name ItemId ItemTypeId ItemName ItemPrice NoOfPersonsServed CustomerInformation Field Name CustomerId CustomerName Address ContactNo Street FoodItemsOrderedByCustomer Field Name CustomerId ItemId Quantity Default Value Allow Nulls No No No Data Type int Int Int Constraints ForeignKey ForeignKey Default Value Allow Nulls No No No No No Data Type int Varchar(50) Varchar(100) Varchar(30) Varchar(30) Constraints auto number(PK) Default Value Allow Nulls No No No No No Data Type int smallint Varchar(30) Float Int Constraints auto number(PK) ForeignKey Default Value Allow Nulls No No Data Type smallint Varchar(20) Constraints auto number(PK)

APTECH Computer Education

2009

Tunga Restaurant 11 ________________________________________________________________________


FinalCustomerOrderProcess Field Name CustomerId TokenNo OrderDateandTime TimeForOrderProcessing BoolProcessed (0) Default Value Allow Nulls No no no no No Data Type int Varchar(30) Datetime Int bit Constraints ForeignKey

APTECH Computer Education

2009

Tunga Restaurant 12 ________________________________________________________________________

2. Screen shots
4.1 Restaurants contacts:

APTECH Computer Education

2009

Tunga Restaurant 13 ________________________________________________________________________

4.2 Home Page

APTECH Computer Education

2009

Tunga Restaurant 14 ________________________________________________________________________

5.Source Code with Comments


MainMasterPage <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MPMain.master.cs" Inherits="MPMain" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <link href="Global/Styles/SSMain.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .leftColumn { float:left; width:16%; height:1500px; border-right:Solid 1px black; } .rightColumn { position: absolute; top: 245px; padding:15px; height:1360px; width:60%; border-top:Solid 1px white; border-right:Solid 1px white; }

APTECH Computer Education

2009

Tunga Restaurant 15 ________________________________________________________________________ </style> <title>Business Hotel Mumbai Navi Mumbai | Premium 5 Star | Business Center | Banquet Hall | Conference Center</title> <meta content="JavaScript" name="vs_defaultClientScript"/> <script language="javascript" type="text/javascript" src="Global/JS/popcalendar.js"></script> <script language="javascript" type="text/javascript"> function Date_onkeydown(textb) { alert("Please select date by clicking the image"); document.getElementById(textb).focus(); return false; } </script> </head> <body> <form id="form1" runat="server"> <div> <table cellpadding="4" width="100%" cellspacing="1" style="table-layout:fixed"> <tr><td align="right"><asp:HyperLink ID="ContactUs" runat="server" NavigateUrl="~/contact.aspx" Font-Bold="True" ForeColor="Black">Contact Us</asp:HyperLink></td></tr> </table> <asp:Image id="CompLogo" ImageUrl="~/Global/Images/logo.jpg" AlternateText="TUNGALogo" Runat="server" Height="75px" Width="158px" /> <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/App_Data/AdList.xml" Style="z-index: 100; left: 246px; position: absolute; top: 44px" Height="200px" Width="500px"/> </div> <div class="leftColumn"> APTECH Computer Education 2009

Tunga Restaurant 16 ________________________________________________________________________ <br /> <p>&nbsp;&nbsp;<asp:HyperLink ID="Home" runat="server" NavigateUrl="~/Home.aspx" ForeColor="#003300">Home</asp:HyperLink></p> <p>&nbsp;&nbsp;<asp:HyperLink ID="Reservation" runat="server" NavigateUrl="~/Reservation.aspx" ForeColor="#003300">Online Reservation</asp:HyperLink></p> <p>&nbsp;&nbsp;<asp:HyperLink ID="HomeDeliveryOrder" runat="server" NavigateUrl="~/HomeDeliveryOrder.aspx" ForeColor="#003300">Home Delivery Order</asp:HyperLink></p> </div> <div class="rightColumn"> <asp:ContentPlaceholder id="ContentPage" runat="server" /> </div> </form> </body> </html> Contactpage: <%@ Page Language="C#" MasterPageFile="~/MPMain.master" AutoEventWireup="true" CodeFile="contact.aspx.cs" Inherits="contact"%> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPage" Runat="Server"> <div style="text-align:center"><strong>Contact Us</strong></div><hr /> <table id="Table1" runat="server" width="100%"> <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The Reganza by Tunga</strong></td></tr> <tr><td> <asp:Image ID="TheReganza" runat="server" ImageUrl="~/Global/Images/reganza_logo.jpg" /></td> <td>Plot No. 37, Sector 30-A,<br />Vashi, Navi Mumbai 400703.<br />Phone: +9122-6680-1818, +91-22-4102-1818<br />Fax: +91-22-6680-1800<br />Email: info@tungahotels.com</td></tr> APTECH Computer Education 2009

Tunga Restaurant 17 ________________________________________________________________________ <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The Regale by Tunga</strong></td></tr> <tr><td> <asp:Image ID="TheRegale" runat="server" ImageUrl="~/Global/Images/regale_logo.jpg" /></td> <td>Plot no. 31, Central Road, MIDC,<br />Andheri East, Mumbai 400093.<br />Phone: +91-22-6672-6672<br />Fax: +91-22-6672-6666<br />Email: regale@tungahotels.com</td></tr> <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The International by Tunga</strong></td></tr> <tr><td> <asp:Image ID="TheInternational" runat="server" ImageUrl="~/Global/Images/international_logo.jpg" /></td> <td>B 11, Midc Central Road,<br />Andheri East, Mumbai 400093.<br />Phone: +91-22-6144-6464<br />Fax: +91-22-6692-2900<br />Email: international@tungahotels.com</td></tr> <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The Paradise by Tunga</strong></td></tr> <tr><td> <asp:Image ID="TheParadise" runat="server" ImageUrl="~/Global/Images/paradise_logo.jpg" /></td> <td>P 16, Midc Central Road,<br />Andheri East, Mumbai 400093.<br />Phone: +9122-67898900<br />Fax: +91-22-28217060<br />Email: paradise@tungahotels.com</td></tr> </table> </asp:Content>

APTECH Computer Education

2009

Tunga Restaurant 18 ________________________________________________________________________

Home
<%@ Page Language="C#" MasterPageFile="~/MPMain.master" AutoEventWireup="true" CodeFile="contact.aspx.cs" Inherits="contact"%> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPage" Runat="Server"> <div style="text-align:center"><strong>Contact Us</strong></div><hr /> <table id="Table1" runat="server" width="100%"> <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The Reganza by Tunga</strong></td></tr> <tr><td> <asp:Image ID="TheReganza" runat="server" ImageUrl="~/Global/Images/reganza_logo.jpg" /></td> <td>Plot No. 37, Sector 30-A,<br />Vashi, Navi Mumbai 400703.<br />Phone: +9122-6680-1818, +91-22-4102-1818<br />Fax: +91-22-6680-1800<br />Email: info@tungahotels.com</td></tr> <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The Regale by Tunga</strong></td></tr> <tr><td> <asp:Image ID="TheRegale" runat="server" ImageUrl="~/Global/Images/regale_logo.jpg" /></td> <td>Plot no. 31, Central Road, MIDC,<br />Andheri East, Mumbai 400093.<br />Phone: +91-22-6672-6672<br />Fax: +91-22-6672-6666<br />Email: regale@tungahotels.com</td></tr> <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The International by Tunga</strong></td></tr> <tr><td>

APTECH Computer Education

2009

Tunga Restaurant 19 ________________________________________________________________________ <asp:Image ID="TheInternational" runat="server" ImageUrl="~/Global/Images/international_logo.jpg" /></td> <td>B 11, Midc Central Road,<br />Andheri East, Mumbai 400093.<br />Phone: +91-22-6144-6464<br />Fax: +91-22-6692-2900<br />Email: international@tungahotels.com</td></tr> <tr><td colspan="2" style="height: 20px">&nbsp;</td></tr> <tr><td colspan="2" align="center"><strong>The Paradise by Tunga</strong></td></tr> <tr><td> <asp:Image ID="TheParadise" runat="server" ImageUrl="~/Global/Images/paradise_logo.jpg" /></td> <td>P 16, Midc Central Road,<br />Andheri East, Mumbai 400093.<br />Phone: +9122-67898900<br />Fax: +91-22-28217060<br />Email: paradise@tungahotels.com</td></tr> </table> </asp:Content>

APTECH Computer Education

2009

Tunga Restaurant 20 ________________________________________________________________________

HomeDeliveryOrder
<%@ Page Language="C#" MasterPageFile="~/MPMain.master" AutoEventWireup="true" CodeFile="HomeDeliveryOrder.aspx.cs" Inherits="HomeDeliveryOrder" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPage" Runat="Server"> <table id="Table1" width="100%" cellpadding="4" cellspacing="2" runat="server"> <tr><td align="center"><strong>Welcome to Home Delivery Order Processing.</strong></td></tr> </table> <table width="100%" id="NewTable" cellpadding="4" cellspacing="2" runat="server"> <tr><td colspan="2">Please Enter Your Contact Details :</td></tr> <tr><td style="width:25%">Name</td> <td><asp:TextBox ID="CustomerName" runat="server" MaxLength="50" Width="270px"></asp:TextBox></td> </tr> <tr><td style="width:25%">Address</td> <td><asp:TextBox ID="Address" runat="server" Columns="35" Rows="4" TextMode="MultiLine"></asp:TextBox></td> </tr> <tr><td style="width:25%">Street</td> <td><asp:TextBox ID="Street" runat="server" MaxLength="30" Width="270px"></asp:TextBox></td> </tr> <tr><td style="width:25%">Contact Number</td> <td><asp:TextBox ID="ContactNo" runat="server" MaxLength="30" Width="270px"></asp:TextBox></td> </tr> <tr><td colspan="2" align="center"><asp:Button ID="RegisterCustomer" runat="server" Text="Go To Food Selection" BackColor="#80FFFF" OnClick="RegisterCustomer_Click" /></td> APTECH Computer Education 2009

Tunga Restaurant 21 ________________________________________________________________________ </tr> </table> <table width="100%" id="TblCustomer" cellpadding="4" cellspacing="2" runat="server"> <tr><td colspan="2">Your Contact Details :</td></tr> <tr><td style="width:25%">Name</td> <td><asp:Label ID="CustomerName1" runat="server"></asp:Label><asp:HiddenField ID="CustomerId" runat="server" /></td> </tr> <tr><td style="width:25%">Address</td> <td><asp:Label ID="Address1" runat="server"></asp:Label></td> </tr> <tr><td style="width:25%">Street</td> <td><asp:Label ID="Street1" runat="server"></asp:Label></td> </tr> <tr><td style="width:25%">Contact Number</td> <td><asp:Label ID="ContactNo1" runat="server"></asp:Label></td> </tr> <tr><td colspan="2" align="center"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="100%"> <Columns> <asp:BoundField DataField="ItemType" HeaderText="Item Type" /> <asp:BoundField DataField="ItemName" HeaderText="Item Name" /> <asp:TemplateField HeaderText="Item Price"> <ItemTemplate> <asp:Label ID="ItemPrice" runat="server" Text='<%# Bind("ItemPrice") %>'></asp:Label> </ItemTemplate> </asp:TemplateField>

APTECH Computer Education

2009

Tunga Restaurant 22 ________________________________________________________________________ <asp:BoundField DataField="NoOfPersonsServed" HeaderText="No Of Persons Served" /> <asp:TemplateField HeaderText="Quantity"> <ItemTemplate> <asp:Label ID="Quantity" runat="server" Text='<%# Bind("Quantity") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Total Price"> <ItemTemplate> <asp:Label ID="TotalPrice" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TUNGAConnectionString %>" SelectCommand="SELECT FoodItemType.ItemType, FoodItems.ItemName, FoodItems.ItemPrice, FoodItems.NoOfPersonsServed, FoodItemsOrderedByCustomer.Quantity FROM FoodItems INNER JOIN FoodItemType ON FoodItems.ItemTypeId = FoodItemType.ItemTypeId INNER JOIN FoodItemsOrderedByCustomer ON FoodItems.ItemId = FoodItemsOrderedByCustomer.ItemId WHERE FoodItemsOrderedByCustomer.CustomerId = @CustomerId" OnSelecting="SqlDataSource1_Selecting"> <SelectParameters> <asp:ControlParameter ControlID="CustomerId" Name="CustomerId" PropertyName="Value" /> </SelectParameters> </asp:SqlDataSource> </td> APTECH Computer Education 2009

Tunga Restaurant 23 ________________________________________________________________________ </tr> <tr id="NewItenRow" runat="server"><td colspan="2"> <table id="Table2" runat="server" width="100%" cellpadding="2" cellspacing="1"> <tr><td align="center"><strong>Category</strong></td> <td align="center"><strong>Item</strong></td> <td align="center"><strong>Price</strong></td> <td align="center"><strong>No Of Persons Served</strong></td> <td align="center"><strong>Quantity</strong></td> </tr> <tr><td align="center"><asp:DropDownList ID="ItemTypeId" runat="server" AppendDataBoundItems="True"><asp:ListItem>Select</asp:ListItem></asp:DropDownLi st></td> <td align="center"><asp:DropDownList ID="ItemId" runat="server" AppendDataBoundItems="True"><asp:ListItem>Select</asp:ListItem></asp:DropDownLi st></td> <td align="center"><asp:Label ID="Price" runat="server"></asp:Label></td> <td align="center"><asp:Label ID="NoOfPersonsServed" runat="server"></asp:Label></td> <td align="center"><asp:TextBox ID="Quantity" runat="server" MaxLength="2" Width="41px"></asp:TextBox></td> </tr> <tr><td colspan="5" align="center"><asp:Button ID="AddItem" runat="server" Text="Add To My List" BackColor="#80FFFF" /></td></tr> </table> </td></tr> <tr><td colspan="2" align="center"><asp:Button ID="FinalizeOrder" runat="server" Text="Finalize" BackColor="#80FFFF" /></td></tr> </table> </asp:Content>

APTECH Computer Education

2009

Tunga Restaurant 24 ________________________________________________________________________ Reservation <%@ Page Language="C#" MasterPageFile="~/MPMain.master" AutoEventWireup="true" CodeFile="Reservation.aspx.cs" Inherits="Reservation" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPage" Runat="Server"> <div style="text-align:center"><strong>Restaurants & Bar</strong></div><hr /> <table id="Table1" runat="server" width="100%" cellpadding="2" cellspacing="1"> <tr><td colspan="2" align="center"><u><strong>The Reganza by Tunga</strong></u></td></tr> <tr><td> <asp:Image ID="SomethingFishy" runat="server" ImageUrl="~/Global/Images/somethingfishy.jpg" /></td> <td><strong>Something's Fishy! - The Dining Bar</strong><br /><div style="textalign:justify">You can always trust the delightful seafood served here to work its magic on you, ever so slowly and ever so surely. And whether it's our chefs or our wide range of fresh seafood, who does the magic, it's still a mystery. Relish it once and you'll discover why sharing is considered a highly overrated concept.</div></td></tr> <tr><td> <asp:Image ID="Crimson" runat="server" ImageUrl="~/Global/Images/crimson.jpg" /></td> <td><strong>Crimson - Spirits, Coffee & Grills</strong><br /><div style="textalign:justify">Sometimes, all it takes to set that perfect mood is a place. A place that takes you far away from the daily chaos. A place that lifts you spirit high. It's not surprising that relaxed evenings, friends, conversations, all come together over Spirits, Coffee & Grills. And for some, there are moments of sheer joy beyond compare.</div></td></tr> <tr><td> <asp:Image ID="CafeVihar" runat="server" ImageUrl="~/Global/Images/cafevihar.jpg" /></td> <td><strong>Caf Vihar - Refreshingly Veg</strong><br /><div style="textalign:justify">There's a vibrant energy about everything here, a perfect complement to the absolutely delightful preparations. And a perfect joint for those who enjoy the pure taste of APTECH Computer Education 2009

Tunga Restaurant 25 ________________________________________________________________________ life. 100% vegetarian in nature, this is one place that guarantees you 100% delight.</div></td></tr> <tr><td colspan="2" align="center"><u><strong>The Regale by Tunga</strong></u></td></tr> <tr><td> <asp:Image ID="TAO" runat="server" ImageUrl="~/Global/Images/tao.jpg" /></td> <td><strong>TAO Journeys from the Far East</strong><br /><div style="textalign:justify">A spread of authentic far-eastern cuisine created by our Master chef, created out of hand picked recipes from across the orient along with a discerning list of wine & delectable desserts. Tao is a Zen inspired space with edgy minimalist style thats designed for a quick afternoon meal or a prolonged fine-dine affair.</div></td></tr> <tr><td> <asp:Image ID="ZERZA" runat="server" ImageUrl="~/Global/Images/zerza.jpg" /></td> <td><strong>ZERZA Bar n Grills </strong><br /><div style="textalign:justify">Our rooftop, open air, poolside grill & barbeque souk is styled with Mediterranean influences. Along with a bar brimming with action, Zerza promises to intoxicate your senses with an eclectic blend of rich vibrant colors, pulsating global music, killer kebabs & sinful seeshas. At Zerza the night is still alive.</div></td></tr> <tr><td colspan="2" align="center"><u><strong>The International by Tunga</strong></u></td></tr> <tr><td> <asp:Image ID="Vihar" runat="server" ImageUrl="~/Global/Images/vihar.jpg" /></td> <td><strong>Vihar</strong><br /><div style="text-align:justify">Sample delightful vegetarian cuisine that leaves you filled, with joy.</div></td></tr> <tr><td colspan="2" align="center"><u><strong>The Paradise by Tunga</strong></u></td></tr> <tr><td> <asp:Image ID="Destiny" runat="server" ImageUrl="~/Global/Images/destiny.jpg" /></td> APTECH Computer Education 2009

Tunga Restaurant 26 ________________________________________________________________________ <td><strong>Destiny</strong><br /><div style="text-align:justify">Savour exotic Oriental cuisine prepared with the rarest flavour of them all, authenticity.</div></td></tr> <tr><td> <asp:Image ID="Ganga" runat="server" ImageUrl="~/Global/Images/ganga.jpg" /></td> <td><strong>Ganga</strong><br /><div style="text-align:justify">Enjoy simple vegetarian cuisine that is simply unforgettable!</div></td></tr> <tr><td> <asp:Image ID="poison" runat="server" ImageUrl="~/Global/Images/poison.jpg" /></td> <td><strong>Whats your poison</strong><br /><div style="text-align:justify">A heady concoction of sports, music and spirits set the tone for an exhilarating evening. If you belong to the breed that comes alive as soon as the sun sets, then you'll feel really at home in here.</div></td></tr> </table> <table runat="server" cellpadding="2" cellspacing="1" id="TabReserve" width="100%"> <tr><td colspan="2"><strong>Reservation Details:</strong><br />You can register your visit well in advance, to avoid the wait and the rush.</td></tr> <tr><td style="width: 25%">Preferred Restaurant</td> <td><asp:DropDownList ID="RestaurantId" runat="server" AppendDataBoundItems="True" DataSourceID="DSRestaurants" DataTextField="RestaurantName" DataValueField="RestaurantId"> <asp:ListItem Value="Select">Select Restaurant</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredRestaurantId" runat="server" ErrorMessage="Please select Restaurant" ControlToValidate="RestaurantId" InitialValue="Select" SetFocusOnError="True">*</asp:RequiredFieldValidator><input id="CurrentDate" type="hidden" runat="server"/></td> </tr> <tr><td style="width: 25%">Date and Time</td>

APTECH Computer Education

2009

Tunga Restaurant 27 ________________________________________________________________________ <td><asp:TextBox ID="ReservationDate" runat="server" MaxLength="10" Width="103px"></asp:TextBox>&nbsp;<asp:DropDownList ID="ReservationTime" runat="server"><asp:ListItem>HH</asp:ListItem><asp:ListItem>01</asp:ListItem><asp:L istItem>02</asp:ListItem><asp:ListItem>03</asp:ListItem><asp:ListItem>04</asp:ListIte m><asp:ListItem>05</asp:ListItem><asp:ListItem>06</asp:ListItem><asp:ListItem>07</ asp:ListItem><asp:ListItem>08</asp:ListItem><asp:ListItem>09</asp:ListItem><asp:ListI tem>10</asp:ListItem><asp:ListItem>11</asp:ListItem><asp:ListItem>12</asp:ListItem> <asp:ListItem>13</asp:ListItem><asp:ListItem>14</asp:ListItem><asp:ListItem>15</asp: ListItem><asp:ListItem>16</asp:ListItem><asp:ListItem>17</asp:ListItem><asp:ListItem >18</asp:ListItem><asp:ListItem>19</asp:ListItem><asp:ListItem>20</asp:ListItem><as p:ListItem>21</asp:ListItem><asp:ListItem>22</asp:ListItem><asp:ListItem>23</asp:Lis tItem><asp:ListItem>24</asp:ListItem></asp:DropDownList><asp:RequiredFieldValidato r ID="RequiredReservationDate" runat="server" ErrorMessage="Please enter Reservation Date" ControlToValidate="ReservationDate" SetFocusOnError="True">*</asp:RequiredFieldValidator> <asp:CompareValidator ID="CompareResDate1" runat="server" ErrorMessage="Date is not valid" ControlToValidate="ReservationDate" Operator="DataTypeCheck" SetFocusOnError="True" Type="Date">*</asp:CompareValidator>&nbsp; <asp:RequiredFieldValidator ID="RequiredReservationTime" runat="server" ErrorMessage="Please select Reservation Time" ControlToValidate="ReservationTime" InitialValue="HH" SetFocusOnError="True">*</asp:RequiredFieldValidator><br />(MM/DD/YYYY)</td> </tr> <tr><td style="width: 25%">No Of Persons</td> <td><asp:TextBox ID="CapacityOfAccommodation" runat="server" MaxLength="4" Width="56px"></asp:TextBox><asp:RequiredFieldValidator ID="RCapacityOfAccommodation" runat="server" ErrorMessage="Please enter no of persons" ControlToValidate="CapacityOfAccommodation" SetFocusOnError="True">*</asp:RequiredFieldValidator></td> </tr> APTECH Computer Education 2009

Tunga Restaurant 28 ________________________________________________________________________ <tr><td colspan="2" align="center"><asp:Button ID="CheckAvailability" runat="server" Text="Check Avalability" BackColor="#80FFFF" Font-Size="Smaller" /></td> </tr> <tr><td colspan="2" align="center"><asp:Label ID="Available" runat="server" Text="Availavle Please Enter your details" ForeColor="#004000" Visible="False"></asp:Label><asp:Label ID="NotAvailable" runat="server" Text="Not Available" ForeColor="Red" Visible="False"></asp:Label></td> </tr> </table> <table runat="server" cellpadding="2" cellspacing="1" id="Customer" width="100%"> <tr><td style="width: 25%">Name</td> <td><asp:TextBox ID="CustomerName" runat="server" MaxLength="50" Width="263px"></asp:TextBox></td> </tr> <tr><td style="width: 25%">Email Address</td> <td><asp:TextBox ID="Email" runat="server" MaxLength="50" Width="263px"></asp:TextBox></td> </tr> <tr><td style="width: 25%">Contact Number </td> <td><asp:TextBox ID="ContactNo" runat="server" MaxLength="30" Width="263px"></asp:TextBox></td> </tr> <tr><td colspan="2" align="center"><asp:Button ID="Submit" runat="server" Text="Reserver" BackColor="#C0C000" Font-Size="Smaller" /></td> </tr> </table> <asp:SqlDataSource ID="DSRestaurants" runat="server" ConnectionString="<%$ ConnectionStrings:TUNGAConnectionString %>" SelectCommand="SELECT RestaurantId, RestaurantName FROM TungaProperty_Restaurants ORDER BY RestaurantName"> APTECH Computer Education 2009

Tunga Restaurant 29 ________________________________________________________________________ </asp:SqlDataSource> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" /> </asp:Content>

ReservationSuccessfully
<%@ Page Language="C#" MasterPageFile="~/MPMain.master" AutoEventWireup="true" CodeFile="ReservationSuccessfully.aspx.cs" Inherits="ReservationSuccessfully" Title="Untitled Page" %> APTECH Computer Education 2009

Tunga Restaurant 30 ________________________________________________________________________ <asp:Content ID="Content1" ContentPlaceHolderID="ContentPage" Runat="Server"> <div style="color:Green; font-size:large; text-align:center"> Your Reservation Success Full.<br /> Please Make Note of your token No for Further Communication.<br /> <asp:Label ID="TokenNo" runat="server"></asp:Label></div> </asp:Content>

6.User Guide
A. System Requirements:

APTECH Computer Education

2009

Tunga Restaurant 31 ________________________________________________________________________

No. 1 2 3

Items
Operating System Database Software

Description
Windows 2000, XP SQL Server 2005 Visual Studio 2005,ASP.NET 2.0,.NET Framework 2.0,IIS4

B. Install and Launch the Project


Step 1: Copy the project to the InetPub folder on the local drive. Step 2: Launch the application using a web browser such as Internet Explorer. Ensure that the version of Internet Explorer will support ASP.NET 2.0.

7.Conclusion

APTECH Computer Education

2009

Tunga Restaurant 32 ________________________________________________________________________ Online facility in reserving dining rooms in the restaurants and online home delivery from restaurants will help in reducing time consumption. Wherever may be the person, he can just browse and reserve the dining rooms in the restaurants regardless of the distance in any emergency. Any person can use the online facility provided by the project easily.

APTECH Computer Education

2009

Potrebbero piacerti anche