of 117 /117
Cagayan State University- COLLEGE of INFORMATION and Barangay Profiling System Chapter I INTRODUCTION 1.1 Background of the Study The rapid growth of technology has contributed a lot to the continued progress of all classification of industry. However, some sectors today seem to be left behind in adapting the use of different methods to have progress on their part. Nowadays, business people define the applications and problems to be solved by the computer. But unfortunately this potential has not been fully recognized or even adequately realized in some business. It is because users may not fully understand the capabilities and limitations of modern computer technology. Computerization is a control system that manages processes in the industrial workplace. It reduce human errors and processing time, thus it can boost productivity and result into a high quality of product produce. This can result in a system well integrated process that can perform much faster and more accurate than the manual system. The Barangay Profiling System is appropriate for the use of barangay employees, who have access to profile information of barangay residents for the direct reports and also departmental organizational staffs that have business need for this information for their business unit. The Barangay Profiling System is responsible for an effective and efficient approach for baranagay employees and residents. It will help them accomplish task faster and also it eliminates the need of a large staff. It will provide profile-based information on residents. The interest of investigating the research topic is a good example of a computer generated process, this can lessen the workload and provides information needed by a resident. As a result, it will benefit not only the barangay employee but the administration as a whole. 1

BRGY. Profiling System

Embed Size (px)

DESCRIPTION

It is a thesis in Information Technology course.

Text of BRGY. Profiling System

Barangay Profiling System

Chapter IINTRODUCTION1.1 Background of the StudyThe rapid growth of technology has contributed a lot to the continued progress of all classification of industry. However, some sectors today seem to be left behind in adapting the use of different methods to have progress on their part.Nowadays, business people define the applications and problems to be solved by the computer. But unfortunately this potential has not been fully recognized or even adequately realized in some business. It is because users may not fully understand the capabilities and limitations of modern computer technology.Computerization is a control system that manages processes in the industrial workplace. It reduce human errors and processing time, thus it can boost productivity and result into a high quality of product produce. This can result in a system well integrated process that can perform much faster and more accurate than the manual system.The Barangay Profiling System is appropriate for the use of barangay employees, who have access to profile information of barangay residents for the direct reports and also departmental organizational staffs that have business need for this information for their business unit. The Barangay Profiling System is responsible for an effective and efficient approach for baranagay employees and residents. It will help them accomplish task faster and also it eliminates the need of a large staff. It will provide profile-based information on residents.The interest of investigating the research topic is a good example of a computer generated process, this can lessen the workload and provides information needed by a resident. As a result, it will benefit not only the barangay employee but the administration as a whole.

1.2 Statement of the ObjectivesThis study aimed to come up with a design and develop a Barangay Profiling System of Barangay of Barangay NannarianPeablanca Cagayan.Specifically, it aimed to answer the following:1. How is the flow of the manual system?2. How is the flow of the proposed system?3. How secured are the data in the present manual system compared with the proposed system?4. How efficient the manual system with that of the proposed system?General Statement of the ObjectivesTo feed the interest and specialization the researcher would like to provide a Barangay Profiling System of barangay NannarianPeablanca Cagayan, to lessen the work load, reduce human errors and processing times.Specific Statement of the Objectives1. To familiarize the staff with the organizational structure of the office, including the duties and responsibilities of each personnel involved in the system.2. To avoid time and effort consuming, resulting into a number of work accomplish.3. To have an easy and faster preparation of the residents profile without going to traditional way of searching an employee profile.1.3 Scope and DelimitationThe computerized office automation system focused in the information of residents of barangayNannarianPeaBlanca Cagayan.This study aimed to determine with office automation which includes pertinent information such as fullname, birth place. Date of birth.gender. Civil status, religion, occupation, Restno., citizenship and etc. . This will make the work of the secretary faster and easier and more comprehensive

1.4 Significance of the StudyThe study will contribute to develop Barangay Profiling System at Barangay NannarianPeablanca Cagayan, particularly in managing the transaction of files of residents. Barangay Profiling System is an example of a new technology which facilitates the searching of files of each residents.The study will benefit the following:To the Agency:The result of the study would provide more efficient and effective processing of data, it would help them to lighten their work.

To the Residents: Easily avail a copy of their profiles any time they want Lessen the time and effort in filling formsTo the researcher Enhance their potential in interacting with the officials They were able to discover how competent in the fields of Information, Technology and system analysis and design1.5 Definition of TermsThese terminologies were gathered by the researcher for better and clearer understanding about the study.Client.Does not share any of its resources that request a servers content or service function.Computer.Machine capable of the following the instruction to alter data, programmable electronic device that can perform calculations and processing information.Database. Is a container to store your tables in.Information.Knowledge given or received of some fact or circumstances.Program.An algorithm that a computer can both follow directly and follow the translated version.Record. It is the collection of related field with information that usually pertains to only one subject.Server. A computer on a local area that is running software for controlling access to all or part of the network and its resources and shares its resources with client.System. It is a group of interrelated components working together toward common goal by accepting input and producing output in an organized transformation process.Software. It is a system utility or application program expressed in complete readable language.User.The person who uses a computer for word processing, communications, and other application.User-Friendly.A program easy to use even though an individual is not knowledgeable about the system.Visual Basic Net. Scripting language or programming language that is used to design the system.Computerized System To equip the user from electronic computer to facilitate or automated procedures it is an easy tool to produce printed output or data.Data Is a collection of an unauthorized facts of figuresDelete To remove or eraseEdit To change something, usually for the betterInput Refers to information that given to a computer that acts on information to a computerOutput Refers to information to the convention for transmitting data between a computer and its peripheralsProcess Refers to a series of instructions that computer executes in a multitasking of operating systemPassword A secret combination of characters a user must type into the computer in order to start a program or open a file.Profile It is a type of feature story and usually focuses on a person.Profiling It is a set of techniques for estimating the amount of time spent in various portions of your programProfiling System The profiling system is a unique personality assessment that encompasses a system of profiling both people and processes.CHAPTER IIREVIEW OF RELATED LITERATURE AND STUDIESThe chapter states the different literature and studies that were conducted for the research to gain familiarity that are relevant and similar to the present study.

Related Literature Tinn (2001) stated that the computerization responded to the call the office or any workplace to help their daily operation.Janes (2001) stated that computers are extremely reliable device and very powerful calculators with some great accessories applications like word processing problem for all of business activities, regardless of size, computers have three advantages over other type of office equipment that process information because computer are faster, more accurate more economical.Dioso (2001), stated that computer assist careful intelligent planning, organizing, actuating and controlling .This maybe observed from the past that they monitor production activities, solve scientific problem and help arrive in tentative answer to a multitude of involve conditions.Maloloset.al (2002) stated that the study of automation is important in the sense time that minimizes the time and effort normally exerted in manual process.Reyes (2005) said that task would be time consuming to accomplish manually and more practical with the aid of computers field in cabinet. According to Flores (2002), the automation is described simply as the substitution of machine control of human.RalphM. Stair (1999) emphasized that the development of technology through the years have enabled us to do more with less effort. From the orientation of the light bulb to the industrial revolution and beyond, we have continuously tried to in a more efficient means of doing tasks.Lewis (2002) stated that the reason for using computers vary from person to person. Some of the computers in business are to perform accuracy, to be as productivity, to decrease bottle necks or hassles to alter cash flows or to simples elevate your status.Sybex Inc (1999) stated that visual basic provide a graphical environment in which the users usually designed the forms and control that become the building block of tour application . Visual Basic support many useful tools that will help the user more productivity.GoldChageretal (2003) said that computer as a device for processing information knew computer plays a significant role in their lives, but few are aware of just how pervasive role is.Mane (2000) mentioned that the creation of the computer made the easier to accomplish that by doing it manually, to have the direct access on straightforward answer just monitoring record where in the needs of computer make possible for everyone to get data in a particular need. We can consider that the computer is necessary and its productive tool for individual.

Gurewich (1999) stated that the database system makes the work faster for every institution. For the mere fact that instead of doing things manually, with the use of computer technology everything is done fasters.Halili, M.C.N. (2004) that mans actions are t just involuntary movements especially when time allow to plan his next action. These responses pass through the process of reasoning and analysis.Huntchinsonet.al (2001) stated that file is a collection of related records. Examples are the entire students courses card for Anthropology 101 or the transcript of all courses in the registers office.Bryan (2006) emphasized the information system is a set of people, procedures and resources that collects, transforms and disseminates information in an organization to dos ends rely on many types of information system (IS). They might include simple manual information system and informal system and also computer based information system that uses hardware, software telecommunication and other forms of information technology (IT).Sander (2002)believed that computers are an intelligence amplifier that can free human to use their time effectively. Because a computer is a fast and accurate electronic symbol or data manipulating system that design automatically accept and store input data process and procedure output results under the direction of the stored program or instruction. Towsand (2005) stated that database is structed collection of data. The data may be about people, product events in short, any type of information is to manage the collection of data for reporting and making decision.Perkins (1999) stated that computer has an impressive impact upon business, governmental organization; bank and all sorts of organization and on how they are operate and manage.

Related Studies Conde(2007) in his study entitled Barangay profiling System cited that the manual process of inputting records and manual handling of information and reports of the residents is very laborious one. The proponents developed a computer based ,barangay profiling system to solve the huge amount of task.Saayo(2008) developed the system Barangay profiling System. Due to increasing population of the barangay, and the barnagay currently implementing the manual system, every resident spends a lot of time during filling of personal files.Admissions profiles can also include transcripts of interviews, records of interactions with the applicant, and other relevant data. If thestudentwas accepted, the admissionsprofilewill be used to generate astudentprofilefor recordkeeping purposes, with theprofileincluding records of personal data of the students like name, address, age, birthday, and some important details, and being maintained by the registrar. Education had been industrialized for the past centuries. From teaching and learning under a tree to developing the minds and skills of students through effective, efficient and modern way One of the best methods of student administration is the Student Profiling System. Student profiling system is professional and academic discipline concerned with the strategic, managerial and operational activities involved in the gathering, processing, storing, distributing and use of information, and its associated technologies, in society and organizations. Specifically, this computer-based profiling system is complementary networks of hardware/software that people or organization use to collect, filters, and process, create and distribute data. Profiling systems are implemented within an organization for the purpose of improving the effectiveness and efficiency of that organization.Admissions profiles can also include transcripts of interviews, records of interactions with the applicant, and other relevant data. If thestudentwas accepted, the admissionsprofilewill be used to generate astudentprofilefor recordkeeping purposes, with theprofileincluding records of personal data of the students like name, address, age, birthday, and some important details, and being maintained by the registrar. Education had been industrialized for the past centuries. From teaching and learning under a tree to developing the minds and skills of students through effective, efficient and modern way One of the best methods of student administration is the Student Profiling System. Student profiling system is professional and academic discipline concerned with the strategic, managerial and operational activities involved in the gathering, processing, storing, distributing and use of information, and its associated technologies, in society and organizations. Specifically, this computer-based profiling system is complementary networks of hardware/software that people or organization use to collect, filters, and process, create and distribute data. Profiling systems are implemented within an organization for the purpose of improving the effectiveness and efficiency of that organization.Admissions profiles can also include transcripts of interviews, records of interactions with the applicant, and other relevant data. If thestudentwas accepted, the admissionsprofilewill be used to generate astudentprofilefor recordkeeping purposes, with theprofileincluding records of personal data of the students like name, address, age, birthday, and some important details, and being maintained by the registrar. Education had been industrialized for the past centuries. From teaching and learning under a tree to developing the minds and skills of students through effective, efficient and modern way One of the best methods of student administration is the Student Profiling System. Student profiling system is professional and academic discipline concerned with the strategic, managerial and operational activities involved in the gathering, processing, storing, distributing and use of information, and its associated technologies, in society and organizations. Specifically, this computer-based profiling system is complementary networks of hardware/software that people or organization use to collect, filters, and process, create and distribute data. Profiling systems are implemented within an organization for the purpose of improving the effectiveness and efficiency of that organization.Rona (2011) in her study entitled A Proposed Student Profiling System for the College of Information Technology, University of La Salette, Santiago City will aid the time of the students in filling the profile information for the student can manage their time in their studies. The activities that the researchers want to develop are the computerized profiling system.Dr. Peter G. Knight in his study, The Online Information System, can stored datas, that is, its file or its database, are usually organized in such a way that individual pieces of data can be retrieve and for modified quickly and without necessarily accessing any other piece of data in the system.According to Rice (2006), computers enhancement proved to be more remarkable and even for a global communication to access immediate information system to information technology that is used by people to accomplish specified organizational individual object. The technology that may be used in gathering, processing, storing and dissemination of information and the users are trained in the use of that technologyCHAPTER IIIRESEARCH METHODOLOGYThis chapter presents the procedure which the researchers made use of, including the description of respondents locale of the study and instruments utilized for gathering data and information for the development of the study.3.1Research DesignThe researchers made use of the description normative survey of research to obtain data. It involves describing, analyzing and interpreting the conditions of the existing system. This was designed to record information, analyzed and interpreted data being entered on the proposed system.3.2 Locale of the StudyThis study was conducted at Barangay Nannarian, Peablanca, Cagayan.3.3Research InstrumentsTo obtain the necessary data in this study the researchers used the following methods.The researchers used the interview method to gather information and data needed in this study. Interview method was conducted to ensure the responses to certain questions intended to obtain information about the problem. With this method the researchers was able to identify the existing problem of the existing system.A questionnaire was also utilized as the instrument for gathering data. This is composed the profile of the officials and queries for data gathering. It is a set of questions arranged in a sequence.

CHAPTER IVPRESENTATION, ANALYSIS AND INTERPRETATION OF RESULTSThe following diagrams, tables and forms are used by the researchers as their guides to have a good and effective result.4.1 Context Level Diagram

0Barangay Profiling SystemBarangay OfficialsResident

Issued upon Barangay Official Detail Resident Detail

Reports

Barangay Captain

The resident comes to provides all necessary information of him/her, upon the providing these information, those information go through a process where it is an barangay profiling system and further produces the output or the feedback of the resident and finally produce a report.

4.2 Data Flow Diagram

Resident info

Verify resident infoResident RequestVer

Business DetailOwners infoRegister BusinessD1 List of ResidentsVerify Owners infoDetail CheckProcess Generate ReportProcess

Issue Business Permit

Report

The resident provide information; those information will deliver to the sub process. Once the resident give his her information it will go in the verify resident information process. When theres a new resident, it is required to provide his/her detail information. That information will go to the verification process and will proceed to the next step which is the process of register information resident and will immediately store the details of the new resident in the list of residents. From there, it will generate the report. In establishing a business in the barangay, the owner needs to provide his/her information; that information will go to the verification process and check the owner in the list of residents. After that the business will be registered. When the business registered it will issue the business permit to the owner of the business.

4.3 ENTITY RELATIONSHIP DIAGRAM

businessoccupationCitizenship

streets

residentszone

religion

Establishmentsofficial

PUROK

position

ArchivesLog-in

A. DATABASE DESIGNUser View: LOGINA. Data Environment

Username

Fullnameaccessmod

LOG-IN

password

positionB. Data Entry

C. ERD: Data DescriptionThis form is use to modify the username password and access level of the system. Only the secretary can do the modification, this form is made used of data grid to view the list of the username who use the system. If you entered invalid password and username you will not able to use the system.

B. DATABASE DESIGNUser View 1: ResidentsA. Data Environment

RESTNOLASTNAMECIVIL STATUSGENDERRELIGIONCIVIL STATUSGENDERRELIGION

FIRSTNAMECITIZENSHIP

MIDDLENAMECONTACTNOINFORMATION

BIRTHDATECIVIL STATUS

RELIGIONGENDER

B.Data Entry

C. Data DescriptionThe residents registration form is used to enter formation about the residents of the barangay. The following are inputted in the residents registration form: Restno, Lastname, Firstname, Middlename, Birthdate, Religion, Gender, Civil status, Contactno, Citizenship, Birthplace, Zone, occupation, business, Household, Age, Streets, Remarks. The command buttons like add allows adding new entry, edit let the user modify the entered data or information, delete to eliminate data or information and cancel to terminate a process. Data grid is used to view the list of residents.

C. DATABASE DESIGNUser View 2: Officials

A. Data Environment

FULLNAMEAGEPOSITION

YEAR ELECTEDYEAR OF SERVICEOFFICIALS

GENDERENDED

B. Data Entry

C. Data DescriptionThis is the officials form; you can see here the list of officials elected with their basic information about them. The command buttons like add allows to add new entry, edit let the user modify the entered data or information, delete to eliminate data or information and cancel to terminate a process. Data grid is used to view the list of officials and their basic informationD. DATABASE DESIGNUser View 3: Establishment

OWNERA. Data Environment

DATE ISSUEDCOMPANYNAME

ESTABLISHMENTS

DATE ESTABLISHEDStreets

PUROK

B. Data Entry

C. Data DescriptionThis is the list of establishments with their corresponding informations that are currently available. The command buttons like add allows to add new entry, edit let the user modify the entered data or information, delete to eliminate data or information and cancel to terminate a process. Data grid is used to view the list of establishments and their basic information.

E. DATABASE DESIGNUser View 4: BusinessA. Data Environment

BusinessID

BusinessResidents

B. Data Entry

C. Data DescriptionThis is a business form where the name of business can be seen. The command button add allows you to add new entry, edit let the user modify the entered data or information, delete to eliminate data or Information about the business, cancel to terminate the process. Data grid is used to view the list of business.

F. DATABASE DESIGNUser View 5: ZoneA. Data Environment

ID

ResidentsZone

Zone

B. Data Entry

C. Data Description This is a zone form where you can see zones in the barangay. It has four command buttons, add, edit, delete, cancel. Add allows you to add new entry in the form, edit let the user to modify the entered data or information, delete to eliminate data or information, cancel to terminate the process. Data grid is used to view the list of zones in the barangay.G. DATABASE DESIGNUser View 6: ReligionA. Data Environment

IDreligionreligion

residents

B. Data Entry

C. Data Description This is a religion form where you can the religions in the barangay. It has four command buttons, add edit, delete and cancel. Add allows you to add new entry in the form, edit let the user to modify the entered data or information, delete to eliminate data or information, cancel to terminate the process. Data grid is used to view the list of puroks in the barangay.H. DATABASE DESIGNUser View 7: StreetsA. Data Environment

IDstreetsresidentspurokstreets

B. Data Entry

C. Data Description This is a street form where you can see street of each purok in the barangay. It has four command buttons, add, edit, delete, cancel . Add allows you to add new entry in the form, edit let the user to modify the entered data or information, delete to eliminate data or information, cancel to terminate the process. Data grid is used to view the list of puroks in the barangay.I. DATABASE DESIGNUser View 8: OccupationA. Data Environment

IDresidentsoccupation

occupation

B. Data Entry

C. Data Description This is a occupation form where you can see the list of occupations in the barangay. It has four command buttons, add, edit, delete, cancel . Add allows you to add new entry in the form, edit let the user to modify the entered data or information, delete to eliminate data or information, cancel to terminate the process. Data grid is used to view the list of occupations in the barangay.

J. TABLE DESIGNTABLE/ENTITYFIELSD/ATTRBUTESDATA TYPEFIELD SIZEREMARKS

tblLog-in

IDFull nameAccess modePositionUsernamePassword

Auto NumberTextTextTextTextText505030503030

Primary key

Tblinfo

IDRestnoLastnameFirstnameMiddlenameBirthdateReligionGenderCivilstatusContactnoCitizenshipBirthplaceZoneOccupationBusinessHouseholdAgeStreetsRemarksAuto NumberTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText503050505030505302050503050503035050Primary key

Tblofficials

IDFullnamePositionBirthDateAgeGenderYearelectedYearofserviceRemarks

Auto NumberTextTextTextTextTextTextTextText

5050503035303050Primary key

tblestablishmentIDCOMPANYNAMEOWNERDATEISSUEDDATEESTABLISHEDPUROKSTREETS

Auto NumberTextTextTextTextTextTextTextText505050303020505050Primary key

TblarchiveIDRestnoLastnameFirstnameMiddlenameBirthdateReligionGenderCivilstatusContactnoCitizenshipBirthplaceZoneOccupationBusinessHouseholdAgeStreet

Auto NumberTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText

5030505050305053020505050505030350Primary key

TblbusinessIDBusinessAuto NumberText

5050Primary key

tblcitizenshipIDCitizenshipAuto NumberText

5050Primary key

tbloccupationIDOccupationAuto NumberText

5050Primary key

TblpositionIDPositionAuto NumberText

5050Primary key

TblreligionIDReligionAuto NumberText

5050Primary key

TblremarksIDRemarksAuto NumberText5050Primary key

TblsecureIDPasswordAuto NumberText

5050Primary key

TblstatusIDStatusAuto NumberText

5050Primary key

TblstreetsIDStreetsPurokAuto NumberTextText

505030Primary key

TblzoneIDZunAuto NumberText

5030Primary key

TbltotalIDPurokTitleMaleFemaleTotalAuto NumberTextTextTextTextNumber503050505030Primary key

K. DEFINING ATTRIBUTES AND DESIGNTABLE/ENTITYFIELSD/ATTRBUTESDOMAIN

tblLog-in

IDFull nameAccess modePositionUsernamePassword0-9A-Z, a-z0-9A-Z, a-zA-Z, a-z0-9

tblinfo

IDRestnoLastnameFirstnameMiddlenameBirthdateReligionGenderCivilstatusContactnoCitizenshipBirthplaceZoneOccupationBusinessHouseholdAgeStreetsRemarks0-90-9A-Z, a-zA-Z, a-zA-Z, a-z0-9A-Z, a-zA-Z, a-zA-Z, a-z0-20A-Z, a-zA-Z, a-z0-9A-Z, a-zA-Z, a-z0-93A-Z, a-z, 0-9A-Z, a-z

tblofficials

IDFullnamePositionBirthDateAgeGenderYearelectedYearofserviceRemarks0-9A-Z, a-zA-Z, a-z0-93A-Z, a-z0-90-9A-Z, a-z

tblestablishmentIDCOMPANYNAMEOWNERDATEISSUEDDATEESTABLISHEDPUROKSTREETS0-9A-Z, a-zA-Z, a-z0-9, /0-9, /0-9A-Z, a-z, 0-9

TblarchiveIDRestnoLastnameFirstnameMiddlenameBirthdateReligionGenderCivilstatusCitizenshipCivilstatusContactnoCitizenshipBirthplaceZoneOccupationBusinessHouseholdAgeStreet0-90-9A-Z, a-zA-Z, a-zA-Z, a-z0-9A-Z, a-zA-Z, a-zA-Z, a-zA-Z, a-zA-Z, a-z0-20A-Z, a-zA-Z, a-z0-9A-Z, a-zA-Z, a-z0-93A-Z, a-z

tblbusinessIDBusiness0-9A-Z, a-z

tblcitizenshipIDCitizenship0-9A-Z, a-z

tbloccupationIDOccupation0-9A-Z, a-z

TblpositionIDPosition0-9A-Z, a-z

TblreligionIDReligion0-9A-Z, a-z

tblremarksIDRemarks0-9A-Z, a-z

TblsecureIDPassword0-90-9

TblstatusIDStatus0-9A-Z, a-z

TblstreetsIDStreetsPurok0-9A-Z, a-z, 0-90-9

TblzoneIDZun0-90-9

TbltotalIDPurokTitleMaleFemaleTotal0-90-9A-Z, a-zA-Z, a-zA-Z, a-z0-9

4.4 IPO (INPUT PROCESS OUTPUT DIAGRAM) INPUT PROCESS OUTPUTInformation of Residents and Officials.ADD- allows the user to add new entry.EDIT- let the user modify the input data or information.DELETE- use to eliminate data or file.SAVE- allows the user to update or store information entered.CANCEL- use to terminate process.CLOSE- allows the user to exit from the transaction.SEARCH- allows the user to find look or view the information.PASSWORDUsernamePasswordRESIDENTSResidents No.Last NameFirst NameMiddle NameBirthdateReligionGenderCivil StatusContact numberCitizenshipBirthplaceZoneOccupationBusinessHouse numberAgeStreetsRemarksOFFICIALSFull NamePositionAgeGenderYear ElectedARCHIVESRestnoLastnameFirstnameMiddlenameBirthdateReligionGenderCivilstatusContactnoCitizenshipBirthplaceZoneOccupationBusinessHouseholdAgeStreetESTABLISHMENTSIDCOMPANYNAMEOWNERDATEISSUEDDATEESTABLISHEDPUROKSTREETSBUSINESSIDBusinessCITIZENSHIPIDCitizenshipOCCUPATIONIDOccupationPOSITIONIDPositionRELIGIONIDReligionREMARKSIDRemarksSTATUSIDstatusSTREETSIDStreetsPurok

4.5 HIPO (HIRARCHY INPUT PROCESS OUTPUT DIAGRAM)

PASWORD

MAIN MENU

TRANSACTIONSYSTEMREPORTFILE

HELPLIST OF RESIDENTSRESIDENTSLIBRARY FILE

ABOUTOFFICIALSRDS

SECURITY SETTING

ESTABLISHMENTS

EXITBRGY. OFFICIALS LIST

4.6 PHYSICAL DESIGN

Chapter VSUMMARY, CONCLUSION AND RECOMMENDATION

5.1 Summary of FindingThrough the thorough implementation of the system, the researchers found that BARANGAY PROFILING SYSTEM of Barangay Nannarian, Peablanca, Cagayan is the best solution of the time and effort consuming recording and generating reports of residents of the barangay.

5.2 ConclusionThe researchers conclude that using the said study is more effective and efficient in recording the residents profiles and therefore it is not already a burden and laborious on the apart of the officials in charge in updating the profiles of each residents and generates records of each residents.

5.3 RecommendationThe researchers therefore recommend that Barangay Profiling System is more reliable to use and they recommend that Barangay Nannarian, Peablanca should adopt it, so, as to cope with a high speed transformation of technology and could generate a great degree of accuracy and speed.

BIBLIOGRAPHY

[1] http//academia.com[2] Angeles University Foundation Graduate School.Guidelines on Writing the Dissertation, Thesis, and Project Study.

[2] Booth, Wayne C., Colomb, Gregory G., and Williams, Joseph M. 1993. The Craft of Research.University of Chicago Press.

[3] Institute of Electrical and Electronic Engineers. 1965. Information for IEEE Authors. IEEE Spectrum 2

APPENDICESAPPENDIX A.History of Barangay NannarianThe hunters who settled in barangay Callao went as far as the adjacent barangay, their place of settlement to farm. They planted corn, rice, peanut mongo beans, tobacco, sorghum and millet. These hunters are fond of drinking chocolate which they get from the cacao seeds which they planted in abundance. The best cake that goes with this chocolate is a native cake from millet. Millet in the Ibanang dialect is NANNA. Because of their fondness in drinking chocolate with millet or Nanna cake, they planted their farm with plenty of millet. Their millet or nanna plants grew very well, very healthy and very productive.One time, some Spaniards passed by the farm. They were so excited and very happy upon seeing how beautiful and how plenty were the millet or Nanna. They asked the farmers what those plants were. The farmers answered NANNA RA YAN meaning Those are millet. The Spaniards kept on repeating Nannarayan until they got so used to saying the words and soon the words Nanna ray an became one word, Nannarian. Not long after in the latter 60s the place was proclaimed as a barangay. When Nannarian was not proclaimed as barangay, it has three (3) sitios, namely Paku, Labo and Fugu. Later on, in the latter 70s Nannarianhas five (5) zones. After sometime, the zone was change into purok and with five (5) puroks, then with six (6) and presently it has seven (7) puroks due to the rapid increase in population. Today, Nannarian is one among the developing barangays in the municipality Peablanca.

MissionTo upgrade the status of the community people through proper utilization of resources and implementing priority programs and projects with respect to nature and welfare of mankind.

VissionA united barangay capable of managing and sustaining development activities to ensure the economic growth and progress of community and well being

APPENDIX B:DIAGRAMMING SYMBOLSERD SYMBOLSAttributes: A named property of characteristics of an entity that is of interest of the organization

Entity: An object that exist and is distuishable from otherObjects

Primary Key: An attributing in the table that has no duplicate value, it is a unique identifier

Foreign key: The attribute in the table that is unique in its table but when moves to another table becomes an ordinary attribute

Cardinality SymbolsA named property or characteristics of an entity is interested to the organization. One to One relationship.

One to Many relationship

Optional one or one cardinality

Flowcharting symbols

Terminal SymbolMarks the starting or ending point of the flowchart.

ProcessRepresents a single page, or an entire sub-process within a larger process

Input/OutputRepresents material or information entering or leaving the system

On-Page ConnectorIndicates that the flow continues where a matching symbol has been placed

Flow LineLines indicate the sequence of steps and the direction of flow

Off-Page ConnectorIndicates that the process continues of page

DecisionA branching point; lines representing different decisions emerge from different points of the diamond.

InitializationUsed to prepare components of a program

APPENDIX C: REPORT PRINTOUT

APPENDIX D: ACCEPTANCE LETTERDecember 3, 2013MRS.ANGELITA MACARILAYBarangay CaptainBarangay Nannarian, Peablanca CagayanMaam:Greetings in the Name of the Lord!We are currently enrolled in Capstone Project, a course that envisions a good systems proposal, which is a part of a dynamic and responsive curriculum of the degree Bachelor of Science in Information Technology. The course cultivates and hones the ability of the students to develop interpersonal, analysis, research, and design skills through interactive and meaningful data gathering activities.We are very willing to help your organization by developing a Barangay Profiling System which may be of great use for your daily routines and rigorous business transactions. As approved by our Instructor, we seek permission from you for us to conduct data gathering activity through interview, observation, investigation, and/or floating of questionnaires.The output of the data gathering activity shall be useful in defining the business problem of your organization and the data shall be utilized as basis for the development of a sound system that primordially eradicates the bulk of paper work, filing, and retrieval. We also ensure the security and confidentiality of the data gathered from your organization.Should you have inquiries or verifications, please feel free to contact us anytime and we shall be very pleased to accommodate you. Thank you, in anticipation, for your positive response on this humble request. More Power and God Bless!Respectfully yours,JunelQuindatanJohn Michael MarcosJeremy LiquiganNOTED:

GEORGE BICERA EDISON D. BRAVO, MSME, MITInstructor-Adviser, CapstoneOIC-DeanUSER MANUAL

This screen will ask the user to input his/her uername and correct password to access the system. The login button confirms the password if the entered username and password is valid it will go to the next form else it will ask the user to type the correct username.

This is the main form of the system. Here, you can choose what part of the system to view or navigate by clicking the corresponding buttons.

This form is the residents form. In this form the following are inputedfirstname, lastname, middlename, age, gender,etc..you made use of labels to identify. It has four buttons, add, edit, delete, cancel.Add allows you to add new entry in the form, edit let the user to modify the entered data or information, delete to eliminate data or information, cancel to terminate the process.

This form is the adding form. This is made used to enter data about the profile of the new residents of the barangay. It has two command buttons, save and cancel. Save allows the user to update or store information entered. Cancel use to terminate process.

This is the edit form, this is used to modify the Input data about the profiles of the residents. It used to change information about the residents.

This form is the list of officials in the barangay with their corresponding data about them. It has four command buttons add, edit, delete, cancel. Add allows you to add new entry in the form, edit let the user to modify the entered data or information, delete to eliminate data or information, cancel to terminate the process.

This form is used to add new elected officials of the barangay. It has two command buttons, save and cancel. Save allows the user to update or store the information entered.

This form is the edit form of officials, it is used to modify the input data about the officials. It has two buttons the save and cancel. Save allows the user to update or store the information entered.

APPENDIX E:COMPLETION FORM

APPENDIX F:SOURCE CODELOGINPrivate Sub login_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDownIf e.KeyCode = Keys.Escape Then End End If End Sub

Sub checkuser() If Trim(txtuss.Text) "" And Trim(txtpss.Text) "" Then FillDataGrid("Select * from tblLogin Where password='" & Trim(txtpss.Text) & "','" & Trim(txtuss.Text) & "'", dgvusers) End If End SubPrivate Sub Piclog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Piclog.Click If Trim(txtpss.Text = "") Then MsgBox("Please enter your Password", MsgBoxStyle.Information, "Empty") Exit Sub End If FillDataGrid("Select * from tblLogin Where username='" & Trim(txtuss.Text) & "' and password='" & Trim(txtpss.Text) & "'", dgvusers) If dgvusers.Rows.Count >= 1 Then If dgvusers.CurrentRow.Cells(5).Value = Trim(txtpss.Text) And dgvusers.CurrentRow.Cells(4).Value = Trim(txtuss.Text) Then Me.Hide() mainnnn.Text = "BARANGAY PROFILING SYSTEM OF NANNARIAN PEABLANCA" mainnnn.Show() End If Else MsgBox("Invalid Password", MsgBoxStyle.Critical, "Invalid") txtpss.Clear() txtpss.Focus() End If End Sub

ADD PASSWORDPrivate Sub picadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picadd.Click AddPassword.txtname.Clear() AddPassword.txtmod.Clear() AddPassword.txtposition.Clear() AddPassword.txtuser.Clear() AddPassword.txtpassword.Clear()

AddPassword.Show()

End Sub

EDIT PASSWORD Private Sub picedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picedit.Click On Error Resume Next edituser.Text = "Edit User"

edituser.txtfullname.Text = dgv2.CurrentRow.Cells(1).Value edituser.txtaccess.Text = dgv2.CurrentRow.Cells(2).Value edituser.txtposition.Text = dgv2.CurrentRow.Cells(3).Value edituser.txtuser.Text = dgv2.CurrentRow.Cells(4).Value ' frmuser.txtoldnew.Text = dgvsetup.CurrentRow.Cells(5).Value edituser.txt1.Text = dgv2.CurrentRow.Cells(5).Value

edituser.ShowDialog() edituser.txtconfirm.Clear() edituser.txtexpass.Clear() edituser.txtnewpass.Clear()

End Sub

DELETE PASSWORDPrivate Sub picdelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picdelete.Click If MsgBox("Do you really want to delete this records?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Delete") = MsgBoxResult.Yes Then FillDataGrid("DELETE FROM tblLogin WHERE ID=" & dgv2.CurrentRow.Cells(0).Value & "", dgv2) loadsetup() End If End SubEnd ClassUPDATE PASSWORDSub updatepassword() If chk.Checked = True Then txtnewpass.Enabled = True txtconfirm.Enabled = True Else chk.Checked = False

txtnewpass.Enabled = False txtconfirm.Enabled = False End If End Sub

Private Sub edituser_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load updatepassword()

End Sub

Private Sub chk_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chk.CheckedChanged updatepassword() End Sub

Private Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click

If Trim(txtexpass.Text) Trim(txt1.Text) Then MsgBox("Invalid Password", MsgBoxStyle.Critical) txtexpass.Focus() Exit Sub End If

FillDataGrid("UPDATE tblLogin set [Fullname]='" & Trim(txtfullname.Text) & "',[accessmod]='" & Trim(txtaccess.Text) & "',[position]='" & Trim(txtposition.Text) & "',[username]='" & Trim(txtuser.Text) & "',[password]='" & Trim(txtnewpass.Text) & "' WHERE ID=" & user_setup.dgv2.CurrentRow.Cells(0).Value & "", user_setup.dgv2) If chk.Checked = True Then If Trim(txtnewpass.Text) Trim(txtconfirm.Text) Then MsgBox("Password Did Not Match", MsgBoxStyle.Critical) txtnewpass.Focus() Exit Sub End If

FillDataGrid("UPDATE tblLogin SET password='" & Trim(txtnewpass.Text) & "' WHERE ID=" & user_setup.dgv2.CurrentRow.Cells(0).Value & "", user_setup.dgv2)

End If

Me.Close() user_setup.loadsetup()

user_setup.Show()

End SubSAVE AND UPDATE RESIDENTS

Private Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click

If MsgBox("Are you Sure you want to SAVE this records?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Save") = MsgBoxResult.Yes Then If Me.Text = "Add Resident" ThenFillDataGrid("INSERT INTO tblinfo ([Restno],[Lastname],[Firstname],[Middlename],[Birthdate],[Religion],[Gender],[Civilstatus],[Contactno],[Citizenship],[Birthplace],[Zone],[occupation],[business] , [Household] , [Age] , [Streets] , [rel] , [gen] , [civ] , [zun] , [occ] , [bus] , [strit] , [Remarks] , [Attainment] , [SeniorCitizen] , [DisAbilities] ) values ('" & Trim(txtresident.Text) & "','" & Trim(txtlname.Text) & "','" & Trim(txtfname.Text) & "','" & Trim(txtmname.Text) & "','" & Trim(txtdate.Text) & "','" & Trim(cmbreligion.Text) & "','" & Trim(cmbgender.Text) & "','" & Trim(cmbstat.Text) & "','" & Trim(txtcon.Text) & "','" &Trim(cmbcitizen.Text) & "','" & Trim(txtbp.Text) & "','" & cmbpurok.Text & "','" & cmboccupation.Text & "','" & cmbbusiness.Text & "','" & Trim(txthousehold.Text) & "','" & Trim(txtage.Text) & "','" & cmbstreets.Text & "','" & Trim(txtrel.Text) & "','" & Trim(txtgender.Text) & "','" & Trim(txtciv.Text) & "','" & Trim(txtcitizenship.Text) & "','" & Trim(txtocc.Text) & "','" & Trim(txtbus.Text) & "','" & Trim(txtstrteets.Text) & "','" & cmbremarks.Text & "','" & cmbattainment.Text & "','" & cmbsenior.Text & "','" & cmbdis.Text & "')", frmlist.dgv1) MsgBox("done") Call frmlist.Loadres() Else Dim con As New OleDb.OleDbConnection(StrCon) Dim comm As OleDb.OleDbCommand con.Open() comm = New OleDb.OleDbCommand comm.Connection = con comm.CommandText = "UPDATE tblinfo SET [Restno]='" & Trim(txtresident.Text) & "',[Lastname]='" & Trim(txtlname.Text) & "',[Firstname]='" & Trim(txtfname.Text) & "',[Middlename]='" & Trim(txtmname.Text) & "',[Birthdate]='" & Trim(txtdate.Text) & "',[Religion]='" & Trim(cmbreligion.Text) & "',[Gender]='" & Trim(cmbgender.Text) & "',[Civilstatus]='" & Trim(cmbstat.Text) & "',[Contactno]='" & Trim(txtcon.Text) & "',[Citizenship]='" & Trim(cmbcitizen.Text) & "',[Birthplace]='" & Trim(txtbp.Text) & "',[Zone]='" & Trim(cmbpurok.Text) & "',[occupation]='" & Trim(cmboccupation.Text) & "',[business]='" & Trim(cmbbusiness.Text) & "',[Household]='" & Trim(txthousehold.Text) & "',[Age]='" & Trim(txtage.Text) & "',[Streets]='" & Trim(cmbstreets.Text) & "',[rel]='" & Trim(txtrel.Text) & "',[gen]='" & Trim(txtgender.Text) & "',[civ]='" & Trim(txtciv.Text) & "',[zun]='" & Trim(txtcitizenship.Text) & "',[occ]='" & Trim(txtocc.Text) & "',[bus]='" & Trim(txtbus.Text) & "',[strit]='" & Trim(txtstrteets.Text) & "',[Remarks]='" & Trim(cmbremarks.Text) & "',[Attainment]='" & Trim(cmbattainment.Text) & "',[SeniorCitizen]='" &Trim(cmbcitizen.Text) & "',[DisAbilities]='" & Trim(cmbdis.Text) & "' WHERE [ID]=" & frmlist.dgv1.CurrentRow.Cells(0).Value & "" comm.ExecuteNonQuery() 'FillDataGrid("UPDATE tblinfo SET Restno='" & Trim(txtresident.Text) & "',Lastname='" & Trim(txtlname.Text) & "',Firstname='" & Trim(txtfname.Text) & "',Middlename='" & Trim(txtmname.Text) & "',Birthdate='" & Trim(txtdate.Text) & "',Religion='" & Trim(cmbreligion.Text) & "',Gender='" & Trim(txtgen.Text) & "',Civilstatus='" & Trim(cmbstat.Text) & "',Contactno='" & Trim(txtcon.Text) & "',Citizenship='" & Trim(txtciti.Text) & "',Birthplace='" & Trim(txtbp.Text) & "',Zone='" & Trim(cmbpurok.Text) & "',occupation='" & Trim(cmboccupation.Text) & "',business,='" & Trim(cmbbusiness.Text) & "',FamilyID,='" & Trim(cmbbusiness.Text) & "',Familycode,='" & Trim(cmbfamcode.Text) & "' WHERE ID=" & frmlist.dgv1.CurrentRow.Cells(0).Value & "", frmlist.dgv1) Call frmlist.Loadres() End If 'txtresident.Text = Val(txtresident.Text) + 1 frmlist.Refresh() 'Me.Close() Call frmlist.Loadres() frmlist.lbltotal.Text = frmlist.dgv1.RowCount

End If Exit Sub End SubADD RESIDENTSPrivate Sub picADD_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picADD.Click resident_info.Text = "Add Resident" resident_info.txtresident.Clear() resident_info.txtlname.Clear() resident_info.txtfname.Clear() resident_info.txtmname.Clear() resident_info.txtage.Clear() resident_info.cmbgender.Items.Clear() resident_info.cmbreligion.Items.Clear() resident_info.cmbstat.Items.Clear() resident_info.cmboccupation.Items.Clear() resident_info.cmbpurok.Items.Clear() resident_info.cmbbusiness.Items.Clear() resident_info.txthousehold.Clear() resident_info.txtcon.Clear() resident_info.cmbcitizen.Items.Clear() resident_info.txtbp.Clear() resident_info.txtrel.Clear() resident_info.txtgender.Clear() resident_info.txtstrteets.Clear() resident_info.txtcitizenship.Clear() resident_info.txtbus.Clear() resident_info.txtocc.Clear() resident_info.txtciv.Clear() resident_info.txtpurok.Clear() resident_info.txtbirth.Clear() resident_info.txtremarks.Clear() resident_info.cmbremarks.Visible = False resident_info.lbl1.Visible = False resident_info.txtresident.Clear() dgv1.Columns(25).Visible = False

End Sub

EDIT RESIDENTS

Private Sub picedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picedit.Click resident_info.Text = "Edit Profile" resident_info.txtresident.Text = dgv1.CurrentRow.Cells(1).Value.ToString resident_info.txtlname.Text = dgv1.CurrentRow.Cells(2).Value.ToString resident_info.txtfname.Text = dgv1.CurrentRow.Cells(3).Value.ToString resident_info.txtmname.Text = dgv1.CurrentRow.Cells(4).Value.ToString resident_info.txtbirth.Text = dgv1.CurrentRow.Cells(5).Value.ToString resident_info.txtrel.Text = dgv1.CurrentRow.Cells(6).Value.ToString resident_info.txtgender.Text = dgv1.CurrentRow.Cells(7).Value.ToString resident_info.txtciv.Text = dgv1.CurrentRow.Cells(8).Value.ToString resident_info.txtcon.Text = dgv1.CurrentRow.Cells(9).Value.ToString resident_info.txtcitizenship.Text = dgv1.CurrentRow.Cells(10).Value.ToString resident_info.txtbp.Text = dgv1.CurrentRow.Cells(11).Value.ToString resident_info.txtpurok.Text = dgv1.CurrentRow.Cells(12).Value.ToString resident_info.txtocc.Text = dgv1.CurrentRow.Cells(13).Value.ToString resident_info.txtbus.Text = dgv1.CurrentRow.Cells(14).Value.ToString resident_info.txthousehold.Text = dgv1.CurrentRow.Cells(15).Value.ToString resident_info.txtage.Text = dgv1.CurrentRow.Cells(16).Value.ToString resident_info.txtstrteets.Text = dgv1.CurrentRow.Cells(17).Value.ToString resident_info.txtremarks.Text = dgv1.CurrentRow.Cells(25).Value.ToString resident_info.cmbattainment.Text = dgv1.CurrentRow.Cells(26).Value.ToString resident_info.cmbdis.Text = dgv1.CurrentRow.Cells(28).Value.ToString resident_info.cmbremarks.Visible = True resident_info.lbl1.Visible = True resident_info.ShowDialog() dgv1.Columns(25).Visible = True End SubDELETE RESIDENTSPrivate Sub PictDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PicDelete.Click

If MsgBox("Do you really want to delete this records?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Delete") = MsgBoxResult.Yes Then

FillDataGrid("DELETE FROM tblinfo WHERE ID=" & dgv1.CurrentRow.Cells(0).Value & "", dgv1) Loadres()

lbltotal.Text = dgv1.RowCount dgv1.Columns(25).Visible = False

End If

End Sub

SEARCH RESIDENTSPrivate Sub txtsearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtsearch.TextChanged searchone() End Sub

Sub searchone() '[Birthdate],[Religion],[Gender],[Civilstatus],[Contactno],[Citizenship],[Birthplace],[Zone],[occupation],[business] , [Household] , [Age] , [Streets] ,[Remarks]

If txtsearch.Text "" Then FillDataGrid("SELECT * FROM tblinfo WHERE Restno like '" & Trim(txtsearch.Text) & "%' or Lastname like '" & Trim(txtsearch.Text) & "%' or Firstname like '" & Trim(txtsearch.Text) & "%' or Middlename like '" & Trim(txtsearch.Text) & "%' or Birthdate like '" & Trim(txtsearch.Text) & "%' or Religion like '" & Trim(txtsearch.Text) & "%' or Gender like '" & Trim(txtsearch.Text) & "%'", dgv1) formatgrid()

Else FillDataGrid("SELECT * FROM tblinfo WHERE Restno= 'wewe123123'", dgv1) formatgrid()

End If

SAVE OFFICIALS

Private Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click

Dim year As String = cmbelected.Text + " - " + txtended.Text FillDataGrid("INSERT INTO tblofficials([Fullname] , [Position] , [BirthDate] , [Age] , [Gender] , [Yearelected] , [year] , [ended] , [yearofservice] , [Remarks]) VALUES('" & Trim(txtfull.Text) & "','" & Trim(cmbposition.Text) & "','" & Trim(dtbirth.Text) & "','" & Trim(txtt.Text) & "','" & Trim(cmbgender.Text) & "','" & year & "','" & Trim(txtyear.Text) & "','" & Trim(txtend.Text) & "','" & Trim(txtyearofsrvice.Text) & "','" & Trim(cmbremarks.Text) & "')", list_of_officials.dgvofficials)

list_of_officials.loadoff() Me.Close() End Sub

ADD OFFICIALSPrivate Sub picadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picadd.Click barangay_officials.txtfull.Clear() barangay_officials.cmbposition.Items.Clear() barangay_officials.txtt.Clear() barangay_officials.cmbgender.Items.Clear() barangay_officials.cmbelected.Items.Clear() barangay_officials.txtended.Clear() barangay_officials.txtservice.Clear() barangay_officials.txtyearofsrvice.Clear() barangay_officials.txtend.Clear() barangay_officials.txtyear.Clear() barangay_officials.cmbremarks.Items.Clear() barangay_officials.ShowDialog()

End Sub

EDIT OFFICIALS

Private Sub picedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picedit.Click editofficials.txtfull.Text = dgvofficials.CurrentRow.Cells(1).Value.ToString editofficials.txtpos.Text = dgvofficials.CurrentRow.Cells(2).Value.ToString editofficials.txtdate.Text = dgvofficials.CurrentRow.Cells(3).Value.ToString editofficials.txtt.Text = dgvofficials.CurrentRow.Cells(4).Value.ToString editofficials.cmbgender.Text = dgvofficials.CurrentRow.Cells(5).Value.ToString editofficials.txtyear.Text = dgvofficials.CurrentRow.Cells(7).Value.ToString editofficials.txtend.Text = dgvofficials.CurrentRow.Cells(8).Value.ToString editofficials.txtyearofservice.Text = dgvofficials.CurrentRow.Cells(9).Value.ToString editofficials.cmbstatus.Text = dgvofficials.CurrentRow.Cells(10).Value.ToString editofficials.ShowDialog() End Sub

UPDATE OFFICIALSPrivate Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click Dim year As String = cmbelected.Text + " - " + txtended.Text

FillDataGrid("UPDATE tblofficials SET [Fullname]='" & Trim(txtfull.Text) & "',[Position]='" & Trim(cmbposition.Text) & "',[BirthDate]='" & Trim(dtbirth.Text) & "',[Age]='" & Trim(txtt.Text) & "',[Gender]='" & Trim(cmbgender.Text) & "',[Yearelected]='" & year & "',[ended]='" & Trim(txtended.Text) & "',[Remarks]='" & Trim(cmbstatus.Text) & "' WHERE [ID]=" & list_of_officials.dgvofficials.CurrentRow.Cells(0).Value & "", list_of_officials.dgvofficials)

Me.Close() list_of_officials.loadoff()

End SubDELETE OFFICIALSPrivate Sub picdelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picdelete.Click

If MsgBox("Do you really want to delete this records?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Delete") = MsgBoxResult.Yes Then FillDataGrid("DELETE FROM tblofficials WHERE ID=" & dgvofficials.CurrentRow.Cells(0).Value & "", dgvofficials) loadoff() End If End SubSEARCH OFFICIALS

Private Sub txtsearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtsearch.TextChanged FillDataGrid("SELECT * FROM tblofficials where [Fullname] like '" & Trim(txtsearch.Text) & "%' or [Position] like '" & Trim(txtsearch.Text) & "%' or [Age] like '" & Trim(txtsearch.Text) & "%' or [Gender] like '" & Trim(txtsearch.Text) & "%' or [Yearelected] like '" & Trim(txtsearch.Text) & "%' or [year] like '" & Trim(txtsearch.Text) & "%' or [ended] like '" & Trim(txtsearch.Text) & "%'", dgvofficials)

End Sub

SAVE ESTABLISHMENTSPrivate Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click FillDataGrid("INSERT INTO tblestablishment([COMPANYNAME] , [OWNER] , [DATEISSUED] , [DATEESTABLISHED] ,[PUROK] , [STREETS] ) VALUES('" & Trim(txtcompany.Text) & "','" & Trim(txtowner.Text) & "','" & Trim(txtis.Text) & "','" & Trim(txtestablished.Text) & "','" & cmbpurok.Text & "','" & cmbstreets.Text & "')", frmestablishment.dgvestablish) Me.Close() frmestablishment.loadestablishment()

End SubADD ESTABLISHMENTSPrivate Sub picadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picadd.Click Addestablishment.txtcompany.Clear() Addestablishment.txtowner.Clear() Addestablishment.cmbpurok.Items.Clear() Addestablishment.cmbstreets.Items.Clear() Addestablishment.ShowDialog()

End SubEDIT ESTABLISHMENTSPrivate Sub picedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picedit.Click editestablishment.txtcompany.Text = dgvestablish.CurrentRow.Cells(1).Value.ToString editestablishment.txtowner.Text = dgvestablish.CurrentRow.Cells(2).Value.ToString editestablishment.txtissued.Text = dgvestablish.CurrentRow.Cells(3).Value.ToString editestablishment.txtes.Text = dgvestablish.CurrentRow.Cells(4).Value.ToString editestablishment.cmbpurok.Text = dgvestablish.CurrentRow.Cells(5).Value.ToString editestablishment.cmbstreets.Text = dgvestablish.CurrentRow.Cells(6).Value.ToString editestablishment.ShowDialog() End SubDELETE ESTABLISHMENTS If MsgBox("Do you really want to delete this records?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Delete") = MsgBoxResult.Yes Then FillDataGrid("DELETE FROM tblestablishment WHERE ID=" & dgvestablish.CurrentRow.Cells(0).Value & "", dgvestablish) loadestablishment() End If End Sub

UPDATE ESTABLISHMENTSPrivate Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click FillDataGrid("UPDATE tblestablishment SET [COMPANYNAME]='" & Trim(txtcompany.Text) & "',[OWNER]='" & Trim(txtowner.Text) & "',[DATEISSUED]='" & Trim(txtis.Text) & "',[DATEESTABLISHED]='" & Trim(txtestablished.Text) & "',[PUROK]='" & Trim(cmbpurok.Text) & "',[STREETS]='" & Trim(cmbstreets.Text) & "' WHERE [ID]=" & frmestablishment.dgvestablish.CurrentRow.Cells(0).Value & "", frmestablishment.dgvestablish) Me.Close() frmestablishment.loadestablishment() End SubSEARCH ESTABLISHMENTS Private Sub txtsearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtsearch.TextChanged FillDataGrid("SELECT * FROM tblestablishment WHERE COMPANYNAME like '" & Trim(txtsearch.Text) & "%' or OWNER like '" & Trim(txtsearch.Text) & "%' or DATEESTABLISHED like '" & Trim(txtsearch.Text) & "%'", dgvestablish)

End SubSAVE PUROK

Private Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click FillDataGrid("INSERT INTO tblzone(zun) VALUES ('" & Trim(txtpurok.Text) & "')", frmzone.dgvstreet) Me.Close() frmzone.loadstreets() resident_info.loadpurok()

End SubADD PUROKPrivate Sub picadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picadd.Click addzone.txtpurok.Clear()

addzone.ShowDialog() End SubEDIT PUROK

Private Sub picedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picedit.Click frmeditzone.txtpurok.Text = dgvstreet.CurrentRow.Cells(1).Value frmeditzone.ShowDialog() End Sub

DELETE PUROKPrivate Sub picdelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picdelete.Click

If txtinfo.Text "" Then MsgBox("This ZONE is in use!!!")

ElseIf MsgBox("Do you really want to delete this records?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Delete") = MsgBoxResult.Yes Then FillDataGrid("DELETE FROM tblzone WHERE ID=" & dgvstreet.CurrentRow.Cells(0).Value & "", dgvstreet) loadstreets() End If End SubUPDATE PUROKPrivate Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click FillDataGrid("UPDATE tblzone SET zun='" & Trim(txtpurok.Text) & "' WHERE [ID]=" & frmzone.dgvstreet.CurrentRow.Cells(0).Value & "", frmzone.dgvstreet) Me.Close()

frmzone.loadstreets()

End Sub

SEARCH PUROKPrivate Sub txtserch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtserch.TextChanged FillDataGrid("SELECT * FROM tblzone WHERE zun like '" & Trim(txtserch.Text) & "%'", dgvstreet) End SubSAVE STREETSPrivate Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click FillDataGrid("insert into tblstreetss([streets] , [purok]) values ('" & Trim(txtstreets.Text) & "','" & Trim(cmbpurok.Text) & "')", frmstreets1.dgvstreets) Me.Close() frmstreets1.loadstreets() resident_info.loadstreetss()

End SubADD STREETSPrivate Sub picadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picadd.Click frmaddstreets.txtstreets.Clear() frmaddstreets.cmbpurok.Items.Clear()

frmaddstreets.Show() End SubEDIT STREETS Private Sub picedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picedit.Click frmeditstreets.txtstreets.Text = dgvstreets.CurrentRow.Cells(1).Value.ToString frmeditstreets.cmbpurok.Text = dgvstreets.CurrentRow.Cells(2).Value.ToString

frmeditstreets.Show()

End Sub

DELETE STREETS Private Sub picdelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picdelete.Click If MsgBox("Do you really want to delete this records?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Delete") = MsgBoxResult.Yes Then FillDataGrid("DELETE FROM tblstreetss WHERE ID=" & dgvstreets.CurrentRow.Cells(0).Value & "", dgvstreets) loadstreets() End If End Sub

UPDATE STREETSPrivate Sub picsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picsave.Click FillDataGrid("UPDATE tblstreetss set streets='" & Trim(txtstreets.Text) & "',Purok='" & Trim(cmbpurok.Text) & "' where ID=" & frmstreets1.dgvstreets.CurrentRow.Cells(0).Value & "", frmstreets1.dgvstreets) Me.Close()

frmstreets1.loadstreets() End SubSEARCH STREETS Private Sub txtserch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtserch.TextChanged FillDataGrid("SELECT * FROM tblstreetss WHERE streets like '" & Trim(txtserch.Text) & "%' or Purok like '" & Trim(txtserch.Text) & "%'", dgvstreets)

End Sub

PRINTING OF RESIDENTSImports System.Data.OleDbPublic Class frmprinting Dim kom As New OleDbCommand Dim da As New OleDbDataAdapter Dim dset, dset2, dset3, dsetDel, dsetDept, dsetKors As New DataSet

Private Sub frmprinting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If switchPRint = 1 Then Dim cr As New Officials da = New OleDbDataAdapter("select * from tblofficials", ultracon) dset = New DataSet da.Fill(dset, "tblofficials") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 2 Then

Dim cr As New Residents da = New OleDbDataAdapter("select * from tblinfo", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 3 Then

Dim cr As New R_established da = New OleDbDataAdapter("select * from tblestablishment", ultracon) dset = New DataSet da.Fill(dset, "tblestablishment") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 6 Then

Dim cr As New rpp da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 7 Then

Dim cr As New rpp1 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "'and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 8 Then

Dim cr As New year da = New OleDbDataAdapter("select * from tblofficials where year='" & (frmservice.cmbelected.Text) & "'", ultracon) dset = New DataSet da.Fill(dset, "tblofficials") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 9 Then

Dim cr As New rpp2 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 10 Then

Dim cr As New rpp3 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 11 Then

Dim cr As New rpp4 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 12 Then

Dim cr As New rpp5 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 13 Then

Dim cr As New rpp6 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 14 Then

Dim cr As New rpp7 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 15 Then

Dim cr As New rpp8 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 16 Then

Dim cr As New rpp9 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 17 Then

Dim cr As New rpp10 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 18 Then

Dim cr As New rpp11 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 19 Then

Dim cr As New rpp12 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" &frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 20 Then

Dim cr As New rpp13 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 21 Then

Dim cr As New rpp14 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 22 Then

Dim cr As New rpp15 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 23 Then

Dim cr As New rpp16 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 24 Then

Dim cr As New rpp17 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 25 Then

Dim cr As New rpp18 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 26 Then

Dim cr As New rpp19 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 27 Then

Dim cr As New rpp20 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 28 Then

Dim cr As New rpp21 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 29 Then

Dim cr As New rpp22 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 30 Then

Dim cr As New rpp23 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 31 Then

Dim cr As New rpp24 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 32 Then

Dim cr As New rpp25 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 33 Then

Dim cr As New rpp26 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 34 Then

Dim cr As New rpp27 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 35 Then

Dim cr As New rpp28 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 36 Then

Dim cr As New rpp29 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 37 Then

Dim cr As New rppofficials

da = New OleDbDataAdapter("select * from tblofficials where [Position]='" & frmprintingofficials.cmbposition.Text & "' and [year]='" & frmprintingofficials.cmbelected.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblofficials") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 38 Then

Dim cr As New rpp30

da = New OleDbDataAdapter("select * from tbltotal ", ultracon) dset = New DataSet da.Fill(dset, "tbltotal") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 39 Then

Dim cr As New R_established da = New OleDbDataAdapter("select * from tblestablishment where [PUROK]='" & printestblishment.cmbpurok.Text & "' and [STREETS]='" & printestblishment.cmbstreets.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblestablishment") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 40 Then

Dim cr As New rpp31 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 41 Then

Dim cr As New rpp32 da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & frmprintresidents.cmbpurok.Text & "' and [Civilstatus]='" & frmprintresidents.cmbstat.Text & "' and [Gender]='" & frmprintresidents.cmbgender.Text & "' and [Streets]='" & frmprintresidents.cmbstreets.Text & "' and [Religion]='" & frmprintresidents.cmbreligion.Text & "' and [Citizenship]='" & frmprintresidents.cmbcitizen.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 42 Then

Dim cr As New rpp33

da = New OleDbDataAdapter("select * from tbltotal ", ultracon) dset = New DataSet da.Fill(dset, "tbltotal") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 43 Then

Dim cr As New rppdeceased

da = New OleDbDataAdapter("select * from tblarchive ", ultracon) dset = New DataSet da.Fill(dset, "tblarchive") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

ElseIf switchPRint = 44 Then

Dim cr As New rpp34

da = New OleDbDataAdapter("select * from tblinfo where [Zone]='" & PrintEducational_Attainment.cmbpurok.Text & "' and [Attainment]='" & PrintEducational_Attainment.cmbattainment.Text & "'", ultracon) dset = New DataSet da.Fill(dset, "tblinfo") cr.SetDatabaseLogon("", "123") cr.SetDataSource(dset) CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Refresh()

Refresh()

End If

End Sub Sub delete() FillDataGrid("delete from tbltotal", frmstatistic.dgvtotal) End Sub

SEARCH PRINTINGPrivate Sub picprint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picprint.Click If cmbpurok.Text "" And cmbstat.Text = "" And cmbgender.Text = "" And cmbstreets.Text = "" And cmbcitizen.Text = "" And cmbreligion.Text = "" Then

switchPRint = 6 frmprinting.ShowDialog()

ElseIf cmbpurok.Text "" And cmbstat.Text "" And cmbgender.Text = "" And cmbstreets.Text = "" And cmbcitizen.Text = "" And cmbreligion.Text = "" Then

switchPRint = 7 frmprinting.ShowDialog()

ElseIf cmbpuro