You are on page 1of 27

VISUAL BASIC .

NET

GYM MANAGEMENT SYSTEM:-


INTRODUCTION :-
Gym management system helps us to maintain the
records of equipments , members , trainers & their
attendance , inquiry also.
Its helps us to increase the efficiency of the gym and it
becomes easy to maintain the database.
We can also maintain past records , present records and
also in future the records can be maintained which helps
increase the loyalty of members.
This project is made using functionalities of Microsoft
visual studio 2008.
And the database of members , trainers , equipments
and inquiry details in backhand are maintained in
Microsoft Access 2007.

Priyanshi Jariwala-45 SYBCA-A Page 1


VISUAL BASIC .NET

REQUIREMENTS GATHERING :-

 Proper excel sheet is maintained in some gym.


 Guest list should be maintained.
 Member entering the gym should be known
through software.
 Attendance.
 Mode of Payment.
 Message should go from system before 5 days
of expiry of membership.
 Packages.
 Employee , Staff , Trainers details.
 Manager’s details.
 Equipment’s details.
 Inquiry details.
 Reminder message.
 Expenses.

Priyanshi Jariwala-45 SYBCA-A Page 2


VISUAL BASIC .NET

SCOPE :-
It will help to increase the efficiency of the gym.
It saves time , energy and cost.
It will also help to avoid manual data entries.
The response time of the system is very less and it works
very fast.

OBJECTIVES :-
It increases the accuracy of the system.
The software is made user friendly so that work becomes
easier.
The transaction reports of the system can be retried as
and when required.
The software improves the working methods by replacing
the existing manual system with the computer-based
system.
Reports can also be generated.

Priyanshi Jariwala-45 SYBCA-A Page 3


VISUAL BASIC .NET

RELATIONSHIP DIAGRAM :-

Priyanshi Jariwala-45 SYBCA-A Page 4


VISUAL BASIC .NET

DATA FLOW DIAGRAM (LEVEL 0):-

Priyanshi Jariwala-45 SYBCA-A Page 5


VISUAL BASIC .NET

Priyanshi Jariwala-45 SYBCA-A Page 6


VISUAL BASIC .NET

Imports System.Data.OleDb
Public Class Login
Dim cn As New OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Private Sub Login_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load
cn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
Application.StartupPath + "\gym.mdb"
cn.Open()
End Sub
Private Sub btnlogin_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnlogin.Click
cmd = New OleDbCommand("select login,password from
login_details where login='" & txtuser.Text & "'and password='"
& txtpassword.Text & "'", cn)
dr = cmd.ExecuteReader()
If dr.HasRows Then
dr.Read()
If txtuser.Text = dr.Item("login").ToString And
txtpassword.Text = dr.Item("password").ToString Then
menus.Show()
End If
Else
MsgBox("Username or password is incorrect",
MsgBoxStyle.Critical, "Try Again")
End If
dr.Close()
End Sub
Private Sub btnreset_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnreset.Click
txtpassword.Text = ""
txtuser.Text = ""
End Sub
Private Sub btnexit_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnexit.Click
Me.Close()
End Sub
End Class

Priyanshi Jariwala-45 SYBCA-A Page 7


VISUAL BASIC .NET

INSERT :-

Priyanshi Jariwala-45 SYBCA-A Page 8


VISUAL BASIC .NET
Imports System.Data.OleDb
Public Class equipments
Dim cn As New OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnsave.Click
Try
cmd = New OleDbCommand("insert into
euipqments_details(equi_id,eui_name,quantity,p_u_c,total_cost)values("
& txteid.Text & ",'" & txtename.Text & "'," & txtequan.Text & "," &
txtepuc.Text & "," & txtetc.Text & ")", cn)
cmd.ExecuteNonQuery()
cmd.Dispose()
cn.Close()
MsgBox("Record inserted successfully")
Catch ex As Exception
MsgBox("Insert details properly")
End Try
End Sub
Private Sub equipments_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + Application.StartupPath + "\gym.mdb"
cn.Open()
End Sub
Private Sub btnreset_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnreset.Click
txteid.Text = ""
txtename.Text = ""
txtepuc.Text = ""
txtequan.Text = ""
txtetc.Text = ""
End Sub
Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnexit.Click
Me.Close()
End Sub
End Class

Priyanshi Jariwala-45 SYBCA-A Page 9


VISUAL BASIC .NET

UPDATE :-

Priyanshi Jariwala-45 SYBCA-A Page 10


VISUAL BASIC .NET
Imports System.Data.OleDb
Public Class up_deletrain
Dim cn As New OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Dim str As String
Dim ans As Integer
Private Sub btnexit_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnexit.Click
Me.Close()
End Sub
Private Sub btnupdate_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnupdate.Click
cmd = New OleDbCommand("update trainer_details set
trainer_name='" & txtname.Text & "',age=" & txtage.Text &
",gender='" & txtgender.Text & "',p_y='" & txtpy.Text &
"',contact_no='" & txtcontatc.Text & "',email_id='" &
txtemail.Text & "',doj='" & txtdoj.Text & "'", cn)
cmd.ExecuteNonQuery()
cn.Close()
MsgBox("Record updated successsfully")
End Sub

Private Sub up_deletrain_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load
cn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
Application.StartupPath + "\gym.mdb"
cn.Open()
End Sub
Private Sub btnreset_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnreset.Click
txtid.Text = ""
txtname.Text = ""
txtage.Text = ""
txtgender.Text = ""
txtpy.Text = ""
txtcontatc.Text = ""
txtemail.Text = ""
txtdoj.Text = ""
End Sub
End Class

Priyanshi Jariwala-45 SYBCA-A Page 11


VISUAL BASIC .NET

DELETE :-

Priyanshi Jariwala-45 SYBCA-A Page 12


VISUAL BASIC .NET
Imports System.Data.OleDb
Public Class up_deinquiry
Dim cn As New OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Dim str As String
Dim ans As Integer
Private Sub btnexit_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnexit.Click
Me.Close()
End Sub
Private Sub btnidelete_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnidelete.Click
str = "delete from inquiry_details where inq_id=" &
txtidi.Text
Dim cmd1 As New OleDbCommand(str, cn)
ans = cmd1.ExecuteNonQuery()
MsgBox("Record is deleted", , "Delete")
cn.Close()
End Sub
Private Sub up_deinquiry_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
cn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
Application.StartupPath + "\gym.mdb"
cn.Open()
End Sub
Private Sub btnrset_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnrset.Click
txtidi.Text = ""
txtiname.Text = ""
txtcno.Text = ""
txtgender.Text = ""
txtemail.Text = ""
txtdate.Text = ""
End Sub
End Class

Priyanshi Jariwala-45 SYBCA-A Page 13


VISUAL BASIC .NET

SEARCH :-

Priyanshi Jariwala-45 SYBCA-A Page 14


VISUAL BASIC .NET
Imports System.Data.OleDb
Public Class up_deletrain
Dim cn As New OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Dim str As String
Dim ans As Integer
Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnexit.Click
Me.Close()
End Sub
Private Sub up_deletrain_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
+ Application.StartupPath + "\gym.mdb"
cn.Open()
End Sub
Private Sub btnsearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnsearch.Click
Try
cmd = New OleDbCommand("select * from trainer_details where
trainer_id=" & txtsearch.Text & "", cn)
dr = cmd.ExecuteReader()
If dr.HasRows Then
dr.Read()
txtid.Text = dr.Item(0)
txtname.Text = dr.Item(1)
txtage.Text = dr.Item(2)
txtgender.Text = dr.Item(3)
txtpy.Text = dr.Item(4)
txtcontatc.Text = dr.Item(5)
txtemail.Text = dr.Item(6)
txtdoj.Text = dr.Item(7)
Else
MsgBox("Sorry record not found..!!!")
End If
dr.Close()
Catch ex As Exception
MsgBox(ex.ToString, , "Record not found")
End Try
End Sub
Private Sub btnreset_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnreset.Click
txtid.Text = ""
txtname.Text = ""
txtage.Text = ""
txtgender.Text = ""
txtpy.Text = ""
txtcontatc.Text = ""
txtemail.Text = ""
txtdoj.Text = ""
End Sub
End Class

Priyanshi Jariwala-45 SYBCA-A Page 15


VISUAL BASIC .NET

VIEW :-

Priyanshi Jariwala-45 SYBCA-A Page 16


VISUAL BASIC .NET
Imports System.Data.OleDb
Public Class viewequipments
Dim cn As New OleDbConnection
Dim cmd As OleDbCommand
Private Sub btnexit_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
btnexit.Click
Me.Close()
End Sub
Private Sub viewequipments_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
cn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
Application.StartupPath + "\gym.mdb"
cn.Open()
End Sub
Private Sub btnview_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
btnview.Click
cmd = New OleDbCommand("select * from
euipqments_details", cn)
Dim da As New OleDbDataAdapter(cmd)
Dim ds As New DataSet
da.Fill(ds)
dataview.DataSource = ds.Tables(0)
End Sub
End Class

Priyanshi Jariwala-45 SYBCA-A Page 17


VISUAL BASIC .NET

DESIGNS :-

Priyanshi Jariwala-45 SYBCA-A Page 18


VISUAL BASIC .NET

Priyanshi Jariwala-45 SYBCA-A Page 19


VISUAL BASIC .NET

Priyanshi Jariwala-45 SYBCA-A Page 20


VISUAL BASIC .NET

Priyanshi Jariwala-45 SYBCA-A Page 21


VISUAL BASIC .NET

Priyanshi Jariwala-45 SYBCA-A Page 22


VISUAL BASIC .NET

REFERENCES :-

NO. NAME OF GYM CONTACT NO.


1. Lakhoz 6676848
2. Golds Gym 2254629
3. Sterling 2259218
4. Suncity Gym 2542511
5. Surat Tennis Club 2660108
6. Stallon Gym 2215991
7. KG FITNESS 2225505
8. Gymnation 3020736

BIBLIOGRAPHY :-
Books referred :-

Visual basic.net

Websites referred :-

www.stackoverflow.com

Project made under the guidance of :-

Professor Nidhi Desai

Priyanshi Jariwala-45 SYBCA-A Page 23


VISUAL BASIC .NET

TIMELINE CHART :-
6

LOWER
3
MEDUIM
HIGH

0
SUPPLEMENTS PURCHASE ORDER SALES

Priyanshi Jariwala-45 SYBCA-A Page 24


VISUAL BASIC .NET

TESTING MODULE :-
WORKING MODULE RESULT
1.Login Module
 Working of login Fine
2.Register Module
 Fill the member detail Fine
-Name Validation Fine
-Address Validation Fine
-Contact No Validation Fine
-Date of birth Validation Fine
-Email Validation Fine
-Gender Validation Fine
-Period Validation Fine
-Amount Validation Fine
 Working on Insert Button Fine
3.Search
-Member_id wise Fine
-Trainer_id wise Fine
4.Equipments
-Insert is working Fine
-Update is working Fine
-Delete is working Fine
-Search is working Fine
-View is working Fine

Priyanshi Jariwala-45 SYBCA-A Page 25


VISUAL BASIC .NET

TESTING :-
Testing is executing a program with an indent of finding
Error/Fault and Failure.

UNIT TESTING :-
Unit testing is the procedure of testing individual code
modules before they are integrated with other modules.
INTEGRATION TESTING :-
An integration testing tests the behavior of group of
modules or methods.
SYSTEM TESTING :-
System testing is a testing conducted on a complete
integrated system to evaluate the system’s compliance
with its specified requirement.
ACCEPTANCE TESTING :-
Acceptance testing is performed to determine whether
the software meets all the functional , behavioral and
performance requirements or not.

Priyanshi Jariwala-45 SYBCA-A Page 26


VISUAL BASIC .NET

LEVEL 1 OF DFD :-

Priyanshi Jariwala-45 SYBCA-A Page 27

You might also like