280 likes | 452 Views
Enterprise .NET 1 CA - presentation. Team 07. Introduction. SingAir Online Ticketing System (SOTS) is a web based internet booking system with the following features : Registered Users Search Flights Self Register for booking Flight Booking and Cancellation Track booking SingAir Staffs
E N D
Introduction SingAir Online Ticketing System (SOTS) is a web based internet booking system with the following features : • Registered Users • Search Flights • Self Register for booking • Flight Booking and Cancellation • Track booking • SingAir Staffs • Manage Flight schedules • Manage Airports • User Administration • Track customer booking • Reporting
Continue after log in Continue after log in Booking step 3 – Auto Fill in Passenger Details
Guiding principles • Layered architecture • User Interface, • Business Logic and • Data handling. • DAL – Data Access Layer • All Data handling must be done in this layer • Implement the DAO Pattern • BLL – Business Logic Layer • All Business Logic must be in this layer • Implement the Façade for BLL and the Presentation Layer need to interact with Façade only. • Implement the Factory Pattern to get specific Business Entity • PL – Presentation Layer • All User Interface must be in this layer • WebForm UI will adopt the PageController Pattern • UI with minimal rendering control and all the transaction related logic must be in the PageController • Core • Common Functionalities
Architectural Diagram Client Browsers Web Forms and MVC Presentation Layer (Singair.PL) Core (Constants, Common Functionalities) (Singair.Core) Page Controller/Controller Business Logic Layer (Singair.BLL) Business Facade Data Access Layer (Singair.DAL) DAO Factory
Sequence diagram for BookFlight To be displayed from Rational Rose
Integration of MVC with ASP.NET Application Add references to existing ASP.NET application System.Web.Routing,System.Web.Abstractions,System.Web.Mvc Enable ASP.NET MVC in ASP.NET – web.config Routing Configuration – Global.asax public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{resource}.aspx/{*pathInfo}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Airport", action = "Index", id = UrlParameter.Optional } // Parameter defaults ); } protected void Application_Start() { RegisterRoutes(RouteTable.Routes); }
Ending with • Demo of SingAir Ticketing System