You are on page 1of 79

CERTIFICATE

CERTIFICATE

LAW AWARENESS SOFTWARE


Bonafied work done by

M.SONIYA

1826J0606
Project report submitted in partial

Fulfillment of the requirement for the

Award of Bachelor of Science in Information Technology

Of Bharathiar University, Coimbatore-47

INTERNAL GUIDE HEAD OF THE DEPARTMENT

Mrs.R. ANUSUYA.,MCA.,M.Phil.,(PhD)., Mrs.R.ANUSUYA.,MCA.,M.Phil.,(PhD).,

Submitted for the Viva-Voice Examination

Held on

____________

COUNTER SIGNED

________________ (PRINCIPAL) ______________________

INTERNAL EXAMINER EXTERNAL EXAMINER


DECLARATION
DECLARATION

I declare that this project entitled

“LAW AWARENESS SOFTWARE”

submitted to Pioneer College of Arts and Science, Coimbatore-47

in partial fulfillment of the requirement for the award of the degree of

BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY

Is a record of the original project work done by me during the period of my study 2020-2021 at
Pioneer College of Arts and Science,

Coimbatore-47.

Under the Guidance of

Mrs.R.ANUSUYA.,MCA.,M.Phil.,(PhD).,

Assistant Professor & Head

Department of Information Technology

Pioneer College of Arts and Science,

Coimbatore-47.

____________

M.SONIYA
(1826J0606)
ACKNOWLEDGEMENT
ACKNOWLEDGEMENT
At the I record my profound thanks to Smt.D.SUGUNA, Secretary, Pioneer College of Arts
And Science.

I place it on record my gratefulness and convey my thanks to our respectful Principal


Dr.S.MAHENDRAN, M.Com. M.Phil., MBA., PGDCA., PH.D.NET., for the valuable encouragement
and direction extended despite for busy schedule.

I wish to express my sincere thanks to Smt.R.PADMALOCHANA, Academic Coordinator


of Pioneer College of Arts and Science, Coimbatore.

I warmly extend my thanks to Mrs.R.ANUSUYA, MCA.,M.Phil.,(Ph.D.)., Head of


Information Technology, Pioneer College of Arts And Science Coimbatore, for her immense help
and comments to this project.

I really deem it as a special privilege to convey my prodigious and everlasting thanks to my


internal guide Mrs.R.ANUSUYA, MCA.,M.Phil.,(Ph.D.)., Head & Assistant Professor in
Department of Information Technology, Pioneer College of Arts and Science Coimbatore for her
immense help, insightful suggestions and valuable advice constructive comments to this project.

I would like to express my deep sense of gratitude and thanks to all the faculty of
Department of Information Technology, Pioneer College of Arts And Science Coimbatore for their
valuable guidance and encouragement throughout the project.

Last but not least, i express my heartfelt gratitude and sincere thanks to my beloved Parents
for their support to complete my project in successful way.
CONTENTS
CONTENTS

ACKNOWLEDGEMENT

SYNOPSIS 1

1.INTRODUCTION 3

1.1. SYSTEM SPECIFICATION 4

1.1.1. HARDWARE SPECIFICATION 4

1.1.2. SOFTWARE SPECIFICATION 4

2. SYSTEM STUDY 5

2.1. EXISTING SYSTEM 6

2.1.1. DRAWBACKS OF EXISTING SYSTEM 6

2.2. PROPOSED SYSTEM 6

2.2.1. ADVANTAGES OF PROPOSED SYSTEM 7

2.3.SOFTWARE ENVIRONMENT 7

3. SYSTEM DESIGN AND DEVELOPMENT 17

3.1. INPUT DESIGN 18

3.2. OUTPUT DESIGN 18

3.3. DATABASE DESIGN 20

3.4. MODULE DESCRIPTION 22


4. SYSTEM TESTING AND IMPLEMENTATION

4.1.TESTING 24

4.2.SYSTEM IMPLEMENTATION 28

5. CONCLUSION 32

6. SCOPE FOR FUTURE ENHANCEMENT 34

BIBLIOGRAPHY 35

APPENDICES 37

A.TABLE DESIGN 38

B.DATA FLOW DIAGRAM 41

C.SAMPLE CODING 44

D.SAMPLE INPUT 54

E.SAMPLE OUTPUT 63
SYNOPSIS

1
LAW AWARENESS SOFTWARE

SYNOPSIS

This project is entitled as “Law Awareness Software” which has developed in VB.NET
as front end. Computers have become an essential part of organizational information processing
because of the power of technology and the volume of data to be processed. Through the
technology, the manual process, defects and time consumption can be reduced. That’s in all the
area of business, computer technology are widely been implemented. Hence the inception of
computers had a great role in reducing large tasks to simpler one. This project used for peoples.
When the people use this project get the details about the different law and case section. Peoples
are did not know about the criminal case and case section details and punishment duration for
particular case. So avoiding this problem we design this project, it useful for all people. When user
registers the details in the project, anywhere we login the project. This project contains the details
about the different laws, law description. This project is also used for select advocate through this
project. This project displays the advocate details such as advocate id, name, address, phone
number, mail id, rating of particular advocate and amount charge. The advocates only allowed to
show the number of customer send the request are displayed. The advocate sends the response to
the all customer request. Judge is a super user of this project. The judge access the authorized
permission for login the project. The super user views the all details about the all advocate details
and customer request and advocate response details.

2
INTRODUCTION
3
1. INTRODUCTION

1.1. SYSTEM SPECIFICATION

1.1.1. HARDWARE SPECIFICATION

PROCESSOR : CORE 2 DUAL


HARD DISK CAPACITY : 250 GB
MONITOR : 18.5 “ACER MONITOR
INTERNAL MEMORY CAPACITY : 1 GB
KEYBOARD : LOGITECH OF 104 KEYS
CPU CLOCK : 2.3 GHz
MOUSE : LOGITECH MOUSE

1.1.2.SOFTWARESPECIFICATION

OPERATING SYSTEM : WINDOWS XP


FRONT END : VB.NET 2008
BACK END : SQL SERVER 2005

4
SYSTEM STUDY

5
2. SYSTEM STUDY

2.1. EXISTING SYSTEM

In the existing system the details of the client entered Manually and All day to day work is
maintained in different registers. There is no maintenance of the records of payment. It is
difficult to explain the history of the cases. There is all paperwork.

2.1.1.DISADVANTAGE
• Entry of new cases done through forms and are stored in files.
• The information regarding the case and clients is maintained in diary.
• There is no proper maintenance of case details and the payments.
• It is time consuming.
• It is not user friendly.

2.2. PROPOSED SYSTEM

The project Advocate Case Management is software for a better office management for an
advocate office. The application Advocate Case Management has a very attractive and simple
graphical user interface. It supports multiple login system. The administrator has all rights of
manipulating the data; other user can view the data according to the administrator. In this
application the user can maintain the information of the client and the case which is going to be
start. It has a nice feature synopsis entry and information of the single case proceeding. This
application also maintains the fee recovery management. This software is designed keeping in
mind the user’s efficiency & ease of handling and maintenance, as and secured system over
centralized data handling and providing with the features to get the complete study and control
over the business. The report depicts the basics logic used for software development. Reports such
as case history, fee history, case register.

6
2.2.1.ADVANTAGES
• It reduces the manual process, defects and time consumption can be reduced.
• It also reduces the time consumption.
• Data can be accessed easily and randomly

2.3.SOFTWARE ENVIRONMENT

FRONT END : VB.NET

INTRODUCTION TO VISUAL BASIC .NET


The system is developed using Visual Basic. NET, which is a very popular Microsoft
Product developed by Microsoft Corporation. This is one of the improved languages from basic
language. Visual basic .NET includes a variety of open active controls for user interfaces to
design application forms. VB.NET provides the easiest, most productive language and tool for
rapidly building Windows and Web applications. Visual Basic .NET comes with enhanced
visual designers, increased application performance and a powerful integrated development
environment (IDE). It also supports creation of applications for wireless, Internet-enabled
hand-held devices. VB.NET is the multiple document interface format (MDI).The user interface
is the part of the program that responds to the key press and mouse clicks. The action is
referred to as events of the form and controls in the form. VB.NET provides vast properties and
methods for each control, which helps to utilize all those, functions for record manipulations.
Menu driven is one of the most effective controls in the VB.NET. In this menu driven the menu
names in a program appear in the menu bar when the user selects a menu, that menu open. Each
menu usually contains items arranged in a vertical list.

7
Powerful Windows-based Applications
Visual Basic .NET comes with features such as a powerful new forms designer, an in-place
menu editor, and automatic control anchoring and docking. Visual Basic .NET delivers new
productivity features for building more robust applications easily and quickly. With an
improved integrated development environment (IDE) and a significantly reduced startup time,
Visual Basic .NET offers fast, automatic formatting of code as typing, improved IntelliSense,
an enhanced object browser and XML designer, and much more.
Building Web-based Applications
Visual Basic .NET can be used to create Web applications using the shared Web Forms
Designer and the familiar "drag and drop" feature. Just double-click and writing code to
respond to events. Visual Basic .NET comes with an enhanced HTML Editor for working
with complex Web pages.
Simplified Deployment
Visual Basic .NET can be used to build applications more rapidly and deploy and maintain
them with efficiency. Visual Basic .NET and .NET Framework makes "DLL Hell" a thing of
the past. Side-by-side versioning enables multiple versions of the same component to live
safely on the same machine so that applications can use a specific version of a component.
XCOPY-deployment and Web auto-download of Windows-based applications combine the
simplicity of Web page deployment and maintenance with the power of rich, responsive
Windows-based applications.
Powerful, Flexible, Simplified Data Access
You can tackle any data access scenario easily with ADO.NET and ADO data access.
The flexibility of ADO.NET enables data binding to any database, as well as classes,
collections, and arrays, and provides true XML representation of data. Seamless access to
ADO enables simple data access for connected data binding scenarios. Using ADO.NET,
Visual Basic .NET can gain high-speed access to MS SQL Server, Oracle, DB2, Microsoft
Access, and more.

8
Improved Coding
Code can be builder faster and more effectively. A multitude of enhancements to the
code editor including enhanced IntelliSense, smart listing of code for greater readability and
a background compiler for real-time notification of syntax errors transforms into a rapid
application development
Direct Access to the Platform
Visual Basic developers can have full access to the capabilities available in .NET
Framework. Developers can easily program system services including the event log,
performance counters and file system. The new Windows Service project template enables to
build real Microsoft Windows NT Services.
Full Object-Oriented Constructs
You can create reusable, enterprise-class code using full object-oriented constructs.
Language features include full implementation inheritance, encapsulation, and polymorphism.
Structured exception handling provides a global error handler and eliminates spaghetti code.
XML Web Services An XML Web service enables to call components running on any
platform using open Internet protocols. Working with XML Web services is easier where
enhancements simplify the discovery and consumption of XML Web services that are located
within any firewall. XML Web services can be built as easily as building any class in Visual
Basic 6.0. The XML Web service project template builds all underlying Web service
infrastructure.
Mobile Applications
Visual Basic .NET and the .NET Framework offer integrated support for developing
mobile Web applications for more than 200 Internet-enabled mobile devices. These new
features give developers a single, mobile Web interface and programming model to support a
broad range of Web devices, including WML 1.1 for WAP—enabled cellular phones, compact
HTML (cHTML) for i-Mode phones, and HTML for Pocket PC, handheld devices, and
pagers.

9
COM Interoperability
Existing code can be maintained without the record. COM interoperability enables
you to leverage existing code assets and offers seamless bi-directional communication
between Visual Basic 6.0 and Visual Basic .NET applications.
Reuse Existing Investments
Reusing all existing ActiveX Controls is possible. Windows Forms in Visual Basic
.NET provide a robust container for existing ActiveX controls. In addition, full support for
existing ADO code and data binding enable a smooth transition to Visual Basic .NET.
Visual Basic .NET COMPONENTS:
Visual basic .NET preserves VB’s general approach to programming with a SDK
development environment and click through forms to get at the underlying code. The Visual
Basic IDE is made up of a number of components given below:
• Forms
• Toolbox
• Tabs
• Properties windows
• Solution explorer
• Output windows
• Task list window
Forms
A form is one of the most basic objects in which the application code and acts as a
container for the controls placed on it thus providing a visual interface. VB.NET initially
includes a default form; form1 file in each new project .Every form object has its properties,
events and methods associated with it.

10
Toolbox
The toolbox is an important window, which contains a set of controls. It contains the
controls to create our forms non-graphical components such as database connections and code
fragments that can be dragged directly from the toolbox into the code window

Tabs
Different tabs are organized in the toolbox. Some of the tabs are
• Data : Contains components that provide
Access to data and data sources.
• Components : Contains various components such as
reporting, message queuing etc.
• Clipboard ring : Contains a list of the last few items that
is copied to the system clipboard.
• General : Empty by default, this is a place for us to
Store general controls, components, and Code fragments.
• Win forms : Containing windows form controls is
Automatically available when windows forms project is
included in the project.
• Web forms : Contains server side web form controls
that is used to create web pages.
• HTML tab : Contains controls that correspond to the standard HTML tags.
Properties Window
The properties window appears beneath the solution explorer on the right-hand of the
VS.NET main window. It displays the properties for the currently selected object in the main
window. Pressing key F4 also displays the properties window for the selected object.

11
Solution Explorer
Solution explorer window is similar to the project explorer window in the Bathe
solution explorer is a bit more advanced, since it allows us to construct solutions out of
several different projects – including those written in different languages.
Class View
The class view window is somewhat similar to the solution explorer, in the it provides a
view into our solution and project. A view of classes, methods and properties rather than a
view of files are provided by the class view in the world of object-oriented world of .NET.

Output Window
The output window is similar to the immediate window available in the previous version
of visual basic. The immediate window is used to view debug output from the application, and
to interact with the environment by entering bits of code or even calling procedures within the
user’s code.
Task List Window
Task list window is a feature that is used to provide a quick list of all the current build
and syntax errors in our application. The main advantage of using the task list is that by double-
clicking on an error listed in the window will take us right to the troublesome point in our code.
Features of Visual Basic. NET
• VB.NET is an ideal programming language for developing sophisticated professional
application for Microsoft windows
• It makes use of the graphical user interface for creating powerful applications, which
enables the user to interact easily within an application.
• VB.NET provides many aspects such as easier comprehension, user friendliness and
faster application development, which help the developer to design the application
more effectively.

12
• BACK END : SQL SERVER 2005
MS-SQL SERVER 2005

MS SQL Server is a powerful database management system and the user can create
application that requires little or no programming. It supports GUI features and an entire
programming language, Visual Studio Application which can be used to develop richer and more
developed application.
There are quite a few reasons, the first being that SQL is a feature rich program that can
handle any database related task you have. You can create places to store your data build tools
that make it easy to read and modify your database contents, and ask questions of your data. SQL
is a relational database, a database that stores information about related objects. In MS SQL that
database means a collection of tables that hold data. It collectively stores all the other related
objects such as queries, forms and reports that are used to implement function effectively.
The MS SQL database can act as a back end database for .NET as a front end, MS SQL
supports the user with its powerful database management functions. A beginner can create his/her
own database very simply by some mouse clicks. Another good reason to use SQL as backend
tool is that it is a component of the overwhelmingly popular Microsoft office software suite.
MS SQL however is a relational database, which means that you can define
relationships among the data it contains. Relational database, are superior to flat file databases
because you can store discrete information.
Microsoft SQL Server 2005 is a full-featured relational database management system
(RDBMS) that offers a variety of administrative tools to ease the burdens of database development,
maintenance and administration. In this article, we'll cover six of the more frequently used tools:
Enterprise Manager, Query Analyzer, SQL Profiler, Service Manager, Data Transformation
Services and Books Online. Let’s take a brief look at each.

13
Enterprise Manager is the main administrative console for SQL Server installations. It
provides you with a graphical "birds-eye" view of all of the SQL Server installations on your
network. You can perform high-level administrative functions that affect one or more servers,
schedule common maintenance tasks or create and modify the structure of individual databases.
Query Analyzer offers a quick and dirty method for performing queries against any of
your SQL Server databases. It’s a great way to quickly pull information out of a database in
response to a user request, test queries before implementing them in other applications,
create/modify stored procedures and execute administrative tasks. .
SQL Profiler provides a window into the inner workings of your database. You can
monitor many different event types and observe database performance in real time. SQL Profiler
allows you to capture and replay system "traces" that log various activities. It's a great tool for
optimizing database with performance issues or troubleshooting particular problems.
Service Manager is used to control the MSSQLServer (the main SQL Server process),
MSDTC (Microsoft Distributed Transaction Coordinator) and SQLServerAgent processes. An
icon for this service normally resides in the system tray of machines running SQL Server. You
can use Servce Manages to start, stop or pause the resources.
Data Transformation Services (DTS) provide an extremely flexible method for
importing and exporting data between a Microsoft SQL Server installation and a large variety of
other formats. The most commonly used DTS application is the "Import and Export Data"
wizard found in the SQL Server program group. .
Books Online is an often overlooked resource provided with SQL Server that contains
answers to a variety of administrative, development and installation issues. It's a great resource
to consult before turning to the Internet or technical support. Hopefully, this article has provided
you with a brief introduction to the various tools available to Microsoft SQL Server users. Now
get out there and give them a whirl!

14
SQL SERVER ARCHITECTURE
Microsoft® SQL Server data is stored in databases. The data in a database is organized
into the logical components visible to users. A database is also physically implemented as two or
more files on disk. When using a database, you work primarily with the logical components such
as tables, views, procedures, and users. The physical implementation of files is largely transparent.
Typically, only the database administrator needs to work with the physical implementation.
Each instance of SQL Server has four system databases (master, model, temped, and
mad) and one or more user databases. Some organizations have only one user database, containing
all the data for their organization. Some organizations have different databases for each group in
their organization, and sometimes a database used by a single application. For example, an
organization could have one database for sales, one for payroll, one for a document management
application, and so on. Sometimes an application uses only one database; other applications may
access several databases.
It is not necessary to run multiple copies of the SQL Server database engine to allow
multiple users to access the databases on a server. An instance of the SQL Server is capable of
handling thousands of users working in multiple databases at the same time. Each instance of SQL
Server makes all databases in the instance available to all users that connect to the instance, subject
to the defined security permissions.
When connecting to an instance of SQL Server, your connection is associated with a
particular database on the server. This database is called the current database. You are usually
connected to a database defined as your default database by the system administrator.
SQL Server allows you to detach databases from an instance of SQL Server, then reattach
them to another instance, or even attach the database back to the same instance. If you have a SQL
Server database file, you can tell SQL Server when you connect to attach that database file with a
specific database name.
Software design sits at the technical kernel of the software engineering process and is applied
regardless of the development paradigm and area of application. Design is the first step in the
development phase for any engineered product or system.

15
The designer’s goal is to produce a model or representation of an entity that will later be
built. Beginning, once system requirement have been specified and analyzed, system design is the
first of the three technical activities -design, code and test that is required to build and verify
software.
The importance can be stated with a single word “Quality”. Design is the place where quality
is fostered in software development. Design provides us with representations of software that can
assess for quality. Design is the only way that we can accurately translate a customer’s view into
a finished software product or system. Software design serves as a foundation for all the software
engineering steps that follow. Without a strong design we risk building an unstable system – one
that will be difficult to test, one whose quality cannot be assessed until the last stage.
During design, progressive refinement of data structure, program structure, and procedural
details are developed reviewed and documented. System design can be viewed from either
technical or project management perspective. From the technical point of view, design is
comprised of four activities – architectural design, data structure design, interface design and
procedural design.

16
SYSTEM DESIGN

17
3. SYSTEM DESIGN

3.1. INPUT DESIGN

Input design is the process of converting the user-oriented. Input to a computer


based format. The goal of the input design is to make the data entry easier, logical and free error.
Errors in the input data are controlled by the input design. The quality of the input determines the
quality of the system output.
The entire data entry screen is interactive in nature, so that the user can directly enter into
data according to the prompted messages. The user is also can directly enter into data according to
the prompted messages. The users are also provided with option of selecting an appropriate input
from a list of values. This will reduce the number of error, which are otherwise likely to arise if
they were to be entered by the user itself.
Input design is one of the most important phases of the system design. Input design is the
process where the input received in the system are planned and designed, so as to get necessary
information from the user, eliminating the information that is not required. The aim of the input
design is to ensure the maximum possible levels of accuracy and also ensures that the input is
accessible that understood by the user.

4.2. OUTPUT DESIGN

Output design is very important concept in the computerized system, without reliable
output the user may feel the entire system is unnecessary and avoids using it. The proper output
design is important in any system and facilitates effective decision-making. The output design of
this system includes various reports.

18
Computer output is the most important and direct source of information the user. Efficient,
intelligible output design should improve the system’s relationships with the user and help in
decision making. A major form of output is the hardcopy from the printer.
Output requirements are designed during system analysis. A good starting point for the
output design is the data flow diagram. Human factors reduce issues for design involved addressing
internal controls to ensure readability.
Process
A process shows a transformation or manipulation of data flows within the system. The
symbol used is a rectangular box, which contains 3 descriptive elements: Firstly an identification
number appears in the upper left hand corner. This is allocated arbitrarily at the top level and serves
as a unique reference. Secondly, a location appears to the right of the identifier and describes where
in the system the process takes place.
Data Flow
A data flow shows the flow of information from its source to its destination. A data flow
is represented by a line, with arrowheads showing the direction of flow. Information always flows
to or from a process and may be written, verbal or electronic. Each data flow may be referenced
by the processes or data stores at its head and tail, or by a description of its contents.
Data Store
A data store is a holding place for information within the system: It is represented by an
open ended narrow rectangle. Data stores may be long-term files such as sales ledgers, or may be
short-term accumulations: for example batches of documents that are waiting to be processed.
Each data store should be given a reference followed by an arbitrary number.
Resource Flow
A resource flow shows the flow of any physical material from its source to its destination.
For this reason they are sometimes referred to as physical flows. The physical material in question
should be given a meaningful name. Resource flows are usually restricted to early, high-level
diagrams and are used when a description of the physical flow of materials is considered to be
important to help the analysis.

19
3.3. DATABASE DESIGN
3.3.1 DATA FLOW DIAGRAM (DFD)
The first step is to draw a data flow diagram (DFD). The DFD was first developed by Larry
Constantine as a way of expressing system requirements in graphical form.
A DFD also known as a “bubble chart” has the purpose of clarifying system requirements
and identifying major transformations that will become programs in system design. So, it is the
starting point of the design phase that functionally decomposes the requirements specifications
down to the lowest level of detail. A DFD consists of series of bubbles join by the data flows in
the system.
The purpose of data flow diagrams is to provide a semantic bridge between users and
systems developers. The diagrams are:
• Graphical, eliminating thousands of words;
• Logical representations, modeling WHAT a system does, rather than physical models
showing HOW it does it;
• Hierarchical, showing systems at any level of detail; and
• Jargon less, allowing user understanding and reviewing.
The goal of data flow diagramming is to have a commonly understood model of a system.
The diagrams are the basis of structured systems analysis. Data flow diagrams are supported by
other techniques of structured systems analysis such as data structure diagrams, data dictionaries,
and procedure-representing techniques such as decision tables, decision trees, and structured
English.

3.3.2.ER DIAGRAM
DATA MODEL
Entity Relationship Diagram is a model that describes the stored data layout of a system at
high level of abstraction. Entity Relationship Diagram enables us to examine and highlight data
structures and relationship independent of the processes or control flow.

20
The participation of the entities in the relationship and cardinality ratio are indicated in the
entity relationship diagram to provide further information .The Entity Relationship Diagram shows
the relationship and types of relationship between the entities. The entity for the system “TITLE”
is shown in below. The major components are

• Rectangle - represent the entity sets


• Ellipses - which represents attributes
• Diamond - which represent relationship set
• Line - which links the attributes to entity sets and entity sets to relationship set

21
3.4. MODULE DESCRIPTION
MODULE DESCRIPTION
• Client
• Advocate
• Appointment
• Payment
• Law and case information

• search
CLIENT DETAILS

This module used to register he particular user details in the project. This module contains
the user id, name, password, address, phone number and mail id.

LAW AND CASE INFORMATION

This law and case information contains the details about the full description about criminal
case details. It contains the criminal case section, case description, punishment duration, fine
amount and law section.

ADVOCATE DETAILS

This module contains the advocate details such as advocate id, name, address, phone
number, mail id and rating of particular advocate.

APPOINTMENT DETAILS
This module stores the appointment details of the client. If the meet the lawyer in case we
book the appointment in schedule process of court procedure and finally These details are stored
in database
SEARCH DETAILS
In this module client having searching the case and section how to apply the case file
procedure are all view in the database this module is very useful to client
22
SYSTEM TESTING AND
IMPLEMENTATION

23
4. SYSTEM TESTING AND IMPLEMENTATION

4.1.TESTING

System testing is the state of implementation, which is aimed at ensuring that the system
works accurately and efficiently as expect before live operation, commences. It certifies that the
whole set of programs hang together System testing requires a test plans, that consists of several
key activities and steps for run program, string, system and user acceptance testing. The
implementation of newly design package is important in adopting a successful new system Testing
is important stage in software development. System test is implementation should be a
confirmation that all is correct and an opportunity to show the users that the system works as they
expected it accounts the largest percentage of technical effort in software development process.
Testing phase is the development phase that validates the code against the functional
specifications. Testing is a vital to the achievement of the system goals. The objective of testing is
to discover errors. To fulfill this objective a series of test step such as the unit test, integration test,
validation and system test where planned and executed.

TESTING OBJECTIVES

All testing objectives are summarized in the following three steps:

• Testing is the process of executing a program with the intent of finding error.
• A good test case one that as high probability of finding on as yet undiscovered.
• A successful test is one that uncovers an as yet undiscovered error.

24
TESTING PRINCIPLES

All tests are traceable to customer requirements. Test should be planned long before testing
begins, that is, the planning can begin as soon as the requirements model is complete. Testing
should begin “in the small” and progress towards testing “in the large”.

THE FOLLOWING ARE THE ATTRIBUTES OF GOOD TEST

• A good test has a high of finding an error.


• A good is not redundant.
• A good test should be “best of breed”.
• A good should be neither too simple nor too complex.

4.1.1. UNIT TESTING

The first test in the development process is the unit test. The source code is normally
divided into modules, which in turn are divided into smaller units called units. These units have
specific behavior. The test done on these units of code is called unit test. Unit test depends upon
the language on which the project is developed. Unit tests ensure that each unique path of the
project performs accurately to the documented specifications and contains clearly defined inputs
and expected results.

25
4.1.2. INTEGRATION TESTING
Integration Testing addresses the issues associated with the dual problems of verification
and program construction. After the software has been integrated a set of High-order tests are
conducted. The main objective in this testing process is to take unit-tested modules and build a
program structure that has been dictated by design.
The following are the types of Integration Testing:
i) Top-Down Integration
This method is an incremental approach to the construction of program structure. Modules
are integrated by moving downward through the control hierarchy, beginning with the main
program module. The module subordinates to the main program module are incorporated into the
structure in either a depth first of breadth-first manner.
ii) Bottom-Up Integration
This method begins the construction and testing with the modules at the lowest level in the
program structure. Since the modules are integrated from the bottom up, processing required for
modules subordinate to a given level is always available and the need for stubs is eliminated. The
bottom-up integration strategy may be implemented with the following steps :
• The low –level modules are combined into clusters that perform a specific software
sub-function.
• A driver (i.e.), the control program for testing is written to co-ordinate test case input
and output.
• The cluster is tested.
• Drivers are removed and clusters are combined moving upward in the program
structure.

26
BLACK BOX TESTING
This method treats the code module as a black box. The module is run with inputs that are
likely to cause errors. Then the output is checked to see if any errors occurred. However, this
method cannot be used to test all errors, because some errors may depend on the code or algorithm
used to implement the module.
Black box testing implies that the selections of test data as well as the interpretation of test
results are performed on the basis of the functional properties of a piece of software. Black box
testing should not be performed by the author of the program who knows too much about the
program internals. In new testing approaches, software systems are given a third external party for
black box testing after having successfully finished the internal glass box testing exercises.

WHITE BOX TESTING


White box testing strategy deals with the internal logic and structure of the code. White
box testing is also called as glass, structural, open box or clear box testing. The tests written based
on the white box testing strategy incorporate coverage of the code written, branches, paths,
statements and internal logic of the code etc.
In order to implement white box testing, the tester has to deal with the code and hence is
needed to possess knowledge of coding and logic i.e. internal working of the code. White box test
also needs the tester to look into the code and find out which unit/statement/chunk of the code is
malfunctioning.

27
4.1.3. VALIDATION TESTING

At the end of Integration Testing, software is completely assembled as a package,


interfacing errors have been uncovered and correction testing begins.

VALIDATION TEST CRITERIA

Software Testing and Validation is achieved through serried of black box tests that
demonstrate conformity with the requirements. A test plan outlines the classes of tests to be
conducted and a test procedure defines specific test cases that will be used to demonstrate
conformity with requirements. Both, the plan and the procedure are designed to ensure that all
functional requirements are achieved, documentation is correct and other requirements are met.

4.2. SYSTEM IMPLEMENTATION

The purpose of System Implementation can be summarized as follows:


It making the new system available to a prepared set of users (the deployment), and
positioning on-going support and maintenance of the system within the Performing Organization
(the transition). At a finer level of detail, deploying the system consists of executing all steps
necessary to educate the Consumers on the use of the new system, placing the newly developed
system into production, confirming that all data required at the start of operations is available and
accurate, and validating that business functions that interact with the system are functioning
properly. Transitioning the system support responsibilities involves changing from a system
development to a system support and maintenance mode of operation, with ownership of the new
system moving from the Project Team to the Performing Organization.
List of

28
System implementation is the important stage of project when the theoretical design is tuned
into practical system. The main stages in the implementation are as follows:
• Planning
• Training
• System testing and
• Changeover Planning
Planning is the first task in the system implementation. Planning means deciding on the method
and the time scale to be adopted. At the time of implementation of any system people from different
departments and system analysis involve. They are confirmed to practical problem of controlling
various activities of people outside their own data processing departments. The line managers
controlled through an implementation coordinating committee. The committee considers ideas,
problems and complaints of user department, it must also consider;
• The implication of system environment
• Self selection and allocation form implementation tasks
• Consultation with unions and resources available
• Standby facilities and channels of communication
The following roles are involved in carrying out the processes of this phase. Detailed
descriptions of these roles can be found in the Introductions to Sections I and III.
• Project Manager
• Project Sponsor
• Business Analyst
• Data/Process Modeler
• Technical Lead/Architect
• Application Developers
• Software Quality Assurance (SQA) Lead

29
Technical Support (Help Desk, Documentation, Trainers)
• Customer Decision-Maker
• Customer Representative
• Consumer
The purpose of Prepare for System Implementation is to take all possible steps to ensure that
the upcoming system deployment and transition occurs smoothly, efficiently, and flawlessly. In
the implementation of any new system, it is necessary to ensure that the Consumer community is
best positioned to utilize the system once deployment efforts have been validated. Therefore, all
necessary training activities must be scheduled and coordinated. As this training is often the first
exposure to the system for many individuals, it should be conducted as professionally and
competently as possible. A positive training experience is a great first step towards Customer
acceptance of the system.
During System Implementation it is essential that everyone involved be absolutely
synchronized with the deployment plan and with each other. Often the performance of deployment
efforts impacts many of the Performing Organization’s normal business operations. Examples of
these impacts include:
Consumers may experience a period of time in which the systems that they depend on to
perform their jobs are temporarily unavailable to them. They may be asked to maintain detailed
manual records or logs of business functions that they perform to be entered into the new system
once it is operational.
Technical Services personnel may be required to assume significant implementation
responsibilities while at the same time having to continue current levels of service on other critical
business systems.

30
Because of these and other impacts, the communication of planned deployment activities
to all parties involved in the project is critical. A smooth deployment requires strong leadership,
planning, and communications. By this point in the project lifecycle, the team will have spent
countless hours devising and refining the steps to be followed. During this preparation process the
Project Manager must verify that all conditions that
Must be met prior to initiating deployment activities have been met, and that the final ‘green light’
is on for the team to proceed. The final process within the System Development Lifecycle is to
transition ownership of the system support responsibilities to
The Performing Organization. In order for there to be an efficient and effective transition, the
Project Manager should make sure that all involved parties are aware of the transition plan, the
timing of the various transition activities, and their role in its execution.
Due to the number of project participants in this phase of the SDLC, many of the necessary
conditions and activities may be beyond the direct control of the Project Manager. Consequently,
all Project Team members with roles in the implementation efforts must understand the plan,
acknowledge their responsibilities, recognize the extent to which other implementation efforts are
dependent upon them, and confirm their commitment.

31
CONCLUSION

32
5. CONCLUSION

The term “Access to Justice “means different things to different people .For some the
subject centralizes the issue of overcoming the procedural barriers within the court system itself.
Such an approach tends to concentrate on issues of overcoming delays within the court
process,efficiency,formality and cost of proceedings, and the organization ,structure and
administration of courts and tribunals. The project is helps in advocate crop to maintain the details
of the client and case information in efficient manner. It is a user friendly project. The attendance
is maintained easily through this project. It will reduce the paper cost and man power.
.

33
6. SCOPE FOR FUTURE ENHANCEMENT

The project has been developed in ASP.Net as website and the objectives are
achieved successfully. The project has been developed with front end as VB.Net and backend
as SQL Server. The frontend can also be changed. ASP.Net can replace the front-end tool
such as HTML and CSS for more speed. The system is currently developed and ready for
implementation to include the system is highly feasible and user friendly. To provide better
facility regarding security, it uses security provider software and we access any place and any
where use that. It can have an enhancement on proper in the future according to the user’s
requirements.

34
BIBLIOGRAPHY

35
BIBLIOGRAPHY

BOOKS:

• .Elias Awath, “SYSTEM ANALYSIS AND DESIGN”,Tata Mc Graw Hill Publication, Sixth
Edition,2003
• .S.Ramachandran,”COMPUTER AIDED DESIGN”, Air Walk Publication, Third Edition,2003
• .Richard Fairley, “SOFTWARE ENGINEERING CONCEPTS”, Tata Mc Graw Hill Publication,
Second Edition,1997
• .Distributed .NET Programming in VB .NET by Tom Barnaby
• Professional VB.NET, 2nd Edition by Fred Barwell, et al
• The .NET Languages: A Quick Translation Guide by Brian Bischof
• Programming VB.NET: A Guide for Experienced Programmers
by Gary Cornell, Jonathan Morrison
• Learning Visual Basic.NET Through Applications by Clayton Crooks II
• Visual Basic .NET How to Program (2nd Edition) by Harvey M. Deitel, Paul J. Deitel,
Tem R. Nieto

36
APPENDICES

37
A.TABLE DESIGN
TABLE NAME: ADVOCATE DETAILS
PRIMARY KEY: ADMIN ID

S.No Column Name Data Type Size Description


1. Aid Varchar 50 Avocate ID
2. AName Varchar 50 Advocate name
3. Gender Varchar 08 Gender
4. Cat Varchar 50 Category
5. Cno Varchar 50 Contact number
6. mail Id Varchar 50 Mail ID
7. addr Varchar 50 Address

TABLE NAME: APPOINTMENT DETAILS


PRIMARY KEY: ADMIN ID

S.No Column Name Data Type Size Description


1 aid varchar 50 Appointment ID
2 cid varchar 50 Client ID
3 cname varchar 50 Client name
4 cno varchar 10 Contact number
5 mailid varchar 50 Mail ID
6 adate varchar 10 Appointment date
7 atime varchar 10 Appointment time
8 advid varchar 50 Advocate ID
9 advname varchar 50 Advocate name
10 status varchar 50 Appointment status

38
TABLE NAME: CLIENT DETAILS
PRIMARY KEY: CLIENT ID

S.No Column Name Data Type Size Description


1 cid varchar 50 Client id
2 cname varchar 50 Client name
3 gender varchar 10 Gender
4 dob varchar 10 Date of birth
5 cno varchar 50 Contact number
6 mailid varchar 50 Mail ID
7 addr varchar 50 address

TABLE NAME: HEARING DETAILS


PRIMARY KEY: HEARING ID

S.No Column Name Data Type Size Description


1 hid varchar 50 Hearing ID
2 cid varchar 50 Case ID
3 cname varchar 50 Client name
4 cno varchar 50 Contact number
5 mailid varchar 50 Mail ID
6 ctype varchar 50 Case type
7 hdate varchar 50 Hearing date
8 aid varchar 50 Advocate ID
9 aname varchar 50 Advocate name
10 ctname varchar 50 Court name

39
TABLE NAME: LAW AND CASE INFORMATION
PRIMARY KEY: CASE ID

S.No Column Name Data Type Size Description


1 caseid varchar 50 Case ID
2 cdetail varchar 50 Case details
3 descr varchar 50 description
4 sect varchar 50 Section
5 punish varchar 50 Punishment duration
6 famt varchar 50 Fine amount

TABLE NAME: PAYMENT


PRIMARY KEY: CASE ID

S.No Column Name Data Type Size Description


1 cid varchar 50 CaseID
2 cdetail varchar 50 Case details
3 tamt varchar 50 Total Amount
4 paid varchar 50 Amount Paid
5 balance varchar 50 Balance amount

TABLE NAME: REGISTRATION


PRIMARY KEY: USER ID

S.No Column Name Data Type Size Description


1 uid varchar 50 User ID
2 uname varchar 50 User name
3 pwd varchar 50 Password
4 addr varchar 50 Address
5 cno varchar 50 Contact number
6 mailid varchar 50 Mail ID

40
B.DATA FLOW DIAGRAM

Data flow diagram:

Level-0:

Send request Receive details Admin


Law and
User
legal case
information
system

Receive response send response

41
Level-1

Register the details store details


Registe
New user Reg_tb
r

Login the page

Provide permission store details Log_tb


Admin Provide
login
authenticat
ion

Search law details

law_tb
Update details Law

Retrieve

42
ER diagram:

Nam
e

Id pw
Nam add d
e r

User Register
Register

Lawi Sectio
d n

Law details
Searc
h

Ad_i Nam
d e

Advocate
details

43
SAMPLE CODING

44
C.SAMPLE CODING

Imports System.Data.SqlClient
Public Class advocate
Dim con As New SqlConnection("Data Source=DOT-2\;Initial Catalog=law;Persist Security Info=True;User
ID=sa;pwd=sql;")
Dim com As New SqlCommand
Dim qry As String
Dim adp As New SqlDataAdapter
Dim ds As New DataSet
Dim i As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" Or
TextBox5.Text = "" Then
MsgBox("Enter All Fileds")
Else
qry = "insert into advocate values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + ComboBox1.Text +
"','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "')"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Sucessfully Saved")
con.Close()
End If
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button2.Click
qry = "update advocate set aname='" + TextBox2.Text + "',gender='" + ComboBox1.Text + "',cat='" +
TextBox3.Text + "',cno='" + TextBox4.Text + "',mailid='" + TextBox5.Text + "',addr='" + TextBox6.Text + "'
where aid='" + TextBox1.Text + "'"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Updated")
con.Close()
End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button4.Click
TextBox1.Text = ""

45
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button5.Click
qry = "delete from advocate where aid='" + TextBox1.Text + "'"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("deleted")
con.Close()
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button3.Click
Try
qry = "select * from advocate where aid='" + TextBox1.Text + "'"
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "advocate")
TextBox2.Text = ds.Tables("advocate").Rows(0)(1)
ComboBox1.Text = ds.Tables("advocate").Rows(0)(2)
TextBox3.Text = ds.Tables("advocate").Rows(0)(3)
TextBox4.Text = ds.Tables("advocate").Rows(0)(4)
TextBox5.Text = ds.Tables("advocate").Rows(0)(5)
TextBox6.Text = ds.Tables("advocate").Rows(0)(6)
Catch ex As Exception
MsgBox("Invalid")
End Try
End Sub

Private Sub advocate_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


MyBase.Load

Dim boundWidth As Integer = Screen.PrimaryScreen.Bounds.Width


Dim boundHeight As Integer = Screen.PrimaryScreen.Bounds.Height
Dim x As Integer = boundWidth - Me.Width
Dim y As Integer = boundHeight - Me.Height
Me.Location = New Point(x / 2, y / 2)
Try
Dim p As String
qry = "select aid from advocate"
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet

46
adp.Fill(ds, "advocate")
i = ds.Tables("advocate").Rows.Count
p = ds.Tables("advocate").Rows(i - 1)(0)
p = Mid(p, 1)
p = Val(p) + 1

TextBox1.Text = +p

Catch ex As Exception
TextBox1.Text = "1"
End Try

End Sub
End Class

Imports System.Data.SqlClient
Public Class hearing
Dim con As New SqlConnection("Data Source=DOT-2\;Initial Catalog=law;Persist Security Info=True;User
ID=sa;pwd=sql;")
Dim com, com1, com2 As New SqlCommand
Dim qry, qry1, qry2 As String
Dim adp, adp1, adp2 As New SqlDataAdapter
Dim ds, ds1, ds2 As New DataSet
Dim i As Integer

Private Sub hearing_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


MyBase.Load
Try
qry = "select aid from advocate "
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "0")
i = ds.Tables("0").Rows.Count
For j = 0 To i - 1
ComboBox2.Items.Add(ds.Tables("0").Rows(j)(0))
Next
Catch ex As Exception
MsgBox("invalid")
End Try

Try
qry = "select cid from client "
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet

47
adp.Fill(ds, "0")
i = ds.Tables("0").Rows.Count
For j = 0 To i - 1
ComboBox1.Items.Add(ds.Tables("0").Rows(j)(0))
Next
Catch ex As Exception
MsgBox("invalid")
End Try

Dim boundWidth As Integer = Screen.PrimaryScreen.Bounds.Width


Dim boundHeight As Integer = Screen.PrimaryScreen.Bounds.Height
Dim x As Integer = boundWidth - Me.Width
Dim y As Integer = boundHeight - Me.Height
Me.Location = New Point(x / 2, y / 2)
Try
Dim p As String
qry = "select hid from hearing"
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "hearing")
i = ds.Tables("hearing").Rows.Count
p = ds.Tables("hearing").Rows(i - 1)(0)
p = Mid(p, 1)
p = Val(p) + 1

TextBox1.Text = +p

Catch ex As Exception
TextBox1.Text = "101"
End Try

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button2.Click
Try
qry = "select * from hearing where hid='" + TextBox1.Text + "'"
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "hearing")
ComboBox1.Text = ds.Tables("hearing").Rows(0)(1)
TextBox2.Text = ds.Tables("hearing").Rows(0)(2)
TextBox3.Text = ds.Tables("hearing").Rows(0)(3)
TextBox4.Text = ds.Tables("hearing").Rows(0)(4)
TextBox5.Text = ds.Tables("hearing").Rows(0)(5)
TextBox6.Text = ds.Tables("hearing").Rows(0)(6)
ComboBox2.Text = ds.Tables("hearing").Rows(0)(7)

48
TextBox7.Text = ds.Tables("hearing").Rows(0)(8)
TextBox8.Text = ds.Tables("hearing").Rows(0)(9)

Catch ex As Exception
MsgBox("Invalid")
End Try
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button1.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" Or
TextBox5.Text = "" Then
MsgBox("Enter All Fileds")
Else
qry = "insert into hearing values('" + TextBox1.Text + "','" + ComboBox1.Text + "','" + TextBox2.Text +
"','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" +
ComboBox2.Text + "','" + TextBox7.Text + "','" + TextBox8.Text + "')"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Sucessfully Saved")
con.Close()
End If
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
ComboBox2.Text = "--Select--"
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
ComboBox2.Text = "--Select--"
End Sub

49
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button4.Click
qry = "update hearing set cid='" + ComboBox1.Text + "',cname='" + TextBox2.Text + "',cno='" +
TextBox3.Text + "',mailid='" + TextBox4.Text + "',ctype='" + TextBox5.Text + "',hdate='" + TextBox6.Text +
"',aid='" + ComboBox2.Text + "',aname='" + TextBox7.Text + "',ctname='" + TextBox8.Text + "' where hid='" +
TextBox1.Text + "'"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Updated")
con.Close()
End Sub

Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles ComboBox2.SelectedIndexChanged
Try
qry1 = "select * from advocate where aid='" + ComboBox2.Text + "'"
com1 = New SqlCommand(qry1, con)
adp1 = New SqlDataAdapter(com1)
ds1 = New DataSet
adp1.Fill(ds1, "advocate")
TextBox7.Text = ds1.Tables("advocate").Rows(0)(1)

Catch ex As Exception
MsgBox("Invalid")
End Try
End Sub

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles ComboBox1.SelectedIndexChanged
Try
qry2 = "select * from client where cid='" + ComboBox1.Text + "'"
com2 = New SqlCommand(qry2, con)
adp2 = New SqlDataAdapter(com2)
ds2 = New DataSet
adp2.Fill(ds2, "client")
TextBox2.Text = ds2.Tables("client").Rows(0)(1)
TextBox3.Text = ds2.Tables("client").Rows(0)(4)
TextBox4.Text = ds2.Tables("client").Rows(0)(5)
Catch ex As Exception
MsgBox("Invalid")
End Try
End Sub

Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button3.Click
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""

50
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
ComboBox2.Text = "--Select--"
End Sub
End Class

Imports System.Data.SqlClient
Public Class payment
Dim con As New SqlConnection("Data Source=DOT-2\;Initial Catalog=law;User ID=sa;pwd=sql;")
Dim com, com1 As New SqlCommand
Dim adp, adp1 As New SqlDataAdapter
Dim ds, ds1 As New DataSet
Dim qry, qry1 As String
Dim i As Integer
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label5.Click

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button1.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" Then
MsgBox("Enter All Fileds")
Else
qry = "insert into payment values('" + ComboBox1.Text + "','" + TextBox1.Text + "','" + TextBox2.Text +
"','" + TextBox3.Text + "','" + TextBox4.Text + "')"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Sucessfully Saved")
con.Close()
End If
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""

End Sub

Private Sub payment_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


MyBase.Load
Dim boundWidth As Integer = Screen.PrimaryScreen.Bounds.Width
Dim boundHeight As Integer = Screen.PrimaryScreen.Bounds.Height
Dim x As Integer = boundWidth - Me.Width
Dim y As Integer = boundHeight - Me.Height

51
Me.Location = New Point(x / 2, y / 2)
Try
qry = "select cid from client "
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "0")
i = ds.Tables("0").Rows.Count
For j = 0 To i - 1
ComboBox1.Items.Add(ds.Tables("0").Rows(j)(0))
Next
Catch ex As Exception
MsgBox("invalid")
End Try

End Sub

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles ComboBox1.SelectedIndexChanged
Try
qry = "select cname from client where cid='" + ComboBox1.Text + "'"
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "client")

TextBox1.Text = ds.Tables("client").Rows(0)(0)

Catch ex As Exception
End Try

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button4.Click
qry = "delete from payment where pid='" + ComboBox1.Text + "'"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("deleted")
con.Close()
End Sub

'Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


' Try
' qry1 = "select * from payment where pid='" + ComboBox1.Text + "'"
' com1 = New SqlCommand(qry1, con)
' adp1 = New SqlDataAdapter(com1)
' ds1 = New DataSet
' adp1.Fill(ds1, "payment")

52
' TextBox1.Text = ds1.Tables("payment").Rows(0)(1)
' TextBox2.Text = ds1.Tables("payment").Rows(0)(2)
' TextBox3.Text = ds1.Tables("payment").Rows(0)(3)
' TextBox4.Text = ds1.Tables("payment").Rows(0)(4)

' Catch ex As Exception


' End Try
'End Sub

Private Sub TextBox3_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles


TextBox3.LostFocus
TextBox4.Text = Val(TextBox2.Text) - Val(TextBox3.Text)
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button3.Click
ComboBox1.Text = "--Select--"
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
End Sub
End Class

53
D. SAMPLE INPUT

54
D.SAMPLE INPUT

Figure D.1:Login

55
Figure D.2: Main form

56
FigureD.3: Client details

57
Figure D.4: Advocate details

58
Figure D.5: Law and case information

59
Figure D.6: Appointment details

60
Figure D.7: Hearing details

61
Figure D.8: Payment Details

62
E.SAMPLE OUTPUT

63
E.SAMPLE OUTPUT

Figure E.1: Login

64
Figure E.2: Client details

65
FigureD.3: Advocate details

66
Figure D.4: Law and case information

67
Figure E.5: Appointment details

68
Figure E.6: Hearing details

69
Figure E.7: Payment details

70

You might also like