Vehicle Insurance Management System Project Report
Vehicle Insurance Management System Project Report
Vehicle Insurance Management System Project Report
ACKNOWLEDGEMENT
Before getting into the thick of the things, we would like to express
our deep gratitude to the people who helped us during the course of this
project. We are grateful to our project guide for her guidance throughout
this project research and work
Names of students:
Page 1
INSURANCE MANAGEMENT SYSTEM
ABSTRACT
Page 2
INSURANCE MANAGEMENT SYSTEM
INDEX
Acknowledgement--------------------------------------------1
Abstract---------------------------------------------------------2
Introduction----------------------------------------------------4
Overview--------------------------------------------------------5
ER Diagram-----------------------------------------------------7
Converting ER Diagram into Tables-----------------------8
Table Structures-----------------------------------------------9
Normalisation--------------------------------------------------13
Code--------------------------------------------------------------14
Snapshots-------------------------------------------------------43
Conclusion------------------------------------------------------49
Scope of Enhancement---------------------------------------49
Page 3
INSURANCE MANAGEMENT SYSTEM
INTRODUCTION
Visual Basic is an interesting topic, which has different types. It has all the
methods have their won features with each having merits and demerits which help in
data processing. The topic includes their architecture representing the elements
involved in it and their action is also specified.
Visual Basic 6.0 allows creating object-oriented applications. Visual Basic 6.0
profoundly concentrates on the Internet development features, Active X technology,
enhanced controls, enhanced features of existing control, client/server, new language
features development, data access, a few design enhancement etc.,
SYSTEM REQUIREMENTS:-
1. Windows Platform (XP preferred).
2. 512 MB DDR2 RAM.
3. At least 5 GB HDD space FREE.
4. Processor speed 1.7 Ghz or higher.
Page 4
INSURANCE MANAGEMENT SYSTEM
SYSTEM DESCRIPTION:
The proposed system is for making easier to manage policy holder details, agent
details, policy details, claimant details and payment details. So this will be developed for
managing the insurance management system. The overall system is control through the main
menu.
1. Policy Schemes.
2. Agent Login.
3. Customer Login.
4. Administrator Login.
5. About us.
6. Contact us.
POLICY SCHEMES:-
1. LIFE INSURANCE:-
a) Whole life policy
b) Term life policy
c) Endownment policy
d) Pension plans
2. GENERAL INSURANCE:-
a) Home insurance
b) Auto insurance
c) Fire insurance
AGENT LOGIN
The agent login form links to-
Page 5
INSURANCE MANAGEMENT SYSTEM
1. Basic agent information like contact details and address which will be shown in
customer insurance information window.
2. All the information related to insurances which he has made to his clients.
3. Commission received by him for each insurance made by him respectively.
4. Option to create a new policy to any existing/new client.
5. Option to edit the contact information of its client.
6. Option to delete a policy of any client in case of policy lapse.
CUSTOMER LOGIN:-
The form contains the agent information like-
1. Personal information required by insurance agency.
2. Next premium due of respective insurances by the client along with maturity
date,agent info etc.
ADMINISTRATOR LOGIN:-
Administrator has rights to-
1. Create new agent
2. Edit agent’s information and its commission percentage.
3. Delete an agent’s database and all its policies respectively.
ABOUT US:-
It contains information about the organization’s history and its achievements.
CONTACT US:-
It contains the contact details of the organization’s various branches located in different parts
of a country.
REPORTS:
Sales report
Claimant information report
Page 6
INSURANCE MANAGEMENT SYSTEM
ER DIAGRAM
Page 7
INSURANCE MANAGEMENT SYSTEM
2. Converting relationships
Relationships are based on cardinalities and degree of the relation
m:n
Binary 1:1
3. Relations converted
Page 8
INSURANCE MANAGEMENT SYSTEM
holder table and policy table respectively ,as its composite primary
key.
TABLE STRUCTURES
The structure of all tables included in the project is as under:-
1. PH
NAME CHAR(15)
ADDRESS CHAR(15)
PHONE NUMBER(10)
PWD VARCHAR2(10)
DOB DATE
AGE NUMBER(2)
MS VARCHAR2(10)
SEX VARCHAR2(6)
SAL NUMBER(10)
2. AGENT
NAME CHAR(20)
ADDRESS CHAR(32)
PHONE NUMBER(10)
Page 9
INSURANCE MANAGEMENT SYSTEM
PWD VARCHAR2(10)
3. INSURANCE
IODATE DATE
4. SALES
5. POLICY
TYPE CHAR(32)
TIME_PER NUMBER(4)
Page
10
INSURANCE MANAGEMENT SYSTEM
6.CLAIMANT
SEX CHAR(6)
DOB DATE
MS CHAR(10)
AGE NUMBER(3)
PHONE NUMBER(10)
VIEW STRUCTURES
1.POL
Name Null? Type
TYPE CHAR(32)
2.INS
Name Null? Type
PREMIUM NUMBER(10)
AMOUNT NUMBER(10)
POLICY_DURATION NUMBER(4)
IODATE DATE
Page
11
INSURANCE MANAGEMENT SYSTEM
3.CLIENT
Name Null? Type
AGENT_KEY NUMBER(5)
NAME CHAR(15)
ADDRESS CHAR(15)
PHONE NUMBER(10)
PREMIUM NUMBER(10)
AMOUNT NUMBER(10)
POLICY_DURATION NUMBER(4)
TYPE CHAR(32)
IODATE DATE
NORMALISATION
Own table normalization
It keeps track to keep the database less vulnerable to some types of logical
inconsistencies and anomalies.Tablescan be normalized to varying degrees like
first,second,BCNF.Greater the degree of normalization more is the protected from
inconsistencies and anomalies.
1. 1NF
DEFINITION:
Single valued
Restricted to assuming atomic values
Functionally dependent on the primary key
Page
12
INSURANCE MANAGEMENT SYSTEM
2. 2NF
DEFINITION:
A relational table is said to be in second normal form 2NF if it is in 1NF and
every non-key attribute is fully functionally dependent upon primary key.
The criteria for second normal form(2NF) are:
The table must be in !NF.
Every non-key attributes of the table must be dependent upon the entire
primary key.
Tables agent ,policy holder ,claimant ,insurance ,sales are also in 2NF.
our database satisfies all the conditions of 2NF since The tables are in
1NF and Every non-key attributes of the table must be dependent upon
the entire primary key.
3. 3NF
A relation is in 3NF if and only if,it is in 2NF and there are no transitive
functional dependencies.
Transitive functional dependencies arise.
When one non-key attribute is functionally dependent on another non-
key attribute.
Functional Dependency: non-key attribute>non-key attribute.
When there is redundancy in the database.
The tables insurance ,claimant ,policy holder and sales have been
converted into 3NF.
Page
13
INSURANCE MANAGEMENT SYSTEM
CODES
ADDPOL FORM
Private Sub Command1_Click()
r2.Open "select * from ph", cn, 2, 3
r3.Open "select * from sales", cn, 2, 3
rs.Open "select * from insurance", cn, 2, 3
r4.Open "select * from claimant", cn, 2, 3
strsql = "insert into ph values(" & Text4(0).Text & ",'" & Text4(1).Text & "','" & Text4(2).Text & "'," &
Text4(3).Text & ",'" & Text5.Text & "'," & Text6.Text & ",'" & Text4(5).Text & "'," & Text4(6).Text & ",'" &
Text4(7).Text & "','" & Text4(4).Text & "')"
strsql1 = "insert into sales values(" & agpg.Label5.Caption & "," & 0.05 * Text2.Text & "," & Text4(0).Text
& "," & Label16.Caption & ")"
strsql2 = "insert into insurance values(" & Text2.Text / Text3.Text & "," & Text2.Text & "," & Text3.Text &
"," & Text4(0).Text & "," & Label16.Caption & ",' " & Text1.Text & "')"
strsql3 = "insert into claimant values('" & Text7.Text & "','" & Text9.Text & "'," & Text4(0).Text & "," &
Label16.Caption & ",'" & Text10.Text & "','" & Text12.Text & "','" & Text11.Text & "'," & Text13.Text & ","
& Text8.Text & ")"
cn.Execute strsql
cn.Execute strsql1
cn.Execute strsql2
cn.Execute strsql3
MsgBox "added"
End Sub
agpg.Show
agpg.Label13.Visible = True
Unload Me
End Sub
Page
14
INSURANCE MANAGEMENT SYSTEM
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
Combo1.AddItem (r1.Fields(1))
r1.MoveNext
Loop
End Sub
r1.MoveFirst
Label16.Caption = r1.Fields(0)
Exit Do
End If
r1.MoveNext
Loop
Page
15
INSURANCE MANAGEMENT SYSTEM
End Sub
ADMN FORM
r1.MoveFirst
r2.MoveFirst
r3.MoveFirst
rs.MoveFirst
If MsgBox("Are you sure you to delete this agent?", vbYesNo) = vbYes Then
r3.MoveFirst
r3.Delete
End If
r3.MoveNext
Loop
rs.Delete
End If
rs.MoveNext
Loop
End If
r2.MoveNext
Loop
End If
r2.MoveFirst
Page
16
INSURANCE MANAGEMENT SYSTEM
r2.Delete
End If
r2.MoveNext
Loop
r1.MoveFirst
r1.Delete
Exit Do
End If
r1.MoveNext
Loop
MsgBox "deleted"
End Sub
Frame2(1).Visible = True
Frame2(0).Visible = False
End Sub
aginfo.Show
End Sub
strsql = "insert into agent values('" & Text1(0).Text & "','" & Text2(0).Text & "'," & Text3(0).Text & "," &
Text4(0).Text & ",'" & Text5(0).Text & "')"
cn.Execute strsql
End Sub
Page
17
INSURANCE MANAGEMENT SYSTEM
Frame2(0).Visible = True
Frame2(1).Visible = False
End Sub
strsql1 = "update agent set name= '" & Text1(1) & "',address='" & Text2(1) & "',phone=" & Text3(1) &
"where id=" & Combo1.Text
cn.Execute strsql1
End Sub
r1.MoveFirst
Text3(1) = r1.Fields(2)
Text2(1) = r1.Fields(1)
Text1(1) = r1.Fields(0)
Text4(1) = r1.Fields(4)
Text5(1) = r1.Fields(3)
Exit Do
End If
r1.MoveNext
Loop
End Sub
main1.Show
Unload Me
Page
18
INSURANCE MANAGEMENT SYSTEM
End Sub
Frame2(0).Visible = False
Frame2(1).Visible = False
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
r1.MoveFirst
Combo1.AddItem (r1.Fields(3))
Combo2.AddItem (r1.Fields(3))
r1.MoveNext
Loop
End Sub
Agninfo form
Page
19
INSURANCE MANAGEMENT SYSTEM
Set dg.DataSource = r2
dg.Refresh
End Sub
admn.Show
Unload Me
End Sub
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
Combo1.AddItem (rs.Fields(3))
rs.MoveNext
Loop
Page
20
INSURANCE MANAGEMENT SYSTEM
End Sub
Agpg Form
Private Sub Command1_Click()
addpol.Show
End Sub
r2.MoveFirst
If MsgBox("Are you sure you to delete this customer?", vbYesNo) = vbYes Then
strsql1 = "delete from insurance where p_holder=" & Combo2.Text & " and policy_key=" &
Label12.Caption
strsql2 = "delete from sales where p_holder=" & Combo2.Text & " and policy_key=" &
Label12.Caption
strsql3 = "delete from claimant where p_holder=" & Combo2.Text & " and policy_key=" &
Label12.Caption
flag = flag + 1
End If
r4.MoveNext
Loop
MsgBox strsql1
cn.Execute strsql1
MsgBox strsql2
cn.Execute strsql2
MsgBox strsql3
cn.Execute strsql3
If flag = 1 Then
Page
21
INSURANCE MANAGEMENT SYSTEM
MsgBox strsql4
cn.Execute strsql4
End If
MsgBox "deleted"
End If
Exit Do
End If
r2.MoveNext
Loop
End Sub
pass.Show
End Sub
edtpol.Show
End Sub
End Sub
main1.Show
Unload Me
End Sub
Page
22
INSURANCE MANAGEMENT SYSTEM
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
If rs.Fields(3) = j Then
Label5.Caption = rs.Fields(3)
Label6.Caption = rs.Fields(0)
Label7.Caption = rs.Fields(1)
Label8.Caption = rs.Fields(2)
Exit Do
End If
rs.MoveNext
Loop
Set dg1.DataSource = r2
dg1.Refresh
Page
23
INSURANCE MANAGEMENT SYSTEM
Combo1.AddItem r2!Type
Combo2.AddItem r2!ph_key
r2.MoveNext
Loop
rs.MoveFirst
Label13.Visible = False
End Sub
End Sub
r3.MoveFirst
Label12.Caption = r3.Fields(0)
Exit Do
End If
r3.MoveNext
Loop
End Sub
Cinfo form
Private Sub Command1_Click()
rk.MoveFirst
r2.MoveFirst
Page
24
INSURANCE MANAGEMENT SYSTEM
For i = 0 To Label18.Count - 1
If i <> 4 Then
Label18(i).Caption = r2.Fields(i)
End If
Next
Exit Do
End If
r2.MoveNext
Loop
End If
rk.MoveNext
Loop
End Sub
rk.MoveFirst
r3.MoveFirst
ag.MoveFirst
For i = 0 To Label23.Count - 1
Label23(i).Caption = ag.Fields(i)
Next
Exit Do
Page
25
INSURANCE MANAGEMENT SYSTEM
End If
ag.MoveNext
Loop
Exit Do
End If
r3.MoveNext
Loop
Exit Do
End If
rk.MoveNext
Loop
End Sub
rk.MoveFirst
r4.MoveFirst
For i = 0 To Label33.Count - 1
If i <> 3 Then
Label33(i).Caption = r4.Fields(i)
End If
Next
Exit Do
End If
r4.MoveNext
Loop
End If
rk.MoveNext
Loop
Page
26
INSURANCE MANAGEMENT SYSTEM
End Sub
Dim x1 As Integer
rk.MoveFirst
r2.MoveFirst
amt = 0
Label42(0).Caption = r2.Fields(5)
Label42(1).Caption = r2.Fields(2)
dat = r2.Fields(5)
For x1 = 1 To r2.Fields(3)
End If
Next
Label42(3).Caption = dat
Label42(4).Caption = r2.Fields(1)
Label42(5).Caption = dat2
For i = 1 To r2.Fields(3)
Next
Label42(6).Caption = amt
Exit Do
End If
r2.MoveNext
Loop
Exit Do
Page
27
INSURANCE MANAGEMENT SYSTEM
End If
rk.MoveNext
Loop
End Sub
Dim i As Integer
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
End Sub
With Picture1(intloopindex)
Page
28
INSURANCE MANAGEMENT SYSTEM
Picture1(TabStrip1.SelectedItem.Index - 1).ZOrder 0
End With
Next intloopindex
End Sub
Edtpol form
Private Sub Command1_Click()
rs.MoveFirst
Frame1.Visible = True
Frame2.Visible = False
name1(1).Text = rs.Fields(1)
address(2).Text = rs.Fields(2)
phone(3).Text = rs.Fields(3)
sex(4).Text = rs.Fields(9)
dob(5).Text = rs.Fields(6)
age1(6).Text = rs.Fields(7)
ms(7).Text = rs.Fields(8)
pwd.Text = rs.Fields(4)
sal.Text = rs.Fields(5)
Exit Do
End If
rs.MoveNext
Loop
End Sub
Frame2.Visible = True
Frame1.Visible = False
End Sub
name1(1).Text = ""
Page
29
INSURANCE MANAGEMENT SYSTEM
address(2).Text = ""
phone(3).Text = ""
sal.Text = ""
dob(5).Text = ""
ms(7).Text = ""
End Sub
strsql = "update ph set name= '" & name1(1).Text & "',address ='" & address(2).Text & "',phone= " &
phone(3).Text & ",sal=" & sal.Text & ",dob='" & dob(5).Text & "',ms='" & ms(7).Text & "' where ph_key="
& Combo1.Text
cn.Execute strsql
MsgBox strsql
MsgBox added
End Sub
agpg.Show
Unload Me
End Sub
Frame1.Visible = False
Frame2.Visible = False
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
Page
30
INSURANCE MANAGEMENT SYSTEM
End With
Combo1.AddItem (rs.Fields(0))
rs.MoveNext
Loop
End Sub
Frmlogin form
Option Explicit
main1.Show
Unload Me
End Sub
Dim i As Integer
flag = 0
flag = 1
Exit Do
Else
rs.MoveNext
End If
Loop
If flag = 0 Then
Page
31
INSURANCE MANAGEMENT SYSTEM
txtUserName.Text = ""
txtPassword.Text = ""
Else
cinfo.Show
For i = 0 To rs.Fields.Count - 1
If i <> 4 Then
cinfo.Label17(i).Caption = rs.Fields(i)
End If
Next
cinfo.Combo1.AddItem (r1.Fields(1))
cinfo.Combo2.AddItem (r1.Fields(1))
cinfo.Combo3.AddItem (r1.Fields(1))
cinfo.Combo4.AddItem (r1.Fields(1))
End If
r1.MoveNext
Loop
End If
Unload Me
End Sub
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
Page
32
INSURANCE MANAGEMENT SYSTEM
.Open
End With
End Sub
Frmlogin1 form
Option Explicit
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim rk As ADODB.Recordset
Dim i, j As Integer
main1.Show
Unload Me
End Sub
flag = 0
rs.MoveFirst
flag = 1
Exit Do
Else
rs.MoveNext
End If
Loop
Page
33
INSURANCE MANAGEMENT SYSTEM
If flag = 0 Then
txtUserName.Text = ""
txtPassword.Text = ""
Else
admn.Show
Unload Me
End If
End Sub
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
End Sub
Frmlogin2 form
Private Sub Command3_Click()
flag = 0
rs.MoveFirst
flag = 1
Exit Do
Page
34
INSURANCE MANAGEMENT SYSTEM
Else
rs.MoveNext
End If
Loop
If flag = 0 Then
Text1.Text = ""
Text2.Text = ""
Else
j = rs.Fields(3)
agpg.Show
Unload Me
End If
End Sub
main1.Show
Unload Me
End Sub
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
End Sub
Page
35
INSURANCE MANAGEMENT SYSTEM
Load form
Option Explicit
loading.Caption = "loading..."
ProgressBar1.Value = 0
Timer1.Enabled = True
End Sub
Unload Me
End Sub
Timer1.Enabled = False
ProgressBar1.Value = 0
End Sub
Unload Me
End Sub
ProgressBar1.Value = ProgressBar1.Value + 10
main1.Show
Unload Me
End If
End Sub
Page
36
INSURANCE MANAGEMENT SYSTEM
Main1 form
Private Sub car_Click()
Form4.Show
End Sub
Form3.Show
End Sub
frmLogin1.Show
End Sub
frmLogin.Show
End Sub
Me.Show
End Sub
End Sub
End Sub
Form1.Show
End Sub
Pass form
Private Sub Command1_Click()
Text1.Text = ""
Page
37
INSURANCE MANAGEMENT SYSTEM
Text2.Text = ""
Text3.Text = ""
Else
strsql = "Update agent set pwd='" & Text2.Text & "'where id=" & agpg.Label5.Caption
cn.Execute strsql
Unload Me
Else
Text2.Text = ""
Text3.Text = ""
End If
End If
End Sub
With cn
.ConnectionString = cmd1
.CursorLocation = adUseClient
.Open
End With
End Sub
Page
38
INSURANCE MANAGEMENT SYSTEM
SNAPSHOTS
Page
39
INSURANCE MANAGEMENT SYSTEM
Page
40
INSURANCE MANAGEMENT SYSTEM
Page
41
INSURANCE MANAGEMENT SYSTEM
Page
42
INSURANCE MANAGEMENT SYSTEM
Page
43
INSURANCE MANAGEMENT SYSTEM
Page
44
INSURANCE MANAGEMENT SYSTEM
CONCLUSION
A computerized insurance management system has been developed and the system was tested
with sample data.
The system results in regular timely preparations of required outputs. In comparison with
manual system the benefits under a computer system are considerable in the saving of man
power working hours and Effort.
Provision for addition , updation and deletion of customers is there in the system .It is
observed that proper filing system has been adopted for future refernce . The entire project
runs on windows environments.
The system can be used to make better management described at appropriate time. The user
gets amount and timely information system.
SCOPE OF ENHANCEMENT
The system may be further updated or modified at will owing to its simple structure. We
can further add a transaction entity which will look after the payments made by the
customer towards their policy. Depending on future requirements more changes can be
made owing to the organization’s need.
Page
45
INSURANCE MANAGEMENT SYSTEM
Page
46