Beruflich Dokumente
Kultur Dokumente
SYSTEM
COLLEGE NAME:
BENGAL COLLEGE OF
ENGINEERING AND TECHNOLOGY
BIDHANNAGAR ,DURGAPUR , WESTBENGAL
PIN-713201
GROUP MEMBERS
REQUIREMENT SPECIFICATION
DOMAIN DESCRIPTION
HOTEL MANAGEMENT SYSTEM reservation system is needed
to ROOMS on the HOTEL where the customer can choose the
ROOM that is currently being in the hotel which has been
not allotted.
The main actors in the hotel management system are the
administrator….
PROBLEM DEFINITION
Nowadays it is very difficult for a person to maintain records
manually, so in order to provide the hotels with such a
system that helps them severely in maintaining the records
of the hotel transactions, we are going with this project. The
operations performed by this project are maintenance of the
information of the transactions that are performed by the
hotels.
2. In our project, only one room can be booked at a time. This can be
overcome in the future where an interface would be developed which will
support booking of multiple rooms at a time.
Codes
Table creating codes
Customer:-
create table customer(cid number(10) primary key,cname
varchar(10),phno number(10),address varchar(10),pancard
number(10));
insert into customer values (rollseq.nextval,'aaa',1111,
'patna',1234);
insert into customer values
(rollseq.nextval,'bbb',1121,'ranchi',2345);
insert into customer values
(rollseq.nextval,'ccc',1131,'kolkata',3456);
insert into customer values
(rollseq.nextval,'ddd',1141,'asansol',4567);
insert into customer values
(rollseq.nextval,'eee',1151,'durgapur',5678);
insert into customer values
(rollseq.nextval,'fff',1161,'mumbai',6789);
satff
create table staff(Sid number(10),sname varchar(10),address
varchar(10),desigination varchar(20),phno number(10));
insert into staff values
(sidseq.nextval,'ram','lohardaga','receptionist',2222);
insert into staff values
(sidseq.nextval,'shyam','bokaro','waiter',3333);
insert into staff values
(sidseq.nextval,'gopal','tata','shef',4444);
insert into staff values
(sidseq.nextval,'hari','muri','housekeeping',5555);
insert into staff values
(sidseq.nextval,'radha','dhanbad','cleaner',6666);
room
create table room(Room_no number(10) primary
key,room_type varchar(10),rent number(15),block
varchar(10),floor varchar(10));
insert into room values(01,'single',3000,'A','ground');
insert into room values(02,'single',3000,'A','ground');
insert into room values(03,'single',3000,'A','ground');
insert into room values(04,'single',3000,'A','ground');
insert into room values(05,'single',3000,'A','ground');
insert into room values(06,'Double',4000,'A','ground');
insert into room values(07,'Double',4000,'A','ground');
insert into room values(08,'Double',4000,'A','ground');
insert into room values(09,'Double',4000,'A','ground');
insert into room values(10,'Twin',4000,'A','ground');
insert into room values(11,'Twin',5000,'B','ground');
insert into room values(12,'Twin',5000,'B','ground');
insert into room values(13,'Interconnective',7000,'C','first');
insert into room values(14,'Interconnective',7000,'C','first');
ALLOCATION
PROGRAMME CODES
Login page:-
For customer:-
Open form(‘c:\new
folder\customer.fmx’,activate,no_session)
For staff
Open form(‘c:\new
folder\staff.fmx’,activate,no_session)
Customer
Load:-
declare
a number;
begin
if :ti1 is null then
a := show_alert('nodeptno');
else
select count(*) into a
from emp
where deptno=:ti1;
if a=0 then
a := show_alert('norecord');
else
a := populate_group('rg1');
populate_list('li1','rg1');
end if;
end if;
end;
move last:-
declare
a number;
cust_id customer.cid%type;
cust_name customer.cname%type;
mobile customer.phno%type;
city customer.address%type;
pan_no customer.pancard%type;
begin
from customer;
if (a=0) then
:global.reccount:=0;
:global.currecno:=0;
else
:global.reccount:=1;
:global.currecno:=a;
:di7:=:global.currecno||'/'||:global.reccount;
from
from customer
order by rownum
)
where rn=:global.currecno;
:di6:=cust_id;
:ti1:=cust_name;
:ti2:=mobile;
:ti3:=city;
:ti4:=pan_no;
:di7:=:global.reccount||'/'||:global.currecno;
end if;
end;
move previous:-
declare
a number;
cust_id customer.cid%type;
cust_name customer.cname%type;
mobile customer.phno%type;
city customer.address%type;
pan_no customer.pancard%type;
begin
select count(*) into a
from customer;
if (a=0) then
:global.reccount:=0;
:global.currecno:=0;
else
if (:global.reccount=1) then
a := show_alert('firsttrecord');
else
:global.reccount:=:global.reccount - 1;
:di6:=cust_id;
:ti1:=cust_name;
:ti2:=mobile;
:ti3:=city;
:ti4:=pan_no;
:di7:=:global.reccount||'/'||:global.currecno;
end if;
end if;
end;
end;
move first:-
declare
a number;
cust_id customer.cid%type;
cust_name customer.cname%type;
mobile customer.phno%type;
city customer.address%type;
pan_no customer.pancard%type;
begin
from customer;
if (a=0) then
:global.reccount:=0;
:global.currecno:=0;
else
:global.reccount:=1;
:global.currecno:=a;
:di7:=:global.reccount||'/'||:global.currecno;
from
from customer
order by rownum
where rn=1;
:di6:=cust_id;
:ti1:=cust_name;
:ti2:=mobile;
:ti3:=city;
:ti4:=pan_no;
:di7:=:global.reccount||'/'||:global.currecno;
end if;
end;
move last:-
declare
a number;
cust_id customer.cid%type;
cust_name customer.cname%type;
mobile customer.phno%type;
city customer.address%type;
pan_no customer.pancard%type;
begin
select count(*) into a
from customer;
if (a=0) then
:global.reccount:=0;
:global.currecno:=0;
message('I m in the then block...');
else
message('I m in the else block...');
:global.reccount:=1;
:global.currecno:=a;
:di7:=:global.currecno||'/'||:global.reccount;
:di6:=cust_id;
:ti1:=cust_name;
:ti2:=mobile;
:ti3:=city;
:ti4:=pan_no;
:di7:=:global.reccount||'/'||:global.currecno;
end if;
end;
update:-
declare
a number;
begin
if :ti2 is null or :ti3 is null or :ti4 is null then
a:=show_alert('blankfield');
else
insert into mystu values (rollseq.nextval,:ti2,:ti3,:ti4);
standard.commit;
:global.reccount:=:global.reccount+1;
:global.currecno:=:global.reccount;
:di3:=:global.currecno||'/'||:global.reccount;
end if;
end;
insert:-_
:di2 := :global.reccount+1;
:ti2:='';
:ti3:='';
:ti4:='';
go_item('ti2');
move next:-
declare
a number;
cust_id customer.cid%type;
cust_name customer.cname%type;
mobile customer.phno%type;
city customer.address%type;
pan_no customer.pancard%type;
begin
select count(*) into a
from customer;
if (a=0) then
:global.reccount:=0;
:global.currecno:=0;
else
if (:global.currecno=:global.reccount) then
a := show_alert('lastrecord');
else
:global.reccount:=:global.reccount + 1;
:di6:=cust_id;
:ti1:=cust_name;
:ti2:=mobile;
:ti3:=city;
:ti4:=pan_no;
:di7:=:global.reccount||'/'||:global.currecno;
end if;
end if;
move previous:-
declare
a number;
cust_id customer.cid%type;
cust_name customer.cname%type;
mobile customer.phno%type;
city customer.address%type;
pan_no customer.pancard%type;
begin
select count(*) into a
from customer;
if (a=0) then
:global.reccount:=0;
:global.currecno:=0;
else
if (:global.reccount=1) then
a := show_alert('firsttrecord');
else
:global.reccount:=:global.reccount - 1;
:di6:=cust_id;
:ti1:=cust_name;
:ti2:=mobile;
:ti3:=city;
:ti4:=pan_no;
:di7:=:global.reccount||'/'||:global.currecno;
end if;
end if;
end;
end;
staff table:-
insert:-
:di2 := :global.reccount+1;
:ti2:='';
:ti3:='';
:ti4:='';
go_item('ti2');
update:-
update
declare
a number;
begin
if :ti2 is null or :ti3 is null or :ti4 is null then
a:=show_alert('blankfield');
else
insert into mystu values (rollseq.nextval,:ti2,:ti3,:ti4);
standard.commit;
:global.reccount:=:global.reccount+1;
:global.currecno:=:global.reccount;
:di3:=:global.currecno||'/'||:global.reccount;
end if;
end;
exit:-
exit form;
room table:-
least button:-
:DI1:=:LI1;
allocation:-
Certificate
THIS IS TO CERTIFY THAT NITESH KUMAR OF
PROGRAM 2015-2016.
___________________ ___________________________
Signature and date PROF.ARNAB CHAKRABORTY
Certificate
THIS IS TO CERTIFY THAT VIJAY PRATAP SINGH OF
PROGRAM 2015-2016.
___________________ ___________________________
Signature and date PROF.ARNAB CHAKRABORTY
Certificate
THIS IS TO CERTIFY THAT BAISHALI MUKHERJEE OF
PROGRAM 2015-2016.
___________________ ___________________________
Signature and date PROF.ARNAB CHAKRABORTY
Certificate
THIS IS TO CERTIFY THAT SANDIP KUMAR OF
PROGRAM 2015-2016.
___________________ ___________________________
Signature and date PROF.ARNAB CHAKRABORTY
CONCLUSION
The HOTEL MANAGEMENT SYSTEM is a step in the direction to ease the
structure of ticket booking and reservation system. Some of the advantages
that it enjoys over Manual System are:
Time is precious and speed is the order of today. Our software supports this
statement