court caase monitoring system

53
COURT CASE MONITORING SYSTEM Page 1 Court Case Monitoring System Haldia Institute of Technology Submitted in partial fulfillment of the requirement for the award of degree in Master of Computer Application (2009-2012) Kuntal Deb(09103010050) Subhamoy Patra(09103010020) Subhasis Nag(09103010021) UNDER THE SUPERVISION OF Mr. Bimal Deb Nath Scientist-B NIC, Vidyut Bhavan , Kolkata

Upload: 94340205

Post on 24-Oct-2014

41 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 1

Court Case Monitoring System

Haldia Institute of Technology

Submitted in partial fulfillment of the requirement for the

award of degree in

Master of Computer Application

(2009-2012)

Kuntal Deb(09103010050)

Subhamoy Patra(09103010020)

Subhasis Nag(09103010021)

UNDER THE SUPERVISION OF

Mr. Bimal Deb Nath

Scientist-B

NIC, Vidyut Bhavan , Kolkata

Page 2: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 2

CERTIFICATE BY THE GUIDE

Court Case Monitoring System

has been carried out by Kuntal Deb, 09/MCA/25; Subhasis Nag,09/MCA/29; Subhamoy

Patra,09/MCA/33. Under my guidance with the kind co-operation and help from NIC during the

academic year 2011-2012. The work has been satisfactorily completed by them and I recommend the

work as being worthy of acceptance for partial fulfillment of the requirement for the degree of Master

of Computer Applications at the Haldia Institute of Technology, Haldia.

_________________________

Mr. Bimal Deb Nath

NIC, Vidyut Bhaban ,Kolkata

Date: ________________

Page 3: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 3

ACKNOWLEDGEMENT

We acknowledge our sincere gratitude to the officials of National Informatics Centre, Kolkata who

have helped a lot to improve our knowledge in the worked project.

We are extremely thankful to our guide Mr. Bimal Deb Nath for his valuable guidance, helping

attitude even in his very busy schedule and utmost desire to help students for research projects. It has

inspired us to come a long way in this direction.

We are thankful to the management of National Informatics Centre, Kolkata for giving us an

opportunity to work and learn. We are thankful to everybody who has helped us a lot in pursuing this

project work in NIC as without their support we couldn‟t have went into the realities.

On the way through, I am thankful to our Head of Department Mr. Sk Shahnawaz, for her ever

inspiring voices showing the steps to success. I am also thankful to Mr. Apratim Mitra and Mr. Sk.

Arif Ahmed for always encouraging me. Without their inspiration my work would have lacked

enthusiasm. I am also grateful to all employees of concerned department related to the project who

felt me worthy enough for such an interesting issue to work on.

Page 4: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 4

1. Introduction-------------------------------------------------------6 1.1 The concept of CCMS--------------------------------------------------------------6 1.2 Objectives-----------------------------------------------------------------------------6

2. Features and Utilities of CCMS--------------------------------7 2.1 Salient Features of the court case module----------------------------------------7

2.2 Utility of the Court Case Module--------------------------------------------------8

3. Software requirements specification--------------------------9 3.1 Introduction-------------------------------------------------------------------------------9

3.1.1 User‟s of the court case module--------------------------------------------------9

3.1.2 Role of the Users-------------------------------------------------------------------9

3.2 Three tier architecture------------------------------------------------------------------10

3.2.1 Components of the architecture-------------------------------------------------10

3.2.2 Model View and Controller concept-------------------------------------------10

3.3 Hardware and software specification-------------------------------------------------14

3.4 Languages used--------------------------------------------------------------------------15

3.5 Database: PostgreSQL 8.4-------------------------------------------------------------16

3.6 Eclipse Java EE ide and JAVA coding-----------------------------------------------18

3.7 JasperReports 3.6.0----------------------------------------------------------------------20

3.8 Interface Requirements------------------------------------------------------------------23

3.9 Software quality attributes--------------------------------------------------------------23

4. Feasibility Study-------------------------------------------------24 4.1 Technical Feasibility-------------------------------------------------------------------24

4.2 Economic Feasibility-------------------------------------------------------------------24

4.3 Operational Feasibility-----------------------------------------------------------------25

5. System design specification---------------------------------- 26 5.1 System analysis------------------------------------------------------------------------26

5.2 System design--------------------------------------------------------------------------26

5.2.1 Court Case Monitoring System Hierarchy-------------------------------------27

5.2.2 Database Design------------------------------------------------------------------28

5.2.3 Usecase Diagram(Admin)--------------------------------------------------------40

5.2. 4 Relationship Block Diagram-----------------------------------------------------41

5.3 Snapshot of the pages------------------------------------------------------------------42

Page 5: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 5

6. Coding------------------------------------------------------------46 6.1 Connection with database------------------------------------------------------------46

6.2 Code for Login page------------------------------------------------------------------47

6.3 Code for Report-----------------------------------------------------------------------48

7. Testing-----------------------------------------------------------49 7.1 Black box testing----------------------------------------------------------------------49

7.2 White box testing----------------------------------------------------------------------49

7.3 Integration and system testing-------------------------------------------------------49

7.3.1 Acceptance testing---------------------------------------------------------------49

7.3.2 Alpha testing--------------------------------------------------------------------- 49

7.3.3 Beta testing----------------------------------------------------------------------- 49

8. Maintenance---------------------------------------------------50

9. Scope for future enhancement-----------------------------51 9.1 Result discussion and conclusion---------------------------------------------------51

9.2 Scope for future enhancement------------------------------------------------------51

10. Conclusion----------------------------------------------------52

11. Bibliography------------------------------------------------- 53

Page 6: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 6

INTRODUCTION

1.1 The concept of CCMS

The Court Cases Monitoring System provides a user-friendly, menu-driven interface to enter data regarding Court Cases as undergoing in different offices including details of court case (original and appeal cases) , Petitioner & Respondent details of the court case, Hearing details. The software provides the facility for Query Retrieval & MIS Report Generation as and when required , so that the Senior Officers may take proper decision at proper time. The System Study of the Application Software has been done and The Software has been developed .

1.2 Objectives

Court Case monitoring system will provide an efficient platform to all the department Under west Bengal govt to maintain there juridical information Consolidated important data (from all departments) will be available in the system. So, current status, lawyer allotment and their fees structure, and other case reports will be available to the Government Departments through the system. All the Departments can assign lawyer by checking their profile biodata. Case updates can be done efficiently instead of manually by keeping information about the case hearing date next probable date for hearing, current status, judgement.

Page 7: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 7

Features and Utilities of

Court Case Monitoring System

2.1 Salient Features of the court case module

Structure of the court case module:

The court case structure mainly contains the following links:

Master: (containing tables to hold the data for a particular case like case_type, current_status )

Transaction:(a case will have only on entry in master but many entry in transaction there will be lots of changing for a case .)

Query & Reports:

Masters report o Case Status o Current Position o District Details o Kind of Receipt o Petitioner Details

Transaction Report o Appointment lawyer Details o Appearance Fee o Conference Fee o Case Details o Case Proceeds o Hearing Details

Administrative(here new user can be added, user can be deleted and modified)

Help (download link, some help about the project.)

Page 8: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 8

2.2 Utility of the Court Case Module

By using this module any Govt. Department can manipulate any information

regarding cases :

Gathering information relevant to case.

We can know about current status of the case.

Can identify the opposition lawyer.

Assign lawyer according his grade.

Maintaining fees to the lawyer.

Maintaining case hearing date through the module by keeping its record.

Can have a look at the cost for maintaining the case.

Page 9: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 9

SOFTWARE REQUIREMENTS

SPECIFICATION

3.1 Introduction

3.1.1 User’s of the court case module

Court case monitoring system is a web application, it can be accessed by everyone in the

Internet. As this is a government‟s website, so there are specific user‟s for which this web application

is build. The user‟s of the portal‟s are:

Administrator

Various departments of Govt.

3.1.2 Role of the Users

The Different users of the portal have different role to play.

Administrator:

Maintenance of the whole system.

Maintaining the new users.

Verification of new users and allow access to them.

Can add or delete the user.

Have the access to all the tables

User:

Can add delete update records to the table that is allowed to him.

View Reports containing the transactions for the case.

Page 10: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 10

3.2 Three-tier Web application architecture The three-tier Web application architecture generally includes the connection of a server-side Java

application to the database through a JDBC connection. In this pattern, Top Link resides within a

Java server (a J2EE server or a custom server), with several possible server integration points .The

three-tier application is a common architecture in which the server session provides clients with

shared access to JDBC connections and a shared object cache. Because it resides on a single JVM,

this architecture is simple and easily scalable.

3.2.1 Components of the architecture

The standard 3-tier architecture consists of application logic in the client, presentation, application

and business logic in a middle tier application server, and data managed by database servers in the

3rd tier.

The application is typically controlled by user interface in the client with substantial application

processing taking place in the middle tier application server. The middle tier code typically drives 3rd

tier data queries, updates, and transactions and implements shared business logic. Data manipulation

performed by the application is typically done on object representations of 3rd tier data fetched

through queries, or through data manipulation APIs or SQL code that operates in the database server.

3.2.2 Model View and Controller concept

The main aim of the MVC architecture is to separate the business logic and application data from the

presentation data to the user

1. Model: The model object knows about all the data that need to be displayed. It is model who is

aware about all the operations that can be applied to transform that object. It only represents the data

of an application. The model represents enterprise data and the business rules that govern access to

and updates of this data. Model is not aware about the presentation data and how that data will be

displayed to the browser.

Page 11: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 11

2. View: The view represents the presentation of the application. The view object refers to the

model. It uses the query methods of the model to obtain the contents and renders it. The view is not

dependent on the application logic. It remains same if there is any modification in the business logic.

In other words, we can say that it is the responsibility of the view's to maintain the consistency in its

presentation when the model changes.

3. Controller: Whenever the user sends a request for something then it always go through the

controller. The controller is responsible for intercepting the requests from view and passes it to the

model for the appropriate action. After the action has been taken on the data, the controller is

responsible for directing the appropriate view to the user. In GUIs, the views and the controllers often

work very closely together.

Page 12: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 12

MVC, 3-tier architecture and Java

1. The client makes a request for a html/JSP (say form.html) page.

2. The Container retrieves the form.html page.

3. The Container returns the page to the browser, where the user answers the questions on form.

4. The browser sends the request data to the container.

Page 13: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 13

1. The Container finds the correct servlet based on the URL, and passes the request to the servlet

2. The servlet calls the proper model class (simple java class) for help.

3. The model class returns an answer, which the servlet adds to the request object.

4. The servlet forwards the request to the JSP.

5. The JSP gets the answer from the request object.

6. The JSP generates a page for the Container.

7. The container returns the page to the user.

Page 14: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 14

3.3 Hardware and software specification

HARDWARE Processor : Pentium IV

RAM : 512 MB

HDD : 40 GB

Monitor : Color Monitor

Printer : DeskJet /Inkjet /Laser

SOFTWARE Front-end

Programming Languages : JSP, HTML, Servlet Web Server : Apache Tomcat 6.0.14 Designing Tool : Macromedia Dreamweaver MX, Photoshop.

Back-end

Database Used : PostgreSQL 8.4

Reporting Tools

Tool Used : iReport 3.6.0

Deployment Platform

Hardware Processor : Quad Processor RAM : 1GB HDD : 160 GB

Software

Front-end Web Server : Apache Tomcat 6.0.14

Back-end Database used : PostgreSQL 8.4

User Environment

Browser : Internet Explorer 5 and higher

Best View : 1024*768

Page 15: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 15

3.4 Languages used

JSP stands for Java Server Pages (JSP) is a technology that helps software Developer create

dynamically generated web pages based on HTML, XML, or other document types. and is developed

by Sun Microsystem in 1999. JSP allows Java code and certain pre-defined actions to be interleaved

with static web markup content, with the resulting page being compiled and executed on the server to

deliver a document. JSP pages use several delimiters for scripting functions. The most basic is <%

... %>, which encloses a JSP scriptlet. A scriptlet is a fragment of Java code that is run when the user

requests the page. Other common delimiters include <%= ... %> for expressions, where the value of

the expression is placed into the page delivered to the user, and directives, denoted with <%@ ... %>.

CASCADING STYLE SHEETS (CSS) is a style sheet language used to describe the presentation of

a document written in a markup language. Its most common application is to style web pages written

in HTML and XHTML, but the language can be applied to any kind of XML document. CSS is used

to help readers of web pages to define colors, fonts, layout, and other aspects of document

presentation. It is designed primarily to enable the separation of document content (written in HTML

or a similar markup language) from document presentation (written in CSS). This separation can

improve content accessibility, provide more flexibility and control in the specification of

presentational characteristics, and reduce complexity and repetition in the structural content. CSS can

allow the same markup page to be presented in different styles.

JAVASCRIPT is a scripting language most often used for client-side web development. It is a

dynamic, weakly typed, prototype-based language with first-class functions. JavaScript was

influenced by many languages and was designed to have a similar look to Java, but be easier for non-

programmers to work with. The language is best known for its use in websites (as client-side

JavaScript), but is also used to enable scripting access to objects embedded in other applications.

Page 16: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 16

3.5 Database: PostgreSQL 8.4

PostgreSQL8.4 is a database management system (DBMS). Its primary query language is Transact-

SQL, an implementation of the ANSI/ISO standard Structured Query Language (SQL).

PostgreSQL8.3 Server is commonly used by businesses for medium to large-sized databases. By the

last five years it has been seen greater adoption of the product for larger enterprise databases because

of:

Performance Consistency

These features improve PostgreSQL's ability to deliver consistent response times

regardless of server load:

HOT: Heap Only Tuple (HOT) dramatically reduces the database maintenance issues associated with

frequently updated data, reducing the need to vacuum and giving substantial throughput

improvements for some applications.

Asynchronous Commit: Allows the ability for COMMIT to return control without waiting for a

physical disk write. This gives better response time at the expense of potentially losing a set amount

of transactions in the event of system failure.

Spread Checkpoints: Checkpoint auto tuning: delays and spreads out checkpoints, reducing the

impact of checkpoints on response times.

Just-in-time background writing strategy: Auto-tuning for the Background Writer estimates how

many buffers it should try to clean based on statistics about recent activity.

Speed Improvements: Many new features significantly improve the speed of specific operations,

including:

Improved Recovery Times : The amount of I/O from the Write Ahead Log at recovery time has

been halved through efficiency improvements.

Circular Buffer in Tuplestore: Dramatically speeds up small merge joins by avoiding the need to

spill to disk.

Faster LIKE/ILIKE comparisons: Improves speed of partial matches, especially with multibyte

encodings.

Top-N Sorting: Dramatically faster searches for results with LIMIT.

Lazy XID Assignment: Allows PostgreSQL to avoid assigning transaction IDs for some read-only

queries, resulting in noticeably faster throughput on read-mostly or read-only databases.

Stored Procedures: Two new features expand the utility of PL/pgSQL, PostgreSQL's most popular

stored procedure language:

Page 17: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 17

Table Function Support: PL/pgSQL, our most popular procedural language, now supports a

simplified syntax for row-returning functions.

Scrollable Cursors in PL/pgSQL: PL/pgSQL now also supports scrollable cursors, allowing

PL/pgSQL procedures to perform complex row manipulations.

Page 18: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 18

3.6 Eclipse Java EE ide and J A V A coding

Some technical benefits of Eclipse IDE include the following:

Graphical user interface (GUI) for performing action

Grouping of source code and configuration files into the concept of a project

Tight integration with the compiler

Coupling with a source code repository

Ability to performance tune, analyze, and load test code

Integration with reusable test frameworks

Capability to utilize third-party plugins and tools

Ability to debug code by executing one line at a time

Quick access to and ease of generating project documentation

Some of the more tangible business benefits of using an IDE include the following:

educes the cycle time of development

Increases the quality and reliability of your code

Standardizes your software development processes

Provides a common platform for programming staff to reduce training time

Out-of-the-box JSP and Tomcat support: Eclipse comes bundled with Apache Tomcat

Eclipse HTTP Monitor: The HTTP Monitor can be activated during the debugging or

execution of a web application. It allows you to monitor the request, HTTP headers, cookies,

session, servlet context, and client/server parameters. You no longer need to write server-side

code to read these variables, output them to a log, and view the log file. Inside Eclipse, we can

debug your code, step line by line through it, and watch the attributes you need.

Page 19: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 19

Page 20: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 20

3.7 JasperReports 3.6.0

JasperReports is the market leading open source business intelligence and reporting engine. The code

is written entirely in Java, and the XML report templates are used to generate ready to print

documents using data from customizable data sources, including JDBC. The output can be delivered

to the screen, printer, or stored in PDF, HTML, XLS, RTF, CSV, and XML format

Report design with iReport

iReport is an open source program that can create complex reports which can use every kind of Java

application through the JasperReports library. Basically iReport is Visual Designer for

JasperReports. It is written in 100% pure Java and is distributed with source code according to the

GNU General Public License. JasperStudio is the professional edition of iReport; it is essentially the

same application, but is commercially supported by JasperSoft Corporation and released as part of

the JasperSoft Business Intelligence Suite, a comprehensive set of tools for integrated reporting,

analysis, and data integration.

Through an intuitive and rich graphic interface, iReport lets us rapidly create any kind of report very

easily. iReport enables engineers to access all the functions of JasperReports as well as helping

skilled users to save a lot of time during the development of very elaborate reports.

Features of iReport

The following list describes some of the most important features of iReport :

• 100% support of JasperReports XML tags

• WYSIWYG editor for the creation of reports. It has complete tools for

drawing rectangles, lines, ellipses, text fields, labels, charts, subreports, and

bar codes

• Built-in editor with syntax highlighting for writing expressions

• Support for Unicode and non-Latin languages (Russian, Chinese, Japanese,

Korean, etc.)

Page 21: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 21

• Browser for document structure

• Integrated report compiler, filler, and exporter

• Support for all databases accessible by JDBC

• Virtual support for all kinds of datasources

• Wizard for creating reports automatically

• Support for sub reports

• Backup feature of source files

• Support for document templates

• TrueType fonts support

• Support for localization

• Extensibility through plug-ins

• Integrated support for scriptlets

• Support for charts

• Management of a library of standard objects (e.g., numbers of pages)

• Drag-and-drop functionality

• Unlimited undo/redo

• Wizard for creating crosstabs

• Styles library

• Docking system

Page 22: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 22

Page 23: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 23

3.8 Interface Requirements

User Interfaces

The website contains a user friendly homepage and other pages as required. The user interface has

been designed using Java Script, HTML and Style sheet.

Software Interfaces

The developed website is a multiuser; multitasking interface designed using ASP .NET, VB as a

Language, Java Script on the server side. Adaptability, availability, correctness, flexibility,

interoperability, maintainability, portability, reliability, reusability, robustness, testability and

usability.

3.9 Software quality attributes

The source code of the product is aimed at being user friendly. As per the websites quality it consists:

Portability

The website must have a simply, user-friendly interface so that browsers can save time and confusion.

The user interface must support a simple query interface that the operator can use to look up generic

information on a relevant topic of interest.

Reliability

The reliability of the website is important for the users. The retrieval of the data must be in

accordance with the request for the same and any failure in the retrieval must be correctly reported.

Should not break down easily when used incorrectly, the site will guarantee this by checking for

errors at every stage of user input.

Testability

The requirements of this SRS will be verified through the exercising of test cases as described by the

requirement in the following. Each requirement of this SRS will be tested by thoroughly running the

system with all forms of input. We will also endeavor to have people intentionally misuse the product

to test all possibilities. System should be closely monitored during and after user testing to ensure that

any fault is quickly fixed.

Page 24: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 24

FEASIBILITY STUDY

The main aim of feasibility study activity is to determine whether it would be financially and

technically feasible to develop the product. The feasibility study of a new system is done in order to

ascertain the extent of improvement that the proposed system can bring over the existing system. If

the proposed system is totally new, then its purpose is to see if its implementation is possible within

the given constraints and how effective it is regarding its ability to meet users needs.

4.1Technical Feasibility

This is concerned with specifying equipments and software that will successfully satisfy the user

requirement. The proposed system is technically feasible because:

The application is built and developed in JSP (Front end), which is known to create faster

web-applications. For that reason, the system is capable to produce output within a very short

time.

For the above reason response time is satisfactory, even the number of user is large.

JSP is such language in which many critical applications can be developed within a short time

period and with fewer overheads. So, all the requirements for the proposed system are

fulfilled within short time and satisfactorily.

It‟s able to process a certain volume of transaction at a faster speed.

4.2 Economic Feasibility

Economic analysis is the most frequently used method for evaluating the effectiveness of a proposed

system. It is commonly known as cost / benefit analysis. The procedure to determine the benefits and

saving that are expected from a proposed system and compare them with the cost.

It is found that the proposed system is economically feasible because of the following reason.

Equipment acquisition cost for the proposed system is minimal.

Equipment operational and maintenance cost is comparatively less than other alternatives.

Personnel training cost is minimal.

Page 25: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 25

The application was built in JSP, PostgreSQL – which are of freeware license as well as open

source. For that reason, S/W acquisition and development cost is comparatively less than

other alternatives.

Applications that are built in JSP/PostgreSQL, those are to be hosted Linux platform – which

in turn accumulates lesser cost also.

4.3 Operational Feasibility

It is also operationally feasible because:

The system is easy to use.

The system is fully menu driven, so the user needs not to remember the invocation of

commands with various options to use the system.

The job will be less tedious and the headaches of maintaining large amount of papers could be

done away with.

The user training required very short course of time.

The system has been designed in such a way that possibility of occurring errors and

exceptions is minimal.

The application is made as much as secured considering Govt. data.

Users of the will not feel insecure because of theft of data or password.

Protection and measures against possible hacking activities (such as, input of unwanted

character etc.) have been taken.

Page 26: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 26

SYSTEM DESIGN SPECIFICATION

5.1 System Analysis

What is a System?

“System” is derived from the Greek word “SYSTEMA”, which means a collection of elements or

components that are organized for a common purpose. The word sometimes describes the

organization or plan itself (and is similar in meaning to method, as in "I have my own little system")

and sometimes describes the parts in the system (as in "computer system").

Characteristics of a system:-

1. Organization:- Arrangement of components to achieve an objective

2. Interaction:- Each component function with other components of a system

3. Interdependence:- Each component of a system depends on other component of system

4. Integration:- How various components of a system are tied together

5. Central Objective:- What is required out of a system as a whole taking in consideration the

total view of the organization and not individual views

System Analysis

System analysis is a process by which we attribute the process, or goals, determine how well those

purpose are being achieved and specify requirement of various tools and techniques, which are to be

used within the system performance has to be achieved

5.2 System Design

Designing is the most important part of software development. It requires a care planning & logical

thinking on the part of the system designer. Designing the software means to plan how the various

parts of this software are going to meet the software goals. It should be done utmost care because if

the phase contains any error then it is going affect the performance of the system as a result it may

take more processing time, more of coding & extra load.

The design of “E-Interaction Database System” produces the details that state how that system will

meet the requirement identified during system analysis. System specialization often refers to this state

as logical design, in contrast to the process of developing software program, which is, refer to as

physical design.

System analyst begins the design process by identifying the reports and output of the system will

produce. Designers are responsible for providing programmers with complete and clearly outline

software specification.

System Design attempts to do the following activities:--

Improve productivity of analyst and programmers

Improve documentation and subsequent maintenance and enhancement

Cut down drastically on cost over runs and delays

Page 27: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 27

Current Position

5.2.1 Court Case Monitoring System Hierarchy

Case No. Wise

Home

Master Tables

Case Status

Court Details

Department

District

Judge Master

Kind of Receipt

Transaction

Case Detail

Case Proceeds

Hearing Details

Appearance Fee

Query & Reports

Case Detail

Court wise

Case No. Wise

Case Proceeds Case No Wise

Submission Date

Wise

Hearing details

Receipt wise

First Hearing Date

Wise

Appearance fee

Conference fee

Appoint Lawyer

Administrative

Conference Fee

Appoint Lawyer

Lawyer Details

Location

Petitioner Details

Post

Related Office

Subject Details

Case No. Wise

Lawyer Name Wise

Lawyer Name Wise

Lawyer Name Wise

Department Wise

Page 28: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 28

5.2.2 Database Design

1.Table name : court_details

Attribute

Datatype Size Constraint Default

court_code varchar

10 NOT NULL

court_name

integer 50

bench_name

varchar 10

CONSTRAINT court_details_pkey PRIMARY KEY (court_code)

2.Table name : case_current_postion

Attribute

Datatype Size Constraint Default

current_postion_code varchar

5 NOT NULL

current_desc

integer 20

CONSTRAINT curretnt_position_pkey PRIMARY KEY (current_postion_code)

3.Table name : case_status

Attribute

Datatype Size Constraint Default

case_status_code varchar

5 NOT NULL

status_description

integer 20

CONSTRAINT status_pkey PRIMARY KEY (case_status_code)

Page 29: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 29

4.Table name : case_type

Attribute

Datatype Size Constraint Default

case_type_code varchar

10 NOT NULL

case_type_desc

integer 50

CONSTRAINT case_type_pkey PRIMARY KEY (case_type_code)

5.Table name : department_details

Attribute

Datatype Size Constraint Default

dept_code varchar

10 NOT NULL

dept_name

integer 50

CONSTRAINT department_details_pkey PRIMARY KEY (dept_code)

6.Table name : disputes_related_to

Attribute

Datatype Size Constraint Default

disputes_related_code varchar

10 NOT NULL

related_code

varchar

10 NOT NULL

disputes_related_name

varchar

100

CONSTRAINT disputes_related_to_pkey PRIMARY KEY (disputes_related_code,

related_code)

Page 30: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 30

7.Table name : district

Attribute

Datatype Size Constraint Default

district_code varchar

20 NOT NULL

district_name varchar

20

CONSTRAINT district_pkey PRIMARY KEY (district_code)

8.Table name : judge_master

Attribute

Datatype Size Constraint Default

court_name varchar

20 NOT NULL

judge_id varchar

10

judge_name varchar

100

CONSTRAINT judge_master_pkey PRIMARY KEY (judge_id)

9.Table name : kind_of_receipts

Attribute

Datatype Size Constraint Default

kind_receipt_code varchar

10 NOT NULL

kind_receipt_desc varchar

50

CONSTRAINT recipt_pkey PRIMARY KEY (kind_receipt_code)

10.Table name : location

Attribute

Datatype Size Constraint Default

post_flag varchar

10 NOT NULL

location_code varchar

10 NOT NULL

location_desc varchar

50

district_code

varchar 10

Page 31: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 31

CONSTRAINT location_pkey PRIMARY KEY (post_flag, location_code)

11.Table name : module

Attribute

Datatype Size Constraint Default

module_code varchar

5 NOT NULL

module_name varchar

20

CONSTRAINT module_pkey PRIMARY KEY (module_code)

12.Table name : petitioner_details

Attribute

Datatype Size Constraint Default

petioner_code varchar

10 NOT NULL

address varchar

100

mobile_no bigint

50

city

varchar 10

petioner_name

varchar 100

CONSTRAINT petitioner_pkey PRIMARY KEY (petioner_code)

13.Table name : post

Attribute

Datatype Size Constraint Default

post_flag varchar

10 NOT NULL

post_code

varchar

10 NOT NULL

post_desc

bigint

20

post_category

varchar 20

Page 32: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 32

CONSTRAINT post_pkey PRIMARY KEY (post_code, post_flag)

14.Table name : post_breakup

Attribute

Datatype Size Constraint Default

post_code varchar

10 NOT NULL

post_flag varchar

100

post_desc bigint

50

post_category

varchar 10

CONSTRAINT post_breakup_pkey PRIMARY KEY (post_code, post_flag)

15.Table name : primaryrespondant

Attribute

Datatype Size Constraint Default

resid varchar

10 NOT NULL

CONSTRAINT primaryrespondant_pkey PRIMARY KEY (resid)

16.Table name : related_office

Attribute

Datatype Size Constraint Default

related_code varchar

10 NOT NULL

related_name varchar

50

CONSTRAINT related_to_pkey PRIMARY KEY (related_code)

Page 33: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 33

17.Table name : subject_matter_details

Attribute

Datatype Size Constraint Default

subject_code varchar

10 NOT NULL

subject_matter_details varchar

50

CONSTRAINT subject_details_pkey PRIMARY KEY (subject_code)

18.Table name : state_breakup

Attribute

Datatype Size Constraint Default

post_flag varchar

10 NOT NULL

dept_description varchar

50

CONSTRAINT state_breakup_pkey PRIMARY KEY (post_flag)

19.Table name : state_breakup

Attribute

Datatype Size Constraint Default

post_flag varchar

10 NOT NULL

dept_description varchar

50

CONSTRAINT state_breakup_pkey PRIMARY KEY (post_flag)

Page 34: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 34

20.Table name : lawyer_database

Attribute Datatype Size Constraint Default

lawyer_code varchar 5 NOT NULL

lawyer_name varchar 100

lawyer_address varchar 100

lawyer_city varchar 20

lawyer_district_code varchar 6

lawyer_mobile varchar 20

lawyer_skill_code varchar 10

lawyer_year_of_exp varchar 5

category "char char

lawyertype char

govt_retainers varchar 100

CONSTRAINT pk_lawyer_code PRIMARY KEY (lawyer_code)

21.Table name : casedetails

Attribute Datatype Size Constraint Default

jurisdiction varchar 10

original_case_no varchar 10

actual_case_no varchar 10 NOT NULL

actual_case_year integer NOT NULL

Page 35: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 35

cause_title varchar 20

subject_matter varchar 20

case_type varchar 50

kind_of_recipts varchar 20

court_name varchar 20

petitioner_cd varchar 10

primary_respondent varchar 50

state_lawyer_code varchar 10

related_office_cd varchar 10

office_code varchar 10

post varchar 10

location varchar 10

disputerelated varchar 50

original_case_year varchar 10

date_of_petittion varchar 10

recipt_date varchar 10

CONSTRAINT casedetails_pkey PRIMARY KEY (actual_case_no, actual_case_year)

22.Table name : appearance_fee

Attribute Datatype Size Constraint Default

lawyertype char

lawyer_code varchar 5 NOT NULL

memo_no varchar 10 NOT NULL

appearance_fee double

Page 36: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 36

clearkage_fee double

conference_fee double

case_no varchar 10 NOT NULL

memo_date varchar 10

effect_from varchar 10

serial_no integer NOT NULL

CONSTRAINT appearance_fee_pkey PRIMARY KEY (lawyer_code, case_no, serial_no)

23.Table name : appoint_lawyer

Attribute Datatype Size Constraint Default jurisdiction Varchar

10

original_case_no

varchar 10

original_case_year

varchar 10

appoint_lawyer_no

varchar 20 NOT NULL

actual_case_no

varchar 10 NOT NULL

actual_case_year

varchar 10

cause_title

varchar 20

subject_matter

varchar 20

case_type

varchar 50

kind_of_receipts

varchar 10

court_name

varchar 20

memono_petittion

varchar 10

app_lawyer_code

varchar 5 NOT NULL

app_by

varchar 20

app_by_desig

varchar 20

app_by_dept varchar 20

Page 37: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 37

appearance_fee

double

date_of_petition

varchar 10

date_app_lawyer

varchar 10

CONSTRAINT appoint_lawyer_pkey PRIMARY KEY (actual_case_no, appoint_lawyer_no,

app_lawyer_code)

24.Table name : caseproceeds

Attribute Datatype Size Constraint Default actual_case_no varchar

10 NOT NULL

actual_case_year

integer NOT NULL

action_pursuant_order

varchar 50

interim_order

varchar 20

remarks

varchar 50

current_position

varchar 5

judgement

varchar 50

file_no

varchar 10

memono_petittion

varchar 10

submission_to_sa_date

varchar 10

interim_order_date

varchar 10

aff_resp_date

varchar 10

first_hearing_date

varchar 10

last_hearing_date

varchar 10

next_hearing_date

varchar 10

as_on_date varchar 10

Page 38: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 38

date_of_judgement

varchar 10

action_pursuant_order_date

varchar 10

aff_opp_filed_date

varchar 10

CONSTRAINT _pkey PRIMARY KEY (actual_case_no, actual_case_year) CONSTRAINT

caseproceeds_actual_case_no_fkey FOREIGN KEY (actual_case_no, actual_case_year)

25.Table name : hearing_details

Attribute

Datatype Size Constraint Default

actual_case_no varchar

10 NOT NULL

actual_case_year

integer NOT NULL

hearing_rime

varchar

10

court_name

varchar 20

court_room

varchar 10

bench

varchar 10

judge_name

varchar 50

court_order varchar 50

action_taken_by_dept

varchar 50

submission_to_sa_date

varchar 10

serial_no

integer 10 NOT NULL

petitioner_lawyer

varchar 10

petitioner_name

varchar 10

actionseekbysender

varchar 50

hearing_date

varchar 10

next_hearing_date

varchar 10

Page 39: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 39

CONSTRAINT hearing_details_pkey PRIMARY KEY (actual_case_no, actual_case_year,

serial_no)CONSTRAINT hearing_details_actual_case_no_fkey FOREIGN KEY

(actual_case_no, actual_case_year)

26.Table name : user_create

Attribute

Datatype Size Constraint Default

login_name varchar

20 NOT NULL

login_password varchar

20

user_fullname varchar

50

module_code

varchar

5

submodule_code

varchar

5 NOT NULL

CONSTRAINT user_pkey PRIMARY KEY (login_name, submodule_code)

Page 40: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 40

5.2.2 Usecase Diagram(Admin):

Administrator:

Admin info

User info

USER:

Admin info

User info

Login

Add/Delete/Modify user

profile

Logout

Transaction

Report

Master

Page 41: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 41

5.2.3 Relational Block Diagram :

Page 42: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 42

5.3 Snapshot:

Page 43: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 43

Page 44: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 44

Page 45: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 45

Page 46: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 46

CODING

6.1 Connection With Database:

package ccmsclass;

import java.sql.DriverManager;

import java.sql.SQLException;

import java.sql.Connection;

public class DatabaseConnect {

Connection con;

public DatabaseConnect() {

try {

Class.forName("org.postgresql.Driver");

}

catch (ClassNotFoundException e) { }

try {

con=(Connection)

DriverManager.getConnection("jdbc:postgresql://localhost:5432/ccms","postgres","postgres");

}

catch (SQLException e) {System.out.println(e.getMessage()); }

}

public Connection getConnection(){

System.out.println("Connection is:"+con);

return con;

}

}

Page 47: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 47

6.2 Login Page:

package ccmsservlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpSession;

import java.io.IOException;

import java.io.PrintWriter;

import java.sql.PreparedStatement;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServlet;

import ccmsclass.DatabaseConnect;

import java.sql.Connection;

import java.sql.ResultSet;

public class LogIn extends HttpServlet {

protected void doPost(HttpServletRequest request, HttpServletResponse

response)throws ServletException, IOException {

PrintWriter out = response.getWriter();

String loginname = null;

String loginpassw=null;

ResultSet rs=null;

String button=request.getParameter("button");

if(button.equals("Log in")){

String user_login_name=request.getParameter("name");

String user_login_password=request.getParameter("pass");

try{

Connection con =(Connection) new DatabaseConnect().getConnection();

PreparedStatement ps=con.prepareStatement("select

login_name,login_password from user_create where login_name='"+user_login_name+"'

and login_password='"+user_login_password+"'");

rs=ps.executeQuery();

while(rs.next()){

loginname=rs.getString(1);

loginpassw=rs.getString(2);

}

if(loginname!=null && loginname.equals(user_login_name)&& loginpassw!=null &&

loginpassw.equals(user_login_password)){

HttpSession session=request.getSession();

session.setAttribute("name", user_login_name);

response.sendRedirect("home.jsp");

}

else{

response.sendRedirect("Log_in.jsp?msg=notlogged");

}

}

catch(Exception e){out.println(e);}

}

}

}

Page 48: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 48

6.3 i-Report:

package ccmsservlet;

import java.io.IOException;

import java.io.InputStream;

import java.io.PrintWriter;

import java.io.StringWriter;

import java.sql.Connection;

import java.util.HashMap;

import javax.servlet.ServletException;

import javax.servlet.ServletOutputStream;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import net.sf.jasperreports.engine.JasperRunManager;

import ccmsclass.DatabaseConnect;

public class KindReceiptChoice extends HttpServlet {

protected void doPost(HttpServletRequest request, HttpServletResponse

response) throws ServletException, IOException {

try {

Connection con;

response.setContentType("application/pdf");

ServletOutputStream servletOutputStream = response.getOutputStream();

InputStream reportStream = getServletConfig().getServletContext().

getResourceAsStream("/report/kindreceipt/kindreceipt.jasper");

HashMap<String,java.lang.String> params =new HashMap<String,java.lang.String>();

try{

con = (Connection) new DatabaseConnect().getConnection();

JasperRunManager.runReportToPdfStream(reportStream,servletOutputStream,

params, con);

response.sendRedirect("kind_of_receipt.jsp");

}

catch (Exception e){

StringWriter stringWriter = new StringWriter();

PrintWriter printWriter = new PrintWriter(stringWriter);

e.printStackTrace(printWriter);

response.setContentType("text/plain");

response.getOutputStream().print(stringWriter.toString());

}

}

}

catch(Exception e){System.out.println(e);}

}

}

Page 49: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 49

TESTING

Testing is a process to execute a program with intention in finding errors. Testing is program

consisting of subjecting a program to a set of test inputs and observing the program to a set of test

inputs and observing program behaves as expected.

7.1 Black Box Testing

We can summarize the steps in the black box test suit design as follows:

1. Examine the input and output values of the program

2. Identify the equivalence classes

3. Pick the test cases corresponding to equivalence class testing

7.2 White Box Testing

White box testing requires knowledge of the internals of the software.

7.3 Integration testing Integration testing is performed with the objective of testing module interfaces in order to ensure that

there are no errors in parameter passing when one module invokes another module. During

integrating testing deferent module o system integrated I a planed manner using an integration plan.

The integration plan specifies steps and the order in which module are combined to realize the full

system. After each integration step partial integration become faster.

7.4 System testing System testing is performed to validate a fully developed system to assure that it meets its specific

requirements. It also referred to as validation testing.

7.4.1 Acceptance Testing

When all the tests on the system were over the user were involved to make sure that the

system was working according to user‟s expectation and then the testing was performed.

7.4.2 Alpha Testing

Alpha testing refers to the system testing carried out by the test team within the

Developing organization.

7.4.3 Beta Testing

Beta testing is the system testing performed by a selected group of friendly customers.

Page 50: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 50

MAINTENANCE

Maintenance is the enigma of the system development. Maintenance can be classified as corrective,

adaptive and perfective.

Correcting errors that were not discovered during the product development phase. This is

called „Corrective Maintenance‟.

Improving the implementation of the system, and enhancing the functionalities of the system

according to the customer‟s requirements. This is called „Perfective maintenance‟.

Porting the software to work in a new environment. For example, porting may be required to

get the software to work on a new computer platform or with a new operating system. This is

called „Adaptive Maintenance‟.

Maintenance reduction plan consist of three phases:

1. Maintenance management audit.

2. Software system Audit.

3. Software Modification.

The system that has been developed is easily managed. Codes can be changed as per needs.

Page 51: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 51

SCOPE FOR FUTURE ENHANCEMENTS

7.1 Result discussion and conclusion

Result Discussion

If the made system will fulfill all the requirements of the user then also there always exists scope for

further improvement. This chapter will discuss the result of the system design, the benefits derived

and scope for development.

Good things in the system

The effect of computerization of the new system is found remarkable. The benefits of the system are

analyzed in terms of tangible and intangible benefits. Tangible benefits are those that can be

determined directly as reduction of cost in managing the overall information and data, faster

availability of information on demand.

Intangible benefits are those that cannot be determined directly. These include ease for the system‟s

users in handling data.

Thus a fully user friendly site has been developed where the user can easily enter, modify, update,

and retrieve data through the terminal.

7.2 Scope for future enhancements

Any project cannot be complete in all aspects. It is virtually difficult to develop any software that can

be proven to be error free, no drawback and without limitations. There are always chances of future

enhancements and developments even if visualization becomes difficult.

The developed aims at reducing the paper work, manpower losses and enables common user to

maintain the information ant any point of time. Flexibility is the key so that it can be expanded for

future enhancements.

Page 52: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 52

CONCLUSION

We have tried to develop a system which is user friendly and industry oriented. We have made sure

that the system works according to the need of intended user. We will be honored if our system

provides beneficial to the users. We have tried our best to present our system in limited time. We

hope to bring further improved feature in our system in near future and as when requirement arises.

We extends our deepest gratitude to all those who have extended their cooperation in fulfillment of

the project.

Page 53: Court Caase Monitoring System

COURT CASE MONITORING SYSTEM

Page 53

Bibliography

1. Christian MacAuley and Paul Jobson[2002], JavaScript, TMH Publications.

2. Elmasri, Navathe[2005], Fundamentals of Database Management Systems

3. Ivan Bayross[2006], SQL, PL/SQL The programming language of Oracle, BPB Publications

4. Rajib Mall[2006], Fundamentals of Software Engineering, PHI Publications

5. Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham