77% found this document useful (13 votes)
24K views67 pages

Gram Panchayat Project

The document describes a project report for a Gram Panchayat Management System. It outlines the limitations of the current manual system, including excessive paperwork, difficult searching and data loss. The proposed system aims to automate the management of Gram Panchayats using computer technology for easier use, faster searching, automated reports and improved data security compared to the current manual registers. It is expected to reduce time spent on tasks and errors through validation.

Uploaded by

Prasad Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
77% found this document useful (13 votes)
24K views67 pages

Gram Panchayat Project

The document describes a project report for a Gram Panchayat Management System. It outlines the limitations of the current manual system, including excessive paperwork, difficult searching and data loss. The proposed system aims to automate the management of Gram Panchayats using computer technology for easier use, faster searching, automated reports and improved data security compared to the current manual registers. It is expected to reduce time spent on tasks and errors through validation.

Uploaded by

Prasad Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 67

Gram Panchayat Management System

A
PROJECT REPORT
ON
ʺGram Panchayat Management Systemʺ

1
Gram Panchayat Management System

A
PROJECT REPORT
ON
“Gram Panchayat Management System”
SUBMITTED TO
UNIVERSITY OF MUMBAI
In Partial Fulfilment of the Requirements For
BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)
SUBMITTED BY

Miss. Nilesh Chandrakant Gamare


Under The Guidance Of
Mr. Tushar Bijitkar

INSTITUTE OF COMPUTER SCIENCE AND


INFORMATION TECHNOLOGY, SAWARDE
YEAR 2016-17

2
Gram Panchayat Management System

SAHYADRY SHIKSHAN SANSTHA’S

INSTITUTE OF COMPUTER SCIENCE AND


INFORMATION TECHNOLOGY, SAWARDE

CERTIFICAT
E
This is to certify that the project entitled “Gram Panchayat Management
System” by Mr. Nilesh Chandrakant Gamare. In partial fulfillment of Bachelor of
Science – Information Technology (Sem - VI) of the Mumbai University has been
completed under the Supervision and guidance of Mr. Tushar Bijitkar in INSTITUTE
OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY, SAWARDE during
academic year 2016-2017 and this project represents bonafide work.

To the best of my knowledge and belief, the matter presented by them is


original Work and not copied from any degree or diploma of Mumbai University.

Place : Sawarde

Date :

Mr. Waje V. V. Mr. Gavade E. N.

H.O.D. (Principal)

(IT DEPARTMENT)

3
Gram Panchayat Management System

SAHYADRY SHIKSHAN SANSTHA’S

INSTITUTE OF COMPUTER SCIENCE AND


INFORMATION TECHNOLOGY, SAWARDE

CERTIFICAT

This is to certify that the project entitled “Gram Panchayat Management


System” by Mr. Nilesh Chandrakant Gamare. In partial fulfillment of Bachelor of
Science – Information Technology (Sem - VI) of the Mumbai University has been
completed under the Supervision and guidance of Mr. Tushar Bijitkar. in INSTITUTE
OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY, SAWARDE during
academic year 2016-2017 and this project represents bonifide work.

To the best of my knowledge and belief, the matter presented by them is


original Work and not copied from any degree or diploma of Mumbai University.

Place : Sawarde

Date :

External Mr. Tushar Bijitkar

(IT DEPARTMENT)

4
Gram Panchayat Management System

SAHYADRY SHIKSHAN SANSTHA’S

INSTITUTE OF COMPUTER SCIENCE AND


INFORMATION TECHNOLOGY, SAWARDE

DECLARATIO
N
I undersigned hereby declare that the Project Report Entitled “Gram
Panchayat Management System” by me under the guidance of Mr. Tushar Bijitkar.
is my original work.

The empirical finding in this report is based on the information collected by


me. I do not copy anything from the report earlier.

I understand that any such coping is liable to be punished in any way the
Mumbai University deem fit it.

Mr. Nilesh Chandrakant


Gamare

T.Y.B.Sc (Information Technology)

5
Gram Panchayat Management System

SAHYADRY SHIKSHAN SANSTHA’S

INSTITUTE OF COMPUTER SCIENCE AND


INFORMATION TECHNOLOGY, SAWARDE

ACKNOWLEDGEM
This report entitled “Gram Panchayat Management System” is Outcome of
my study.

We express our whole heard attitude to our honorable principal Mr. Gavade E.
N. Sir for the kind of opportunity given to me.

We express our dual thanks to our guide.

Also like to thanks all teaching and non-teaching staff. And also the class for
giving kind co-operation and contribution in giving proper shape to the project.

Mr. Nilesh Chandrakant Gamare

T.Y.B.Sc (Information Technology)

6
Gram Panchayat Management System

GRAM PANCHAYAT Management


System

ORGANIZATIONAL
CERTIFICATE
This is to certify that Mr. Nilesh Chandrakant Gamare a student of T.Y.BSc.
(Information Technology) from ICSIT college, Sawarde of Mumbai University has
successfully completed the project entitled “Gram Panchayat Management System”
the system is useful and helpful for the work.

He has put his best efforts and has shown a great degree of sincerity in
completion of the project. I wish him all the success. He bears a good moral
character.

………………………….
(Sarpanch, Dhamanavne)

7
Gram Panchayat Management System

CONTENTS

No. Title Page no.


1 Acknowledgement
2 The existing system
3 Problems of existing system
4 Scope of Proposed System
5 Advantages of proposed system
6 Gantt Chart
7 Fact Finding Technique
8 Event Table
9 Use Case Diagram
10 Class diagram
11 Object Diagram
12 Tools used for ER Diagram
13 Entity Relationship Diagram
14 Activity diagram
15 Data Flow Diagram
16 Context Diagram
17 Tools used for System Flowchart
18 System Flowchart
19 Tools used for Structure Chart

8
Gram Panchayat Management System

20 Structure Chart
21 Component Diagram
22 Package Diagram
23 Deployment Diagram
24 Program Description
25 Process Description(Structure
English)
26 Menu Tree
27 Database Design
28 Program List
29 System Control

Project Documentation
No Title Page

9
Gram Panchayat Management System

. No.
30 Test Cases ,Test Data ,Test
Result
31 Screen Layouts
32 Data entry Layouts
33 Test Data
34 Report Layouts
35 Coding
36 Scope For Future Enhancement
37 Conclusion
38 Bibliography

10
Gram Panchayat Management System

SYSTEM
DOCUMENTATIONS

EXISTING SYSTEM

11
Gram Panchayat Management System

 The manual record keeping has created a new scenario that


not only stresses on the classical concept of the “Registers” but
also on the modern concept of “service”.

 It is this level of service that maintains security and decrease


the headache of human. To provide a high accessibility of
service we have design the system so that potential security
guard need not to do manual entry on registers as it time taking
as well as registers may get lost.

 The current Housing Society Management System is handled


manually i.e. the data is handled by designed personals. The
data is store in the files.

 Requires multiple registers to store data as well as too much


complex while retrieving the data.

 Data may get loss.

12
Gram Panchayat Management System

Limitation of present system


 Maintaining details:
Maintaining all the details like member, worker, management,
is very tedious job.

 Excess paper work:


For maintaining records lots of paper gets wasted.

 Searching is very difficult:


Searching for details about member, his maintenance, worker
etc. is tedious.

 Time consuming:
Due to manual work, it takes lot of time to record a data as well
as for searching.

 Misplacement of records:
Since records are stores in registers so there is high risk of
misplacement of records.

13
Gram Panchayat Management System

PROPOSED SYSTEM

 The existing system will be replaced by modern computer


technology, this system ease the work of the society on the
daily basis.

 It will reduce time consumption of task to be performed.

 All the report will generate on one click only.

 Automatic validation will be reduced the data entry errors.

 Easy to use.

 Search facility.

 User friendly.

 Data security.

 Simplicity.

14
Gram Panchayat Management System

ADVANTAGES OF THE
PROPOSED SYSTEM

 GUI: The proposed system will provide better Graphical User


Interface.

 Search: Searching member, worker details and maintenance


details becomes comparatively easy.

 Increase work speed: Due to automation of some part of the


system work speed will increase.

 Less paperwork: For the proposed system less paperwork is


required.

 Reduced errors: Due to computerized there are less


possibilities of errors.

15
Gram Panchayat Management System

FEASIBILITY
STUDY

16
Gram Panchayat Management System

Feasibility study is the text of the system proposal


according to its work ability impact on the organization to
meet the user needs and effective use of the resources.

The following points need to be considered while


studying the feasibility of the proposed system.

 Technical Feasibility.
 Operational Feasibility.
 Economic Feasibility.
 Behavioral Feasibility.

TECHNICAL FEASIBILITY:-
Technical feasibility study determines whether the
organization has the technology and the skills necessary to
carry out project. If not then it determines how they should
be obtained. In this proposed system. The existing
technology satisfies the need for the system that is
available. Therefore the system is feasible.

Operational FEASIBILITY:-
Operational feasibility study determines if proposed
system satisfies the user’s objectives and can be fitted into
EXISTING system operation. Our proposed system will
certainly satisfy the user’s objectives and will enhance their
capability. The proposed system can be best instead of
EXISTING system operations. Therefore the system is
operationally feasible.

17
Gram Panchayat Management System

Economic FEASIBILITY:-
It is also important that our system should be
economically feasible and this measure of the cost
effectiveness of a project. This is often called a cost benefit
analysis. The software and hardware required for this
system are easily available now a day. No additional cost
will be incurred for expensive software or hardware.

The system will also reduce lots of paperwork chances


of errors is very minimum and provide consistent
information on this will lead to better output and will save
lots of money.

Behavioral FEASIBILITY:-
People are inherently resistant change and computer
has been known to facility changes. An estimate should be
made at how strong a reaction the user staff is likely to have
towards the development of a computerized system.

It is common knowledge that the computer


installation have something to do with turnover ,transfer
,retraining and changes in employee job status .Therefore, it
is understand able that introduction of a candidate system
requires special effort to educate, sell and train the staff on
new ways of conducting business.

HARDWARE AND SOFTWARE


18
Gram Panchayat Management System

SPECIFICATION

SOFTWARE
REQUIREMENT
OPERATING SYSTEM : WINDOWS 8 PRO

BROWSER FRONT END : MOZILLA FIREFOX 33.1.1

FRONT END : MICROSOFT VISUAL STUDIO 2010

ULTIMATE X86-TKISO

BACK END : SQL SERVER 2008 _R2_SP1 _

SQLEXPRADV_x86_ENU

CONNECTION PROTOCOL : TCP/IP, HTTP, SMTP, POP3, WAP

HARDWARE
REQUIREMENT
PROCESSOR : INTEL(R) PENTIUM(R) CPU 997 @

1.60GHz 1.60GHz

SYSTEM BUS : 32-BIT OPERATING SYSTEM

RAM : 2 GB

KEY BOARD : 108 KEYS

19
Gram Panchayat Management System

GANTT
CHART

Actual Date of
Sr. Phase Expected Date completion Remark
No. of Completion with Guide’s
Sign

1. Preliminary
investigation

20
Gram Panchayat Management System

A Organization Overview

B Limitation of current
system
& advantages of
proposed system

C Feasibility Study

2. System Analysis

A Fact Finding

B Event Table

D Use Case Diagram

E Activity diagram

F Class diagram

G Object Diagram

H Sequence/Collaboration
Diagram

3. System design

A Derive tables from


Entities and relationship

21
Gram Panchayat Management System

B Component Diagram

C Package Diagram

D Deployment Diagram

E Form/Web Page
Layouts, Report Layout

4. System Coding

A Design Database (Table


with attribute &
constraints)

B Coding

C Test Case & Validation

5. Soft copy Submission

6. System Implementation

7. Project Review by Guide

22
Gram Panchayat Management System

FACT FINDING
TECHNIQUES
23
Gram Panchayat Management System

While designing any system preliminary investigation


part is any important and an essential one. preliminary
investigation part is the base in the system. System whole
building of the system is dependent on preliminary
investigation which has the following three techniques :

1. Interviewing
2. Record review
3. Questionnaire

 Interviewing:-
The whole system investigation part is carried out by
making interview of the concerned people such as in
charge, employees and staff related to the organizations.
Manual process of each work is asked by hints regarding
the work, by asking their suggestion and taking their
produce regarding the requirement of the valuable system.
After taking their interview regarding the noted points are
studied very well. This interview techniques proves to be
beneficial regarding the preliminary investigation.

24
Gram Panchayat Management System

 Record review :-
The record review techniques prove useful in finding
the facts of the system. In this technique, all manually
prepared files, document its registers are observed
properly. Observation of such records is useful in preparing
the database files, reports and also useful in designing the
screen different fact of the system.

 Questionnaire:-
This techniques is useful for to collect all the
information about various aspects of the system from
different persons. This methods standardized question
format yield more reliable data then the rather facts
finding techniques. The wide distribution ensure greater
for despondences which can lead honest response.

 Interview
1) What is the purpose to develop this system?
Ans This is software should be handle huge quantity of data of
number of villagers and manage villagers records. Maintain all
activities of villagers. It will be store information of each
Villager.

2) Where are visitor to be manage from the gate or the


officer from both?
Ans From the gate.

25
Gram Panchayat Management System

3) How many gates are three for the premises?


Ans There is one gate.

4) Is Tracking required at gate?


Ans Yes. On gate we will record all data of visitor.

5) Is appointment of visitor required?


Ans Yes.

6) How many locations of this software?


Ans Two. On gate guard’s cabin and society.

7) How can interconnect this location by LAN/WAN?


Ans Locations are interconnected by LAN.

8) Typically expected timeframe for this software


delivery?
Ans 6 months.

9) Many entries and exit for employees?


Ans One.

26
Gram Panchayat Management System

EVENT
TABLE

27
Gram Panchayat Management System

EVENT TRIGGER SOURCE ACTIVITY RESPONSE DESTIN


ATION
Member New Society Create New Member Admin
Registration Member Manager Record Create
Entry Successful
Update Change Society Update Update Admin
Member Member Manager Member Member
Information Details Information
Delete Delete Society Delete Member Admin
Member Member Manager Member Charge
Information Details Information Status

Visitor Entry New Visitor Society Product Visitor Society


Record Entry Details Manager Lookup record is Manag
created er
Visitor Exit Visitor Exist Society Search Visitor Society
Record Details Manager Member record is Manag
Record & updated er
Update This
Record
Visitor Visitor Society Create new Appointme Society
Appointment appointmen Manager appointment nt record Manag
Record t record & record & send created er
send Mail mail for and send
appointment mail

Update Visitor Visitor Society Search then Visitor Society


Appointment appointmen Manager update appointme Manag
Record t record & appointment nt record is er
send Mail record & send updated &
mail for send mail

28
Gram Panchayat Management System

appointment
Employee New Society Create Employee Admin
registration employee Manager employee record is
entry new record created
create Change Society create Update Admin
Employee Employee Manager Employee Employee
Information Details Information
Update Change Society Update Update Admin
Employee Employee Employee Employee Employee
Information Details Information
Delete Delete Society Delete Employee Admin
Employee Employee Employee Employee Charge
Information Details Information Status
Regular visitor New Regular Society Create Regular Admin
registration visitor entry Manager Regular visitor
visitor new record is
record created
create Regular Change Society create Update Admin
visitor Regular Guard Regular Regular
Information visitor visitor visitor
Details Information
Update Change Society Update Update Admin
Regular visitor Regular Guard Regular Regular
Information visitor visitor visitor
Details Information
Delete Regular Delete Society Delete Regular Admin
visitor Regular Guard Regular visitor
Information visitor visitor Charge
Details Information Status
Regular New Servant Society Create Regular Admin
Servant entry Manager Servant new Servant
registration record record is
created
create Regular Change Society create Update Admin
Servant Regular Guard Regular Regular
Information Servant Servant Servant
Details Information
Update Change Society Update Update Admin
Regular Regular Guard Regular Regular
Servant Servant Servant Servant

29
Gram Panchayat Management System

Information Details Information


Delete Regular Delete Society Delete Regular Admin
Servant Regular Guard Regular Servant
Information Servant visitor Charge
Details Information Status

30
Gram Panchayat Management System

DIAGRAMS

USE CASE DIAGRAM

HIGH LEVEL USE CASE DIAGRAM :-

Karma Chari
Master

Designation
Master
31
Gram Panchayat Management System

Connection
Master

Admin All Connections

Cancel
Connection

Janm Dakhla

Mruthyu Dakhla

Population
Mastre

Regular Visitor sub System

32
Gram Panchayat Management System

Employee sub System

33
Gram Panchayat Management System

CLASS DIAGRAM

Population Water Connection


Id : Number Reg. Date : Number
Name : Text Reg. ID : Text
Gender : Text Owner Name : Text
Age : Text Address : Text
Address : Text Connection Type : Text
Search() Connection Size : Text
New() Search()
Save () New()
Update() Save ()
Delete() Update()
Close() Delete()
Close()

Login Details

Username : Text
Password : Text
User Type :Text
Email: Text
User Key :Text
Save ()
Search()
Update()
Delete()

34
Gram Panchayat Management System

OBJECT DIAGRAM

1. Population with Connection


Connection

Population Reg. Date : 12/01/2017


Reg. ID : 1
Id :1 Owner Name : Sagar
Name: Sagar Address : Dhamanavane
Gender : Male Connection Type : Water
Age : 25 Connection
Address : Dhamanavne Connection Size : 2

E-R DIAGRAM

35
Gram Panchayat Management System

TOOLS USED FOR ENTITY RELATIONSHIP


DIGRAM (ERD) :-
DIAGRAM DESCRIPTION

ENTITY

ATTRIBUTE

1 1 ONE - TO - ONE

1 M ONE - TO - MANY

M M MANY – TO – MANY

RELATION

ER Diagram For Society Security Management System

Population Karma chari Master

Have Have

36
Gram Panchayat Management System

Gram Panchayat
Management
System

Have Have

Connection Type All Connections

DATA FLOW DIAGRAM

Population Karma Chari Master

Population Details Karma Chari Details

Gram
Panchayat 37
Management
System
Gram Panchayat Management System

Designation Master Connection Type


Designation Master Connection Type

CONTEXT DIAGRAM

38
Gram Panchayat Management System

COMPONENT DIAGRAM
39
Gram Panchayat Management System

PACKAGE DIAGRAM

Masters
40
Gram Panchayat Management System

Karmachari Master
Designation Master
Connection Type Master
Connection Master
All Connection
Cancel Connection
Janm Dakhla
Mrityu Dakhla
Rahivashi Dakhla
Janmta Mrityu

Database

Connection Type
Death register
Designation
Employee
Janm Dakhla
Janm Praman
Login
New Connection
Population

Reports

Population Report
Total Male in Village
Total Female in Village

DEPLOYMENT DIAGRAM

41
Gram Panchayat Management System

PROGRAM DESCRIPTION

42
Gram Panchayat Management System

This program is design to carry out the process. In program the


Patient information, Details are saving in database. Through this
program user can do following program.

INSERT:-

This is for inserting information in the database. If Patient


information insert at first time then information will save in the
Patient table.

UPDATE:-

If user wants to update some information from table .At that


time we can update that record.

DELETE:-

If user wants to delete certain information from table. At


same time we can delete that information.

SEARCH:-

If user wants to search specific record then that will be possible


using search. User has to insert the id for searching.

CANCEL:-

At the time of inserting record if user wants to cancel that


record then user can cancel that record from saving using cancel
button.

43
Gram Panchayat Management System

PROCESS DESCRIPTION
(STRUCTURE ENGLISH)

START
If Member is new

Create New Member record

End if

If Member take Appointment

Create Appointment

If Appointment is confirm

Save Appointment Details

Else

Cancel this Appointment

End if

End if

If Visitor is new

Create new Visitor Entry

Else

Enter Visitor ID or name & search Visitor information

End if

44
Gram Panchayat Management System

If Maintenance is not paid

Send the maintenance to member through mail

Else

Send receipt to the member

End if

If Appointment is pending

Confirm & Send appointment

End if

45
Gram Panchayat Management System

MENU
TREE

Master Karmachari Master


Designation Master
46
Gram Panchayat Management System

Connection Type
Connection Master
All Connection
Cancel Conection

Dakhale Janm Dakhla


Mrityu Dakhla
Rahivashi Dakhla
Janmta Mrityu

Report Population Report


Total Male in Village
Total Female in Village

PROGRAM LIST

Data Entry

47
Gram Panchayat Management System

 Karmachari Master
 Designation Master
 Connection Type Master
 Connection Master
 All Connection
 Cancel Connection

Dakhale
 Janm Dakhla
 Mrityu Dakhla
 Rahivashi Dakhla
 Janmta Mrityu

Reports
 Population Report
 Total Male in Village Report
 Total Female in Village Report

CONTROLS AND STANDARDS OF


SYSTEM

Value Limit Control:

48
Gram Panchayat Management System

An integrity control that identify when a value in a


field is too large.
E.g. contact no. of patient is falls within the
Range of 11 digits.

Data validation Control:


To validate input for currencies and appropriateness.

E.g. access Patient id or Order id or other ids not should


be string.

Completeness Control:
To assure that necessary fields on an input form have
been entered.
E.g. all fields should be entered.

System Security:
This key allows only authorized persons by mean of
password faculty.

Test Cases, Test Data, Test Result

Case Unit Assumption Test-Data Step To Excepte Actual Pass


no To Be d Result /
Teste Execute Result fail
d d

49
Gram Panchayat Management System

Login Username=”Admi Username=”Admi Open Message Message Pass


Form n” n” Login Display Incorrect
Password=”Admi Password=”Admi page “Invalid password
n” n” Insert Login”
Login &
passwor
d
Username=”Admi Username=”Admi Open Message Message Pass
n” n” Login Display Enter
Password=”Admi Password=”Admi page “Invalid Usernam
n” n” Insert Login” e
Login & password
passwor
d
Username=”Admi Username=”Admi Open Message Message Pass
n” n” Login Display Enter
Password=”Admi Password=”Admi page “Invalid usernam
n” n” Insert Login” e&
Login & password
passwor
d
Username=”Admi Username=”Admi Open Message Message Pass
n” n” Login Display Enter
Password=”Admi Password=”Admi page “Invalid Usernam
n” n” Insert Login” e
Login &
passwor
d
Username=”Admi Username=”Admi Open Message Message Pass
n” n” Login Display Display
Password=”Admi Password=”Admi page “Invalid Welcom
n” n” Insert Login” e
Login &
passwor
d

50
Gram Panchayat Management System

SCREEN
LAYOUTS

51
Gram Panchayat Management System

1) Login Form

2) Karmachari Master

52
Gram Panchayat Management System

3) Designation Master

53
Gram Panchayat Management System

4) Connection Type Master

5) Connection
Master

6) All Connection

54
Gram Panchayat Management System

7) Cancel Connection

8) Janm Dakhla

55
Gram Panchayat Management System

9) Mrityu Dakhla

10) Rahivashi Dakhla

56
Gram Panchayat Management System

11) Janmta Mrityu

57
Gram Panchayat Management System

12) Population Master

13) Population Report

58
Gram Panchayat Management System

14) Total Male in Project

15) Total Female in Village

59
Gram Panchayat Management System

Designing Codes Used in this Project:


1) Login Button

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace janma_dakhala
{
public partial class Form1 : Form
{
SqlConnection cn = new SqlConnection();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{
path o = new path();

60
Gram Panchayat Management System

cn.ConnectionString = o.str();
}

private void button2_Click(object sender, EventArgs e)


{

private void button1_Click(object sender, EventArgs e)


{

private void button1_Click_1(object sender, EventArgs e)


{
cn.Open();
cmd.CommandText = "select pas from logintbl where usernm='" +
textBox1.Text + "'";
cmd.Connection = cn;
dr = cmd.ExecuteReader();
if (dr.Read())
{
if (textBox2.Text == dr[0].ToString())
{
MDIParent1 p = new MDIParent1();
p.Show();
this.Hide();
}
else
MessageBox.Show("Invalid Password");

private void button2_Click_1(object sender, EventArgs e)


{
this.Close();

}
}
}

2) Population

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace janma_dakhala

61
Gram Panchayat Management System

{
public partial class Annx : Form
{
SqlConnection cn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=C:\\janma dakhala\\janma
dakhala\\Database1.mdf;Integrated Security=True;User Instance=True");
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
public Annx()
{
InitializeComponent();
}

public void newc()


{
try
{
cn.Open();
cmd.CommandText = "select max(id) from population";
cmd.Connection = cn;
dr = cmd.ExecuteReader();
if (dr.Read())
{
textBox1.Text = (Convert.ToInt32(dr[0].ToString()) +
1).ToString();
}
cn.Close();
textBox2.Clear();
comboBox1.ResetText();
comboBox1.Text = ("Select Gender");
textBox3.Clear();
textBox4.Clear();
textBox2.Focus();
}
catch (Exception ex)
{
cn.Close();
textBox1.Text = "1";
}
}

private void button1_Click(object sender, EventArgs e)


{
if (textBox1.Text == "")
{
MessageBox.Show("Please Enter ID First");
}
else
{
cn.Open();
cmd.CommandText = "select * from population where id=" + textBox1.Text
+ "";
cmd.Connection = cn;
dr = cmd.ExecuteReader();
if (dr.Read())
{
textBox1.Text = dr[0].ToString();
textBox2.Text = dr[1].ToString();
comboBox1.Text = dr[2].ToString();
textBox3.Text = dr[3].ToString();
textBox4.Text = dr[4].ToString();
}

62
Gram Panchayat Management System

else
{
MessageBox.Show("Not Found");
}
cn.Close();
}
}

private void button2_Click(object sender, EventArgs e)


{
try
{
cn.Open();
cmd.CommandText = "select max(id)+1 from population";
cmd.Connection = cn;
dr = cmd.ExecuteReader();
if (dr.Read())
{
textBox1.Text = dr[0].ToString();
}
cn.Close();
textBox2.Clear();
comboBox1.ResetText();
comboBox1.Text = ("Select Gender");
textBox3.Clear();
textBox4.Clear();
if (textBox1.Text == "")
textBox1.Text = "1";
}
catch (Exception ex) { cn.Close(); textBox1.Text = "1"; }
}

private void button3_Click(object sender, EventArgs e)


{
try
{
cn.Open();
cmd.CommandText = "insert into population values('" + textBox1.Text +
"','" + textBox2.Text + "','" + comboBox1.Text + "','" + textBox3.Text + "','" +
textBox4.Text + "')";
cmd.Connection = cn;
cmd.ExecuteNonQuery();
MessageBox.Show("Saved Successfully");
cn.Close();
newc();
}
catch (Exception ex)
{
cn.Close();
MessageBox.Show("Duplicate Entry Not Valid");
}
}

private void button4_Click(object sender, EventArgs e)


{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("Please Search ID First");
}
else
{
cn.Open();

63
Gram Panchayat Management System

cmd.CommandText = "update population set nm='" + textBox2.Text +


"',gender='" + comboBox1.Text + "',age='" + textBox3.Text + "',address='" +
textBox4.Text + "' where id=" + textBox1.Text + "";
cmd.Connection = cn;
cmd.ExecuteNonQuery();
MessageBox.Show(" ID Updated Successfully");
cn.Close();
textBox2.Clear();
comboBox1.ResetText();
comboBox1.Text = ("Select Gender");
textBox3.Clear();
newc();
}
}

private void button5_Click(object sender, EventArgs e)


{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("Please Search ID First");
}
else
{
cn.Open();
cmd.CommandText = "delete from population where id=" + textBox1.Text +
"";
cmd.Connection = cn;
cmd.ExecuteNonQuery();
MessageBox.Show("ID Deleted Successfully");
cn.Close();
textBox2.Clear();
comboBox1.ResetText();
comboBox1.Text = ("Select Gender");
textBox3.Clear();
textBox4.Clear();
newc();
}
}

private void button6_Click(object sender, EventArgs e)


{
this.Close();
}

private void Annx_Load(object sender, EventArgs e)


{
path o = new path();
cn.ConnectionString = o.str();
newc();

}
}
}

64
Gram Panchayat Management System

SCOPE FOR FUTURE


ENHANCEMENT

 In the future I will give facility to access system by multiple


Administrators.

 I will add the facility to keep information about the regular and
irregular patient.

 I will give facility to take day by day selling reports of the Sales
of Products.

65
Gram Panchayat Management System

 I will implement more impressive transactions in the project.

 In future I will give facility to owner to generate daily presently


report of the employees.

CONCLUSION

 The contribution of computers in our daily life, almost


in every respective fields of life as emerged rapidly
since from the time it has been invented. Computers
play very important roll of easing out the
complications of the major aspect into a minor one.

 This project of mine deals with management system in


computerized manner. The aim of this system was to
reduce the manual work and the errors generated in
66
Gram Panchayat Management System

it. In the today’s computer area, the automation of the


work of the management system helps to increase the
speed of operation. Also the overall performance of
the system and accuracy is increased.

 The tests carried out on this project reported that the


software is totally bugged free. I feel that this epic
endeavor that we stepped into results in a system that
performs all the functions that it is expected to do.

 Computer results achieve the proper check of data


maintaining consistency, proper validation checks and
also checked the specific data entry points.

BIBLIOGRAPHY

 http://www.google.com
 http://www.studentstutorial.com
 http://www.programmer2programmer.net
 http://www.codeproject.com
 http://www.wikipedia.org

67

You might also like