This action might not be possible to undo. Are you sure you want to continue?
We wish to express our sincere thanks to our Honorable Principal Dr. P.Ram Mohan Rao for giving us permission for carrying out the project at COIGN Consultants Pvt Ltd, Hyderabad. We gratefully acknowledge the inspiring guidance, encouragement and continuous support of Mr.Karthik Reddy Senior Software Engineer, COIGN Consultants Pvt Ltd, Hyderabad. His helpful Suggestion and constant encouragement have gone a long way in the completion of this dissertation .It was a pleasure working under his alert, human and technical supervision. We express our deep gratitude towards our internal guide, Prof.Jayadev Gyani for his guidance, comments and encouragement during the course of present work. We are grateful to the Head, Department of Computer Science and Information Technology, Prof.Jayadev Gyani, for his valuable suggestions and encouragement during course of the work. We are greatly indebted to our college, Jayamukhi College of Engineering, which has provided us the healthy environment to drive us to achive our ambitions and goals. We owe our hearty regards to all other Proffesors and staff for their encouragement at each step and their assistance in completion of the project work. Last but not the least; we would like to thanks our friends for their co-operation and consistent support.
Modern Restaurant System
I COIGN Profile 1. INTRODUCTION
1.1 1.2 1.3 1.4 1.5 Purpose Document conventions Intended Audience and Reading Suggestions Goal Benefits
2. SYSTEM ANALYSIS
2.1 2.2 Existing System Proposed System
3. ARCHITECTURE 4. SYSTEM DESIGN
4.1 4.2 4.3 Module Description UML Diagrams E-R Diagrams Data Dictionary
Hardware and Software Requirements
Modern Restaurant System
5. ENVIRONMENT & TECHNOLOGY 6. TESTING
6.1 6.2 6.3 6.4 6.5 6.6 Testing objectives Levels of testing White box testing Black box testing Unit testing Integration testing
7. TEST CASES 8. SCREEN SHOTS 9. CONCLUSIONS 10. REFERENCES
A single order can consist of Menu Items to be supplied from different kitchens and bar counters. due to which there might be problems . 1 Dedicated beverages counter. It can be configured for Fine Dining Restaurants. Also he can know the amount he need s to pay. 2 bar counter. too.Such as: • Delay in serving • Misconception of the order • More requirement of manpower And many more. Discos & Nightclubs..Modern Restaurant System ABSTRACT In this mechanical world. When you have a restaurant spread on two floors. increasing the speed with which orders can be prepared and decreasing the wasted time of servers walking back and forth to the kitchen! When the customer feels to receive the bill he can just close the session so that the bill will be generated at the server end and also it will be displayed on the table screen.. Bars & Lounges. and Food Court with Prepaid System. Our Modern Restaurant System is a software application which can be implemented by Providing touch screen facility that puts your business at your fingertips and makes it easy. 30 tables each. Orders entered by the customer at the client station automatically display at the cooks station. In this project we are going to deal with three modules: 4 . Home Delivery. So our effort is being laid out in an area where we can help people to save their valuable time. 2 different kitchens. Quick Service / Fast Food and Cafeterias. the most precious thing which no person can buy with money i s “time”. This software enables the customer to view the menu card on the touch screen and order the items by himself with the touch of the finger on the screen.
Kitchen Production System: Customers order the items on the touch screen and these items will be displayed on screen in the kitchen.Modern Restaurant System Central Management System: This is the centralized location where the menu is designed and relayed to all ordering terminals. Features of Modern Restaurant System: Regional language support Easy capture of Customer Information Display Customer's Last Visit & Billing Information Touch Screen Interface / Cash Register Interface This system attracts wide range of customers Give customers what they want and improve your customer satisfaction Reduce manpower cost Fast billing counters & happy customers 5 . Ordering screen: You can place order here and can view the bill amount and close the session.
Modern Restaurant System 6 .
too.2 Document Conventions In this SRS document. 0. This software enables the customer to view the menu card on the touch screen and order the items by himself with the touch of the finger on the screen. INTRODUCTION 0.1 Purpose Our Modern Restaurant System is a software application which can be implemented by providing touch screen facility that puts your business at your fingertips and makes it easy.Modern Restaurant System 1. we have used the following format: For Headings: Font: 16pt Font-face : Times New Roman Font-weight :Bold For Sub Headings: Font: 14pt Font-face : Times New Roman Font-weight :Bold For Content : Font: 11pt Font-face: Times New Roman Font-weight: Normal KPS: DB: OS: Kitchen Production System Database Operating System SRS: Software Requirements Specification Future scope for this project: Italics 7 .
. 1. testers.Modern Restaurant System 0. users and marketing staff. Delay in serving b. Non Functional Requirements. Misconception of order c.5 Benefits • • • • • • • Increase your number of customers Fastest implementation (just a snap!) Increase the number of sales per customer Give customers what they want and improve your customer satisfaction Reduce manpower cost Reduce the erroneous data entry Fast billing counters & happy customers 8 . More requirement of manpower……. System Features 3. Overall Description 2.4 Goal To overcome the following consequences: a. External Interface Requirements 4. The suggested sequence for reading SRS is: 1. 1.3 Intended Audience and Reading Suggestions This SRS is mainly intended for developers.
When the customer feels to receive the bill he can just close the session so that the bill will be generated at the server end and also it will be displayed on the table screen.1 Existing System: In this system the customer is given a menu card from which he needs to select the items and orders are noted down by the waiter manually. Also he can know the amount he need to pay. On the request of the customer for the bill. who instructs the chefs. MRS is a windows based application developed in .Net. This application is concerned with 3 modules: • • • Back Office KPS User Terminal This software enables the customer to view the menu card on the touch screen and order the items by himself with the touch of the finger on the screen.Modern Restaurant System 2 SYSTEM ANALYSIS 2.. the waiter informs the cashier to generate the bill and gets back the bill to the customer for payment. Misconception of order c. Orders entered by the customer at the client station automatically display at the cooks station. To avoid all these we will switch to Modern Restaurant System. the order information along with the bill details automatically send to the server where the bill is generated avoiding misconceptions in the bill 9 . Due to this there are many drawbacks such as : a. Delay in serving b. More requirement of manpower……. 2. increasing the speed with which orders can be prepared and decreasing the wasted time of servers walking back and forth to the kitchen! When the customer closes the session.2 Proposed System: Our MRS is an innovative solution for restaurants which can create craze among the youngsters. Then the waiter submits this order to the kitchen head.
3 USER TERMINALS Table 1 Table N 1: Signal send to Back Office when a table is occupied by customer 2: Signal send to Back Office when customer request for the bill 3:Signal send to Back Office when customer registers 4: Menu Card displayed on each terminal is updated by Back Office through this signal. 2. 6: Signal send to KPS when customer vacates table. 5: Ordered Items are send to Kitchen room. LIFE CYCLE MODEL USED 10 .Modern Restaurant System 3 ARCHITECTURE BACK OFFICE 7777777777 Configuration update DB 6 Kitchen production system 5 4 1.
RAD (rapid application development) is a concept that products can be developed faster and of higher quality through: • • • • • Gathering requirements using workshops or focus groups Prototyping and early. RAD USES HYBRID TEAMS • • Teams should consist of about 6 people.Modern Restaurant System The life cycle model which we use in our application is RAD (Rapid Application Development) model. including both developers and full-time users of the system plus anyone else who has a stake in the requirements Developers chosen for RAD teams should be multi-talented "renaissance" people who are analysts. designers and programmers all rolled into one B. reiterative user testing of designs The re-use of software components A rigidly paced schedule that defers design improvements to the next product version Less formality in reviews and other team communication CHARACTERISTICS OF RAD A. RAD USES SPECIALIZED TOOLS THAT SUPPORT • • • • • • • • • "visual" development creation of fake prototypes (pure simulations) creation of working prototypes multiple languages team scheduling teamwork and collaboration use of reusable components use of standard APIs 11 .
Requirements and change requests are "time boxed".Modern Restaurant System C. The product is aimed at a highly specialized IS (information systems) market. RAD USES ITERATIVE. Product distribution will be narrow (in-house or vertical market). If necessary to stay "in the box. Changes that cannot be accommodated within existing timeboxes are eliminated. Major use can be made of preexisting class libraries (APIs)." secondary requirements are dropped. d. Project scope (macro-schedule) is constrained. System can be split into several independent modules. Designers review the prototype. The project has strong micro-schedule constraints (time boxes). Customers and developers meet to review product together. refine requirements. RAD TENDS TO WORK WHEN • • • • • • • • • • The application will be run standalone. • • WHEN RAD WORKS AND WHEN IT DOESN'T A. 12 . EVOLUTIONARY PROTOTYPING ITERATE UNTIL DONE a. Customers talk. The required technology is more than a year old. c. • • Developers listen. generate change requests. Developers build / evolve prototype based on current requirements. f. Performance is not critical. evolve their requirements. Customers try out the prototype. Reliability is not critical. b. FOCUS GROUP meeting e.
code generators. RAD becomes QADAD (Quick And Dirty Application Development). Few plug-in components are available. 4GLs). Product development can't take advantage of high-end IS tools (e. The product is mission . RAD methods are used to build operating systems (reliability target too high for RAD). code reuse) Increased user involvement (because they are represented on the team at all times) 13 .or life . computer games (performance target too high for RAD). EVALUATION OF RAD: 1. Optimal performance is required. intermediate code) Development conducted at a higher level of abstraction (because RAD tools operate at that level) Early visibility (because of prototyping) Greater flexibility (because developers can redesign almost at will) Greatly reduced manual coding (because of wizards. The system cannot be modularized (defeats parallelism).g. ADVANTAGES OF RAD • • • • • • • Buying may save money compared to building Deliverables sometimes easier to port (because they make greater use of high-level abstractions.Modern Restaurant System B. scripts..critical. RAD TENDS TO FAIL WHEN • • • • • • • • • • Application must interoperate with existing programs. Technical risks are high due to use of "bleeding" edge technology. Product distribution will be wide (horizontal or mass market).
. create legal problems • • • • Requirements may not converge(because the interests of customers and developers may diverge from one iteration to the next) Standardized look and feel (undistinguished. a B-I-G problem Reduced features(because of time boxing. sacrifice needed functionality ii. software reuse) Reliance o n third-party components may .. lackluster appearance) Successful efforts difficult to repeat(no two projects evolve the same way) Unwanted features(through reuse of existing components) 14 . add unneeded functionality iii. i. DISADVANTAGES • • • • • • • • • • Buying may not save money compared to building Cost of integrated toolset and hardware to run it Harder to gauge progress (because there are no classic milestones) Less efficient(because code isn't hand crafted) Loss of scientific precision(because no formal methods are used) May accidentally empower a return to the uncontrolled practices of the early days of software development More defects(because of the "code-like-hell" syndrome) Prototype may not scale up.Modern Restaurant System • • • • Possibly fewer defects (because CASE tools may generate much of the code) Possibly reduced cost (because time is money. also because of reuse) Shorter development cycles (because development tilts toward schedule and away from economy and quality) Standardized look and feel (because APIs and other reusable components give a consistent appearance) 2.
Modern Restaurant System 15 .
Modern Restaurant System 4 SYSTEM DESIGN Introduction: Design is the first step in the development phase for any technique and principles for the purpose of defining a device. Once the software requirement have been analyzed and specified the software design involves three technical activities design.1 Modules of the project 1. coding. a process or system in sufficient details to permit its physical realization. Design is the place where quality is fostered in development software design is a process through which requirements are translated into a representation of software. Software design is conducted in two steps. Kitchen Production System 3. Design is the only way to accurately translate the customer requirements into finished software or a system. generation and testing that are required to build and verify the software. The design activities are of main importance in this phase. Preliminary design is concerned with the transformation of requirement into data. User Terminal 16 . 4. Back Office 2. Because in the activity. These decisions have the final bearing upon reliability and maintainability of the system. decision ultimate affecting the success of the software implementation and its ease of maintained are made.
Facilities provided by this module are: • Generates unique id. edit. 1. For configuration of new catalogs. It is of very high priority. Not only Server System but also to get the information about the Systems connected in the Network. delete and cancel options provided 17 . • It designs the menu profiles for the table terminals at certain intervals. The user has to give the IP address or Domain name. • The manager can configure new : o o Terminals such as either User Terminal / KPS. BACK OFFICE • • It is the core part of the product. two types of screens are available: o Browse Screen: This is the screen where the manager can be with add.Modern Restaurant System System Overview: This Module is used to get the System General Information. when the customer enters his/her details. Item Types and Items and activates menu profiles.
should be automatically placed in this list indicating that the respective table’s order is in progress. 18 .Modern Restaurant System o Detail Screen: This is the screen where the manager can view the whole details about the selected row. then the respective table terminal no. • Monitors the status of the table terminals. • Generates the bill for respective table terminal. Stimulus / Response Sequences : • The server should be provided with a facility of maintaining three list boxes to ease the task of monitoring. They are : o In Progress: When the customer sends the order.
should be placed in this list manually by the manager. Id of the signal 3. appear in the vacant list. if containing any orders should be cleared. Requirements: 1. assigned one for each table terminal. Order Signal: Table number. Customer Details: Name. • Whenever the server sees a table terminal no. should be placed in this list manually by the manager. Bill Signal: Table number. Id of the signal 2. KITCHEN PRODUCTION SYSTEM • Here the module consists of only a screen which should be divided into slots. The orders are being served in a FIFO manner. Id 2. o Vacant: When the customer pays the bill. a signal should be sent to the KPS so that the slot assigned for that particular table. then that particular table terminal no. 19 .Modern Restaurant System o Pending Payment: When the customer clicks the Bill button then that particular table terminal no. • • This module displays the items ordered by the respective table terminal.
Order details 2. • For distinguishing between the items that have been already served and those which have been not. . Terminal Signal: Table terminal no. coloring concept should be provided like o Red for those items which have been already served and green for those which are yet to be served. 3. Timestamp.Modern Restaurant System Stimulus / Response Sequences: • This is just like a screen where the waiters can look into their respective table’s order details and later serve them when they get prepared. Clear Signal: Table terminal no. USER TERMINAL 20 . Requirements: 1.
• The customer can request for the bill. • The customer can view the menu and place his order by selecting the items displayed on the Touch screen with the finger.Modern Restaurant System • This module enables the customer to enter his details for further benefits provided by the hotel. Stimulus / Response Sequences: • If the customer is regular. then he should enter his / her id and then only he /she can view the menu. 21 .
then he should enter his / her name. Requirements: 1. for which an id will be generated and then he /she can see them menu.Modern Restaurant System • If not. Item Name 22 . Selecting the Language: English /Telugu 2. Old User: Id 4. • While ordering. the customer can lessen the quantity of any item ordered or increase or delete any item if it is selected. New User: Name 3.
2 UML Diagrams The Unified Modeling Language (UML) is a standard language for specifying. and documenting the artifacts of software systems. packages and objects. Using the UML helps project teams communicate. as well as for business modeling and other non-software systems. and validate the architectural design of the software. 23 . Each UML diagram is designed to let developers and customers view a software system from a different perspective and in varying degrees of abstraction. This consists of the vertical dimension (time) and horizontal dimension (different objects). The UML represents a collection of best engineering practices that have proven successful in the modeling of large and complex systems. The UML uses mostly graphical notations to express the design of software projects. inheritance. The UML is very important parts of developing object oriented software and the software development process. visualizing. constructing. • Collaboration Diagram displays an interaction organized around the objects and their links to one another. Numbers are used to show the sequence of messages. It also displays relationships such as containment. explore potential designs.Modern Restaurant System PROJECT DESIGN 4. Class Diagram models class structure and contents using design elements such as classes. associations and other Interaction Diagrams: • Sequence Diagram displays the time sequence of the objects participating in the interaction. UML diagrams commonly created in visual modeling tools include Use Case Diagram displays the relationship among actors and use cases.
Modern Restaurant System User Classes and Characteristics Customer: The customer should just select the required items. Kitchen Supervisor: He/She assigns tables to servers Waiter: Serves the items to the tables which are assigned to him Supervisor: Monitors the entire session in dining hall BackOffice Manager: Configures item list on day to day process. monitors the status of each table and generates bill when requested by customer 24 .
Modern Restaurant System USECASE DIAGRAM FOR MRS configuration MANAGER updation bill generation order recieve items CUSTOMER eat pay bill KITCHEN CHEF see the display prepare the items send the items close the session 25 .
Modern Restaurant System SEQUENCE DIAGRAM FOR CMS MANAGER DATABASE PROFILE TABLE TERMINAL configuration update the profile update the menu register bill generation update the user terminals 26 .
Modern Restaurant System C OLLABR ATION DIAGR AM FOR C MS PROFIL E TABLE TERM INAL 2: update the profile 4: register 5: bill generation 6: update the user terminals 3: update the menu DATABA SE 1: configuration MA NAG ER 27 .
Modern Restaurant System SEQUENCE DIAGRAM FOR KPS Kitchen Chef User Terminal menu kitchen display screen order prepare the items according to the display item code for the items prepare items send the items close the session after leaving of customer 28 .
Modern Restaurant System C OLLABRATION DIAGRAM FOR KPS menu User Terminal 1: order 3: item code for the items 4: prepare items 5: send the items kitchen display screen 2: prepare the items according to the display Kitchen Chef 6: close the session after leaving of customer 29 .
Modern Restaurant System SEQUENCE DIAGRAM FOR UT CUSTOMER register DATABASE ITEM TYPE ID DISPLAY order the items according to the id order is displayed on the display side of chef pay the bill close the session 30 .
Modern Restaurant System C O L L A B R A T IO N D IA G R A M F O R U T 1: regis ter 4: pay the bill 5: c los e the s es s ion CUS TO MER DA TA B A SE 2: order the item s ac c ording to the id 3: order is dis play ed on the dis play s ide of c hef DIS P LA Y ITE M TY P E ID 31 .
Select a Database and Schema (or All Schemas) 3. Click Next to generate the diagram 32 . To view an ER Diagram: 1. All objects matching the selected schema & object types will appear in the right panel. Select one or more objects to be scripted. Launch the ER Diagram Generator dialog by: o o Selecting Tools -> ER Diagram Generator from the Menu Bar OR Selecting Tools -> ER Diagram Generator from the right-click pop-up menu on a database object in the Schema Browser 2. select one or more types of objects to be scripted (Tables. 4.3 E-R Description: Entity Relationship (ER) Diagram Generator helps users achieve a better understanding of their database schema by displaying the structure in a graphical format.Click the green check button to select all and the red X button to deselect all.Modern Restaurant System 4. 5.Click the green check button to select all and the red X button to deselect all. Views or Both). In the left panel.
9. Once the diagram is generated. 10. select an entry from the Layout dropdown list Supported layouts include: • • • • • • • • • Box Circle Hierarchical Tree Radial Tree Moen Fruchterman-Reingold (FR) Annealing Inverted Self Organizing Map (ISOM) 8. To save an image of the current diagram. The Entity View drop-down list determines the amount of detail displayed for each entity in the diagram. 33 . 7.Modern Restaurant System 6. To change the layout of the diagram. click Print. the ER Diagram Viewer will open and display the new diagram. click Save Image As. To print a hard-copy of the current diagram. Select Full to view all attributes or Header to view only the entity name. Click on an entity to display more column & constraint detail in the lower left panel.
Modern Restaurant System E-R DIAGRAM 34 .
Modern Restaurant System 35 .
To facilitate analysis of the details in order to evaluate characteristics and determine where system changes should be made. including name. To Document the features of the system 4. description. To locate errors and omissions in the systems. Uses of Data Dictionary: 1. contents and organization. Identifies processes where the data are used and where immediate access to information needed. To communicate a common meaning for all system elements 3. Servers as the basis for identifying database requirements during system design. aliases. 5. To manage the detail in large systems 2.Modern Restaurant System 4.4 DATA DICTIONARY The logical characteristics of current systems data stores. 36 .
Modern Restaurant System ITEM_TYPE TABLE: COLUMN NAME Item_Type_Id Item_Type_Nam e DATA TYPE LENGTH ALLOW NULLS DESCRIPTION Int marcher 2 50 Primary key ITEM TABLE: COLUMN NAME Item_Id ItemName ItemPrice Veg_flag Graphic Item_Type_Id DATA TYPE int varchar int int image int ALLOW NULLS DESCRIPTION Primary key Foreign key LEVEL TABLE: COLUMN NAME Level_Id Level_Name Profile_Id DATA TYPE int Varchar int LENGTH 2 50 2 ALLOW NULLS - DESCRIPTION Primary key Foreign profile table key reference from PROFILE: 37 .
Modern Restaurant System COLUMN NAME Profile_Id Profile_Name DATA TYPE int varchar LENGTH 2 50 ALLOW NULLS - DISCRIPTION Primary key - TERMINAL: COLUMN NAME Terminal_Id Terminal_Name Terminal _Type DATA TYPE int varchar varchar LENGTH 2 50 1 ALLOW NULLS DISCRIPTION Primary key - LEVEL_ITEM_MAPPING: COLUMN NAME Mapping_Id Item_Id Level_Id DATA TYPE int int int LENGTH 2 2 2 ALLOW NULLS DISCRIPTION Primary key Foreign key Foreign key 38 .
NET Framework 2.recommended 256 MB Pentium 3 or Pentium 4 processor LAN card Cables Switches Hubs Touch screen sheets o SOFTWARE REQUIREMENTS 39 .Thermal printer • CLIENT o HARDWARE REQUIREMENTS RAM (128 MB) .0 SQL server 2000 Windows 2000 SP4 or XP SP2 Windows server 2003 SP2 Receipt Printer Software .Modern Restaurant System 4.5 GB (other than OS space) Pentium 4 processor or higher o SOFTWARE REQUIREMENTS .5 Operating Environment Deployment Environment: • SERVER o HARDWARE REQUIREMENTS RAM (256 MB) recommended 512 MB Hard Disk – 1.
0 Development Environment • SERVER o HARDWARE REQUIREMENTS RAM (256 MB) recommended 512 MB Hard Disk – 1.NET Framework 2.Modern Restaurant System Windows 2000 SP4 or higher .Net Framework 2.0 C# 2.Dot matrix printer 40 .0 SQL server 2000 Windows 2000 SP4 or XP SP2 Windows server 2003 SP2 Receipt Printer Software.5 GB (other than OS space) Pentium 4 processor or higher o SOFTWARE REQUIREMENTS .
Modern Restaurant System 5.Net frame work supports software lifecycle • • • • Development Debugging Deployment Maintenance 41 .Net frame is a set of technologies for developing and using components to create: • • • Web forms Web services Windows applications The . ENVIRONMENT & TECHNOLOGY Introduction to .NET The .
CLR accepts the IL code and recompiles it to machine code. IL always complied to native code before being executed.Net languages are not compiled to machine code. In cases where there is not enough memory it is discarded thus making JIT process interpretive.Modern Restaurant System The . Common language Runtime Services: • • • • • Code management Conversion of IL to native code Loading and execution of managed code Creation and management of metadata Verification of type safety 42 .NET Framework . The recompilation is just-in-time (JIT) meaning it is done as soon as a function or subroutine is called. They are compiled to an Intermediate Language (IL). All languages compile to IL (managed code). The JIT code stays in memory for subsequent calls.
It can be considered as a local copy of the relevant portions of the database.0 or alter and the Ole Db Data Provider consists of the following component classes: a.NET ARCHITECTURE: ADO. and optimized facilities for interacting with a database. The . A Data Provider is a set of related components that work together to provide data in an efficient and performance driven manner. an Oracle database or from a Microsoft Access database. in-memory representation of data. changes can be made back to the central database for updating. The Connection object which provides a connection to the database. Support the n-tier programming model. The data is Dataset can be loaded from any valid data source like Microsoft SQL Server database.NET Framework currently comes with two Data Providers: the SQL Data Provider which is designed only to work with Microsoft’s SQL Server 7.Modern Restaurant System ADO.NET relies on two components: Dataset and Data Provider. In creating ADO.NET Framework. The Command object which is used to execute a command. Microsoft embraced the following design goals: • • • Leverage current ActiveX Data Objects (ADO) knowledge. Data Provider: The Data Provider is responsible for providing and maintaining the connection to the database. 43 . all native to the . When the use of this Dataset is finished. tight integration with XML.NET was designed to meet the needs of new programming model: disconnected data architecture. Dataset: The dataset is a disconnected. common data representation with the ability to combine data from multiple and varied data sources. The Dataset is persisted in memory and the data in it can be manipulated and updates independent of the database. Integrate XML support Data Access in ADO. b.NET.
SQL 44 .Modern Restaurant System c. Microsoft Visual Studio .0 or later.NET provides two types of Connection classes: the Sql Connection object. which can provide connections to a wide range of database types like Microsoft Access and Oracle. and the OleDb Connection object. d. connected record set. The Data Reader object which provides a forward-only.NET: Component Classes of Data Providers: The Connection Object creates the connection to the database. The Connection object contains all of the information required to open a connection to the database. The Command Object is represented by two corresponding classes: Sql Command and OleDb command. ARCHITECTURE OF ADO. The Data Adapter object which populates a disconnected Dataset with data and performs update. The Command Objects are used to execute stored procedures on the database. Command objects are used to execute commands to a database across a data connection. which is designed specifically to connect to Microsoft SQL Server 7. read only.
Execute Reader method returns a SqlDataReader object. Unlike other components of the Data Provider. Execute Scalar: Returns single value from a database query.Modern Restaurant System Commands. Execute Reader: Returns a result set by way of a Data Reader object. the DataReader provides the lowest overhead in terms of system performance but requires the exclusive use of an open Connection object for the lifetime of the DataReader. Command objects provide three methods that are used to execute commands on the database: Execute Non Query: Executes commands that have no return values such as INSERT. the Data Reader is returned as the results of the Command object’s Execute Reader method. The Data Reader Object provides a forward-only. The data adapter is used either to fill a Data Table or Dataset with data from database with its Fill method. or return complete tables directly. Rather. The DataAdapter is the class at the core of ADO. read-only. and the OleDbCommand. Data Reader objects cannot be directly instantiated. The DataAdapter provides four properties that represent database commands: SERIALIZATION 45 . The DataReader can provide rows of data directly to application logic when you do not need to keep the data cached in memory. the DataAdapter can commit the changes to the database by calling the Update method. UPDATE or DELETE. After the memory-resident data has been manipulated. It is essentially the middleman facilitating all communication between the database and Dataset. The SqlCommand.Net's disconnected data access. connected stream record set from a database.ExecuteReader method returns on OleDb Data Reader object. Because only one row is in memory at a time.
the only requirement is that the XML stream conforms to the specified XML Schema definition language (XSD) schema. For example. Specify the name of an element or attribute if a field or property name is inappropriate. over the network. you can share an object between different applications by serializing it to the Clipboard. It features a title.NET Framework features two serializing technologies: • Binary serialization preserves type fidelity. which makes it an attractive choice Advantages of Using XML Serialization The XmlSerializer class gives you complete and flexible control when you serialize an object as XML. For example. which converts a stream into an object. This is useful when you want to provide or consume data without restricting the application that uses the data. Another advantage of XML serialization is that you have no constraints on the applications you develop. for example. The complement of serialization is deserialization. which is useful for preserving the state of an object between different invocations of an application. Remoting uses serialization to pass objects "by value" from one computer or application domain to another. The . it is an attractive choice for sharing data across the Web. You can develop an application that processes the XML data in any way you want. In either case. and so forth. you can apply attributes that control serialization to classes and members to ensure that the XML output conforms to a specific schema. these processes allow data to be easily stored and transferred. If you are creating an XML Web service. to a disk. 46 . author. XmlSerializer enables you to: • • • Specify whether a field or property should be encoded as an attribute or an element. and ISBN number element. publisher. XML serialization serializes only public properties and fields and does not preserve type fidelity. You can serialize an object to a stream. to memory. Together. Because XML is an open standard. as a book order. SOAP is likewise an open standard. Imagine a schema that is used to describe books. as long as the XML stream that is generated conforms to a given schema. or as an inventory of books. Specify an XML namespace to use.Modern Restaurant System Serialization is the process of converting the state of an object into a form that can be persisted or transported.
Type identity and assembly information are not included. use the BinaryFormatter class rather than XML serialization.Modern Restaurant System XML Serialization Considerations The following should be considered when using the XmlSerializer class: • • • The Sgen.cs) files and compiles them into . The Add method's parameter must be consistent (polymorphic) with the type returned from the IEnumerator. and it must have a public Count property of type integer. Only public properties and fields can be serialized. 47 .cs) files and compiles them into creates C# (. A class that implements ICollection in addition to IEnumerable (such as CollectionBase) must have a public Item indexed property (an indexer in C#) that takes an integer.exe tool is expressly designed to generate serialization assemblies for optimum performance.Current property returned from the GetEnumerator method. If you need to serialize non-public data. The parameter passed to the Add method must be the same type as that returned from the Item property. • • XmlSerializer creates C# (. The serialized data contains only the data itself and the structure of your classes. • • • A class must have a default constructor to be serialized by XmlSerializer. XmlSerializer can process classes that implement IEnumerable or ICollection differently if they meet certain requirements. A class that implements IEnumerable must implement a public Add method that takes a single parameter. Methods cannot be serialized. Properties must have public accessors (get and set methods). as follows. or one of that type's bases.
<items> <iid>3</iid> <iname>corn soup</iname> <iprice>40</iprice> <ipath>D:\veg\csoup.jpg</ipath> <isveg>True</isveg> </items> .<root> .<items> <iid>1</iid> <iname>Tomato soup</iname> <iprice>40</iprice> <ipath>D:\veg\tomatosoup.<items> <iid>8</iid> <iname>dosa</iname> <iprice>20</iprice> <ipath>D:\veg\dosa.0" standalone="yes" ?> .<items> <iid>4</iid> <iname>chicken soup</iname> <iprice>60</iprice> <ipath>D:\nonveg</ipath> <isveg>False</isveg> </items> .jpg</ipath> <isveg>True</isveg> </items> .<items> <iid>7</iid> <iname>idly</iname> <iprice>20</iprice> <ipath>D:\veg\idli.jpg</ipath> <isveg>True</isveg> </items> 48 .<items> <iid>5</iid> <iname>hot&sour chicken soup</iname> <iprice>60</iprice> <ipath>D:\nonveg</ipath> <isveg>False</isveg> </items> .Modern Restaurant System Xml file format: <?xml version="1.jpg</ipath> <isveg>True</isveg> </items> .<items> <iid>2</iid> <iname>hot&sour soup</iname> <iprice>50</iprice> <ipath>D:\veg\hot&sour.jpg</ipath> <isveg>True</isveg> </items> .
Modern Restaurant System .<level> <iid>0</iid> <iname>soups</iname> <item22>1</item22> <item23>2</item23> <item24>3</item24> <item25>4</item25> <item26>5</item26> </level> ..jpg</ipath> <isveg>True</isveg> </items> .<level> <iid>1</iid> <iname>tiffins</iname> <item22>7</item22> <item23>8</item23> <item24>11</item24> <item25>12</item25> <item26>14</item26> <item27>16</item27> </level> </root> 49 .<items> <iid>11</iid> <iname>puri</iname> <iprice>30</iprice> <ipath>D:\veg\puri.
Modern Restaurant System SCREENSHOTS 1. Welcome Screen – The first screen on the table terminal 50 .
Registration Page on table terminal 51 .Modern Restaurant System 2.
Registration Page on table terminal – On clicking New user.Modern Restaurant System 3. 52 . user name text box is enabled.
Registration Page on table terminal – On clicking existing user. 53 . user id text box is enabled.Modern Restaurant System 4.
Modern Restaurant System 5. Language selection Page on table terminal
Modern Restaurant System
6. Menu screen on table terminal
Modern Restaurant System 7. Menu screen on table terminal – Item list showing selection item
Modern Restaurant System 8. Menu screen on table terminal – Alert asking user to select an item prior to clicking delete 57 .
58 . Decremented on clicking delete button. Menu screen on table terminal – Observe the decremented count of item “idli”.Modern Restaurant System 9.
KPS Terminal – screen showing the items received from table 1. 59 .Modern Restaurant System 10.
Modern Restaurant System 11. 60 . Observe the color change – items in red are order first and items in black are order just now.KPS Terminal – screen showing the items received from table 1.
Modern Restaurant System 6. branches. White box test also needs the tester to look into the code and find out which unit/statement/chunk of the code is malfunctioning. White box testing is also called as glass. The tests written based on the white box testing strategy incorporate coverage of the code written. TESTING 6.e. open box or clear box testing. The basic levels of testing are: Client Needs Requirements Design Code Acceptance Testing System Testing Integration Testing Unit Testing 6. statements and internal logic of the code etc. the tester has to deal with the code and hence is needed to possess knowledge of coding and logic i. internal working of the code.2 Levels of testing In order to uncover the errors present in different phases we have the concept of levels of testing.3 White box testing White box testing strategy deals with the internal logic and structure of the code. In order to implement white box testing. paths. 6. 61 . structural.1 Testing objectives To deliver a bug free high quality application with almost zero bugs for complete usage experience to the end users.
4 Black box testing Black Box Testing is not a type of testing. regression testing). While this method can uncover unimplemented parts of the specification. The types of testing under this strategy are totally based/focused on the testing for requirements and functionality of the work product/software application. A unit test provides a strict.5 Unit testing In computer programming. written contract that the piece of code must satisfy. procedure. integration. The higher the level. Black box testing is sometimes also called as "Opaque Testing". 62 .e.. function. As the name "black box" suggests. system and acceptance.Modern Restaurant System 6. it can be quickly identified and fixed. This method of test design is applicable to all levels of software testing: unit. it instead is a testing strategy. it affords several benefits. As a result. and make sure the module still works correctly (i. functional testing. "Functional/Behavioral Testing" and "Closed Box Testing". etc. one cannot be sure that all existent paths are tested. mock or fake objects as well as test harnesses can be used to assist testing a module in isolation. Ideally. the more one is forced to use black box testing to simplify. The procedure is to write test cases for all functions and methods so that whenever a change causes a fault. Unit testing allows the programmer to refractor code at a later date. Unit testing is typically done by developers and not by software testers or end-users. while in object-oriented programming. 6. which may belong to a base/super class. abstract class or derived/child class. unit testing is a procedure used to validate that individual units of source code are working properly. which does not need any knowledge of internal design or code etc. and hence the bigger and more complex the box. The goal of unit testing is to isolate each part of the program and show that the individual parts are correct. In procedural programming a unit may be an individual program. the smallest unit is a method. no knowledge of internal logic or code structure is required. A unit is the smallest testable part of an application. each test case is independent from the others.
e. 63 . unit testing. through the inherent practice of sustained maintenance. are exercised through their interfaces using black box testing. 6. The purpose of integration testing is to verify functional. unit tests will continue to accurately reflect the intended use of the executable and code in the face of any change. up-to-the-second accuracy can be maintained. for example across procedure calls or process activations. Integration testing takes as its input modules that have been unit tested. Simulated usage of shared data areas and inter-process communication is tested and individual subsystems are exercised through their input interface. abbreviated I&T) is the phase of software testing in which individual software modules are combined and tested as a group. groups them in larger aggregates.Modern Restaurant System Readily-available unit tests make it easy for the programmer to check whether a piece of code is still working properly. and delivers as its output the integrated system ready for system testing. Depending upon established development practices and unit test coverage. These "design items". In continuous unit testing environments.e. It follows unit testing and precedes system testing. Good unit test design produces test cases that cover all paths through the unit with attention paid to loop conditions. success and error cases being simulated via appropriate parameter and data inputs. and this is done after testing individual modules. assemblages (or groups of units). i. Test cases are constructed to test that all components within assemblages interact correctly. performance and reliability requirements placed on major design items.6 Integration testing Integration testing (sometimes called Integration and Testing. applies tests defined in an integration test plan to those aggregates. i.
Modern Restaurant System 7. TEST CASE Terminal Registration: TEST CASE: 1 FUNCTION Name EXPECTED REUSLTS Should allow name by clicking on onscreen keyboard ACTUAL LOW HIGH PRIORITY RESULTS PRIORITY allows user to -------------------- user to enter his enter his name Yes layout Select language Language should displayed Id selected Should database Display be language and should select enter Enter the id -------------------Yes -------------------Yes the id given by 64 .
Modern Restaurant System Menu Screen: TEST CASE 2: FUNCTION Tab Control EXPECTED REUSLTS Shows all levels ACTUAL RESULTS the Shows all levels the LOW PRIORITY HIGH PRIORITY --------------------Delete Delete selected only item the Delete selected only --------------------Delete all Delete Which all the Delete items --------------------is all the items order by us displayed on tree Send view We send all the We send all the items to the kps items to the kps -------------------bill After the order Bill is generated we request for bill to the manager --------------------item the Yes Yes Yes Yes Yes 65 .
Items ordered Displayed item first order will be displayed on the screen on the kitchen ordered have color ----------------------------------------- Yes side List Box View.Modern Restaurant System KPS Screen: TEST CASE 3: FUNCTION EXPECTED ACTUAL LOW HIGH PRIORITY REUSLTS RESULTS PRIORITY List Box View.Old ordered items Newly second under transaction order color should be items same changed and new different another color items item should have from old ordered Yes 66 .
We have developed the project with utmost care at each level of software development life cycle to achieve a high quality product. 67 .Net 2.0 for front end & business logic and SQL Sever 2000 for database.Modern Restaurant System 8 CONCLUSIONS The project entitled” Modern Restaurant System” is developed using Microsoft . The final product provides good user friendly interfaces for ease of usage to suit the market.
com – A leading Hospitality software provider C# beginner’s guide – Wrox publications 68 .msdn.radiantsystems.Modern Restaurant System 9 REFERENCES • • • www.com – Microsoft Developer Network www.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.