Upload
independent
View
0
Download
0
Embed Size (px)
Citation preview
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Chapter I
Introduction
1.1 Background of the Study
Barangay Mabini is a local government of Koronadal City, South Cotabato. It
was created on August 15,1952 with the total land area of 1,200.5 Hectares and the total
population of 3, 716. The Barangay have 4 Day Care Center, 2 Elementary School, and is
composed of five puroks. Barangay Mabini is supported by an organization constructed to
monitor, and secure the complaint of the constituents under it. In this Barangay, the most
common services offered are the complaint and the respondent transaction. The complainant
and respondent services offered are being processed through the manual system.
The researchers from ACLC College of Marbel conduct an observation on their
complainant information system and interview their Brgy. Captain. Based on our interview
and observation, the barangay secretary is using the manual process in every transaction.
This process is time consuming and tiring.
The researchers decided to create a computerized complainant information
system that could help the barangay secretary make the transactions easier and faster.
Complaint Information System 1
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
1.2 Statement of Objectives
1.2.1 General Objectives
The study aims to design and develop a computerized Barangay Complaint Information
System for Barangay Benitez. This will help the transaction become easier and faster; and
help them manage their records and give a consistent and reasonable reports.
1.2.2 Specific Objectives
This study aims to meet the following objectives:
To create a database that is well organized.
To create a system that manages complaint’s records and data stored in
one place, which prevents the occurrence of errors.
To create a system that allow the user to Add, Edit, and Update.
To create a system that will automatically saves updated record.
Complaint Information System 2
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
1.3 Significance of the Study
The International Journal of Operations Research and Information Systems
(IJORIS) examine current, state-of-the art advances in the interactions, linkages,
applications, and support of operations research with information systems. Covering
emerging theories, principles, models, processes, and applications within the field, this
journal provides practitioners, educators, and researchers with an international collection of
all operations research facets.
http://www.igi-global.com/journal/international-journal-operations-research-
information/1141
The National paper finds that the case for the superior benefits of digital thesis
services as opposed to print‐only thesis provision has undoubtedly been made. However, the
relative merits of different levels of public versus private sector involvement in the national
digital thesis system are open to debate, which means that ETD information systems can be
structured very differently from one country to another. The US and UK systems are
particularly different from each otherand form a focus of discussion.
http://www.emeraldinsight.com/doi/abs/10.1108/00242530910987055
Complaint Information System 3
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
The Local where a complainant approaches a local authority prior to lodging a
formal complaint, every effort should be made to sort out the problem straight away, rather
than involving the public in filling out forms and awaiting a response if this is unnecessary.
In this way, problems can be addressed without recourse to the formal complaints procedure.
However, if the problem cannot be immediately resolved, a formal complaint
may be initiated, and the individual is asked to complete a complaint form. When a formal
complaint is made, the local authority should acknowledge receipt of the complaint in
writing. Some local authorities have established a system based on identifiable, designated
complaint coordinators within individual sections/departments, to which the complaint is
referred in the first instance. In other cases, the complaint is first referred to the head of the
relevant section/department. Special arrangements may need to be put in place where a
complaint involves more than one section of a local authority, or may also involve an area
office as well as the local authority’s head office. Some local authorities use tracking
systems or contact management systems to ensure complaints are properly coordinated and
are responded to within a reasonable timeframe. The important point here is that a system or
process is in place where a response to a complaint requires input from more than one
section/office.
Complaint Information System 4
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
If the complaint is not resolved to the satisfaction of the complainant at this
juncture, the complaint may be referred to an internal complaint handling unit/internal
complaints service.
http://www.environ.ie/en/Publications/LocalGovernment/Administration/
FileDownLoad,2046,en.pdf
Complaint Information System 5
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
1.4 The Scope and the Limitation of the Study
Scope
The complaint Information System is designed to be user friendly. The complaint
record of Brgy. Benitez will have an organized database. The Brgy. Secretary can add,
edit, delete, and update record.
Limitation
The system can’t send print out through Internet and it is not accessible via
Internet. In case of power loss system can’t be use to open previous complaints records.
Complaint Information System 6
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
1.3 Objectives
1.3.1 General Objectives
Complaint Information System 7
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
The study aims to design and develop a computerized Barangay Complaint
Information System for Barangay Benitez. This will help the transaction become easier and
faster; and help them manage their records and give a consistent and reasonable reports.
1.3.2 Specific Objectives
This study aims to meet the following objectives:
To create a database that is well organized
To create a system that manages complaint’s records and data stored in
one place, which prevents the occurrence of errors.
To create a system that allow the user to Add, Edit, and Update
To create a system that will automatically saves updated record
1.4 Scope and Limitation of the Study
Complaint Information System 8
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Scope
The complaint Information System is designed to be user friendly. The
complaint record of Brgy. Benitez will have an organized database. The Brgy. Secretary can
add, edit, delete, and update record.
Limitation
The system can’t send print out through Internet and it is not accessible via
Internet. In case of power loss system can’t be use to open previous complaints records.
Complaint Information System 9
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Chapter II
Theoretical Framework
2.1 Introduction:
This chapter presents the different theories that supported the development and
serves as the basis for the completion of this project. The following theories provided the
baseline in enhancing the effectiveness of the project. It is also created an outline in
supporting the various content and functionalities of the system.
Theoretical Framework
2.2.1 Transaction Processing Systems
A transaction processing system provides way to collect, process store, display
modify or cancel transactions. Most of these systems allow multiple transactions to take
place simultaneously, the data that this system collects is usually stored in databases which
can be used to produce reports such as billing, wages, inventory summaries, manufacturing
schedules, or check registers.
Complaint Information System 10
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
2.2.2 Management Information Systems
A management information system is an information system that uses the data
collected by the transaction processing system and uses this data to create reports in a way
that manager can use it to make routine business decisions in response to problems. Some
of the reports that this information system creates are summary, exception and ad hoc
reports. All this is done t o increase the efficiency of managerial activity.
2.2.3 Information Systems in Organizations
This information system collects stores and process data to give organization
real time useful and accurate information. This information system encompasses data
gathering information from the people and machines that collect process, output and store
data. Also in the networks that transmit and receive data and the procedures that govern the
way data is handled.
Complaint Information System 11
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Summary
The literature review is very important before developing the system. There are
many ways to collect the data or information such as questionnaire, searching in internet,
interviewing and others. The information is very useful when developing the system because
it can give idea for developer how to do the system.
From the case study, it will help the developers understand what are the requirements
needed for developing the Complaints Information System.
Complaint Information System 12
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Chapter III
Complaint Information System
3.1 Context Diagram
New complaint Information
New Respondent
Meeting
New schedule detailsTransaction Printout
Meeting
Printout
Figure1. Context Diagram of Complaint Info. System
The complaint Information System shows that the Admin is responsible in
entering new information about complainant and respondent. The admin is also responsible
in making schedule of hearing.
Complaint Information System 13
Admin
0
Complainant Information System
Complainan
t
Respondent
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
3.2 Level Zero Dataflow Diagram
Input New Complaint Info.
New Complaint Info.
Input New Respondent Info.
New Respondent Info.
New Schedule
Input New Schedule details
Figure2. Level Zero Dataflow Diagram of Complaint Info. System
The diagram above shows the data flows in the system. The system has one
data store. The admin is responsible for adding, scheduling and updating every complaint
records.
1.3 Entities Complaint Information System 14
Admin
Barangay
1.0
Add New Complainant
2.0
Add New Respondent
3.0
Add New Schedule
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Complainant – details about the complainant
Respondent – details about the respondent
Complaint – details about the complaint
1.4 Entity Relationship Diagram
Complaint Information System 15
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
1.5 Data Dictionary
Complaint Information System 16
Complainant TableColumn Name Data typeFirst Name varcharLast Name varcharDate of Birth varcharGender varcharAddressMobile No. varcharDate varcharComplaint No. varchar
Respondent TableColumn Name Data typeFirst Name varcharLast Name varcharDate of Birth varcharGender varcharAddress varcharMobile No. varcharComplaint No. varcharStatus varcharSchedule varchar
Complaint TableColumn Name Data typeComplaint varcharNumber varcharPlace varcharC Date varcharTime varcharStatus varcharRemarks varcharSchedule varchar
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Complainant Table
Field Name Data type Key DescriptionFirst name varchar Identifies the first name of the complainantLast name varchar Identifies the last name of the complainantDate of Birth
varchar Identifies the birthday of the complainant
Gender varchar Identifies the gender of the complainantAddress varchar Identifies the address of the complainantMobile No. varchar Identifies the mobile number of the complainantDate varchar Identifies the complaintComplaint No.
varchar Identifies the complaint number of the complainant
Complaint Table
Field Name Data type Key DescriptionComplaint varchar Identifies of the complaintPlace varchar Identifies the place where the complaint happenC Date varchar Identifies the date when the complaint happenTime varchar Identifies what time complaint happenStatus varchar Identifies the complaint statusRemarks varchar Identifies the complaint remarksSchedule varchar Identifies the schedule hearing of the complaint
Respondent Table
Field Name Data type Key DescriptionFirst name varchar Identifies the first name ofthe respondentLast name varchar Identifies the last name of the respondentDate of Birth
varchar Identifies the birthday of the respondent
Gender varchar Identifies the gender of the respondentAddress varchar Identifies the address of the respondent
Complaint Information System 17
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Mobile No. varchar Identifies the mobile number of the respondentComplaint No.
varchar Identifies the complaint number of the respondent
Status varchar Identifies the status of the respondentSchedule varchar Identifies the schedule hearing of the respondent
INPUT/TRANSACTIONS/OUTPUT SCREENS
INPUT/OUTPUT SCREENS are TRANSACTIONS that will be run on the system
Complainant
Input Screen – will provide an interface to the user to enter the details of the
complainant
Complaint Information System 18
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Transactions – The system should perform the necessary checks from the various
relations about the data.
Respondent
Input Screen – will provide an interface to the user to enter the details of the
respondent
Transactions – The system should perform the necessary checks the validity of
the data.
The Working System
Login
Complaint Information System 19
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Main
Complaint Information System 20
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Complaint Info.
Complaint Information System 21
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Complaint form
Complaint Information System 22
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Update form
Complaint Information System 23
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Respondent form
Complaint Information System 24
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Complaint Information System 25
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Respondent Info.
Complaint Information System 26
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Account form
Chapter IV
Complaint Information System 27
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Summary, Conclusion and Recommendation
This chapter presented the conclusion and recommendation of Complaint Information
System based on the data gathered through observation, interviews, research and suggestion
coming from the group and discussion made by the proponent.
The researcher decided to make a Complaint Information System that will be use by
barangay officials of Barangay Benitez. The proponent has come up with this proposal in order
to address the problem with regards to the manual method of recording every complaint
transaction. This complaint Information System will help the barangay official in-charge
manage complaint records properly and easily.
Complaint Information System 28
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
REFERENCES
Websites
http://www.igi-global.com/journal/international-journal-operations-research-information/
1141
http://www.emeraldinsight.com/doi/abs/10.1108/00242530910987055
http://www.environ.ie/en/Publications/LocalGovernment/Administration/
FileDownLoad,2046,en.pdf
Complaint Information System 29
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
APPENDICES
Login
Imports System.Data.SqlClientPublicClassLoginForm1
' TODO: Insert code to perform custom authentication using the provided username and password ' (See http://go.microsoft.com/fwlink/?LinkId=35339). ' The custom principal can then be attached to the current thread's principal as follows: ' My.User.CurrentPrincipal = CustomPrincipal' where CustomPrincipal is the IPrincipal implementation used to perform authentication. ' Subsequently, My.User will return identity information encapsulated in the CustomPrincipal object' such as the username, display name, etc.
PrivateSub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Clickcnn.Close()
If cnn.State = ConnectionState.Closed Thencnn.Open()
Try cmd.CommandType = CommandType.Text sql = "Select * From Useracc Where UserName='"& UsernameTextBox.Text &"' and PassWord='"& PasswordTextBox.Text &"'"cmd = NewSqlCommand(sql, cnn)Dim dr AsSqlDataReader = cmd.ExecuteReader()If dr.HasRows = TrueThendr.Read()frmMain.ShowDialog()
PasswordTextBox.Clear()
Me.Close()ElseMsgBox("Invalid username and password.", MsgBoxStyle.OkOnly + MsgBoxStyle.Information, "Login Failed!")
PasswordTextBox.Clear(
Complaint Information System 30
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
EndIfCatch ex AsExceptionMsgBox(ex.Message)cnn.Close()
EndTryEndSub
PrivateSub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.ClickMe.Close()EndSub
PrivateSub LoginForm1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadCallconnect()EndSubEndClass
Complaint Information System 31
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Main
PublicClassfrmMain
PrivateSub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Clicksearch.ShowDialog()EndSub
PrivateSub ToolStripButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton2.Clickfrmrespondent.ShowDialog()EndSub
PrivateSub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
EndSub
PrivateSub ToolStripButton3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton3.ClickfrmaccUpdate.ShowDialog()EndSub
PrivateSub ToolStrip1_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles ToolStrip1.ItemClicked
EndSubEndClass
Complaint Information System 32
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Complaint
Imports System.Data.SqlClientPublicClassfrmComplaint
PrivateSub frmComplaint_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()Me.DateTimePicker3.Visible = FalseEndSub
PrivateSub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
If cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "INSERT INTO Complainants values('"&Me.txtFirstName.Text &"','"&Me.txtLastName.Text &"','"&Me.CmbDOB.Text &"','"& str &"','"&Me.txtHomeAdr.Text &"','"&Me.txtMobNo.Text &"','"&Me.DateTimePicker3.Text &"')"Trycmd.ExecuteNonQuery()MsgBox("Data Saved!")
cnn.Close()Catch ex AsExceptionMsgBox("Please Check all Details. ")
EndTry
cnn.Close()If cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "INSERT INTO Complaint values('"&Me.txtcomplaint.Text &"','"&Me.txtcompadd.Text &"','"&Me.DateTimePicker1.Text &"','"&Me.DateTimePicker2.Text &"','"&Me.ComboBox1.Text &"','"&Me.txtremarks.Text &"','"&Me.DateTimePicker4.Text &"',' "&Me.DateTimePicker5.Text &"')"Trycmd.ExecuteNonQuery()'MsgBox("Data Saved!")Me.Close()Me.txtcomplaint.Clear()
Complaint Information System 33
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Me.txtcompadd.Clear()Me.txtFirstName.Clear()Me.txtHomeAdr.Clear()Me.txtMobNo.Clear()Me.txtremarks.Clear()Me.txtLastName.Clear()da = NewSqlDataAdapter("select * from View_1", cnn)dSet.Reset()da.Fill(dSet, "View_1") search.DataGridView1.DataSource = dSet.Tables("View_1")cnn.Close()cnn.Close()Catch ex AsException' MsgBox("Please Check all Details. ")
EndTry
EndSub
DimstrAsStringPrivateSub radiomale_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radiomale.CheckedChanged
IfMe.radiomale.Checked Thenstr = "Male"
ElseIfMe.radioFemale.Checked Thenstr = "Female"EndIfEndSub
PrivateSub radioFemale_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioFemale.CheckedChangedIfMe.radiomale.Checked Thenstr = "Male"
ElseIfMe.radioFemale.Checked Thenstr = "Female"EndIfEndSub
PrivateSub btnclear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnclear.ClickMe.txtcomplaint.Clear()Me.txtcompadd.Clear()Me.txtFirstName.Clear()Me.txtHomeAdr.Clear()Me.txtMobNo.Clear()
Complaint Information System 34
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Me.txtremarks.Clear()Me.txtLastName.Clear()EndSubEndClass
Complaint Information System 35
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Report complaint
Imports System.Data.SqlClientImports CrystalDecisions.CrystalReports.EngineImports CrystalDecisions.SharedPublicClassfrmreportcomplaint
PrivateSub frmreportcomplaint_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()Dim cryRpt1 AsNewReportDocument
cryRpt1.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\crystalcomplaint1.rpt") CrystalReportViewer1.ReportSource = cryRpt1CrystalReportViewer1.Refresh()EndSub
PrivateSub TextBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.ClickMe.TextBox1.Clear()EndSubSubstrparam()Dim cryRpt AsNewReportDocumentcryRpt.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\crystalcomplaint.rpt")
Dim crParameterFieldDefinitions AsParameterFieldDefinitionsDim crParameterFieldDefinition AsParameterFieldDefinitionDim crParameterValues AsNewParameterValuesDim crParameterDiscreteValue AsNewParameterDiscreteValue
crParameterDiscreteValue.Value = TextBox1.TextcrParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFieldscrParameterFieldDefinition = crParameterFieldDefinitions.Item("name")crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()crParameterValues.Add(crParameterDiscreteValue)crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
Complaint Information System 36
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
CrystalReportViewer1.ReportSource = cryRptCrystalReportViewer1.Refresh()EndSubPrivate rptSummary AsNewReportDocument()Subdatecrypt()Try
rptSummary.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\crystalcomplaint1.rpt")
CrystalReportViewer1.SelectionFormula = " Date({View_1.Date})= #" + TextBox1.Text + "#"
CrystalReportViewer1.ReportSource = rptSummaryCrystalReportViewer1.Refresh()Catch ex AsException
EndTry
EndSubSubstrparam1()Dim cryRpt AsNewReportDocumentcryRpt.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\crystalcomplaint2.rpt")
Dim crParameterFieldDefinitions AsParameterFieldDefinitionsDim crParameterFieldDefinition AsParameterFieldDefinitionDim crParameterValues AsNewParameterValuesDim crParameterDiscreteValue AsNewParameterDiscreteValue
crParameterDiscreteValue.Value = TextBox1.TextcrParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFieldscrParameterFieldDefinition = crParameterFieldDefinitions.Item("id")crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()crParameterValues.Add(crParameterDiscreteValue)crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
CrystalReportViewer1.ReportSource = cryRptCrystalReportViewer1.Refresh()EndSub
Complaint Information System 37
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
IfMe.TextBox1.Text <>""Then
IfMe.ComboBox1.Text <>"Number"ThenCallstrparam()ElseIfMe.ComboBox1.Text <>"Name"ThenCallstrparam1()EndIfElse
Dim cryRpt1 AsNewReportDocument
cryRpt1.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\crystalcomplaint1.rpt") CrystalReportViewer1.ReportSource = cryRpt1CrystalReportViewer1.Refresh()
EndIf
EndSub
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
IfMe.TextBox1.Text <>""Then
Calldatecrypt()
Else
Dim cryRpt1 AsNewReportDocument
cryRpt1.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\crystalcomplaint1.rpt") CrystalReportViewer1.ReportSource = cryRpt1CrystalReportViewer1.Refresh()EndIf
Complaint Information System 38
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
EndSub
PrivateSub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
IfMe.ComboBox1.Text = "Date"ThenMe.Button2.BringToFront()
ElseMe.Button1.BringToFront()
EndIf
EndSubEndClass
Complaint Information System 39
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Report respondent
Imports System.Data.SqlClientImports CrystalDecisions.CrystalReports.EngineImports CrystalDecisions.SharedPublicClassfrmreportrespondent
PrivateSub frmreportrespondent_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()
EndSubSubstrparam()Dim cryRpt AsNewReportDocumentcryRpt.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\crystalrespondent.rpt")
Dim crParameterFieldDefinitions AsParameterFieldDefinitionsDim crParameterFieldDefinition AsParameterFieldDefinitionDim crParameterValues AsNewParameterValuesDim crParameterDiscreteValue AsNewParameterDiscreteValue
crParameterDiscreteValue.Value = TextBox1.TextcrParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFieldscrParameterFieldDefinition = crParameterFieldDefinitions.Item("name")crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()crParameterValues.Add(crParameterDiscreteValue)crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
CrystalReportViewer1.ReportSource = cryRptCrystalReportViewer1.Refresh()EndSubSubstrparam1()Dim cryRpt AsNewReportDocument
Complaint Information System 40
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
cryRpt.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\CrystalReport1.rpt")
Dim crParameterFieldDefinitions AsParameterFieldDefinitionsDim crParameterFieldDefinition AsParameterFieldDefinitionDim crParameterValues AsNewParameterValuesDim crParameterDiscreteValue AsNewParameterDiscreteValue
crParameterDiscreteValue.Value = TextBox1.TextcrParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFieldscrParameterFieldDefinition = crParameterFieldDefinitions.Item("lastname")crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()crParameterValues.Add(crParameterDiscreteValue)crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
CrystalReportViewer1.ReportSource = cryRptCrystalReportViewer1.Refresh()EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
IfMe.TextBox1.Text <>""Then
IfMe.ComboBox1.Text <>"Last Name"Then
Callstrparam()ElseIfMe.ComboBox1.Text <>"First Name"ThenCallstrparam1()
EndIf
Else
Dim cryRpt1 AsNewReportDocument
cryRpt1.Load("C:\Users\Administrator\Desktop\Barangay\Barangay\CrystalReport2.rpt") CrystalReportViewer1.ReportSource = cryRpt1CrystalReportViewer1.Refresh()EndIf
Complaint Information System 41
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
EndSub
PrivateSub TextBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.ClickMe.TextBox1.Clear()EndSub
EndClass
Update
Imports System.Data.SqlClientPublicClassfrmaccUpdate
PrivateSub frmaccUpdate_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()Me.TextBox2.Enabled = FalseMe.TextBox3.Enabled = FalseMe.Button1.Enabled = FalseMe.Label5.Visible = FalseMe.Label4.Visible = FalsedSet.Reset()sql = "select * from UserAcc"da = NewSqlDataAdapter(sql, cnn)da.Fill(dSet, "UserAcc")maxrow = dSet.Tables("UserAcc").Rows.Countinc = -1inc = 0Me.Label5.Text = dSet.Tables("UserAcc").Rows(inc).Item(2)
EndSub
PrivateSub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChangedIfMe.TextBox1.Text <>Me.Label5.Text ThenMe.TextBox2.Enabled = FalseMe.TextBox3.Enabled = FalseElseMe.TextBox2.Enabled = TrueMe.TextBox3.Enabled = TrueEndIf
Complaint Information System 42
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
EndSub
PrivateSub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.TextChangedIfMe.TextBox3.Text <>Me.TextBox2.Text ThenMe.Button1.Enabled = FalseElseMe.Button1.Enabled = TrueEndIfEndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickIf cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "UPDATE UserAcc SET [PassWord]='"&Me.TextBox2.Text &"'WHERE [Id]='"& Label4.Text &"'"
Trycmd.ExecuteNonQuery()MessageBox.Show("Update Complete")Me.TextBox1.Clear()Me.TextBox2.Clear()Me.TextBox3.Clear()Me.Close()
Catch ex AsExceptionMsgBox(ex.Message)
EndTrycnn.Close()EndSubEndClass
Complaint Information System 43
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Respond
Imports System.Data.SqlClientPublicClassfrmRespond
PrivateSub frmRespond_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()
EndSubSubnavigate1()
Ifinc<> 0 Theninc = 0Callnavigate2()
EndIf
EndSub
Subnavigate2()
If cnn.State = ConnectionState.Closed Thencnn.Open()IfdSet.Tables("View_1").Rows.Count = 0 Then'MsgBox("no record found")
ElseMe.txtcomplain.Text = dSet.Tables("View_1").Rows(inc).Item(0)Me.txtcomplaint.Text = dSet.Tables("View_1").Rows(inc).Item(8)Me.cmbstatus.Text = dSet.Tables("View_1").Rows(inc).Item(12)
Complaint Information System 44
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Me.DateTimePicker2.Text = dSet.Tables("View_1").Rows(inc).Item(14)Me.DateTimePicker3.Text = dSet.Tables("View_1").Rows(inc).Item(15)
EndIfEndSub
PrivateSub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.ClickMe.txtcomplain.Clear()Me.txtaddress.Clear()Me.txtlastname.Clear()Me.txtphone.Clear()Me.txtname.Clear()Me.txtcomplaint.Clear()EndSub
PrivateSub txtcomplain_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtcomplain.TextChanged
dSet.Reset() sql = "select * from View_1 where Number like'"&Me.txtcomplain.Text &"'"da = NewSqlDataAdapter(sql, cnn)
da.Fill(dSet, "View_1")maxrow = dSet.Tables("View_1").Rows.Countinc = -1Callnavigate1()EndSub
DimstrAsStringPrivateSub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChangedIfMe.RadioButton2.Checked Thenstr = "Male"Elsestr = "Female"EndIfEndSub
PrivateSub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChangedIfMe.RadioButton1.Checked Thenstr = "Female"Else
Complaint Information System 45
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
str = "Male"EndIfEndSub
PrivateSub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
If cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "INSERT INTO Respondent values('"&Me.txtname.Text &"','"&Me.txtlastname.Text &"','"&Me.DateTimePicker1.Text &"','"& str &"','"&Me.txtaddress.Text &"','"&Me.txtphone.Text &"','"&Me.txtcomplain.Text &"','"&Me.txtcomplaint.Text &"','"&Me.cmbstatus.Text &"','"&Me.DateTimePicker2.Text &"','"&Me.DateTimePicker3.Text &"')"Trycmd.ExecuteNonQuery()MsgBox("Data Saved!")
Catch ex AsExceptionMsgBox("Please Check all Details. ")
EndTry
cnn.Close()
If cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "UPDATE Complaint SET [Complaint]='"&Me.txtcomplaint.Text &"',[Status]='"&Me.cmbstatus.Text &"'WHERE [number]='"&Me.txtcomplain.Text &"'"
Trycmd.ExecuteNonQuery()' MessageBox.Show("Update Complete")
Me.Close()
Catch ex AsExceptionMsgBox(ex.Message)
EndTryda = NewSqlDataAdapter("select * from Respondent", cnn)dSet.Reset()da.Fill(dSet, "Respondent") frmrespondent.DataGridView1.DataSource = dSet.Tables("Respondent")
Complaint Information System 46
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
cnn.Close()
EndSub
EndClass
Respondent
Imports System.Data.SqlClientPublicClassfrmrespondent
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.ClickfrmRespond.ShowDialog()EndSub
PrivateSub frmrespondent_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load'TODO: This line of code loads data into the 'BarangayDataSet.Respondent' table. You can move, or remove it, as needed.Me.RespondentTableAdapter.Fill(Me.BarangayDataSet.Respondent)
Me.Top = 260Me.Label3.Visible = FalseCallconnect()EndSubPrivateSub DataGridView1_CellDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
frmviewrespond.ShowDialog()EndSub
PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Complaint Information System 47
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
frmupdaterespondent.ShowDialog()EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
IfMe.TextBox1.Text <>""Then
IfMe.ComboBox1.Text <>"First Name"Then
Dim ds1 AsNewDataSetda = NewSqlDataAdapter("select * from Respondent where LastName ='"&Me.TextBox1.Text &"'", cnn)ds1.Reset()da.Fill(ds1, "Respondent") DataGridView1.DataSource = ds1.Tables("Respondent")
ElseIfMe.ComboBox1.Text <>"Last Name"Then
Dim ds1 AsNewDataSetda = NewSqlDataAdapter("select * from Respondent where FirstName ='"&Me.TextBox1.Text &"'", cnn)ds1.Reset()da.Fill(ds1, "Respondent") DataGridView1.DataSource = ds1.Tables("Respondent")
EndIf
Else
Dim ds1 AsNewDataSetda = NewSqlDataAdapter("select * from Respondent", cnn)ds1.Reset()da.Fill(ds1, "Respondent") DataGridView1.DataSource = ds1.Tables("Respondent")
EndIf
EndSub
PrivateSub TextBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.ClickMe.TextBox1.Clear()EndSub
Complaint Information System 48
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
PrivateSub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Clickfrmreportrespondent.ShowDialog()EndSub
PrivateSub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClickDim value AsObject = DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value
IfIsDBNull(value) Then Label3.Text = ""' blank if dbnull values
Else Label3.Text = CType(value, String)Me.Refresh()DataGridView1.Refresh()' Dim reply' If MsgBox("Do you want to Pay Balance?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
' settle.Show()' Call gridd()'End If' reply = MsgBox("Do you want to Pay Balance?", MsgBoxStyle.Critical + vbYesNo, "Information")'If reply = vbYes Then' ' End If
EndIfEndSub
PrivateSub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click
EndSubEndClass
Complaint Information System 49
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Update complaint
Imports System.Data.SqlClientPublicClassfrmupdatecompliant
PrivateSub frmupdatecompliant_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()dSet.Reset() sql = "select * from View_1 where Number like'"& search.Label4.Text &"'"da = NewSqlDataAdapter(sql, cnn)da.Fill(dSet, "View_1")maxrow = dSet.Tables("View_1").Rows.Countinc = -1Callnavigate1()IfMe.Label15.Text = "Male"ThenMe.radiomale.Checked = TrueMe.Label15.Text = "Male"ElseMe.radioFemale.Checked = TrueMe.Label15.Text = "Female"EndIfMe.Label15.Visible = FalseMe.DateTimePicker3.Visible = FalseEndSub
Complaint Information System 50
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
PrivateSub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.ClickIf cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "UPDATE Complainants SET [FirstName]='"&Me.txtFirstName.Text &"',[LastName]='"&Me.txtLastName.Text &"',[DateOfBirth]='"&Me.CmbDOB.Text &"',[Gender]='"&Me.Label15.Text &"',[Address]='"&Me.txtHomeAdr.Text &"',[MobileNumber]='"&Me.txtMobNo.Text &"'WHERE [ComplaintNumber]='"& search.Label4.Text &"'"
Trycmd.ExecuteNonQuery()MessageBox.Show("Update Complete")
Me.Close()
Catch ex AsExceptionMsgBox(ex.Message)
EndTrycnn.Close()If cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "UPDATE Complaint SET [Complaint]='"&Me.txtcomplaint.Text &"',[Place]='"&Me.txtcompadd.Text &"',[CDate]='"&Me.DateTimePicker1.Text &"',[Time]='"&Me.DateTimePicker2.Text &"',[Status]='"&Me.ComboBox1.Text &"',[Remarks]='"&Me.txtremarks.Text &"',[ScheduleDate]='"&Me.DateTimePicker4.Text &"',[ScheduleTime]='"&Me.DateTimePicker5.Text &"'WHERE [number]='"& search.Label4.Text &"'"
Trycmd.ExecuteNonQuery()' MessageBox.Show("Update Complete")
Me.Close()
Dim ds AsNewDataSetda = NewSqlDataAdapter("select * from View_1", cnn)ds.Reset()da.Fill(ds, "View_1") search.DataGridView1.DataSource = ds.Tables("View_1")
Catch ex AsExceptionMsgBox(ex.Message)
EndTry
Complaint Information System 51
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
EndSubSubnavigate1()
Ifinc<> 0 Theninc = 0Callnavigate2()
EndIf
EndSub
Subnavigate2()
If cnn.State = ConnectionState.Closed Thencnn.Open()IfdSet.Tables("View_1").Rows.Count = 0 ThenMsgBox("no record found")
ElseMe.txtFirstName.Text = dSet.Tables("View_1").Rows(inc).Item(1)Me.txtLastName.Text = dSet.Tables("View_1").Rows(inc).Item(2)Me.CmbDOB.Text = dSet.Tables("View_1").Rows(inc).Item(3)Me.Label15.Text = dSet.Tables("View_1").Rows(inc).Item(4)Me.txtHomeAdr.Text = dSet.Tables("View_1").Rows(inc).Item(5)Me.txtMobNo.Text = dSet.Tables("View_1").Rows(inc).Item(6)Me.txtremarks.Text = dSet.Tables("View_1").Rows(inc).Item(13)Me.txtcomplaint.Text = dSet.Tables("View_1").Rows(inc).Item(8)
' Me.Label15.Text = dSet.Tables("View_1").Rows(inc).Item(0)Me.txtcompadd.Text = dSet.Tables("View_1").Rows(inc).Item(9)Me.DateTimePicker1.Text = dSet.Tables("View_1").Rows(inc).Item(10)
Me.DateTimePicker2.Text = dSet.Tables("View_1").Rows(inc).Item(11)Me.ComboBox1.Text = dSet.Tables("View_1").Rows(inc).Item(12)Me.DateTimePicker4.Text = dSet.Tables("View_1").Rows(inc).Item(14)Me.DateTimePicker5.Text = dSet.Tables("View_1").Rows(inc).Item(15)
EndIfEndSub
EndClass
Complaint Information System 52
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Update respondent
Imports System.Data.SqlClientPublicClassfrmupdaterespondent
PrivateSub frmupdaterespondent_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()dSet.Reset() sql = "select * from Respondent where ComplaintNumber like'"& frmrespondent.Label3.Text &"'"da = NewSqlDataAdapter(sql, cnn)da.Fill(dSet, "Respondent")maxrow = dSet.Tables("Respondent").Rows.Countinc = -1Callnavigate1()IfMe.Label5.Text = "Male"ThenMe.RadioButton2.Checked = TrueMe.Label5.Text = "Male"ElseMe.RadioButton1.Checked = TrueMe.Label5.Text = "Female"EndIf
Complaint Information System 53
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Label5.Visible = False
EndSubDim gender AsStringSubnavigate1()
Ifinc<> 0 Theninc = 0Callnavigate2()
EndIf
EndSub
Subnavigate2()
If cnn.State = ConnectionState.Closed Thencnn.Open()IfdSet.Tables("Respondent").Rows.Count = 0 Then' MsgBox("no record found")
ElseMe.txtname.Text = dSet.Tables("Respondent").Rows(inc).Item(0)Me.txtlastname.Text = dSet.Tables("Respondent").Rows(inc).Item(1)Me.DateTimePicker1.Text = dSet.Tables("Respondent").Rows(inc).Item(2)Me.Label5.Text = dSet.Tables("Respondent").Rows(inc).Item(3)Me.txtaddress.Text = dSet.Tables("Respondent").Rows(inc).Item(4)Me.txtphone.Text = dSet.Tables("Respondent").Rows(inc).Item(5)Me.txtcomplain.Text = dSet.Tables("Respondent").Rows(inc).Item(6)Me.txtcomplaint.Text = dSet.Tables("Respondent").Rows(inc).Item(7)Me.cmbstatus.Text = dSet.Tables("Respondent").Rows(inc).Item(8)Me.DateTimePicker2.Text = dSet.Tables("Respondent").Rows(inc).Item(9)Me.DateTimePicker3.Text = dSet.Tables("Respondent").Rows(inc).Item(10)
EndIfEndSub
PrivateSub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.ClickIf cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "UPDATE Respondent SET [FirstName]='"&Me.txtname.Text &"',[LastName]='"&Me.txtlastname.Text &"',[BirthDate]='"&Me.DateTimePicker1.Text &"',[Gender]='"&Me.Label5.Text &"',[Address]='"&Me.txtaddress.Text &"',[MobileNumber]='"&Me.txtphone.Text &"',[Complaint]='"&Me.txtcomplaint.Text &"',
Complaint Information System 54
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
[Status]='"&Me.cmbstatus.Text &"'WHERE [ComplaintNumber]='"& txtcomplain.Text &"'"
Trycmd.ExecuteNonQuery()MessageBox.Show("Update Complete")
Me.Close()
Catch ex AsExceptionMsgBox(ex.Message)
EndTrycnn.Close()If cnn.State = ConnectionState.Closed Thencnn.Open() cmd.CommandType = CommandType.Text cmd.CommandText = "UPDATE Complaint SET [Complaint]='"&Me.txtcomplaint.Text &"',[Status]='"&Me.cmbstatus.Text &"'WHERE [Number]='"&Me.txtcomplain.Text &"'"
Trycmd.ExecuteNonQuery()' MessageBox.Show("Update Complete")
Me.Close()
Dim ds AsNewDataSetda = NewSqlDataAdapter("select * from Respondent", cnn)ds.Reset()da.Fill(ds, "Respondent") frmrespondent.DataGridView1.DataSource = ds.Tables("Respondent")
Catch ex AsExceptionMsgBox(ex.Message)
EndTryEndSub
PrivateSub Panel2_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel2.Paint
EndSub
PrivateSub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChangedIfMe.RadioButton1.Checked ThenMe.Label5.Text = "Female"
Complaint Information System 55
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
ElseMe.Label5.Text = "Male"EndIfEndSub
PrivateSub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChangedIfMe.RadioButton1.Checked ThenMe.Label5.Text = "Female"
ElseMe.Label5.Text = "Male"EndIfEndSubEndClass
View respond
Imports System.Data.SqlClientPublicClassfrmviewrespond
PrivateSub frmviewrespond_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()dSet.Reset() sql = "select * from Respondent where ComplaintNumber like'"& frmrespondent.Label3.Text &"'"da = NewSqlDataAdapter(sql, cnn)da.Fill(dSet, "Respondent")maxrow = dSet.Tables("Respondent").Rows.Countinc = -1Callnavigate1()IfMe.Label5.Text = "Male"Then
Complaint Information System 56
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Me.RadioButton2.Checked = TrueMe.Label5.Text = "Male"ElseMe.RadioButton1.Checked = TrueMe.Label5.Text = "Female"EndIfMe.Label5.Visible = FalseEndSubSubnavigate1()
Ifinc<> 0 Theninc = 0Callnavigate2()
EndIf
EndSub
Subnavigate2()
If cnn.State = ConnectionState.Closed Thencnn.Open()IfdSet.Tables("Respondent").Rows.Count = 0 ThenMsgBox("no record found")
ElseMe.txtname.Text = dSet.Tables("Respondent").Rows(inc).Item(0)Me.txtlastname.Text = dSet.Tables("Respondent").Rows(inc).Item(1)Me.DateTimePicker1.Text = dSet.Tables("Respondent").Rows(inc).Item(2)Me.Label5.Text = dSet.Tables("Respondent").Rows(inc).Item(3)Me.txtaddress.Text = dSet.Tables("Respondent").Rows(inc).Item(4)Me.txtphone.Text = dSet.Tables("Respondent").Rows(inc).Item(5)Me.txtcomplain.Text = dSet.Tables("Respondent").Rows(inc).Item(6)Me.txtcomplaint.Text = dSet.Tables("Respondent").Rows(inc).Item(7)Me.cmbstatus.Text = dSet.Tables("Respondent").Rows(inc).Item(8)Me.DateTimePicker2.Text = dSet.Tables("Respondent").Rows(inc).Item(9)Me.DateTimePicker3.Text = dSet.Tables("Respondent").Rows(inc).Item(10)
EndIfEndSubEndClass
Complaint Information System 57
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Search
Imports System.Data.SqlClientPublicClasssearch
PrivateSub search_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load'TODO: This line of code loads data into the 'BarangayDataSet.View_1' table. You can move, or remove it, as needed.Me.View_1TableAdapter.Fill(Me.BarangayDataSet.View_1)
Me.Label4.Visible = FalseCallconnect()Dim ds AsNewDataSetda = NewSqlDataAdapter("select * from View_1", cnn)ds.Reset()da.Fill(ds, "View_1")
Complaint Information System 58
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
DataGridView1.DataSource = ds.Tables("View_1")
Me.Top = 260EndSub
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.ClickfrmComplaint.ShowDialog()EndSub
PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Clickfrmupdatecompliant.ShowDialog()EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
IfMe.TextBox1.Text <>""Then
IfMe.ComboBox1.Text <>"First Name"Then
Dim ds AsNewDataSetda = NewSqlDataAdapter("select * from View_1 where LastName ='"&Me.TextBox1.Text &"'", cnn)ds.Reset()da.Fill(ds, "View_1") DataGridView1.DataSource = ds.Tables("View_1")
ElseIfMe.ComboBox1.Text <>"Last Name"Then
Dim ds AsNewDataSetda = NewSqlDataAdapter("select * from View_1 where FirstName ='"&Me.TextBox1.Text &"'", cnn)ds.Reset()da.Fill(ds, "View_1") DataGridView1.DataSource = ds.Tables("View_1")
Complaint Information System 59
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
EndIf
ElseDim ds AsNewDataSetda = NewSqlDataAdapter("select * from View_1", cnn)ds.Reset()da.Fill(ds, "View_1") DataGridView1.DataSource = ds.Tables("View_1")
EndIf
EndSub
PrivateSub TextBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.ClickMe.TextBox1.Clear()EndSub
PrivateSub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChangedIfMe.ComboBox1.Text = "Number"ThenMe.Button5.BringToFront()ElseIfMe.ComboBox1.Text = "Date"ThenMe.Button5.BringToFront()ElseMe.Button1.BringToFront()EndIfEndSub
PrivateSub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.ClickIfMe.TextBox1.Text <>""Then
IfMe.ComboBox1.Text <>"Date"Then
Dim ds1 AsNewDataSetda = NewSqlDataAdapter("select * from View_1 where number ='"&Me.TextBox1.Text &"'", cnn)ds1.Reset()da.Fill(ds1, "View_1") DataGridView1.DataSource = ds1.Tables("View_1")
Complaint Information System 60
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Else
Dim ds1 AsNewDataSetda = NewSqlDataAdapter("select * from View_1 where ScheduleDate ='"&Me.TextBox1.Text &"'", cnn)ds1.Reset()da.Fill(ds1, "View_1") DataGridView1.DataSource = ds1.Tables("View_1")
EndIf
ElseDim ds1 AsNewDataSetda = NewSqlDataAdapter("select * from View_1", cnn)ds1.Reset()da.Fill(ds1, "View_1") DataGridView1.DataSource = ds1.Tables("View_1")
EndIf
EndSub
PrivateSub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Clickfrmreportcomplaint.ShowDialog()EndSubPrivateSub DataGridView1_CellDoubleClick_1(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
View.ShowDialog()EndSubPrivateSub DataGridView1_CellContentClick_1(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClickDim value AsObject = DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value
IfIsDBNull(value) Then Label4.Text = ""' blank if dbnull values
Else Label4.Text = CType(value, String)Me.Refresh()DataGridView1.Refresh()
Complaint Information System 61
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
' Dim reply' If MsgBox("Do you want to Pay Balance?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
' settle.Show()' Call gridd()'End If' reply = MsgBox("Do you want to Pay Balance?", MsgBoxStyle.Critical + vbYesNo, "Information")'If reply = vbYes Then' ' End If
EndIfEndSubEndClass
View
Imports System.Data.SqlClientPublicClassView
PrivateSub View_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadMe.Top = 250Callconnect()dSet.Reset() sql = "select * from View_1 where Number like'"& search.Label4.Text &"'"da = NewSqlDataAdapter(sql, cnn)da.Fill(dSet, "View_1")maxrow = dSet.Tables("View_1").Rows.Countinc = -1
Complaint Information System 62
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Callnavigate1()
IfMe.Label15.Text = "Male"ThenMe.radiomale.Checked = True
ElseMe.radioFemale.Checked = True
EndIfMe.Label15.Visible = FalseEndSubSubnavigate1()
Ifinc<> 0 Theninc = 0Callnavigate2()
EndIf
EndSub
Subnavigate2()
If cnn.State = ConnectionState.Closed Thencnn.Open()IfdSet.Tables("View_1").Rows.Count = 0 ThenMsgBox("no record found")
ElseMe.txtFirstName.Text = dSet.Tables("View_1").Rows(inc).Item(1)Me.txtLastName.Text = dSet.Tables("View_1").Rows(inc).Item(2)Me.CmbDOB.Text = dSet.Tables("View_1").Rows(inc).Item(3)Me.Label15.Text = dSet.Tables("View_1").Rows(inc).Item(4)Me.txtHomeAdr.Text = dSet.Tables("View_1").Rows(inc).Item(5)Me.txtMobNo.Text = dSet.Tables("View_1").Rows(inc).Item(6)Me.txtremarks.Text = dSet.Tables("View_1").Rows(inc).Item(13)Me.txtcomplaint.Text = dSet.Tables("View_1").Rows(inc).Item(8)Me.DateTimePicker3.Text = dSet.Tables("View_1").Rows(inc).Item(7)
' Me.Label15.Text = dSet.Tables("View_1").Rows(inc).Item(0)Me.txtcompadd.Text = dSet.Tables("View_1").Rows(inc).Item(9)Me.DateTimePicker1.Text = dSet.Tables("View_1").Rows(inc).Item(10)
Me.DateTimePicker2.Text = dSet.Tables("View_1").Rows(inc).Item(11)Me.ComboBox1.Text = dSet.Tables("View_1").Rows(inc).Item(12)Me.TextBox1.Text = dSet.Tables("View_1").Rows(inc).Item(14)
Complaint Information System 63
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Me.TextBox2.Text = dSet.Tables("View_1").Rows(inc).Item(15)
EndIfEndSub
PrivateSub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
EndSub
PrivateSub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter
EndSubEndClass
RESEARCHERS PROFILE
YVETTE D. DAGUROKoronadal City, South [email protected]+639109768295
Complaint Information System 64
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Personal Information
Birthdate:
Birthplace:
Fathers’ Name:
Mothers Name:
Educational Attainment:
Elementary:
Secondary:
Tertiary: ACLC College of Marbel
City of Koronadal, South Cotabato
Degree: Bachelor of Science in Information Technology
RESEARCHERS PROFILE
LEODELYN D. ORTIZPoblacion, Surallah, South [email protected]+639482835857
Complaint Information System 65
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Personal Information
Birthdate: October 08, 1996
Birthplace: Surallah, South Cotabato
Fathers’ Name: Leonard B. Ortiz
Mothers Name: Emelie D. Ortiz
Educational Attainment:
Elementary: Sto. Nino Elementary School
Pob. Sto. Nino
Secondary: Libertad National High School
Pob. Surallah, South Cotabato
Tertiary: ACLC College of Marbel
City of Koronadal, South Cotabato
Degree: Bachelor of Science in Information Technology
RESEARCHERS PROFILE
KENZ NACILO-ANKoronadal City, South [email protected]+639093628424
Complaint Information System 66
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Personal Information
Birthdate:
Birthplace:
Fathers’ Name:
Mothers Name:
Educational Attainment:
Elementary:
Secondary:
Tertiary: ACLC College of Marbel
City of Koronadal, South Cotabato
Degree: Bachelor of Science in Information Technology
RESEARCHERS PROFILE
DANVIE BERGANIOKoronadal City, South [email protected]+639109768295
Complaint Information System 67
ACLC COLLEGE OF MARBELKoronadal City, South Cotabato
Systems Analysis and Design
Personal Information
Birthdate:
Birthplace:
Fathers’ Name:
Mothers Name:
Educational Attainment:
Elementary:
Secondary:
Tertiary: ACLC College of Marbel
City of Koronadal, South Cotabato
Degree: Bachelor of Science in Information Technology
Complaint Information System 68