0% found this document useful (0 votes)
319 views76 pages

Sample Book

This document is a project proposal for developing an Allore Hotel Management System for Gollis University. It contains the table of contents, lists the 8 group members working on the project, and is certified by the relevant authorities from the university. It also includes a dedication section acknowledging the support of family members and an acknowledgment section thanking those involved in supporting and supervising the project.
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)
319 views76 pages

Sample Book

This document is a project proposal for developing an Allore Hotel Management System for Gollis University. It contains the table of contents, lists the 8 group members working on the project, and is certified by the relevant authorities from the university. It also includes a dedication section acknowledging the support of family members and an acknowledgment section thanking those involved in supporting and supervising the project.
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/ 76

1

Allore Hotel Management System

Gollis University Burao Branch


2
Allore Hotel Management System

Project Name: Hotel Management System

Submitted by

NO Group Names Group ID


1 Mohamed Ahmed Mohamed ICT/B01/060
2 Farhia Ahmed Farah ICT/B01/01
3 Khadra HassanAinashe ICT/B01/022
4 Abdikariim Yusuf Mohamed ICT/B01/024
5 HafsaBaashe Adam ICT/B01/03
6 AbdiAsiis Husain jamac ICT/B01/0
7 Awil Ahmed Abdullah ICT/B01/02

Gollis University Burao Branch


8 Mohamed Abdullah Ahmed ICT/B01/043
Super visored by:
Mr daa,uda w jamada
Mr mike
A Dissertation submitted in partial fulfillment of the requirements for the degree of
Bachelor of Science in Management Science and Information Technology at Gollis
University, Burao Campus
3
Allore Hotel Management System

Dedication
Mohamed ahmed mohamed
I am strongly thanking to my mother‟s (fadumo askar ahmed, deeqa askar ahmed) also I am
thanking to whom encouraged or gives me support to complete my bachelor degree program.

Awil ahmed abdilaahi


I am gratefully thanking to my father and mother (ahmed abdilaahi nuur, deeqa cismaan
haaleys) who allowed me to achieved my bachelor degree program.

Mohamed abdilaahi ahmed


I am thanking to my father, uncle and mother mr/mss (abdilaahi ahmed iidle, Mohamed ahmed
aadam, khadra ahmed aadam) who encouraged me to complete my university.

Farhiya ahmed faarah


I am acknowledged to my fathers and mother mr/mss (ibraahim Mohamed du,aale, abokor
mohamed du,aale, sahra abdi ali) I am reached here without them.

Hafsa baache aadam


I am strongly acknowledged to all of my parents (baashe aadam ibraahim, deeqa mohamud
aadam) who reached me this golden opportunity of a bachelor degree program.

Abdikariim yousuf mohamed


I am strongly thanking to my mother and sooyaal chairman(aasha husein abdi, mr jaamac
showr ilmi) also I am thanking to whom encouraged or gives me support to complete my
bachelor degree program.

Gollis University Burao Branch


Abdi aziiz husein jamac
I am acknowledged to my fathers, mother and my friend mr/mss (ubdi abdilaahi bootan,
abdiaziiz hasan jamac, Mohamed ahmed Mohamed (group leader)) I am reached here without
them.

Khadra Hassan Ainashe


I am gratefully thanking to my mother (Anab Omer elmi,and may dear family ) also I am
acknowledged to whom encouraged or gives me support to complete my bachelor degree
program.
4
Allore Hotel Management System

FACULTY OF INFORMATION TECHNOLOGY


BURAO CAMPUS

CERTIFICATE
This is to certify that the following students:

Name of students Roll No. Seat No.

1) Mohamed ahmed Mohamed B01 060


2) Abdi kariim yousuf Mohamed B01 027
3) Abdi aziiz husein jama B01 037
4) Awil ahmed abdilaahi B01 02
5) Mohamed abdilaahi ahmed B01 043
6) Farhiya ahmed faarah B01 01
7) hafsa baashe aadam B01 03
8) Khadra hasan aynanshe B01 022

Of B01 Year4, Course in BSc. in ICT have successfully completed


their project work on

(Project Name)

In the partial fulfilment of requirement as prescribed by the


Board of Higher Education, Somaliland State, in the year 2014.

Gollis University Burao Branch


Eng. Khadar M. Abdillahi Mr. Dauda W. Jamada
(H.O.D.) PROJECT GUIDE
Department of ICT
Burao Campus

INTERNAL EXTERNAL EXAMINER


EXAMINER
5
Allore Hotel Management System

ACKNOWLEDGEMENT
This document is thesis report about Alloore hotel management System written for Gollis
University of Burao, Somaliland. This thesis is conducted for Alloore hotel management
system located in Burao Somaliland.

We are extremely thanks to our grateful supervisor mr daa,uda jamada and the dean of the
faculty of Information Technology, Gollis university Mr. Khaddar Mohamed abdillaahi.

And we are also acknowledge to the president of gollis university Mr. Abdihakiim Mohamed
Abdilaahi for his support, encouragement and gives us the opportunity to work on this project
with him.

Special thanks for our colleagues for the collaboration in sharing knowledge each other, their
views and tips are useful indeed. Unfortunately, it is not possible to list all of them in this
limited space. Our sincere appreciation also extends to all of the lecturers in faculty of ICT
who have opened our mind seeing the wonderful world of IT - Management.

Last but not least, our heartfelt thanks go to all of our families, whose sacrifice, support, love,
caring inspired us to overcome all the difficulties throughout our entire academic life. This
dissertation processes would not be successful without having their patience, love, and
dedication.

1. Mohamed ahmed Mohamed


2. Abdi aziiz huseen jamac
3. Abdikariim yousuf mohamed
4. Awil ahmed abdilaahi

Gollis University Burao Branch


5. Mohamed abdilaahi ahmed
6. Farxiya ahmed faarah
7. Hafsa baashe aadan
8. Khadra xasan aynanshe

Project abstract
Alloore Hotel Management System (AHMS) is a system designed to increase the
performance of the Alloore hotel activities such customer registration, employee registration
or rooms information. This system enhances services and products that Alloore hotel
provides to its customers.

This software or system gives every customer and supplier a unique number that makes easy
and reduces time to search the customer and supplier information if needed, this increases the
performance of the hotel.

The main objective of this software is about how the hotel will provide quality service and
product and to enhance hotel performance.
6
Allore Hotel Management System

Table contents
Cover page ................................................................................1

Title page...................................................................................2

Dedication.................................................................................3

Certificate page..........................................................................4

Acknowledgment and abstraction page.....................................5

Chapter no Chapter name Page no


1 Introduction 8
1.1 Introduction 8
1.1.1 Statement of the project 8
1.1.2 Objectives of the project study 9
1.1.3 Scope of the project study 10
1.1.4 Limitation of the project 11
1.2 Introduction to the project 11
1.2.1 Functions that are performed by the system 11
1.3 Introduction to the language 12
2 System analyst 13
2.1 Problem definition 13
2.1.1 Old system problem 14
14

Gollis University Burao Branch


2.2 Tools for the system
2.3 User requirement 15
2.4 Functional requirement of the system 15
2.4.1 Non-functional requirement of the system 16
2.5 Limitation for the system 17
3 System design 19
3.1 Introduction to the system design 19
3.1.1 Database design process 19
3.1.2 Definition of database terms 20
3.1.3 System development life cycle 21
3.1.4 Data flow diagram 23
3.1.5 Data flow diagram picture one 24
3.1.6 File details 25
3.1.7 Design specification & requirement 26
4 Project modules 27
4.1 Introduction to project modules 27
4.1.1 Most basic features that our project has 29
Organizational chart 30
7
Allore Hotel Management System

4.1.2 Departments 30
4.1.3
5 Implementation 33
5.1 Introduction 33
5.1.1 Database implementation 33
5.1.2 Goals & objectives of the hotel 33
5.1.3 Vision 34
5.1.4 Mission 34
5.1.5 Input consideration 35
5.1.6 Output consideration 41
5.1.7 Process consideration 70
5.18 Testing and installation 71
6 Feasibility study 72
6.1 Introduction 72
6.2 Time feasibility 72
6.3 Software feasibility 73
6.4 Cost effective feasibility 73
6.5 Sufficient information feasibility 73
7 Future development 74
7.1 Introduction 74
7.2 Application of the project 74
7.3 Future development of the project 74
7.4 Bipliography 76

Gollis University Burao Branch


8
Allore Hotel Management System

CHAPTER ONE

INTRODUCTION of the project

1.1 Introduction
A hotel business has of recent reached the highest peak in today‟s society. Hotels need to be
managed in such a manner that it makes all the concerned stakeholders happier and satisfied.
Hotel owners ought to benefit from the business, Workers ought to appreciate every single
task that they pass through and above all, customers ought to be satisfied with the different
services they expect to receive from the concerned hotel. All these activities can be done and
achieved through proper management.
Recently, there has been a series of complaints from the public on matters concerning Hotel
Management. This happens due to several factors including lack of sufficient integration
between Hotel activities and the ever booming ICT technologies which has left Hotel
activities being done manually and with complications.
This project entitled “ALLOORE HOTEL MANAGEMENT SYSTEM” therefore aims at
proving the fact that an integration of Hotel activities with ICT can help in solving a number
of problems experienced through automating all the work being done manually in hotels at
present. On completion this project would expedite the work in all regards.

Gollis University Burao Branch


Some of the features of this system would be:
Creating a system to automate the services offered by the hotel, this would be more flexible
than their earlier system. The features include:
1. Storing, editing and reporting details of all the rooms available in the hotel.
2. Managing details of Guests‟ Checked-In & out of the hotel.
The present approach is given to the Information Technology. I.T. is a new and fresh
integrated approach and a key to unlock all the intricate problems of our modern era. This
technology tends to cater all our needs. It is not only an „Integrated Approach‟, but also job-
oriented & concrete device to aware us of the up-to-date skill and knowledge.

1.1.1 Statement of the Problem:

There is indeed the existence of complications with Hotel activities carried out not only in
Burao Society but all over the world. These complications range from service to delivery of
9
Allore Hotel Management System

Hotel goods and services. We have been hearing of hotels making loses and thus shutting
down, customers complaining of poor service deliveries in hotels and several others. Such
complications ought to be eliminated and hotels ought to have good performance with better
quality services and products. It‟s because of such facts that drove us to come up with a much
better program that can foresee the success of hotel operations not only in Burao region but
the whole Somaliland Nation and world at large.

1.1.2 Objectives of the Project Study:

We decided to develop this Hotel project with a number of objectives that we ought to be
achieved. Such objectives include the following:
 First and foremost, this project was developed with the aim of fulfilling the
requirements for the accomplishment of our degree satisfaction. It‟s a clear fact that
one ought to undergo such a study before being pronounced as a graduate in ICT.

 Protection of data among hoteliers was also another objective of our project.
Information stored through this project can be accessed easily by the concerned
parties as reference in the future.

Gollis University Burao Branch


Developing new software that accomplishes the flowing factors was also another
important objective of our project study:
o Recording of information about guests and reserve rooms.
o Ability to know and forecast the availability of hotel rooms on a particular
date and time.
o Display and print reports of check in, check out and reservation for preferred
time.
o Generate reports of occupancy, vacancy and reserved rooms

 This project was also developed for the security of hotel business operations between
the employees and the employers. Through such a project, it‟s a clear fact that trust
between the employees and the employers might be well maintained and hence
avoidance of suspicions between them.
10
Allore Hotel Management System

 Increasing customer satisfaction among hoteliers was also another important objective
of our project. Through such a project, customers shall be served well and
satisfactorily without any complaints.
In conclusion, the above stated comprise some of the most important objectives of our project
together with several others that still stay unmentioned.

1.1.3 Scope of the Project Study:

This project was developed in the period between May and August 2014 in Burao City. It
was mainly concerned with Hotel Management System that could foresee hotel operations
being done in proper manner through integration with ICT which has become a major
concern of today‟s wold other than the manual system currently used.
The sample hotel used in the project is Alloore Hotel situated in the heart of Burao City.
Alloore hotel was started when the year was 2005 in the hargeisa city and now alloore has
many branchs in somaliland region like berbera, hargeisa, burao.
Alloore burao branch was opened 2010 and it becomes one of the best hotels in burao during
these years it is opened.
The delivers of alloore hotel enclude restuarent,holls, bed rooms and free internet .
Bed room availabilaties are as follows free internet, free TV and you can get other
availabilities when you are in ALLOORE HOTEL like good barking if you have a car.

Gollis University Burao Branch


Alloore Hotel, located on the center of the city, welcomes it's valued guest and while hoping
a pleasant stay, guarantees satisfaction in service and relationship.

The Hotel is in Burao, All the United Nations Agencies and International Organizations
offices and residences are located near the hotel which is renowned for its tranquillity and
serene atmosphere. Most of the government offices are only 10 minutes‟ drive from the hotel
which makes it just the perfect place for business and pleasure.
The scope of this project is already mentioned in this section. the system scope of the systems
covers the functionality to register customers, staffs, treatments and proscriptions given to
customers as well as retrieval of that information. The system has also the scope to print
various reports and searching of customers and treatment information.
11
Allore Hotel Management System

1.1.4 Limitations to the Project Study:

As earlier on stated, this project was finally developed through a series of hardships. There
were some of the aspects that to some extent proved to be barriers to our project
development. Some of these limitations included the following:
 Lack of enough time to develop the project and finally prepare its report.
 Insufficient finance to develop the project since it required us to acquire materials
such stationaries, electronics, the internet and several others.

1.2 Introduction to the project:


This is a graduation Project work undertaken in context of partial fulfillment of hotel
Program. We have tried our best to make the complicated process of Hotel Management
System as simple as possible using Structured & Modular technique & Menu oriented
interface.
We have tried to design the software in such a way that user may not have any difficulty in
using this Website & further expansion is possible without much effort. Even though we
cannot claim that this work to be entirely exhaustive, the main purpose of our exercise is
perform each Employee‟s activity in computerized way rather than manually which is time
consuming.

Gollis University Burao Branch


We are confident that this project can be readily used by non-programming personal avoiding
human handled chance of error. This project is used by two types of users

 Users (employees).
 Administrator (management of the Hotel).
Users can see the required articles or menus
Administrator can maintain daily updates in the hotel records. Administrator is must be an
authorized user. He can further change the password. There is the facility for password
HOTEL Management System” has been designed to computerize the following.

1.2.1 Functions that are performed by the system:

o Room Detail Functions


o Opening a New Room
12
Allore Hotel Management System

o Modification to room assigned


o Check-in and check-out Detail Functions
o Admission of New customer
o Check-out of customer
o Room assigning related to customer‟s need.
o Statement of Customer Details
o Check-in customer
o Check-out customer
o Room Details
o Total number of Customers in the Hotel
o Individual customer Report

1.3 Introduction to the language:

C# (pronounced "C sharp") is a simple, modern, object-oriented, and type-safe programming


language. It will immediately be familiar to C and C++ programmers. C# combines the high
productivity of Rapid Application Development (RAD) languages and the raw power of C++.
Visual C# .NET is Microsoft's C# development tool. It includes an interactive development
environment, visual designers for building Windows and Web applications, a compiler, and a
debugger. Visual C# .NET is part of a suite of products, called Visual Studio .NET, which

Gollis University Burao Branch


also includes Visual Basic .NET, Visual C++ .NET, and the JAVA script scripting language.
All of these languages provide access to the Microsoft .NET Framework, which includes a
common execution engine and a rich class library. The .NET Framework defines a "Common
Language Specification" (CLS), a sort of lingua franca that ensures seamless interoperability
between CLS-compliant languages and class libraries. For C# developers, this means that
even though C# is a new language, it has complete access to the same rich class libraries that
are used by seasoned tools such as Visual Basic .NET and Visual C++ .NET. C# itself does
not include a class library.
13
Allore Hotel Management System

CHAPTER TWO

SYSTEM ANALYSIS:

2.1 Problem Definition:

Understanding and analysing of the several problems or limitations associated with the Old

System which is purely manual, has been so paramount to the development of our new Hotel

Management System. Old system is a manual system that stores inventory transactions

manually. It‟s used to manually update inventory transactions for each day that causes for

typing errors from the user. Mismanagement when updating the previous inventory records

and it‟s hard to find any saved or previous inventory records. Lack of reports and ordered

Inventory items. Daily printing inventory forms to manually store in a file to refer previous

inventory data that causes to use many papers each day that costs money. After many

problems that faced that old system it‟s actually needed to develop a new system that is more

efficient and effective than this.

Gollis University Burao Branch


Purchase form

Hotel
management
system
Payment order report

Payment form
Advance form

Employe registration
report report
14
Allore Hotel Management System

2.1.1 Old System Problems:

 Manual update that consumes time and energy.

 Continuous data loss hence unreliable.

 Mismanagement when updating the previous inventory records.

 Continuous filing of daily inventory reports.

 Daily printing of the updated inventory reports for future use.

 Difficulty in finding the previous inventory records.

 Error in mathematical calculations such as when multiplying different columns hence

ineffective.

 Lost formula for every time you mistype a word or numbers.

 Hard to sum and the different types of money such as Dollar ($), Shilling, Cheque and

many more.

 Hard to update the rate of currency exchange.

However, with the existence of the above problems associated with the old system, the new

system is designed so as to find every single solution to them hence being relevant and

Gollis University Burao Branch


reliable.

2.2 Tools for the System:

Back-End

a. SQL Server 2008, selected for Database development and processing DBMS Front-

End

a. Visual Studio 2008 as the IDE (Integrated Development Environment) for the user

interface design and software integration.


15
Allore Hotel Management System

b. VB.Net 3.5 (including its latest and most advanced features), as the programming

language.

c. Object oriented as Software Development methodology. Other Tools:

 Ms. Visual

 Ms. Word

 Ms. PowerPoint

2.3 User Requirements:

 Easy to update and save daily records for futures use/reference.

 Accurate calculation for mathematical records.

 Daily report for daily activities.

 Well formulated system.

 Easy to find the previous records if needed.

 Easy searching for different inventory records of previous days.

Gollis University Burao Branch


 Monthly and yearly report for each user activity.

 Efficient and effective program when user is accessing different inventory reports.

2.4. Functional Requirements of the system:

a. The system stores the daily activity information such as the Username, First name,

Last name and any other related information.

b. The system updates the collected information from the forms when there is need to do

so.

c. The system registers the inventory of the hotel which one has on hand before any

transaction

d. The system stores transactions between forms.


16
Allore Hotel Management System

e. The system updates the Inventory whenever transaction occurs between forms.

f. The system collects any information related to a purchase forms like username, first

name, last name, Item name ITC.

g. The system allows purchase information to be frequently updated since purchases are

frequently changing.

h. The purchaser takes items he/she needs from the stock Inventory

i. The purchaser Sells items from the stock

j. The Sold items are eventually recorded.

2.4.1 Non-Functional Requirements of the system:

a. Secure

b. Fast

c. Reliable

d. Easy

e. Friendly

Gollis University Burao Branch


f. Interactive

g. Efficient

h. Effective

Security

The system is secure because it has many security related features. Every user has his/her

own security type such as permissions and roles which relates every user‟s responsibility;

since the system has different users it also has different security; for example Item no can‟t

enter or access empty or letters, the inventory of the hotel where he/she could otherwise

change whatever cashier requires


17
Allore Hotel Management System

Fast

The system is fast where users can do their tasks faster because the system is built in

technology objects that can make the system perform fast.

Reliability

The system is reliable where users don‟t worry about what they are doing because it is fault

tolerant which can accept errors made by users and record those errors to monitor the kind of

error, its severity and can easily be resolved

Easy

It is easy that users can do their tasks easily with the help of a small user manual which is

relevant to every topic that user wants to understand more about it

Efficient

It is efficient in that people will be able to do things quickly, by expending appropriate

Gollis University Burao Branch


resources

Effective

It is effective in that it contains the appropriate functions and information content, organized

in an appropriate manner

2.5 Limitations of the New System:

Although the New System is designed to solve the several problems associated with the Old

System and improving a number of hotel management activities, it also has its own

limitations which include the following:

1. Provides data accurancy and save disk space.


18
Allore Hotel Management System

2. Has less disadvantages compared to the previous system.

3. This system tries to eliminate and reduce difficulties up to some extent.

4. This system helps the user to consume time.

Gollis University Burao Branch


19
Allore Hotel Management System

CHAPTER THREE

SYSTEM DESIGN
3.1 Introduction to System Design:

A system design is orderly grouping of interdependent components linked together according

to a plan to achieve a specific objective. Its main characteristic is organization,

Interdependence, integration and a central objective. To construct a system, systemdesign

must consider its elements- input and output, processors, control, feedback, andenvironment.

Systems are classified as physical or abstract, open or closed, and man-madeinformation

systems. A system may be schematic, static or dynamic. An informationsystem is an open

system that allows inputs and facilitates interaction with the user. Themain characteristic of an

open system are input from outside, processing, output, and operation in cycles through

feedback, differentiation, and equifinality. Three level ofinformation in organization that

requires a special type of information system. Strategicsystem for long range planning policies

and upper management. Managerialinformation system helps middle management and

Gollis University Burao Branch


department heads in policyimplementation and control. Operational information system helps

the daily informationneeded to operate the business. Future emphasises on the decision

support system not on information processing, it requires a computer aided environment and

accentuates acombined man and machine and decision environment.

3.1.1 Database Design Process

What is database?

A database is a collection of information that is organized so that it can easily be accessed,

managed, and updated.


20
Allore Hotel Management System

3.1.2 Definition of Database Terms

 Data: stored representation of objects and events that meaning to the

organization

 Information: Data that have been processed.

 Database Management System: Software that is used to create, maintain, and

access to user database.

 Entity: A person, place, object, event or concept of user environment.

 Relation: A relation is a named, two or three dimensional tables of data.

 Relational Database: Database that represents data as collection of tables,

relationship between tables is represented.

In this chapter we describe the database design part of Alloore Hotel Management System

with reference to employee and customers Information System.

Gollis University Burao Branch


21
Allore Hotel Management System

3.1.3 SDLC (System Development Life Cycle)

Gollis University Burao Branch


System analysis and design are keyed to the system development life Cycle (SDLC). The

stages are planning, defining, designing, building, testing and deployment. The idea for the

project stages are originates in the environment or from within the organization. Once the

problem is verified an initial investigation is conducted to determine whether change is design.

If the answer is yes, a designing study is conducted. Analysis is a detailed study of the various

operation performed by a system. System design refers to the technical specifications that will

be applied in implementing the candidate system. Implementation is concerned with details of

the candidate system. After implementation, maintenance begins includes enhancements,

modifications, or any changes from the original specifications. To ensure the success of the

system, careful and often extensive planning is required. The overall management process is

crucial to the successful completion of system.


22
Allore Hotel Management System

The first step in the system development life cycle is the identification of a need.

This is a user‟s request to change, improve or enhance an existing system. Because there is

likely to be a stream of such requests, standard procedures must be established to deal with

them. The objective of project selection is to determine whether the request is valid and

feasible before a recommendation is reached to do nothing, improve or modify the existing

system or build a new one. There are four primary sources of project requests.

The requesters inside the organization are department managers, senior executives, and

systems analysts. Shared, complete and accurate information requirements are essential in

building computer – based information systems. The Association for Computing Machinery

(ACM) Curriculum Committee on Computing Education for Management recognized this by

suggesting two distinct job titles for systems developments: “information analyst” and

“systems designer” rather than the more general term “systems analyst”. There are three key

strategies or general approaches for eliciting information regarding the user‟s requirements:

(1) asking, (2) getting information from the existing information system, and prototyping. The

third strategy for determining user information requirements is used when the user cannot

Gollis University Burao Branch


establish information needs accurately before the information system is built. Managing

Project Review and Selection will be done by different methods such as Steering committee

method, Information System Committee Method, User-group committee method and other

methods. The data that the analysts collect during preliminary investigations are gathered

through two primary methods: reviewing documents and interviewing selected company

personnel. Preliminary investigations examine project feasibility; the likelihood the system

will be useful to the organization. Three tests of feasibility-all equally important-are studied:

operational, technical and financial. Not all projects submitted for evaluation and review are

judged acceptable.
23
Allore Hotel Management System

3.1.4 DFD (Data Flow Diagram)

Data flow diagrams are used by information technology professionals and systems analysts to

document and show users how data moves between different processes in a system. Analysts

generally start with an overall picture and then move on to the finer details of each process.

Data flow diagrams provide a graphical representation of how information moves between

processes in a system. Data flow diagrams follow a hierarchy; that is, a diagram may consist

of several layers, each unique has to a specific process or data functions.

Data flow diagrams originated with Chris Gane and Trish Sarson in 1979, who popularized

the technique for structured analysis and design. Edward Yourdon and Tom DeMarco

introduced another method in the 1980s which used circles instead of rounded rectangles to

denote processes and which became popular with many systems analysts.

Gane & Sarson Symbology:

Data flow diagramming employs four symbols to illustrate data movement; squares to

represent external entities, the sources and destinations of data in a system; arrows to

Gollis University Burao Branch


represent data flow; open-ended rectangles called to indicate stationary data stores; and

rounded squares indicate transformations or manipulations to data.

This diagram contains how project main part connects its forms and report views by using

arrows shows you how the project connects with each other.

3.1.5 DFD (Data Flow Diagram) picture one.


24
Allore Hotel Management System

Splash

Employe report
Login form
Add new user

Customer report

Employee form

Customer form

Alloore Hotel Employee report


main form

Payment form

Stock form

Gollis University Burao Branch


Restaurant
Purchase form

Suppliers form

3.1.6 File Detail

The basic objective of HOTEL MANAGEMENT SYSTEM is to generalize and simplify

the monthly or day to day activities of Hotel like Room activities, Check in of New
25
Allore Hotel Management System

Customer, Check out of customer, assigning a room according to customer requirement, and

finally compute the bill etc. which has to be performed repeatedly on regular basis. To

provide efficient, fast, reliable and user-friendly system is the basic motto behind this

exercise.

Let us now discuss how different file details handle the structure and data files:

Password

In this module, this project is for multiple users. If a User enters a password and the software

checks its validity. If the password is valid then option is given to change the password,

otherwise “Invalid User/Password” message is displayed. There is an option for password

recovery, log out, login, new users sign in. The Administrator can also update changes in the

site after login.

This is used to add a new employee details, delete entity details and view the details. In that

screen, the automatic item is created. In this detail, whenever a new entity is required to be

Gollis University Burao Branch


added the corresponding forms are opened and the database is manipulated to check whether

the data is already existing or not. If it already exists, then it prompts that “Entry already

existing” and if not than the data is entered with the various validation checks.

Function NEW_ROOM ()

This is the function used to open a new room for a customer so that he/she can assign a

separate room. In that screen, the automatic room number is created. After opening a new

room for the customer, finally a room is assigned to a customer and the room records are

appended in the data file.


26
Allore Hotel Management System

3.1.7 Design Specification & Requirement

In this project you have to design and implement an HMS that can be used by a small hotel.

Your program should provide the following services:

 Reserve a room for a customer and then unreserved it when the customer leaves the

hotel.

 Each customer reserving a room should have a profile in the HRS containing name,

id, address, marital status, the time period of reservation, type of the room. You have

the choice to either delete the profile when the customer leaves or keep it in the

system.

 The program should give an information about the hotel room‟s status i.e. how many

rooms are reserved and how many are not, types of those rooms, how many customers

are in the hotel.

 The HMS should have like a waiting list to add customers to if the hotel is full.

 The user of the program should know how much the customer paid and how much

Gollis University Burao Branch


should he pay before leaving the hotel when he/she is about to leave.

 Searching for a room by its number should be an available service in the program in

order to check the room status (reserved or unreserved).

 Also you need to find the unreserved rooms in the hotel. This service should display

the unreserved room numbers and their types.

 You can search for a person by name or id and then display his/her profile.

 When a customer leaves the hotel, the program should display a bill for him
27
Allore Hotel Management System

CHAPTER FOUR

PROJECT MODULES

4.1 Introduction to Project Modules

In project modules every hotel has topics and documentations were modules writings the

services or products and system running that hotels does work and perform its daily workers.

And there are many topics in Hotel Management system. But unfortunately at ALLOORE

Hotel have system and that system doesn‟t have any document but small application in the

system they work so that current system so accurate enough organization‟s goals and

objectives.

We are emphasize some applications were successfully worked and no redundancy but have

some good characteristics we shall refer for like Aloore Hotel so we shall divided the hotel

management system menu bars into five categories like employee, customers, rooms, hotel

items, expence/accounts and about us and Alloore hotel managements menu bars perform

good system performance is here to show in this figure (1) below.

Gollis University Burao Branch


28
Allore Hotel Management System

Hotel Deep Sleep system was established the Unified Process (UP) methodology the worked

an accurate. In this Hotel management system was simple and accurate like the above figure

(1) shows and snap the system overall overview and this maintenance and performed the

customer menu bars and also this menu has other subsystem of the hotel management system

the easily worked this organization and also guest registration and create new guest did show

the figure (2) below,

Gollis University Burao Branch


29
Allore Hotel Management System

4.1.1 Most Basic features that our project has:

- Employee information

- Customer information

- Rooms information

- Hotel items information

- Expense and accounts information

- Project information

So our scope generalized, modified and add so other application so necessary, but some

advertisement documentations and oral interview we get with the Alloore Hotel management

was their services do they facilitate and so small others supported the hotels efforts and

services and their facilitate. Really we mentioned our documentations what amazing the

manager of hotel that we present was make deep in research and analysed with their hotel

system at current time uses and do more investigation and look of many sides to make

documentation about Alloore Hotel Management like defects their system have and also

Gollis University Burao Branch


some further information enough to their hotel. They appreciate and pleasant our terms we

did present like mission, vision statement, goals and objectives of the hotel then they

accepted and welcomed open hands and congratulates what we done for documentations

presents we are the first documentation of what we mentioned above . In this small

application does not have enough work about the hotel services, and other social update like

ZAAD services and eCASH debit to use the system for the development of the environment,

then we develop their so user-friendly and so times-saving of the user-working and so other

future scopes if we can we shall develop, if Allah say,


30
Allore Hotel Management System

4.1.2 Organizational Chart

An organizational chart provides highly understandable figure that is how the organization

hierarchy is and how the managements manages his/her staffs.

Also The Hotel can make arrangements for anybody who wishes to get more information

about the chart of Alloore Hotel.

Gollis University Burao Branch


4.1.3 Departments:

4.1.3.1 Reception (Front Office):

It is the most important department of the hotel. The main function of this department isto

give warm welcome to the guest. It helps to create good image in front of the guest. This is

the first department where guest comes in contact with. It generates the maximum revenue

for the hotel as it sells room to the guests. This also includes sub departments like reservation,

Bell desk, and Information desk. It also provides some facilities like concierge service to the

guest.
31
Allore Hotel Management System

Food and Beverage Service:

It is a department which serves food and beverage to the guest in a very attractive and

pleasing manner, which creates good impression on the guest. There are several kind of food

and beverage outlet like restaurants, Bars, Coffee shops, take away banquets etc. It is second

most revenue producing department of the hotel by selling different types of food and

beverage to the guest.

Housekeeping:

This department is responsible for cleaning and maintaining hotel premises which include

public area, guest rooms, lobby, area etc. generally this department is not visible to the guest.

It works for guest satisfaction through keeping the environment clean and hygiene.

Horticulture is one of the most important features of housekeeping department which deals

with different types of flower arrangement and maintaining the garden. This department

works to give pleasant look of the hotel to the guest.

Gollis University Burao Branch


Food Production:

It is a department with deals with the preparation of different types of food items. It is not a

visible department to the guest because it usually works in the back area. It makes the food

more delicious and attractive by different styles of cooking method. Different cuisine has

their own kitchen and specialized chef to work on it according to their skills. Bakery

departments comes under this which include preparation of desserts, breads etc.

Laundry services :
32
Allore Hotel Management System

When considering a laundry service at Alloore Hotel, there are several things to think about.

In the case of guests who do not own washers and driers, Laundry services are convenient,

but they can also be small costly, and it may be a good idea to price out Alloore Hotel before

committing to a laundry service. Turnaround time is also an important consideration, as are

the types of laundry which a service is willing to handle. Finally, getting competing quotes

from several laundry services is strongly recommended, for guests who live in our hotel

where more than one service is operating.

Guests who use laundry services are sometimes willing to offer advice and recommendations.

Asking around among friends and family members to see who uses a service is a good idea,

as these people may be able to provide advice about the best service to use, and things to

watch out for.

Gollis University Burao Branch


33
Allore Hotel Management System

CHAPTER FIVE
IMPLEMENTATION
5.1 Introduction:

Implementation is the level of the project where theoretical design is turned into working

system. It is the most level of developing successful new system and gaining the users

satisfaction. Proper implementation is essential to provide a reliable system to meet the

organization requirements.

We implemented this project successfully; in this project we analyzed the whole aspects of

the project, after that we designed the database and normalized. After designed the database

and forms we the implemented both the database and the user interface. In the

5.1.1 Database Implementation

In database implementation we use SQL server and DDL is one the best database

programming languages. Data Definition Language is a language used to create database

objects, modifying database objects using ALTER statement and destroying the database

Gollis University Burao Branch


objects using DROP statement. DDL consist of only five statements: Create Alter, Drop,

Grant and Revoke.

5.1.2 Goals & Objective of the Hotel:

Goals:

o Operate hotel properties, furnished and equipped to the top of the Somaliland best

classification standards, and maintain them at a first level.

o Build relationships with investors, secure hotel management contracts and

successfully manage the hotel investments, underpinning asset values.


34
Allore Hotel Management System

o Further reinforce our position in the market place as a recognized and trusted Hotel

Management Company.

o Achieve levels of profit sufficient to provide for reinvestment and suitable.

o Within each hotel operation, provide complete satisfaction to clientele in terms of

facilities and service standards, food and beverage and related products, at a fair price.

Objectives:

Alloore Hotel is a national Non-profitable association of private and public of burao

Somaliland. Established in 2005 to 2005 and fully active since 2008 with the support of the

Somaliland sovereignty and dignity because its foundation was to develop Somaliland hotels

to competitor‟s and maintain the same levels of the standard of international hotels, Alloore is

working to ensure a sustainable future for the tourism and guests in hargeisa, berbera and

burao as much as possible we sure.

5.1.3 Vision:

Gollis University Burao Branch


Alloore Hotel is the vision of achieving leadership within the group of hotels in the same

level. We have the vision to be the best hotel in our area and Somaliland hotels, and as such

position ourselves as the choice for our tourists and guests. The quality of service is based on

years of experience acquired by the owners, partners and employees.

5.1.4 Mission:

A Home: What the client feels comfortable, quiet and cocky(self-satisfied): Alloore Hotel is

to become the refuge of the traveller who comes to realize her dream of meeting the

wonderful Hotel in all over the world, or the traveller who wants to rest after completing their

activities and business.


35
Allore Hotel Management System

5.1.5 Input Consideration:

The purpose of the input consideration phase is to refine the requirements in the input

consideration phase, analyze the code, the input code and the index for the input

consideration phase.

During the input consideration phase requirements will be further code index that makes

working form, the risk list and use case will be completed. The architectural will be

developed to test the performance and feasibility of the system.

Code below shows us the database implementation of Alloore hotel management information

system.

Users Table

CREATETABLE tblusers (

username nvarchar(50),

password nvarchar (20),

usertype varchar (20),

Gollis University Burao Branch


)

Employe registration Table:


CREATETABLE tblemploye_registration(

employeID int primary key,

FirstName varchar(50) not null,

FirstName varchar(50) not null,

LastName varchar(50) not null,

Address nvarchar(50) not null,

Accupation nvarchar(50)not null,

Department nvarchar(50)not null,

email nvarchar(50)not null,


36
Allore Hotel Management System

gender varchar(20)not null,

cellphone nchar(50)not null,

homephone nchar(50)not null,

mother varchar(50)not null,

yearofbirth datetime,

age nchar(50)not null,

photo image,

joiningdate datetime,

gender Table
CREATETABLE tblgender (
Male varchar(10),
Female varchar (10),
)

Manager Table
CREATETABLE tblmanager (
Hurdo varchar(10),
Finance varchar (10),
Manager varchar (10),

Gollis University Burao Branch


)

Room account Table


CREATETABLE tlbroomaccount(
Fullname varchar(50) not null,
customerid varchar(10) not null,
gender varchar(20) not null ,
address varchar(50) not null,
contactnvarchar(50) not null ,
entering_date datetime,
staying varchar(50) not null ,
out_date datetime,
stayingdays nchar(50) not null,
roomtype varchar(50) not null,
roomnumber nchar(50) not null,
floor nchar(50) not null,
37
Allore Hotel Management System

amountperday nchar(50) not null,


extracharges nchar(50) not null,
prepaid nchar(50) not null,
totalamount nchar(50) not null,
discount nchar(50) not null,
amounttopaid nchar(50) not null,
amountpaid nchar(50) not null,
balance nchar(50) not null,
)

Room type Table


CREATETABLE tblroomtype (
Double varchar(10),
Single varchar (10),
Family varchar (10),
)

Room number Table


CREATETABLE tblroomnumber (
1001nchar(10),
1002nchar (10),
1003 nchar (10),
1004 nchar (10),
1005 nchar (10),
1006 nchar (10),

Gollis University Burao Branch


1007 nchar (10),
Upto end room number 1007…….1040
)

Items registration Table


CREATETABLE tlbitemsregistration(
Item_namenvarchar(50) not null,
itemno nchar(20) not null,
item_serial_nonvarchar(20) not null ,
transaction varchar(50) not null,
quantitynchar(50) not null ,
costperunitnchar(50) not null ,
totalcost nchar(50) not null ,
unit_in_stock nchar(50) not null ,
price_per_unit nchar(50) not null ,
noofitemssold nchar(50) not null ,
total_price nchar(50) not null ,
entering_date datetime,
out_date datetime,
38
Allore Hotel Management System

discription varchar(50) not null ,


)

Customer registration Table


CREATETABLE tlbcustomerregistration(
Customer_nonchar(50) not null,
customername varchar(20) not null,
registrated_datedatetime ,
telephone_no nchar(50) not null,
room_nonchar(50) not null ,
roomtypevarchar(50) not null ,
adults nchar(50) not null ,
childs nchar(50) not null ,
amountperday nchar(50) not null ,
charges nchar(50) not null ,
prepaid nchar(50) not null ,
total_amount nchar(50) not null ,
discount nchar(50) not null ,
amount_bepaid nchar(50) not null ,
amount_paid nchar(50) not null ,
balance nchar(50) not null ,
)

Advance Table

Gollis University Burao Branch


CREATETABLE tlbadvance (
empidnchar(20) not null,
firstname varchar(50) not null,
salarynchar(20) not null,
advancenchar(20) not null,
netsalarynchar(20) not null,
advance_date datetime ,
discription nchar(50) not null,
)

Attendance Table
CREATETABLE tlbattendance (
empidnchar(20) not null,
firstname varchar(50) not null,
departmentnvarchar(20) not null,
shiftvarchar(20) not null,
time_indatetime,
time_out datetime ,
)
39
Allore Hotel Management System

Expence Table
CREATETABLE tlbexpence (
Serial_nonchar(20) not null,
Expence_name nvarchar(50) not null,
datedatetime,
discriptionnvarchar(400) not null,
expencetypenvarchar(50) not null,
shiftvarchar(50) not null,
shiling_slandnchar(20) not null,
ratenchar(20) not null,
dollarnchar(20) not null,
total_indollarnchar(20) not null,
)

Hall Table
CREATETABLE tlbhall (
datedatetime,
type nvarchar(50) not null,
ref_no nchar(20) not null,
detailsnvarchar(400) not null,
qtynchar(20) not null,
pricenchar(20) not null,
amountnchar(20) not null,
depositnchar(20) not null,

Gollis University Burao Branch


creditnchar(20) not null,)
Payment Table
CREATETABLE tlbpayment (
Employe_namevarchar(50) not null,
lastname varchar(50) not null,
employe_idnchar(10) not null,
salarydatedatetime,
salary nchar(20) not null,
total_advancenchar(20) not null,
netsalarynchar(20) not null,
discriptionnchar(400) not null,
)

Restaurant Table
CREATETABLE tlbrestaurent(
Ref_nonchar(20) not null,
Date datetime,
Cus_no nchar(20) not null,
Cus_name varchar(40) not null,
40
Allore Hotel Management System

mealtype nvarchar(50) not null,


detailsnvarchar(50) not null ,
qtynchar(20) not null ,
s_price nchar(10) not null ,
amount nchar(10) not null ,
discount nchar(10) not null ,
amounttopaid nchar(50) not null ,
paid nchar(50) not null ,
balance nchar(50) not null ,
balance nchar(50) not null ,
notes nvarchar(400) not null ,
)

Rooms registration Table


CREATETABLE tblrooms (
Room_serialno nchar(10),
roomtype varchar (20),
room_nonchar (10),
)

Stock Table
CREATETABLE tlbstock (
Item_namevarchar(50) not null,
Item_no nchar(50) not null,
Serial_nonvarchar(10) not null,

Gollis University Burao Branch


detailsnvarchar(10) not null,
quantity nchar(20) not null,
qtyusednchar(20) not null,
qtybalancenchar(20) not null,
entering_datedatetime not null,
)

Suppliers Table
CREATETABLE tlbsupliers (
Date datetime not null,
Item_name varchar(50) not null,
Sup_nonchar(10) not null,
Sup_namenvarchar(50) not null,
Ref_no nchar(20) not null,
notes nvarchar(400) not null,
qtynchar(20) not null,
cost_pricenchar(20) not null,
amountnchar(20) not null,
paidnchar(20) not null,
41
Allore Hotel Management System

balancenchar(20) not null,


qtyusednchar(20) not null,
qtybalancenchar(20) not null,
)

Vocations Table
CREATETABLE tlbvocations (
empid nchar(20) not null,
employename varchar(50) not null,
middlenamevarchar(10) not null,
lastnamevarchar(50) not null,
started_date datetime,
end_date datetime,
noofdays nchar(20),
discription nvarchar(400) not null,)

5.1.6 Output Consideration

After designed and coded backend of the software we will start the frontend or output
consideration. In user output interfaces we normally use Forms and Reports.

Before we begin coding the frontend we shall discus Forms and Reports:

Forms: form is interface or output system used to interact the database. Using forms you can
update record, save new record to the database or delete a record from the database. On the
other hand, a form contains data from only one record such as data about only one customer,
employee or other forms.

Gollis University Burao Branch


Report: A report is business document that contains predefined data; it is passive document
used just for reading or review. A report contains data from one form or many unrelated
records.

Snapshot
Spash Form:
42
Allore Hotel Management System

Figure 5.1(a) login form


This login form that is login form used to enter the program, if user name and
password are correct than you can enter to the software else it is not allowed to you
to enter the program. This form is for security, only authorized users can enter it.
Main Form

Gollis University Burao Branch

Figure 5.1(b) main form


This form is the main form of ALLOORE hotel management system. This form is
backbone of all forms, it is navigation interface that user can go other forms. Main
form is the form that appears to the user after leaving splash and the login form.
43
Allore Hotel Management System

Employeeregistration form

Figure 5.1(c) employee registration form

This form is employee registration form; this form was intended to register
employees of the hotel. This form also used to update or delete and save employee
information.
In order to save successfully employee information to a database fill all the required

Gollis University Burao Branch


fields on the form.
Room account form
44
Allore Hotel Management System

Figure 5.1(d) room account form


This form is room account form; this form was intended to register daily room
transactions of the hotel. This form also used to update, delete and also to save daily
room account information.
And all the data of this form successfully stored to the database of the project.
Purchase form

Gollis University Burao Branch


Figure 5.1(e) purchase form
This form is purchase form that used to store purchase information to the database.
This form allows you updating, save and deleting purchase information from the
database.
Restaurant form
45
Allore Hotel Management System

Figure 5.1(f) restaurant form


Restaurant form is form used to save restaurant information to the database. In order
to save restaurant information enter restaurant information in specified fields.

Payment form

Figure 5.1(g) payment form

Payment form is form used to pay employee monthly salary payment from is saved
the data by using database which for useful payment information searching.

Gollis University Burao Branch


In order to search employee enter criteria to search such as PatientID, Patient Name
then enter search button.

Suppliers form
46
Allore Hotel Management System

Figure 5.1(h) suppliers form


This form is supplier‟s form that stores hotelsupplier‟s information and saves data to
the database fields.

Customer registration form

Figure 5.1(i) customers registration form


This form is customer registration form that stores hotelcustomer‟s information and

Gollis University Burao Branch


assigns specific room, calculates the amount of money he/she want to pay after doing
all the information then it saves data to the database table.
Hall form
47
Allore Hotel Management System

Figure 5.1(j) hall form


This form is hall information form that is used to hotel hall income moneyand its
information and saves data to the project database.

Purchase report form

Figure 5.1(k) purchase report form


This form report allows system users to print purchase items information from the
database. This report prints purchase information when person pay the item or
manager want to check the stock or purchased items.

New user form

Gollis University Burao Branch


48
Allore Hotel Management System

Figure 5.1(m) user registration form


This form is user registration form. This form is used to create database users that
were intended using this software. In user creation user identification number,
username, password and the type of the user is needed in order to create the user
successfully; then you can edit the user information if you needed.

C# Code
Since the code is too long we took only the code of the Datalayer and only two forms
code, employee form and room account code. Because if we are take all the codes of
all the forms it becomes too long code and we can‟t conclude it so then we try to
make short form and just two examples only.
Room account code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;

namespace final_project

Gollis University Burao Branch


{
publicpartialclassRoomaccount : Form
{
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
SqlCommand cmd;
SqlDataAdapter da;
DataSet ds;
SqlDataReader DR;
DataTable dt;
string id;
string a;

public Roomaccount()
{
InitializeComponent();
}
privatevoid GenerateId()
{
cmd = newSqlCommand("select ISNULL(Max(customerid),1)+1 from tblcustomer",
conn);
49
Allore Hotel Management System

conn.Open();
txtcustomerid.Text = txtfullname.Text + cmd.ExecuteScalar().ToString();
conn.Close();

}
privatevoid fillcbo()
{
da = newSqlDataAdapter("select * from tblgender", conn);
ds = newDataSet();
da.Fill(ds, "tblgender");
cbogender.DataSource = ds.Tables["tblgender"];
cbogender.DisplayMember = "gender";

}
privatevoid fillroomtype()
{
da = newSqlDataAdapter("select * from tblroomtype", conn);
ds = newDataSet();
da.Fill(ds, "tblroomtype");
cboroomtype.DataSource = ds.Tables["tblroomtype"];
cboroomtype.DisplayMember = "roomtype";

}
privatevoid fillroomnumber()
{

Gollis University Burao Branch


da = newSqlDataAdapter("select * from tblroomnumber", conn);
ds = newDataSet();
da.Fill(ds, "tblroomnumber");
cboroomnumber.DataSource = ds.Tables["tblroomnumber"];
cboroomnumber.DisplayMember = "roomnumber";

}
privatevoid customer_registration_Load(object sender, EventArgs e)
{
GenerateId();
a = txtfullname.Text;
fillcbo();
cbogender.SelectedIndex = -1;
cbogender.Text = "--SELECT--";

fillroomtype();
cboroomtype.SelectedIndex = -1;
50
Allore Hotel Management System

cboroomtype.Text = "---SELECT ---";

fillroomnumber();
cboroomnumber.SelectedIndex = -1;
cboroomnumber.Text = "--SELECT---";
filldg();
}

privatevoid btnsave_Click(object sender, EventArgs e)


{
if (txtfullname.Text == "")
{
MessageBox.Show("Pls Enter fullname.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtfullname.Focus();
return;
}
if (txtcustomerid.Text == "")
{
MessageBox.Show("Pls Enter customerid.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtcustomerid.Focus();
return;
}
if (cbogender.Text == "")
{

Gollis University Burao Branch


MessageBox.Show("Pls Enter gender.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
cbogender.Focus();
return;
}
if (txtaddress.Text == "")
{
MessageBox.Show("Pls Enter Address.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtaddress.Focus();
return;
}

if (txtcontact.Text == "")
{
MessageBox.Show("Pls Enter contact.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtcontact.Focus();
return;
}
51
Allore Hotel Management System

if (dtbenteringdate.Text == "")
{
MessageBox.Show("Pls Enter entering date.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
dtbenteringdate.Focus();
return;
}

if (txtstaying.Text == "")
{
MessageBox.Show("PlsEntert staying.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtstaying.Focus();
return;
}
if (txtoutdate.Text == "")
{
MessageBox.Show("Pls Enter outdate.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtoutdate.Focus();
return;
}

if (txtstayingdays.Text == "")
{
MessageBox.Show("Pls Enter stayingdays .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtstayingdays.Focus();

Gollis University Burao Branch


return;
}

if (cboroomtype.Text == "")
{
MessageBox.Show("Pls Select roomtype .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
cboroomtype.Focus();
return;
}

if (cboroomnumber.Text == "")
{
MessageBox.Show("Pls Select roomnumber .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
cboroomnumber.Focus();
}
if (txtfloor.Text == "")
{
MessageBox.Show("Pls Select floor.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
52
Allore Hotel Management System

txtfloor.Focus();
}
if (txtamountperday.Text == "")
{
MessageBox.Show("Pls Select amountperday.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtamountperday.Focus();
}
if (txtextracharges.Text == "")
{
MessageBox.Show("Pls Select extracharges .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtextracharges.Focus();
}
if (txtprepaid.Text == "")
{
MessageBox.Show("Pls Select prepaid.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtprepaid.Focus();
}
if (txttotalamount.Text == "")
{
MessageBox.Show("Pls Select totoalamount .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txttotalamount.Focus();
}
if (txtdiscount.Text == "")
{
MessageBox.Show("Pls Select discount .", "Important Note", MessageBoxButtons.OK,

Gollis University Burao Branch


MessageBoxIcon.Information);
txtdiscount.Focus();
}
if (txtamounttopaid.Text == "")
{
MessageBox.Show("Pls Select amountto paid.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtamounttopaid.Focus();
}

if (txtamountpaid.Text == "")
{
MessageBox.Show("Pls Select amountpaid .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtamountpaid.Focus();
}
if (txtbalance.Text == "")
{
MessageBox.Show("Pls Select balance .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtbalance.Focus();
53
Allore Hotel Management System

string name = txtfullname.Text; string cusid = txtcustomerid.Text; string gender =


cbogender.Text; string address = txtaddress.Text;
string contact = txtcontact.Text; DateTime doj = Convert.ToDateTime
(dtbenteringdate.Text); string staying = txtstaying.Text; string outdate = txtoutdate.Text;
string stayindays = txtstayingdays.Text;
string roomtype = cboroomtype.Text; string roomnumber = cboroomnumber.Text; string
floor = txtfloor.Text; string perday = txtamountperday.Text; string charges =
txtextracharges.Text;
string prepaid = txtprepaid.Text; string totalamount = txttotalamount.Text; string discount =
txtdiscount.Text; string amounttopaid = txtamounttopaid.Text; string paid =
txtamountpaid.Text; string balance = txtbalance.Text;

try
{
SqlCommand cmd1 = newSqlCommand("insert into
tblcustomer(fullname,customerid,gender,address,contact,enteringdate,staying,outdate,staying
days,roomtype,roomnumber,floor,amountperday,extracharges,prepaid,totalamount,discount,a
mounttopaid,amountpaid,balance
)values(@name,@cusid,@gender,@address,@contact,@doj,@staying,@outdate,@stayinday
s,@roomtype,@roomnumber,@floor,@perday,@charges,@prepaid,@totalamount,@discoun
t,@amounttopaid,@paid,@balance)", conn);
cmd1.Parameters.AddWithValue("@name", name);
cmd1.Parameters.AddWithValue("@cusid", cusid);
cmd1.Parameters.AddWithValue("@gender", gender);
cmd1.Parameters.AddWithValue("@address", address);
cmd1.Parameters.AddWithValue("@contact", contact);
cmd1.Parameters.AddWithValue("@doj", doj);

Gollis University Burao Branch


cmd1.Parameters.AddWithValue("@staying", staying);
cmd1.Parameters.AddWithValue("@outdate", outdate);
cmd1.Parameters.AddWithValue("@stayindays", stayindays);
cmd1.Parameters.AddWithValue("@roomtype", roomtype);
cmd1.Parameters.AddWithValue("@roomnumber", roomnumber);
cmd1.Parameters.AddWithValue("@floor", floor);
cmd1.Parameters.AddWithValue("@perday", perday);
cmd1.Parameters.AddWithValue("@charges", charges);
cmd1.Parameters.AddWithValue("@prepaid", prepaid);
cmd1.Parameters.AddWithValue("@totalamount", totalamount);
cmd1.Parameters.AddWithValue("@discount", discount);
cmd1.Parameters.AddWithValue("@amounttopaid", amounttopaid);
cmd1.Parameters.AddWithValue("@paid", paid);
cmd1.Parameters.AddWithValue("@balance", balance);

conn.Open();
int i = cmd1.ExecuteNonQuery();
conn.Close();
if (i > 0)
{
MessageBox.Show("Employee registered:" + "fullname is:" + txtfullname.Text);
54
Allore Hotel Management System

}
catch (Exception ex)
{

}
finally
{
// Reset();

// GenerateId();

}
}

privatevoid btnrefresh_Click(object sender, EventArgs e)


{
Roomaccount f = newRoomaccount();
f = newRoomaccount();
f.Show();
this.Hide();

privatevoid txtprepaid_TextChanged(object sender, EventArgs e)


{

Gollis University Burao Branch


int a, b, c;
a = Convert.ToInt32(txtamountperday.Text);
b = Convert.ToInt32(txttotalamount.Text);
c = a + b;

txttotalamount.Text = c.ToString();
}

privatevoid txtdiscount_TextChanged(object sender, EventArgs e)


{
int a, b, c;
a = Convert.ToInt32(txttotalamount.Text);
b = Convert.ToInt32(txtdiscount.Text);

c = a - b;
txtamounttopaid.Text = c.ToString();
}

privatevoid txtamountpaid_TextChanged(object sender, EventArgs e)


{
55
Allore Hotel Management System

int a, b, c;
a = Convert.ToInt32(txtamounttopaid.Text);
b = Convert.ToInt32(txtamountpaid.Text);

c = a - b;
txtbalance.Text = c.ToString();
}

privatevoid dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)


{
foreach (DataGridViewRow row in dataGridView1.SelectedRows)
{
txtfullname.Text = row.Cells["fullname"].Value.ToString();
txtcustomerid.Text = row.Cells["customerid"].Value.ToString();
cbogender.Text = row.Cells["gender"].Value.ToString();
txtaddress.Text = row.Cells["address"].Value.ToString();
txtcontact.Text = row.Cells["contact"].Value.ToString();
dtbenteringdate.Text = row.Cells["enteringdate"].Value.ToString();
txtstaying.Text = row.Cells["staying"].Value.ToString();
txtoutdate.Text = row.Cells["outdate"].Value.ToString();
txtstayingdays.Text = row.Cells["stayingdays"].Value.ToString();
cboroomtype.Text = row.Cells["roomtype"].Value.ToString();
cboroomnumber.Text = row.Cells["roomnumber"].Value.ToString();
txtfloor.Text = row.Cells["floor"].Value.ToString();
txtamountperday.Text = row.Cells["amountperday"].Value.ToString();
txtextracharges.Text = row.Cells["extracharges"].Value.ToString();
txtprepaid.Text = row.Cells["prepaid"].Value.ToString();
txttotalamount.Text = row.Cells["totalamount"].Value.ToString();
txtdiscount.Text = row.Cells["discount"].Value.ToString();

Gollis University Burao Branch


txtamounttopaid.Text = row.Cells["amounttopaid"].Value.ToString();
txtamountpaid.Text = row.Cells["amountpaid"].Value.ToString();
txtbalance.Text = row.Cells["balance"].Value.ToString();

btnupdate.Enabled = true;
//txtsearch.Text = "";
id =
dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["customerid"].Value.ToStrin
g();
}
}
privatevoid filldg1()
{
conn =
newSqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
cmd = newSqlCommand("select * from tblcustomer where customerid=@id", conn);
cmd.Parameters.AddWithValue("@id", id);
da = newSqlDataAdapter(cmd);
ds = newDataSet();
da.Fill(ds, "Emp");
dt = ds.Tables[0];
56
Allore Hotel Management System

dataGridView1.DataSource = dt;
}
privatevoid filldg()
{

conn =
newSqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
da = newSqlDataAdapter("select * from tblcustomer", conn);
ds = newDataSet();
da.Fill(ds, "Emp");
dt = ds.Tables[0];

dataGridView1.DataSource = dt;
}

privatevoid txtamountperday_TextChanged(object sender, EventArgs e)


{
int a, b, c;
a = Convert.ToInt32(txtamountperday.Text);
b = Convert.ToInt32(txtstayingdays.Text);

c = a *b;
txttotalamount.Text = c.ToString();
}

privatevoid txtextracharges_TextChanged(object sender, EventArgs e)


{
int a, b, c;

Gollis University Burao Branch


a = Convert.ToInt32(txtextracharges.Text);
b = Convert.ToInt32(txttotalamount.Text);
c = a+b;
txttotalamount.Text = c.ToString();

privatevoid txtamountperday_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txtextracharges_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
57
Allore Hotel Management System

MessageBox.Show("Only Numerics are allowed", "Important Note",


MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txtprepaid_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txttotalamount_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txtdiscount_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)

Gollis University Burao Branch


{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txtamounttopaid_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txtamountpaid_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
58
Allore Hotel Management System

MessageBox.Show("Only Numerics are allowed", "Important Note",


MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txtbalance_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid btnback_Click(object sender, EventArgs e)


{
frmmain g = newfrmmain();
g = newfrmmain();
g.Show();
this.Hide();

privatevoid btncancel_Click(object sender, EventArgs e)


{
this.Close();

Gollis University Burao Branch


}

privatevoid btndelete_Click(object sender, EventArgs e)


{
string s = "delete tblcustomer where customerid=@x";
SqlCommand cmd;
cmd = newSqlCommand(s, conn);
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("@x", txtcustomerid.Text);
conn.Open();
int i = cmd.ExecuteNonQuery();
conn.Close();
MessageBox.Show(i + "record (s) deleted");
txtcustomerid.Text = "";
}

privatevoid txtsearchname_TextChanged(object sender, EventArgs e)


{
DataView dvc = newDataView(dt);
//dataGridView1.DataSource).DefaultView;
dvc.RowFilter = "fullname like '*" + txtsearchname.Text + "%'";
59
Allore Hotel Management System

dataGridView1.DataSource = dvc;
if (txtsearchname.Text == "")
{
filldg();
}

privatevoid btnupdate_Click(object sender, EventArgs e)


{
int i = dataGridView1.CurrentCell.RowIndex;

string name = txtfullname.Text; string cusid = txtcustomerid.Text; string gender =


cbogender.Text; string address = txtaddress.Text;
string contact = txtcontact.Text; DateTime doj = Convert.ToDateTime(dtbenteringdate.Text);
string staying = txtstaying.Text; string outdate = txtoutdate.Text; string stayindays =
txtstayingdays.Text;
string roomtype = cboroomtype.Text; string roomnumber = cboroomnumber.Text; string
floor = txtfloor.Text; string perday = txtamountperday.Text; string charges =
txtextracharges.Text;
string prepaid = txtprepaid.Text; string totalamount = txttotalamount.Text; string discount =
txtdiscount.Text; string amounttopaid = txtamounttopaid.Text; string paid =
txtamountpaid.Text; string balance = txtbalance.Text;

cmd = newSqlCommand("update tblcustomer set


fullname=@name,gender=@gender,address=@address,contact=@contact,enteringdate=@doj
,staying=@staying,outdate=@outdate,stayingdays=@stayindays,roomtype=@roomtype,room
number=@roomnumber,floor=@floor,amountperday=@perday,extracharges=@charges,prep
aid=@prepaid,totalamount=@totalamount,discount=@discount,amounttopaid=@amounttopa

Gollis University Burao Branch


id,amountpaid=@paid,balance=@balance where customerid=@cusid", conn);
cmd.Parameters.AddWithValue("@name", name);
cmd.Parameters.AddWithValue("@cusid", cusid);
cmd.Parameters.AddWithValue("@gender", gender);
cmd.Parameters.AddWithValue("@address", address);
cmd.Parameters.AddWithValue("@contact", contact);
cmd.Parameters.AddWithValue("@doj", doj);
cmd.Parameters.AddWithValue("@staying", staying);
cmd.Parameters.AddWithValue("@outdate", outdate);
cmd.Parameters.AddWithValue("@stayindays", stayindays);
cmd.Parameters.AddWithValue("@roomtype", roomtype);
cmd.Parameters.AddWithValue("@roomnumber", roomnumber);
cmd.Parameters.AddWithValue("@floor", floor);
cmd.Parameters.AddWithValue("@perday", perday);
cmd.Parameters.AddWithValue("@charges", charges);
cmd.Parameters.AddWithValue("@prepaid", prepaid);
cmd.Parameters.AddWithValue("@totalamount", totalamount);
cmd.Parameters.AddWithValue("@discount", discount);
cmd.Parameters.AddWithValue("@amounttopaid", amounttopaid);
cmd.Parameters.AddWithValue("@paid", paid);
cmd.Parameters.AddWithValue("@balance", balance);
60
Allore Hotel Management System

conn.Open();
try
{
cmd.ExecuteNonQuery();
conn.Close();

}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
//Reset();
filldg1();

dataGridView1.ClearSelection();
// dataGridView1.Rows[rowIndex].Selected = true;
//BtnaUpdate.Enabled = false;
// MessageBox.Show(id);
}

privatevoid button1_Click(object sender, EventArgs e)


{
Roomaccount f = newRoomaccount();
f = newRoomaccount();
f.Show();

Gollis University Burao Branch


this.Hide();
}

privatevoid button2_Click(object sender, EventArgs e)


{
roomaccreport f = newroomaccreport();
f = newroomaccreport();
f.Show();
this.Hide();
}

}
}

Employee form code


This is employee form of C# code that executes form daily transactions
61
Allore Hotel Management System

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;

namespace final_project
{
publicpartialclassemployeeregistration : Form
{
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
SqlCommand cmd;
SqlDataAdapter da;
DataSet ds;
string a;
string id;
DataTable dt;
string imgpath;
byte[] data;

public employeeregistration()
{

Gollis University Burao Branch


InitializeComponent();
}
privatevoid GenerateId()
{
cmd = newSqlCommand("select ISNULL(Max(employeID),1000)+1 from
tblemployee", conn);
conn.Open();
txtempid.Text = txtfirstname.Text + cmd.ExecuteScalar().ToString();
conn.Close();
}
privatevoid fillcbo()
{
da = newSqlDataAdapter("select * from Tblmanager", conn);
ds = newDataSet();
da.Fill(ds, "tblmanager");
cbodepartment.DataSource = ds.Tables["Tblmanager"];
cbodepartment.DisplayMember = "department";
cbosex.DataSource = ds.Tables["Tblmanager"];
cbosex.DisplayMember = "sex";
}
62
Allore Hotel Management System

privatevoid btncancel_Click(object sender, EventArgs e)


{
this.Close();
}
privatevoid employeeregistration_Load(object sender, EventArgs e)
{
GenerateId();
a = txtempid.Text;
fillcbo();
cbodepartment.SelectedIndex = -1;
cbodepartment.Text = "--SELECT--";

cbosex.SelectedIndex = -1;
cbosex.Text = "--SELECT--";
filldg();
}

privatevoid btnsave_Click(object sender, EventArgs e)


{
if (txtfirstname.Text == "")
{
MessageBox.Show("Pls Enter First Name.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtfirstname.Focus();
return;
}
if (txtmiddlename.Text == "")
{
MessageBox.Show("Pls Enter Middle Name.", "Important Note", MessageBoxButtons.OK,

Gollis University Burao Branch


MessageBoxIcon.Information);
txtmiddlename.Focus();
return;
}
if (txtlastname.Text == "")
{
MessageBox.Show("Pls Enter Lastname Name.", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
txtlastname.Focus();
return;
}
if (txtaddress.Text == "")
{
MessageBox.Show("Pls Enter Address.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtaddress.Focus();
return;
}

if (txtaccupation.Text == "")
{
63
Allore Hotel Management System

MessageBox.Show("Pls Enter accupation.", "Important Note", MessageBoxButtons.OK,


MessageBoxIcon.Information);
txtaccupation.Focus();
return;
}

if (cbodepartment.Text == "")
{
MessageBox.Show("Pls Enter depatment.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
cbodepartment.Focus();
return;
}

if (txtemail.Text == "")
{
MessageBox.Show("PlsEntert email.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtemail.Focus();
return;
}
if (cbosex.Text == "")
{
MessageBox.Show("Pls Enter sex.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
cbosex.Focus();
return;
}

Gollis University Burao Branch


if (txtcellphone.Text == "")
{
MessageBox.Show("Pls Enter cellphone .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtcellphone.Focus();
return;
}

if (txthomephone.Text == "")
{
MessageBox.Show("Pls Select homephone .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txthomephone.Focus();
return;
}

if (txtmothername.Text == "")
{
MessageBox.Show("Pls Select mothername .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
64
Allore Hotel Management System

txtmothername.Focus();
}
if (dtbdateofjoined.Text == "")
{
MessageBox.Show("Pls Select date of joined.", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
dtbdateofjoined.Focus();
}
if (txtbirth.Text == "")
{
MessageBox.Show("Pls Select mothername .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtbirth.Focus();
}
if (txtage.Text == "")
{
MessageBox.Show("Pls Select mothername .", "Important Note", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtage.Focus();
}
if (pictureBox1.Image == null)
{
MessageBox.Show("Pls Insert Employee Photo");
return;
}
string empid = txtempid.Text; string fname = txtfirstname.Text; string mname =
txtmiddlename.Text; string lname = txtlastname.Text;
string address = txtaddress.Text; string accupation = txtaccupation.Text; string dept =
cbodepartment.Text; string email = txtemail.Text; string sex = cbosex.Text;

Gollis University Burao Branch


string home = txthomephone.Text; string cell = txtcellphone.Text; string mother =
txtmothername.Text; string birth = txtbirth.Text; string age = txtage.Text;
DateTime doj = Convert.ToDateTime(dtbdateofjoined.Text); Image photo;
try
{
SqlCommand cmd1 = newSqlCommand("insert into
tblemployee(employeID,firstname,middlename,lastname,address,accupation,department,emai
l,sex,cellphone,homephone,mother,yearofbirth,age,photo,dateofjoining
)values(@empid,@fname,@mname,@lname,@address,@accupation,@dept,@email,@sex,
@home,@cell,@mother,@birth,@age,@photo,@doj)", conn);
cmd1.Parameters.AddWithValue("@empid", empid);
cmd1.Parameters.AddWithValue("@fname", fname);
cmd1.Parameters.AddWithValue("@mname", mname);
cmd1.Parameters.AddWithValue("@lname", lname);
cmd1.Parameters.AddWithValue("@address", address);
cmd1.Parameters.AddWithValue("@accupation", accupation);
cmd1.Parameters.AddWithValue("@dept", dept);
cmd1.Parameters.AddWithValue("@email", email);
cmd1.Parameters.AddWithValue("@sex", sex);
cmd1.Parameters.AddWithValue("@home", home);
cmd1.Parameters.AddWithValue("@cell", cell);
65
Allore Hotel Management System

cmd1.Parameters.AddWithValue("@mother", mother);
cmd1.Parameters.AddWithValue("@birth", birth);
cmd1.Parameters.AddWithValue("@age", age);
cmd1.Parameters.AddWithValue("@doj", doj);
if (imgpath.Trim().Length > 0)
{
data = File.ReadAllBytes(imgpath);
}
else
data = null;
cmd1.Parameters.AddWithValue("@photo", data);

conn.Open();
int i = cmd1.ExecuteNonQuery();
conn.Close();
if (i > 0)
{
MessageBox.Show("Employee registered:" + "employeID is:" + txtempid.Text);
}

}
catch (Exception ex)
{

}
finally
{
Reset();

Gollis University Burao Branch


GenerateId();

}
}
publicvoid Reset()
{
txtempid.Text = txtfirstname.Text = txtmiddlename.Text = txtlastname.Text =
txtaddress.Text = txtaccupation.Text = "";
cbodepartment.Text = "--Select--"; cbosex.Text = "--Select--";
txthomephone.Text = txtcellphone.Text = txtemail.Text = txtmothername.Text =
txtbirth.Text = txtage.Text = ""; dtbdateofjoined.Text =
System.DateTime.Now.ToShortDateString();
pictureBox1.Image = null;

privatevoid txtemail_Leave(object sender, EventArgs e)


{
string s = txtemail.Text;
string a = "@";
string b = ".";
66
Allore Hotel Management System

if (!(s.Contains(a)))
{
MessageBox.Show("Invalid Email Id");
txtemail.Clear();
txtemail.Focus();
return;
}
int pos = s.IndexOf(a);
if (pos == 0)
{
MessageBox.Show("Invalid Email Id");
txtemail.Clear();
txtemail.Focus();
return;
}
if (!(s.Contains(b)))
{
MessageBox.Show("Invalid Email Id");
txtemail.Clear();
txtemail.Focus();
return;
}
}

privatevoid btnphoto_Click(object sender, EventArgs e)


{
OpenFileDialog ofd = newOpenFileDialog();
ofd.Filter = "Image Files(*.jpg)|*.jpg|Icon Images(*.ico)|*.ico|All Files(*.*)|*.*";
ofd.ShowDialog();

Gollis University Burao Branch


imgpath = ofd.FileName;
pictureBox1.ImageLocation = imgpath;
}

privatevoid txthomephone_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid txtcellphone_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
67
Allore Hotel Management System

}
}

privatevoid txtage_KeyPress(object sender, KeyPressEventArgs e)


{
if (char.IsDigit(e.KeyChar) == false&&Convert.ToInt32(e.KeyChar) != 8)
{
MessageBox.Show("Only Numerics are allowed", "Important Note",
MessageBoxButtons.OK, MessageBoxIcon.Information);
e.Handled = true;
}
}

privatevoid btnrefresh_Click(object sender, EventArgs e)


{
employeeregistration g = newemployeeregistration();
g = newemployeeregistration();
g.Show();
this.Hide();
}

privatevoid btnback_Click(object sender, EventArgs e)


{
frmmain g = newfrmmain();
g = newfrmmain();
g.Show();
this.Hide();
}

Gollis University Burao Branch


privatevoid dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
foreach (DataGridViewRow row in dataGridView1.SelectedRows)
{
txtempid.Text = row.Cells["employeID"].Value.ToString();
txtfirstname.Text = row.Cells["firstname"].Value.ToString();
txtmiddlename.Text = row.Cells["middlename"].Value.ToString();
txtlastname.Text = row.Cells["lastname"].Value.ToString();
txtaddress.Text = row.Cells["address"].Value.ToString();
txtaccupation.Text = row.Cells["accupation"].Value.ToString();
cbodepartment.Text = row.Cells["department"].Value.ToString();
txtemail.Text = row.Cells["email"].Value.ToString();
cbosex.Text = row.Cells["sex"].Value.ToString();
txtcellphone.Text = row.Cells["cellphone"].Value.ToString();
txthomephone.Text = row.Cells["homephone"].Value.ToString();
txtmothername.Text = row.Cells["mother"].Value.ToString();
txtbirth.Text = row.Cells["yearofbirth"].Value.ToString();
txtage.Text = row.Cells["age"].Value.ToString();
dtbdateofjoined.Text = row.Cells["dateofjoining"].Value.ToString();
data = (byte[])row.Cells["photo"].Value;
MemoryStream ms = newMemoryStream(data);
68
Allore Hotel Management System

pictureBox1.Image = Image.FromStream(ms);
btnupdate.Enabled = true;
//txtsearch.Text = "";
id =
dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["employeID"].Value.ToStrin
g();
}
}
privatevoid filldg1()
{
conn =
newSqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
cmd = newSqlCommand("select * from tblemployee where employeID=@id", conn);
cmd.Parameters.AddWithValue("@id", id);
da = newSqlDataAdapter(cmd);
ds = newDataSet();
da.Fill(ds, "Emp");
dt = ds.Tables[0];

dataGridView1.DataSource = dt;
}
privatevoid filldg()
{

conn =
newSqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
da = newSqlDataAdapter("select * from tblemployee", conn);
ds = newDataSet();
da.Fill(ds, "Emp");

Gollis University Burao Branch


dt = ds.Tables[0];

dataGridView1.DataSource = dt;
}

privatevoid btnupdate_Click(object sender, EventArgs e)


{
int i = dataGridView1.CurrentCell.RowIndex;
string empid = txtempid.Text; string fname = txtfirstname.Text; string mname =
txtmiddlename.Text; string lname = txtlastname.Text;
string address = txtaddress.Text; string accupation = txtaccupation.Text; string dept =
cbodepartment.Text; string email = txtemail.Text;
string sex = cbosex.Text; string home = txthomephone.Text; string cell = txtcellphone.Text;
string mother = txtmothername.Text;
string birth = txtbirth.Text; string age = txtage.Text;
DateTime doj = Convert.ToDateTime(dtbdateofjoined.Text); Image photo;

cmd = newSqlCommand("update tblemployee set


firstname=@fname,middlename=@mname,lastname=@lname,address=@address,accupation
=@accupation,department=@dept,email=@email,sex=@sex,cellphone=@cell,homephone=
69
Allore Hotel Management System

@home,mother=@mother,yearofbirth=@birth,age=@age,dateofjoining=@doj,Photo=@phot
o where employeID=@empid", conn);
cmd.Parameters.AddWithValue("@empid", empid);
cmd.Parameters.AddWithValue("@fname", fname);
cmd.Parameters.AddWithValue("@mname", mname);
cmd.Parameters.AddWithValue("@lname", lname);
cmd.Parameters.AddWithValue("@address", address);
cmd.Parameters.AddWithValue("@accupation", accupation);
cmd.Parameters.AddWithValue("@dept", dept);
cmd.Parameters.AddWithValue("@email", email);
cmd.Parameters.AddWithValue("@sex", sex);
cmd.Parameters.AddWithValue("@home", home);
cmd.Parameters.AddWithValue("@cell", cell);
cmd.Parameters.AddWithValue("@mother", mother);
cmd.Parameters.AddWithValue("@birth", birth);
cmd.Parameters.AddWithValue("@age", age);
cmd.Parameters.AddWithValue("@doj", doj);
cmd.Parameters.AddWithValue("@photo", data);
conn.Open();
try
{
cmd.ExecuteNonQuery();
conn.Close();

}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

Gollis University Burao Branch


finally
{
Reset();
filldg1();

dataGridView1.ClearSelection();
// dataGridView1.Rows[rowIndex].Selected = true;
//BtnaUpdate.Enabled = false;
// MessageBox.Show(id);
}
}

privatevoid btndelete_Click(object sender, EventArgs e)


{
string s = "delete tblemployee where employeID=@x";
SqlCommand cmd;
cmd = newSqlCommand(s, conn);
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("@x", txtempid.Text);
70
Allore Hotel Management System

conn.Open();
int i = cmd.ExecuteNonQuery();
conn.Close();
MessageBox.Show(i + "record (s) deleted");
txtempid.Text = "";

privatevoid txtsearchID_TextChanged_1(object sender, EventArgs e)


{
DataView dvc = newDataView(dt);
//dataGridView1.DataSource).DefaultView;
dvc.RowFilter = "employeID like '*" + txtsearchID.Text + "%'";
dataGridView1.DataSource = dvc;
if (txtsearchID.Text == "")
{
filldg();
}
}

privatevoid btnreport_Click(object sender, EventArgs e)


{
employeereport m = newemployeereport();
m = newemployeereport();
m.Show();
this.Hide();
}
}
}

Gollis University Burao Branch


5.1.7 Processing Consideration

The purpose of the processing consideration is to refine the requirements in the process
following the program phases, analyzesand the architecture, the design model and the plans.

During the process consideration requirements will be further analyzed, details and designs
will be completed. The architectural will be developed to test the performance and feasibility
of the system.
Here we Plan of the process consideration for doing the following activities.
o Details Uses cases
o Use cases analysis
o Use case Design
o Use case Diagrams
71
Allore Hotel Management System

5.1.8 Testing & Installation

Software testing and installation is a process of verifyingand validatinga software application


or program.Softwares

 Meets the business and technical requirements that guided its design and
development, and
 Works as expected.
Software testing also identifies important defects, flaws, or errors in the application code that must
be fixed. The modifier “important” in the previous sentence is, well, important because defects must
be categorized by severity.

Software testing and installation begins early phase of system development life cycle; every
phase of system development life cycle –analysis phase, design and implementation all these
phases are tested.

Installations

Software installation is an easy to install because you follow installation process only you
must click next the number of times considered to click it.

You must have this hardware and software requirements.

Hardware

 CPU – Intel Core 2


 RAM – 2GB

Gollis University Burao Branch


 HDD – 80GB
1.1.1 Software Requirements
 Windows XP
 SQL server
 .Net frame work
 Windows Server 2003
72
Allore Hotel Management System

CHAPTER SIX

FEASIBILITY STUDY

6.1 Introduction:

A feasibility analysis usually involves a thorough assessment of the operational

financial and technical aspects of a proposal. Feasibility study is the test of the system

proposal made to identify whether the user needs may be satisfied using the current

software and hardware technologies, whether the system will be cost effective from a

business point of view and whether it can be developed with the given budgetary

constraints. A feasibility study should be relatively cheap and done at the earliest

possible time. Depending on the study, the decision is made whether to go ahead with a

more detailed analysis. When a new project is proposed, it normally goes through

feasibility assessment. Feasibility study is carried out to determine whether the

proposed system is possible to develop with available resources and what would be the

cost consideration. Facts considered in the feasibility analysis are:

Gollis University Burao Branch


 Time Feasibility

 Software availability Feasibility

 Cost effective Feasibility

 Sufficient information Feasibility

6.2 Time feasibility:

Other feasibility concern relates to project duration and is referred to as assessing time

feasibility. This project is time feasible because it meets the deadlines of the time of the

project.

This time feasibility evaluates how the time affects other works within the organization view

and the proposed system. This project Alloore hotel management System is a timely feasible.
73
Allore Hotel Management System

6.3 Software availability Feasibility:

Software availability feasibility is a software analysis that resource availability may affect

achievement of acceptable system. Software availability feasibility determines whether the

technology needed for the proposed system is available or not. Since technology needed is

available this proposed system is technically feasible. This software analysis involves how it

will work when installed and the assessment of managerial environment in which it is

implemented. As we know, people are inherently resistant to change. The new proposed

system is very much useful to the users and there for it will accept broad audience from the

organization. So, this is proposed is a software availability feasible.

6.4 Cost effective Feasibility:

Cost effective feasibility determines or checks whether the system can be developed with

available budget. This system does not require enormous amount of money to develop; so it‟s

economically feasible.

Gollis University Burao Branch


6.5 Sufficient information Feasibility:

Alloore hotels project lets you lower your costs & manage your hotel without compromise. It

is designed to help you organize operations, and change things quickly & easily, when

needed. Everything can be managed from one point of forms and can be stored in the

database.

Alloore hotel can be able to offer the following tasks:

 Offer a wide variety of rates and policies.

 Custom console for Travel agents/Corporate to improve sales.

 Confirm hotel bookings & get paid from your forms.


74
Allore Hotel Management System

CHAPTER SEVEN

FUTURE DEVELOPMENT

7.1 Introduction:

Ever since Alloore Hotels announced it was in Hargeisa City, and it been tight-hiked on the

hotel designs and, furthermore, quiet on future development for the brand. Until now

Alloore Groups is now moving forward with projects in Hargeisa, Berbera and burao, with an

eye on international expansion.

The Alloore hotel becomes quite a trendy section for new boutique hotel development.

Alloore hotel burao locates at the center of the burao and Broadway in the neighborhood

known as abdi aw daahir pharmacy, neighboring Afgooye village such as the Afgooye

mosque and The west side of Afgooye bitumen. Alloore hotel is expected to be opened in 24-

hours and have approximately 100 rooms at moment, large meeting hall space and extra

food-and-beverage.

7.2 Application of Project:

Gollis University Burao Branch


our project application generalized, modified and add so other application so necessary we

know like data validation, quick search and so on, but some advertisement documentations

you will see this project with the Alloore Hotel has its services do they facilitate and so small

others supported the hotel effort, serviceand its facilitate.

7.3 Future Development of the Project

The future development section we had some issues regarding to the time to finish some

features in the hotel Management system; we decided to make extensions for the project

iteration

The main future extensions are detailed bellow:


75
Allore Hotel Management System

– The first issues we have to solve is to find solution for the room availability, in the

hotel system a room must be search by the status “Available” , we haven‟t reached

due to some lack of time to research .

– The invoice is also part of the project iteration 2, we need to refine more the

billing to calculate besides the reservation of a room also handle billings regarded

to the restaurant, fitness center, phone calls, video shop, It room and room items.

– Changes in the table guest in the database must also be applied; it needs more

specification of the guest information such as email, zip code, city and country.

– In future our program would be able to manage staff information. This means that

all the staff in the hotel will be provided with a login and password. It is from

there that any staff will not be allowed to access the system and therefore perform

the intended tasks. There more classes will be created and the system is expected

to grow.

– The Reservation is also part of the priorities cited above in our system, where

guests are able to book by choosing numbers of rooms, arrival and departure

Gollis University Burao Branch


dates, room types, number of nights and number of adults and children. The

project system will have a database which can be accessed anytime for these

information and stores future reservations.

– Another future idea is to create an internal mail system which allows the staff to

communicate remotely whenever they are logged in the system. This would

reduce calling costs within the hotel.

BIBLIOGRAPHY
Name of the book Author name
76
Allore Hotel Management System

Hotel front office management James A. Bardi

Hotel book David williams

Hotel+management+system Dr: taymoor

Hotel thesis management Admas University

Gollis University Burao Branch

You might also like