0% found this document useful (0 votes)
6 views

Adobe Scan Oct 10, 2024 (2)

The document outlines the implementation and testing processes for a hostel management system, detailing employee payment and management functionalities. It includes coding details for adding and managing rooms, students, and employees, alongside testing strategies such as unit, integration, and user acceptance testing. The report concludes with the potential for future improvements, including online reservations and enhanced security features.

Uploaded by

ashfaquehurzuk0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Adobe Scan Oct 10, 2024 (2)

The document outlines the implementation and testing processes for a hostel management system, detailing employee payment and management functionalities. It includes coding details for adding and managing rooms, students, and employees, alongside testing strategies such as unit, integration, and user acceptance testing. The report concludes with the potential for future improvements, including online reservations and enhanced security features.

Uploaded by

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

Employee Payment Page

MMMCATOR AR
Hostel Marsgemert Suster

EMPLOYEE PAYMENT DETAILS


Mobln Numor
adel foes 11436

Shuet

ved Sudet

Dessyctc
New y
Morty

Jdee De mployee Poyment Aeount S000

Atmpo org

(eved imole

Figure 13:Employee Payment

" AllEmployee Working Page


Logut
NAVMCATOR EAR

All Errployee Wordng

Working
Figure 14:All Employces

24|
Leaved Employee Page

NAVICATOR RAR LogOut X

Mange Rooms

Left Employee
pdate & Delet Shudees

sdere vs

Stcent L r

Leeved Sdty

imioPaet

A Epioye workang

Figure 15: Leaved Employee

25|
Chapter 5
Implementation and Testing
5.1 Implementation Approaches
Implementation isthe stage in the project where the theoretical design is turned into a working
system and is giving confidence on the nevw system for the users that it will work cfficiently
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 dorne and
if it is found to be working according to the specification. This method also offers the grcatest
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:

26|
using System.Text:
Tasks:
using System.Threading.
using System. Windows.Forms;

namespace HostelManagementVideo

public partialclass 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 Poin(350, 170):

27|
labelRoom.Visible = false:

labelRoomExist.Visible = false:

query = "select * from rooms":

DataSet ds = fn.getData(query);

dataGridViewl.Data Source =ds.Tables[0}:

private void btnAddRoom Click(object sender, EventArgs e)

I/100

query="select * from rooms where room No="+txtRoom No1.Text+"m.

DataSet ds = fn.getData(query):

if(ds.Tables[0],Rows.Count--0)

String status;

if(checkBoxl.Checked)

status = "Yes":

else

status = "No":

28 |
labelRoomExist. Visible = false:

query =insert into rooms (room No,roomStatus)


values("+txtRoomNol.Text+",""+status+"y";
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)

"select * from rooms where roomNo=" + txtRoomNo2.Text + "".


query

DataSet ds = fn.getData(query ):

if(ds. Tables[0].Rows.Count=-0)

labelRoom.Text = "No Room Exist. ":

labelRoom. Visible = true:

checkBox2.Checked-false:

29 |
else

labelRoom.Text = "Room Found.":

labelRoom.Visible = true:

if(ds. Tables[0]. Rows[0][].ToString()=="Yes")

checkBox2.Checked = true;

else

checkBox2.Checked = false:

private void btnUpdate Click(object sender, EventArgs e)

String status:
if(checkBox2.Checked)

status "Yes":

clse

30 |
status "No":

query = "update rooms set roomStatus=" + status + " where room No


="+txtRoomNo2.Text+"";

fn.setData(query, "Details Updated.");

AddNewRoom Load(this, null);

private void btnDelete Click(object sender, EventArgs e)

if(labelRoom.Text=="Room Found.")

roomNo=" + txtRoom No2.Text + ""


query = "delete from rooms where

fn.setData(query, "Room Details Deleated.");


AddNewRoom Load(this, null);

else

Exist.". "Error".
MessageBox.Show("Trying to delete which doesn't
MessageBoxButtons.OK, MessageBoxlcon.Error);

31|
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.Thrcading. Tasks;


using System.Windows.Forms;

namespace llostelManagementVideo

public partial class NewStudent : Form

function fn new function():

String query;

public NewStudent()

InitializeComponent):

private void btnl:xit Click(object sender. I:ventArys e)

32 |
this.Close():

private void NewStudent Load(object sender,


EventArgs e)

this.Location = new Point(350, 170):


query = "select room No from rooms where roomStatus ='Yes' and
Booked='No":
DataSet ds = fn.getData(query):

for(int i=0;i<ds.Tables[0]. Rows.Count:it+)

Int64 room =
Int64.Parse(ds.Tables[0].Rows[il[0].ToString(0):
comboRoom No.Items.Add(room):

private void btnClear Click(object sender. EventArgs e)

clearAll(0:

public void clearAll)

331
txtMobile.Clear():
txtName.Clear():
txtFather.Clear():
txtMother.Clear():

txtEmail.Clear():
txtPermanent.Clear():
txtcollege.Clear():

txtldProof.Clear():
comboRoomNo.Selectedlndex = -|;

private void btnSave_Click(object sender, EventArgs e)

if (txtMobile.Text != "" && xtName.Text != "" && txtFather. Text != " &&
txtMother.Text != " && txtEmail.Text != "" && txtPermanent.Text != " &&
txtcollege.Text != "n && txtldProof.Text != "" && comboRoom No.Selectedindex !=-1)

Int64 mobile = Int64.Parse(txtMobile.Tex):

String name = txtName. Text;

String fname = txtFather. Text;


String mname = txtMother.Text:

String email = txtEmail. Text:

String paddress - txtPermanent. Text;

String college txtcollege. Text:

34 |
String idproof = txtldProof.Text;
Int64 room No = Int64.Parse(comboRoomNo.Text):

query = "insert into newStudent


(mobile,name, fname,mname,email,paddress, college, idproof.room No) values (" +mobile +
","" + name + "," + fname +"" + mname + " " + email + """ + paddress + "," + college +
", + idproof +"," + roomNo +") update rooms set Booked ='Yes' where roomNo
roomNo + "".

fn.set Data(query,"Student Registration Successful."):


clearAll(0:

else

MessageBox.Show("Fill all empty space.", "Information!!",


MessageBoxButtons.OK, MessageBox lcon. Warning):

New Employee:
using System;
using System.Collections.Generic:

using System.ComponentModel;

using System.Data:

using System.Drawing:
using System.L.inq:
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 0

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):

36 |
private void btnSave Click(object sender, EventArgs e)

if(txtMobile.Text!=" && tXtName.Text l= "" &R IKtFather. Text!=" &&


tNtMother.Text! =" && xtEmailld.Text!=" && txtPermanent.Text!=-"" &&
txtUniqueld.Text!=n && txtDesignation.SelectedIndex!=-)

Int64 mobile = Int64.Parse(txtMobile.Tex):

String name = txtName.Text:

String fname =txtFather. Text:


String mname = txtMother.Text:

String email = txtEmailld.Text:

String address = txtPermanent.Text;

String id =txtUniqueld.Text;

String designation =txtDesignation. Text:

query ="insert into newEmployee


(emobile.ename.efhame.emname.eemail.epaddress,eidproof.edesignation) values
("+mobile+""+nanme+","+fname+ " "+mname +""" temail +"" "+address +" "+id+" "- '+desig
nation +")":

fn.setData(query. "Employee Registration Successful."):

clearAll(0:

else

37|
MessageBox.Show("Fillall Required Data.", "Information",
MessageBoxButtons.OK, MessageBox lcon.Information):

private void btnClcar Click(object sender, EventArgs e)

clearAll0:

private void clearAll()

txtName.Clear():

IxtMobile.Clear():

txtFather.Clear();

txtMother.Clear():

txtEmailld.Clear();

txtPermanent.Clear():

txtUniqueld.Clear();
txtDesignation.Selectedlndex =-l;

Leaved Students:

using Sy stem:
38 |
using System.Collections.Generic;
using System.ComponentModel:

using System.Data;

using System.Drawing:
using System.Ling;

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 Poin(350, 170):

39|
query = "select * from newStudent where living ='No";

DataSet ds = fn.getData(query);:
guna2DataGridViewl.DataSource =ds.Tables[0}:

private void btnExit Click(object sender, EventArgs e)

this.Close ():

Leaved Employee:

using System;
using System.Collections.Generic:

using System.ComponentMode:

using System.Data;

using System.Drawing:

using System.Linq:
using System.Text;

using System.Threading. Tasks;


using System. Windows.Forms;

namespace HostelManagementVideo

40 |
public partialclass LeavedEmployee : Form

function fn = new function(0:

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):

guna2 DataGridViewl.DataSource =ds.Tables[0}:

41|
5.3Testing Approach
5.3.1 Unit Testing
to
The software units in a system are modules and routines that are asscmbled and integrated
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.2 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 iscover errors associated within the interface. The objective is to take
unit tested modules and build a program structure. AIlthe 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 wellintegrated functional unit with
smooth transition of data.

5.3.3 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

This hostel management soft ware is designed for people who want to manage
various activities in the hostel. This project is designed to fulfilthe need of' the future
generations.

This project is small package which includes diflerent categories as wellas having all
possible features. We have expected that it will be helptul to the' customers as well as
Administrative members.

42 |
We willimprove 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 passwordshould 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.
e
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 cach
employee.
The employee designation should be a string ofalphabets of length up to I5
characters.

The employee address should be astring of alphanumerie of length up to 40


characters.

43 |
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. Paynment Information Maintenance


The employee mobile no. should be a number of with minimum length of 8 digits and
maximum of 10digits.
The Payment date should be a string of alphanumerieof 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.

44 |
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.

45 |
References
" https://www.javatpint.com/

" https:llwww.coursera.org
" https://www.udemy.com/

" https://www.edx.org/

" https://www.w3schools.com/

46 |

You might also like