Visual Programming in VB.net - Personal Home Pages (at UEL

advertisement
Visual Programming SD1046
VISUAL PROGRAMMING
SD 1046 SEMESTRE B 2010
Group Project
Project: DvD Rental Shop
Submission Date: 15 / 12 / 2010
STUDENT ID:
U0957816
U074422
Strictly Confidential
Module SD1046 VB.net
Page 1 of 12
Visual Programming SD1046
Abstract
As undergraduate of UEL (University of East London) and currently studying for a
Bachelor’s degree in Computer Networks, we have chosen the DvD shop project.
The biggest objective is to comprehending how most of DVD rental shop works, how the
data is are shared and protected by the staff through the use of computers are a must
and a way of protecting the customer’s information from malicious individuals is
becoming more important.
Undertaking such a task will not only improve our writing abilities but also provide a
Taste of the professional attributes required, looking ahead in ours lives.
Introduction
In recent years the price of a ticket movie has increased steadily in comparison with the
price for the home entertainment rental system has become more affordable, therefore
the demand of movie rental option has increased in the past years and the price of it
has subsequently decreased so nowadays everyone can afford it. The DVD rental
industry has changed drastically over the years. Previously, movie fans could only rent
DVDs at their local movie renting store, but the birth of new technologies and DVD
distribution methods has changed the way the movie rental industry operates. Today,
there are three major ways for movie fans to obtain their DVDs: the traditional movie
rental store, online DVD rental services or no-return DVD rental services like Video On
Demands which allows you to rent a movie directly from your Skybox or any satellite
receivers.
In this project we have been asked by Dr. Hussein the owner of TechWizDvD Rental
shop to develop a system or software for staff and costumer. By using Visual Studio and
create a database which connected with VB can provide a good service for all.
Strictly Confidential
Module SD1046 VB.net
Page 2 of 12
Visual Programming SD1046
Purpose & Aims
The purpose of this assignment is to expose the student to the practice of application
design also called "system design" by working through the central steps of the process
on a simple problem. This is an exercise in the first steps of designing, presenting and
prototyping a simple database technology application. The objective is to familiarize the
student, at a relatively high level, with the concepts and methodology employed in the
development of such applications. It is not intended to provide a serious foundation in
systems design or implementation, but rather to promote a general understanding of the
process through 'hands on' experience. It is based on separate scenarios, each
presenting requirements that can be addressed through a particular, multi-table
database design. other biggest purpose of this project is to create a functional system
for a DVD Rental shop, with Visual Studio using Database and implement it on the
system.

This system has to be able to allow the shop administrator to login and logout.

All the records have to be well organized.
Objectives
Using a reliable computer system the DVD Rental shop will provide:

Proper security system that is restricted for non authorized person or access.
Therefore all the customers recorded will be stored and run by the
administrator.

The administrator has to be able to monitor, run and track the data or
information faster.

The system will be able to show the record of all outstanding renting and
balance.

Be able to input a new record when the movie is rented out or returned, also
when a new customer is introduced.

The system will be able to delete customers who are no longer members.

The system will provide Quality, Price, Flexibility and Security.
Strictly Confidential
Module SD1046 VB.net
Page 3 of 12
Visual Programming SD1046
DvD Movie Rental Industry
For years people have watched videos of their favorite movies and felt disappointed
because the movies seemed better in the theatre. The DVD has changed the way
people feel about watching movies at home.
The advent of the DvD technology and the progress of the internet commerce has
allowed a new way how to enjoy movies. The DvD rental industry has reached his peak
in the recent years when offering the home rental service and became part of home
entertainment industry, which is subcategorized into physical movie rental market and
digital movie rental Market.
While the DVD rental industry is rapidly changing, DVD rental stores are still very
financially successful. DVD rental stores make their money through a number of
different methods including membership fees, rental fees, late fees, and DVD
purchases.
However, the major key to their success is that they operate under a pure supply and
demand business plan. When a new DVD title is set to be released, demand for these
titles increased. To accommodate for such a high demand, DVD rental stores buy up
the title in bulk to make sure their shelves are stocked with the hottest new released. As
demand for the DVD title begins to wear off, the rental stores then sell the excess DVDs
as “previously viewed” DVDs at a reduced price. This system has made DVD rental
stores quite profitable over the years.
Technology Applied
Microsoft office
Access for Database
Microsoft Visual Studio 2008
Platform:
The platform chosen to do the program has been Windows as our facilities provided
where library and home, we were unable to keep the program multiplatform support so it
has been design using Windows XP, therefore this program can only be used on
Microsoft platforms.
Accessibility:
Our aim for this program is to accomplish as possible the specifications required, we
decided to keep the interface easy to navigate. We tried to make it friendly for the user
and definitely easy to use.
Strictly Confidential
Module SD1046 VB.net
Page 4 of 12
Visual Programming SD1046
Visual Programming in VB.net
VB allows us to do the above statements as is a Windows platform program language
and is also visual and object orientated language.
Interface:
Form1
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Close()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
If TextBox1.Text.ToUpper = "REMILI" And TextBox2.Text = "U0957816"
Then
Form4.Show()
Me.Hide()
ElseIf TextBox1.Text.ToUpper = "MOHAMMAD" And TextBox2.Text =
"U0942243" Then
Form4.Show()
Me.Hide()
Else : MsgBox("Wrong password,try again")
Strictly Confidential
Module SD1046 VB.net
Page 5 of 12
Visual Programming SD1046
End If
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
Form2
Code:
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'Customer_nameDataSet3.customer_details' table. You can move, or remove it,
as needed.
Me.Customer_detailsTableAdapter2.Fill(Me.Customer_nameDataSet3.customer_detai
ls)
Strictly Confidential
Module SD1046 VB.net
Page 6 of 12
Visual Programming SD1046
'TODO: This line of code loads data into the
'Customer_nameDataSet2.customer_details' table. You can move, or remove it,
as needed.
Me.Customer_detailsTableAdapter1.Fill(Me.Customer_nameDataSet2.customer_detai
ls)
'TODO: This line of code loads data into the
'Customer_nameDataSet.customer_details' table. You can move, or remove it, as
needed.
Me.Customer_detailsTableAdapter.Fill(Me.Customer_nameDataSet.customer_details
)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Customer_detailsBindingSource.AddNew()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Me.Customer_detailsBindingSource.RemoveCurrent()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Me.Customer_detailsBindingSource.EndEdit()
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
Close()
End Sub
End Class
Strictly Confidential
Module SD1046 VB.net
Page 7 of 12
Visual Programming SD1046
Form3
Code:
Public Class Form3
Private Sub Films_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Films.SelectedIndexChanged
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Form6.Show()
Me.Hide()
End Sub
Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Form5.Show()
Me.Hide()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form2.Show()
Me.Hide()
Strictly Confidential
Module SD1046 VB.net
Page 8 of 12
Visual Programming SD1046
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
Close()
Me.Hide()
End Sub
End Class
Form4
Code:
Public Class Form4
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
Close()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Form2.Show()
Me.Hide()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form6.Show()
Me.Hide()
End Sub
Strictly Confidential
Module SD1046 VB.net
Page 9 of 12
Visual Programming SD1046
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Form5.Show()
Me.Hide()
End Sub
End Class
Form5
Code:
Public Class Form5
Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'Customer_nameDataSet3.customer_details' table. You can move, or remove it,
as needed.
Me.Customer_detailsTableAdapter.Fill(Me.Customer_nameDataSet3.customer_detail
s)
'TODO: This line of code loads data into the
'Customer_nameDataSet4.movie' table. You can move, or remove it, as needed.
Me.MovieTableAdapter.Fill(Me.Customer_nameDataSet4.movie)
End Sub
Private Sub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles TextBox4.TextChanged
Strictly Confidential
Module SD1046 VB.net
Page 10 of 12
Visual Programming SD1046
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form6.Show()
Me.Hide()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Close()
End Sub
End Class
Form6
Code:
Public Class Form6
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Form2.Show()
Me.Hide()
End Sub
Private Sub BindingNavigatorMoveNextItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BindingNavigatorMoveNextItem.Click
Strictly Confidential
Module SD1046 VB.net
Page 11 of 12
Visual Programming SD1046
End Sub
Private Sub BindingNavigatorCountItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BindingNavigatorCountItem.Click
End Sub
Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'Customer_nameDataSet4.movie' table. You can move, or remove it, as needed.
Me.MovieTableAdapter.Fill(Me.Customer_nameDataSet4.movie)
End Sub
Private Sub BindingNavigatorAddNewItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BindingNavigatorAddNewItem.Click
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
Form3.Show()
Me.Hide()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form3.Show()
Me.Hide()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Form5.Show()
Me.Hide()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
Form4.Show()
Me.Hide()
End Sub
End Class
Strictly Confidential
Module SD1046 VB.net
Page 12 of 12
Download