Crime File System 1 M.S. RAMAIAH COLLEGE OF ARTS SCIENCE AND COMMERCE Project Report on CRIME FILE SYSTEM CRIME FILE SYSTEM Submitted in partial fulfillment for the Completion of IV SEM Bachelor of Science (BSC) PRESENTED BY ARCHIKAM NAGARAJ (10KUS75076) Under the Guidance of DEPARTMENT OF COMPUTER SCIENCE
It's a detailed report about crime file system software project. Any indian graduate who is working on cs project based on visual basic on crime file system will be helped by this project report.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Crime File System 1
M.S. RAMAIAH COLLEGE OF ARTS SCIENCE
AND COMMERCE
Project Report on
CRIME FILE SYSTEMCRIME FILE SYSTEM
Submitted in partial fulfillment for theCompletion of IV SEM
Bachelor of Science (BSC)
PRESENTED BYARCHIKAM NAGARAJ (10KUS75076)
Under the Guidance of
DEPARTMENT OF COMPUTER SCIENCE
Crime File System 2
CERTIFICATE
This is to certify that this Project entitled
Submitted by
ARCHIKAM NAGARAJ (10KUS75076)
In partial fulfillment of the requirements for the Fourth Semester BACHELOR OF SCIENCE of Bangalore University during the academic year JAN 2011 to MAY 2011 under our supervision
The function of the List Box is to present a list of items where the user can click and
select the items from the list. In order to add items to the list, we can use the Add
Crime File System 44
Item method. For example, if you wish to add a number of items to list box 1, you
can key in the following statements
Example
Private Sub Form_Load ( )
List1.AddItem “Lesson1”
List1.AddItem “Lesson2”
List1.AddItem “Lesson3”
List1.AddItem “Lesson4”
End Sub
The items in the list box can be identified by the ListIndex property, the value of the
ListIndex for the first item is 0, the second item has a ListIndex 1, and the second
item has a ListIndex 2 and so on
The Combo Box
The function of the Combo Box is also to present a list of items where the user can
click and select the items from the list. However, the user needs to click on the small
arrowhead on the right of the combo box to see the items which are presented in a
drop-down list. In order to add items to the list, you can also use the AddItem
method. For example, if you wish to add a number of items to Combo box 1, you can
key in the following statements
Example
Private Sub Form_Load ( )
Combo1.AddItem “Item1”
Crime File System 45
Combo1.AddItem “Item2”
Combo1.AddItem “Item3”
Combo1.AddItem “Item4”
End Sub
The Check Box
The Check Box control lets the user selects or unselects an option. When the Check
Box is checked, its value is set to 1 and when it is unchecked, the value is set to 0.
You can include the statements Check1.Value=1 to mark the Check Box and
Check1.Value=0 to unmark the Check Box, as well as use them to initiate certain
actions. For example, the program will change the background color of the form to
red when the check box is unchecked and it will change to blue when the check box
is checked. You will learn about the conditional statement If….Then….Elesif in
later lesson. VbRed and vbBlue are color constants and BackColor is the
background color property of the form.
The Option Box
The Option Box control also lets the user selects one of the choices. However, two or
more Option Boxes must work together because as one of the Option Boxes is
selected, the other Option Boxes will be unselected. In fact, only one Option Box can
be selected at one time. When an option box is selected, its value is set to “True” and
when it is unselected; its value is set to “False”. In the following example, the shape
Crime File System 46
control is placed in the form together with six Option Boxes. When the user clicks
on different option boxes, different shapes will appear. The values of the shape
control are 0, 1, and 2,3,4,5 which will make it appear as a rectangle, a square, an
oval shape, a rounded rectangle and a rounded square respectively.
Example
Private Sub Option1_Click ( )
Shape1.Shape = 0
End Sub
Private Sub Option2_Click()
Shape1.Shape = 1
End Sub
Private Sub Option3_Click()
Shape1.Shape = 2
End Sub
Private Sub Option4_Click()
Shape1.Shape = 3
End Sub
Private Sub Option5_Click()
Shape1.Shape = 4
End Sub
Private Sub Option6_Click()
Shape1.Shape = 5
End Sub
Crime File System 47
The Drive List Box
The Drive ListBox is for displaying a list of drives available in your computer.
When you place this control into the form and run the program, you will be able to
select different drives from your computer as shown in Figure 3.3
The Directory List Box
The Directory List Box is for displaying the list of directories or folders in a selected
drive. When you place this control into the form and run the program, you will be
able to select different directories from a selected drive in your computer as shown
in Figure 3.4
The File List Box
The File List Box is for displaying the list of files in a selected directory or folder.
When you place this control into the form and run the program, you will be able to
shown the list of files in a selected directory as shown in Figure
You can coordinate the Drive List Box, the Directory List Box and the File List Box
to search for the files you want. The procedure will be discussed in later lessons.
MS ACCESS 2003
Crime File System 48
Microsoft Access is a powerful program to create and manage your databases. It has
many built in features to assist you in constructing and viewing your information.
Access is much more involved and is a more genuine database application than
other programs such as Microsoft Works.
The keywords involved in the process are: Database File, Table, Record, Field, Data-
type. Here is the Hierarchy that Microsoft Access uses in breaking down a database.
Database File: This is your main file that encompasses the entire database and that
is saved to your hard-drive or floppy disk.
Example: StudentDatabase.mdb
Table:A table is a collection of data about a specific topic. There can be multiple
tables in a database.
Field: Fields are the different categories within a Table. Tables usually contain
multiple fields.
Crime File System 49
Datatypes: Datatypes are the properties of each field. A field only has 1 datatype.
FieldName) Student LastName
Datatype) Text
Starting Microsoft Access
Two Ways
1. Double click on the Microsoft Access icon on the desktop.
Crime File System 50
2. Click on Start --> Programs --> Microsoft Access
Creating New, and Opening Existing Databases
Crime File System 51
The above picture gives you the option to:
Create a New Database from scratch
Use the wizard to create a New Database
Open an existing database
o The white box gives you the most recent databases you have used. If
you do not see the one you had created, choose the More Files option
and hit OK. Otherwise choose the database you had previously used
and click OK.
4.2 System Configuration
HARDWARE REQUIREMENTS
Processor : X86 Compatible processor
Crime File System 52
with 1.7 GHz Clock speed
RAM : 512 MB or more
Hard disk : 20 GB or more
Monitor : VGA/SVGA
Keyboard : 104 Keys
Mouse : 2 buttons/ 3 buttons
SOFTWARE REQUIREMENTS
Operating System : Windows 2000/XP
Front end : Visual Basic 6.0
Back end : MS ACCESS
5 APPENDIX
5.1 Source Code
Add Complaint
Crime File System 53
Private Sub cmdAdd_Click()If (cmbComplntNo.Text = "" Or txtStatus.Text = "") Then MsgBox "Missing Fields", vbInformation, "CFS"Elsecon.Execute ("insert into ComplntStatus values(" + cmbComplntNo.Text + ",'" + txtStatus.Text + "')")MsgBox "Status Added Successfully", vbInformation, "Crime File System"txtDetails.Text = ""txtStatus.Text = ""cmbComplntNo.SetFocusEnd IfEnd Sub
Private Sub cmdCancel_Click()Unload MeEnd Sub
Private Sub cmdDetails_Click()Set rest = con.Execute("select Details from ComplaintReg where ComplntNo=" + cmbComplntNo.Text + "")If (Not rs.EOF) Then txtDetails.Text = rest(0) txtStatus.SetFocusEnd If
End Sub
Private Sub Form_Load()connectdbSet rest = con.Execute("select ComplntNo from ComplaintReg")While (Not rs.EOF) cmbComplntNo.AddItem rest(0) rs.MoveNextWendrs.CloseEnd Sub
Add user
Private Sub Form_Load()connectdbEnd SubPrivate Sub cmdAdd_Click()
Crime File System 54
Set rest = con.Execute("select * from UserLogin where Username='" + txtUsername.Text + "' and Password='" + txtPassword.Text + "'")If (Not rs.EOF) Then MsgBox "Sorry!! User already exists. Try another username", vbCritical, "Crime File System" txtPassword.Text = "" txtUsername.Text = "" txtUsername.SetFocusElse con.Execute ("insert into UserLogin values('" + txtUsername.Text + "','" + txtPassword.Text + "')") MsgBox "User added sucessfully", vbInformation, "Crime File System" txtPassword.Text = "" txtUsername.Text = "" txtUsername.SetFocusEnd IfEnd Sub
Private Sub cmdCancel_Click()Unload Me
FIR Report
Dim x As IntegerPrivate Sub cmdShRpt_Click()x = cmbMno.Text If (DataEnvironment1.rsCommand4.State = 1) Then DataEnvironment1.rsCommand4.Close Else DataEnvironment1.Command4 (x) Load DataReportFIR DataReportFIR.Show End IfEnd Sub
Private Sub Form_Load()connectdbSet rest = con.Execute("select Firno from FIR")While (Not rs.EOF) cmbMno.AddItem rest(0) rs.MoveNextWendEnd Sub
Private Sub Form_Unload(Cancel As Integer)con.CloseEnd Sub
Post Mortem Report
Dim x As IntegerPrivate Sub cmdShRpt_Click() x = cmbMno.Text If (DataEnvironment1.rsCommand3.State = 1) Then DataEnvironment1.rsCommand3.Close Else DataEnvironment1.Command3 (x) Load DataReportmortem DataReportmortem.Show End If End Sub
Private Sub Form_Load()connectdbSet rest = con.Execute("select PMortemNo from Postmortem")While (Not rs.EOF) cmbMno.AddItem rest(0) rs.MoveNextWendEnd Sub
Splash
Dim i As IntegerDim x As IntegerOption Explicit
Crime File System 57
Private Sub Form_Load()File1.FileName = App.Pathx = File1.ListCountEnd Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)Unload MeEnd Sub
Private Sub Form_Unload(Cancel As Integer)Load frmMDIfrmMDI.Show
End Sub
Private Sub Frame1_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)Unload MeEnd Sub
Private Sub Timer1_Timer()If (Image1.Left <= 6480) Then Image1.Left = Image1.Left + 100Else Image1.Left = 0End IfIf (i <= x) ThenLabel2.Caption = File1.List(i)i = i + 1ElseLoad frmMDIfrmMDI.ShowUnload MeEnd IfEnd Sub
Private Sub mnuRptMortem_Click()Load frmPMortemRptfrmPMortemRpt.ShowEnd Sub
Prisoners Register
Dim cnt As IntegerPrivate Sub Command1_Click()If (txtChgrNo.Text = "" Or txtColor.Text = "" Or txtCrmType.Text = "" Or txtFamMem.Text = "" Or txtHt.Text = "" Or txtIdenMark.Text = "" Or txtNikName.Text = "" Or txtPrisNo.Text = "" Or txtWt.Text = "") Then MsgBox "Missing Fields!!, Please fill up all", vbInformation, "Crime File System"Else If ((Not IsNumeric(txtChgrNo.Text)) Or (Not IsNumeric(txtHt.Text)) Or (Not IsNumeric(txtWt.Text))) Then MsgBox "Some of the values entered are not matching, Please check numbers are entered correctly", vbCritical, "Crime File System" Else Set rest = con.Execute("select * from PrisonersReg where ChargeSheetNo=" + txtChgrNo.Text + "") If (Not rs.EOF) Then MsgBox "Charge Sheet Number Already Exist, Please try another number", vbCritical, "Crime File System" txtChgrNo.Text = "" txtChgrNo.SetFocus Else con.Execute ("insert into PrisonersReg values(" + txtPrisNo.Text + "," + txtChgrNo.Text + ",'" + txtNikName.Text + _ "','" + txtCrmType.Text + "','" + txtFamMem.Text + "','" + txtIdenMark.Text + "'," + txtHt.Text + _ "," + txtWt.Text + ",'" + txtColor.Text + "')") con.Execute ("insert into prisonersTemp values(" + txtPrisNo.Text + ",'No')") MsgBox "Record Added Sucessfully", vbInformation, "CFS" txtPrisNo.Text = txtPrisNo.Text + 1 txtChgrNo.Text = "" txtColor.Text = "" txtCrmType.Text = "" txtFamMem.Text = "" txtHt.Text = "" txtIdenMark.Text = "" txtNikName.Text = ""
Crime File System 61
txtWt.Text = "" txtChgrNo.SetFocus End If End IfEnd IfEnd Sub
Private Sub Command2_Click()Unload MeEnd Sub
Private Sub Form_Load()connectdbSet rest = con.Execute("select max(PrisonerNo) from PrisonersReg")If (Not rs.EOF) Then cnt = rest(0) If (cnt = 0) Then cnt = 1 Else cnt = cnt + 1 End If txtPrisNo.Text = cntEnd Ifrs.CloseEnd Sub
POSTMORTEM
Dim cnt As IntegerPrivate Sub cmdCancel_Click()Unload MeEnd Sub
Private Sub cmdSave_Click()If (txtDate.Text = "" Or txtDesc.Text = "" Or txtDoctName.Text = "" Or cmbFirrNo.Text = "" Or txtHouseName.Text = "" Or txtPoliceSt.Text = "" Or txtPostNo.Text = "" Or txtRslt.Text = "") Then MsgBox "Missing Fields!! Please Fill Up all", vbInformation, "Crime File System"Else Set rest = con.Execute("select * from Postmortem where FirNo=" + cmbFirrNo.Text + "") If (Not rs.EOF) Then MsgBox "Duplication is not allowded, Please try another FIR number", vbCritical, "Crime File System" cmbFirrNo.SetFocus Else
Private Sub Form_Load()connectdbcmbSex.Text = "Male"Set rest = con.Execute("select max(PMortemNo) from Postmortem")If (Not rs.EOF) Then cnt = rest(0) If (cnt = 0) Then cnt = 1 Else cnt = cnt + 1 End If txtPostNo.Text = cntEnd Ifrs.CloseSet rest = con.Execute("select Firno from FIR")While (Not rs.EOF) cmbFirrNo.AddItem rest(0) rs.MoveNextWendrs.CloseEnd Sub
POST MORTEM REPORT
Dim X As IntegerPrivate Sub cmdShRpt_Click() X = cmbMno.Text If (DataEnvironment1.rsCommand3.State = 1) Then DataEnvironment1.rsCommand3.Close
Crime File System 63
Else DataEnvironment1.Command3 (X) Load DataReportmortem DataReportmortem.Show End If End Sub
Private Sub Form_Load()connectdbSet rest = con.Execute("select PMortemNo from Postmortem")While (Not rs.EOF) cmbMno.AddItem rest(0) rs.MoveNextWendEnd Sub
CASE HISTORY
Private Sub cmdCancel_Click()Unload MeEnd Sub
Private Sub cmdSave_Click()If (txtCrimeNo.Text = "" Or txtCrimeType.Text = "" Or txtDate.Text = "" Or txtDesc.Text = "" Or txtPlace.Text = "") Then MsgBox "Missing Fields", vbInformation, "CFS" ElseIf (Not IsNumeric(txtCrimeNo.Text)) Then MsgBox "Crime Number should be a number", vbCritical, "CFS"Else Set rest = con.Execute("select * from History where CrimeNo=" + txtCrimeNo.Text + "") If (Not rs.EOF) Then MsgBox "Duplication of record is not allowded! Try another Crime number", vbCritical, "CFS" txtCrimeNo.Text = "" txtCrimeNo.SetFocus Else con.Execute ("insert into History values(" + cmbPrisNo.Text + "," + txtCrimeNo.Text + _ ",'" + cmbCrimeType.Text + "','" + txtDate.Text + "','" + txtPlace.Text + "','" + txtDesc.Text + "')") con.Execute ("UPDATE PrisonersTemp set Status='Yes' where PrisonerNo=" + cmbPrisNo.Text + "") MsgBox "Recor Added successfully", vbInformation, "CFS" txtCrimeNo.Text = ""
Crime File System 64
txtCrimeType.Text = "" txtDate.Text = "" txtDesc.Text = "" txtPlace.Text = "" txtCrimeNo.SetFocus End IfEnd IfEnd Sub
Private Sub Form_Load()connectdbSet rest = con.Execute("select PrisonerNo from PrisonersTemp where Status='No'")While (Not rs.EOF) cmbPrisNo.AddItem rest(0) rs.MoveNextWendrs.CloseEnd Sub
CHARGE SHEET
Dim cnt As IntegerDim X As Control
Private Sub cmdBack_Click()Frame4.Visible = FalseFrame3.Visible = TrueEnd Sub
Private Sub cmdBack2_Click()Frame2.Visible = FalseFrame1.Visible = TrueEnd Sub
Private Sub cmdBack3_Click()Frame3.Visible = FalseFrame2.Visible = TrueEnd Sub
Private Sub cmdFinish_Click()If (txtWitnAdd.Text = "" Or txtWitnName.Text = "" Or txtWitnOcc.Text = "") Then
Crime File System 65
MsgBox "Missing Fields!!, Please fill up all", vbInformation, "Crime File system"Else Set rest = con.Execute("select * from ChargeSheet where FirNo=" + cmbFirNo.Text + "") If (Not rs.EOF) Then MsgBox "Dupplication is not allowed, Please try another fir number", vbCritical, "Crime File system" Frame4.Visible = False Frame1.Visible = True cmbFirNo.SetFocus Else con.Execute ("insert into ChargeSheet values(" + txtChrgNo.Text + ",'" + txtPstatName.Text + "','" + txtDate.Text + _ "'," + cmbFirNo.Text + ",'" + txtDist.Text + "','" + txtInfoName.Text + _ "','" + txtInfoAdd.Text + "','" + txtInfoOcc.Text + "','" + txtInfoPart.Text + _ "','" + txtAccuName.Text + "','" + txtAccuAdd.Text + "','" + cmbAccuSex.Text + _ "'," + txtAccuAge.Text + ",'" + txtAccuOcc.Text + "','" + cmbAccuStat.Text + _ "','" + txtAccuAct.Text + "','" + txtWitnName.Text + "','" + txtWitnAdd.Text + _ "','" + txtWitnOcc.Text + "')") MsgBox "Record Added Successfully!!", vbInformation, "Crime File system" Frame4.Visible = False Frame1.Visible = True txtChrgNo.Text = txtChrgNo.Text + 1 ' For Each x In Me.Controls ' If (x = TextBox) Then ' x.Text = "" ' End If 'Next End IfEnd IfEnd Sub
Private Sub cmdNext1_Click()If (txtChrgNo.Text = "" Or txtPstatName.Text = "" Or txtDate.Text = "" Or cmbFirNo.Text = "" Or txtDist.Text = "") Then MsgBox "Missing Fields!!, Please fill up all", vbInformation, "Crime File system"Else Frame1.Visible = False Frame2.Visible = TrueEnd If
Crime File System 66
End Sub
Private Sub cmdNext2_Click()If (txtInfoAdd.Text = "" Or txtInfoName.Text = "" Or txtInfoOcc.Text = "" Or txtInfoPart.Text = "") Then MsgBox "Missing Fields!!, Please fill up all", vbInformation, "Crime File system"Else Frame2.Visible = False Frame3.Visible = TrueEnd IfEnd Sub
Private Sub cmdNext3_Click()If (txtAccuAct.Text = "" Or txtAccuAdd.Text = "" Or txtAccuAge.Text = "" Or txtAccuName.Text = "" Or txtAccuOcc.Text = "") Then MsgBox "Missing Fields!!, Please fill up all", vbInformation, "Crime File system"Else Frame3.Visible = False Frame4.Visible = TrueEnd IfEnd Sub
Private Sub Form_Load()Frame1.Visible = TrueFrame2.Visible = FalseFrame3.Visible = FalseFrame4.Visible = FalseconnectdbSet rest = con.Execute("select max(ChrgShtNo) from ChargeSheet")If (Not rs.EOF) Then cnt = rest(0) If (cnt = 0) Then cnt = 1 Else cnt = cnt + 1 End If txtChrgNo.Text = cntEnd Ifrs.CloseSet rest = con.Execute("select Firno from FIR")While (Not rs.EOF) cmbFirNo.AddItem rest(0) rs.MoveNextWendrs.Close
Crime File System 67
End Sub
CRIMINAL REGISTERATION
Dim cnt As IntegerDim X As String
Private Sub cmdCancel_Click()Unload MeEnd Sub
Private Sub cmdSave_Click()If (optyes.Value = True) Then X = "Yes"Else X = "No"End IfIf (txtAddress.Text = "" Or txtAge.Text = "" Or txtCrimeType.Text = "" Or txtName.Text = "" Or txtNickName.Text = "" Or txtOccupation.Text = "") Then MsgBox "Missing Fields!!,Please fill up all", vbInformation, "Crime File System"ElseIf (Not IsNumeric(txtAge.Text)) Then MsgBox "Age should be numeric"Else con.Execute ("insert into CriminalReg values(" + txtCriminalNo.Text + _ ",'" + txtName.Text + "','" + txtNickName.Text + "'," + txtAge.Text + _ ",'" + txtOccupation.Text + "','" + txtCrimeType.Text + "','" + txtAddress.Text + _ "','" + X + "')") MsgBox "Record Added successfully", vbInformation, "Crime File System" txtCriminalNo.Text = txtCriminalNo.Text + 1 txtAddress.Text = "" txtAge.Text = "" txtCrimeType.Text = "" txtName.Text = "" txtNickName.Text = "" txtOccupation.Text = "" txtName.SetFocusEnd IfEnd Sub
Crime File System 68
Private Sub Form_Load()connectdbSet rest = con.Execute("select max(CriminalNo) from CriminalReg")If (Not rs.EOF) Then cnt = rest(0) If (cnt = 0) Then cnt = 1 Else cnt = cnt + 1 End If txtCriminalNo.Text = cntEnd IfEnd Sub
COMPLAINT STATUS
Private Sub cmdCancel_Click()Unload MeEnd Sub
Private Sub cmdViewStat_Click()Set rest = con.Execute("select * from ComplntStatus where ComplntNo=" + cmbComplntNo.Text + "")If (Not rs.EOF) Then txtDetails.Text = rest(1)End If
End Sub
Private Sub Form_Load()connectdbSet rest = con.Execute("select distinct(ComplntNo) from ComplntStatus")While (Not rs.EOF) cmbComplntNo.AddItem rest(0) rs.MoveNextWendrs.CloseEnd Sub
FIR REGISTERATION
Private Sub cmdCancel_Click()Unload MeEnd Sub
Crime File System 69
Private Sub cmdSave_Click()If (txtDate.Text = "" Or txtDistrict.Text = "" Or txtFirNo.Text = "" Or txtInfoAdd.Text = "" Or txtInfoRcd.Text = "" Or txtPassNo.Text = "" Or txtPlaceOcc.Text = "" Or txtPolice.Text = "" Or txtRcdTime.Text = "" Or txtTime.Text = "" Or txtTypInfo.Text = "" Or cmbComplantno.Text = "") Then MsgBox "Missing Fields!!", vbInformation, "Crime File System" Else Set rest = con.Execute("select * from FIR where FirNo=" + txtFirNo.Text + " or ComplntNo=" + cmbComplantno.Text + "") If (Not rs.EOF) Then MsgBox "Sorry!! FIR Or Complaint Number already exists. Try another number", vbCritical, "CFS" txtFirNo.Text = "" txtFirNo.SetFocus Else Dim t1, t2, t3 As String t1 = txtTime.Text + cmbT1.Text 't2 = txtTime2.Text + cmbT2.Text t3 = txtRcdTime.Text + cmbT3.Text If ((Not IsNumeric(txtPassNo.Text)) Or (Not IsNumeric(txtFirNo.Text))) Then MsgBox "Please check the number fields", vbInformation, "Crime File System" 'txtPassNo.Text = "" 'txtPassNo.SetFocus Else con.Execute ("insert into FIR values(" + txtFirNo.Text + "," + cmbComplantno.Text + _ ",'" + txtDate.Text + "','" + t1 + "','" + txtTypInfo.Text + _ "','" + txtPlaceOcc.Text + "','" + cmbForLoc.Text + "','" + cmbAct.Text + _ "','" + txtDistrict.Text + "','" + txtInfoAdd.Text + "'," + txtPassNo.Text + ",'" + txtPolice.Text + _ "','" + t3 + "','" + txtInfoRcd.Text + "')") con.Execute ("UPDATE ComplntTemp set Status='Yes' where ComplntNo=" + cmbComplantno.Text + "") MsgBox "Record Added", vbInformation, "Crime File system" txtDate.Text = "" txtDistrict.Text = "" txtFirNo.Text = "" txtInfoAdd.Text = "" txtInfoRcd.Text = "" txtPassNo.Text = "" txtPlaceOcc.Text = ""
Crime File System 70
txtPolice.Text = "" txtRcdTime.Text = "" txtTime.Text = "" txtTypInfo.Text = "" txtFirNo.SetFocus End If End If End If End Sub
Private Sub Form_Load()cmbT1.Text = "AM"cmbT3.Text = "AM"cmbAct.Text = "Murder"cmbForLoc.Text = "Foreign"connectdbSet rest = con.Execute("Select ComplntNo from ComplntTemp where Status='No'")While (Not rs.EOF) cmbComplantno.AddItem rest(0) rs.MoveNextWendEnd Sub
10. IMPLEMENTATION AND TESTING
Crime File System 71
Testing is a process of executing a program with the interest of finding
an error. A good test is one that has high probability of finding the yet
undiscovered error. Testing should systematically uncover different classes
of errors in a minimum amount of time with a minimum amount of efforts.
Two classes of inputs are provided to test the process
1. A software configuration that includes a software
requirement specification, a design specification and source code.
2. A software configuration that includes a test plan and
procedure, any testing tool and test cases and their expected results.
Testing is divided into several distinct operations:
1. Unit Testing
Unit test comprises of a set tests performed by an individual
program prior to the integration of the unit into large system. A
program unit is usually the smallest free functioning part of the whole
system. Module unit testing should be as exhaustive as possible to
ensure that each representation handled by each module has been
tested. All the units that makeup the system must be tested
independently to ensure that they work as required.
During unit testing some errors were raised and all of them
were rectified and handled well. The result was quiet satisfactory and
it worked well.
2. Integration Testing
Crime File System 72
Integration testing is a system technique for constructing the
program structure while at the same time conducting tests to uncover
errors associated with interfacing. The objective is to take unit tested
modules and build a program structure that has been dictated by
design. Bottom-up integration is the traditional strategy used to
integrate the components of a software system into functioning whole.
Bottom-up integration consists
of unit test followed by testing of the entire system. A sub-system
consists of several modules that communicated with other defined
interface.
The system was done the integration testing. All the modules
were tested for their compatibility with other modules .They test was
almost successful. All the modules coexisted very well, with almost no
bugs. All the modules were encapsulated very well so as to not hamper
the execution of other modules.
3. Validation Testing
After validation testing, software is completely assembled as a
package, interfacing errors that have been uncovered and corrected
and the final series of software test; the validation test begins. Steps
taken during software design and testing can greatly improve the
probability of successful integration in the larger system. System
testing is actually a series of different tests whose primary purpose is
to fully exercise the compute –based system.
Crime File System 73
4. Recovery Testing
It is a system that forces the software to fail in a variety of
ways and verifies that the recovery is properly performed.
5. Security Testing
It attempts to verify that protection mechanisms built into a
system will in fact protect it from improper penetration. The system’s
security must of course be tested from in vulnerability form frontal
attack.
6. Stress Testing
Stress tools are designed to confront programs with abnormal
situations. Stress testing executes a system in a manner that demands
resources in abnormal quantity and volume.
7. Black Box Testing
Black box testing is done to find out the following information
as shown in below:
1. Incorrect or missing functions.
2. Interface errors.
3. Errors or database access.
4. Performance error.
5. Termination error.
The mentioned testing is carried out successfully for this
application according to the user’s requirement specification.
8. Test Data Output
After preparing test data, the system under study is tested
Crime File System 74
using the test data. While testing the system using test data, errors are
again uncovered and corrected by using above testing and corrections
are also noted for future use.
7. FUTURE ENHANCEMENT
We can update this system as online
application
Crime File System 75
The main advantage of online
application is that, a person can report the
crime any time from anywhere.
Users can view the progress of their
complaint online.
By the future technology user can view
the case details and progress of the
complaints on their mobile phones
Face recognition technology can apply.
User or witness of the crime can give the
physical information of the thief.
8. CONCLUSION
Crime File System 76
CRIME FILE MANAGEMENT SYSTEM
initiates the objective of providing the user with
customized and powerful complaint registration
and process management system side software.
The software is built with all options such as
complaint registration, prisoner’s registration, and
postmortem report generation etc…All the
requirements specified during the analysis and
design phase are fully met, thus resulting in the
formation of good software. The interface provided
is very user friendly and flexible for all times.
9. BIBLIOGRAPHY
Crime File System 77
Books
A Complete Guide to Programming in Visual Basic .Net
A Complete Visual Basic 6 Training Course: How to
Programme: Package
Advanced Programming Using Visual Basic: Version 6.0