Professional Documents
Culture Documents
DEPARTMENT OF MCA
PROJECT REPORT
AS A PARTIAL REQUIREMENT
FOR THE DEGREE OF
MASTER OF COMPUTER
APPLICATION
(M.C.A)
YEAR: 2014-15
GUIDED BY:
SUBMITTED BY:
Date: 21/05/15
TO WHOMSOEVER IT MAY CONCERN
at Gr. Noida
P.B Kotur
General Manager - Talent Transformation
PLACE: Bangalore
ACKNOWLEDGEMENT
This project is a culmination of task undertaken by us during the course at MIET.
Acknowledgement is not a mere formality or ritual but a genuine opportunity to express the
indebitness to all those without whose active support and encouragement this project wouldnt
have been possible. One of the most pleasing aspects in collecting the necessary information and
compiling it is the opportunity to thank those who have actively contributed to it.
The General acknowledgement goes to the Management of MIET AND where I have got the
ample opportunity to undertake the study and completion of this Project. I successfully
completed the project under the guidance of the College and company personnel.
I would like to express my thanks to Dr. Mayank Garg (Director of the Department) for his
guidance and cooperation rendered for allowing me to undergo training under his guidance.
Im highly indebted to Mr. Amit Garg (Head of the Department) for his continuous effort in
building a good infrastructure and develop a professional attitude within ourselves during the
academic period of MCA.
My special thanks to Ms. Gunjan Verma and Ms. Nidhi Sharma for their active support,
affectionate guidance and constant encouragement. They helped me in getting all the data,
required notes, slides etc required by my project.
Diction is not enough to express my gratitude to my parents who have molded my career through
enormous sacrifice throughout the years.
3
Manisha Chaudhary
1306814928
TABLE OF CONTENTS
CHAPTER 1 (Introduction)
1.1. Introduction
1.2. Objective/Vision............................................................................................
1.3. Background.
CHAPTER 2 .........................................................
2.1. Methodology................................................................................................
4-5
3.3. Architecture..................................................................................................
25
CHAPTER 4 (Platform/Technology)
4.1. Introduction to Jsp
26
26-27
28-29
30-32
CHAPTER5 (Testing)
5.1. Levels of Testing.
33-35
36
36
6.3. Conclusions
37
ABSTRACT
This project primarily aims at providing a platform to the customers for easy access of facilities
like online reservation of rooms in the luxurious and marvelous hotels of jaipur, online order
placement of food for home delivery along with the facility of online booking of table at any of
these restaurants.
It also facilitates the customers with the information regarding various tourist spots located
therein.
The ultimate objective of the project manage group of hotels is to reach the highest level of
sophistication in the hotels and restaurants so as to achieve a perfect flow of information,
analysis, and interaction between the customers and the website. The basic aim of manage group
of hotels is total computerization of the reservation process.
This project looks forward to take the advantages of the field of Information Technology so as to
benefit the common people and help them in easy access of information..
CHAPTER1
INTRODUCTION
1.1 INTRODUCTION
This project involves developing a central system that will help management of a group
of hotels from a central authority.
This system will be owned by a Hotel Group of national or international repute. The
system will incorporate features of hotel management plus central management of the
group of hotels by the firm head.
This integrates customer services like online and any place booking.
It will usher an environment which will not only provide unlimited services to the
customers but also help the Managers and other people related to the hotels to function
effectively and efficiently
1.2 OBJECTIVE/VISION
The objective of this website is to provide a platform to the customers where they could get
facilities like online reservation of rooms in the luxurious and marvelous hotels of jaipur,
online order placement of food for home delivery along with the facility of online booking of
table at any of these restaurants.
It also provides the customers with the information regarding various tourist spots located
therein.
1.3 BACKGROUND
Lack of the facility of online Order placement for home delivery of food from the
restaurant.
Difficulty in searching information about a particular place or area like tourist spots.
All the work is being done manually which is much time consuming and inefficient.
Online Order placement for home delivery of food from restaurant by customers.
Online booking by customers at any hotel. Customer can get complete information about
a hotel and book online.
Online Library for customers will be available for getting information about that
particular place or area like tourist spots, suggested visiting areas and their timings etc.
CHAPTER2
2.1
METHODOLOGY
This project employs the object oriented approach of software engineering using appropriate
object oriented approach. Some of the steps to be taken are:
Feasibility study understanding and identifying of existing system and associated study.
Analysis proper analysis and suggested solution to tackle such problems will be
considered.
Design designing the new system will be achieved through object oriented software
tools.
Coding this is implemented using JSP language.
1. Economic Feasibility
2. Technical Feasibility
3. Operational Feasibility
Economical Feasibility
It looks at the financial aspects of the project. It determines whether the management has enough
resources and budget to invest in the proposed system and the estimated time for the recovery of
cost incurred. It also determines whether it is worthwhile to invest the money in the proposed
project. Economic feasibility is determined by the means of cost benefit analysis. The proposed
system is economically feasible because the cost involved in purchasing the hardware and the
software are within approach. The less time involved also helped in its economical feasibility. It
was observed that the organization has already using computers for other purpose, so that there is
no additional cost to be incurred for adding this system to its computers.
The backend required for storing other details is also the same database that is SqlServer2005.
The computers in the organization are highly sophisticated and dont need extra components to
load the software. Hence the organization can implement the new system without any additional
expenditure. Hence, it is economically feasible.
Technical Feasibility
It is a measure of the practically a specific technical solution and the availability of
technical
The proposed system uses JSP as front-end and SQL SERVER 2000 or 2005 as backend tool.
MS ACCESS is a popular tool used to design and develop database objects such as
table views, indexes.
The above tools are readily available, easy to work with and widely used for developing
commercial application.
Hardware used in this project are 1.6 GHz CPU, 384 MB RAM, 5400 RPM hard disk. This
hardware was already available on the existing computer system. The software like SQL Server
2005, Tomcat 6.0, and operating system WINDOWS-XP used were already installed on the
10
existing computer system. So no additional hardware and software were required to purchase and
it is technically feasible. The technical feasibility is in employing computers to the organization.
The organization is equipped with enough computers so that it is easier for updating. Hence the
organization has no technical difficulty in adding this system.
Operational Feasibility
The system will be used if it is developed well then be resistance for users that undetermined
No major training and new skills are required as it is based on DBMS model.
It will help in the time saving and fast processing and dispersal of user request and
applications.
New product will provide all the benefits of present system with better performance.
User support.
User involvement in the building of present system is sought to keep in mind the user
specific requirement and needs.
Behavioral Feasibility
People are inherent to change. In this type of feasibility check, we come to know if the newly
developed system will be taken and accepted by the working force i.e. the people who will use it.
11
2.3 ARCHITECTURE
CLIENT -SERVER ARCHITECTURE
We have used the 3-tier architecture. It consists of an intermediate layer or MIDDLE TIER,
which is sometimes called the application server and sometimes the web server .it is placed
between client and the database server. the intermediate server accepts request from the
client, processes the request and sends database commands to the database server.
12
CHAPTER 3
SYSTEM ANALYSIS AND DESIGN
O. S. /Platform
IDE
NetBeans
Server
Glassfish 4.0
Back End
SQL
Front End
PERT Chart
The Program (or Project) Evaluation and Review Technique, commonly abbreviated PERT,
is a model for project management designed to analyze and represent the tasks involved in
completing a given project. It is commonly used in conjunction with the critical path method or
CPM.
14
A PERT chart is a tool that facilitates decision making; The first draft of a PERT chart
will number its events sequentially in 10s (10, 20, 30, etc.) to allow the later insertion of
additional events.
Two consecutive events in a PERT chart are linked by activities, which are
conventionally represented as arrows .
The events are presented in a logical sequence and no activity can commence until its
immediately preceding event is completed.
The planner decides which milestones should be PERT events and also decides their
proper sequence.
15
16
1-LEVEL DFD
17
I-LEVEL DFD
18
I-LEVEL DFD
I-LEVEL DFD
19
I-LEVEL DFD
20
ENTITY-RELATIONSHIP DIAGRAM
21
3.6
22
3) Login:
The login module will be built that will allow the administrator of this website to check the
details of all customers.
4) Restaurant:
The restaurant module will allow the customers to place order for food online that will be made
available to them from the selected restaurant.
The menu has been made available to the customers.
5) Tourist Spots:
Online library for customers will be available for getting information about that particular place
or area like tourists spots, suggested visiting areas and their timings.
.
CHAPTER4
PLATFORM (TECHNOLOGY)
24
Java Server Pages (JSP) is a server side Java technology that allows software developers to
create dynamically generated web pages, with HTML, XML, or other document types, in
response to a Web client request to a Java Web Application container (server).
It enables Web developers and designers to rapidly develop and easily maintain, informationrich, dynamic Web pages that leverage existing business systems. As part of the Java technology
family, JSP technology enables rapid development of Web-based applications that are platform
independent. JSP technology separates the user interface from content generation, enabling
designers to change the overall page layout without altering the underlying dynamic content.
JSPs are compiled into servlets by a JSP compiler. The compiler either generates a servlet in Java
code that is then compiled by the Java compiler, or it may compile the servlet to byte code which
is directly executable. JSPs can also be interpreted on-the-fly, reducing the time taken to reload
changes.
If you are a Web page developer or designer who is familiar with HTML, you can:
25
* Use JSP technology without having to learn the Java language: You can use JSP technology
without learning how to write Java scriplets. Although scriptlets are no longer required to
generate dynamic content, they are still supported to provide backward compatibility.
* Extend the JSP language: Java tag library developers and designers can extend the JSP
language with "simple tag handlers," which utilize a new, much simpler and cleaner, tag
extension API. This spurs the growing number of pluggable, reusable tag libraries available,
which in turn reduces the amount of code needed to write powerful Web applications.
* Easily write and maintain pages: The JavaServer Pages Standard Tag Library (JSTL)
expression language is now integrated into JSP technology and has been upgraded to support
functions. The expression language can now be used instead of scriptlet expressions.
CHAPTER5
TESTING
26
Client Needs
Acceptance Testing
Requirements
System Testing
Design
Integration Testing
Code
Unit Testing
Unit testing
Unit testing focuses verification effort on the smallest unit of software i.e. the module. Using the
detailed design and the process specifications, testing is done to uncover errors within the
boundary of the module. All modules must be successful in the unit test before the start of the
integration testing begins.
27
In this project each service can be thought of a module. There are so many modules like Login,
Account Details, and Money transfer etc. Each module has been tested by giving different sets of
inputs. When developing the module as well as finishing the development, the module works
without any error. The inputs are validated when accepting them from the user.
Integration Testing
After unit testing, we have to perform integration testing. The goal here is to see if modules can
be integrated properly, the emphasis being on testing interfaces between modules. This testing
activity can be considered as testing the design and hence the emphasis on testing module
interactions.
In this project the main system is formed by integrating all the modules. When integrating all the
modules we have checked whether the integration effects working of any of the services by
giving different combinations of inputs with which the two services run perfectly before
Integration.
White Box Testing
This is a unit testing method, where a unit will be taken at a time and tested thoroughly at a
statement level to find the maximum possible errors.
We tested step wise every piece of code, taking care that every statement in the code is executed
at least once. The white box testing is also called Glass Box Testing.
White-box test focuses on the program control structure. Test cases are derived to ensure that all
statement in the program control structure. Test cases are derived to ensure that all statement in
the program has been executed at least once during testing and that all logical conditions have
been exercised.
Black Box Testing
This testing method considers a module as a single unit and checks the unit at interface and
communication with other modules rather getting into details at statement level. Here the module
will be treated as a block that will take some input and generate output. Output for a given set of
input combinations are forwarded to other modules.
28
Black-box test are designed to uncover errors functional requirement without regard to the
internal workings of a program. Black-box testing techniques focus on the information domain of
the software, deriving test cases by partitioning the input and output domain of a program in
manner that provides through test coverage. The black-box test is used to demonstrate that
software functions are operational, that input is properly produced, and that the integrity of
external information is maintained. A black-box test examines some fundamental aspect of a
system with little or no regard for the integral logical structure of the software.
29
CHAPTER6
RESULTS AND CONCLUSIONS
This section discuses the result of the work done in this project And also mentions the future
scope for improvement.
6.1 Limitations
Since, every system has some limitations so our proposed system is also not untouchable in this regard.
Though it was planned for this system to be absolutely perfect but everything as such has some
limitations, so does the System. Following may be the drawback in this system.
Though this system is developed as a multi user system but it is not a real time
system.
The interaction with the database, every time they are loaded thus the system tends to be a bit
slow.
The site is made in all possible way to meet the user requirements using latest version of
available software and hardware. But as user requirements and operating environment keep
changing further extensions can be made on this. As mentioned above, this project is an initiative
to bring all the online facilities to the customers. In future some more schemas can be added in
the Manage Group of Hotels like availability of tourist guides online,online payments of bills,
registration for employees,chat facility etc.
30
6.3 Conclusions
Since this has been generated using JSP Programming, its present features can be enhanced by
some simple modifications in the codes so as to use it in the changing scenario.
Hereby we would like to conclude that we tried our level best to develop software for the hotel.
With the increasing use of computers and spread of internet, this software will help the hotel
owners in expanding its horizons and reaching new heights.
Manage Group of Hotels is a project designed to manage and automate a hotel with full
consideration of todays needs. This automation is done for proper benefit of the hotel employee
as well as of the customers so they can get best of what they want.
It will reduce the burden of managing the room & customer details.
With the automation of the hotel, the hotel management system will be more consistent,
more reliable as well as more efficient.
The proposed system will be user friendly as well as helpful for all intended customers & hotel
employees. This system will provide better and enhanced view for manage group of hotels
efficiently.
31
TABLES
Table 1: Login
FIELD
ID
PASSWORD
PERMISSION
FAVQUESTION
ANSWER
TYPE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
DESCRIPTION
PRIMARY KEY
TYPE
VARCHAR
VARCHAR
VARCHAR
INT
DATE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
DATE
VARCHAR
DESCRIPTION
PRIMARY KEY
Table 2: CUSTOMER
FIELD
CMPID
NAME
EMAILID
MOBILENO
DATEOFBIRTH
GENDER
COUNTRY
STATE
CITY
STREET
ADDRESS
DATEOFCHECKIN
STATUS
32
TYPE
VARCHAR
VARCHAR
VARCHAR
INT
DATE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
DESCRIPTION
PRIMARY KEY
Table 4: CUSTOMERMembership
FIELD
ID
MEMBERSHIPID
FEE
STARTDATE
ENDDATE
MEMBERSHIPTYPE
PAYMENTMODE
CHECKNO
CHECKDATE
CHECKAMOUNT
STATUS
TYPE
VARCHAR
VARCHAR
VARCHAR
DATE
DATE
VARCHAR
VARCHAR
VARCHAR
DATE
BIGINT
VARCHAR
33
DESCRIPTION
PRIMARY KEY
TYPE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
DESCRIPTION
PRIMARY KEY
TYPE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
BIGINT
DATE
DATE
DESCRIPTION
PRIMARY KEY
TYPE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
DESCRIPTION
PRIMARY KEY
TYPE
VARCHAR
DESCRIPTION
PRIMARY KEY
FIELD
ID
COMPANY
IMAGE
URL
AMOUNT
DATE FROM
DATE TO
FIELD
ID
FEEDBACK
NAME
MOBILE
MAIL ID
FIELD
ID
34
NAME
MOBILE
MAIL ID
MESSAGE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
Table 30 : Query
FIELD
QUERYID
NAME
MOBILE
MAIL ID
QUERY
STATUS
TYPE
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
VARCHAR
35
DESCRIPTION
PRIMARY KEY
DATABASE PROCEDURES
@N
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='L00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='L0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='L'+@N;
36
FROM
END;
INSERT
INTO
TBLLOGIN
VALUES(@N,@PASSWORD,@PERMISSION,@FAVQUESTION,@ANSWER);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLLOGIN;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE
TBLLOGIN
SET
PASSWORD=@PASSWORD,PERMISSION=@PERMISSION,FAVQUESTION=@FAVQUES
TION,ANSWER=@ANSWER WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLLOGIN where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT
TBLLOGIN),0);
@N1
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='L00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='L0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
37
FROM
SET @N1='L'+@N1;
END;
SELECT @N1;
END
END ;
PROCEDURE FOR TBLEMPLOYEE
CREATE PROCEDURE PROEMPLOYEE
@OPERATION VARCHAR(20)='SELECT' ,
@EMPID
VARCHAR(20)
@NAME
VARCHAR
(20)=NULL,
@EMAILID VARCHAR
(20)=NULL,
@MOBILENO
INT
=NULL,
@DATEOFBIRTH
DATE=NULL,
@GENDER
VARCHAR
=NULL,
(20)=NULL,
@COUNTRY VARCHAR(20)=NULL,
@STATE
VARCHAR
(20)=NULL,
@CITY
VARCHAR
(20)=NULL,
@STREET
VARCHAR
(20)=NULL,
@ADDRESS VARCHAR(20)=NULL,
@DATEOFJION
@STATUS
DATE=NULL,
VARCHAR
(20)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT MAX(SUBSTRING(EMPID,2,3)) FROM
TBLEMPLOYEE),0);
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
38
BEGIN
SET @N='E00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='E0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='E'+@N;
END;
INSERT INTO TBLEMPLOYEE VALUES(@N,@NAME,
@EMAILID,
@MOBILENO,
@DATEOFBIRTH,
@GENDER
@COUNTRY,
@STATE
@CITY
@STREET
@ADDRESS,
@DATEOFJION
@STATUS
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLEMPLOYEE;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE
TBLEMPLOYEE
SET
NAME=@NAME,EMAILID=@EMAILID,MOBILENO=@MOBILENO,@DATEOFBIRTH=
@DATEOFBIRTH,GENDER=@GENDER,COUNTRY=@COUNTRY,STATE=@STATE,CITY
39
=@CITY,STREET=@STREET,ADDRESS=@ADDRESS,DATEOFJION=@DATEOFJION,ST
ATUS=@STATUS WHERE EMPID=@EMPID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLEMPLOYEE where EMPID=@EMPID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1 =ISNULL((SELECT MAX(SUBSTRING(EMPID,2,3)) FROM
TBLEMPLOYEE),0);
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='E00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='E0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='E'+@N1;
END;
SELECT @N1;
END
END ;
@OPERATION VARCHAR(20)='SELECT',
@ID VARCHAR(20)=NULL,
@NAME
VARCHAR(50)=NULL,
@EMAILID VARCHAR(50)=NULL,
@MOBILENO
INT=NULL,
@DATEOFBIRTH DATE=NULL,
@GENDER VARCHAR(10)=NULL,
@COUNTRY
VARCHAR(50)=NULL,
@STATE
VARCHAR(50)=NULL,
@CITY
VARCHAR(50)=NULL,
@STREET VARCHAR(50)=NULL,
@ADDRESSVARCHAR(100)=NULL,
@CURRENTORGANIZATION
VARCHAR(100)=NULL,
@ADDRESSOFORGANIZATION VARCHAR(150)=NULL,
@CURRENTDESIGNATION
VARCHAR(200)=NULL,
@ACADEMICQUALIFICATION VARCHAR(200)=NULL,
@PROFESSIONALQUALIFICATION
VARCHAR(200)=NULL,
@MEMBERSHIPINSTITUTENAME
VARCHAR(200)=NULL,
@BESTQUALIFICATIONEXPERIENCE VARCHAR(200)=NULL,
@STATUS VARCHAR(100)=NULL,
@RESUMEDOC
VARCHAR(500)=NULL,
@EDUCATIONALCERTIFICATEDOC
VARCHAR(500)=NULL,
@RELIEVINGEXPERIENCECERTIFICATESDOC
VARCHAR(200)=NULL,
@FACTORYAUDITCONDUCTEDDOC VARCHAR(200)=NULL,
@PANCOPYDOC VARCHAR(50)=NULL,
@ADDRESSPROFFDOC VARCHAR(100)=NULL,
@PASSPORTCOPYDOC
VARCHAR(100)=NULL,
@PHOTOIDENTITYDOC VARCHAR(50)=NULL,
@MEMBERSHIPOLDCARDDOC VARCHAR(100)=NULL,
@MEMBERSHIPCARDOFOTHERPROFESSIONBODYDOC VARCHAR(100)=NULL,
@PASSWORD
VARCHAR(20)=NULL
AS
BEGIN
41
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N
TBLEMPLOYEMENT),0);
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
FROM
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='E00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='E0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='E'+@N;
END;
INSERT
INTO
TBLEMPLOYEMENT
VALUES(@N,@NAME,@EMAILID,@MOBILENO,@DATEOFBIRTH,@GENDER,@COUN
TRY,@STATE,@CITY,@STREET,@ADDRESS,@CURRENTORGANIZATION,@ADDRESS
OFORGANIZATION,@CURRENTDESIGNATION,@ACADEMICQUALIFICATION,@PRO
FESSIONALQUALIFICATION,@MEMBERSHIPINSTITUTENAME,@BESTQUALIFICATI
ONEXPERIENCE,@STATUS,@RESUMEDOC,@EDUCATIONALCERTIFICATEDOC,@RE
LIEVINGEXPERIENCECERTIFICATESDOC,@FACTORYAUDITCONDUCTEDDOC,@PA
NCOPYDOC,@ADDRESSPROFFDOC,@PASSPORTCOPYDOC,@PHOTOIDENTITYDOC,
@MEMBERSHIPOLDCARDDOC,@MEMBERSHIPCARDOFOTHERPROFESSIONBODYD
OC,@PASSWORD);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLEMPLOYEMENT;
END
IF(@OPERATION='UPDATE')
BEGIN
42
UPDATE
TBLEMPLOYEMENT
SET
NAME=@NAME,EMAILID=@EMAILID,MOBILENO=@MOBILENO,DATEOFBIRTH=@
DATEOFBIRTH,GENDER=@GENDER,COUNTRY=@COUNTRY,STATE=@STATE,CITY=
@CITY,STREET=@STREET,ADDRESS=@ADDRESS,CURRENTORGANIZATION=@CUR
RENTORGANIZATION,ADDRESSOFORGANIZATION=@ADDRESSOFORGANIZATION,
CURRENTDESIGNATION=@CURRENTDESIGNATION,ACADEMICQUALIFICATION=@
ACADEMICQUALIFICATION,PROFESSIONALQUALIFICATION=@PROFESSIONALQU
ALIFICATION,MEMBERSHIPINSTITUTENAME=@MEMBERSHIPINSTITUTENAME,BE
STQUALIFICATIONEXPERIENCE=@BESTQUALIFICATIONEXPERIENCE,STATUS=@S
TATUS,RESUMEDOC=@RESUMEDOC,EDUCATIONALCERTIFICATEDOC=@EDUCATI
ONALCERTIFICATEDOC,RELIEVINGEXPERIENCECERTIFICATESDOC=@RELIEVING
EXPERIENCECERTIFICATESDOC,FACTORYAUDITCONDUCTEDDOC=@FACTORYAU
DITCONDUCTEDDOC,PANCOPYDOC=@PANCOPYDOC,ADDRESSPROFFDOC=@ADD
RESSPROFFDOC,PASSPORTCOPYDOC=@PASSPORTCOPYDOC,PHOTOIDENTITYDOC
=@PHOTOIDENTITYDOC,MEMBERSHIPOLDCARDDOC=@MEMBERSHIPOLDCARDD
OC,MEMBERSHIPCARDOFOTHERPROFESSIONBODYDOC=@MEMBERSHIPCARDOF
OTHERPROFESSIONBODYDOC,PASSWORD=@PASSWORD WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLEMPLOYEMENT WHERE ID=@ID;
END
IF(@OPERATION='SELECTED')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1
TBLEMPLOYEMENT),0);
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='E00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='E0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
43
FROM
SET @N1='E'+@N1;
END;
SELECT @N1;
END
END;
PROCEDURE FOR TBLEMPANELMENTMBERSHIP
CREATE PROCEDURE PROEMPANELMENTMBERSHIP
@OPERATION VARCHAR(20)='SELECT',
@ID
VARCHAR
(50)=NULL,
@MEMBERSHIPID VARCHAR(50)=NULL,
@FEE VARCHAR
(50)=NULL,
@STARTDATE
DATE=NULL,
@ENDDATE DATE=NULL,
@MEMBERSHIPTYPE
VARCHAR
(20)=NULL,
@PAYMENTMODE VARCHAR(50)=NULL,
@CHECKNO VARCHAR(20)=NULL,
@CHECKDATE
DATE=NULL,
@CHECKAMOUNT BIGINT=NULL,
@STATUS
VARCHAR
(300)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT
TBLEMPANELMENTMBERSHIP
),0);
SET @N=@N+1;
44
MAX(SUBSTRING(ID,2,3))
FROM
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='V00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='V0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='V'+@N;
END;
INSERT INTO TBLEMPANELMENTMBERSHIP
VALUES(@N,@MEMBERSHIPID ,
@FEE ,
@STARTDATE,
@ENDDATE,
@MEMBERSHIPTYPE
@PAYMENTMODE ,
@CHECKNO,
@CHECKDATE
@CHECKAMOUNT,
@STATUS
);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLEMPANELMENTMBERSHIP ;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE
TBLEMPANELMENTMBERSHIP
SET
MEMBERSHIPID=@MEMBERSHIPID,FEE=@FEE,STARTDATE=@STARTDATE,ENDDA
45
TE=@ENDDATE,MEMBERSHIPTYPE=@MEMBERSHIPTYPE,PAYMENTMODE=@PAY
MENTMODE,CHECKNO=@CHECKNO,CHECKDATE=@CHECKDATE,CHECKAMOUNT
=@CHECKAMOUNT,STATUS=@STATUS WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLEMPANELMENTMBERSHIP where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1 =ISNULL((SELECT
TBLEMPANELMENTMBERSHIP ),0);
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='V00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='V0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='V'+@N1;
END;
SELECT @N1;
END
END ;
PROCEDURE FOR TBLCORETEAMMEMBER
CREATE PROCEDURE PROCORETEAMMEMBER
46
FROM
@OPERATION VARCHAR(20)='SELECT',
@ID
VARCHAR
(20)=NULL,
@PERSONID VARCHAR
(50)=NULL,
@NAME
(50)=NULL,
VARCHAR
@DESIGNATION
VARCHAR
(50)=NULL,
@DEPARTMENT
VARCHAR
(50)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT
@N1
=ISNULL((SELECT
TBLEMPANELMENTMBERSHIP ),0);
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='V00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='V0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='V'+@N1;
END;
SELECT @N1;
END
END ;
PROCEDURE FOR TBLCORETEAMMEMBER
47
FROM
VARCHAR
(20)=NULL,
@PERSONID VARCHAR
(50)=NULL,
@NAME
(50)=NULL,
VARCHAR
@DESIGNATION
VARCHAR
(50)=NULL,
@DEPARTMENT
VARCHAR
(50)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N
TBLCORETEAMMEMBER
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
),0);
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='C00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='C0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='C'+@N;
END;
INSERT INTO TBLCORETEAMMEMBER VALUES(@N,@PERSONID,
@NAME,
@DESIGNATION,
@DEPARTMENT
48
FROM
);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLCORETEAMMEMBER ;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE
TBLCORETEAMMEMBER
SET
PERSONID=@PERSONID,NAME=@NAME,DESIGNATION=@DESIGNATION,DEPARTM
ENT=@DEPARTMENT WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLCORETEAMMEMBER where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1 =ISNULL((SELECT
TBLCORETEAMMEMBER ),0);
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='V00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='V0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='V'+@N1;
49
FROM
END;
SELECT @N1;
END
END ;
@N
=ISNULL((SELECT
SET @N=@N+1;
50
MAX(SUBSTRING(ID,2,3))
FROM
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='H00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='H0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='H'+@N;
END;
INSERT
INTO
TBLHRINSERT
VALUES(@N,@NAME,@EMAILID,@MOBILENO,@COUNTRY,@STATE,@CITY,@CV,@
BUSINEESCARD,@PANCARD,@SERVICETEX,@PAYSLIP,@PAYAMOUNT,@PAYTYPE,
@STATUS);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLHRINSERT;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE
TBLHRINSERT
SET
NAME=@NAME,EMAILID=@EMAILID,MOBILENO=@MOBILENO,COUNTRY=@COU
NTRY,STATE=@STATE,CITY=@CITY,CV=@CV,BUSINEESCARD=@BUSINEESCARD,P
ANCARD=@PANCARD,SERVICETEX=@SERVICETEX,PAYSLIP=@PAYSLIP,PAYAMOU
NT=@PAYAMOUNT,PAYTYPE=@PAYTYPE,STATUS=@STATUS WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLHRINSERT where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
51
@N1
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='H00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='H0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='H'+@N1;
END;
SELECT @N1;
END
END ;
PROCEDURE FOR PROTBLNEWVANDOR
CREATE PROCEDURE TBLNEWVANDOR
@OPERATION VARCHAR(20)='SELECT',
@ID VARCHAR(20)=NULL,
@NAME
VARCHAR(50)=NULL,
@PROJECTCODE VARCHAR(50)=NULL,
@PROJECTCATEGORY VARCHAR(50)=NULL,
@PROJECTMANAGER VARCHAR(50)=NULL,
@PROJECTNAME VARCHAR(50)=NULL,
@MOBILE VARCHAR(14)=NULL,
@STARTDATE
DATE=NULL,
@ENDDATE
DATE=NULL,
52
FROM
@PROJECTVALUE VARCHAR(50)=NULL,
@INSTALLMENTDIVIDED VARCHAR(50)=NULL,
@DIVIDEDAMOUNT BIGINT=NULL,
@REMAINGINSTALLMENT VARCHAR(50)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N
TBLNEWVENDOR),0);
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
FROM
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='V00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='V0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='V'+@N;
END;
INSERT
INTO
TBLNEWVENDOR
VALUES(@N,
@NAME,@PROJECTCODE,@PROJECTCATEGORY,@PROJECTMANAGER,@PROJECT
NAME,@MOBILE,@STARTDATE,@ENDDATE,@PROJECTVALUE,
@INSTALLMENTDIVIDED,@DIVIDEDAMOUNT,@REMAINGINSTALLMENT);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLNEWVENDOR;
END
IF(@OPERATION='UPDATE')
53
BEGIN
UPDATE
TBLNEWVENDOR
SET
NAME=@NAME,PROJECTCODE=@PROJECTCODE,PROJECTCATEGORY=@PROJECT
CATEGORY,PROJECTWSMANAGER=@PROJECTMANAGER,PROJECTNAME=@PROJE
CTNAME,MOBILE=@MOBILE,STARTDATE=@STARTDATE,@ENDDATE,PROJECTVAL
UE=@PROJECTVALUE,INSTALLMENTDIVIDED=@INSTALLMENTDIVIDED,DIVIDED
AMOUNT=@DIVIDEDAMOUNT,REMAINGINSTALLMENT=@REMAINGINSTALLMEN
T WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLNEWVENDOR WHERE ID=@ID;
END
IF(@OPERATION='SELECTED')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1
TBLNEWVENDOR),0);
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='V00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='V0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='V'+@N1;
END;
SELECT @N1;
END
END;
54
FROM
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='V00'+@N;
55
FROM
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='V0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='V'+@N;
END;
INSERT
INTO
TBLVENDORPLAN
VALUES(@N,@PROJECTCO,@DELIVERABLE,@ACTIVITY,@ACTIVITYDURATION,@
ACTIVITYSTARTDATE,@ACTIVITYPREDECESSOR,@ACTIVITYCOMPLEMENTEDPE
RCENTAGE,@ALGO,@SNO,@ISGROUP,@PARENTID,@ISOPEN,@SUM,@VENDORNA
ME,@PROJECTCO,@PROJECTMANAGER);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLVENDORPLAN;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE
TBLVENDORPLAN
SET
PROJECTCODE=@PROJECTCO,DELIVERABLE=@DELIVERABLE,ACTIVITY=@ACTI
VITY,ACTIVITYDURATION=@ACTIVITYDURATION,ACTIVITYSTARTDATE=@ACTIV
ITYSTARTDATE,ACTIVITYPREDECESSOR=@ACTIVITYPREDECESSOR,ACTIVITYCO
MPLEMENTEDPERCENTAGE=@ACTIVITYCOMPLEMENTEDPERCENTAGE,ALGO=@
ALGO,SNO=@SNO,ISGROUP=@ISGROUP,PARENTID=@PARENTID,ISOPEN=@ISOPEN
,SUM=@SUM,VENDORNAME=@VENDORNAME,PROJECTCO=@PROJECTCO,PROJEC
TMANAGER=@PROJECTMANAGER WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLVENDORPLAN where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
56
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
FROM
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='V00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='V0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='V'+@N1;
END;
SELECT @N1;
END
END ;
PROCEDURE FOR PROPOLICYCATEGORY
CREATE PROCEDURE PROPOLICYCATEGORY
@OPERATION VARCHAR(20)='SELECT',
@ID VARCHAR(20)=NULL,
@CATEGORYNAME VARCHAR(50)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N
TBLVENDORPLAN),0);
=ISNULL((SELECT
57
MAX(SUBSTRING(ID,2,3))
FROM
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='P00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='P0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='P'+@N;
END;
INSERT INTO TBLPOLICYCATEGORY VALUES(@N,@CATEGORYNAME);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLPOLICYCATEGORY;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE TBLPOLICYCATEGORY SET CATEGORYNAME=@CATEGORYNAME
WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLPOLICYCATEGORY where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1
TBLPOLICYCATEGORY),0);
=ISNULL((SELECT
58
MAX(SUBSTRING(ID,2,3))
FROM
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='P00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='P0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='P'+@N1;
END;
SELECT @N1;
END
END ;
PROCEDURE FOR TBLPOLICYMAKER
CREATE PROCEDURE PROPOLICYMAKER
@OPERATION VARCHAR(20)='SELECT',
@ID VARCHAR(20)=NULL,
@CATEGORYNAME VARCHAR(50)=NULL,
@TITLE VARCHAR(100)=NULL,
@DOCUMENT VARCHAR(100)=NULL,
@DATE DATE=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N
TBLPOLICYMAKER),0);
=ISNULL((SELECT
59
MAX(SUBSTRING(ID,2,3))
FROM
SET @N=@N+1;
IF (LEN(CAST(@N AS VARCHAR(4)))=1)
BEGIN
SET @N='P00'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=2)
BEGIN
SET @N='P0'+@N;
END;
IF (LEN(CAST(@N AS VARCHAR(4)))=3)
BEGIN
SET @N='P'+@N;
END;
INSERT
INTO
TBLPOLICYMAKER
VALUES(@N,@CATEGORYNAME,@TITLE,@DOCUMENT,@DATE);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLPOLICYMAKER;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE
TBLPOLICYMAKER
SET
CATEGORYNAME=@CATEGORYNAME,DOCUMENT=@DOCUMENT,DATE=@DATE
WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLPOLICYMAKER where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
60
SELECT @N1
TBLPOLICYMAKER),0);
=ISNULL((SELECT
MAX(SUBSTRING(ID,2,3))
SET @N1=@N1+1;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=1)
BEGIN
SET @N1='P00'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=2)
BEGIN
SET @N1='P0'+@N1;
END;
IF (LEN(CAST(@N1 AS VARCHAR(4)))=3)
BEGIN
SET @N1='P'+@N1;
END;
SELECT @N1;
END
END ;
61
FROM
Home Page
62
About Jaipur
Map of Jaipur
63
Hotels info
64
66
67
Administrator Login
68
69
Hotels Details
70
Restaurants Info
71
Om Restaurant
72
73
Menu Card
74
Tourist Spots
76
77
78
BIBLIOGRAPHY
79
BOOKS
Authors Name
Herbert Scheldt
Steven Holzner
Title
Publisher
Year of Publication
30th Reprint 2006
Complete Reference
TATA McGRAW
HILL
JAVA SCRIPTING
Programming with
TATA McGRAW
Nineteenth Reprint
HILL
2004
Programming Black
Book (New Edition)
E Balaguruswamy
Edition)
WEBSITES
www.tatamcgrahill.com
www.balagurusamy.com
www.olx.com
www.justdual.com
www.google.com
www.w3schools.com
www.dotnetspider.com
www.javascipt.com
80