Barangay Management System Final
Barangay Management System Final
Barangay Management System Final
A Capstone Project
Presented to the Faculty
of Parañaque City Campus
Polytechnic University of the Philippines
Parañaque City, Metro Manila
Prepared by:
2022
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CERTIFICATION
Evaluation Committee
ALDRIN P. OBSANGA
Adviser
APPROVAL
GRAMMARIAN’S CERTIFICATE
This is to certify that the undersigned reviewed and went through the papers of
CUERDO, JHON KHYLE DALISAY, LAIZA MARIE CHRISTINE V. CRUZ, and NIÑA
BIANCA ESTIJAL aligned with the set of structural rules that govern the composition
__________________ _______________
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
ACKNOWLEDGEMENT
following
people that made this thesis possible. His/her guidance and advices carried the
First and foremost, the warmest thanks to God the Father, for giving the
developers strength, wisdom and knowledge to surpass all the difficulties and trials
The developers would also like to thank the Barangay San Antonio,
Parañaque City especially the Barangay Secretary, Mr. Jomar Eugenio who gave
the chance to start and finish the development of this project within the premises
under his supervision. The group of staff of Barangay San Antonio for their
participation during the interview and survey, as well as the kindest acceptance and
To the research adviser, Mr. Aldrin P. Obsanga, who ably guided each
developer from the start until the end of their research study by sharing his ideas,
The set of panelists, Mr. Marvin C. De Pedro, Ms. Catherine R. Llave, MLing
and Mr. Ribert R. Enierga, MIT, who gave their time during the final defense by
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
analyzing every part of the study and pointing out the flaws that the developers
Special appreciation will also be given the developers’ family, who are
always on their side to give constant love, financial support, patience and
encouragement. Not to mention the classmates, friends, relatives, and to the rest
The developers will keep all of these in their hearts. Without all of you, none
of this would indeed be possible. Thank you so much and God bless you more.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CERTIFICATION OF ORIGINALITY
This is to certify that the research work presented in this thesis entitled
“Barangay Management System for Barangay San Antonio, Parañaque City,” for the
University of the Philippines embodies the result of original and scholarly work
carried by the undersigned. This thesis does not contain words or ideas taken from
published sources or written works that have been accepted as basis for the award
of a degree from any higher education institution, except where the proper
CRISCEL CUERDO
ABSTRACT
Cuerdo, Criscel B.
Year : 2022
This study is conducted to provide a system for Barangay San Antonio, Parañaque
operates manually for years. Unlike the other Barangays who already operate
systematically, Barangay San Antonio works inconveniently and has a lot of work
System for them. The indicated programming tools— SQL Server Management
Studio, Visual Basic for Applications, and Microsoft IDE-Visual Studios were used to
make this system possible. The researchers conducted an online interview and
visited the clients on-site to get the detailed information about the manual process in
the ISO 25010 software quality model is used, while its effectiveness was checked
and evaluated by the client, IT Experts and IT Graduates and Local Government
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Employees. The ISO 25010 software quality model identifies eight main quality
reliability, security, maintainability and portability. The Researchers used the formula
of weighted mean to get the average mean of every function. The combined results
are combined and overall analyzed. The findings revealed that the Barangay
Management System provides a great service and much easier filings of documents
Keywords: SQL Server Management Studio, Visual Basic for Applications, and
TABLE OF CONTENTS
Page
Title Page i
Acknowledgement iii
Certification of Originality iv
Abstract
Table of Contents
List of Tables
List of Figures
Introduction
Purpose and Description
Significance of the Study
Objectives
Scope and Delimitation
Definition of Terms
Requirements Analysis
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Requirements Documentation
Implementation Plan
Summary of findings
Conclusions
Recommendations
Bibliography
Appendices
A. Letter Request
C. Transcription
D. Researchers Profile
LIST OF FIGURES
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CHAPTER I
increase of all classes of the economy. As the global economy ages, change is
emerging. Information technology has grown above the surface of the initiatives for
development. It lies at the core of the mechanism of the innovation center for
streamlining procedures in both the public and private sectors of the business. It is
becoming less of an option but more of a necessity for people, computers play a
plays almost the same role in the organization. The system ensures that sufficient
data is gathered from different sources, stored and transmitted to all required
vast volumes of data. Extensive documents will not be a challenge for a post
programs, activities, policies and others that involve the community. As the
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
country increases.
personnel that have a business need for this knowledge can also support their
business unit. It is responsible for an effective and efficient solution for workers and
citizens of Barangay. That would help them do the job better which would also
eliminate the need for a big workforce. Provides profile-based information for
residents.
In this project, it will allow the Barangay San Antonio, Parañaque City the
ability to reduce paperwork and computer services so that they can serve their
citizens more easily. In the past years, there were only few residents in the
barangay San Antonio, and so the paperwork of all the residents could be managed
easily. Thus, the researchers will propose a management information system for
Barangay San Antonio, Paranaque City, a software that will give secured storage,
public services. This study aims to help the staff/employees of the barangay to
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
manage their important files and records properly and make their work faster,
smoother, and precise by using the system as an admin while the residents will be
able to view their own information only. The system will focus on improvement and
implementation of a software that will automate the records, managing of files, and
● Admin login is only accessible for barangay officials, secretaries, or any staff
that is responsible.
This system will have a significant effect on both the residents and the
employees of the barangay who manage the system as well as the barangay
Barangay Staff/Employees, the one who manages the files, documents and
information of the barangay as it will be easier to access and to update the data
they need.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
C. OBJECTIVES
a. General Objective
b. Specific Objectives
1. To develop a system that will help in making the file and record
Barangay San Antonio, Parañaque City. When successful, this might help the
the residents.
The system is designed for Barangay San Antonio; it cannot cover the
personal costs of paying different bills to residents. For instance, the cost of the
utility bill to the resident is not covered. The system does not cover third-party
services. It can only register resident’s information, create documents that’s only
The setting of the project will be in Barangay San Antonio Parañaque City.
Thus, the project covers only the employees and residents of the said barangay.
This study is limited to the office of the barangay and employees who are
E. DEFINITIONS OF TERMS
In order to understand the terms and the words used in the study, the
of hardware and software, an MIS gathers data from multiple online systems,
Cloud.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CHAPTER II
This chapter presents the related literature and studies after the thorough
and in-depth search done by the developers to give insight for a better
understanding and appreciation of the project. This will summarize and analyze the
Building this system is not possible without using SQL Server Management
infrastructure. With SSMS we are able to create the database that will allow the
users not just to input and store data but also to access, configure, manage, and
develop all of its necessary features. Which is according to Craig Stedman (2019), a
This structured programming language is to handle databases and query the data
that is contained within them. It also allows the controls of data storage, processing
quickly prototype stuff and throw GUIs altogether, then using this kind of scripts is a
very good choice since the developers can rely on it; it's one of the few mainstream
basic packages for Windows. Its existence is nothing comparable so it will definitely
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
still be in 5 years. It only proves that the working features of the system will be
With VBA we are able to create the foundation of our system, it also gives us
generate custom forms since it functions within MS Office applications and not a stand-
alone product.
Lastly, Microsoft Visual Studios is an IDE made by Microsoft and used for
apps, web services, and mobile apps. It contains completion tools, compilers, and
other features to facilitate the software development process. With the use of this IDE,
we are able to create, design, and edit the interface of this system. The indicated
programming tools— SQL Server Management Studio, Visual Basic for Applications,
and Microsoft Visual Studios were used to make this system possible and also are
individual persons information and mostly to update the system according to the needs
of today’s generation.
is designed for use by barangay personnel that need access to barangay resident
profiles for direct reports. It requires an effective and efficient approach from the
Barangay personnel who are in charge of the residents' information. This also profits
the departmental organizational staff in terms of allowing them to complete the job
quickly and minimize the needs of a huge crew. This also presents the residents
A manual-based system can capture and preserve lots of things and various
methods to be manually done, this alone can only prove that a manual information
system is a highly maintained job process such as paper files. While a computer-based
information system, data will be securely kept on databases or other highly secured
computer programs with security measures. This study supports the proponents'
will allow them to have accurate information about their residents to use in their reports,
facilities. Lots of tools have been evolving year after year and different methods are
also offered and extremely diverse. Managing is one of a very effective ways of
handling and monitoring multiple tasks, decision making and access to process lots of
information.
As per Eithne Rhoads (2011) Information system has a range of deals that will
help any organization. Organizations and users must be mindful and careful on how a
person's information can be delivered. There are some aspects that need to be
clarified once the use of information technology, data processes, and people’s
researcher can have a secured system database for the given information of every
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
individual. Offers a good quality of service and makes the job easier and timely
irrelevant for the Barangay staff and its people. It will also give a friendly-user interface
and features that will help every individual work in the easiest ways possible.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CHAPTER III
METHODOLOGY
A. REQUIREMENT ANALYSIS
of handling data and documents more effectively, as well as making it possible for
workers to find a faster means of recording and managing all the residents' files. To
access the system, the user must log in with a password for safe and secured personal
a. CONCEPTUAL FRAMEWORK
This illustrates what the developers expect to find during the making of the
project. It also defines the relevant variables for your study and maps out how they
This data flow diagram shows the way information flows through a process or
system. It includes data inputs and outputs, data stores, and the various sub
This will illustrate how “entities” such as; people, objects or concepts are
Figure 3. ER Diagram
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
d. ITERATIVE MODEL
Cycle (SDLC) in which this model is specifically designed to start with the bare
the system are interviewed to learn what they expected from it. The
Barangay.
● Review - After the product has been deployed, this phase is used to check
the behavior and integrity of the developed product. If any errors are
deliver these changes in the customer environment. The system will have
an exact date for checking monthly and maintenance to see if it’s working
normally, and will continue to provide great service to the Barangay for the
future.
a. USER DIAGRAM
C. REQUIREMENT DOCUMENTATION
a. Plotting:
This presents how the development of the project was carried out, from
Project Proposal
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
The second meeting with the clients gave the developers a chance to
present the progress in the system. After the first demo, the client suggested a
few more features and pointed out which to fix in the system.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
employees of the barangay specially to the group of staffs whose duty will be
the advantages, as well as the suggestions and ideas of the people involved.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
After the presentation, the developers conducted a survey to see how much the
system will help the barangay staff and its residents. Also, to know the efficiency and
will test the system with the client to see if the design they want is created. And also, to
prove that our system meets the client's expectations. The Barangay Management
System is a software framework that was developed to enhance the manual services
of the barangay, therefore making a system that is easier and faster for the
C. IMPLEMENTATION PLAN
The implementation phase may take a long time and that depends on the
complexity of the system and the solution it presents. When the software developers
have already indicated that the system will be able to be deployed after the evaluation,
1. Weighted Mean
This is used to determine the mean with regards to their personal profile, The
average weighted mean is a value that is derived from the responses of the likert scale
survey questionnaires.
The figure shown above is the formula for the weighted mean. In simple terms,
Strongly
Strongly Slightly Slightly
Disagree Agree
Disagree Disagree Agree
Agree
The proponents used the Likert Scale to verbally represent how much the
respondents agree or disagree with the statements. The survey questionnaires will be
used as the basis of the evaluation of the Barangay Management System for Barangay
San Antonio, Parañaque City. This table shows that strongly agree is equivalent to 6
which has the highest rating; agree is equivalent to 5; slightly agree is 4; slightly
In designing, developing, and evaluating the proposed system, the ISO 25010
software quality model is used. The ISO 25010 software quality model identifies eight
5 AGREE 1-5
2 DISAGREE 1-2
1 STRONGLY DISAGREE 1
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CHAPTER IV
This chapter presents and discusses the results, analysis and interpretation of
data along with the innovation, tools, software, and the evaluation of the respondents
The respondents of the system are the IT Experts, BSIT Students, Local
Government Employees are all presented using tables. The system is evaluated in
System Interface
Figure 4.1 interface will serve as the User Login of the admin (Barangay staff)
that are responsible for the said Barangay Management System. Figure 4.2
shows the time-in and time-out as well as the date and status for the admin to
handle the system. Figure 4.3, this interface is to enable all the buttons once
Figure 4.4, Dashboard indicates the overall tally in each transaction such as the totality
of the registered Residency, Indigency, and issued Barangay Clearance. Figure 4.5 is
the History of Transact, to make an easy track of records each month or year.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Figure 4.6, this interface makes the admins perform create and update for the
residents information.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Figure 4.7 shows the interface that performs update, create and print the
Figure 4.8 is the Barangay Clearance interface, this shows that the admin can
Male 9 45%
Female 11 55%
TOTAL 20 100%
Table 4.1 shows the profile of the respondents in terms of their gender. The
majority came from females with a total of 11 (55% in percentage) females. There are
IT Experts 6 30%
TOTAL 20 100%
Table 4.2 shows the type of respondents. In this table, the majority of the
respondents came from the Local Government Employee with a total of 9 respondents
and 45% in percentage, while the lowest came from the BSIT Student with a total of 5
The highest mean with 5.35 weighted mean got a verbal interpretation of “Agree” is
from question 3, while the lowest with a weighted mean of 4.6 with a verbal
interpretation of “Slightly Agree” is from question no. 1. The overall mean got a 5.2
According to Salleh, M., et. al., (2017), It is found that there is an increase of
research related to software functionality service for the last five years mainly in
greater number of articles from more various types of journals and workshops.
4.The system’s
response and
processing times
and throughput
rates when 2 11 7 5.25 AGREE
performing its
functions, meet
requirements.
(Time Behavior)
5.The system’s
amounts and
types of
resources used
when performing 4 9 7 5.15 AGREE
its functions, meet
requirements.
(Resource
Utilization)
6. The system’s
maximum limits of
SLIGHTLY
parameters meet 1 6 10 3 4.75
AGREE
requirements.
(Capacity)
Efficiency. Question no. 4 got the highest mean of 5.25 with a verbal interpretation of
“Agree” followed by question no. 5 with a weighted mean of 5.15; verbal interpretation
of 5.15, and lastly the lowest with 4.75 weighted mean and a verbal interpretation of
“Slightly Agree”. In totality, 5.15 weighted mean and a verbal interpretation of “Agree”.
eliminating systems and detect, correct, and recover from threats when they occur.
Making it easier to build controls into systems at the initial design stage than to add
them after the fact. If any system has to be effective it should include a combination of
well qualified human resources, the best software, and hardware and databases.
(Ramly, 2011).
Question no. 8 got the highest weighted mean of 5.05 interpreted as “Agree” while the
lowest is question no. 7 of 4.8 weighted mean interpreted as “Slightly Agree”. The
functional software testing -- meaning it tests aspects such as usability, reliability and
Brush K. (2022).
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
user. (User
Interaction
Aesthetics)
Question no. 12 and 14 both got the highest weighted mean of 5.40 with the verbal
interpretation of “Agree” while question no. 10 got the lowest weighted mean of 5.05.
The overall total is 5.30 weighted mean with a verbal interpretation of “Agree”.
Usability is an important factor for all software quality models. It is the key factor
widely used concept in the software engineering field and defines the software
Table 4.7 presents the evaluation of the application in terms of Reliability. The
highest weighted mean was from question no. 18 with 5.45 and a verbal interpretation
of “Agree”. The lowest is question no. 15 with a weighted mean of 4.90 and a verbal
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
interpretation of “Slightly Agree”. Overall, the weighted mean is 5.11 with a verbal
interpretation of “Agree”.
which means that it reduces as the time duration considered for reliability calculations
elapses. In other words, reliability of a system will be high at its initial state of operation
Table 4.8 evaluates the application in terms of Security and presents that
question no. 19 got the highest weighted mean of 5.45 and a verbal interpretation of
“Agree” while question no. 21 got the lowest weighted mean of 5.10 verbal
interpretation of “Agree”. The overall weighted mean is 5.28 which has a verbal
interpretation of “Agree”.
describes the controls and safeguards that an organization takes to ensure its
networks and resources are safe from downtime, interference or malicious intrusion. If
data security is meant to protect the information in the books in the library, then system
(Modifiability)
Question no. 28 with a weighted mean of 5.25 got the highest, a verbal interpretation
of “Agree” while question no. 27 got the lowest weighted mean of 5.05, a verbal
interpretation of “Agree”.
Maintainability measures the ease and speed with which a system can be
restored to operational status after a failure occurs. Software maintainability means the
ease with which these operations can be carried out. If the maintainability can be
measured in early phases of the software development, it helps in better planning and
Table 4.10 shows the evaluation of the application in terms of Portability. The
highest weighted mean came from question no. 31 with 5.70 and a verbal
interpretation of “Agree” while question no. 30 got the lowest with a 5.05 weighted
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
mean and a verbal interpretation of “Agree”. The overall weighted mean is 5.07 and a
the one it was designed for, with little or no modification. Where modification is needed,
the task of modifying the software to allow it to run in the new environment is known as
software product, especially in the ever-growing mobile market. Johansson, A., et.
al.(2021).
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CHAPTER V
This chapter presents the summary of the findings and conclusions drawn from
the gathered data and recommendations offered based on the study. Still, these
services.
A. Summary of Research
San Antonio, Parañaque City. The literature review was concentrated on the
Systems are efficient for each barangay, however some barangays are still
development of the project showed a lot of different ideas combined into one
system. The efficiency, functionality, security, and credibility of the system was
Survey results showed that the system met the bar of needs of the
B. Conclusion
technology. That's why most of the things are upgraded in a very automated
following are hereby recommended for the improvement of the project in the
near future.
security.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
APPENDIX A
Good day! I am writing to ask for permission to conduct a survey among the
Management System for San Antonio Parañaque City”. If the time works for you, we
would like to start the survey right after the demo of our system today (March 01, 2022).
Please confirm whether that works for you or if another time is better. Thank
Project Manager,
APPENDIX B
Survey Questionnaire
Good day!
Antonio, Parañaque City” in partial fulfillment of the requirements for our capstone
project.
We assure you that all the information provided by you will be kept strictly
confidential and will be used only for the academic research purpose.
Yours truly,
Cuerdo, Criscel B.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Email: Gender:
Type of Respondent:
● IT Expert
● College Professor
● BSIT Student
Instructions: Using the 6-point scale shown below. Rate the following statements
from 1-6. Do not leave each item unanswered. Scale: 6 – Strongly Agree, 5 – Agree,
3. The system
facilitates the
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
accomplishment of
specified tasks and
objectives.
(Functional
appropriateness)
4.The system’s
response and
processing times
and throughput
rates when
performing its
functions, meet
requirements.
(Time Behavior)
5.The system’s
amounts and types
of resources used
when performing
its functions, meet
requirements.
(Resource
Utilization)
6. The system’s
maximum limits of
parameters meet
requirements.
(Capacity)
9. The system
allows users to
recognize if it is
appropriate for
their needs.
(Appropriateness
Recognizability)
desired state.
(Recoverability)
discrete
components such
that a change to
one component
has minimal impact
on other
components.
(Modularity)
REFERENCES:
https://www.coursehero.com/file/p1bl0gd0/Researchers-In-order-to-increase-the-
personal-knowledge-of-problem-solving-and/
https://whatis.techtarget.com/definition/compatibility-test
Lado, M., & Perez, R. (2017). Barangay Management System. Retrieved from
https://www.slideshare.net/MarkJohnPerezLado/computerized-information-system-in-
barangay- poblacion-danao-city-cebu
Madan, A. et. al. (2012). Usability evaluation methods: a literature review. Retrieved
from
https://www.researchgate.net/publication/266874640_Usability_evaluation_methods_a
_literature_review
https://www.worldscientific.com/doi/abs/10.1142/S0218194016500431
Coursehero.Com. https://www.coursehero.com/file/54845019/
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Microsoft (September 11, 2019). What is SQL Server Management Studio (SSMS)?.
Microsoft. https://docs.microsoft.com/en-us/sql/ssms/sql-server-management-studio-
ssms?view=sql-server-ver15
https://www.floridatechonline.com/blog/information-technology/data-security-vs-
https://www.bmc.com/blogs/system-reliability-availability
calculations/#:~:text=Reliability%20is%20the%20probability%20that,follows%20the%2
0defined%20performance%20specifications
Salleh, M., et. al., (2017), An Overview of Software Functionality Service: A Systematic
https://www.sciencedirect.com/science/article/pii/S1877050917329319
CURRICULUM VITAE
CUERDO, CRISCEL B.
enthusiastic, creative and resourceful. She excels best at creating things and make it
something new. She contributes in this group project when it is timely needed. Her
hobbies are performing, writing various things such as poems, stories and creating a
CURRICULUM VITAE
the Philippines Parañaque Campus. She is mostly known because of her passion in
spoken word poetry and writing after performing in various events of the university.
She’s an ambivert who’s attitude and characteristics are mostly defined as a mirror of
one’s personality which made her fit well in any group of people. Her interest are
always aligned with making such a huge impact by using words to openly
communicate and express herself as well as her ideas and opinions. Although, her
technical and logical skills are yet to be widened, her undeniable talent on adapting
and communicating became and will always be her asset to overcome and reach her
CURRICULUM VITAE
Paranaque City
energetic and with cheerful disposition doing school activities. She is ambitious and
always striving to improve her skills and have more confidence in herself. She likes to
learn more about life and hopefully reached her goals in life.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
CURRICULUM VITAE
University of the Philippines - Paranaque City Campus. He is friendly person and open
person. He is interested with Game Developing for Fun and Developed their Skills. and
and Audition. and He is willing to learn new trends about technology right now.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Source Code
main_form.Show()
Imports System.Data Me.Enabled = False
Imports System.Data.SqlClient Me.Close()
Imports System.IO Else
Public Class Form1 MessageBox.Show("Wrong Username
Private Sub Form1_Load(sender As Object, e or Password." + vbCrLf + "(Try Again)",
As EventArgs) Handles MyBase.Load "Warning", MessageBoxButtons.OK,
End Sub MessageBoxIcon.Warning)
Private Sub Panel_Drag_MouseMove(sender Return
As Object, e As MouseEventArgs) Handles End If
Panel_Drag.MouseMove End Sub
Static lpos As Point
If e.Button = Private Sub Form1_Paint(sender As Object, e
Windows.Forms.MouseButtons.Left Then As System.Windows.Forms.PaintEventArgs)
'move form Handles Me.Paint
Me.Location += New Size(e.X - lpos.X, ControlPaint.DrawBorder(e.Graphics,
e.Y - lpos.Y) Me.ClientRectangle, Color.FromArgb(169, 93,
Else 36), ButtonBorderStyle.Solid)
lpos = e.Location End Sub
End If End Class
End Sub
Imports System.Data.SqlClient
Private Sub Button1_Click(sender As Object, Imports System.Data
e As EventArgs) Handles Button1.Click Public Class main_form
Me.Close()
End Sub Private Const cGrip = 16
Dim cmd As SqlCommand Private Const cCaption = 32
Private Sub loginBtn_Click(sender As Object, Protected Overrides Sub WndProc(ByRef m
e As EventArgs) Handles loginBtn.Click As Message)
Dim con As SqlConnection = New If m.Msg = &H84 Then
SqlConnection("Data Source=DESKTOP- Dim pos As Point = New
NFHHL86\SQLEXPRESS;Initial Point(m.LParam.ToInt32())
Catalog=My_Database;Integrated pos = Me.PointToClient(pos)
Security=True")
con.Open() If pos.Y < cCaption Then
Dim cmd As SqlCommand = New m.Result = CType(2, IntPtr)
SqlCommand("SELECT * FROM login where Return
username = @username and password = End If
@password", con)
cmd.Parameters.Add("@username", If pos.X >= Me.ClientSize.Width - cGrip
SqlDbType.VarChar).Value = userBox.Text AndAlso pos.Y >= Me.ClientSize.Height - cGrip
cmd.Parameters.Add("@password", Then
SqlDbType.VarChar).Value = passBox.Text m.Result = CType(17, IntPtr)
Dim sda As SqlDataAdapter = New Return
SqlDataAdapter(cmd) End If
Dim dt As DataTable = New DataTable() End If
sda.Fill(dt)
If (dt.Rows.Count > 0) Then MyBase.WndProc(m)
MessageBox.Show("Login Successfully.",
"Information", MessageBoxButtons.OK, End Sub
MessageBoxIcon.Asterisk)
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
End If NFHHL86\SQLEXPRESS;Initial
Catalog=My_Database;Integrated
MyBase.WndProc(m) Security=True"
If con.State = ConnectionState.Open Then
End Sub con.Close()
Private Sub Panel_Drag_MouseMove(sender End If
As Object, e As MouseEventArgs) Handles End Sub
Panel_Drag.MouseMove Private Sub closeBtn_Click(sender As Object,
Static lpos As Point e As EventArgs) Handles closeBtn.Click
If e.Button = main_form.Show()
Windows.Forms.MouseButtons.Left Then Me.Hide()
'move form End Sub
Me.Location += New Size(e.X - lpos.X, End Class
e.Y - lpos.Y)
Else Imports System.Data.SqlClient
lpos = e.Location Imports System.Data
End If Public Class resident_infoForm
End Sub Dim conn As New SqlConnection("Data
Source=DESKTOP-
Private Sub Form_Paint(sender As Object, e NFHHL86\SQLEXPRESS;Initial
As System.Windows.Forms.PaintEventArgs) Catalog=My_Database;Integrated
Handles Me.Paint Security=True")
ControlPaint.DrawBorder(e.Graphics, Private Sub Form1_Paint(sender As Object, e
Me.ClientRectangle, Color.FromArgb(169, 93, As System.Windows.Forms.PaintEventArgs)
36), ButtonBorderStyle.Solid) Handles Me.Paint
End Sub ControlPaint.DrawBorder(e.Graphics,
Me.ClientRectangle, Color.FromArgb(169, 93,
36), ButtonBorderStyle.Solid)
Private Sub maxminBtn_Click(sender As End Sub
Object, e As EventArgs) Handles Private Sub resident_infoForm_Load(ByVal
maxminBtn.Click sender As System.Object, ByVal e As
If WindowState = System.EventArgs) Handles MyBase.Load
FormWindowState.Normal Then 'TODO: This line of code loads data into
WindowState = the 'DataSet1.resident_information' table. You
FormWindowState.Maximized can move, or remove it, as needed.
Else
WindowState = Me.Resident_informationTableAdapter.Fill(Me.D
FormWindowState.Normal ataSet1.resident_information)
Me.Width = 951 'TODO: This line of code loads data into
Me.Height = 641 the 'DataSet1.resident_information' table. You
End If can move, or remove it, as needed.
End Sub
Me.Resident_informationTableAdapter.Fill(Me.D
Private Sub minBtn_Click(sender As Object, e ataSet1.resident_information)
As EventArgs) Handles minBtn.Click BindDataGrid()
WindowState = load_data()
FormWindowState.Minimized Me.ResizeRedraw = True
End Sub
End Sub
Dim cmd As SqlCommand Private Const cGrip = 16
Dim con As New SqlConnection("Data Private Const cCaption = 32
Source=DESKTOP-
NFHHL86\SQLEXPRESS;Initial Protected Overrides Sub WndProc(ByRef m
Catalog=My_Database;Integrated As Message)
Security=True") If m.Msg = &H84 Then
Private Sub dashboard_form_Load(sender As Dim pos As Point = New
Object, e As EventArgs) Handles MyBase.Load Point(m.LParam.ToInt32())
con.ConnectionString = "Data pos = Me.PointToClient(pos)
Source=DESKTOP-
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
NFHHL86\SQLEXPRESS;Initial VALUES
Catalog=My_Database;Integrated ('" + residentidBox.Text + "','" +
Security=True" lnameBox.Text + "','" + fnameBox.Text + "','" +
If con.State = ConnectionState.Open Then MIBox.Text + "','" + ageBox.Text + "'
con.Close() ,'" + addressBox.Text + "','" +
End If monthCBBox.Text + "','" + dayCBBox.Text + "','"
con.Open() + yearBox.Text +
ctzshipBox.Text = "Filipino" "','" + genderCBBOX.Text +
ctzshipBox.Enabled = False "','" + ctzshipBox.Text + "','" + civstatCBBox.Text
residentidBox.Enabled = False + "','" + stats.Text + "'
Me.ResizeRedraw = True )"
End Sub cmd.ExecuteNonQuery()
MessageBox.Show("Submit
Private Sub backBtn_Click(sender As Object, Successfully", "Information",
e As EventArgs) Handles backBtn.Click MessageBoxButtons.OK,
Me.Close() MessageBoxIcon.Question)
resident_infoForm.Enabled = True residentidBox.Text = ""
resident_infoForm.Show() lnameBox.Text = ""
End Sub fnameBox.Text = ""
Private Sub submitBtn_Click(sender As MIBox.Text = ""
Object, e As EventArgs) Handles ageBox.Text = ""
submitBtn.Click addressBox.Text = ""
If residentidBox.Text = "" Or lnameBox.Text monthCBBox.Text = ""
= "" Or fnameBox.Text = "" Or ageBox.Text = "" dayCBBox.Text = ""
Or addressBox.Text = "" Then yearBox.Text = ""
MessageBox.Show("Please Complete genderCBBOX.Text = ""
All.", "Information", MessageBoxButtons.OK, ctzshipBox.Text = ""
MessageBoxIcon.Question) civstatCBBox.Text = ""
Return stats.Text = ""
ElseIf monthCBBox.Text = "" Or Else
dayCBBox.Text = "" Or yearBox.Text = "" Or Return
genderCBBOX.Text = "" Or ctzshipBox.Text = "" End If
Or civstatCBBox.Text = "" Or stats.Text = "" End If
Then
MessageBox.Show("Please Complete
All.", "Information", MessageBoxButtons.OK, End Sub
MessageBoxIcon.Question)
Return Private Sub residentidBox_KeyPress(sender
ElseIf ageBox.Text <= 17 Then As Object, e As KeyPressEventArgs) Handles
MessageBox.Show("Below 18 Years Old residentidBox.KeyPress
is Not Allowed", "Information", If Not Char.IsDigit(e.KeyChar) And Not
MessageBoxButtons.OK, e.KeyChar = "." Then
MessageBoxIcon.Question) e.Handled = True
ageBox.Text = "" End If
Return
Else If e.KeyChar = "." Then
If MessageBox.Show("Check all inputs, if e.Handled = True
information is right ", "NOTICE", End If
MessageBoxButtons.YesNo,
MessageBoxIcon.Warning) = If e.KeyChar = Chr(8) Then
Windows.Forms.DialogResult.Yes Then e.Handled = False
cmd = con.CreateCommand() End If
cmd.CommandType = End Sub
CommandType.Text
cmd.CommandText = "INSERT INTO Private Sub lnameBox_KeyPress(sender As
resident_information(Resident_ID, Last_name, Object, e As KeyPressEventArgs) Handles
First_name, MI, Age, Address, B_Month, lnameBox.KeyPress
B_Days, B_Year, gender, citizenship,
civil_status, Resident_Status)
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
Catalog=My_Database;Integrated MessageBox.Show("No
Security=True") Record Found.", "Information",
MessageBoxButtons.OK,
Private Sub updateBtn_Click(sender As MessageBoxIcon.Question)
Object, e As EventArgs) Handles End If
updateBtn.Click End Using
Me.Enabled = False End Using
updateform.Show() End Using
End Sub End Using
Private Sub printBtn_Click(sender As Object, End Sub
e As EventArgs) Handles printBtn.Click End Class
Me.Enabled = False
print_form.Show() Imports System.Data.SqlClient
End Sub Imports System.Data
Dim table As New DataTable("Table") Public Class create_indi_resForm
clear()
Private Sub Panel_Drag_MouseMove(sender con.ConnectionString = "Data
As Object, e As MouseEventArgs) Handles Source=DESKTOP-
Panel_Drag.MouseMove NFHHL86\SQLEXPRESS;Initial
Static lpos As Point Catalog=My_Database;Integrated
If e.Button = Security=True"
Windows.Forms.MouseButtons.Left Then If con.State = ConnectionState.Open Then
'move form con.Close()
Me.Location += New Size(e.X - lpos.X, End If
e.Y - lpos.Y) con.Open()
Else CrystalReportViewer1.ShowPrintButton =
lpos = e.Location False
End If printnumBox.Enabled = False
End Sub resident_id.Enabled = False
lastnBox.Enabled = False
Private Sub backBtn_Click(sender As Object, firstnBox.Enabled = False
e As EventArgs) Handles closeBtn.Click ageBox.Enabled = False
Me.Close() dateBox.Enabled = False
print_form.Enabled = True timeBox.Enabled = False
printnumBox.Text = "" iss_reportBox.Enabled = False
resident_id.Text = "" iss_reportBox.Text = "Issued Certificate of
lastnBox.Text = "" Residency"
firstnBox.Text = "" dateBox.Text =
ageBox.Text = "" DateTime.Now.ToString("MMMM : dd : yyyy")
dateBox.Text = "" timeBox.Text = TimeOfDay.ToString("hh :
timeBox.Text = "" mm tt")
End Sub End Sub
Dim numb As String = ""
Private Sub maxminBtn_Click(sender As Dim rand As Random = New Random()
Object, e As EventArgs) Handles Private Sub genBtn()
maxminBtn.Click For y As Integer = 1 To 6
numb = Date.Now.Year
If WindowState = If y = 6 Then
FormWindowState.Normal Then numb += "3"
WindowState = End If
FormWindowState.Maximized Next
Else
WindowState = For y As Integer = 1 To 6
FormWindowState.Normal numb += Convert.ToString(rand.Next(0,
Me.Width = 794 9))
Me.Height = 633 Next
End If printnumBox.Text = numb
End Sub If printnumBox.Text Then
numb = Nothing
Private Sub minBtn_Click(sender As Object, e End If
As EventArgs) Handles minBtn.Click End Sub
WindowState =
FormWindowState.Minimized Private Sub GenerateBtn_Click(sender As
End Sub Object, e As EventArgs) Handles
Private Sub clear() GenerateBtn.Click
resident_id.Text = "" genBtn()
lastnBox.Text = "" End Sub
firstnBox.Text = ""
ageBox.Text = "" Dim con As New SqlConnection
dateBox.Text = "" Dim cmd As SqlCommand
timeBox.Text = ""
End Sub Private Sub printBtn_Click(sender As Object,
Private Sub print_residency_Load(sender As e As EventArgs) Handles printBtn.Click
Object, e As EventArgs) Handles MyBase.Load
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
End If
End Using
End Using
End Using
End Using
End Sub
Private Sub searchBox_KeyPress(sender As
Object, e As KeyPressEventArgs) Handles
searchBox.KeyPress
If Char.IsLetter(e.KeyChar) And Not
e.KeyChar = "." Then
e.Handled = True
MessageBox.Show("Invalid Input.",
"Information", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
End If
If Char.IsPunctuation(e.KeyChar) Then
e.Handled = True
MessageBox.Show("Invalid Input.",
"Information", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
End If