report (repaired)gg.doc
TRANSCRIPT
CHAPTER1
MEERUT INSTITUTE OF ENGG. & TECHNOLOGY, MEERUT
DEPARTMENT OF MCA
PROJECT REPORT
AS A PARTIAL REQUIREMENT
FOR THE DEGREE OF
MASTER OF COMPUTER APPLICATION
(M.C.A)
YEAR: 2014-15
MANAGE GROUP OF HOTELS
GUIDED BY:
SUBMITTED BY:
Ms. Nidhi Sharma
Manisha Chaudhary
1306814928
Date: 21/05/15 TO WHOMSOEVER IT MAY CONCERN PROJECT COMPLETION CERTIFICATE
This is to certify that Mr./Ms. Manisha Chaudhary, bearing Internship ID: 763486, a final year student from MIET, Meerut has completed the project titled Project Readiness Program - Infrastructure Management at Gr. Noida under the guidance of Talent Transformation Team of WIPRO Limited from 1/27/2015 to 4/13/2015.
This is to enable the student to the requirement towards the award of degree as per the rules and regulations of the university.
We wish the student all the very best.
FOR WIPRO TECHNOLOGIES,
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.Manisha Chaudhary
1306814928
TABLE OF CONTENTS
CHAPTER 1 (Introduction)
1.1. Introduction 1
1.2. Objective/Vision............................................................................................ 1
1.3. Background. 2
1.4. Current System 3
1.5. Proposed System 3
CHAPTER 2 .........................................................
2.1. Methodology................................................................................................ 4
3.2. Feasibility Study........................................................................................... 4-5
3.3. Architecture.................................................................................................. 6
CHAPTER 3(System Design and Analysis)
3.1.Hardware Requirements................................................................................ 8
3.2. Software Requirements.. 8
3.3. PERT Chart.. 9
3.5 Data flow Diagrams 14-20
3.6. Entity Relationship Diagram... 21-22
3.7. Forms and Modules 23-24
3.8. Description of Modules.. 25
CHAPTER 4 (Platform/Technology)
4.1. Introduction to Jsp 26
4.2. Benefits for Developers.. 26-27
4.3. Design of database.. 28-29
4.4. Schematic design for database 30-32
CHAPTER5 (Testing)
5.1. Levels of Testing. 33-35
CHAPTER 6 (Results and Conclusions)
6.1. Limitations 36
6.2. Future scope of improvement 36
6.3. Conclusions 37
APPENDIX A (Sample Forms)..............................................................................
APPENDIX B (Program Code)..............................................................................
REFERENCES.......................................................................................................
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
How this project contributes to the organizational objectives?
The high society people are the principal beneficiaries from the solution as they do not need to visit a website and search for lavishing hotels of jaipur.They can simply switch to this website and can avail the facilities of these royal hotels and restaurants. The system has not only increased customers access to various services but has also helped reduce the time and costs involved by creating a single window for these services. The customers further benefit through access to pertinent information. This adds to the value proposition of the system especially for people who are located far away from these restaurants. The system has also made these hotels and restaurants more approachable to the people.
1.4 CURRENT SYSTEM
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.
1.5 PROPOSED SYSTEM
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.
2.2 FEASIBILITY STUDYA feasibility study is conducted to select the best system that meets performance requirement. This entails an identification description, an evaluation of candidate system and the selection of best system for the job. The system required performance is defined by a statement of constraints, the identification of specific system objective and a description of outputs.
The key consideration in feasibility analysis is:
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 resources and expertise
The proposed system uses JSP as front-end and SQL SERVER 2000 or 2005 as back-end 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 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.
Improved information, better management and collection of the reports.
User support.
User involvement in the building of present system is sought to keep in mind the user specific requirement and needs.
Faster and systematic processing of user application approval, allocation of IDs, transactions, etc. used had greater chances of error due to wrong information entered by mistake.
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.
2.3 ARCHITECTURECLIENT -SERVER ARCHITECTUREWe 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.
CHAPTER 3
SYSTEM ANALYSIS AND DESIGN3.1 Hardware Requirements:
Minimum: 1.6 GHz CPU, 384 MB RAM, 5400 RPM hard disk
Recommended: 2.2 GHz or higher CPU, 1024 MB or more RAM, 7200 RPM or higher hard disk
3.2 Software Requirements: O. S. /PlatformMicrosoft Windows XP or higher
IDE
NetBeans Server
Glassfish 4.0
Back End
SQL Front End
JSP(Java Server Pages)PERT ChartThe 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. 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.
A PERT chart may have multiple pages with many sub-tasks.
3.5 DATA FLOW DIAGRAMSCONTEXT LEVEL DFD
1-LEVEL DFD
I-LEVEL DFD
I-LEVEL DFD
I-LEVEL DFD
I-LEVEL DFD
ENTITY-RELATIONSHIP DIAGRAM
3.6 FORMS AND MODULES
3.9 Description of Modules
1) Jaipur:Historical information about Jaipur has been provided.
The website has been lavished with the dynamic map of Jaipur.2) Hotel:
The hotel module has been completed that includes online reservation of rooms in hotels along with providing information about various hotels.
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. .
CHAPTER4PLATFORM (TECHNOLOGY)
JAVA SERVER PAGES
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, information-rich, 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.Benefits for Developers:-If you are a Web page developer or designer who is familiar with HTML, you can:
* 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.
CHAPTER5TESTING
5.1 Levels of TestingIn order to uncover the errors present in different phases, we have the concept of levels of testing. The basic levels of testing are Client Needs
Acceptance TestingRequirements
System TestingDesign
Integration TestingCode
Unit TestingUnit 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.
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.
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.CHAPTER6RESULTS AND CONCLUSIONSThis section discuses the result of the work done in this project And also mentions the future scope for improvement.
6.1 LimitationsSince, 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.6.2 Future Scope of Improvement
Since this system has been generated by using Java Server programming, there are many chances of reusability of the codes in other environment even in different platforms. Also its present features can be enhanced by some simple modification in the codes so as to reuse it in the changing scenario.
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.6.3 ConclusionsSince 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.
The main advantages of the automation of a hotel are:
The automation will reduce the manual work.
It will reduce the burden of managing the room & customer details.
The account management and billing will be easier with automation.
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.
TABLESTable 1: LoginFIELDTYPEDESCRIPTION
IDVARCHARPRIMARY KEY
PASSWORDVARCHAR
PERMISSIONVARCHAR
FAVQUESTIONVARCHAR
ANSWERVARCHAR
Table 2: CUSTOMER
FIELDTYPEDESCRIPTION
CMPIDVARCHARPRIMARY KEY
NAMEVARCHAR
EMAILIDVARCHAR
MOBILENOINT
DATEOFBIRTHDATE
GENDERVARCHAR
COUNTRYVARCHAR
STATEVARCHAR
CITYVARCHAR
STREETVARCHAR
ADDRESSVARCHAR
DATEOFCHECKINDATE
STATUSVARCHAR
Table 3: ALLOTEMENT OF ROOM
FIELDTYPEDESCRIPTION
IDVARCHARPRIMARY KEY
NAMEVARCHAR
EMAILIDVARCHAR
MOBILENOINT
DATEOFBIRTHDATE
GENDERVARCHAR
COUNTRYVARCHAR
STATEVARCHAR
CITYVARCHAR
STREETVARCHAR
ADDRESSVARCHAR
CURRENT ROOMVARCHAR
Table 4: CUSTOMERMembership
FIELDTYPEDESCRIPTION
IDVARCHARPRIMARY KEY
MEMBERSHIPIDVARCHAR
FEEVARCHAR
STARTDATEDATE
ENDDATEDATE
MEMBERSHIPTYPEVARCHAR
PAYMENTMODEVARCHAR
CHECKNOVARCHAR
CHECKDATEDATE
CHECKAMOUNTBIGINT
STATUSVARCHAR
Table 5: NUMBER OF Member
FIELDTYPEDESCRIPTION
IDVARCHARPRIMARY KEY
PERSONIDVARCHAR
NAMEVARCHAR
DESIGNATIONVARCHAR
DEPARTMENTVARCHAR
Table 27: Advertisement
FIELDTYPEDESCRIPTION
IDVARCHARPRIMARY KEY
COMPANYVARCHAR
IMAGEVARCHAR
URLVARCHAR
AMOUNTBIGINT
DATE FROM DATE
DATE TO DATE
Table 28: Feedback
FIELDTYPEDESCRIPTION
IDVARCHARPRIMARY KEY
FEEDBACKVARCHAR
NAMEVARCHAR
MOBILEVARCHAR
MAIL IDVARCHAR
Table 29: ContactUs
FIELDTYPEDESCRIPTION
IDVARCHARPRIMARY KEY
NAMEVARCHAR
MOBILEVARCHAR
MAIL IDVARCHAR
MESSAGEVARCHAR
Table 30 : Query
FIELDTYPEDESCRIPTION
QUERYIDVARCHARPRIMARY KEY
NAMEVARCHAR
MOBILEVARCHAR
MAIL IDVARCHAR
QUERYVARCHAR
STATUSVARCHAR
DATABASE PROCEDURES
PROCEDURE FOR PROLOGIN
CREATE PROCEDURE PROLOGIN
@OPERATION VARCHAR(20)='SELECT',
@ID VARCHAR(20)=NULL,
@PASSWORD VARCHAR(20)=NULL,
@PERMISSION VARCHAR(50)=NULL,
@FAVQUESTION VARCHAR(200)=NULL,
@ANSWER VARCHAR(200)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLLOGIN),0);
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;
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=@FAVQUESTION,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 @N1 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLLOGIN),0);
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
SET @N1='L'+@N1;
END;
SELECT @N1;
END
END ;
PROCEDURE FOR TBLEMPLOYEE
CREATE PROCEDURE PROEMPLOYEE
@OPERATION VARCHAR(20)='SELECT' ,
@EMPIDVARCHAR(20)=NULL,
@NAMEVARCHAR(20)=NULL,
@EMAILIDVARCHAR(20)=NULL,
@MOBILENOINT=NULL,
@DATEOFBIRTHDATE=NULL,
@GENDERVARCHAR(20)=NULL,
@COUNTRYVARCHAR(20)=NULL,
@STATEVARCHAR(20)=NULL,
@CITYVARCHAR(20)=NULL,
@STREETVARCHAR(20)=NULL,
@ADDRESSVARCHAR(20)=NULL,
@DATEOFJIONDATE=NULL,
@STATUSVARCHAR(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)
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=@CITY,STREET=@STREET,ADDRESS=@ADDRESS,DATEOFJION=@DATEOFJION,STATUS=@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 ;
PROCEDURE FOR PROTBLEMPLOYEMENTCREATE PROCEDURE PROTBLEMPLOYEMENT
@OPERATION VARCHAR(20)='SELECT',
@IDVARCHAR(20)=NULL,
@NAMEVARCHAR(50)=NULL,
@EMAILIDVARCHAR(50)=NULL,
@MOBILENOINT=NULL,
@DATEOFBIRTHDATE=NULL,
@GENDERVARCHAR(10)=NULL,
@COUNTRYVARCHAR(50)=NULL,
@STATEVARCHAR(50)=NULL,
@CITYVARCHAR(50)=NULL,
@STREETVARCHAR(50)=NULL,
@ADDRESSVARCHAR(100)=NULL,
@CURRENTORGANIZATIONVARCHAR(100)=NULL,
@ADDRESSOFORGANIZATIONVARCHAR(150)=NULL,
@CURRENTDESIGNATIONVARCHAR(200)=NULL,
@ACADEMICQUALIFICATIONVARCHAR(200)=NULL,
@PROFESSIONALQUALIFICATIONVARCHAR(200)=NULL,
@MEMBERSHIPINSTITUTENAMEVARCHAR(200)=NULL,
@BESTQUALIFICATIONEXPERIENCEVARCHAR(200)=NULL,
@STATUSVARCHAR(100)=NULL,
@RESUMEDOCVARCHAR(500)=NULL,
@EDUCATIONALCERTIFICATEDOCVARCHAR(500)=NULL,
@RELIEVINGEXPERIENCECERTIFICATESDOCVARCHAR(200)=NULL,
@FACTORYAUDITCONDUCTEDDOCVARCHAR(200)=NULL,
@PANCOPYDOCVARCHAR(50)=NULL,
@ADDRESSPROFFDOCVARCHAR(100)=NULL,
@PASSPORTCOPYDOCVARCHAR(100)=NULL,
@PHOTOIDENTITYDOCVARCHAR(50)=NULL,
@MEMBERSHIPOLDCARDDOCVARCHAR(100)=NULL,
@MEMBERSHIPCARDOFOTHERPROFESSIONBODYDOCVARCHAR(100)=NULL,
@PASSWORDVARCHAR(20)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLEMPLOYEMENT),0);
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,@COUNTRY,@STATE,@CITY,@STREET,@ADDRESS,@CURRENTORGANIZATION,@ADDRESSOFORGANIZATION,@CURRENTDESIGNATION,@ACADEMICQUALIFICATION,@PROFESSIONALQUALIFICATION,@MEMBERSHIPINSTITUTENAME,@BESTQUALIFICATIONEXPERIENCE,@STATUS,@RESUMEDOC,@EDUCATIONALCERTIFICATEDOC,@RELIEVINGEXPERIENCECERTIFICATESDOC,@FACTORYAUDITCONDUCTEDDOC,@PANCOPYDOC,@ADDRESSPROFFDOC,@PASSPORTCOPYDOC,@PHOTOIDENTITYDOC,@MEMBERSHIPOLDCARDDOC,@MEMBERSHIPCARDOFOTHERPROFESSIONBODYDOC,@PASSWORD);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLEMPLOYEMENT;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE TBLEMPLOYEMENT SET NAME=@NAME,EMAILID=@EMAILID,MOBILENO=@MOBILENO,DATEOFBIRTH=@DATEOFBIRTH,GENDER=@GENDER,COUNTRY=@COUNTRY,STATE=@STATE,CITY=@CITY,STREET=@STREET,ADDRESS=@ADDRESS,CURRENTORGANIZATION=@CURRENTORGANIZATION,ADDRESSOFORGANIZATION=@ADDRESSOFORGANIZATION,CURRENTDESIGNATION=@CURRENTDESIGNATION,ACADEMICQUALIFICATION=@ACADEMICQUALIFICATION,PROFESSIONALQUALIFICATION=@PROFESSIONALQUALIFICATION,MEMBERSHIPINSTITUTENAME=@MEMBERSHIPINSTITUTENAME,BESTQUALIFICATIONEXPERIENCE=@BESTQUALIFICATIONEXPERIENCE,STATUS=@STATUS,RESUMEDOC=@RESUMEDOC,EDUCATIONALCERTIFICATEDOC=@EDUCATIONALCERTIFICATEDOC,RELIEVINGEXPERIENCECERTIFICATESDOC=@RELIEVINGEXPERIENCECERTIFICATESDOC,FACTORYAUDITCONDUCTEDDOC=@FACTORYAUDITCONDUCTEDDOC,PANCOPYDOC=@PANCOPYDOC,ADDRESSPROFFDOC=@ADDRESSPROFFDOC,PASSPORTCOPYDOC=@PASSPORTCOPYDOC,PHOTOIDENTITYDOC=@PHOTOIDENTITYDOC,MEMBERSHIPOLDCARDDOC=@MEMBERSHIPOLDCARDDOC,MEMBERSHIPCARDOFOTHERPROFESSIONBODYDOC=@MEMBERSHIPCARDOFOTHERPROFESSIONBODYDOC,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 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLEMPLOYEMENT),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;
PROCEDURE FOR TBLEMPANELMENTMBERSHIP
CREATE PROCEDURE PROEMPANELMENTMBERSHIP
@OPERATION VARCHAR(20)='SELECT',
@IDVARCHAR(50)=NULL,
@MEMBERSHIPIDVARCHAR(50)=NULL,
@FEEVARCHAR(50)=NULL,
@STARTDATEDATE=NULL,
@ENDDATEDATE=NULL,
@MEMBERSHIPTYPEVARCHAR(20)=NULL,
@PAYMENTMODEVARCHAR(50)=NULL,
@CHECKNOVARCHAR(20)=NULL,
@CHECKDATEDATE=NULL,
@CHECKAMOUNTBIGINT=NULL,
@STATUSVARCHAR(300)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLEMPANELMENTMBERSHIP
),0);
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 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,ENDDATE=@ENDDATE,MEMBERSHIPTYPE=@MEMBERSHIPTYPE,PAYMENTMODE=@PAYMENTMODE,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 MAX(SUBSTRING(ID,2,3)) FROM TBLEMPANELMENTMBERSHIP ),0);
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
@OPERATION VARCHAR(20)='SELECT',
@IDVARCHAR(20)=NULL,
@PERSONIDVARCHAR(50)=NULL,
@NAMEVARCHAR(50)=NULL,
@DESIGNATIONVARCHAR(50)=NULL,
@DEPARTMENTVARCHAR(50)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N1 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLEMPANELMENTMBERSHIP ),0);
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
@OPERATION VARCHAR(20)='SELECT',
@IDVARCHAR(20)=NULL,
@PERSONIDVARCHAR(50)=NULL,
@NAMEVARCHAR(50)=NULL,
@DESIGNATIONVARCHAR(50)=NULL,
@DEPARTMENTVARCHAR(50)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLCORETEAMMEMBER
),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
);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLCORETEAMMEMBER ;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE TBLCORETEAMMEMBER SET PERSONID=@PERSONID,NAME=@NAME,DESIGNATION=@DESIGNATION,DEPARTMENT=@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 MAX(SUBSTRING(ID,2,3)) FROM TBLCORETEAMMEMBER ),0);
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 PROHRINSERT
CREATE PROCEDURE PROHRINSERT
@OPERATION VARCHAR(20)='SELECT',
@ID VARCHAR(20)=NULL,
@NAME VARCHAR(100)=NULL,
@EMAILID VARCHAR(100)=NULL,
@MOBILENO INT=NULL,
@COUNTRY VARCHAR(50)=NULL,
@STATE VARCHAR(50)=NULL,
@CITY VARCHAR(20)=NULL,
@CV VARCHAR(500)=NULL,
@BUSINEESCARD VARCHAR(50)=NULL,
@PANCARD VARCHAR(50)=NULL,
@SERVICETEX VARCHAR(20)=NULL,
@PAYSLIP VARCHAR(100)=NULL,
@PAYAMOUNT BIGINT=NULL,
@PAYTYPE VARCHAR(20)=NULL,
@STATUS VARCHAR(20)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLHRINSERT),0);
SET @N=@N+1;
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=@COUNTRY,STATE=@STATE,CITY=@CITY,CV=@CV,BUSINEESCARD=@BUSINEESCARD,PANCARD=@PANCARD,SERVICETEX=@SERVICETEX,PAYSLIP=@PAYSLIP,PAYAMOUNT=@PAYAMOUNT,PAYTYPE=@PAYTYPE,STATUS=@STATUS WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLHRINSERT where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLHRINSERT),0);
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',
@IDVARCHAR(20)=NULL,
@NAMEVARCHAR(50)=NULL,
@PROJECTCODEVARCHAR(50)=NULL,
@PROJECTCATEGORY VARCHAR(50)=NULL,
@PROJECTMANAGER VARCHAR(50)=NULL,
@PROJECTNAME VARCHAR(50)=NULL,
@MOBILEVARCHAR(14)=NULL,
@STARTDATEDATE=NULL,
@ENDDATEDATE=NULL,
@PROJECTVALUEVARCHAR(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 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLNEWVENDOR),0);
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,@PROJECTNAME,@MOBILE,@STARTDATE,@ENDDATE,@PROJECTVALUE,@INSTALLMENTDIVIDED,@DIVIDEDAMOUNT,@REMAINGINSTALLMENT);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLNEWVENDOR;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE TBLNEWVENDOR SET NAME=@NAME,PROJECTCODE=@PROJECTCODE,PROJECTCATEGORY=@PROJECTCATEGORY,PROJECTWSMANAGER=@PROJECTMANAGER,PROJECTNAME=@PROJECTNAME,MOBILE=@MOBILE,STARTDATE=@STARTDATE,@ENDDATE,PROJECTVALUE=@PROJECTVALUE,INSTALLMENTDIVIDED=@INSTALLMENTDIVIDED,DIVIDEDAMOUNT=@DIVIDEDAMOUNT,REMAINGINSTALLMENT=@REMAINGINSTALLMENT 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 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLNEWVENDOR),0);
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 PROVENDORPLAN
ALTER PROCEDURE PROVENDORPLAN
@OPERATION VARCHAR(20)='SELECT',
@ID VARCHAR(20)=NULL,
@PROJECTCODE VARCHAR(50)=NULL,
@DELIVERABLE VARCHAR(50)=NULL,
@ACTIVITY VARCHAR(50)=NULL,
@ACTIVITYDURATION VARCHAR(20)=NULL,
@ACTIVITYSTARTDATE DATE=NULL,
@ACTIVITYPREDECESSOR VARCHAR(100)=NULL,
@ACTIVITYCOMPLEMENTEDPERCENTAGE VARCHAR(20)=NULL,
@ALGO VARCHAR(100)=NULL,
@SNO VARCHAR(30)=NULL,
@ISGROUP VARCHAR(30)=NULL,
@PARENTID VARCHAR(30)=NULL,
@ISOPEN VARCHAR(50)=NULL,
@SUM VARCHAR(50)=NULL,
@VENDORNAME VARCHAR(50)=NULL,
@PROJECTCO VARCHAR(100)=NULL,
@PROJECTMANAGER VARCHAR(50)=NULL
AS
BEGIN
IF(@OPERATION ='INSERT')
BEGIN
DECLARE @N VARCHAR(4);
SELECT @N =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLVENDORPLAN),0);
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 TBLVENDORPLAN VALUES(@N,@PROJECTCO,@DELIVERABLE,@ACTIVITY,@ACTIVITYDURATION,@ACTIVITYSTARTDATE,@ACTIVITYPREDECESSOR,@ACTIVITYCOMPLEMENTEDPERCENTAGE,@ALGO,@SNO,@ISGROUP,@PARENTID,@ISOPEN,@SUM,@VENDORNAME,@PROJECTCO,@PROJECTMANAGER);
END
IF(@OPERATION='SELECT')
BEGIN
SELECT * FROM TBLVENDORPLAN;
END
IF(@OPERATION='UPDATE')
BEGIN
UPDATE TBLVENDORPLAN SET PROJECTCODE=@PROJECTCO,DELIVERABLE=@DELIVERABLE,ACTIVITY=@ACTIVITY,ACTIVITYDURATION=@ACTIVITYDURATION,ACTIVITYSTARTDATE=@ACTIVITYSTARTDATE,ACTIVITYPREDECESSOR=@ACTIVITYPREDECESSOR,ACTIVITYCOMPLEMENTEDPERCENTAGE=@ACTIVITYCOMPLEMENTEDPERCENTAGE,ALGO=@ALGO,SNO=@SNO,ISGROUP=@ISGROUP,PARENTID=@PARENTID,ISOPEN=@ISOPEN,SUM=@SUM,VENDORNAME=@VENDORNAME,PROJECTCO=@PROJECTCO,PROJECTMANAGER=@PROJECTMANAGER WHERE ID=@ID;
END
IF(@OPERATION='DELETE')
BEGIN
DELETE FROM TBLVENDORPLAN where ID=@ID;
END
IF(@OPERATION ='SELECTID')
BEGIN
DECLARE @N1 VARCHAR(4);
SELECT @N1 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLVENDORPLAN),0);
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 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLVENDORPLAN),0);
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 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLPOLICYCATEGORY),0);
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 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLPOLICYMAKER),0);
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);
SELECT @N1 =ISNULL((SELECT MAX(SUBSTRING(ID,2,3)) FROM TBLPOLICYMAKER),0);
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 ;
Home Page SHAPE \* MERGEFORMAT
About Jaipur
Map of Jaipur
Hotels info SHAPE \* MERGEFORMAT
Hotel Reservation form SHAPE \* MERGEFORMAT
SHAPE \* MERGEFORMAT
Administrator Login
Hotels Details
Restaurants Info
Om Restaurant
Form for Table Booking
Menu Card
Form for Home Delivery of Food
Tourist Spots
BIBLIOGRAPHY
BOOKSAuthors NameTitlePublisherYear of Publication
Herbert ScheldtComplete Reference java (Fifth Edition) TATA McGRAW HILL30th Reprint 2006
Steven HolznerJAVA SCRIPTING Programming Black Book (New Edition)Dream Tech PressReprint Edition 2008
E BalaguruswamyProgramming with JAVA Prime (2nd Edition)TATA McGRAW HILLNineteenth Reprint 2004
WEBSITES www.tatamcgrahill.com www.balagurusamy.com www.olx.com www.justdual.com www.google.com www.w3schools.com www.dotnetspider.com www.javascipt.com2
_1337518754.ppt
customer
Displaymenu
Placesorder
Selectitems
Filldetails
Displayform
file
process
Update table
Order placement for food
_1337518890.ppt
Readorder
Check forthe quantity
Computebill
Checkprices
Application
customer
file
Bill generation
display
_1337518979.ppt
CUSTOMER
HOTEL
Restaurant
provides
facilities
OnlineReservation of room
name
location
name
Phone no.
address
e-mail
Makesbooking
provides
name
location
facilities
Order placement
Tablebooking
_1337519605.ppt
Home
Jaipur
Hotels
Login
Restaurants
TouristSpots
Reserve Room
Orderplacement
Tablebooking
_1337518812.ppt
customer
View restaurant
Get details
Displayform
update
Booktable
file
process
Update table
Booking table in a restaurant
_1337518616.ppt
customer
View hotels
Get details
Displayform
update
Assign room
file
process
Update table
Reservation of room in Hotel
_1337518709.ppt
Admin
Ask forpassword
login
confirmspassword
logout
data
file
Login of the Admin
password
access
_1337518566.ppt
Manage Group Of Hotels
room
Food order
Allocation Details
Customer
Order
login
reserves
places
Booking Details
Order details
Login details
booking
Booking status
data
access
Customer Information