You are on page 1of 18

university of zakho

faculty of science
Computer Science

 Project about : Municipal Work Management System

 Prepared by :
 Name : hakar tayar abdi
 Department : computer science
 Group : B
 Stage : 3
 Data : 24/12/2020

:”

1
 Table of Contents
 Abstract ................................................................................................................................ 3
 Introduction ......................................................................................................................... 4
 mayor ................................................................................................................................... 4
 Employee ............................................................................................................................. 4
 Engineering .......................................................................................................................... 4
 Amiras section ...................................................................................................................... 5
 Accounting section ............................................................................................................... 5
 Query section ....................................................................................................................... 5
 The service section ............................................................................................................... 5
 Admin ................................................................................................................................... 6
 User ...................................................................................................................................... 6
 ER–Diagram .......................................................................................................................... 7
 ER-Diagram explain .............................................................................................................. 8
 EER-Diagram ......................................................................................................................... 9
 EER-diagram explains ......................................................................................................... 10
 Conclusion .......................................................................................................................... 10
 References :........................................................................................................................ 11

2
Abstract
As a computer science student, I decided to create a database project
for the municipality, a definition for the municipality of a government
base that works to serve citizens, such as building roads and roads, and
cleaning the city is one of the main jobs of this center. This base
consists of several sections.
1 - director
2- Accounting.
3- Administration
4- Device
5- Service
6- Engineering
7- Law
My effort in this program is to be able to make their work easier, for
example, if we take the accounting section in this section, all commands
He has his salary, all the information of employees is required: (name,
age, place, salary, service ...) To get rid of writing pages and pens, I will
create database for this section and all other departments, and we can
also provide all the information of the employee we want through this
program and do his math work quickly and properly,
Also ,we have a part of the people to deliver all their complaints to the
mayor, for example, if there is a bad place like their way or anything
else ,those people can complain through the pictures and look for their
voices and make them soon. Part of it is specific to your employees
and information. For example: this table is for employees information

Name Age Gender Phone City


hakar 21 Male 07503181934 zakho

3
Introduction

First/ this project will be for the municipality ,as it is clear , consists of
several section (device , accounting , engineering , law) my speech Is to
create the database for each of these to carry out their information , as
well as to their information and make their work easier;

Requirement of the projects

mayor
Thy mayor / mayor will have all the information about the mayors of the
previous and present , anyone who has worked as mayor will have
information in this database as :{ name , age , service , certificate ,
gender…}

Employee
The employee section in this section will provide inform tion about each
employee suck as { name , age , city service , phone number …} If we
have 100 employee we cannot search for the name list to see the
employees information. Here , the person who works the name as a
manager can easily write the name of the employee if his name Name is
in the database , the information will be revealed if he dosent have a
name he tells us sorry this name is not,

Engineering
The engineering department of this section consists of tow stage :
1- The estimate section

2- The drawing section


The estimates section requires china as tool and then after the manager
you send the item in the database at their price for the accounting the

4
department and the accounting department spends The money the see
in this database and then the drawing department starts building the
project

Amiras section

Amiras department like any municipality consists of several articles and car
vehicles in which the database of the section is written on their own account
and how many number they needs ;

Accounting section

The accounting department of this department consists of several employees


who carry their information in this database and they are The main tasks and
whatever is done in the municipality to the accounting department they sent
his name and price to it and then it is spent on it as well as a schedule in the
name of their employees And salaries each employee must first search for his
her salary and then receive his her salary so anything that is department on
spending is available in this database

Query section

The query section in this section will visit any employee who has a license any
favorite or unavailable countries will have all the information in this database if
the employee visits and deserves the License they will immediately send his
name to the manager database and he will be approved that he or she is not
allowed to work if not allowed he or she will not accept it and he will not be
able to receive the license

The service section

the service of this section is dedicated to serving citizens as well as a


prominent department of a manager and many works in the database carry
workers information and their database is linked to the accounting
departments database so that they can visit the accounting department when

5
receiving their salaries to find out that the worker works with them and pay
them their salaries completely.

Rool

Admin

The administrator manager of course any system needs


someone to organize this system its job is to edit the system
it can access all the information that is in that system and can
also delete some information or add some information or
create some new table for it so it is can do anything that exists
because it can do access all data in database and be responsible for any
problems in this system and this should be a solution to this problem

User

User/ each part of this system will be a user or some user this user can edit the
data of it parts but he or she dose not have the right to edit it in other parts ,
for example if you take the user accounting department this section can
change and update and delete information in its own section but it is does not
have the right to go to engineering and editing because it has a private user
engineering department only.

6
ER–Diagram
ER-Diagram explain

1- The employee/employee will be two of them (relatinship) with the


department table, one of which will take the manager and the types (
one to one) because only one employee can become a manager and
the department only needs an employee.
The second (relationshipship) will be the work for the type of because
(many to one) employees can work for one part and each employee
can work for one part.

2- The project/ this section will be associated with the department


section of the (many to many), because many projects may go to a
section and may have more part of a project.

3- Citizens / (relationship) must be with the complaint schedule, and


citizens can report complaints through the type of this (relationship) a
(many to many) because people can all complain and the complaint
schedule can receive a lot of report and also (partial) the citizen's
schedule is a complaint because citizens may have complaints and
may not be complaining, and (relationship) will be on the citizen's
schedule for the complaint table (total) because if there is a
complaint, they must receive it.

4- Complaints/ This table will be (relationship) with the department table


and the type (relation) between the two tables will be (many to many)
because there may be a lot of complaints for the department The
department may also be able to solve many complaints and the
schedule of complaints will be partial because there may be no
complaints and the department's schedule may be total because if
there are complaints, it must be resolved immediately.

5- The service/ this table will be (relationshipship) with the department table and its
type will be (many to many) because there may be many services to go to and
the department may perform a lot of services and the service table type will be
(partial) because it may have services and may not, the other type of department
table will be (total) because if the service table is scheduled, services must be
performed.
EER-Diagram

manager
Employee Type

Department Type
EER-diagram explains

1-employee
Takes superclass to other tables so for engineer, manager, sof a and
engineer will have its own characteristic which is (type) and its type will
be disjoint because each employee has the right only for a part Work
and we also made another kind of total because each employee may
work for a part if he or she is a guard, and he or she will be counted as
staff and predicuted because any new employee will know what part he
or she will work for through his or her attribute.

2- department
This takes the superclass to the tables listed below so each section will
have its own table and the type will be total because there may be some
other sections, the other type of join will become disjoint because each
department must have one in it.
Explain relational database :

1- We added a table between both the employee and the department because
the type of relationship between the two tablets is many to many in the current
table I added two foreign key having one appointment to the employee's table
and the other one to the table is that we will not be very full in our table.

2- We also added new tablets between both service and section services, so
because the type of relationship between both service and department is
many to many

3- In this project, we have two tablets called component and because we need
to know what part this component is on, so we have relationship with the
cable department and also the way this realization is many to many because
Many people can complain and reach through a report and one person should
have complained about it so we added another tablet to connect both tablets
through foreign key

4- We also have another tablet through the project this project has a reliance
with the department's table in the project type attribute called the (depid) that
this (depid) should be foreign key to the label department as well as the type
of relationship many to one
5- We also have another tablet through the project this project has a reliance
with the department's table in the project type attribute called the (depid) that
this (depid) should be foreign key to the label department as well as the type
of relationship many to one

6- There is one to one type with department management manager this way id
department we know that this section manager should not have more than
one manager and should not be more than one employee because we used
one to one

7- Because we know what part this employee is on, we have created a tablet
called empire dep in this table id one and there is (typeid )in the employee's
table this (typeid) must be foreign key to employee id and also the way this
relationship one to many employees work on a part of it is by employee many

8- In the workers' table, we in the municipality need many workers, so we have


created a table for these workers and also a lot of workers should work for a
part, so we have created a realization with the department that has the type of
many to one and also all the information about each worker in this table

A graphical interface of the application

Username

Password

Windows login for each admin and user : Because our program is more secure we
created windows and applications for users of this system that everyone should have
a user name and have a special password so you can go to the next step in this
system
Employee table

In this form, there is all the information of each employee and through the buttons
specified below, Admin can do all these actions such as adding another employee
and removing the employee and you can also ask for the information of the
employee you've been able to identify this employee's type as an accountant and
staff
depnames

And through that red color line, we can know the department of any banner and any
part of our database will appear in this com box, and through the line with number
two that consists of a button we can add another department and go into the
department's table

Manager form

Id department

Delete record Update record


Add new record
In our manager department, Addy and there is a manager and also this manager on
which part so which part of this system here we have created only one table for the
manager and through id department we can know what part of the manager is

Complaint and Citizen

In the file form, we have problems with the section table through identity, we can
know which part and in our form we have created a citizen who can complain or
according to that citizen you can know which person you complained about and this
was a special complaint department
We brought two group box so we could go to both group box at the start of both our
group box but through those two buttons above it seems that we can reach this
group box
1- Complaint form: to remove the hide group box complaint
2- Citizen form : to remove the hide group box Citizen
Services

In our service table, there is a service name and there is also any service in this
table and you should also know what part this service was, so we created a private
cable and have a department with both id services and id through which part this
service can be available and also through these buttons we can do all these actions
in an easy way
And we can do all the work that appears in this form, for example when this project
starts and when it starts and where this project starts and where it will be
Project

In our service table, there is a service name and there is also any service in this
table and you should also know what part this service was, so we created a private
cable and have a department with both id services and id through which part this
service can be available and also through these buttons we can do all these actions
in an easy way

Conclusion

I learned in this course how to create a database, how to start creating it, how
can I get information. And I learned what diagram is? For both of them, I was
finally able to start building a database project for the municipality. My speech
was to be able to provide a small service, to facilitate my work, and to protect
all information in this project and to organize it in a beautiful way.
References :

[1] Ramez Elmasri and S. B. Navathe, Fundamentals of database systems. Hoboken, New
Jersey: Pearson, 2017.

You might also like