Uploaded by samopgaming

Project Report(Final)

advertisement
A
PROJECT REPORT ON
Hostel Management System
FOR
“”
Projected By
Miss. Muskan Akhlaque Pore
(Exam Seat No:
)
Under the Guidance of
Prof. Sudesh Kadam
Submitted in the partial fulfilment of the requirements of qualifying
B.Sc. (CS) Semester-V examination
Hirwal Education Trust’s
College of Computer Science & Information Technology
Tal: Mahad -Raigad
Contact No: 9011768522
Affiliated to University of Mumbai
ACADEMIC YEAR 2022-23
PERFORMA FOR THE APPROVAL PROJECT PROPOSAL
PRN No.: ............................
Roll no: .................................
1. Name of the Student
________________________________________________________________
2. Title of the Project
________________________________________________________________
3.Name of the Guide
________________________________________________________________
4.Teaching experience of the Guide___________________________________
5. Is this your first submission?
Yes
No
Signature of the student
Signature of the Guide
Date: ..............................
Date: .............................
Signature of the Coordinator
Date: ..................................
Hirwal Education Trust’s
College of Computer Science & Information Technology
Tal: Mahad -Raigad
Affiliated to University of Mumbai
CITY-MAHAD-PINCOD-402302
CERTIFICATE
This is to certify that the project entitled “Hostel Management System”, is bonafide work of
MUSKAN AKHLAQUE PORE bearing Seat. No: (
)Submitted in partial
fulfilment of the requirements for the award of degree of BACHELOR OF SCIENCE in
COMPUTER SCIENCE from University of Mumbai.
Internal Guide
Coordinator
External Examiner
Date:
College Seal
Abstract
As the name specifies “HOSTEL MANAGEMENT SYSTEM” is software developed
for managing various activities in the hostel. For the past few years the number of educational
institutions is increasing rapidly. Thereby the number of hostels is also increasing for the
accommodation of the students studying in this institution. And hence there is a lot of strain on
the person who are running the hostel and software’s are not usually used in this context. This
particular project deals with the problems on managing a hostel and avoids the problems which
occur when carried manually. Less human error, Strength and strain of manual labour can be
reduced, High security, Data redundancy can be avoided to some extent, Data consistency,
Easy to handle, Easy data updating, Easy record keeping, Backup data can be easily generated.
This project targeted for the college Hostel integrates the transaction management of the Hostel
for better control and timely response. This eliminates time delay and paper transactions being
marked. The warden is provided with a better control over the transactions like adding the
details of new students in the hostel, modifying the details of the student, viewing the student’s
details in the hostel. This project’s main motto is to reduce the effort of wardens and provide
better service to the students.
The goal of this project is to develop a system for the computerization of the hostel.
The common transactions of the hostel include the maintenance of bills, information about
students in the hostel, enrolling of new students and their payments and dues, etc. are stored in
the databases.
ACKNOWLEDGEMENT
I am pleased to acknowledge principle of Hirwal Education Trust college of computer
science and information technology Mahad Prof.Sudesh Kadam and Head of Department
Prof. Rakesh Wadvalkar for their encouragement to make this project complete. As my
project HOSTEL MANAGEMENT SYSTEM which envelops the automation of all the
works related to the admission.
We place our sincere thanks towards our guide Prof. Sudesh Kadam, who supported us whole
heartedly and gave us a valuable guidance. Constructive criticism and timely suggestions
helped us a lot in the completion of project with base possible manner. We are also thankful to
other teaching and non-teaching staff of the college who helps us to complete this project.
It would be grateful to mention about the valuable suggestions and encouragement from our
family and friends and who helped directly and indirectly to make this project a success.
Yours sincerely,
Muskan Akhlaque Pore
T.Y. B.Sc. (Computer Science)
Year 2022-23
DECLARATION
I, Muskan Akhlaque Pore () student of B.Sc. Computer Science department hereby declare
that We own the full responsibility for the information, results etc. provided in this PROJECT
titled “HOSTEL MANAGEMENT SYSTEM” done at Hirwal Education Trust’s, College
of Computer Science and Information Technology. for the award of B.Sc. (Computer
Science) degree. We have taken care in all respect to honour the intellectual property right
and have acknowledged the contribution of others for using them in academic purpose and
further declare that in case of any violation of intellectual property right or copyright We, as
candidates, will be fully responsible for the same. My supervisor should not be held
responsible for full or partial violation of copyright or intellectual property right.
Name: Muskan Akhlaque Pore
Roll No:
TABLE OF CONTENTS
CHAPTER 1: INTRODUCTION
1.1: BACKGROUND OF STUDY
1.2: OBJECTIVES
1.3: PURPOSE, SCOPE AND APPLICABILITY
1.3.1: PURPOSE
1.3.2: SCOPE
1.4: ORGANISATION OF REPORT
CHAPTER 2: SURVEY OF TECHNOLOGIES
CHAPTER 3: REQUIREMENT AND ANALYSIS
3.1: PROBLEM DEFINITION
3.2: REQUIREMENTS SPECIFICATION
3.3: PLANNING AND SCHEDULING
3.4: SOFTWARE AND HARDWARE REQUIREMENTS
3.5: PRELIMINARY PRODUCT DESCRIPTION
CHAPTER 4: SYSTEM DESIGN
4.1: BASIC MODULES
4.2: DATABASE DESIGN
4.3.: PROCEDURAL DESIGN
4.3.1: DATA FLOW DIAGRAMS
4.3.2: ENTITY RELATIONSHIP DIAGRAMS
4.4: USER INTERFACE DESIGN
CHAPTER 5: IMPLEMENTATION AND TESTING
5.1: IMPLEMENTATION APPROACHES
5.2: CODING DETAILS AND CODE EFFICIENCY
5.2.1: CODE EFFICIENCY
5.3: TESTING APPROACH
5.3.1: UNIT TESTING
5.3.2: INTEGRATED TESTING
5.3.3: USER ACCEPTANCE TESTING
5.4: MODIFICATIONS AND IMPROVEMENTS
5.5: TEST CASES
CHAPTER 6: CONCLUSIONS
REFERENCES
TABLE of FIGURES
Fig.No
Title of Figures
1
DATA FLOW DIAGRAM
2
ER DIAGRAM
3
LOGIN
4
DASHBOARD
5
MANAGE ROOM
6
NEW STUDENT
7
UPDATE & DELETE STUDENTS
8
STUDENT FEES
9
ALL STUDENTS LIVING
10
LEAVED STUDENTS
11
NEW EMPLOYEE
12
UPDATE & DELETE EMPLOYEE
13
ALL EMPLOYEE WORKING
14
LEAVED EMPLOYEE
Page No
Chapter 1
Introduction
1.1Background
This Hostel Management System is developed in favour of the hostel management
team which helps them to save the records of the students about their rooms and other things.
It helps them from the manual work from which it is very difficult to find the record of the
students and the information about those ones who had left the hostel. This solution is
developed on the plight of the hostel management team, through this they cannot require so
efficient person to handle and manage the affairs of the students in the hostel, all you need
to do is to login as administrator and you can see the information of all the students who
have obtained and registered their hostel form, click verify to ascertain their eligibility and
allocate them to the available hostel.
Building this system is technically feasible. The hardware and software needed are all
available, it not difficult to get them. Brief I can say the necessary resources needed for the
development and maintenance of the system are available. I am going to use C# programming
languages and database.
The project I am developing is operationally feasible as there is no need for users to
have good knowledge in computer before using it. The user can learn and use the system with
easiness; he just needs to read the manual or tutorial from the developers.
Besides being technically feasible, developing this system is economically feasible as
well. The development of the system does not require the developers to spend a lot of money.
The tools I will be using to develop the system are not expensive and the software’s are open
source. All I need is time. Even the maintenance of the system will not be expensive. The
system is indeed economically feasible.
1.2 Objectives
The main objectives of this project to reduce the manual work of the person in the
admin panel. It helps the admin to know the number of students that can leave in a room. The
hostel Management system is the system that manages the student data, staff data, students’
admission process and create receipt for the fees paid by the student who stays in the hostel.
This system is designed in favour of the hostel management which helps them to save the
records of the students about their rooms. It helps them from the manual work from which it
is very difficult to find the record of the students and the bills of the students and the
information of about those ones who had left the hostel. Through this they cannot require so
efficient person to handle and calculate the things. Through this, it’s possible to check the
personal profile of all the current students within a fraction of seconds.
1.3Purpose and Scope and Applicability
1.3.1 Purpose
The purpose of the project is to build an application program to reduce the manual work
for managing the Rent, Allotees, Beds, Hostel. It tracks all the details about the Hostel, Rooms,
Payments.
1. Provides the searching facilities based on various factors. Such as Rent, Hostel, Rooms,
Payments.
2. College Management System also sells the employees details online for students
details, employees details, courses.
3. College Management System also sells the employees details online for students
details, employees details, courses.
4. Provide the functionality to make your own bookings
5. Update your web site without the need to get a web designer involved.
6. It tracks all the information of Allotees, Beds, Rooms etc
7. Manage the information of Allotees.
8. Shows the information and description of the Rent, Hostel
9. To increase efficiency of managing the Rent, Allotees.
10. It deals with monitoring the information and transactions of Rooms.
11. Manage the information of Rent.
1.3.2 Scope
It may help collecting perfect management in details in a very short time. The collection will
be obvious simple and sensible. It will help person to know the management of passed year
perfectly and vividly. It also helps in current all works relative to Hostel Management System.
It will also reduce the cost of collecting the management & collection procedure will go on
smoothly.
Our project aims Business process automation, i.e. we have tried to computerize various
processes of Hostel Management System.
•
In computer system the person has to fill the various forms & number of copies
of the forms can be easily generated at a time.
•
In computer system, it is not necessary to create the manifest but we can directly
print it, which saves our time.
•
To assist the staff in capturing the effort spent on their respective working areas.
•
To utilize resources in an efficient manner by their productivity through
automation.
•
The system generates types of information that can be used for various purpose.
1.5 Organisation of Report
Chapter 2
Survey of Technology
The new system is designed to solve problem affecting the manual system in use. It is design
to be used in a database formats trees as experienced from the manual system. This will do
the analysing and storing of information either automatically or interactively. The proposed
system will also have some other features like accuracy in handling of data, fast rate of
operation and excellent response time, flexibility it can be accessed at any time, easy way of
back up or duplicating data in disk in case of data loss thereby relieving both student and
staff from much, Better storage and faster retrieval system and accessibility from any part of
the world.
Education institutions are rapidly expanding over the past few years. From time to time
popular educational institutions increasing their branches, this is leading to the mushrooming
of hostels, and students are being admitted to hostels for studying in these institutions.
Benefits of Hostel Management System:
By all means, the hostel management system offers a plethora of benefits that enable smarter
management of the hostel. Here are the key benefits of the hostel management system
1. Room Allocation Made simpler:
Generally speaking, manual allocation of rooms in big hostels is a cumbersome process.
Important to realize that, automating the process with the hostel management system can help
in allocating rooms to the students without any conflicts.
2. Smarter Rent Assessment:
Rent assessment for a specific period is a tedious task for the hostel wardens, however, the
automatic rent calculator utility of hostel management software can make this task simpler,
saving a lot of time.
3. Secured Visitor Management:
Hostel Management allows visitors in the hostel for various purposes. At the same time,
security is of primary concern while handling these visitors. Visitors’ data is to be maintained
and should be available for ready access in case of any access.
In reality, automating visitor management with features like “Gate Pass Management” can
help in keeping track of visitors, who visit the hostel premises throughout the day.
Coupled with the data, the system allows generating reports on the basis of weekly, monthly,
or yearly. Accordingly, these reports can be stored in the cloud(online) and can be accessed
from anywhere.
4. Mess/Canteen Management:
Hostel Management System makes the management of the system much simpler. To
demonstrate it helps in maintaining records of various mess operations like Grocery
Handling, Day wise Food Menu, and Duty allocation for staff.
In other words, the system can help in the simpler and efficient handling of the Mess.
5. Student Attendance:
In reality, daily attendance records maintenance using traditional methods is a tedious task. In
the long run, it also involves a lot of time and is prone to errors as well. Comparatively
automating hostel attendance with the hostel management system can help in digitizing
attendance and ensure an error-free process.
6. Notifications:
Parents are really concerned about their children’s safety, and it is important to keep them in
the loop about their children’s information.
Hostel Management System allows sending notifications in the form of Push/SMS/Email
about their children. Additionally, these notifications can also be used to inform fee
reminders, mess bills, etc.,
Chapter 3
Requirement Analysis
.
3.1 Problem Definition
The Hostel Management System is developed for automating the activities of the hostel. The
software will be great relief to the employees. This software will help user in case of
registration and searching the information about students and rooms. The aim of the hostel
management system is to carry out the activities of hostel in an efficient way. It will take the
operations of hostel to an upper level by providing faster access to data and allowing addition
up gradation, modification, and deletion of data in a very systematic and reliable manner
3.2 Requirement Specification
Functional Requirements
This section gives a functional requirement that applicable to the HMS.
These are sub modules in this phase.
•
Administrator module.
•
User Module
•
Hostel Module
•
Registration Module
The functionality of each module is as follows:
Administrator module:
The Administrator can:
1. Allot different students to the different hostels.
2. Vacate the students for the hostels
3. Control the status of the fee payment.
4. Edit the details of the students & modify the student records.
User Module:
1. It allows the different users to access the registration forms.
2. He can view the Student administration division of the different hostels and also view the
notice boards.
Hostel Module:
As the student’s course is over they will vacate their rooms. So it is required for the
administrator to remove their records from the database tables. This section includes the
option for the room vacation and the deletion of the particular record from the database.
Registration Module:
This section provides a form to the students which can be filled by them, and a copy of
the filled page can be taken in the printed form. This is later submitted to the
Hostel authorities can be verified by them before allotting them to the respective hostels
Rooms.
Non-Functional Requirements
Performance Requirements
Some Performance requirements identified is listed below:
•
The database shall be able to accommodate a thousand record to store.
•
The software shall support use of multiple users at a time.
•
There are no other specific performance requirements that will affect development.
Safety Requirements
The database may get crashed at any certain time due to virus or operating system failure.
Therefore, it is required to take the database backup.
Security Requirements
Some of the factors that are identified to protect the software from accidental or malicious
access, use, modification, destruction, or disclosure are described below. Keep specific log
or history data sets
•
Assign certain functions to different modules
•
Restrict communications between some areas of the program
•
Check data integrity for critical variables
•
Later version of the software will incorporate encryption techniques in the
user/license authentication process.
3.3 Planning and Scheduling
‘Project Planning and Scheduling’, though separate, are two sides of the same coin in
project management. Fundamentally, ‘Project planning’ is all about choosing and designing
effective policies and methodologies to attain project objectives. While ‘Project scheduling’ is
a procedure of assigning tasks to get them completed by allocating appropriate resources within
an estimated budget and time-frame.
The basis of project planning is the entire project. Unlikely, project scheduling focuses
only on the project-related tasks, the project start/end dates and project dependencies. Thus, a
‘project plan’ is a comprehensive document that contains the project aims, scope, costing, risks,
and schedule. And a project schedule includes the estimated dates and sequential project tasks
to be executed.
3.4 Software and Hardware Requirements
Hardware Requirements
For the effective operation of the newly designed system, the following minimum
hardware specifications are recommended.
a. The computer system in use should be IBM compatible since they are considered clone
system.
b. The Random Access Memory (RAM) should be at least 128KB.
c. The system should have a hard disk of at least 50GB and at least a diskette drive of high
density of 1.44MB (3.5 inches)
d. The system should be equipped with an E.G.A/V.G.A, a coloured monitored.
e. An uninterruptible power supply (UPS) units. These listed configurations are the
minimum requirement but if the configurations are higher the report derived will definitely
be better and the program will run much faster.
Hardware Specifications: Hardware
Minimum System
Requirements
Purpose/Reason
The system uses a complex program
Hard disk space
At least 40 GB
the should have the capacity to store a
huge amount of administrative record.
Memory (RAM)
At least 1024 MB
The computer should be capable of
running several programs concurrency
at the same time.
Processor
Visual Display Unit
CD-ROM Drive
Intel Pentium IV
To allow processing of student details
(At least I GHZ)
within the shortest possible time.
High resolution (At least
To provide a clear display for
1280×720 pixels)
visibility.
Speed 50X
To allow programs to be written or
copied fast.
Software Requirements
The software specification required on the computer system are; window XPor
higher version for faster processing and working Microsoft Office Access installed and
ready.
Software Specification: -
Software
Purpose/Reason
Operating System
Windows XP (Service Park 2/3). Windows
Ultimate/Professional or Vista (for users).
Linux platforms
7 To provide compatibility with current versions
Application software
The system shall store its data online.
(for the server)
MICROSOFT VISUAL STUDIO 2008.net
For Analysis and design.
SQL SERVER 2005
Used as database management system to stores
client information.
VISUAL BASIC.NET
Used as the client side language (implementation
of the business intelligence/ system functionality)
ASPX and HTML
Applied as the Server side language to publish the
system database online
WEB BROWSER
Used to run the online system.
3.5 Preliminary Product Description
Existing System
For the past few years the numbers of educational institutions are increasing rapidly. Thereby
The numbers of hostels are also increasing for accommodation of students studying in this
institution. And hence there is a lot of strain on the person who are running the hostel and
software’s are not usually used in this context. This particular project deals with the problems
on managing the hostels and avoid the problems which occur when carried manually.
Identification of the drawbacks of the existing system leads to the designing od computerized
system that will be compatible to the existing system with the system which is more user
friendly and more GUI oriented. We can improve the efficiency of the system, thus overcome
the following drawbacks of the existing system.
•
More human error
•
More strength and strain of manual labor needed
•
Repetition of the same procedures
•
Low security
•
Data redundancy
•
Difficult to handle
•
Difficult to update data
•
Record keeping is difficult
•
Backup data can be easily generated
•
Since all the work is done in paper so it is difficult to locate a particular student
required.
Proposed System
The drawback of existing system is that it is very difficult to retrieve data from
records. It is difficult to handle the whole system manually and it is less accurate and
to keep data in records for future reference because it may get destroyed. Moreover, it
is very difficult to retrieve data. Redundancy of data may occur and this may lead to
the inconsistency. The manual system is time consuming. The proposed system is
very easy to operate. Speed and accuracy are the main advantages of proposed
system. There is no redundancy of data. The data are stored in the computer
secondary memories like hard disk, etc. it can be easily received and used at any time.
The proposed system will easily handle all the data and the work done by existing
systems. The proposed system eliminates the drawbacks of the existing system to a
great extent and it provides tight security to data.
Chapter 4
System Design
4.1 Basic Models
A software system is always divided into several sub systems that makes it
easier for the development. A software system that is structured into several subsystems
makes it easy for the development and testing the different subsystems are known as the
modules and the processes dividing and entire system into subsystem is known as
modularization decomposition.
A system cannot be decomposed into several subsystems in any way thee must
some logical barrier, which facilitates the separation of each model the separation must be
simple but yet must be effective so that the development is not affected.
The system under consideration has been divided into several modules taking in
consideration the above-mentioned criteria. The different modules are
1.
User Module
2.
Administrator Module
4.2 DATABASE DESIGN
The database is used for the purpose of handling information as an integrated whole. It is
defined as a collection of interrelated data stored with less or no redundancy to serve many
users quickly and effectively. We should design a database to see how data should be
organized around user requirements. The objective of the database is to make information
access, easy quick, inexpensive and flexible for other users. During database design the
following objectives are concerned:
●
Controlled Redundancy
●
Data independence
●
Accurate and integrating
●
More information at low cost
●
Recovery from failure
●
Privacy and security
●
Performance
The tables used in the database are as follow:
●
Table Name: rooms
create table rooms(
roomNo bigint not null primary key,
roomStatus varchar(250) not null,
Booked varchar(150) default 'No')
•
Table Name: newStudent
create table newStudent(
id int identity(1,1) primary key,
mobile bigint not null,
name varchar(250) not null,
fname varchar(250) not null,
mname varchar(250) not null,
email varchar(250) not null,
paddress varchar(250) not null,
college varchar(250) not null,
idproof varchar(250) not null,
roomNo bigint not null,
living varchar(250) default 'Yes',
FOREIGN KEY (roomNo) REFERENCES rooms(roomNo))
●
Table Name: fees
create table fees(
mobileNo bigint not null,
fmonth varchar(60) not null,
amount bigint not null)
●
Table Name: newEmployee
create table newEmployee(
id int identity(1,1) primary key,
emobile bigint not null,
ename varchar(250) not null,
efname varchar(250) not null,
emname varchar(250) not null,
eemail varchar(250) not null,
epaddress varchar(250) not null,
eidproof varchar(250) not null,
edesignation varchar(250) not null,
working varchar(50) default 'Yes')
●
Table Name: payment
create table employeeSalary(
mobileNo bigint not null,
fmonth varchar(60) not null,
amount bigint not null)
4.3 Procedural Designs
4.3.1 Data Flow Diagram
Figure 1: Data Flow Chart
4.3.2 Entity-Relationship Diagram
ER Diagram: 1
ER Diagram: 2
ER Diagram: 3
ER Diagram: 4
ER Diagram: 5
4.4 USER INTERFACE DESIGN
This section contains some screenshots of the components of the system.
●
Login Page
Figure 3: Login
●
Dashboard Page
Figure 4: Dashboard
●
Manage Room Page
Figure 5: Manage Room
●
New Student Page
Figure 6: New Student
●
Update & Delete Students Page
Figure 7: Update & Delete Students
●
Student Fees Page
Figure 8: Student Fees
●
All Students Living Page
Figure 9: All Students Living
●
Leaved Students Page
Figure 10: Leaved students
●
New Employee Page
Figure 11: New Employee
●
Update & Delete Employee Page
Figure 12: Update & Delete Employee
●
Employee Payment Page
Figure 13: Employee Payment
●
All Employee Working Page
Figure 14: All Employees Working
●
Leaved Employee Page
Figure 15: Leaved Employee
Chapter 5
Implementation and Testing
5.1 Implementation Approaches
Implementation is the stage in the project where the theoretical design is turned into a working
system and is giving confidence on the new system for the users that it will work efficiently
and effectively. It involves careful planning, investigation of the current system and its
constraints on implementation, design of methods to achieve the changeover, an evaluation of
change over methods. Apart from planning major task of preparing the implementation are
education and training of users. The implementation process begins with preparing a plan for
the implementation of the system. According to this plan, the activities are to be carried out,
discussions made regarding the equipment and resources and the additional equipment has to
be acquired to implement the new system. In network backup system no additional resources
are needed. Implementation is the final and the most important phase. The most critical stage
in achieving a successful new system is giving the users confidence that the new system will
work and be effective. The system can be implemented only after thorough testing is done and
if it is found to be working according to the specification. This method also offers the greatest
security since the old system can take over if the errors are found or inability to handle certain
type of transactions while using the new system.
5.2 Coding Details and Code Efficiency
5.2.1 Code Details
Add New Room:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HostelManagementVideo
{
public partial class AddNewRoom : Form
{
function fn = new function();
String query;
public AddNewRoom()
{
InitializeComponent();
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
}
private void AddNewRoom_Load(object sender, EventArgs e)
{
this.Location = new Point(350, 170);
labelRoom.Visible = false;
labelRoomExist.Visible = false;
query = "select * from rooms";
DataSet ds = fn.getData(query);
dataGridView1.DataSource = ds.Tables[0];
}
private void btnAddRoom_Click(object sender, EventArgs e)
{
//100
query="select * from rooms where roomNo="+txtRoomNo1.Text+"";
DataSet ds = fn.getData(query);
if(ds.Tables[0].Rows.Count==0)
{
String status;
if(checkBox1.Checked)
{
status = "Yes";
}
else
{
status = "No";
}
labelRoomExist.Visible = false;
query = "insert into rooms (roomNo,roomStatus)
values("+txtRoomNo1.Text+",'"+status+"')";
fn.setData(query,"Room Added.");
AddNewRoom_Load(this, null);
}
else
{
labelRoomExist.Text = "Room All Ready Exist.";
labelRoomExist.Visible = true;
}
}
private void btnSearch_Click(object sender, EventArgs e)
{
query = "select * from rooms where roomNo=" + txtRoomNo2.Text + "";
DataSet ds = fn.getData(query);
if(ds.Tables[0].Rows.Count==0)
{
labelRoom.Text = "No Room Exist.";
labelRoom.Visible = true;
checkBox2.Checked = false;
}
else
{
labelRoom.Text = "Room Found.";
labelRoom.Visible = true;
if(ds.Tables[0].Rows[0][1].ToString()=="Yes")
{
checkBox2.Checked = true;
}
else
{
checkBox2.Checked = false;
}
}
}
private void btnUpdate_Click(object sender, EventArgs e)
{
String status;
if(checkBox2.Checked)
{
status = "Yes";
}
else
{
status = "No";
}
query = "update rooms set roomStatus='" + status + "' where roomNo
="+txtRoomNo2.Text+"";
fn.setData(query, "Details Updated.");
AddNewRoom_Load(this, null);
}
private void btnDelete_Click(object sender, EventArgs e)
{
if(labelRoom.Text=="Room Found.")
{
query = "delete from rooms where roomNo=" + txtRoomNo2.Text + "";
fn.setData(query, "Room Details Deleated.");
AddNewRoom_Load(this, null);
}
else
{
MessageBox.Show("Trying to delete which doesn't Exist.", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}
New Student:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HostelManagementVideo
{
public partial class NewStudent : Form
{
function fn = new function();
String query;
public NewStudent()
{
InitializeComponent();
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
}
private void NewStudent_Load(object sender, EventArgs e)
{
this.Location = new Point(350, 170);
query = "select roomNo from rooms where roomStatus ='Yes' and Booked='No'";
DataSet ds = fn.getData(query);
for(int i=0;i<ds.Tables[0].Rows.Count;i++)
{
Int64 room = Int64.Parse(ds.Tables[0].Rows[i][0].ToString());
comboRoomNo.Items.Add(room);
}
}
private void btnClear_Click(object sender, EventArgs e)
{
clearAll();
}
public void clearAll()
{
txtMobile.Clear();
txtName.Clear();
txtFather.Clear();
txtMother.Clear();
txtEmail.Clear();
txtPermanent.Clear();
txtcollege.Clear();
txtIdProof.Clear();
comboRoomNo.SelectedIndex = -1;
}
private void btnSave_Click(object sender, EventArgs e)
{
if (txtMobile.Text != "" && txtName.Text != "" && txtFather.Text != "" &&
txtMother.Text != "" && txtEmail.Text != "" && txtPermanent.Text != "" &&
txtcollege.Text != "" && txtIdProof.Text != "" && comboRoomNo.SelectedIndex != -1)
{
Int64 mobile = Int64.Parse(txtMobile.Text);
String name = txtName.Text;
String fname = txtFather.Text;
String mname = txtMother.Text;
String email = txtEmail.Text;
String paddress = txtPermanent.Text;
String college = txtcollege.Text;
String idproof = txtIdProof.Text;
Int64 roomNo = Int64.Parse(comboRoomNo.Text);
query = "insert into newStudent
(mobile,name,fname,mname,email,paddress,college,idproof,roomNo) values (" + mobile +
",'" + name + "','" + fname + "','" + mname + "','" + email + "','" + paddress + "','" + college +
"','" + idproof + "'," + roomNo + ") update rooms set Booked ='Yes' where roomNo =" +
roomNo + "";
fn.setData(query, "Student Registration Successful.");
clearAll();
}
else
{
MessageBox.Show("Fill all empty space.", "Information!!",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
New Employee:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HostelManagementVideo
{
public partial class NewEmployee : Form
{
function fn = new function();
String query;
public NewEmployee()
{
InitializeComponent();
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
}
private void NewEmployee_Load(object sender, EventArgs e)
{
this.Location = new Point(350, 170);
}
private void btnSave_Click(object sender, EventArgs e)
{
if(txtMobile.Text!="" && txtName.Text != "" && txtFather.Text!="" &&
txtMother.Text!="" && txtEmailId.Text!="" && txtPermanent.Text!="" &&
txtUniqueId.Text!="" && txtDesignation.SelectedIndex!=-1)
{
Int64 mobile = Int64.Parse(txtMobile.Text);
String name = txtName.Text;
String fname = txtFather.Text;
String mname = txtMother.Text;
String email = txtEmailId.Text;
String address = txtPermanent.Text;
String id = txtUniqueId.Text;
String designation = txtDesignation.Text;
query = "insert into newEmployee
(emobile,ename,efname,emname,eemail,epaddress,eidproof,edesignation) values
("+mobile+",'"+name+"','"+fname+"','"+mname+"','"+email+"','"+address+"','"+id+"','"+desig
nation+"')";
fn.setData(query, "Employee Registration Successful.");
clearAll();
}
else
{
MessageBox.Show("Fill all Required Data.", "Information",
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void btnClear_Click(object sender, EventArgs e)
{
clearAll();
}
private void clearAll()
{
txtName.Clear();
txtMobile.Clear();
txtFather.Clear();
txtMother.Clear();
txtEmailId.Clear();
txtPermanent.Clear();
txtUniqueId.Clear();
txtDesignation.SelectedIndex = -1;
}
}
}
Leaved Students:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HostelManagementVideo
{
public partial class LeavedStudents : Form
{
function fn = new function();
String query;
public LeavedStudents()
{
InitializeComponent();
}
private void LeavedStudents_Load(object sender, EventArgs e)
{
this.Location = new Point(350, 170);
query = "select * from newStudent where living = 'No'";
DataSet ds = fn.getData(query);
guna2DataGridView1.DataSource = ds.Tables[0];
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
Leaved Employee:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HostelManagementVideo
{
public partial class LeavedEmployee : Form
{
function fn = new function();
String query;
public LeavedEmployee()
{
InitializeComponent();
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
}
private void LeavedEmployee_Load(object sender, EventArgs e)
{
this.Location = new Point(350, 170);
query = "select * from newEmployee where working ='No'";
DataSet ds = fn.getData(query);
guna2DataGridView1.DataSource = ds.Tables[0];
}
}
5.3 Testing Approach
5.3.1 Unit Testing
The software units in a system are modules and routines that are assembled and integrated to
perform a specific function. Unit testing focuses first on modules, independently of one
another, to locate errors. This enables, to detect errors in coding and logic that are contained
within each module.
This testing includes entering data and ascertaining if the value matches to the type and size
supported by java. The various controls are tested to ensure that each performs its action as
required.
5.3.1 Integrated Testing
Data can be lost across any interface, one module can have an adverse effect on another, sub
functions when combined, may not produce the desired major functions. Integration testing is
a systematic testing to discover errors associated within the interface. The objective is to take
unit tested modules and build a program structure. All the modules are combined and tested as
a whole. Here the Server module and Client module options are integrated and tested.
This testing provides the assurance that the application is well integrated functional unit with
smooth transition of data.
5.3.1 User Acceptance Testing
User acceptance of a system is the key factor for the success of any system. The system under
consideration is tested for user acceptance by constantly keeping in touch with the system users
at time of developing and making changes whenever required
5.4 Modification and Improvements
T h i s h o s t e l m a n a g e m e n t s o f t w a r e i s d e s i g n e d f o r people who want to manage
various activities in the hostel. This project is designed to fulfil the need of the future
generations.
This project is small package which includes different categories as well as having all
possible features. We have expected that it will be helpful to the' customers as well as
Administrative members.
We will improve this project in future with online room reservation system and also improve
in security by providing a magnetic coated card to permanent students for automatic check
in and check out
We are waiting for your best suggestion and encouragement which could make us improve
the future programming much better than the one we have carried out
5.5 Test Cases
1. Login Information Maintenance
•
The login id should be a string of alphabets of length not exceeding 30 characters.
•
The password should be a string of alphanumeric of minimum length of 8characters
and maximum 20 characters
•
Login id cannot be null
•
Password cannot be null
2. Student Information Maintenance
•
The student name should be a sting of alphabets with length up to 30 characters
•
The student address contains city information that should be a sting of alpha numeric
of length up to 40 characters.
•
The student phone no. should be a number of minimum length of 8 digits and
maximum of 10 digits.
•
The student email id should be a string of alphanumeric of length up to 20 characters.
•
Students college name should be a string of alphanumeric of length up to 40
characters.
•
The student name cannot be null.
3. Employee Information Maintenance
•
The employee name should be a string of alphabets with length up to 30 characters.
•
The employee id no. should be a number of 6 digits which is unique for each
employee.
•
The employee designation should be a string of alphabets of length up to 15
characters.
•
The employee address should be a string of alphanumeric of length up to 40
characters.
•
The employee phone no. should be a number with minimum length of 8 digits and
maximum of 10 digits.
•
Employee basic salary should be a number in the range 0-50,000
•
Employee id cannot be NULL
•
Employee basic salary cannot be NULL.
4. Room Information Maintenance
•
The room no should be of 3 digits
•
Room no. cannot be null
5. Fees Information Maintenance
•
The fee amount should be a number in the range of 0-30000.
•
Fee cannot be null.
6. Payment Information Maintenance
•
The employee mobile no. should be a number of with minimum length of 8 digits and
maximum of 10 digits.
•
The Payment date should be a string of alphanumeric of length up to 10 characters.
•
The payment amount should be a number in the range of 0-50000.
•
The mobile no. cannot be null.
•
The payment amount cannot be null.
Chapter 6
Conclusions
6.1 Conclusions
The evidence gathered in this report reflects ongoing progress toward more openness in
hostel automation systems, but also that much work remains. We see a variety of options and
opportunities. Employees that expect to work with their automation system as delivered and
not become involved in local extensions or programming will find that the majority of
systems were built for that kind of use. For Employees that want to do more with their
automation systems, however, we see a great deal of functionality possible today through
open interfaces with momentum toward creating much more.
High security measures should be upheld in order to avoid theft crimes in this project. The
key concept is to minimize the amount of paper and convert all forms of documentation to
digital form. It can observe that the information required can be obtained with ease and
accuracy in the computerized system. The user with minimum knowledge about computer
can be able operate the system easily. The system also produces brief result required by the
management.
References
• https://www.javatpint.com/
• https://www.coursera.org/
• https://www.udemy.com/
• https://www.edx.org/
• https://www.w3schools.com/
Download