Sunteți pe pagina 1din 58

A PROJECT REPORT ON HOTEL MANAGEMENT SYSTEM

Submitted in partial fulfillment of the requirements For the award of the degree of BBA

SUBMITTED TO:MRS SEEMA GUPTA (ASSISTANT PROFESSOR) MS NEHA MANCHANDA (ASSISTANT PROFESSOR)

SUBMITTED BY:RICHA DUTTA (03121001709)

Ideal Institute of Management and Technology,Delhi Affiliated to Guru Gobind Singh Indraprastha University

CERTIFICATE
It is certify that summer training project report on HOTEL MANAGEMENT SYSTEM is a record of project work done by RICHA DUTTA enrollment no 03121001709 during the period of her study under our guidance & that the project report has not previously formed the basis for the award of any degree, diploma, fellowship or similar titles and that it is an independent work done by her..

DATE: PLACE: DELHI GUPTA PROFESSOR.]

MRS. SEEMA [ASST.

MISS. NEHA MANCHANDA [ASST.PROFESSOR]

ACKNOWLEDGEMENT

An undertaking such as this is never the work of a single person & this study is no exception. I, at every outset thank and express my gratitude to all those who directly or indirectly helped me a lot in the completion of the present project work and encouraged, inspired me in the moments of despair & made it possible for this report to be in your hands today. First of all, I wish to express my profound feelings of gratitude & indebtedness to my project guide Mrs.Seema Gupta and Miss. Neha Manchanda for their advice & guidance during various stages of this project report. In spite of their preoccupation & job responsibilities, they have spared their time for the completion this project report. I thank them whole heartedly. I wish to record my sincere gratitude to all who provided constant support to me during my project report.

DATE:
DUTTA

RICHA (03121001709)

DECLARATION

I hereby declare that this Project report entitled HOTEL MANAGEMENT PROJECT submitted by me to GGSIPU Delhi, is a bonafide work undertaken by me and its not submitted to any other university for award of any degree or diploma/certificate or published anytime before.

Name: Richa Dutta Enrollment no:03121001709 Semester:5th semester Date:

Contents

SL. NO 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Introduction

TOPIC

PAGE NO 6-8 8 8-9 10-16 17-20 21-22 23-55 56 57-58 59 59 60

Objective of the study Project tools /Environmental used System Development life cycle Data Flow Diagram ER-Diagram Form / Coding Testing Conclusion Limitations Future Scope of the study Bibliography

Introduction
Overview of proposed system: Hotel Management System is an extension and computerization to the manual examination system. It contains all the facilities, tricks and tracks and all that which happens in a Hotel. Besides this, Hotel Management System provides easy to operate, fast and accurate tools which could be used to enhance the overall procedure and operating style. It removes all the anomalies which were present in the manual examination system. In manual examination system we made the assessment manually which was slow, inaccurate and cumbersome which cause dissatisfaction and it was rather irritating. In Hotel management System removed it by giving the facility to produce the instant result which in turn induced accuracy, time factor. Similarly we made up the anomalies as following: Time factor Accuracy Reliability Security Improved performance Tested result Portability PRESENT STATE OF ART:Computer is served as tool for managing information. Almost all big organizations are voluminous and repetitive in nature. As a result of which various systems are being developed for daily use of words and their meanings, and many other words and meaning [vocabulary] like banking system, Flight reservation system etc. Now systems are being developed in Visual Basic 6.0 as the front end and MS-Access at the back end that can take care of data consistency, completeness and correctness of the information and have interfaces with one another. The manual systems are being replaced with computerized systems that have resulted in efficient and smooth working of the different departments. EARLIER SYSTEM Not integrated Performed manually Less Accurate NEW SYSTEM Integrated Computerized (Implemented with Visual Basic were time consuming, and MS-Access) Time saving and Accurate.

NEED FOR COMPUTERIZATION Time saving: Using computers can save a lot of time. This is possible, as computers are fast, efficient and more accurate as compared to human beings. Quick Reports: A computerized system can help on generating different types of reports. This can be done easily by merely pressing few keys. Reports can be easily obtained at the spur of the moment unlike a manual system. Much More Details Available: A large amount of details can be obtained easily in a computerized system which otherwise cant be available in a manual system. Efficient and accurate: Computerization will increase the efficiency and accuracy of the marking scheme. Faster and Easier Data Retrieval: By using computerized system data can be retrieved at much faster pace. Records can be located immediately and easily. Economical: Due to computerization more accurate functioning can be obtained as compared to manual systems in long term. Decreased Number of People: Computerization will decrease manpower dependence. It will decrease the number of people required for conducting examination.

What is told about the word Project? A project is problematic act carried to accomplish in the natural Settings. A project is a bit real life that has been imperted in the school. A project is a whole hearted purpose for activity proceeding in asocial environment. In other word project is constituent of seven words and we have our best to give its definition analyzing each better as: P R O J E C T meant for meant for meant for meant for meant for meant for meant for - Planning - Resources - Organization - Joint efforts - Engineering Functions - Communication - Techniques

OBJECTIVES OF THE PROJECT:The main objective of my project is to computerize the remembrance. Maintaining records manually will be a hard task and also a time consuming process. By doing computerization it will gives lots of facilities to the remembring like-the whole data will now be computerized, updating will done automatically, maintaining the records of customer will be easy, saves lots of time. Every day lots of savings, transactions, takes place. Keeping records of all these tracks manually will a very hard and challenging task, a small mistake can corrupts the whole task, therefore, need of computerization is necessary in this field. On computerization the maintenance of records will become easy for workers. The work will be done more effectively and faster. TOOLS & ENVIRONMENTAL USED FRONT END AND BACK END TOOLS: The concept of front end and back end has been chosen to develop this software as this suits the DBMS architecture to its full potential. Visual Basic has been chosen at the front end and any relational package (that supports tables) can be chosen at the back end. MICROSOFT- ACCESS: MICROSOFT- ACCESS is a database management system or DBMS. A DBMS helps you to manage data thats stored in a computer database. It is a full-featured application development system that includes the Visual Basic Programming language and other tools for setting up sophisticated applications for yourself and your customers. Microsoft Access is designed from the ground up to provide full support for all window features. Some of the most important windows like features youll find in Access are:

32-BIT APPLICATION: MS-Access 2000 is a 32- bit application, which means that it runs in its own protected computer memory area. Therefore Access wont grind to a halt if some other program on your computer decides to misbehave. Access also takes advantage of the multithreading capabilities of windows, the Jet database engine, Microsoft Access, and modules written for Visual Basic all run in separate thered. DATABASE EXPLORER: The database window in Access looks and acts a lot like Windows Explorer, as well as windows that appear.

10

THE SYSTEM DEVELOPMENT LIFE CYCLE: To understand system development, we need to recognize that a candidate system has a life cycle, just like a living system or a new product. System analysis and design are keyed to the system life cycle. Then analyst must progress from one stage to another methodically, answering key questions and achieving results in each stage. A word of caution regarding life cycle activities: we isolate and sequence these activates for learning purposes, but in real life they overlap and are highly interrelated, for example, when the analyst is evaluation an existing operation, he/she is probably thinking about an alternative way that would improve the system or wondering whether a given piece of hardware would be a critical cost item to consider for a candidate system. When the system approach to problem solving is applied to the development of information system solution, it is called application development. Most computer based information system are conceived, designed and implemented using some kind of system development process .in this process, end user and information specialist design information system based on analysis of information requirement of the user. Thus the major part of this process is called system analysis and design. The system development basically involves seven steps, these are: Nature of the problem Feasibility analysis Analysis Design Implementation Post implementation & maintenance System development lifecycle:One most know what the problem is before it can be solved. The basis for a candidates system is recantation of need for improving an information system is a procedure. For example a supervisor may want to investigate the system flow in purchasing, or a bank president has been getting complaint about the long lines in the drive-in. this need leads to system can solve the problem. It entails looking into the duplication of effort. If the problem is serious enough, management my want to have an analyst look at a preliminary survey or an initial investigation to determine whether an alternative it. Such an assignment implies a commitment, especially if the analyst is hired from the outside. In the larger environments, where formal procedures are the norm, the analysts first task is to prepare a statement specifying the scope and the objective of the problems

11

IMPETUS FOR SYSTEM CHANGES: The idea for changes originates in the environment or from with in the firm environment based ideas originate from the customers, vendors, government sources, and the like. For example new unemployment compensation regulations may make it necessary to change the reporting procedure, format and contents of various reports as well as file structures. Customer complaints about the delivery of orders may prompt and investigation of the delivery schedule, the experience of truck drivers, or the volume of orders to be delivered. When investigated, each of these ideas may lead to a problem definition as a first step in the system life cycle process. Ideas for change may also come from within the organization top management, the user, the analyst. As an organization changes its operation or faces advances in computer technology, someone within the organization may feel the need to update existing applications or improved procedures. Here are some examples: An organization acquires another organization. A local bank branches into the suburbs. A department spends 80% of its budget in one month. Two departments are doing essentially the same work and each department head insists the other department should be eliminated. A request for a new form discloses the use of bootleg (unauthorized) forms. Serious problems in operations, high rate of labor turnover, labor intensive activities, and high reject rates of finished goods, also prompt top management to initiate and investigation. Other examples are: A report reaches a senior vice president and she suspects the figures. The company controller reads an IRS audit reports and starts thinking. An executive read about decision support systems for sales forecasting and it gives him an idea. Many of these ideas lead to further studies by management request, often funneled downward and carried out by lower management. User originated ideas also prompt initial investigations. For example, a banks head teller has been noticing long customer line in the lobby. She wants to know whether they are due to the computers slow response to inquiries, the new tellers limited training, or just a sudden increase in bank business. To what extent and how quickly a user originated idea is converted to a feasibility study depend on several factors: The risks and potential returns. Managements bias towards the user. Financial costs and the funds available for system work. Priorities of other projects in the firm. The persuasive ability of the user.

12

THE FEASIBILITY STUDY Depending on the results of the initial investigation, the survey is expanded to a more detailed feasibility study. A feasibility study is a test of a system proposal according to its workability, impact on the organization, ability to meet user needs, and effective use of resources. It focuses on three major questions: What are the users demonstrable needs and how does a candidate system meet them? What resources are available for given candidate systems? Is the problem worth solving? What are the likely impacts of the candidate system on the organization? How well does it fit within the organizations master MIS plan?

Each of these questions must be answered carefully. They revolve around investigation and evaluation of the problem, identification and description of candidate systems, specification of performance and the cost of each system, and final selection of the best system. The objective of a feasibility study is not to solve the problem but to acquire a sense of its scope. During the study, the problem definition is crystallized and aspects of the problem to be included in the system are determined. Consequently, costs and benefits are estimated with greater accuracy at this stage. Cost/benefits analysis is described. The result of the feasibility study is a formal proposal. This is simply a report a formal document detailing the nature and scope of the proposed solution. The proposal summarizes what is known and what is going to be done. It consists of the following: Statements of the problem A carefully worded statement of the problem that lead to analysis. Summary of findings and recommendations A list of the major findings and recommendation of the study. It is ideal for the user who requires quick access to the result of the analysis of the system under study. Conclusions are stated, followed by a list of the recommendation and a justification for them. Details of findings An outlines of the methods and procedures undertaken by the existing system followed by the coverage of the objectives and procedures of the candidate system. Included are also discussions of output reports, file structures, and cost and benefit of the candidate system. Recommendation and conclusion Specific recommendations regarding the candidate system, including personnel assignments, costs, project schedules and target dates. After management reviews the proposal, it becomes a formal agreement that paves the way for actual design and implementation. This is a crucial decision point in the life cycle.

13

Feasibility study is questions. These are :

always

done

to

answer

the

three

important

Is there a new and better way to do the job that will benefit the user? How the project becomes more convenient in using all of its attributes? What is recommended?

Feasibility Considerations: Three key considerations are involved in the feasibility analysis economic, technical, and behavioral. 1. TECHNICAL FEASIBILITY:Technical feasibility centers on the existing computer system and to what extent it can support the proposed addition. For e.g. all the work or through other comp system which use the different H/W and S/W .This involves financial consideration to accommodate technical enhancements. It is feasible to make this project because the computer systems of Institutes, Colleges, or Computer Center in which this project will be used can be used. If any technical problem of the software arises then the teachers or the students can easily solve the problem. 2. ECONOMICAL FEASIBILTY:Economic analysis is the most frequently used method for evaluating the effectiveness of a candidate system. It is well known by the name of cost/benefit analysis; the procedure is to determine the benefit and savings that are expected from a candidate system. In this project, the cost of developing if not much and it has got lot of benefits. In the older system, the teachers have to make the paper and then students give the tests on paper, after that the teachers have to check the papers and provide the results. This system involves lot of time wastage and required lot of paper work. But using this project paper work will be less and will save much of teachers time. 3. OPERATIONAL FEASIBILTY:Operationally also this software is very feasible because the teachers and the students of the institutes or the computer center in which the project will be used can easily handle the software. ANALYSIS: Analysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. A key question is what must be done to solve the problem? One aspects of analysis are defining the boundaries of the system and determining whether or not a candidate system should consider other related system. During analysis, data are collected on the available files, decision points, and transactions handled by the present system. Some logical system models and tools that are used in analysis. DFD interviews, onsite observations, and questionnaires are examples. The interview is a commonly used tool in analysis. It requires special skills and sensitivity to the subjects being interviewed. Bias in data collection and

14

interpretation can be a problem. Training, experience, common sense is required for collection of the information needed to do analysis. Once analysis is completed, the analyst has firm understanding of what is to be done. The next step is to decide how the problem might be solved. Thus, in system design, we move from the logical to the physical aspect of the life cycle. DESIGN: The most creative and challenging phase of the system life cycle is system design. The term design describes a final system and the process by which it is developed. It refers to the technical specifications (analogous to the engineers blueprints) that will be applied in implementing the candidate system. It also includes the construction of programs and program testing. The key question here is: How should the problem be solved? The major steps in designing are: The first step is to determine how the output is to be produced and I what format. Samples of the output (and input) are also presented. Second, input data and master files (data base) have to be designed to meet the requirements of the proposed output. The operational (processing) phases are handled through program construction and testing, including a list of the programs needed to meet the systems objectives and complete documentation. Finally, details related to justification of the system and an estimate of the impact of the candidate system on the user and the organization are documented and evaluated by management as a step towards implementation. The final report prior to the implementation phase includes procedural flowcharts, record layouts, report layouts, and workable plans for implementing the candidate system. Information on personnel, money, h/w, facilities and their estimated cost must also be available. At this point, projected costs must be close to actual cost of implementation. In some firms, separate groups of programmers do the programming where as other firms employ analyst-programmers that do the analysis and design as well as code programs. For this discussion, we assume that two separate persons carry out analysis and programming. There are certain functions, though, that the analyst must perform while programs are being written. IMPLEMENTATION: The implementation phase is less creative than system design. It is primarily concerned with user training, site preparation, and file conversion. When the candidate system is linked to terminals to remote sites, the telecommunication network and test of the network along with the system are also included under implementation. During the final testing user acceptance is tested followed by user training. Depending on the nature of the system, extensive user training may be required. Conversion usually takes place at about the same time the user is being trained or later In the extreme, the programmer is falsely viewed as some who ought to be isolated from other aspects of system development. Programming is itself design work, however. The initial parameters of the candidates system should be modified as a result of programming efforts. Programming provides a reality test for the assumptions

15

maid by the analyst it is therefore a mistake to exclude programmers from the initial system design System testing checks the readiness and accuracy of the system to access update and retrieve data from new files. Once the program becomes available test data are read into the computer and processed against the file provide for testing in most conversions a parallel run is conducted where the new system runs simultaneously with the old system this method though costly provides added assurance against errors in the candidate system. POST IMPLIMENTATION AND MAINTENANCE: After the installation phase is completed and the user staff is adjusted to the changes created by the candidate system evaluation and maintenance begin. Like any system there is an aging process that requires periodic maintenance of hardware and software if the new information is inconsistent with the design specification then changes have to be maid. Hardware also requires maintenance to keep in tune with design specification.

16

17

Data Flow Diagram: The DFD was first designed by Larry Constantine as a way of expressing system requirements in a graphical form; this led to a modular design. A DFD, also known as bubble chart, has the purpose of clarifying system requirements and identifying major transformations that will become programs in system design. So it is the starting point of the design phase that functionally decomposes the requirement specifications down to the lowest level of detail. A DFD consists of series of bubbles joined by lines represent data flows in the system. DFD describes what data flow (logical) rather than how they are processed, so it does not depend on hardware, software, data structure, or file organization. The key question that we are trying to answer is: what major transformations must occur for input to be correctly transformed into output. DFD SYMBOLS: In the DFD, there are four symbols. A square defines a source (originator) or destination of system data. An arrow identifies data flow- data in motion. It is a pipeline through which information flows. A circle or a bubble (some people use an oval bubble) represents a process that transforms incoming data flows(s) into outgoing data flow(s). An open rectangle is a data store-data at rest, or a temporary repository of data . SYMBOLS MEANING Source or destination of data

Data Flow

Proce Fl

Process that transforms data flow

Data Store

18

CONSTRUCTING DFD: Several rules of thumb are used in drawing DFDs:Processes should be named and numbered for easy reference. Each name should be representative of the process. The direction of flow is from top to bottom and from left to right. Data traditionally flow from the source (upper left corner) to the destination (lower right corner), although they may flow back to a source. One way to indicate this is to draw a long flow line back to the source. An alternative way is to repeat the source symbol as a destination. Since it is used more than once in the DFD, it is marked with a short diagonal in the lower right corner When a process is exploded into lower-level details, they are numbered the names of data sources and destinations are written in capital letters. Process and data flows names have the first letter of each word capitalized. DATA FLOW 0 LEVEL:ADMIN Manages receipt/menu/roo m/medical details CUSTOMER HOTEL MANAGE MENT SYSTEM

Receives acknowledgment CUSTOMER

Gives registration/room/menu details ADMIN

Receives acknowledgment

19

Data flow 1.0 level diagram:-

Customer

1.0 Registration

Admin Customer

1.1 Login

Room status Advance Receipt Hotel details room/menu/bill

customer

1.2 Enquiry

Customer

1.3 Room reservation

Booking details/status

20

21

ER-DIAGRAM An entity relationship model is a detailed and logical representation of the data for an organization or for business area. The entity relationship, which is also known as ER relationship is based on the theory of real world which consist of a set of basic object, which are called entities and relationships among these object. The data model was developed to facilitate data base design by allowing specification of an enterprise schema which represents the overall logical structure of a database. We will present the modeling concept of ER model which is higher level conceptual data, The ER-model does not provide the overall data base structure but it gives the intermediate step on the basis of which data base is designed. The ER modeling is a technique for analysis and logical modeling of a systems data requirements. It uses graphical notation for representing these. Ei = Entity Ri = Relationship

SYMBOL

MEANING Entity

Weak entity

Relationship

Attribute

Key Attribute

22

23

FORMS:-

24

25

Login:

26

Result:-

27

ROOM MASTER:-

28

Result:-

29

BAR MASTER:-

30

Result:-

31

ROOM STATUS:-

32

Result:-

33

Restorent master:-

34

Result:-

35

ADD User:-

36

Result:-

37

ADVANCE RECEIPT:-

38

Result:-

39

CUSTOMER CHECK IN FORM:-

40

Result:-

41

Medical service bill:-

42

Result:-

43

CODINGS:MAIN FORM: Dim rs1 As Recordset Dim rs2 As Recordset Dim con1 As Connection Dim con2 As Connection Dim f As Integer Private Sub Adodc1_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset) End Sub Log in:Public LoginSucceeded As Boolean Private Sub cmdExit_Click() LoginSucceeded = False End End Sub Private Sub cmdOK_Click() Print Data1.Recordset.Password Dim Ans As Integer Data1.Recordset.FindFirst ("UserID='" + txtUserName.Text + "'") If Not Data1.Recordset.NoMatch Then If txtPassword = Data1.Recordset.Password Then LoginSucceeded = True Me.Hide Load frmGoTo frmGoTo.Show Else Me.Caption = "Access Denite! Invalid User Name or Password!" txtPassword.Text = "" txtPassword.SetFocus SendKeys "{Home}+{End}" End If Else Me.Caption = "Access Denite! Invalid User Name or Password!" txtUserName.Text = "" txtUserName.SetFocus SendKeys "{Home}+{End}" End If End Sub Private Sub Form_Load() Data1.DatabaseName = App.Path & "\Hotel.mdb" End Sub

44

Private Sub Timer1_Timer() Bar.Value = Bar.Value + 3 If Bar.Value = 990 Then Bar.Value = 1000 End If If Bar.Value = 1000 Then Timer1.Interval = 0 End If End Sub Private Sub txtPassword_KeyPress(KeyAscii As Integer) Me.Caption = "Login..." End Sub Private Sub txtUserName_KeyPress(KeyAscii As Integer) Me.Caption = "Login..." End Sub Room master:Private Sub Clear() Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub Private Sub cmdAdd_Click() Data1.Recordset.MoveLast Data1.Recordset.AddNew cmdAdd.Visible = False cmdDelete.Enabled = False cmdNext.Enabled = False cmdPre.Enabled = False cmdLast.Enabled = False cmdFirst.Enabled = False DBList1.Enabled = False Text1.SetFocus End Sub Private Sub cmdExit_Click() Unload Me End Sub Private Sub cmdFirst_Click() Data1.Recordset.MoveFirst End Sub Private Sub cmdLast_Click() Data1.Recordset.MoveLast

45

End Sub Private Sub cmdNext_Click() Data1.Recordset.MoveNext If Data1.Recordset.EOF Then Data1.Recordset.MoveLast End If End Sub Private Sub cmdPre_Click() Data1.Recordset.MovePrevious If Data1.Recordset.BOF Then Data1.Recordset.MoveFirst End If End Sub Private Sub cmdSave_Click() If Text1.Text = "" Then Me.Caption = "Fill Room No..." Text1.SetFocus ElseIf Text2.Text = "" Then Me.Caption = "Fill Room Type..." Text2.SetFocus ElseIf Text3.Text = "" Then Me.Caption = "Fill Room Rate... Text3.SetFocus ElseIf IsNumeric(Text3.Text) = False Then Me.Caption = "Fill Numeric Value..." Text3.Text = "" Text3.SetFocus Else Data1.Recordset.Update Data1.Refresh cmdSave.Enabled = False cmdAdd.Visible = True cmdDelete.Enabled = True cmdNext.Enabled = True cmdPre.Enabled = True cmdLast.Enabled = True cmdFirst.Enabled = True DBList1.Enabled = True Me.Caption = "Room Master" End If End Sub Private Sub cmdDelete_Click() Data1.Recordset.Delete Data1.Recordset.MoveNext If Data1.Recordset.EOF Then

46

Data1.Recordset.MoveLast End If DBList1.ReFill End Sub Private Sub DBList1_Click() Data1.Recordset.Bookmark = DBList1.SelectedItem End Sub Private Sub Form_Load() Data1.DatabaseName = App.Path & "\hotel.mdb" Data2.DatabaseName = App.Path & "\hotel.mdb" End Sub BAR MASTER:Private Sub Clear() Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub Private Sub cmdAdd_Click() Data1.Recordset.MoveLast Data1.Recordset.AddNew cmdAdd.Visible = False cmdDelete.Enabled = False cmdNext.Enabled = False cmdPre.Enabled = False cmdLast.Enabled = False cmdFirst.Enabled = False DBList1.Enabled = False Text1.SetFocus End Sub Private Sub cmdExit_Click() Unload Me End Sub Private Sub cmdFirst_Click() Data1.Recordset.MoveFirst End Sub Private Sub cmdLast_Click() Data1.Recordset.MoveLast End Sub Private Sub cmdNext_Click() Data1.Recordset.MoveNext If Data1.Recordset.EOF Then Data1.Recordset.MoveLast

47

End If End Sub Private Sub cmdPre_Click() Data1.Recordset.MovePrevious If Data1.Recordset.BOF Then Data1.Recordset.MoveFirst End If End Sub Private Sub cmdSave_Click() If Text1.Text = "" Then Me.Caption = "Fill Drink Name..." Text1.SetFocus ElseIf Text2.Text = "" Then Me.Caption = "Fill Drink Price..." Text2.SetFocus ElseIf IsNumeric(Text2.Text) = False Then Me.Caption = "Fill Numeric Value..." Text2.Text = "" Text2.SetFocus ElseIf Text3.Text = "" Then Me.Caption = "Fill Drink Tax..." Text3.SetFocus ElseIf IsNumeric(Text3.Text) = False Then Me.Caption = "Fill Numeric Value..." Text3.Text = "" Text3.SetFocus Else Data1.Recordset.Update Data1.Refresh cmdSave.Enabled = False cmdAdd.Visible = True cmdDelete.Enabled = True cmdNext.Enabled = True cmdPre.Enabled = True cmdLast.Enabled = True cmdFirst.Enabled = True DBList1.Enabled = True Me.Caption = "Bar Master" End If End Sub

Private Sub cmdDelete_Click() Data1.Recordset.Delete Data1.Recordset.MoveNext If Data1.Recordset.EOF Then

48

Data1.Recordset.MoveLast End If DBList1.ReFill End Sub Private Sub DBList1_Click() Data1.Recordset.Bookmark = DBList1.SelectedItem End Sub Private Sub Form_Load() Data1.DatabaseName = App.Path & "\hotel.mdb" Data2.DatabaseName = App.Path & "\hotel.mdb" End Sub ADVANCE RECEIPT:Dim CH As Double Private Sub CLT() Text3.Text = "" Text4.Text = "" Text5.Text = "" End Sub Private Sub cmdExit_Click() Unload Me End Sub Private Sub cmdFirst_Click() Data1.Recordset.MoveFirst End Sub Private Sub cmdLast_Click() Data1.Recordset.MoveLast End Sub Private Sub cmdSave_Click() If Combo1.Text = "" Then Me.Caption = "Select Checkin No..." Combo1.SetFocus ElseIf Text7.Text = "" Then Me.Caption = "Fill Amount..." Text7.SetFocus ElseIf IsNumeric(Text7.Text) = False Then Me.Caption = "Fill Numeric Value..." Text7.Text = "" Text7.SetFocus Else Data1.Recordset.Update Data1.Refresh cmdSave.Visible = False

49

cmdAdd.Visible = True cmdDelete.Enabled = True cmdNext.Enabled = True cmdPrev.Enabled = True cmdFirst.Enabled = True cmdLast.Enabled = True Me.Caption = "Advance Recipt" End If End Sub Private Sub Combo1_Change() Data3.Recordset.MoveFirst Do Until Data3.Recordset.EOF If Data3.Recordset.check_in_no = Combo1.Text Then Text3.Text = Data3.Recordset.c_name End If Data3.Recordset.MoveNext Loop End Sub Private Sub Combo1_Click() Data2.Recordset.MoveFirst Do Until Data2.Recordset.EOF If Data2.Recordset.check_in_no = Val(Combo1.Text) Then Text3.Text = Data2.Recordset.c_name Text4.Text = Data2.Recordset.aroomno Text5.Text = Data2.Recordset.AROOMTYPE Exit Do End If Data2.Recordset.MoveNext Loop End Sub Private Sub cmdAdd_Click() If Data1.Recordset.BOF Then CH = 1111 Else Data1.Recordset.MoveLast CH = Data1.Recordset.Rec_NO + 1 End If Data1.Recordset.AddNew Data2.Recordset.MoveFirst Do Until Data2.Recordset.EOF Combo1.AddItem (Data2.Recordset.check_in_no) Data2.Recordset.MoveNext Loop Text1.Text = CH Text6.Text = Date Call CLT cmdAdd.Visible = False

50

cmdSave.Visible = True cmdDelete.Enabled = False cmdNext.Enabled = False cmdPrev.Enabled = False cmdFirst.Enabled = False cmdLast.Enabled = False End Sub Private Sub cmdDelete_Click() Data1.Recordset.Delete Data1.Recordset.MoveNext If Data1.Recordset.EOF Then Data1.Recordset.MoveLast End If End Sub Private Sub cmdNext_Click() Data1.Recordset.MoveNext If Data1.Recordset.EOF Then Data1.Recordset.MoveLast End If End Sub Private Sub cmdPrev_Click() Data1.Recordset.MovePrevious If Data1.Recordset.BOF Then Data1.Recordset.MoveFirst End If End Sub Private Sub Form_Load() Data1.DatabaseName = App.Path & "\hotel.mdb" Data2.DatabaseName = App.Path & "\hotel.mdb" Data3.DatabaseName = App.Path & "\hotel.mdb" Data4.DatabaseName = App.Path & "\hotel.mdb" End Sub Private Sub Text4_Change() Data4.Recordset.MoveFirst Do Until Data4.Recordset.EOF If Data4.Recordset.room_no = Text4.Text Then Text5.Text = Data4.Recordset.room_type End If Data4.Recordset.MoveNext Loop End Sub

51

Medical service bill:Dim CH As Double Private Sub CLT() Text4.Text = "" Text5.Text = "" Text6.Text = "" End Sub Private Sub cmdFirst_Click() Data1.Recordset.MoveFirst End Sub Private Sub cmdLast_Click() Data1.Recordset.MoveLast End Sub Private Sub Combo1_Change() Data2.Recordset.MoveFirst Do Until Data2.Recordset.EOF If Data2.Recordset.check_in_no = Combo1.Text Then Text4.Text = Data2.Recordset.c_name Text5.Text = Data2.Recordset.aroomno Text6.Text = Data2.Recordset.AROOMTYPE End If Data2.Recordset.MoveNext Loop End Sub Private Sub Combo1_Click() Call CLT Data2.Recordset.MoveFirst Do Until Data2.Recordset.EOF If Data2.Recordset.check_in_no = Val(Combo1.Text) Then Text4.Text = Data2.Recordset.c_name Text5.Text = Data2.Recordset.aroomno Text6.Text = Data2.Recordset.AROOMTYPE Exit Do End If Data2.Recordset.MoveNext Loop End Sub

52

Private Sub cmdDelete_Click() Data1.Recordset.Delete Data1.Recordset.MoveNext If Data1.Recordset.EOF Then Data1.Recordset.MoveLast End If End Sub Private Sub cmdNext_Click() Call CLT Data1.Recordset.MoveNext If Data1.Recordset.EOF Then Data1.Recordset.MoveLast End If End Sub Private Sub cmdPre_Click() Call CLT Data1.Recordset.MovePrevious If Data1.Recordset.BOF Then Data1.Recordset.MoveFirst End If End Sub Private Sub cmdExit_Click() Unload Me End Sub Private Sub Form_Load() Data1.DatabaseName = App.Path & "\hotel.mdb" Data2.DatabaseName = App.Path & "\hotel.mdb" End Sub Private Sub Text8_Change() Text10.Text = Val(Text8.Text) + Val(Text9.Text) End Sub Private Sub Text9_Change() Text10.Text = Val(Text8.Text) + Val(Text9.Text) End Sub

53

TESTING:Software testing is a critical element of software quality assurance and represents the ultimate review of application, design and coding. The aim of testing process is to identify all defects existing in a software product. Testing provides a practical way of reducing defects in a system and increasing the users confidence in a developed system. TESTING OBJECTIVE: Testing is a process of executing a program with a program with the intent of finding of error. A good test case is one of that has a high probability of finding an as yet undiscovered error. A successful test is one that uncovers as an yet undiscovered error.

The objective is to design test cases that systemically uncover different Classes of error and do so with a minimum amount of time and effort. This process has two parts: a)Planning:-This involves writing and reviewing unit, integration, functional, validation and acceptance test plans. b) Execution: This involves executing these test plans, measuring, collecting data and verifying if its meets the quality criteria. Data collected is used to make appropriate changes in the plans related to developments and testing. The quality of a product or item can be achieved by ensuring that the product meets the requirements by planning and conducting the following tests at various stages. The main types of software testing are: COMPONENTS: Starting from the button the first Level is Component Testing, sometimes called unit testing. It involves checking that each specified in the Component Design has been implemented in the component. In theory an independent tester should do this, but in practice the developer usually does it, as they are the only people who understand how a components work. The problem with a component is that it performs only a small part of functionality of a system, and it relies on co-operative with other parts of the system, which may not have been built yet. To cover come this, the developer either builds, or uses special software to trick the component into believing it is working in a fully functional system.

54

55

ADVANTAGES OF THE PROJECT: The system has the following advantages: The data can be maintained and updated easily with minimum efforts. The complex reports were generated easily and without any delay so that important decisions regarding to control the exam deficit, recovery of data, and declaration proof the results can be done without any delay. The allocation of the examination schedule is immediately provided to the students as earlier. Various kinds of queries put in by the administration can be answered immediately. Various level of security is maintained for the information at the most. Grouping and sorting of the records is maintained. Fast retrieval of information regarding the examination can be done. DEFICIENCIES: Of course we can not claim to have the best flexible information system, but all the same we do have the most flexible information system that can be implemented in most of the organization. Almost all the aspects that are existing in the current manual system has been taken to a number of accounts. The system is very much user friendly. Even without having working experience of the system, it can be handled in a very efficient manner. The screens are adjusted in a structured hierarchical manner such that one can move from one screen to the another easily with the help of menu.

56

Limitations The software is not centralized. The billing module does work for floating point numbers. There is not payroll system for the employee. Each and every department works Independently and generates its own bill. This software takes the present date from the system so if the system date is anyhow wrong the software may malfunction. This software does not provide backup. The hotel personal expenses billing is generated on monthly basis.

FUTURE APPLICATION OF THE PROJECT By this time according to the user we have completed all the requirements but still there are some section which can be computerized in this system and after that one can say it is a fully completed hotel management system. It will be save money according to its performance also will be helpful fast accessing of the organization.

57

BIOGRAPHY: Visual Basic 6.0 in 21 Days , Author :-Greg M. Perry, Publisher:-SAMS Aptech Academy books, Author:-Valery V Shmelef 6.0. VB Complete reference by Paul Sheriff, Indianapolis, Ind. : Que ; Hemel Hempstead : Prentice Hall, 1998 www.sourcecode.com www.erdraw.com

58

S-ar putea să vă placă și