8/4/2019 Project Report on Project Tracker Annd Expenses
1/112
COMPANY PROFILE:
Corporate Overview
Over the past twenty years, remarkable growth, diversification & competitive business
environment has required businesses of all sizes to continuously change their IT & business
process footprint. Intelgain Technologies recognized this need and envisioned a company built
on the simple idea of offering affordable, software product development, customized consulting,
implementation and training services to assist these companies in improving the efficiencies of
their systems and integration with their internal IT infrastructure. We understand advanced IT
technologies and have the agility-ability to understand and complement business requirements
and we offer integrated, multidisciplinary approaches to address complex, real-world problems.
The Four Intelgain Technologies Values
Human Values, Integrity, Innovative Solutions and value for money are encapsulated in
our promise to the customer and in our identity. These values shape our thinking, our behavior,
our culture and how we come across to our customers, partners and to the world at large.
Who we are?
Intelgain Technologies, a technology Services Company with over hundreds of person-
hours of IT experience, we have pioneered the offshore delivery model. Combining extensive
capabilities in technology with deep domain expertise, we deliver seamless solutions that bring
tangible business values to leading organizations around the world.
Intelgain understands the complex, interrelated, cross-platform, and global nature of many
critical business systems, processes, and computing environments. Furthermore, we know that
each clients computing requirements are different, and will vary over time. Therefore, we
provide a variety of cross-functional services, functions, methodologies and processes to ensure
high levels of service delivery quality.
Our philosophy is based on our commitment to:
Combine expert technical knowledge and skills with practical experience to
Page | 1
8/4/2019 Project Report on Project Tracker Annd Expenses
2/112
address technology and business needs. Keep up with the latest developments in IT
technology and market conditions with a determined focus to complement
technological needs of business world. Provide innovative & flexible strategies rather than simple canned and recycled
approaches.
Perform cutting-edge consulting, providing our clients with access to state-of-the-
art methods.
Offers professional excellence, integrity & Client services.
Our vision is to provide our customers with exceptional service every time. To continually adapt
to the changing needs of our customers, by being on the leading edge of technology. To provide
quality products at competitive prices and contribute to the business success of our clients
Page | 2
8/4/2019 Project Report on Project Tracker Annd Expenses
3/112
INTRODUCTION
1.1 OVERVIEW
1.1.1 PROJECT UNDERTAKEN
Project Tracker and Expenses
1.1.2 IMPORTANCE OF THE WORK/PROJECT
Project Tracker and Expenses is the site for on-line work where businesses connect with
independent professionals to get work done. It delivers an immediate, cost-effective and flexible
way to hire, manage and pay independent professionals. The Consultants provides a standardized
way to post requirements for companies and receive proposals, hire, manage, and pay for results,
and also enables tracking progress and providing feedback.
Developer -------- Consultants ---------- Company
Project Tracker and Expenses is a hiring place for Companies and Developers. In this aspect, wehelp Developers to apply for the Companies. The Companies can post their requirements through
our site. In this project the Consultants made links with various Companies and Developers. If
there is a requirement for any Company then that requirement is posted to the Developers by the
Consultants and the interested Developers can submit their proposal for the requirement. When
the Developer is hired the Company gave the salary to the Consultants and the Consultants after
Page | 3
8/4/2019 Project Report on Project Tracker Annd Expenses
4/112
deducting their charges pay to the Developers. All the track of the developers is kept by the
Consultants like how many hours he worked, how many days he was absent all that.
1.1.3 OBJECTIVE
Project Tracker and Expenses helps the Companies to get rid of the tensions of keeping the
track of Developers. All this is done by the Consultants. Also the Developers not need to
worry about searching the desired job. He only have to upload the resume and the
Consultants will fiind the appropriate jobs for the Developers. So this project provides ease
of track and well managed system.
1.1.4 FORM FUNCTIONS
To provide & maintain unique login-id & password to every user & admin.
To enter the basic detail of the new developer and Company who is applying online.
Each user is facilitated to edit and save his/her account.
To keep the details of the user.
The user is provided the form to add his weekly record.
1.1.5 PERFORMANCE REQUIREMENTS
1.1.5.1 RELIABILITY
It is the ability of a system or component to perform its required functions under stated
conditions for a specified period of time. Each time whenever user does any fault while entering
data then related error message opens which help the user to understand the mistake & make it
better.
1.1.5.2 SECURITY
Security is an important aspect in any software. In order to access various panel in the page, user
& admin has to enter its own unique login & password. Now each type of user is able to access
the various panel of page under his own limits.
Page | 4
8/4/2019 Project Report on Project Tracker Annd Expenses
5/112
Certain security features like:
Password: with this only authorized user have access to the project.
Login facility: Incorporate login facility so that the page is available to onlyauthorized user.
1.1.5.3 VALIDATION
Different validation checks have been applied at various stages of the web page details. If user
enters invalid data then a pop message will appear.
Page | 5
8/4/2019 Project Report on Project Tracker Annd Expenses
6/112
SYSTEM REQUIREMENT SPECIFICATIONS
User Requirements
Since end users are the ones who are finally going to use the system, their requirements need to
be identified. This involves questioning the end users what their expectations were. The main
requirement of the end user is that the system should be easy to use and take less time. In
addition to these another important factor was to eliminate the need for database conversion and
migration that had to be carried out presently. After conducting interviews with the users a
document called the software requirement specification was created. This is the most important
document that forms the basis for system development. It should be consistent, complete,
unambiguous, traceable and inter-related.
This document has the following components.
Functional Requirements: The functional requirements specify relationship between
the inputs and outputs. All the operations to be performed on the input data to obtain
output are to be specified. This includes specifying the validity checks on the input andoutput data, parameters affected by the operations and the other operations, which must
be used to transform the inputs into outputs. Functional requirements specify the
behavior of the system for valid input and outputs.
Performance Requirements
This section includes performance of the product that are set by user interaction and studying the
existing system of the organization. These are stated in complete measurable terms, so that they
can be verified during system evaluation phase. Some of the performance requirements are stated
below.
User Friendly: the system produced is user friendly, understandable and easy to use
so that the users of the system can easily learn to use the system. For this the system is
made menu-driven with well-documented programs.
Page | 6
8/4/2019 Project Report on Project Tracker Annd Expenses
7/112
Time Element (response and processing time): the response time of the system is
very less and takes less time to execute queries and triggers.
Maximum Throughput: the system gives maximum throughput with relevant output
Robustness: the system will be able to handle undesirable situations and errors
encountered at various levels e.g. if the user supplies invalid input for processing, the
system gracefully halts, displaying a message to the user indicating the cause of the error
and prompting him it enter the correct input.
Flexibility: the system is flexible in nature so that likely changes and alterations can
easily be made.
Information Security: records in the system must be safe, confidential and must be
prevented from unauthorized access.
Moral and User Satisfaction: system will be able to satisfy the user requirements;
this is the main and conspicuous measure of the system performance. Also the system
must raise the moral of the user. The higher the moral, greater the expected work
performance level.
External Interfaces and Data Flow
This heading specifies the externally observable characteristics of the software product. Several
graphical tools are used to express the requirements of a system rather than writing long lines of
text. These are very effective tools for use during the system analysis phase.
User Displays: these are extremely useful tools for interactive applications where fast response
is needed. The user displays consist of screens that help in designing a menu driven system. The
menus attached to the screens help in making a system interactive and user friendly by providing
an easy to use point and click interface to the application. These menus consist of a list of
options from which the user can choose an action depending on the task to be performed. So
these forms or so called user displays is the key to the success of the entire system.
Page | 7
8/4/2019 Project Report on Project Tracker Annd Expenses
8/112
Development, Operation and Maintenance Environments
Development Environment
Having constant interaction with the users as well as management aids in the system
development. The logical user suggestions sure certainly welcomed and considered.
There is a multi-user environment in the organization. For the development of new
system mysql, rdbms package, tomcat server for server side programming will be used
and Microsoft front page, java server pages and java script for client side programming
and will be used to provide GUI to system.
Operating Environment
The input data required are obtained from the documents, which contains all the details of
the transactions. After validation and relevant processing, the data is to be stored in the
database. The user selects the desired database table on after which the query is
formulated. The query is generated by filtering the database based on the user defined
conditions and constraints. The formulated query is executed on the database to obtain
the required information.
Maintenance Environment
The proper maintenance of the new system is very important for its smooth working. The
maintenance of the software is to be done by the system analyst and programmers in the
organization. But for hardware maintenance engineer may be called from where hardware
was purchased.
User Characteristics
The users of the new system will be the users of the website of the organization. The system is
developed with the participation of users, which will help them to understand the system easily.
Sources of Information
Primary sources of the information involve direct interaction with the employees of the
organization working in the development department.
Page | 8
8/4/2019 Project Report on Project Tracker Annd Expenses
9/112
The various techniques used for collecting information are:
Interviews: interviews are the main source of gathering data and to get
acquainted with the existing system. Almost all the information about the present system
was gathered with the help of interviews. The questions are pre-planned and asked
according to the designation of the users.
Observations: Observations were personally made of what data is desired and
how it is to be graphically represented or in a tabular manner and how it is to be saved.
The observation of crucial information, data flows and functioning of the entire system
was made carefully. This helped to obtain the additional knowledge about the system and
to view the system more deeply. So all the aspects of the existing system are thoroughly
observed which includes how people perform their tasks, noting the things that they do,
how they do it and how much time they take. The records being manipulated and their
frequency of updating and flow of documentation and important business transactions are
also observed. Observations were personally made of how data can be possibly queried
and represented by the user.
Objectives of the Proposed System
The development of the proposed system is done keeping in view the problems in the existing
system. The proposed system will not only overcome the limitations of the present system but
will also provide the following characteristics.
To reduce the paper work involved in managing the information regarding different
softwares.
To reduce the time constraint that is just wasted because of manual work.
To centralize all the data regarding softwares at one place.
To maintain all steps involved from purchasing the software from its provider to make it
available to the clients.
To generate various reports required by the administrator regarding softwares
Page | 9
8/4/2019 Project Report on Project Tracker Annd Expenses
10/112
System Outline view
After firming the requirements of the system, the summary chart or data flow diagram (DFD) of
the proposed system is prepared. This gives the brief of the system with respect to the inputs
being considered, the outputs reports, the data being transformed and the main processed
involved in the system.
The Inputs required for this system are:
Login
Software Information
Software final Cost Information
Softwares manual and tutorial information
Reports Information The Outputs required for this system:
Effective Maintenance of Softwares
Software Cost Maintenance
Software manual and tutorial Maintenance
Calculation of final profit or loss.
Reports.
Page | 10
8/4/2019 Project Report on Project Tracker Annd Expenses
11/112
Page | 11
8/4/2019 Project Report on Project Tracker Annd Expenses
12/112
SYSTEM ANALYSIS
Detailed Study of the Existing System
This phase provides the overall requirement for the system what is to be done. Input for this
phase is the information collected through several data collecting schemes such as survey, cross-
questioning-answering etc and the raw data obtained which is not properly ordered and not in the
precise manner. So here this raw data is converted into useful information written in precise
manner and thus output is a formal document. After collecting all the information and
requirements, they were verified from the concerned persons by presenting a diagrammatic
version of the proposed system. The points missing were added to the system specifications for
the desired system. So this final document provides the system requirement specifications for the
desired system. It helps in reducing the total development cost and also establishes the various
points for validation and verification.
Existing System Details and Problems
It was difficult to get the comprehensive information about any software for the client.
Moreover it was a time consuming affair.
It was difficult to solve the problems those were arising during interfacing to the client so
that they remain updated about the latest versions of the softwares currently available.
Moreover there are updates issues concerned with the details of the softwares to the
clients. It was required to check for the updates on a regular basis. This issue has been
resolved by the SSM by providing automatic updates facility to its clients.
This system will also provide tutorials and manuals concerned with all softwares, which
will be very helpful to the clients for getting knowledge about any particular software.
Page | 12
8/4/2019 Project Report on Project Tracker Annd Expenses
13/112
SYSTEM FEASIBILITY STUDY
A feasibility study is a test of a system proposal according to its workability impact on
organization, ability to meet user needs and effective use of resources. The objective of a
feasibility study is not to solve a problem but to acquire a sense of its scope. During the study,
the problem definition is crystallized and the aspects of the problem to be included in the system
are determined. After the initial investigation of the system that helped to have in-depth study of
the existing system, understanding its strength and weaknesses and the requirements for the new
proposed system.
Feasibility study was done in three phases documented below.
a)Behavioral feasibility: People are inherently resistant to change and computers have been
known to facilitate change. There is always some reluctance among the users against the
introduction of new system but they were told that this system would eliminate the
unnecessary overhead of database migration and conversion, which presently had to be
carried out on daily basis to facilitate transactions between the different departments. The
objective this feasibility phase is to take the operational staff into confidence. As the
success of a good system depends upon the willingness of the operating staff, they were
taken into full confidence that the new proposed system would make their jobs easier,
relieve them from the unnecessary overheads and reduce the possibility of errors creeping
into the system.
b) Economic feasibility: Economic feasibility is the most frequently used method for
evaluating the effectiveness of the candidate system. More commonly known as
cost\benefit analysis, the procedure is to determine the benefits and savings that are
expected from a candidate system and compare them with the costs. If benefits outweigh
the costs, then the decision is made to design and implement the system. A cost\benefit
analysis was done for the proposed system to evaluate whether it would be b
economically viable or not. The organization has in store many machines with high
Page | 13
8/4/2019 Project Report on Project Tracker Annd Expenses
14/112
processing power necessary to implement the system. Also the organization has
necessary software i.e.tomcat5.0, j2ee1.4, mysql or hardware to support the system.
Considering the programmer time and the negligible hardware/software cost required fordeveloping the system, it was found that the benefits in terms of reduced overhead as a
result of elimination of the requirement of database migration and conversion was more
than the cost.
c) Technical feasibility: Technical feasibility centers on the existing computer system.
(Hardware/software) and to what extent it can support the proposed addition also
the organization already has sufficient high-end machines to serve the processing
requirements of the proposed system. So there is no need to purchase new
software as the organization has necessary software i.e.tomcat5.0, j2ee1.4, mysql
or hardware to support the proposed system. Having gone through the steps of the
overall analysis and feasibility study the next step was to carry out a detailed
system analysis. The project analysis phase was conducted to learn about the
proposed system, to study the problems and finally select a system that would take
care of the problems identified in the working of the present system.
Page | 14
8/4/2019 Project Report on Project Tracker Annd Expenses
15/112
HARDWARE AND SOFTWARE USED
Software Specification
Software Requirements:
JDK1.6
o Netbeans 6.0
Database
o MySQL 5.0
Web Server
o Tomcat 6.0
Testing Tool
o JUnit 4.1
Deployment Tool
o Ant
Operating System
o Windows Vista/XP
Hardware Requirements:
Intel P4 processor with minimum 2.0Ghz Speed
RAM: Minimum 512MB
Hard Disk: Minimum 20GB
Page | 15
8/4/2019 Project Report on Project Tracker Annd Expenses
16/112
DESIGN WITH SYSTEM FLOWCHARTS AND INPUT/OUTPUT
DESIGN
Software Maintenance
Page | 16
8/4/2019 Project Report on Project Tracker Annd Expenses
17/112
Page | 17
8/4/2019 Project Report on Project Tracker Annd Expenses
18/112
Page | 18
8/4/2019 Project Report on Project Tracker Annd Expenses
19/112
Page | 19
8/4/2019 Project Report on Project Tracker Annd Expenses
20/112
Page | 20
8/4/2019 Project Report on Project Tracker Annd Expenses
21/112
Page | 21
8/4/2019 Project Report on Project Tracker Annd Expenses
22/112
Page | 22
8/4/2019 Project Report on Project Tracker Annd Expenses
23/112
IMPLEMENTATION AND TESTING
1. Implementation Issues
Implementation phase of the software development is concerned with translating the design
specifications into the source code. After the system has been designed, arrives the stage of
putting it into actual usage known as the implementation of the system. This involves putting up
of actual practical usage of the theoretically designed system. The primary goal of
implementation is to write the source code and the internal documentation so that conformance
of the code to its specifications can easily be verified and so the debugging, modifications and
testing are eased. This goal can be achieved by making the source code as clear and as
straightforward as possible. Simplicity, Elegance and Clarity are the hallmarks of good programs
whereas complexity are indications of inadequate design and misdirected thinking. The system
implementation is a fairly complex and expensive task requiring numerous inter-dependent
activities. It involves the effort of a number of groups of people: user and the programmers and
the computer operating staff etc. This needs a proper planning to carry out the task successfully.
Thus it involves the following activities:
Writing and testing of programs individually
Testing the system as a whole using the live data
Training and Education of the users and supervisory staff
Source code clarity is enhance buy using structured coding techniques, by efficient coding style,
by appropriate supporting documents, by efficient internal comments and by features provided in
the modern programming language.
The following are the structured coding techniques:
1) Single Entry, Single Exit
2) Data Encapsulation
3) Using recursion for appropriate problems
Page | 23
8/4/2019 Project Report on Project Tracker Annd Expenses
24/112
2. Testing
The most important activity at the implementation stage is the system testing with the
objective of validating the system against the designed criteria. During the development cycle,
user was involved in all the phases that are analysis, design and coding. After each phase the user
was asked whether he was satisfied with the output and the desired rectification was done at the
moment. During coding, generally bottom up technique is used. Firstly the lower level modules
are coded and then they are integrated together. Thus before implementation, it involves the
testing of the system. The testing phase involves testing first of separate parts of the system and
then finally of the system as a whole. Each independent module is tested first and then the
complete system is tested. This is the most important phase of the system development. The user
carries out this testing and test data is also prepared by the user to check for all possible
combinations of correct data as well as the wrong data that is trapped by the system. So the
testing phase consists of the following steps:
Unit testing:
In the bottom of coding technique, each module is tested individually. Firstly the module
is tested with some test data that covers all the possible paths and then the actual data was
fed to check for results.
Integration testing:
After all the modules are ready and duly tested, these have to be integrated into the
application. This integrated application was again tested first with the test data and then
with the actual data.
Parallel testing:
The third in the series of tests before handling over the system to the user is the parallel
processing of the old and the new system. At this stage, complete and thorough testing is
done and supports out the event that goes wrong. This provides the better practical
support to the persons using the system for the first time who may be uncertain or even
nervous using it.
Page | 24
8/4/2019 Project Report on Project Tracker Annd Expenses
25/112
The testing will be performed considering the following points:
1) Clerical procedure for collection and disposal of results
2) Flow of data within the organization
3) Accuracy of report output
4) Software testing which involves testing of all the programs together. This involves the testing
of system software utilities being used and specifically develops application software.
5) Incomplete data formats
6) Halts due to various reasons and the restart procedures.
7) Range of items and incorrect formats
8) Invalid combination of data records.
9) Access control mechanism used to prevent unauthorized access to the system.
Page | 25
8/4/2019 Project Report on Project Tracker Annd Expenses
26/112
MAINTENANCE
Maintenance plays an important role in the life cycle of a software product. It is estimated that
there are more than 100 billion lines of code in production in the world. As much as 80% of it is
unstructured, patched and not well documented. Maintenance can alleviate these problems. This
paper describes the nature of software maintenance, why it is included in software development
and how its carried out. It discusses the role of maintenance played in iterative, agile,
component-based and open source development models.
The system maintenance means continuous modification and updating of the system to meet the
requirements of the users. It is certainly cheaper than developing a new system. Technical
documentation plays an important role in the system maintenance.
Software Maintainance covers a wide range of activities, including correcting, coding and design
errors, updating documentation and test data and upgrading user support. It is the process of
changing the system to maintain its ability to survive. The system design can adopt any of the
under given system maintenance strategies.
Project Tracker and Expenses System is maintainable. As I have provided all the needed
Documentation, Data Flow Diagrams, Database Design and comments.
Page | 26
8/4/2019 Project Report on Project Tracker Annd Expenses
27/112
SCREENSHOTS OF PROJECT WITH CODING PART
JSP Page
function isEmpty(formName,fieldName,alertText){
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
Page | 27
8/4/2019 Project Report on Project Tracker Annd Expenses
28/112
}
function isValidate()
{
var userEmpty=document.forms("Login")("txtUserName").value;
var passEmpty=document.forms("Login")("txtPassword").value;
if((userEmpty=="")||(passEmpty==""))
{
alert("UserName or password can't be left empty");
return false;
}
else
{
return true;
}
}
Home
Services
About Us
Contact Us
Downloads
Softwares
Forums
Page | 28
8/4/2019 Project Report on Project Tracker Annd Expenses
29/112
Blogs
Login
User Name and Password do not match
User Name
Password
Forgot Password?
Page | 29
8/4/2019 Project Report on Project Tracker Annd Expenses
30/112
JSP Page
Home
Page | 30
8/4/2019 Project Report on Project Tracker Annd Expenses
31/112
View Personal Information
Edit Personal Information
Time Entry Maintenance
Expense Entry Maintenance
Time Report
Expense Report
Logout
Page | 31
8/4/2019 Project Report on Project Tracker Annd Expenses
32/112
JSP Page
View Personal Information
Consultant ID
Page | 32
8/4/2019 Project Report on Project Tracker Annd Expenses
33/112
First Name
Middle Name
Last Name
Date of Birth
Phone
Address1
Address2
Country
Page | 33
8/4/2019 Project Report on Project Tracker Annd Expenses
34/112
State
City
Zip Code
Page | 34
8/4/2019 Project Report on Project Tracker Annd Expenses
35/112
JSP Page
var calendarWindow = null;
var calendarColors = new Array();
calendarColors['bgColor'] = '#BDC5D0';
calendarColors['borderColor'] = '#333366';
Page | 35
8/4/2019 Project Report on Project Tracker Annd Expenses
36/112
calendarColors['headerBgColor'] = '#143464';
calendarColors['headerColor'] = '#FFFFFF';
calendarColors['dateBgColor'] = '#8493A8';
calendarColors['dateColor'] = '#004080';
calendarColors['dateHoverBgColor'] = '#FFFFFF';
calendarColors['dateHoverColor'] = '#8493A8';
var calendarMonths = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
'October', 'November', 'December');
var calendarWeekdays = new Array('S', 'M', 'T', 'W', 'T', 'F', 'S', 'S');
var calendarUseToday = true;
var calendarFormat = 'y/m/d';
var calendarStartMonday = true;
var calendarScreenX = 100; // either 'auto' or numeric
var calendarScreenY = 100; // either 'auto' or numeric
// }}}
// {{{ getCalendar()
function getCalendar(in_dateField)
{
if (calendarWindow && !calendarWindow.closed) {
alert('Calendar window already open. Attempting focus...');
try {
calendarWindow.focus();
}
catch(e) {}
return false;
}
var cal_width = 415;
var cal_height = 310;
// IE needs less space to make this thing
if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) {
cal_width = 410;
Page | 36
8/4/2019 Project Report on Project Tracker Annd Expenses
37/112
}
calendarTarget = in_dateField;
calendarWindow = window.open('calendar.html',
'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,depen
dent=no,width='+cal_width+',height='+cal_height + (calendarScreenX != 'auto' ? ',screenX=' + calendarScreenX : '')
+ (calendarScreenY != 'auto' ? ',screenY=' + calendarScreenY : ''));
return false;
}
// }}}
// {{{ killCalendar()
function killCalendar()
{
if (calendarWindow && !calendarWindow.closed) {
calendarWindow.close();
}
}
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate(){
var firstName=document.forms("foo")("txtFirstName").value;
var middleName=document.forms("foo")("txtMiddle").value;
var lastName=document.forms("foo")("txtLast").value;
var phone=document.forms("foo")("txtPhone").value;
var email=document.forms("foo")("txtEmail").value;
Page | 37
8/4/2019 Project Report on Project Tracker Annd Expenses
38/112
var address1=document.forms("foo")("txtAddress1").value;
var address2=document.forms("foo")("txtAddress2").value;
var zipCode=document.forms("foo")("txtZipCode").value;
var DOB=document.forms("foo")("txtDOB").value;
if((firstName=="")||(middleName=="")||(lastName=="")||(phone=="")||(email=="")||(address1=="")||
(address2=="")||(zipCode=="")||(DOB==""))
{
alert("No field can be left empty");
return false;
}
else
{
return true;
}
}
var xmlHttp=null;
function getContent()
{
xmlHttp=getXmlHttpObject();
if(xmlHttp==null)
{
alert("Browser does not support Ajax");
return;
}
xmlHttp.onreadystatechange=getOutput;
var id=document.getElementById("pulldownCountry").value;
xmlHttp.open("GET","CountryServlet?id="+id ,true);
xmlHttp.send(null);
}
function getXmlHttpObject()
Page | 38
8/4/2019 Project Report on Project Tracker Annd Expenses
39/112
{
if(window.XMLHttpRequest)
{
return new XMLHttpRequest();
}
if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XmlHttp");
}
}
function getOutput()
{
if(xmlHttp.readyState==4)
{
document.getElementById("state").innerHTML=xmlHttp.responseText;
}
}
var xmlHttp1=null;
function getContent1()
{
xmlHttp1=getXmlHttpObject();
if(xmlHttp1==null)
{
alert("Browser does not support Ajax");
return;
}
xmlHttp1.onreadystatechange=getOutput1;
var id1=document.getElementById("pulldownState").value;
xmlHttp1.open("GET","CountryServlet?id1="+id1 ,true);
xmlHttp1.send(null);
}
Page | 39
8/4/2019 Project Report on Project Tracker Annd Expenses
40/112
function getOutput1()
{
if(xmlHttp1.readyState==4)
{
document.getElementById("city").innerHTML=xmlHttp1.responseText;
}
}
8/4/2019 Project Report on Project Tracker Annd Expenses
41/112
String stateName= service.getStateName(id1);
String cityName= service.getCityName(id2);
sbean.setStateID(id1);
cbean.setCityID(id2);
sbean.setStateName(stateName);
cbean.setCityName(cityName);
%>
Edit Personal Information
Consultant ID
First Name
Middle Name
Last Name
Date of Birth
Page | 41
8/4/2019 Project Report on Project Tracker Annd Expenses
42/112
Phone
Address1
Address2
Country
8/4/2019 Project Report on Project Tracker Annd Expenses
43/112
else{ %>
State
City
Zip Code
Page | 43
8/4/2019 Project Report on Project Tracker Annd Expenses
44/112
8/4/2019 Project Report on Project Tracker Annd Expenses
45/112
%>
JSP Page
var xmlHttp=null;
function getContent()
{
xmlHttp=xmlHttpObject();
if(xmlHttp==null)
{
alert("Browser does not support Ajax");
return;
}
xmlHttp.onreadystatechange=getOutput;
var status=document.getElementById("pulldownStatus").value;
xmlHttp.open("GET","TimeStatusServlet?status="+status,true);
xmlHttp.send(null);
}function xmlHttpObject()
{
if(window.XMLHttpRequest)
{
return new XMLHttpRequest;
}
Page | 45
8/4/2019 Project Report on Project Tracker Annd Expenses
46/112
if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.xmlHttp");
}
}
function getOutput()
{
if(xmlHttp.readyState==4)
{
document.getElementById("status").innerHTML=xmlHttp.responseText;
}
}
Time Entry Maintenance
Add
Consultant ID
Consultant Name
Page | 46
8/4/2019 Project Report on Project Tracker Annd Expenses
47/112
Status
Sr. No.
Period Start Date
Period End Date
Billable Hour
Status
Links
8/4/2019 Project Report on Project Tracker Annd Expenses
48/112
Edit/
View/
Details
Page | 48
8/4/2019 Project Report on Project Tracker Annd Expenses
49/112
JSP Page
var calendarWindow = null;
var calendarColors = new Array();
calendarColors['bgColor'] = '#BDC5D0';
calendarColors['borderColor'] = '#333366';
calendarColors['headerBgColor'] = '#143464';
Page | 49
8/4/2019 Project Report on Project Tracker Annd Expenses
50/112
calendarColors['headerColor'] = '#FFFFFF';
calendarColors['dateBgColor'] = '#8493A8';
calendarColors['dateColor'] = '#004080';
calendarColors['dateHoverBgColor'] = '#FFFFFF';
calendarColors['dateHoverColor'] = '#8493A8';
var calendarMonths = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
'October', 'November', 'December');
var calendarWeekdays = new Array('S', 'M', 'T', 'W', 'T', 'F', 'S', 'S');
var calendarUseToday = true;
var calendarFormat = 'y/m/d';
var calendarStartMonday = true;
var calendarScreenX = 100; // either 'auto' or numeric
var calendarScreenY = 100; // either 'auto' or numeric
// }}}
// {{{ getCalendar()
function getCalendar(in_dateField)
{
if (calendarWindow && !calendarWindow.closed) {
alert('Calendar window already open. Attempting focus...');
try {
calendarWindow.focus();
}
catch(e) {}
return false;
}
var cal_width = 415;var cal_height = 310;
// IE needs less space to make this thing
if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) {
cal_width = 410;
}
Page | 50
8/4/2019 Project Report on Project Tracker Annd Expenses
51/112
calendarTarget = in_dateField;
calendarWindow = window.open('calendar.html',
'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,depen
dent=no,width='+cal_width+',height='+cal_height + (calendarScreenX != 'auto' ? ',screenX=' + calendarScreenX : '')
+ (calendarScreenY != 'auto' ? ',screenY=' + calendarScreenY : ''));
return false;
}
// }}}
// {{{ killCalendar()
function killCalendar()
{
if (calendarWindow && !calendarWindow.closed) {
calendarWindow.close();
}
}
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate()
{var totalHours=document.forms("foo")("txtTotalHours").value;
var billableHours=document.forms("foo")("txtBillableHours").value;
var periodStartDate=document.forms("foo")("txtPeriodStartDate").value;
var periodEndDate=document.forms("foo")("txtPeriodEndDate").value;
if((totalHours=="")||(billableHours=="")||(periodStartDate=="")||(periodEndDate==""))
{
Page | 51
8/4/2019 Project Report on Project Tracker Annd Expenses
52/112
alert("No field can be left empty");
return false;
}
else
{
return true;
}
}
Page | 55
8/4/2019 Project Report on Project Tracker Annd Expenses
56/112
JSP Page
var calendarWindow = null;
var calendarColors = new Array();
calendarColors['bgColor'] = '#BDC5D0';
calendarColors['borderColor'] = '#333366';
calendarColors['headerBgColor'] = '#143464';
calendarColors['headerColor'] = '#FFFFFF';
calendarColors['dateBgColor'] = '#8493A8';
calendarColors['dateColor'] = '#004080';
calendarColors['dateHoverBgColor'] = '#FFFFFF';
calendarColors['dateHoverColor'] = '#8493A8';
var calendarMonths = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
'October', 'November', 'December');var calendarWeekdays = new Array('S', 'M', 'T', 'W', 'T', 'F', 'S', 'S');
var calendarUseToday = true;
var calendarFormat = 'y/m/d';
var calendarStartMonday = true;
var calendarScreenX = 100; // either 'auto' or numeric
var calendarScreenY = 100; // either 'auto' or numeric
Page | 56
8/4/2019 Project Report on Project Tracker Annd Expenses
57/112
// }}}
// {{{ getCalendar()
function getCalendar(in_dateField)
{
if (calendarWindow && !calendarWindow.closed) {
alert('Calendar window already open. Attempting focus...');
try {
calendarWindow.focus();
}
catch(e) {}
return false;
}
var cal_width = 415;
var cal_height = 310;
// IE needs less space to make this thing
if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) {
cal_width = 410;
}
calendarTarget = in_dateField;
calendarWindow = window.open('calendar.html',
'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,depen
dent=no,width='+cal_width+',height='+cal_height + (calendarScreenX != 'auto' ? ',screenX=' + calendarScreenX : '')
+ (calendarScreenY != 'auto' ? ',screenY=' + calendarScreenY : ''));
return false;
}
// }}}
// {{{ killCalendar()
Page | 57
8/4/2019 Project Report on Project Tracker Annd Expenses
58/112
function killCalendar()
{
if (calendarWindow && !calendarWindow.closed) {
calendarWindow.close();
}
}
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate()
{
var totalExpense=document.forms("foo")("txtTotalExpense").value;
var reimbursableExpense=document.forms("foo")("txtReimbursableExpense").value;
var periodStartDate=document.forms("foo")("txtPeriodStartDate").value;
var periodEndDate=document.forms("foo")("txtPeriodEndDate").value;
if((totalExpense=="")||(reimbursableExpense=="")||(periodStartDate=="")||(periodEndDate==""))
{
alert("No field can be left empty");
return false;
}
else
{
return true;}
}
Page | 58
8/4/2019 Project Report on Project Tracker Annd Expenses
59/112
Edit Time Entry
Consultant ID
Page | 59
8/4/2019 Project Report on Project Tracker Annd Expenses
60/112
Consultant Name
Manager Name
Project Title
Page | 60
8/4/2019 Project Report on Project Tracker Annd Expenses
61/112
Company Name
Period Start Date
Period End Date
Total Hours
Billable Hours
Page | 61
8/4/2019 Project Report on Project Tracker Annd Expenses
62/112
Status
Page | 62
8/4/2019 Project Report on Project Tracker Annd Expenses
63/112
JSP Page
8/4/2019 Project Report on Project Tracker Annd Expenses
64/112
timebean=service.getTimeRecord(Integer.parseInt(timeID));
int managerID=timebean.getManagerID();
int projectID=timebean.getProjectID();
int companyID=timebean.getCompanyID();
String managerName=service.getManagerName(managerID);
String projectTitle=service.getProjectTitle(projectID);
String companyName=service.getCompanyName(companyID);
%>
View Time Entry
Consultant ID
Consultant Name
Manager Name
Project Title
Page | 64
8/4/2019 Project Report on Project Tracker Annd Expenses
65/112
Company Name
Period Start Date
Period End Date
Total Hours
Billable Hours
Status
Page | 65
8/4/2019 Project Report on Project Tracker Annd Expenses
66/112
8/4/2019 Project Report on Project Tracker Annd Expenses
67/112
String userName=String.valueOf(session.getAttribute("userName"));
String timeID=request.getParameter("timeID");
Service service=new Service();
TimeBeans timebean=new TimeBeans();
timebean=service.getTimeRecord(Integer.parseInt(timeID));
String startDate=String.valueOf(timebean.getPrdStartDate());
String endDate=String.valueOf(timebean.getPrdEndDate());
startDate=startDate.replaceAll("-", "/");
endDate=endDate.replaceAll("-", "/");
int startday=Integer.parseInt(startDate.substring(8, 10));
int endday=Integer.parseInt(endDate.substring(8,10));
System.out.println("Days :"+startday);
int days=endday-startday;
String managerName=service.getManagerName(timebean.getManagerID());
String projectTitle=service.getProjectTitle(timebean.getProjectID());
List list=(List)service.viewTimeDetail(startDate,endDate, Integer.parseInt(uid));
%>
JSP Page
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate()
{
var projectID=document.forms("foo")("txtProjectID").value;
var companyID=document.forms("foo")("txtCompanyID").value;
Page | 67
8/4/2019 Project Report on Project Tracker Annd Expenses
68/112
var consultantID=document.forms("foo")("txtConsultantID").value;
var startTime=document.forms("foo")("txtStartTime").value;
var endTime=document.forms("foo")("txtEndTime").value;
var hours=document.forms("foo")("txtHours").value;
var description=document.forms("foo")("txtDescription").value;
var approvedHours=document.forms("foo")("txtApprovedHours").value;
if((projectID=="")||(companyID=="")||(consultantID=="")||(startTime=="")||(endTime=="")||(hours=="")||
(description=="")||(approvedHours==""))
{
alert("No field cannot be left empty");
return false;
}
else
{
return true;
}
}
Consultant ID and Name
Page | 68
8/4/2019 Project Report on Project Tracker Annd Expenses
69/112
Manager ID and Name
Project ID and Title
Prd. Start Date & Prd. End Date
Sr. No.
Update
Date
Project ID
Company ID
Consultant ID
Start Time
End Time
Hours
Description
Approved Hours
0)
{
for(int i=0;i
8/4/2019 Project Report on Project Tracker Annd Expenses
70/112
int date1=Integer.parseInt(date)+i;
String dateStart=startDate.replaceAll(date,String.valueOf(date1));
%>
8/4/2019 Project Report on Project Tracker Annd Expenses
71/112
String date=startDate.substring(8,10);
int date1=Integer.parseInt(date)+i;
String dateStart=startDate.replaceAll(date,String.valueOf(date1));
%>
Page | 71
8/4/2019 Project Report on Project Tracker Annd Expenses
72/112
Page | 72
8/4/2019 Project Report on Project Tracker Annd Expenses
73/112
JSP Page
var xmlHttp=null;
function getContent()
{
xmlHttp=xmlHttpObject();
if(xmlHttp==null)
{
alert("Browser does not support Ajax");
return;
}
xmlHttp.onreadystatechange=getOutput;
var status=document.getElementById("pulldownStatus").value;
xmlHttp.open("GET","ExpenseStatusServlet?status="+status,true);
xmlHttp.send(null);}
function xmlHttpObject()
{
if(window.XMLHttpRequest)
{
return new XMLHttpRequest;
Page | 73
8/4/2019 Project Report on Project Tracker Annd Expenses
74/112
}
if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.xmlHttp");
}
}
function getOutput()
{
if(xmlHttp.readyState==4)
{
document.getElementById("status").innerHTML=xmlHttp.responseText;
}
}
Expense Entry Maintenance
Add
Consultant ID
Page | 74
8/4/2019 Project Report on Project Tracker Annd Expenses
75/112
Consultant Name
Status
Sr. No.
Period Start Date
Period End Date
Total Expenses
Reimbursable Expenses
Status
Links
Edit/
Page | 75
8/4/2019 Project Report on Project Tracker Annd Expenses
76/112
View/
Details
Page | 76
8/4/2019 Project Report on Project Tracker Annd Expenses
77/112
8/4/2019 Project Report on Project Tracker Annd Expenses
78/112
ManagerBeans mbean=new ManagerBeans();
CompanyBeans cbean=new CompanyBeans();
ProjectBeans pbean=new ProjectBeans();
List mlist=(List)service.getManager();
List plist=(List)service.getProject();
List clist=(List)service.getCompany();
List slist=(List)service.getStatus();
String status=exbean.getStatus();
int statusID=service.getStatusID(status);
String startdate=String.valueOf(exbean.getPrdStartDate());
startdate=startdate.replaceAll("-", "/");
String enddate=String.valueOf(exbean.getPrdEndDate());
enddate=enddate.replaceAll("-","/");
%>
JSP Page
var calendarWindow = null;
var calendarColors = new Array();
calendarColors['bgColor'] = '#BDC5D0';
calendarColors['borderColor'] = '#333366';
calendarColors['headerBgColor'] = '#143464';
calendarColors['headerColor'] = '#FFFFFF';
calendarColors['dateBgColor'] = '#8493A8';
calendarColors['dateColor'] = '#004080';
calendarColors['dateHoverBgColor'] = '#FFFFFF';
calendarColors['dateHoverColor'] = '#8493A8';
var calendarMonths = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September','October', 'November', 'December');
var calendarWeekdays = new Array('S', 'M', 'T', 'W', 'T', 'F', 'S', 'S');
var calendarUseToday = true;
var calendarFormat = 'y/m/d';
var calendarStartMonday = true;
var calendarScreenX = 100; // either 'auto' or numeric
Page | 78
8/4/2019 Project Report on Project Tracker Annd Expenses
79/112
var calendarScreenY = 100; // either 'auto' or numeric
// }}}
// {{{ getCalendar()
function getCalendar(in_dateField)
{
if (calendarWindow && !calendarWindow.closed) {
alert('Calendar window already open. Attempting focus...');
try {
calendarWindow.focus();
}
catch(e) {}
return false;
}
var cal_width = 415;
var cal_height = 310;
// IE needs less space to make this thing
if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) {
cal_width = 410;
}
calendarTarget = in_dateField;
calendarWindow = window.open('calendar.html',
'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,depen
dent=no,width='+cal_width+',height='+cal_height + (calendarScreenX != 'auto' ? ',screenX=' + calendarScreenX : '')
+ (calendarScreenY != 'auto' ? ',screenY=' + calendarScreenY : ''));
return false;
}
// }}}
// {{{ killCalendar()
Page | 79
8/4/2019 Project Report on Project Tracker Annd Expenses
80/112
function killCalendar()
{
if (calendarWindow && !calendarWindow.closed) {
calendarWindow.close();
}
}
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate()
{
var totalExpense=document.forms("foo")("txtTotalExpense").value;
var reimbursableExpense=document.forms("foo")("txtReimbursableExpense").value;
var periodStartDate=document.forms("foo")("txtPeriodStartDate").value;
var periodEndDate=document.forms("foo")("txtPeriodEndDate").value;
if((totalExpense=="")||(reimbursableExpense=="")||(periodStartDate=="")||(periodEndDate==""))
{
alert("No field can be left empty");
return false;
}
else
{
return true;}
}
Page | 80
8/4/2019 Project Report on Project Tracker Annd Expenses
81/112
Edit Expense Entry
Consultant ID
Consultant Name
Company Name
Page | 81
8/4/2019 Project Report on Project Tracker Annd Expenses
82/112
Manager Name
Project Title
Period Start Date
Period End Date
Page | 82
8/4/2019 Project Report on Project Tracker Annd Expenses
83/112
Total Expense
Reimbursable Expense
Status
Page | 83
8/4/2019 Project Report on Project Tracker Annd Expenses
84/112
Page | 84
8/4/2019 Project Report on Project Tracker Annd Expenses
85/112
JSP Page
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate()
{
var projectID=document.forms("foo")("txtProjectID").value;
var expenseDate=document.forms("foo")("txtExpenseDate").value;
var expenseType=document.forms("foo")("txtExpenseType").value;
var expense=document.forms("foo")("txtExpense").value;
var description=document.forms("foo")("txtDescription").value;
var approvedHours=document.forms("foo")("txtApprovedHours").value;
if((projectID=="")||(expenseDate=="")||(expenseType=="")||(expense=="")||(description=="")||(approvedHours==""))
{
alert("No field can be left empty");
return false;
}
else
Page | 85
8/4/2019 Project Report on Project Tracker Annd Expenses
86/112
{
return true;
}
}
JSP Page
Page | 86
8/4/2019 Project Report on Project Tracker Annd Expenses
87/112
Consultant ID and Name
Manager ID and Name
Prd. Start Date & Prd. End Date
Sr. No.
Update
Date
Project ID
Expense DateExpense Type
Expense
Description
Approved Hours
8/4/2019 Project Report on Project Tracker Annd Expenses
88/112
System.out.println("size of list is "+list.size());
if(list.size()>0)
{
for(int i=0;i
8/4/2019 Project Report on Project Tracker Annd Expenses
89/112
for(int i=0;i
Page | 89
8/4/2019 Project Report on Project Tracker Annd Expenses
90/112
Page | 90
8/4/2019 Project Report on Project Tracker Annd Expenses
91/112
JSP Page
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate()
{
var projectID=document.forms("foo")("txtProjectID").value;
var expenseDate=document.forms("foo")("txtExpenseDate").value;
var expenseType=document.forms("foo")("txtExpenseType").value;
var expense=document.forms("foo")("txtExpense").value;
var description=document.forms("foo")("txtDescription").value;
var approvedHours=document.forms("foo")("txtApprovedHours").value;
if((projectID=="")||(expenseDate=="")||(expenseType=="")||(expense=="")||(description=="")||
(approvedHours==""))
{
alert("No field can be left empty");
return false;
}
else
{
return true;}
}
Page | 91
8/4/2019 Project Report on Project Tracker Annd Expenses
92/112
JSP Page
Page | 92
8/4/2019 Project Report on Project Tracker Annd Expenses
93/112
Consultant ID and Name
Manager ID and Name
Prd. Start Date & Prd. End Date
Sr. No.
Update
Date
Project ID
Expense Date
Expense Type
Expense
Description
Approved Hours
0){
for(int i=0;i
8/4/2019 Project Report on Project Tracker Annd Expenses
94/112
ExpenseDetailBeans bean=(ExpenseDetailBeans)list.get(i);
%>
8/4/2019 Project Report on Project Tracker Annd Expenses
95/112
Page | 95
8/4/2019 Project Report on Project Tracker Annd Expenses
96/112
8/4/2019 Project Report on Project Tracker Annd Expenses
97/112
java.sql.Date fDate=new java.sql.Date(fmDate.getYear(),fmDate.getMonth(),fmDate.getDate());
int consultantID=Integer.parseInt(request.getParameter("txtConsultantID"));
int projectID=Integer.parseInt(request.getParameter("txtProjectID"));
Service service=new Service();
List list=(List)service.generateTimeReport(consultantID, projectID, fDate, ttDate);
%>
JSP Page
Time Report
Project ID
Date
Start Time
End Time
Hours
8/4/2019 Project Report on Project Tracker Annd Expenses
98/112
8/4/2019 Project Report on Project Tracker Annd Expenses
99/112
Document : TimeReport
Created on : Apr 5, 2011, 9:00:01 PM
Author : IntelGain
--%>
JSP Page
var calendarWindow = null;
var calendarColors = new Array();
calendarColors['bgColor'] = '#BDC5D0';
calendarColors['borderColor'] = '#333366';
calendarColors['headerBgColor'] = '#143464';
calendarColors['headerColor'] = '#FFFFFF';
calendarColors['dateBgColor'] = '#8493A8';
calendarColors['dateColor'] = '#004080';
calendarColors['dateHoverBgColor'] = '#FFFFFF';
calendarColors['dateHoverColor'] = '#8493A8';
var calendarMonths = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September','October', 'November', 'December');
var calendarWeekdays = new Array('S', 'M', 'T', 'W', 'T', 'F', 'S', 'S');
var calendarUseToday = true;
var calendarFormat = 'y/m/d';
var calendarStartMonday = true;
var calendarScreenX = 100; // either 'auto' or numeric
Page | 99
8/4/2019 Project Report on Project Tracker Annd Expenses
100/112
var calendarScreenY = 100; // either 'auto' or numeric
// }}}
// {{{ getCalendar()
function getCalendar(in_dateField)
{
if (calendarWindow && !calendarWindow.closed) {
alert('Calendar window already open. Attempting focus...');
try {
calendarWindow.focus();
}
catch(e) {}
return false;
}
var cal_width = 415;
var cal_height = 310;
// IE needs less space to make this thing
if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) {
cal_width = 410;
}
calendarTarget = in_dateField;
calendarWindow = window.open('calendar.html',
'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,depen
dent=no,width='+cal_width+',height='+cal_height + (calendarScreenX != 'auto' ? ',screenX=' + calendarScreenX : '')
+ (calendarScreenY != 'auto' ? ',screenY=' + calendarScreenY : ''));
return false;
}
// }}}
// {{{ killCalendar()
Page | 100
8/4/2019 Project Report on Project Tracker Annd Expenses
101/112
function killCalendar()
{
if (calendarWindow && !calendarWindow.closed) {
calendarWindow.close();
}
}
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}
function isValidate()
{
var fromDate=document.forms("foo")("txtFromDate").value;
var toDate=document.forms("foo")("txtToDate").value;
var projectID=document.forms("foo")("txtProjectID").value;
if((fromDate=="")||(toDate=="")||(projectID==""))
{
alert("No field can be left empty");
return false;
}
else
{
return true;
}}
Page | 101
8/4/2019 Project Report on Project Tracker Annd Expenses
102/112
Home
Consultant ID
Project ID
From Date
To Date
Page | 102
8/4/2019 Project Report on Project Tracker Annd Expenses
103/112
8/4/2019 Project Report on Project Tracker Annd Expenses
104/112
System.out.println(toDate);
System.out.println(fromDate);
java.util.Date tDate=new java.util.Date(toDate);
java.sql.Date ttDate=new java.sql.Date(tDate.getYear(),tDate.getMonth(),tDate.getDate());
java.util.Date fmDate=new java.util.Date(fromDate);
java.sql.Date fDate=new java.sql.Date(fmDate.getYear(),fmDate.getMonth(),fmDate.getDate());
int consultantID=Integer.parseInt(request.getParameter("txtConsultantID"));
int projectID=Integer.parseInt(request.getParameter("txtProjectID"));
System.out.println(consultantID);
System.out.println(projectID);
ExpenseDetailBeans bean=new ExpenseDetailBeans();
Service service=new Service();
List list=(List)service.generateExpenseReport(consultantID, projectID, fDate, ttDate);
System.out.println("LIST IN EXPENSE");
%>
JSP Page
Expense Report
Project ID
Expense Date
Page | 104
8/4/2019 Project Report on Project Tracker Annd Expenses
105/112
Expense
Approved Hours
Expense Type
Page | 105
8/4/2019 Project Report on Project Tracker Annd Expenses
106/112
JSP Page
var calendarWindow = null;
var calendarColors = new Array();
calendarColors['bgColor'] = '#BDC5D0';
Page | 106
8/4/2019 Project Report on Project Tracker Annd Expenses
107/112
calendarColors['borderColor'] = '#333366';
calendarColors['headerBgColor'] = '#143464';
calendarColors['headerColor'] = '#FFFFFF';
calendarColors['dateBgColor'] = '#8493A8';
calendarColors['dateColor'] = '#004080';
calendarColors['dateHoverBgColor'] = '#FFFFFF';
calendarColors['dateHoverColor'] = '#8493A8';
var calendarMonths = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
'October', 'November', 'December');
var calendarWeekdays = new Array('S', 'M', 'T', 'W', 'T', 'F', 'S', 'S');
var calendarUseToday = true;
var calendarFormat = 'y/m/d';
var calendarStartMonday = true;
var calendarScreenX = 100; // either 'auto' or numeric
var calendarScreenY = 100; // either 'auto' or numeric
// }}}
// {{{ getCalendar()
function getCalendar(in_dateField)
{
if (calendarWindow && !calendarWindow.closed) {
alert('Calendar window already open. Attempting focus...');
try {
calendarWindow.focus();
}
catch(e) {}
return false;
}
var cal_width = 415;
var cal_height = 310;
// IE needs less space to make this thing
if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) {
Page | 107
8/4/2019 Project Report on Project Tracker Annd Expenses
108/112
cal_width = 410;
}
calendarTarget = in_dateField;
calendarWindow = window.open('calendar.html',
'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,depen
dent=no,width='+cal_width+',height='+cal_height + (calendarScreenX != 'auto' ? ',screenX=' + calendarScreenX : '')
+ (calendarScreenY != 'auto' ? ',screenY=' + calendarScreenY : ''));
return false;
}
// }}}
// {{{ killCalendar()
function killCalendar()
{
if (calendarWindow && !calendarWindow.closed) {
calendarWindow.close();
}
}
function isEmpty(formName,fieldName,alertText)
{
var empty=document.forms(formName)(fieldName).value;
if(empty=="")
{
alert(alertText);
}
}function isValidate()
{
var fromDate=document.forms("foo")("txtFromDate").value;
var toDate=document.forms("foo")("txtToDate").value;
var projectID=document.forms("foo")("txtProjectID").value;
if((fromDate=="")||(toDate=="")||(projectID==""))
Page | 108
8/4/2019 Project Report on Project Tracker Annd Expenses
109/112
{
alert("No field can be left empty");
return false;
}
else
{
return true;
}
}
Home
Consultant IDProject ID
From Date
Page | 109
8/4/2019 Project Report on Project Tracker Annd Expenses
110/112
To Date
DTP
FURHTER SCOPE OF PROJECT
In future, it will be very helpful for the developers as well as for the companies. From the
companies perspective, it will reduce the burden of hiring expert professionals, keeping track of
salary statements, working hours. From the professionals perspective, it will give more options
for them to take desired jobs and salaries with regarding to their skills. All the work will be done
by the consultants. This system fulfils the Human Resource Requirement needed by the
Page | 110
8/4/2019 Project Report on Project Tracker Annd Expenses
111/112
companies and provides more employment opportunities for the professionals. It also organizes
and manages the HR requirements more efficiently.
Page | 111
8/4/2019 Project Report on Project Tracker Annd Expenses
112/112
BIBLIOGRAPHY
Books: -
1. The Complete Reference Java 2
Herbert Schildt
Tata McGraw-Hill
2. Begging Java 2
Ivor Horton
SPD
3. Professional Java Programming
Brett Spell
SPD
4. The Complete Reference J2ME
5. JEE5 Tutorial
Websites: -
www.sun.java.com
https://jdic dev java net/