tblShowtimes:- Select tblEmployee -> Create -> Form Wizard - Select 4 fields EmployeeID, FirstName, LastName, PhoneNumber -> Next -> Columnar -> Next - Select “Open the form to view orr
Trang 1I Introduction abouttheMovie Ticket Sales Management 1
II System analysis 1
a Investigation of the business 1
b Database modeling (ERD) 2
III System Design 3
a Database Design (DSD) 3
b Form and design 4
IV System Implementation: 5
a Table creation: 5
b Form creation 7
c Querycreation 9
Figure 5 QryTotalrevenuebyDate 11
Figure 6 qryTotalRevenuebyEmployee 11
Figure 7 qryTotalRevenuebySeatType 12
d Report creation 12
V User Instructions 13
Trang 2Table Of Figures
Figure 1 2
Figure 2 3
Figure 3 9
Figure 4 10
Figure 5 11
Figure 6 11
Figure 7 12
Trang 3I Introduction abouttheMovie Ticket Sales Management
Cinemamanage theticket sales,showtime scheduleas well as trackrevenue growth and employees’ performance
assistthemanagersand its staffswithmore effectivesearchof Tickets, MoviesthatmatchwithaspectssurroundingEmployeesand Revenue
II System analysis
a Investigation of the business
- This data system for information about Movie Ticket SalesManagement System includes 8 entities : Employees, Movies,Rooms, Seats, Shifts, Showtimes, Tickets and Types of Seats
- Specification: A description of the database using entity relationshipdiagrams (ERD)
- Storage: The system store the database of from 4 employees, 14movies played in a month, and the number of tickets sold in a month
- Data entry:
Set up 8 forms in Access that allows users to update one of thefollowing:
+ Add a new movie
+ Add and update new rooms
+ Add and update new seats
+ Add and update new shifts
+ Add and update new showtimes
+ Add new tickets
Trang 4+ Create 7 forms to display: Movie, Room, Seat, Shift,Showtimes, Ticket and Employee.
+ Create 5 reports to display: Movies by Date, Tickets by Price,Total Revenue by Date, Total Revenue by Employee, TotalRevenue by Seat Type
b Database modeling (ERD)
Figure 1: Relationship of 08 entities - ERD Specification
Trang 5One ticket hasonly one showtime for one movies
With each showtime, customers can use one and only one room, shift and movies
III System Design
a Database Design (DSD)
DSD or Data Structure Diagram is a diagram descripting theconceptual data model including the entities , relationship between themand obligatory conditions and requirements which connect them DataStructure Diagram is a subspecies off the “Entity-Relationship” Diagram(ERD)
Here is the DSD Specification of Movie Ticket Sales ManagementSystem: 8 relations and 7 relationships:
Figure 2 DSD Specification
Figure 2
Trang 6In each table, a primary key is used to identify each record in thetable and guarantee this record to be unique In this Movie Ticket SalesManagement System, the primary key is used for field “SeatType” intblTypeofSeat, “SeatID” in tblSeat, “TicketID” in tblTicket, “EmployeeID” intblEmployee, “Roomname” in tblRoom, “Shiftname” in tblShift,
“ShowtimeID” in tblShowtimes and “MovieID” in tblMovie
In this DSD Specification, each table is connected with the other by
“One-to-many” relationship:
- Between tblTypeofSeat and tblSeat, fields “SeatType” are connected.One type of seat can has many seats, but each seat correspondswith only one type of seat
- Between tblSeat and tblTicket, fields “SeatID” are connected Manytickets can be sold for one seats in different showtimes, but eachticket correspond with one and only one seat
- Between tblTicket and tblEmployee, fields “EmployeeID” areconnected One employee can sell many tickets, but one ticket canonly be sold by one employee
- Between tblRoom and tblShowtimes, fileds “Roomname” areconnected One room can be used many times at differentshowtimes, but each showtime corresponds with one room
- Between tblShift and tblShowtimes, fields “Shiftname” are connected.One shift can last for many showtimes, but each showtimecorresponds with one and only one shift
- Between tblShowtime and tblTicket, fields “ShowtimeID” areconnected At a showtime, there are many tickets sold; but one ticketcan only be effective in one showtime
- Between tblShowtime and tblMovie, fields “MovieID” are connected.One movie can be shown at many showtimes, but at one showtime,only a movie be shown
b Form and design
1 Background:
Trang 7 Select needed Form > Design View > Form Design Tools: Format
-> Background Image: Browse: Choose an image as background ofform 8
2 Font, Size and Color of Text:
Design View -> Form Design Tools: Design: Property Sheet->Choose any boxes you want to edit -> Edit by Tools in Property Sheet
3 Insert Buttons For Every Forms
Design View -> Form Design Tools: Button (xxxx)
Select the place you want to put -> The Command Button Wizard willappear
After the first and second steps, Categories: Record Navigation andActions: Find Record for Search Information Button -> Next ->Picture: Browse: Choose button icon: open -> Next -> Finish
Then did these above steps and in Actions: Go to the PreviousRecord for Back Steps; Go to the Next Record For Next Steps-> Next-> Picture: Browse: Choose button icon: open - > Next -> Finish
Do the first and second steps, Categories: Record Operations andActions: Add new record- > Next -> Picture: Browse: Choose buttonicon: open -> Next -> Finish
Do the first and second steps, Categories: Applications and Actions:Quit Application -> Next -> Picture: Browse: Choose button icon:open -> Next -> Finish
4 To Change Size and Sort Boxes or Items
Use resize tools and mouse in Design View to edit
IV System Implementation:
a Table creation:
This data storage acrosses 08 tables:
1 tblEmployee:
Trang 8Structure Data Type Format Data validation
3 tblRoom:
Trang 96 tblShowtimes:
- Select tblEmployee -> Create -> Form Wizard
- Select 4 fields EmployeeID, FirstName, LastName, PhoneNumber -> Next -> Columnar -> Next - Select “Open the form to view orr enter information” -> Finish
- Select Save and name the form
2 frmMovie:
- Select tblMovie -> Create -> Form Wizard
Trang 10- Select 3 fields MovieID, MovieName, MovieLength -> Next ->
Columnar -> Next - Select “Open the form to view orr enter information” -> Finish
- Select Save and name the form
3 frmRoom:
- Select tblRoom -> Create -> Form Wizard
- Select 3 fields RoomID, SeatQuantity, RomeName -> Next ->
Columnar -> Next - Select “Open the form to view orr enter information” -> Finish
- Select Save and name the form
4 frmSeat:
- Select tblSeat -> Create -> Form Wizard
- Select 2 fields SeatID, SeatType -> Next -> Columnar -> Next - Select
“Open the form to view or enter information” -> Finish
- Select Save and name the form
5 frmShift:
- Select tblShift -> Create -> Form Wizard
- Select 2 fields ShiftName, Time -> Next -> Columnar -> Next - Select
“Open the form to view or enter information” -> Finish
- Select Save and name the form
6 frmTypeofSeat:
- Select tblTypeofSeat -> Create -> Form Wizard
- Select 2 fields SeatType, Price -> Next -> Columnar -> Next - Select
“Open the form to view or enter information” -> Finish
- Select Save and name the form
7 frmTicket:
- Select tblTicket -> Create -> Form Wizard
- Select 5 fields TicketId, ShiftID, ShowtimeID, DateofSale, EmployeeID -> Next -> Columnar -> Next - Select “Open the form to view or enter information” -> Finish
- Select Save and name the form
8 frmShowtimes:
- Select tblShowtimes -> Create -> Form Wizard
- Select 7 fields ShowtimeID, Date, Time, RoomName, ShiftName, MovieName -> Next -> Columnar -> Next - Select “Open the form to
Trang 11view or enter information” -> Finish
- Select Save and name the form
c Querycreation
This data storage includes 5 queries:
1 qryMeetingByDate
- Select Create ->QueryDesign
- Select tblMovie ->SelectAdd
- In the Field of first 5 columns: Moviename , Date, Time, RoomName, ShiftName
- RunQuery
- Select Save and name the query
Figure 3 qryMovieByDate
Figure 3
Trang 122 qryMovieByPrice
- Select Create ->QueryDesign
- Select tblTypeofseat, tblSeat andtblTicket ->SelectAdd
- In the Field of first 4 columns: TicketID , Price, SeatID, SeatType
- In the Table of first 4 columns: TblTicket, TblTypeofSeat, TblTicket, TblTypeofSeat
- Select Save and name thequery
Figure 4 qryMovieByPrice
Figure 4
3 QryTotalrevenuebyDate
- Select Create ->QueryDesign
- Select tblTypeofseat, tblSeat , tblTicket->SelectAdd
- In the Field of first 3 columns: DateofSale, TicketID, Price
- In the Table of first 3 columns: tblTicket, tblTicket and tblTypeofSeat
- RunQuery
Trang 13- Select Save and name the query
Figure 5 QryTotalrevenuebyDate
Figure 5
4 qryTotalRevenuebyEmployee
- Select Create ->QueryDesign
- Select tblEmployee, tblticket, tblSeat and tblTypeofSeat ->SelectAdd
- In the Field of first 4 columns: FirstName, LastName, TicketID, Price
- In the Table of first 4 columns: tblEmployee, tblEmployee, tblTicket andtblTypeofSeat
- RunQuery
- Select Save and name thequery
Trang 14Figure 6 qryTotalRevenuebyEmployee
Figure 6
5 qryTotalRevenuebySeatType
-Select Create ->QueryDesign
-Select tblTicket, tblSeat and tblTypeofSeat ->SelectAdd-In the Field of first 3columns: SeatType, TicketID, Price
-In the Table of first 3 columns: tblTypeofSeat, tblTicket
andtblTypeofSeat-RunQuery
-Select Save and name thequery
Trang 15Figure 7 qryTotalRevenuebySeatType
d Report creation
This data storage crosses 6 queries:
1 RptMoviebyDate
- Open query QryMoviebyDate
- Select Create -> Reports -> Report from the ribbon tab
- Save the report
- Close the report
2 RptTicketbyPrice
- Open query QryTicketbyPrice
- Select Create -> Reports -> Report from the ribbon tab
- Save the report
- Close the report
3 RptTotalrevenuebyDate
- Open query QryTotalrevenuebyDate
- Select Create -> Reports -> Report from the ribbon tab
- Save the report
- Close the report
4 RptTotalRevenuebyEmployee
- Open query QryTotalrevenuebyEmployee
- Select Create -> Reports -> Report from the ribbon tab
- Save the report
Trang 16- Close the report
5 RptTotalRevenuebyMovie
- Open query QryTotalRevenuebyMovie
- Select Create -> Reports -> Report from the ribbon tab
- Save the report
- Close the report
6 RptTotalRevenuebySeatType
- Open query QryTotalRevenuebySeatType
- Select Create -> Reports -> Report from the ribbon tab
- Save the report
- Close the report
This creates a Main Switchboard You can either add all your
switchboard commands to the Main Switchboard or createsecondary switchboards
2 To create secondary switchboards, click New
The Create New dialog box appears.
Note: If you create secondary switchboards, make sure that each
switchboard has a command to go back to the Main Switchboard
3 Type the name of the new switchboard and click OK
Microsoft Access adds the switchboard to the list in the Switchboard
Pages box
You can add secondary switchboard names at this point
4 Repeat steps 2 through 3 for each secondary switchboard you want
to create, and then click Close
b How to use forms to enter data into tables implemented?
In the navigation pane, double click the forms you want to check theinformation By default, Access will open the form in DataSheet View
Trang 17c How to use queries to extract data from the database?
In the navigation pane, double click the query you want to check theinformation By default, Access will open the query in DataSheetView
d How to use reports to produce managerial information?
In the navigation pane, double click the report you want to check theinformation By default, Access will open the report in DataSheetView
Illustration: In the navigatione pane, double click the items you want
to add and check the information By default, Access will open theforms in Data Sheet view After checking and adding information,double click the button “save” to save the data or “delete” to deletethe information you have put in, or “close” to cancel the action
Trang 23Keep doing the same steps with the rest of the items in the “Menu”
Trang 29Those pictures above reveal step by step of checking or addinginformation in “Menu” After getting information, we click “Exit Access”
to end up the process
Trang 30Work assignment & peer assessment:
assignment
Peer assessment Score
1
Đỗ Minh Trang
Part I –Introduction,collect and type
3
Đoàn Thị ThuThuỷ
Makes theslides, findsecondary data,part II (b)
4
Lê Thị ThanhVân
Createsdatabase,tables, queries,forms, reportsand Menu inAccess
5
Nguyễn NgọcTrang
Makes theslides part III(b), synthesizesthe slides
6
Nguyễn NgọcHuyền Trang
Makes theslides, part IV
7
Nguyễn ThuThuỷ
Makes theslides, part IV
(b)
Trang 31slides, part IV
(c)
Makes theslides, part IV