0% found this document useful (0 votes)
78 views38 pages

DOCUMENTATION

The document describes a visitors management system project that aims to computerize the manual process of tracking visitor check-ins and check-outs at orphanages and children's homes by having visitors enter an ID to check-in and check-out, which automatically records attendance and allows administrators to generate reports and notify visitors. The system also stores visitor details, sends notifications about birthdays and events, and makes it easier for administrators to track visitors and import new visitor information.

Uploaded by

ᴄʏʙᴇʀ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views38 pages

DOCUMENTATION

The document describes a visitors management system project that aims to computerize the manual process of tracking visitor check-ins and check-outs at orphanages and children's homes by having visitors enter an ID to check-in and check-out, which automatically records attendance and allows administrators to generate reports and notify visitors. The system also stores visitor details, sends notifications about birthdays and events, and makes it easier for administrators to track visitors and import new visitor information.

Uploaded by

ᴄʏʙᴇʀ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 38

VISITORS MANGEMENT SYSTEM

In partial fulfillment of the award of the degree of

B.SC COMPUTER TECHNOLOGY


A Project Report
Submitted by
S.KESAVAN 16BCT054
V.SATHYARAJ 16BCT070

Under the guidance of


MR. V. VEERAKUMARAN MCA, MBA.

DEPARTMENT OF COMPUTER TECHNOLOGY


RATHINAM COLLEGE OF ARTS AND SCIENCE
(AUTONOMOUS)
COIMBATORE - 641021
APRIL-2018

1
DECLARATION

This is to certify that the project work Entitled ”VISITORS MANAGEMENGT


SYSTEM” submitted to Rathinam College of Arts and Science (Autonomous), Coimbatore,
in partial fulfillment of requirement for the award of BSC(computer Technology) is a record of
original work done by me during the period of study (2017-2018) in Rathinam College of
Arts and Science (Autonomous), Coimbatore.

Name of the Candidate Reg. No Signature of the Candidate

KESAVAN.S 16BCT054

2
RATHINAM COLLEGE OF ARTS AND SCIENCE
(AUTONOMOUS)
COIMBATORE - 641021
DEPARTMENT OF COMPUTER TECHNOLOGY
BONAFIDE CERTIFICATE

This is to certify that this is the Bonafide Project work done by the candidate under my
supervision in partial fulfillment of the requirements for the award of B.SC (Computer
Technoloy)

Name of the Candidate Reg.No

KESAVAN.S 16BCT054

Signature of the Guide Signature of the HOD

Place:
Date:
(College Seal)

Submitted for the Viva- Voce Examination held on _

Internal Examiner External Examiner

3
ACKNOWLEDGEMENT

On successful completion for project look back to thank who made in possible. First
and foremost, thank “THE ALMIGHTY” for this blessing on us without which we could
have not successfully our project.

I am extremely grateful to Mr.Madan.A.Sendhil, M.S., Chairman, Rathinam Group


of Institutions, Coimbatore and Mrs. ShimaSendhil, M.S., Secretary, Rathinam Group of
Institutions, Coimbatore for giving me opportunity to study in this college.

I am extremely grateful to Prof.R.Manickam, MCA., M.Phils., (Ph.Ds.).,


CEO, Rathinam Group of Institutions, Coimbatore.

Extend deep sense of valuation to Dr.R.Muralidharan, M.Sc., M.Phils., CA,


(Ph.D.).,)., CEO, Principal, Rathinam College of Arts and Science (Autonomous) who
has permitted to undergo the project.

Unequally thank Mr.S.Raja MCA, M.Phil, (Ph.D.) Head, Department of Computer

Technology for his constructive suggestions, advice during the course of study.

I convey special thanks, to the supervisor MR. V. VEERAKUMARAN MCA, MBA. Who
offered their inestimable support, guidance, valuable suggestion, motivations, helps given for
the completion of the project. Also I extend my thanks to all the staff members of the
department.

I dedicated sincere respect to my parents for their moral motivation in completing the
project.
S.KESAVAN
V.SATHYARAJ

4
TABLE OF CONTENET

S.NO TITLE PAGE NO

ABSTRACT 7

1 INTRODUCTION

1.1 An overview 8

1.2 Objective of the project 9

1.3 System specification 10

1.3.1 Hardware specification 10

1.3.2 Software specification 10

1.4 Software specification 11

2 SYSTEM STUDY AND ANALYSIS

2.1 Drawbacks of existing system 12

2.2 Advantages of proposed system 12

2.3 Module 13

2.3.1 Module description 13

3 SYSTEM DESIGN

3.1 Input design 14

3.2 Database design 15

3.3 Output design 16

4 SYSTEM TESTING

5
4.1 Unit Testing 17

4.2 Functional Testing 17

4.3 Acceptance Testing 17

4.4 System Testing 17

5 SYSTEM IMPLEMENTATION

5.1 System implementation 18

5.2 System Maintenance 19

6 CONCLUSION 20

7 FUTURE ENHANCEMENT 21

8 BIBILIOGRAPHY 22

9 APPENDICES

9.1 Table Design 23

9.3 Data Flow Diagram 25

9.4 Sample Coding 28

9.5 Screen Shots 33

6
ABSTRACT
The project entitled “VISITORS MANGAEMENT SYSTEM” it is used to track the
incoming and outgoing visitors in orphanages and children shelter homes. Currently the tracking
system is done through a manual written system. It is needed to be maintaining regularly and it
is very difficult to manage. It causes a waste of paper.

It is not recommended because we can’t query and we can’t gain reports from the paper
evidence. Paper can be lost therefore we may lose tracking data. Secondly, it is a tedious process
and the visitors may forget to check in and check out, every time they visit the shelter or
Ashram.

This project aims to computerize the process of check in and check out when a visitor
visits an shelter or Ashram. Through the project when a visitor visits in Ashram he would
only need to enter an ID to check in and enter an id before check out.

This would automatically track the attendance. We could generate report based on this
for an Admin view. Report generation is automatic and the admin doesn’t need to spend any
time on it. The admin may also use the system to search for specific visitors and get details about
him.

The system can also use to store details about the visitors that we may know about
different types of visitors. The project also has a mailing system `to notify visitors about their
visits and also notify visitors if they forget to check out.

This is important so that we are able to track theirs visits properly. In a manual system we
are not able to intimate the visitors anyway when they forget to check in and check out, because
we unaware of the visitors present in the Ashram. But when the users uses an application while
checking in or checking out, he would have given their ID and therefore we may know whether
the visitor check in or check out properly or not.

Using this we can send them email to notify about their activities. Secondly we may also
use this application to send mails on other occasions about events taking place in the Ashram and
also to send wishes to the visitor on their birthdays.

7
1. INTRODUCTION

1.1 AN OVERVIEW
Visitor Management System is used to record the details of the users who are visiting the
Shelter Home. It will keep a track of the user’s check in and check out time so that the admin can
contact them as and when required. Users will be notified about their visit so that they can also
keep track of their visits.

The project entitled “VISITORS MANGAEMENT SYSTEM” it is used to track the


incoming and outgoing visitors in orphanages and children shelter homes.

Currently the tracking system is done through a manual written system. It is needed to
be maintaining regularly and it is very difficult to manage. It causes a waste of paper. It is not
recommended because we can’t query and we can’t gain reports from the paper evidence.

Paper can be lost therefore we may lose tracking data. Secondly, it is a tedious process
and the visitors may forget to check in and check out, every time they visit the shelter or
Ashram. This project aims to computerize the process of check in and check out when a visitor
visits an shelter or Ashram.

Through the project when a visitor visits in Ashram he would only need to enter an ID
to check in and enter an id before check out. This would automatically track the attendance. We
could generate report based on this for an Admin view.

8
1.2 OBJECTIVE OF THE PROJECT
The important objective of the project to provide a system of tracking visitor attendance.

To monitor particular visitors activities at the Ashram

To allows notifying visitors about their check in and check out on their respective days.

To allow the admin to track visitor and visitor details.

To provide a notification system to notify visitors if they fail to check in or check

out. To notify visitors on their birthdays and other special events.

To allow the admin to view report any point of time.

To allow the admin to search details about any visitor.

To allow the admin to import new visitor as they

come.

To allow the visitor to enter their own details through an

application. To allow the visitor easy interface to check in and check

out.

To reduce paper work.

To improve

consistency.

To computerize data

management. To reduce risk of

loss of data.

To reduce cost of maintenance of paper work and records.

9
1.3 SYSTEM SPECIFICATION
1.3.1 HARDWARE SPECIFICATION:
PROCESSOR : INTEL i3

HARD DISK CAPACITY : 500 GB

INTERNAL MEMORY CAPACITY : 128MB

RAM : 4GB

MONITOR : 18.5” TFT

1.3.2 SOFTWARE SPECIFICATION:

FRONT-END : VISUAL BASIC 2015

BACK-END : MICROSOFT OFFICE 2010

PLATFORM : WINDOWS 7, 8, 8.1&10

1
1.4 SOFTWARE DESCRIPTION

MS ACCESS 2010

Microsoft Access is a database package generally, used to design database applications

MICROSOFT ACCESS IS USED IN THIS PROJECT FOR FOLLOWING


REASONS

o Microsoft Access able to store large data.


o It’s DBMS Applying validation is easy in Microsoft Access.
o Creating relationship is not a complex task.
o It provides good graphical interface.
o Microsoft Access can execute any valid SQL query
o It provides all necessary forms of data types.
o Microsoft access has good connectivity with visual basic.

Microsoft Access, also known as Microsoft Office Access, is a database management


system from Microsoft that combines the relational Microsoft Jet Database Engine with a
graphical user interface and software-development tools. It is a member of the Microsoft Office
suite of applications, included in the Professional and higher editions or sold separately.

Microsoft Access stores data in its own format based on the Access Jet Database
Engine. It can also import or link directly to data stored in other applications and databases.

Software developers and data architects can use Microsoft Access to develop application
software, and "power users" can use it to build software applications. Like other Office
applications, Access is supported by Visual Basic for Applications (VBA), an object-oriented
programming language that can reference a variety of objects including DAO (Data Access
Objects), ActiveX Data Objects, and many other ActiveX components.

Visual objects used in forms and reports expose their methods and properties in the VBA
programming environment, and VBA code modules may declare and call Windows operating
system.

1
2. SYSTEM STUDY AND ANALYSIS

2.1 DRAWBACKS OF EXISTING SYSTEM


Manual paper system.

Wastage of paper.

No way of tracking.

Report generation is very difficult.

Data is inconsistent.

Data is inaccurate.

Visitor may forget to check in and check out using the

register. Use it as may give incorrect information in the

register.

2.2 ADVANTAGES OF PROPOSED SYSTEM


Provides an easy to interface to check in and check out.

Allows the admin to view reports.

Notifies the visitors of theirs check in and check out.

Events in the Ashram and special events such as birthdays.

Allows the admin to track visitors.

Allows the admin to view information on visitors very easily.

No paper work in world.

No resources are

wasted. Low

management cost.

1
2.3 MODULES
Login

Register/Edit profile

Admin panel

Add students

2.3.1 MODULE DESCRIPTION


LOGIN MODULE

This module allows the visitors to check in and check out. Both students and
external visitors may use the same login module to check in and check out. It allows check out
of visitor or a student only if they are previously checked in.

REGISTER MODULE

Register module allows a new visitor to register the details, So that they need not
enter their details every time they visit the Ashram. The register module also can be used edit
profile module where it allows user to existing details incase change of their phone number,
email-id or any other details.

ADMIN MODULE

The admin panel allows the admin to view all details of every visitor who is part
of the Ashram or who visits the Ashram. It also allows the admin to view attendance of a given
visitor. It allows the admin also to send notification to the users if they failed to check in or
check out.

ADD STUDENTS MODULE

The add student module is part of the admin panel. It allows the admin to add the
new students who are entering the shelters. The admin may use this module to enter details of the
new students. So that students may easily check in and check out without having to register
themselves.

1
3. SYSTEM DESIGN
3.1 INPUT DESIGN:

Input design is the process of converting the user-oriented. Input to a computer-based


format. The goal of the input design is to make the data entry easier. Logical and free error.
Errors in the input data are controlled by the input design. The quality of the input determines the
quality off the system output. The entire data entry screen is interactive in nature.so that the user
can directly enter into data according to the prompted messages. The users are also provided with
option of selecting an appropriate input from a list of values. This will reduce the number of
error. Which are otherwise likely to arise if they were to be entered by the user itself.

Input design is one of the most important phases of the system design. Input
design is the process where the input received in the system are planned and designed, so as to
get necessary information from the user, eliminating the information that is not required. The
aim of the input design is to ensure the maximum possible levels of accuracy and also ensures
that the input is accessible that understood by the user. The input design is the part of overall
system design, which enquires very careful attention. If the data going into the system is
incorrect then the processing and output will magnify the errors.

The objectives considered during input design are:

 Nature of input processing.


 Flexibility and thoroughness of validation rules.
 Handing of properties within the input documents.
 Screen design to ensure accuracy and efficiency of the
input relationship with files.
 Careful design of the input also involves attention to
error handling, controls, batching and validation
procedures.
Input design features can ensure the reliability of the system and produce result
from accurate data or they can result in the production of erroneous information.

1
3.2 DATABASE DESIGN:
A well database is essential for the good performance of the system, several tables
are referenced or manipulated at various instance. The table also knows as relation; provide
information pertaining to a specified entity. Normalizing of table is carried out to extent possible,
while the normalizing tables, care should be taken to make sure that the number of tables do not
exceed the optimum level, so that table maintenance. Is convenient and effective.

The process of doing database design generally consists of a number of steps


which will be carried out by the database designer. Not all of these steps will be necessary in all
cases. Usually, the designer must. Determine the data to be stored in the database. Determine
the data to be stored in the database. Determine the relationships between the different data
elements. A logical structure upon the data on the basis these relationships. Within the relational
model the final step can generally be broken down into two further steps that of determining the
grouping of information within the system, generally determining what are the basic objects
about which information is being stored, and then determining the relationships between these
groups of information, or objects. This step is not necessary with an object database.

In a majority of cases, the person who is doing the design of a database is a person
with expertise in the area of database design, rather than expertise in the domain from which the
data to be stored is drawn e.g. Financial information, biological information etc. Therefore, the
data to be stored in the database must be determined in cooperation with a person who does have
expertise in that domain, and who is aware of what data must be stored within the system.

1
3.3 OUTPUT DESIGN:
Output design is very important concept in the computerized system, without
reliable output the user may feel the entire system is unnecessary and avoids using it. The
proper output design is important in any system and facilitates effective decision-making. The
output design of this system includes various reports.

Computer output is the most important and direct source of information the user.
Efficient, intelligible output design should improve the system’ relationship with the user and
help in design making, a major form of output is the hardcopy from the printer.

Output requirement are design during system analysis. A good staring point for the
output design is the data flow diagram. Human factor reduce issues for design involved
addressing internal controls to ensure readability.

An application is successful only when it can provide efficient and effective reports.
Reports are actually presentable form of the data. The report generation should be useful to the
management for future reference. The report is the main source of information for user’s
operators and management .report generated are a permanent record of the transaction occurred.
After any valid transactions: have commenced the of the report of the same is generation and:
filed for future reference. Great care has been when designation the report as it plays an
important role in decision-making.

1
4. SYSTEM TESTING AND

IMPLEMENTTATION 4.1UNIT TESTING:


The first lest in the development process is the unit test. The source code is
normally divided into modules, which in turn are divided into smaller units of code is called unit
test. Unit test depends upon the language on which the project is developed. Unit tests ensure
that each unique path of the project performs accurately to the document specification and
contains clearly defined inputs and expected result.

4.2 FUNCTIONAL TEST:

Functional test can be defined as testing two or more modules together with the
intent of finding defects, demonstrating that are present, verification that the module
performs its intended function as stated in the specification and establishing confidence that a
program does what it is supposed to do.

4.3 ACCEPTANCE TESTING:

Testing the system with the intent of confining readiness of the


product and customer acceptance.

4.4 SYSTEM TESTING

System testing of software is testing conducted on a complete. Integrated system


to evaluate the system’s compliance with it’s specified requirements. System testing falls within
the scope of block box testing, and as such, should require no knowledge of the inner design of
the code of logic. As a rule, system testing takes, as it’s input, all of the “integrated” software
components that have successfully paused integration testing and also the software system itself
integrated with any applicable hardware system.

The purpose of integration testing is to detect any inconsistencies between the software units that
are integrated together (called assemblages)of between any of the assemblages and the
hardware. System testing is amore limiting type of testing. It seeks to detect defects both within
the “inter assemblages” and also within the system as a whole

1
5. SYSTEM IMPLEMNTATION

5.1 SYSTEM IMPLEMENTATION

We have used SMTP server to send mails to the visitors and the children’s parents
or guardians about check in and check out.

If a visitors forgets to check in or check out notification send to their mail to inform their
status also the visitor notified about birth days and other events using mail concept.

The SMTP mail concept is linked with the Gmail server upon using the Gmail server and
the Ashram’s email-id and password we send mail through the Ashram email-id and password
using the SMTP server.

All mails are automated by the system and the admin only needs to click the button to
send the notification to the selected users.

The admin doesn’t need to type the body of the email and subject of the email. It is
all generated based on the database.

1
5.2 SYSTEM MAINTANANCE

We need to make sure the data is updated all times. The data the visitors and their
personal details also details about the students should be updated.

Therefore we may perform a monthly or quarterly check about the details of the
visitors intimating them through the mail.

So that we may update their details in case it has been changed. The database might
need to be changed on a yearly or half-yearly basis if the amount of data in database increases
to much.

Therefore we may extend the size of data to accommodate more information or more
data. We need to maintain steady and fast internet connection to make sure that the notification
sending process is fast and not interrupted by anything.

We would require a single admin to maintain the system and ensure its working. The
admin would be also responsible for report generation.

1
6. CONCLUSION

The project “VISITORS MANEGEMENT SYSTEM” has been developed according


to all specification and requirements. The project has reached the point where it has overcome all
the drawbacks of the existing system and provides a lot of improvements in the new system.

The project has also made it very easy for users and visitors for all kinds of users
both admin and visitors to easily track their own attendance any orphanage or shelter.

The system is eliminated all manual usage of data manual usage of records. The system is
very easy to use and doesn’t require great anybody to use it.

Therefore any admin may easily use the system. There can be a change of admin as when
required. The system uses latest technologies and methodologies and need not to be updated
anytime soon.

The system is highly robust and it may exist as it is very long period of time. The system
is created to be scalable so that in the future more data may be included and the size of the data
that is monitored may be increased.

I hope that the software is bringing great change in the society and it is able to reach
the life of all the people and do better for the community.

2
7. FUTURE ENHANCEMENT

The project works using an offline database. We would expect to make this online
database in the future. An online database would require a server on which data would be
stored.

Then the desktop application could convert into a web application, so that it requires no
installation on any system or PC. The admin and the visitors may use online webpage to access
the system.

There can also be Android or Ios app developed for the system. So that visitor may check
in and check out using their phones without having to approach the system every time they come
to the shelters. In the future we may implement SMART ID and QR code or any other concepts.

So that the users need not enter id or remember their id every time they visit the Ashram.
We may use a QR code. Further we may include face recognition system so that the user need
not do anything.

They only need to walk into the Ashram to get check in and check out status. Therefore
the user need not worry about forgetting to check in or check out at any point of time. To do this
another way of performing this would be to have the user install Android or Ios app and
perform their check in and check out based on locations.

When the user enters a location of the Ashram, we may perform the check in and
when the user exist the location of Ashram we may perform the check out without the
knowledge of the users. Therefore the user need not track their attendance every time.

We may make the admin panel more detailed so that the admin may very easily access all
the details of all visitors. Admin may easily edit the details of the visitors when he requires and
perform any kind of reports based on monthly daily or weekly basis.

He may also easily print these reports or save them on the online database to be accessed
at any point of time in the future. As of now reports are only generated, but in the future we
may save the reports for future reference.

2
8. BIBLIOGRAPHY

BOOKS:

1. Jesse Liberty, “Learning Visual Basic. NET”, McGraw Hill Publications


2. Fiach Reid, “Network Programming in .NET: With C# and Visual Basic .NET”,
Digital Press (1 July 2004)

WEBSITES:

1. www.docs.microsoft.com
2. www.stackoverflow.com
3. www.dreamincode.net
4. www.codeproject.com
5. www.msdn.microsoft.com
6. www.vb.net-informations.com

2
9. APPENDICES

9.1 TABLE DESIGN

Visitor’s personal details table.

Visitors check in and check out table.

Student details table.

Students check in and check out table.

2
9.2 ER DIAGRAM

2
9.3 DATA FLOW DIAGRAM
MODULE 1

MODULE 2

2
MODULE 3

2
OVER ALL DFD

2
9.4 SAMPLE CODING

Imports System.ComponentModel
Imports System.Data.OleDb
Imports System.Net.Mail
Imports Microsoft.Office.Interop

Public Class AdminForm


Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
Application.StartupPath + "\vms.mdb")

Private Sub AdminForm_Closing(sender As Object, e As CancelEventArgs) Handles


Me.Closing
LOGIN.Show()
End Sub

Private Sub AdminForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load


refreshList()
refreshList2()
End Sub
Sub refreshList2()
StudentList.Items.Clear()
con.Open()
Dim cmd As New OleDbCommand("select student.student_id, student.sname,
student.semail, student.smobile, slog.checkout_date, slog.purpose,
slog.checkout_time, slog.checkin_time from student, slog where slog.stud_id =
student.student_id", con)
Dim dr1 As OleDbDataReader = cmd.ExecuteReader()
While dr1.Read()
StudentList.Items.Add(New ListViewItem({dr1.GetValue(0).ToString(),
dr1.GetValue(1).ToString(), dr1.GetValue(2).ToString(), dr1.GetValue(3).ToString(),
dr1.GetValue(4).ToString(), dr1.GetValue(5).ToString(), dr1.GetValue(6).ToString(),
dr1.GetValue(7).ToString()}))

End While
con.Close()

End Sub
Sub refreshList2(ByVal condition As String, ByVal table As String)
StudentList.Items.Clear()
con.Open()
Dim cmd As New OleDbCommand("select student.student_id, student.sname,
student.semail, student.smobile, slog.checkout_date, slog.purpose, slog.checkout_time,
slog.checkin_time from student, slog where slog.stud_id = student.student_id And " + table + "."
+ condition + " Like '" + StudentSearch.Text + "%'", con)

2
Dim dr1 As OleDbDataReader = cmd.ExecuteReader()
While dr1.Read()
StudentList.Items.Add(New ListViewItem({dr1.GetValue(0).ToString(),
dr1.GetValue(1).ToString(), dr1.GetValue(2).ToString(), dr1.GetValue(3).ToString(),
dr1.GetValue(4).ToString(), dr1.GetValue(5).ToString(), dr1.GetValue(6).ToString(),
dr1.GetValue(7).ToString()}))
End While
con.Close()

End Sub

Private Sub bMail_Click(sender As Object, e As EventArgs) Handles Button2.Click


con.Open()
Dim cmd As New OleDbCommand("select registration.uname, registration.email,
admin.checkin_date, admin.checkin_time, admin.check_out_date,
admin.checkout_time, admin.user_id from registration, admin where admin.user_id =
registration.user_id and admin.checkout_time IS NULL and admin.check_out_date = '"
+ Today.Date.ToShortDateString() + "'", con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()
While dr.Read()
Dim SmtpServer As New SmtpClient()
Dim mail As New Net.Mail.MailMessage()
mail.From = New MailAddress("[email protected]")
mail.To.Add(dr.GetValue(1))
mail.Subject = "CHECKOUT NOTIFICATION"
Dim sigx As String = vbCrLf + vbCrLf + vbCrLf + " " + vbCrLf + "<b>*This is an
auto-generated email. Please do not reply to it*<\b>" + vbCrLf + vbCrLf + vbCrLf + vbCrLf +
"The Sevashram Trust" + vbCrLf +
"Little drops Of water And little grains Of sand make the mighty ocean."
+ vbCrLf + vbCrLf + vbCrLf +
"The Sevashram Trust" + vbCrLf +
"30, Venkataswamy Road East," + vbCrLf +
"R.S. Puram, Coimbatore - 002" + vbCrLf +
"Ph: 0422 255 2034" + vbCrLf +
"Website: www.sevashram.in"
mail.Body = "Dear " + dr.GetValue(0) + "," + vbCrLf + vbTab + vbTab + "You have
visited SEVASHRAM TRUST on " + dr.GetValue(2) + " at " + dr.GetValue(3) + " and
mentioned your Checkout Date as " + dr.GetValue(4) + ", but you have forgotten to check out at
the specified date. Please remember to check out without fail from next time. Thank you for
visiting SADHGURU SEVASHRAM. We hope to see you again very soon." + sigx
SmtpServer.Host =
"smtp.gmail.com"
SmtpServer.EnableSsl = True
SmtpServer.Credentials = New Net.NetworkCredential("[email protected]",
"sevashram1936")
SmtpServer.Port = 587
SmtpServer.Send(mail)

2
MsgBox("MAIL SENT!")
Dim cmd2 As New OleDbCommand("update admin set checkout_time = 'MAIL SENT'
where user_id = '" + dr.GetValue(6) + "'", con)
cmd2.ExecuteNonQuery()
End While
con.Close()
refreshList()
End Sub

Private Sub addstud_Click(sender As Object, e As EventArgs) Handles Button5.Click


Me.Hide()
Students.Show()
End Sub

Sub refreshList()
ListView3.Items.Clear()
con.Open()
Dim cmd As New OleDbCommand("select registration.user_id, registration.uname,
registration.gender, registration.mobile, registration.email, admin.purpose,
admin.checkin_date, admin.check_out_date, admin.checkin_time, admin.checkout_time from
registration, admin where registration.user_id = admin.user_id", con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()
While dr.Read()
ListView3.Items.Add(New ListViewItem({dr.GetValue(0).ToString(),
dr.GetValue(1).ToString(), dr.GetValue(2).ToString(), dr.GetValue(3).ToString(),
dr.GetValue(4).ToString(), dr.GetValue(5).ToString(), dr.GetValue(6).ToString(),
dr.GetValue(7).ToString(), dr.GetValue(8).ToString(),
dr.GetValue(9).ToString()}))
End While
con.Close()
End Sub

Sub refreshList(ByVal condition As String, ByVal table As


String) ListView3.Items.Clear()
con.Open()
Dim cmd As New OleDbCommand("select registration.user_id, registration.uname,
registration.gender, registration.mobile, registration.email, admin.purpose,
admin.checkin_date, admin.check_out_date, admin.checkin_time, admin.checkout_time from
registration, admin where registration.user_id = admin.user_id and " + table + "." + condition +
" like '" + TextSearch.Text + "%'", con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()
While dr.Read()
ListView3.Items.Add(New ListViewItem({dr.GetValue(0).ToString(),
dr.GetValue(1).ToString(), dr.GetValue(2).ToString(), dr.GetValue(3).ToString(),
dr.GetValue(4).ToString(), dr.GetValue(5).ToString(), dr.GetValue(6).ToString(),
dr.GetValue(7).ToString(), dr.GetValue(8).ToString(),
dr.GetValue(9).ToString()}))

3
End While

3
con.Close()
End Sub

Private Sub TextSearch_TextChanged(sender As Object, e As EventArgs) Handles


TextSearch.TextChanged
If TextSearch.Text = "" Then
refreshList()
ElseIf userid.Checked = True
Then refreshList("user_id",
"admin")
ElseIf username.Checked = True Then
refreshList("uname", "registration")
ElseIf email.Checked = True Then
refreshList("email", "registration")
ElseIf mobilenumber.Checked = True Then
refreshList("mobile", "registration")
ElseIf sdate.Checked = True Then
refreshList("checkin_date", "admin")
Else
MsgBox("PLEASE SELECT ANY SEARCH CRITERIA!")
End If
End Sub

Private Sub StudentSearch_TextChanged(sender As Object, e As EventArgs) Handles


StudentSearch.TextChanged
If StudentSearch.Text = ""
Then refreshList2()
ElseIf sname.Checked = True
Then refreshList2("sname",
"student")
ElseIf id.Checked = True Then
refreshList2("student_id", "student")
ElseIf rdate.Checked = True Then
refreshList2("checout_date", "slog")
Else
MsgBox("PLEASE SELECT ANY SEARCH CRITERIA!")
End If

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


con.Open()
Dim cmd As New OleDbCommand("select student.sname, student.semail, slog.purpose,
slog.checkout_date, slog.checkout_time, slog.checkin_date from student, slog where slog.stud_id
= student.student_id and slog.checkin_time IS NULL and slog.checkin_date = '" +
Today.Date.ToShortDateString() + "'", con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()

3
While dr.Read()

3
Dim SmtpServer As New SmtpClient()
Dim mail As New Net.Mail.MailMessage()
mail.From = New MailAddress("[email protected]")
mail.To.Add(dr.GetValue(1))

mail.Subject = "CHECKIN NOTIFICATION"


Dim sigx As String = vbCrLf + vbCrLf + vbCrLf + " " + vbCrLf + "This is an auto-
generated email. Please do not reply to it" + vbCrLf + vbCrLf + vbCrLf + vbCrLf +
"The Sevashram Trust" + vbCrLf +
"Little drops Of water And little grains Of sand make the mighty ocean."
+ vbCrLf + vbCrLf + vbCrLf +
"The Sevashram Trust" + vbCrLf +
"30, Venkataswamy Road East," + vbCrLf +
"R.S. Puram, Coimbatore - 002" + vbCrLf +
"Ph: 0422 255 2034" + vbCrLf +
"Website: www.sevashram.in"

mail.Body = "Dear " + dr.GetValue(0) + ",


You went out of SEVASHRAM for " + dr.GetValue(2) + " Purpose at " + dr.GetValue(4) + " on
" + dr.GetValue(3) + ", and specified your return date as " + dr.GetValue(5) + " but have not
checked in yet. If you have returned to Sevashram, please check in immediately, else, contacct
the Manager immediately and inform why you haven't returned."
SmtpServer.Host =
"smtp.gmail.com"
SmtpServer.EnableSsl = True
SmtpServer.Credentials = New Net.NetworkCredential("[email protected]",
"sevashram1936")
SmtpServer.Port = 587
SmtpServer.Send(mail)
MsgBox(mail.Body)
End While
con.Close()
End Sub
End Class

3
9.5 SCREEN SHOTS

LOGIN PAGE

3
REGISTER PAGE

3
EDIT PROFILE PAGE

3
ADMIN VIEW PAGE OF VISITORS

ADMIN VIEW PAGE OF STUDENTS

You might also like