Hema Project
Hema Project
INTRODUCTION
Legal awareness ,sometimes called public legal education or legal literacy ,is the
empowerment of individuals regarding issues involving the law.
Legal awareness helps to promote consciousness of legal culture,participation in
the formation of laws and the rules of law.
Public legal education ,sometimes called civics education,comprises a range of
activities intended to bulid public awareness and skills related to law and the justice
system.
This term also refers to the field of practice and study concerned with those
activites, and to a social and professional movement that advocates greater societal
commitment to educating people about the law.
This is because laws exist as part of a larger organizational ecosystem in which
the interests of the organization as well as those of the acors become inectricably linked
to the ways in which they are enacted.
1
2. SYSTEM STUDY
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.
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
2.3 MODULE DESCRIPTION
2.3.1MODULE DESCRIPTION
• Client
• Advocate
• Appointment
• Payment
• Law and case information
• search
2.3.1.1CLIENT 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.
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.
2.3.1.3ADVOCATE DETAILS
This module contains the advocate details such as advocate id, name, address, phone
number, mail id and rating of particular advocate.
2.3.1.4APPOINTMENT 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
2.3.1.5SEARCH 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
3
3.SYSTEM SPECIFICATION
3.2SOFTWARESPECIFICATION
4
3.3SOFTWARE ENVIRONMENT
5
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.
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
6
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.
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
7
• Tabs
• Properties windows
• Solution explorer
• Output windows
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.
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 reporting, message queuing etc.
Clipboard ring : Contains a list of the last few items that is copied to the system.
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.
Web form :Contains server side web form controls.
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.
8
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
doubleclicking 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.
9
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.
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
10
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!
11
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.
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.
12
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.
13
4. SYSTEM TESTING ANDIMPLEMENTATION
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.
4.1.1TESTING OBJECTIVES
• 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.
14
4.1.2TESTING 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 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.
15
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.
4.1.5BLACK 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.
4.1.6WHITE 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.
16
4.1.7 VALIDATION TESTING
At the end of Integration Testing, software is completely assembled as a package,
interfacing errors have been uncovered and correction testing begins.
17
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 o
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
18
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
19
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.
20
5. SYSTEM 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.
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.
21
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.
22
5.3 DATABASE DESIGN
5.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.
5.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.
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
23
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
24
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.
25
7. 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.
.
26
BIBLIOGRAPHY
BOOKS:
27
APPENDICIES
A.TABLE DESIGN
28
TABLE NAME: HEARING DETAILS PRIMARY KEY: HEARING ID
29
B.DATA FLOW DIAGRAM
Level-0:
Level-1
30
Register the details store details
Registe
New user Reg_tb
r
law_tb
Update details Law
Retrieve
ER diagram:
31
Nam
Id pw
Nam add
User Register
Register
Lawi Sectio
Law details
Searc
h
Ad_i Nam
Advocate
details
C.SAMPLE CODING
32
ImportsSystem.Data.SqlClient
PublicClass advocate
Dim con AsNewSqlConnection("Data Source=DOT-2\;Initial Catalog=law;Persist Security Info=True;User
ID=sa;pwd=sql;")
Dim com AsNewSqlCommand
DimqryAsString
DimadpAsNewSqlDataAdapter
Dim ds AsNewDataSet
DimiAsInteger
PrivateSub Button1_Click(ByVal sender AsSystem.Object, ByVal e AsSystem.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 = NewSqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Sucessfully Saved")
con.Close()
EndIf
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
EndSub
33
EndSub
34
PrivateSubadvocate_Load(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs)
HandlesMyBase.Load
DimboundWidthAsInteger = Screen.PrimaryScreen.Bounds.Width
DimboundHeightAsInteger = Screen.PrimaryScreen.Bounds.Height
Dim x AsInteger = boundWidth - Me.Width
Dim y AsInteger = boundHeight - Me.Height
Me.Location = New Point(x / 2, y / 2)
Try
Dim p AsString qry = "select aid
from advocate" com =
NewSqlCommand(qry, con)
adp = NewSqlDataAdapter(com)
ds = NewDataSet
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"
EndTry
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClass hearing
Dim con AsNewSqlConnection("Data Source=DOT-2\;Initial Catalog=law;Persist Security Info=True;User
ID=sa;pwd=sql;")
Dim com, com1, com2 AsNewSqlCommand
Dimqry, qry1, qry2 AsString
Dimadp, adp1, adp2 AsNewSqlDataAdapter
Dim ds, ds1, ds2 AsNewDataSet
DimiAsInteger
35
PrivateSubhearing_Load(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs)
HandlesMyBase.Load
Try
qry = "select aid from advocate "
com = NewSqlCommand(qry, con)
adp = NewSqlDataAdapter(com)
ds =
NewDataSetadp.Fill(ds, "0")
i = ds.Tables("0").Rows.Count
For j = 0 Toi - 1
ComboBox2.Items.Add(ds.Tables("0").Rows(j)(0))
Next
Catch ex As Exception
MsgBox("invalid")
EndTry
Try
qry = "select cid from client "
com = NewSqlCommand(qry, con)
adp = NewSqlDataAdapter(com)
ds = NewDataSet
adp.Fill(ds, "0")
i = ds.Tables("0").Rows.Count
For j = 0 Toi - 1
ComboBox1.Items.Add(ds.Tables("0").Rows(j)(0))
Next
Catch ex As Exception
MsgBox("invalid")
EndTry
DimboundWidthAsInteger = Screen.PrimaryScreen.Bounds.Width
DimboundHeightAsInteger = Screen.PrimaryScreen.Bounds.Height
Dim x AsInteger = boundWidth - Me.Width
Dim y AsInteger = boundHeight - Me.Height
Me.Location = New Point(x / 2, y / 2)
Try
Dim p AsString qry = "select hid
from hearing" com =
NewSqlCommand(qry, con)
adp = NewSqlDataAdapter(com)
ds = NewDataSetadp.Fill(ds,
"hearing") i=
ds.Tables("hearing").Rows.Count
36
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"
EndTry
EndSub
Catch ex As Exception
MsgBox("Invalid")
EndTry
EndSub
37
PrivateSub Button1_Click(ByVal sender AsSystem.Object, ByVal e AsSystem.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 = NewSqlCommand(qry,
con) con.Open()
com.ExecuteNonQuery()
MsgBox("Sucessfully Saved")
con.Close()
EndIf
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
ComboBox2.Text = "--Select--"
EndSub
38
"',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 = NewSqlCommand(qry, con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Updated")
con.Close()
EndSub
Catch ex As Exception
MsgBox("Invalid")
EndTry
EndSub
39
PrivateSub Button3_Click_1(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs)
Handles Button3.Click
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
ComboBox2.Text = "--Select--"
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClass payment
Dim con AsNewSqlConnection("Data Source=DOT-2\;Initial Catalog=law;User ID=sa;pwd=sql;")
Dim com, com1 AsNewSqlCommand
Dimadp, adp1 AsNewSqlDataAdapter
Dim ds, ds1 AsNewDataSet
Dimqry, qry1 AsString
DimiAsInteger
PrivateSub Label5_Click(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs)
Handles Label5.Click
EndSub
40
EndIf
TextBox1.Text = ""
TextBox2.Text = ""
ComboBox1.Text = "--Select--"
TextBox3.Text = ""
TextBox4.Text = ""
EndSub
EndSub
TextBox1.Text = ds.Tables("client").Rows(0)(0)
41
Catch ex As Exception
EndTry
EndSub
42
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
EndSub
EndClass
D. SAMPLE INPUT
43
D.SAMPLE INPUT
Main form
44
Client details
Advocate details
45
Law and case information
Appointment details
46
Hearing details
Payment Details
47
E.SAMPLE OUTPUT
a).SAMPLE OUTPUT
Login
48
Law and case information
49
Appointment details
50
Hearing Details
51
Payment details
52