Professional Documents
Culture Documents
I thank the Almighty, The Power that guided me throughout the steps that I
take in the future. I thank him once again for giving such a wonderful life full of
color and brightness.
I’m proud and privileged to express my sincere gratitude to thank and praise
Mrs.Sylvia Mary, MCA.,M.Phil, Head of the Department, Department of
Computer Application, for his consent and had shared the fruit of knowledge by
constant guidance and support.
I’m also very thankful to our staff members for their encouragement to ward
our endeavor is making this project successful.
Last but not least ,I would like to take this opportunity to thank my family
and friends for their support and encouragement
ABSTRACT
1. INTRODUCTION
1.1Problem Definition 1
2. SYSTEM SPECIFICATION
2.1Hardware Requirements 2
2.2Software Requirements
3
4
2.3 Technical Profile
3. SYSTEM DESIGN
3.1Database Design 13
4. PROJECT DESCRIPTION 17
5. TESTING AND IMPLEMENTATION
5.1Introduction 20
5.2Types of Testing 23
6. FUTURE ENHANCEMENT 25
7. CONCLUSION 26
8. BIBLIOGRAPHY 27
9. APPENDICES
28
9.1 Sample code
9.2 Screen Shots 33
1.INTRODUCTION
Hostel management gives on idea about how the students details, room
allocation are maintained in the particular concern. The hostel management system
also includes some special features. The administration has the unique identity for
each members as well as students details. The stock management has the mess bills
of each of the students. The modules of this project are student details, attendance
details, room details, mess modules.
We have 7 hostels in our university. All these hostels at present are managed
manually by the hostel office. The Registration form verification to the different
data processing are done manually. Thus there are a lot of repetitions which can be
easily avoided. And hence there is a lot of strain on the person who are running the
hostel. This particular project deals with the problems on managing a hostel and
avoids the problems which occur when carried manually
1
2. SYSTEM SPECIFICATION
RAM : 512 MB
2
2.3 TECHNICAL PROFILE
The pre-coded solutions that form the framework's Base Class Library cover
a large range of programming needs in a number of areas, including user
interface, data access, database connectivity, cryptography, web application
development, numeric algorithms, and network communications. The class
library is used by programmers, who combine it with their own code to produce
applications.
SECURITY
3
COMMON LANGUAGE INFRASTRUCTURE
The core aspects of the .NET framework lie within the Common
Language Infrastructure, or CLI. The purpose of the CLI is to provide a
language-neutral platform for application development and execution, including
functions for exception handling, garbage collection, security, and
interoperability. Microsoft's implementation of the CLI is called the Common
Language Runtime or CLR.
ASSEMBLIES
METADATA
4
MEMORY MANAGEMENT
5
INTERNET
6
• Power and Flexibility. Because ASP.NET is based on the common
language runtime, the power and flexibility of that entire platform is available to
Web application developers. The
7
• Customizability and Extensibility. ASP.NET delivers a well-factored
architecture that allows developers to "plug-in" their code at the appropriate
level. In fact, it is possible to extend or replace any subcomponent of the
ASP.NET runtime with your own custom-written component. Implementing
custom authentication or state services has never been easier.
LANGUAGE SUPPORT
ADO.NET OVERVIEW
8
A DataAdapter is the object that connects to the database to fill the
DataSet. Then, it connects back to the database to update the data there, based on
operations performed while the DataSet held the data. In the past, data processing
has been primarily connection-based. Now, in an effort to make multi-tiered apps
more efficient, data processing is turning to a message-based approach that
revolves around chunks of information. At the center of this approach is the
DataAdapter, which provides a bridge to retrieve and save data between a
DataSet and its source data store. It accomplishes this by means of requests to
the appropriate SQL commands made against the data store.
The following sections will introduce you to some objects that have
evolved, and some that are new. These objects are:
• DataSet. For storing, Remoting and programming against flat data, XML data
and relational data.
• DataAdapters. For pushing data into a DataSet, and reconciling data against a
database.
CONNECTIONS
9
COMMANDS
DATA READERS
A database management, or DBMS, gives the user access to their data and
helps them transform the data into information. Such database management
systems include dBase, paradox, IMS, SQL Server and SQL Server. These
systems allow users to create, update and extract information from their
database.During an SQL Server Database design project, the analysis of your
business needs identifies all the fields or attributes of interest. If your business
needs change over time, you define any additional fields or change the definition
of existing fields.
10
SQL SERVER TABLES
PRIMARY KEY
RELATIONAL DATABASE
FOREIGN KEY
When a field is one table matches the primary key of another field is
referred to as a foreign key. A foreign key is a field or a group of fields in one
table whose values match those of the primary key of another table.
11
REFERENTIAL INTEGRITY
Not only does SQL Server allow you to link multiple tables, it also
maintains consistency between them. Ensuring that the data among related tables
is correctly matched is referred to as maintaining referential integrity.
DATA ABSTRACTION
Physical level: This is the lowest level of abstraction at which one describes
how the data are actually stored.
Conceptual Level: At this level of database abstraction all the attributed and
what data are actually stored is described and entries and relationship among them.
View level: This is the highest level of abstraction at which one describes only
part of the database.
12
3. SYSTEM DESIGN
ROOM DETAILS
ROOM ALLOTMENTS
VISITORS DETAILS
13
ADMISSION
EMPLOYEE SALARY
14
EMPLOYEES
OUTING REGISTER
15
RENTAL FEES
LEAVE REGISTER
MESS BILL
16
4. PROJECT DESCRIPTION
USER REGISTRATION
The user register Module stored user information, all input filed validation
number validation ,emailed validation, space validation get user information and
username, password, emailed, address, contact number stored in sqldatabase.
ADMIN LOGIN
The hostel management dashboard managed three menu tag the first menu
tag is student this tag is stored student outing register and leave register search
student information’s other tag rental fees mess Bill link this menu tag .thread tag
exit application and link in homepage.
17
VACATING THE ROOMS
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.
ROOM DETAILS
There will be the room no and capacity of a student can stay in a room. We
can save student details and room’s details and room information room’s settings
minted room details.
ROOM SETTINGS
In room Settingsit will display student name, class and room number which
have been specified for a particular students and stored Rooms details and show all
rooms settings.
VISITORS DETAILS
In visitors details it displays about the the visitor name and guardian for a
student with address, mobile number and date. It can be saved and view
thevisitor’s details.student name and visitors in time and out time stored sql
database.
ADMISSION FORM
Application form specifies student id no, student name, class, father name,
father occupation, mother name, mother occupation, address, religion
studentinformation stored and verify student record and fess details join month
etc.
18
OUTING REGISTER
Students id, student name, date, in time , out time, reason all these details
will be displayed. We can add ,view outing register the details out time and in time
stored sql database.
RENT FEES
Student id, student name, rent fees, date. It displays about the rent fees of
the student Hostel Rental fees information’s.
EMPLOYEES
Employee id, employee name, address, qualification, contact no, email id,
designation and basic salary. We can addemployeesdetails.
EMPLOYEE SALARY
We can set employee id, employee name, date and basic salary. We can
insert Employee monthly salary details and number of days.
REGISTRATION FLOW:
To take the membership of the hostel the students should tell the
department’s name to the hostel management system. He/she should fill his/her
personal profile on the profile page. After this the warden issued ID # to him/her.
So that the student can accessed by his/her ID # in case of any problem or other
thing.
19
ROOM PROCESS FLOW :
DATABASE FLOW:
When the new student is arrived then the administrator easily enters a new
entry in the database of the system. All the information about mess and other
facilities is updated easily. This database should save the record of all the current
users and the 3 years old students.
20
5. TESTING AND IMPLEMENTATION
5.1 INTRODUCTION
Testing is a process of executing a program with the intent of finding an
error. Testing is a crucial element of software quality assurance and presents
ultimate review of specification, design and coding.System Testing is an important
phase. Testing represents an interesting anomaly for the software. Thus a series of
testing are performed for the proposed system before the system is ready for user
acceptance testing. There are various types of test. Each test type addresses a
specific testing requirement.
2. The effect of the system errors on files and records within the system
The primary objective for test case design is to derive a set of tests that has
the highest livelihood for uncovering defects in software. To accomplish this
objective two different categories of test case design techniques are used. They are
WHITE-BOX TESTING:
White box testing focus on the program control structure. Test cases are
derived to ensure that all statements in the program have been executed at least
once during testing and that all logical conditions have been executed
21
BLACK-BOX TESTING:
1) Interface errors
3) Performance errors
Testing strategies:
A strategy for software testing must accommodate low-level tests that are
necessary to verify that all small source code segments has been correctly
implemented as well as high-level tests that validate major system functions
against customer requirements.
Testing fundamentals:
22
Unit Testing
Unit testing is usually conducted as part of a combined code and unit test
phase of the software lifecycle, although it is not uncommon for coding and unit
testing to be conducted as two distinct phases.
Acceptance Testing
Test case
IMPLEMENTATION:
23
There are several activities involved while implementing a new project they are
The successful implementation of the new system will purely upon the
involvement of the officers working in that department. The officers will be
imparted the necessary training on the new technology.
The education of the end user start after the implementation and testing is
over. When the system is found to be more difficult to under stand and complex,
more effort is put to educate the end used to make them aware of the system,
giving them lectures about the new system and providing them necessary
documents and materials about how the system can do this.
After providing the necessary basic training on the computer awareness, the
users will have to be trained upon the new system such as the screen flows and
screen design type of help on the screen , type of errors while entering the data ,
the corresponding validation check at each entry and the way to correct the data
entered. It should then cover information needed by the specific user or group to
use the system.
24
6. FUTURE ENHANCEMENT
25
7. CONCLUSION
26
8. BIBLIOGRAPHY
BOOKS:
1. Pro VB 2008 and the .NET 3.5 Platform by Andrew Troelsen (Author)
2. Beginning SQL Server 2005 for Developers: From Novice to Professional
by Robin Dewson (Author)
WEBSITES:
http://www.ccsuhostel.com
http://www.excelanto.com
http://www.indoconindia.com/hostel management system.aspx
27
9.APPENDICES
HomePage .cs :
namespace Hostel_Management_System{
public partial class Home : Form{
SqlDataReader dr;
SqlConnection con = new SqlConnection("server=BANU-
PC\\SQLSERVER1;database=Hostel_Management;uid=sa;pwd=dotnet;");
public static string username, admin_username;
public Home(){
InitializeComponent();}
private void but_login_Click(object sender, EventArgs e){
if (textBox1.Text == "admin" && textBox2.Text == "admin123"){
AdminPage admin = new AdminPage();
admin.Show();
this.Hide();}
else{
sql();}}
public void sql(){
con.Open();
SqlCommand cmd = new SqlCommand("Select username,password From Register Where
username='" + textBox1.Text + "'", con);
dr = cmd.ExecuteReader();
try{
if (dr.HasRows){
if (dr.Read())
if (textBox2.Text == dr["password"].ToString()){
Hostel_Management_Dashboard home = new Hostel_Management_Dashboard();
home.Show();
28
this.Hide();}
else{
MessageBox.Show("your passwod is in incorrect");}}
else{
MessageBox.Show("Incorrect username");}}
catch (Exception ex){
//MessageBox.Show('" + ex + "');}
finally{
dr.Close();}
con.Close();}
private void Lnk_register_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e){
NewRegister reg = new NewRegister();
reg.Show();
this.Show();}}}
Employee.cs :
namespace Hostel_Management_System{
public partial class Employees : Form{
SqlConnection con = new SqlConnection("server=BANU-
PC\\SQLSERVER1;database=Hostel_Management;uid=sa;pwd=dotnet;");
public Employees(){
InitializeComponent();}
private void Lnkbut_Back_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e){
AdminPage admin = new AdminPage();
admin.Show();
this.Hide();}
private void but_submit_Click(object sender, EventArgs e){
if (textBox1.Text == "" || textBox2.Text == "" || textBox3.Text == "" || textBox4.Text == "" ||
textBox5.Text == "" || textBox6.Text == "" || textBox6.Text == "" || textBox7.Text == "" ||
textBox8.Text == "" ){
MessageBox.Show("Empty Value Is Not Valid");}
29
else{
if (con.State == ConnectionState.Closed)
con.Open();
SqlCommand cmd = new SqlCommand("insert into
Employees(Employees_ID,Employees_Name,Address,Qualification,Contact_Number,E_mail_I
D,Designation,Basic_Salary)values('" + textBox1.Text + "','" + textBox2.Text + "','" +
textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "','" +
textBox7.Text + "','" + textBox8.Text + "')", con);
cmd.ExecuteNonQuery();
if (con.State == ConnectionState.Open)
con.Close();
MessageBox.Show("Submit Sucessfully");}}
public void Loadvalue(){
if (con.State == ConnectionState.Closed)
con.Open();
SqlDataAdapter sda = new SqlDataAdapter("select * from Employees", con);
DataSet ds = new DataSet();
sda.Fill(ds, "Employees");
dataGridView1.DataSource = ds.Tables[0].DefaultView;
if (con.State == ConnectionState.Open)
con.Close();}
Roomdetails.cs :
namespace Hostel_Management_System{
public partial class Rooms_Details : Form{
SqlConnection con = new SqlConnection("server=BANU-
PC\\SQLSERVER1;database=Hostel_Management;uid=sa;pwd=dotnet;");
public Rooms_Details(){
InitializeComponent();}
private void Lnkbut_Back_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e){
AdminPage admin = new AdminPage();
30
admin.Show();
this.Hide();}
private void but_submit_Click(object sender, EventArgs e){
if (textBox1.Text == "" || textBox2.Text == ""){
MessageBox.Show("Empty Value Is Not Valid");}
else{
if (con.State == ConnectionState.Closed)
con.Open();
SqlCommand cmd = new SqlCommand("insert into
Rooms_Details(Room_No,Capacity)values('" + textBox1.Text + "','" + textBox2.Text + "')",
con);
cmd.ExecuteNonQuery();
if (con.State == ConnectionState.Open)
con.Close();
MessageBox.Show("Submit Sucessfully");}}
public void Loadvalue(){
if (con.State == ConnectionState.Closed)
con.Open();
SqlDataAdapter sda = new SqlDataAdapter("select * from Rooms_Details", con);
DataSet ds = new DataSet();
sda.Fill(ds, "Rooms_Details");
dataGridView1.DataSource = ds.Tables[0].DefaultView;
if (con.State == ConnectionState.Open)
con.Close();}
private void Rooms_Details_Load(object sender, EventArgs e){
Loadvalue();}}}
Admission.cs :
namespace Hostel_Management_System{
public partial class Admission : Form{
31
SqlConnection con = new SqlConnection("server=BANU-
PC\\SQLSERVER1;database=Hostel_Management;uid=sa;pwd=dotnet;");
public Admission(){
InitializeComponent();}
private void Lnkbut_Back_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e){
AdminPage admin = new AdminPage();
admin.Show();
this.Hide();}
private void but_submit_Click(object sender, EventArgs e){
if (textBox1.Text == "" || textBox2.Text == "" || textBox3.Text == "" || textBox4.Text == "" ||
textBox5.Text == "" || textBox6.Text == "" || textBox6.Text == "" || textBox7.Text == "" ||
textBox8.Text == "" || textBox9.Text == "" || textBox10.Text == "" || textBox11.Text == "" ||
textBox12.Text == "" || textBox13.Text == "" ){
MessageBox.Show("Empty Value Is Not Valid");}
else{
if (con.State == ConnectionState.Closed)
con.Open();
SqlCommand cmd = new SqlCommand("insert into
Admission(Student_ID,Name_Of_Student,Stu_Class,Fathers_Name,Fathers_Occupation,Mother
s_Name,Mothers_Occupation,Address,stu_Date,stu_Post,stu_Pin,Date_Of_Birth,Medium_Of_H
igh_School_Studies)values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text +
"','" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "','" + textBox7.Text + "','"
+ textBox8.Text + "','" + textBox9.Text + "','" + textBox10.Text + "','" + textBox11.Text + "','" +
textBox12.Text + "','" + textBox13.Text + "')", con);
cmd.ExecuteNonQuery();
if (con.State == ConnectionState.Open)
con.Close();
MessageBox.Show("Submit Sucessfully");
}
}
}}
32
9.2 SCREEN SHOTS
HOME PAGE
ADMIN PAGE
33
ROOM DETAILS
ROOM SETTINGS
34
VISITORS
ADMISSION
35
EMPLOYEES
EMPLOYEE SALARY
36
OUTING REGISTER
LEAVE REGISTER
37
VIEW STUDENT
RENTAL FEES
38
MESS BILL
39