Professional Documents
Culture Documents
FOUR
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
IMPLEMENTATION
PREFACE:
The purpose of this phase (also called the coding or development phase) is to
convert the system design into source code, or in other words workable
solutions (programs).
Tables
o Every entity has a primary key, as needed by entity integrity
constraint.
o Basic tables are created first to avoid pitfalls of referential integrity
and all columns of the basic tables are set to UNIQUE KEY to
avoid duplicates.
o Transaction tables are created with constraint on foreign keys (ON
UPDATE CASCADE ON DELETE RESTRICT) to avoid making
a record unreachable.
o All foreign keys are indexed to make references easier
Users
o ‘Staff’ Users (i.e. users with staff role as illustrated in the Use Case
diagram in Chapter Two) are only given SELECT, INSERT,
UPDATE privilege on all tables, except basic tables and Notes
table which were given additional DELETE privilege.
o ‘Admin’ User has full DBA privileges
[See Appendix C]
36
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Note: by default all tables created by MySQL are static tables, unless it contains
any of the data type with Variable length.
38
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
The User Interface is the primary component of any software product that is
directly relevant to the users. Many users often judge a software product from
the User Interface. An interface that is difficult to use leads to higher levels of
user errors and user dissatisfaction. Users feel frustrated when a system behaves
in unexpected ways, i.e. when the issued commands do not carry out actions
according to intuitive expectations to the user. [3]
Normally, when a user starts using a system he builds a mental model of the
system and expects the system to conform to it. For example, if a user action
causes one type of system activity and response under some context, then the
user would expect similar response from other actions with same context.
Therefore, sufficient care and attention was taken to give the user a consistent
commands context.
When designing the User Interface some features were put at top priority:
The system is not only suppose to do what it is supposed to do, but it has
to do it right. Moreover, it has to be done by whom is only authorized to
do it.
39
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.1 – Login screen as the system is started, indicating to the user where to
insert his username as he hover his mouse over the username field.
Fig 4.2 – Login screen – showing warning message as the user entered invalid
username / password combination
40
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.3 Login screen – The system is closing after 3 invalid login attempts
Fig 4.4 Main screen window (for users with staff role only) - at first start,
showing total number of: active citizens; dormant citizens; valid passports;
expired passports at the status bar.
41
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.5 Log window - showing the successful and unsuccessful login attempts
to the system with date and time.
Fig 4.6 Change password dialog - it gives the user (with staff role) the freedom
to change his password whenever he feels like changing or when he thinks his
password has been compromised.
42
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.7 Authority Window - showing list of passport authorities. All basic tables
has the same type of window
43
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.8 Registration Form – the first name field is highlighted in red as the user
press save while the field is empty. Each field will highlight to red if invalid
data is inputted upon pressing save to tell the user the exact field that has
incorrect values.
44
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.9 Registration Form – a dialog box showing a citizen is saved successfully
with his new registration number after all data has been validated
45
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.10 Viewing Window – a citizen is viewed with all his records bundled in
one place
46
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
47
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.12 Search Dialog – telling the user to select a search criterion
Fig 4.13 Report Dialog – telling the user to select a report criterion
48
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.14 Sample of list report been generated using marital status (single)
criterion
Fig 4.15 Report sample been exported to Microsoft Excel directly from the
application. It can also be exported to pdf format for extensibility.
49
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.16 Sample of Graph (pie chart) Report been generated using marital status
(single) criterion
Note: All graph reports with 4 or less variables (like Gender, Marital Status and
Activity Status) are generated using pie chart, while others with more variables
are generated with bar chart.
50
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.17 Sample of Graph (bar chart) Report been generated using State of
Origin criterion
51
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.18 Administrator Main Window (for users with Administrator role only) –
showing a new user with staff privilege is about to be created.
Note: In the current version of MySQL v5.1, the username has a maximum
length of 16 characters, while the password has a maximum length of 41
characters.
52
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed
Chapter Four: Implementation – Nigerian Citizens Registration Management System in Sudan
Fig 4.19 Administrator Main Window – showing list of all users with their
usernames and roles.
53
By Suleiman Umar Abdullahi, supervised by Dr. Awad Mohamed