Professional Documents
Culture Documents
1
Acronym, Abbreviation and Definition
Certificate
This is tocertify that this BSc industrial projectreport entitled Student Service Management
System For Atse Tewodros Campus Of UoG by:
1. Mebratu Teshale
2. Sara Smie
3. Siraj Yenus
4. Tsgereda Ashagrie
5. Mulutsega Kiros
is approved by me for submission. I certify further that, to the best of my knowledge, the
report represents work carried out by the students.
___________________________ ____________________________________
Date Name and Signature of Supervisor
Declaration
Thisis to declare that the project work which isdone under the supervision ofMr. Abreham
Workuand having the title Student Service Management System For Atse Tewodros Campus
Of UoG is the sole contribution of:
Mebrahtu Teshale
Sara Smie
Siraj Yenus
Mulutsega Kiros
Tsgereda Ashagrie
No part of the project work has been reproduced illegally (copy and paste) which can be
considered as Plagiarism. All referenced parts have been used to argue the idea and cited
properly. We will be responsible and liable for any consequence if violation of this
declaration occurs.
Date: 05.01.2014
Group members:
Acknowledgment
First and foremost, thanks to our advisor of this project, Mr. Abreham Worku for the
valuable guidance and advice. He inspired us greatly to work in this project. His willingness
to motivate us contributed tremendously to our project. We also would like to thank him for
showing us some example that related to the topic of our project. Besides, we would like to
thank the head of Computer Science department Mr. Adane Leta for providing us with a
good environment and facilities to complete this project. Also, we would like to take this
opportunity to thank to the Student Business Affairs Office of UoG Atse Tewodros Campus
for they providingthe needed information. They gave us the opportunity to learn how the
Student Service Management is performed.
Abstract
The main objectives of this project is to develop a desktop application for student service
management in UoG Atse Tewodros Campus. This desktop application helps the institution
and user to exchange and store information in easy way. In addition to that it also has best
contribution in minimizing the load and the number of employee in the University.
This document can be used as a reference for any person who is interested to upgrade the
desktop application that develop now and those that will develop an advanced desktop
application for the university.
Table of Contents
Certificate..............................................................................................................................................i
Declaration............................................................................................................................................ii
Acknowledgment.................................................................................................................................iii
Abstract................................................................................................................................................iv
Table of Contents..................................................................................................................................v
List of Figures....................................................................................................................................viii
Acronym, Abbreviation and Definition................................................................................................ix
Acronyms and Abbreviations.................................................................................................................ix
Definitions..............................................................................................................................................ix
CHAPTER ONE...................................................................................................................................1
1. INTRODUCTION.........................................................................................................................1
1.1 Background........................................................................................................................................1
1.2 Statement of the Problem...................................................................................................................1
1.3 Project Objective...............................................................................................................................2
1.3.1General Objective........................................................................................................................2
1.3.2Specific Objective.......................................................................................................................2
1.4 Scope of the Project...........................................................................................................................2
1.5 System Development Methodology...................................................................................................2
1.5.1Investigation (Fact Finding) Methods..........................................................................................2
1.5.2System Development Tool..........................................................................................................2
1.6 Significant Of the Project...................................................................................................................3
1.7 Beneficiaries......................................................................................................................................3
1.8 Time Schedule...................................................................................................................................4
CHAPTER TWO..................................................................................................................................5
2. REQUIREMENT ANALYSIS......................................................................................................5
2.1 Introduction.......................................................................................................................................5
2.2 Detailed Study of the Current System................................................................................................5
2.2.1Current System Description.........................................................................................................5
2.2.2Problems of the existing system..................................................................................................6
2.3 Requirement Gathering......................................................................................................................6
List of Tables
List of Figures
Figure 1-1 Time Schedule.....................................................................................................................4
Figure 2-1 Use case Diagram..............................................................................................................15
Figure 2-2 Login and Back Up Activity Diagram...............................................................................24
Figure 2-3 Add Student and Delete Student Activity Diagram...........................................................26
Figure 2-4 Update Student and Register Non-Cafe Student Activity Diagram....................................26
Figure 2-5 Create User Account and Delete User Account Activity Diagram.....................................27
Figure 2-6 Print Voucher and Search Student Activity Diagram.........................................................28
Figure 2-7 Assign Dorm and Make Treatment Record Activity Diagram...........................................29
Figure 2-8 Register Serving Material and Make Payment Activity Diagram......................................31
Figure 2-9 Class Diagram...................................................................................................................33
Figure 2-10 Login Sequence Diagram.................................................................................................34
Figure 2-11 Add New Student Sequence Diagram..............................................................................35
Figure 2-12 Delete Student Information Sequence Diagram...............................................................36
Figure 2-13 Register Non-Cafe Student Sequence Diagram...............................................................37
Figure 2-14 Assign Dorm Sequence Diagram....................................................................................38
Figure 2-15 Make Payment Sequence Diagram..................................................................................39
Figure 2-16 Register Serving Material................................................................................................40
Figure 2-17 State Chart Diagram for Cafe/Non Cafe Student, Serving Material and Dorm...............41
Figure 2-18 State Chart Diagram for User Account and Student........................................................43
Figure 2-19 Login User Interface........................................................................................................43
Figure 2-20 Main MDI Form..............................................................................................................44
Figure 2-21 Student Administrator User Interface..............................................................................44
Figure 2-22 The Medical Registration Book.......................................................................................45
Figure 2-23 The Dormitory Management User Interface....................................................................46
Figure 2-24 Help form........................................................................................................................47
Figure 3-1 Component Diagram..........................................................................................................49
Figure 3-2 Deployment Diagram........................................................................................................50
Figure 3-3 Object Diagram.................................................................................................................51
Figure 3-4 Detailed Class Diagram.....................................................................................................54
Figure 3-5 Package Diagram...............................................................................................................58
Figure 4-1 Login form.......................................................................................................................105
Figure 4-2 MDI container.................................................................................................................106
Figure 4-3 System Administrator form.............................................................................................106
Figure 4-4 Student administrator form..............................................................................................107
Figure 4-5 Student cost payment form..............................................................................................108
Figure 4-6 student clinical form........................................................................................................109
SW: Software
Definitions
Access Control matrix: Model is system resource protection that depict who use the system
with what protection.
Class Diagram: a type of static structure diagram that describe the structure of a system by
showing system classes, their attribute, operation and the relationship among the class.
Component Diagram: is UML diagram depicts how components are wired together to form
larger components and or software system.
Deployment Diagram: is a UML diagram that models the physical deployment of artifact of
nodes.
Entity Relationship diagram: shows the relationship and Cardinality between entities.
Hardware: is computer equipment including all the components use to make the computer.
Non-functional requirement: are requirements which specify criteria that can be used to
judge the operation of a system, rather than specific behaviors.
Package Diagram: UML diagram that depicts the dependency between the packages that
make up a model.
Sequence Diagram: is a king of interaction diagram that show how process operate with one
another and in what order.
System: any collection of component element that work together to collect task.
Use Case Diagram: Graphical Representation of mark full of step wise activity and action
with support for choice, iteration and concurrency.
User interface: the combination of menus, screen design, keyboard command, command
language and help, which creates the way a user interact with computers.
User: any user of the system including Student administrator, Accountant, Dorm Manager,
Café manager, system Administrator.
CHAPTER ONE
1. INTRODUCTION
1.1 Background
Educational institutions are the most important centers for specific country for that they educate
society for the development of a country regarding technology science and so many aspects. The
University of Gondar is one of the oldest educational centers in Ethiopia. It is established in 1954
as a public health collage and training center. The university now have four functioning campus.
AtseTewodros is one of them and is the main campus. Like the other campus it serves around
5000 students and contains four academic units also it gives different service for the student. The
main facility are dormitories, student cafe and health clinic. This sector records all the personal
information of each student and let students to use the facility in the center by assigning and
offering identification card for general purpose also meal card for cafe service. All this process is
wide and significant but all the above student service are managed and performed manually. So
this system result many problem when assigning dorm,recording student/patient in the clinic and
cafe service.as a result this situations motivated us to focus on this area.
At the current time the general system follow a file based management system as a result there
are countless drawback. For instance the task performed or the service that the system offers is
time taking. Due to the fact that employee cannot be perfect; the tasks will not be accurate. The
roles of the sector are scattered in such a way that they need storage management system as a
result there will be lose and redundancy of data. Countless burdens are on the employee which
result load of work because most tasks are performed manually; then it will be difficult to
manage without error so the following problem will occur.
Assigning more than eight student in one dorm
Assigning female student in male dorm and vice versa
The name of the student even the department list may not be transferred.
Student record in the clinic will be redundant and etc.
The core objective of this project is to develop centralized database desktop application which
can easily store, retrieve and update data.
Building one centralized database server for all the service given by student management
system.
Developing system that enable to access the student data from the server to get cafeteria
service
Developing desktop application that help user to assign dormitory for student
automatically
This project is limited only in university of Gondar AtseTewodros campus. The system will
capture information about student personal details, dorm details, student medical record and
Employee information. It also allow the employee to change their own user name and password.
We will use an object oriented approach to develop the system because it is more acceptable than
structured type of approach.
Data and facts to be used in the project are gathered through observing, interview and
questioners. The interview is prepared for the employee regarding the way they perform their
work. And the observation will be held in sight in addition to collecting available data at the last
all data will be analyze.
Documentation:
- Microsoft word 2010
- Microsoft office Visio 2007
Requirement Gathering:
- Through observation, Interviewing peoples and Questioner.
Implementation tools:
- SQL database server
- Microsoft visual studio 2012
Hardware:
- personal computer
- server
This project has many significant and the important once are listed below
1.7 Beneficiaries
The people who will be beneficial from this system are the employee work in the university, the
nurse, the AtseTewodros student dean, the client, dorm manager, café manager, Accountants,
owner and technologist. It minimize employees workload, not only this but also it will minimize
the error occurrence percentage and from student perspective the amount of time will be
minimized.
CHAPTER ONE
2. REQUIREMENT ANALYSIS
2.1 Introduction
Now the UoG student service management is running manual functioning, when providing
services like dormitory management, students’ cafeteria service and clinic service. Hence the
functioning system is prone to errors and in addition it has many disadvantages related to the
campus’s resources like time and paper.
The university of Gondar student services have different departments. These departments work
to give different services to the students. Each department has its own workers. Some of the
departments are; Clinic service, dormitory service management, Finance department and the
Cafeteria is the main service departments. All these departments collect the list of students from
the registrar office beside the student’s associate dean office.
Student who wants to be non-café are registered in the associate dean office. This office also
return back this list to the student’s cafeteria management office. The student’s cafe management
office gives to café student’s cup, fork and meal card. Non café students list also send to finance
office of the campus. The dormitory management office assign to students manually. The
student’s clinics manage patient medical record using a registration book.
The entire structure and data flow is not well designed more over the office does not use very
well computerized system. Consequently it’s very difficult to store students’ records in
structured manner to help the process of retrieving, searching and locating specific information
easily.
In the Clinic: The records of patient students are stored manually. This leads to loose of
some data and redundancy of data.
In the Finance Office: the list for some students does not send to this office by mistake.
In Dormitory management: students have assigned dormitory manually using MS
excel. So this leads to several problems like; students may be jumped without assigning
dorm, many students may also assigned to a single dormitory out of the bound, the
processes of assigning is very boring to the employees.
In the students’ cafeteria: the students’ cafeteria gives a service to the students by
giving a meal card number. The registrar gives the list of student that can get the service
to the cafeteria manager.
To gather the requirement and to proceed analyzing them .the following methodology where
used:-
Observation:-the development of this project observed the work flow of the student
management system.
Interview: - employees, managers and users where the main interviewee.
Questionnaires: - Questionnaires were distributed to the employees working in the
student management system. The questionnaires were directed toward of examine the
existing system.
Due to the methodology used to find the requirement, it can be concluded that all the works are
done manually. Even though there are computer workings, no computer application exist in the
system. This implies that countless mistakes might appear. Hence make computerized system
which include application should be practiced.
The new system is aimed to perform basic and crucial tasks of the sector. The system contains a
well-organized database server which makes data to retrieve, update easily. In this system the
basic performances or functions are transferred in to computer application. This led to
minimizing work load and improvement of work flow.
- Every user toLogin, Logout and Update their own username and password
- It allow toregister:
New student
Student medical record
Non-café student and Café students
Payment record
Serving material record
- Allow to update student information, view café and non-café students, print
prescription report.
- View previous medical history of a student.
- Assign dorm to students.
- Manage user accounts.
The non-function requirements of the new system that we proposed are those requirements that
are not readily captured in the use case.[4]
The interface of the new proposed system is very good and flexible for users. It can be usable
using English or Amharic language as they want (for student cafeteria office and dormitory
management offices). The user of this system must should have a know how about a computer.
2.4.3.2 Documentation
The system has a guide book discussing how to use the system for users. Technical
documentation that contains instructions on how to install the product and configure it for
different purposes must be prepared for maintainers/administrator.
The system may use different operating systems like window 7 and window 8. The hard ware
required to run the system are server, network cable and laptop/desktop computer.
2.4.3.5 ErrorHandlingandExtremeConditions
Incorrect input: the system handles many exceptions like inserting empty string
to the database, assigning a dormitory for empty student list, and inserting a
duplicated id no and display an appropriate message for each error.
Login error: the system shall handle an attempt to login with incorrect username
and password and display appropriate message.
Read/Write exceptions: the system should handle the read/write operation
conflict to the central database.
2.4.3.6 QualityIssues
Reliability: the system should not fail more than one in a month.
Usability: the system that we develop should easy to learn and operate. It will
need only two day training to use the system.
Availability: the system will available for all working hours (24 hours).
2.4.3.7 SystemModifications
As the world is capable of change from time to time; there will be future change to the system as
a result of new technology invention. Therefore the system can be upgrade to the new technology
by maintainer or the systems developers.
2.4.3.8 SecurityIssues
The system is protected from external in torsions and malicious users.
The system is secured i.e. user must be able to give rights or deny for all users
based on his/her position by the administrator of the system.
All major operations/transactions done on the system should be logged to the
central database and seen only by the student administrator.
Any change in the structure of the database is shall done by system administrator.
2.4.3.9 ResourceIssues
The new system needs the following resource
Server
Minimum hard ware requirements for SQL server are:
- CPU: 32 bit or 64 bit
- Cores: single(single core 3hz or higher dual core 2GHz or
higher is recommended)
- Display resolution:1360X768(or higher)
Client:
- CPU: 32 or 64 bit
- RAM: 2GB or higher
2.5.1 Scenario
The system that we will develop has defined the following use cases.
The use case diagram shown below shows the Actors interaction with the system. The use case
contains six subsystems. Namely cafe management system, clinic management system,
dormitory management,student administrator,system administrator and Finance management
system.
This part describes what the system must provide to the actor when the use case is executed.
1. Authenticate user
Message
3. System administrator
Step4. User selects students list in the Step5. System loads students
dormitory management form list
Step6. User selects assign dorm control Step7. System prompts user
Basic Course to select the assignment
of Actions criteria
Step8. User selects the Block number of the Step9. System assign to
block to be assigned, assignment students and save the result
criteria(assign alphabetically, assign by to the database.
department and assign both by department and
alphabet) and press “Finish button”
Step 10: Use case ends
Table 2-13 The Generate Voucher use case description for the Cafe Manager Actor
7. Finance Department
Priority Medium
Actor Accountant
Description This use case prints payroll
Pre-condition voucher did not printed
Post condition System prints the required card.
User action System Response
Step1. User clicks the generate voucher Step2. System loads the print form
Basic Course of control in the payment form
Actions Step3. User enters the required fields
Step4. User clicks the print button Step5. System prints the voucher.
Step 6: Use case ends
Table 2-15 The Generate Voucher Use Case Description For The Accountant Actor
Activity diagram shows the flow of control from activity to activity. The following activity
diagrams are for the use cases.
Figure 2-6 Create User Account and Delete User Account Activity Diagram
Figure 2-8 Assign Dorm and Make Treatment Record Activity Diagram
Figure 2-9 Register Serving Material and Make Payment Activity Diagram
2.5.4 Object Model
2.5.4.1Data Dictionary
In our system we have identify the following objects with their attributes.
Student:
- Student Identification number(studID)
- First name
- Last name
- Department
- Age
- Status
- Year
- Sex
Non-café student
- code No
Café student List
- Meal card number
Payment
- Date of payment
- Amount
- Month
Dorm
- Number of Dorms
- Block number
Serving Materials
- Material name
- Cup
- Fork
User account
- User name
- Password
- Role
- Enabled
- Recovery key
Treatment Record
- Date
- Disease
- Dose name
- Dose amount
Employee
- Fname
- Lname
- SSN
2.5.4.2Class Modeling
The relationships between the objects that we have identified are defined as follows using class
diagram.
The state chart diagram shows the different states that an object can encounter when it passes
through different states. The states that can encounter in the objects of this project are described
as follows using the state chart diagram.
Figure 2-18 State Chart Diagram for Cafe/Non Cafe Student, Serving Material and Dorm
Figure 2-19 State Chart Diagram for User Account and Student
2.5.5 User Interface
1. Login Form
Log in form used to enter to system by providing the user name and password in the given text box.If the
user have not User name before, can not enter to the UoGATSSMS.
Chapter Two
3. SYSTEM DESIGN
3.1 Introduction
In this section we provide overview of the software architecture and the design goals. The system
is decomposed in to subsystem like Dormitory management,Clinic management system,Cafe
service management subsystem,Student Administrator subsystem,system administrator
subsystem and Finance service management system.The software/Hardware mapping of this
system is the students information is stored in a central database server and managed by SQL
server. Clients access the data using their computer. And each user have a user account to login
to the system and have a restricted access control.
There is no system being used rather than using some application software’s like MS-excel to
manage dormitory management.
3.3.1 Overview
Student Administrator subsystem: this subsystem add new students, inactive student
information, and update student information.
System Administrator subsystem: this subsystem manages user accounts.
Clinic service management subsystem: this subsystem manages student medical
record.
This subsection describes the decomposition into subsystems and the responsibilities. The UoG
Student service Management UI subsystem provides user friendly interface for user. Café service
management, dormitory management, financial service management and clinic service
management subsystems are dependent from the student Admin subsystem because, students can
get the other subsystem services if they are only registered by the student admin. The database
subsystem manages all the operations and data of the other subsystems.
This section describes the HW/SW mapping of the proposed system. To describe this we have
use the UML deployment diagram.
Application Server
Student
Administrator
System
Administrator
tables that are present in the Data Base for describing the data stored on the database. Every table
is related to each through their primary and foreign key. Also each Table has Attribute with
compatible Data type.
This subsection of the design phase try’s to explore the input/output and processes of the
system. As a result we have written all the inputs, processes and outputs of the system for
each class as the follows.
blockNo Get blockNo then check if there is empty dorm Display List of
checkDormIfEmpty() in block. If there is, display all the dormNo, dormNo’s dose
else display no empty dorm message. not assigned to
students.
Student
Non-Cafe
Dorm Employee User
Student
Accounts
Non-Cafe
Student
Serving
Treatment Rec
Payment Materials
ord
CHAPTER THREE
4. Implementation
4.1 Introduction
Implementation phase is one of the main parts of the whole project. It includes the graphical interface
between the system and user. It provides the general structure and requirement to function of the
system also consists of the coding part of the system how to response the action to the user.
4.2 Objective
To show the graphical structure of the project
To give some explanation
To show what the system do or to show the function of the system
4.3 Mapping models to code
Student administrator
System administrator
Dorm manager
Café manager
Nurse
Accountant
Student
Café Student
The student administrator can add,delete and update the student table. Can also register café
and non-café students to the café student and non-café student table.
Employee
User Account
System Administrator
The system administrator can add new employee to Eemployee table and access the User Account
table.
Dorm
Dorm Assignment
Dorm Manager
The dorm manager can access the dorm,dorm assignment,student and user account tables.
Student
User Account
Nurse
The Nurse actor can access the Student,User Account and Treatment_Record tables.
Payment
Non Café
Accountant
The Accountant actor have the permission Payment,Non-Café and User Account tables.
Café Student
User Account
Café Manager
The Café Manager can view the table Café Student and can access the User account
table.
namespace UoGStudentsServiceMangt
{
publicpartialclassfrmLogin : Form
{
publicstring UserRole;
publicstring UserName;
privateclsUserAccount userAcc;
privateImage btnBackImage; // an image variable that stores the button
background image
public frmLogin()
{
InitializeComponent();
}
}
// a method that check if a user provides user name and password
// during Login
privatebool CheckLogin()
{
bool log = true;
if (txtusername.Text == "") { lblusrnamerr.Visible = true; log = false; }
else { lblusrnamerr.Visible = false; }
if (txtpassword.Text == "") { lblpsswrderr.Visible = true; log = false; }
else { lblpsswrderr.Visible = false; }
return log;
}
privatevoid Get(string Username, string Password)
{
try
{
userAcc = clsLogin.GetUser(Username, Password);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, ex.GetType().ToString());
}
}
}
elseif (lblLanguage.Text == "English (Eng-US)")
{
picFlag.Image =
UoGStudentsServiceMangt.Properties.Resources.ethiopian_flag;
CultureInfo ci = newCultureInfo("en-Us");
Assembly a = Assembly.Load("UoGStudentsServiceMangt");
ResourceManager rm =
newResourceManager("UoGStudentsServiceMangt.Languages.English", a);
lblusrname.Text = rm.GetString("lblusrname", ci);
lblpsswrd.Text = rm.GetString("lblpsswrd", ci);
btnlogin.Text = rm.GetString("btnlogin", ci);
btncancel.Text = rm.GetString("btncancel", ci);
lblLanguage.Text = rm.GetString("lblLanguage", ci);
}
}
lblNewPasswordError.Visible = true;
}
if (txtNewPassword.Text.Trim().Length >= 6)
{
lblNewPasswordError.Visible = false;
}
}
if (txtRecoveryKey.Text.Trim()=="")
{
lblSecurityAnswerError.Visible = true;
lblSecurityAnswerError.Text = "Enter your answer.";
valid = false;
}
if (txtresetUsername.Text.Trim()=="")
{
lblResetUserNameError.Visible = true;
return valid;
}
if (CheckLogin())
{
string Username = Convert.ToString(txtusername.Text);
string Password = Convert.ToString(txtpassword.Text);
this.Get(Username, Password);
if (userAcc == null)
{
lblusrnamerr.Text = "UnKnown user name or type the
password";
lblusrnamerr.Visible = true;
lblpsswrderr.Visible = true;
txtpassword.Text = "";
txtpassword.Focus();
}
else
{
int a = Convert.ToInt16(userAcc.Enabled);
if (a == 1)
{
MessageBox.Show(userAcc.UserName + " is blocked for some reason. \r Please
contact the System Administrator for more information.", "User Account
Disabled", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
if (a == 0)
{
frmSplashScreen1 splash = newfrmSplashScreen1(userAcc.UserName,
userAcc.Role, userAcc.Password, userAcc.SSN.ToString(), userAcc.Photo);
this.Hide();
splash.Show();
}
}
}
}
Application.Exit();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace UoGStudentsServiceMangt
publicclassclsStudentDB
sqlCommandAddnewStud.Parameters.AddWithValue("@studID",
stud.StudID);
sqlCommandAddnewStud.Parameters.AddWithValue("@fName",
stud.FName);
sqlCommandAddnewStud.Parameters.AddWithValue("@lName",
stud.LName);
sqlCommandAddnewStud.Parameters.AddWithValue("@Dep",
stud.Department);
sqlCommandAddnewStud.Parameters.AddWithValue("@Age", stud.Age);
sqlCommandAddnewStud.Parameters.AddWithValue("@Sex", stud.Sex);
sqlCommandAddnewStud.Parameters.AddWithValue("@year",
stud.Year);
try
connectionAddNewStud.Open();
return NoOfRowsAffected;
return 0;
finally { connectionAddNewStud.Close(); }
commandUpdateStudInfo.Parameters.AddWithValue("@studid",
student.StudID);
commandUpdateStudInfo.Parameters.AddWithValue("@fname",
student.FName);
commandUpdateStudInfo.Parameters.AddWithValue("@lname",
student.LName);
commandUpdateStudInfo.Parameters.AddWithValue("@department",
student.Department);
commandUpdateStudInfo.Parameters.AddWithValue("@sex",
student.Sex);
commandUpdateStudInfo.Parameters.AddWithValue("@age",
student.Age);
try
connectionUpdateStudInfo.Open();
int NoRowsAffected=commandUpdateStudInfo.ExecuteNonQuery();
return NoRowsAffected;
return 0;
finally { connectionUpdateStudInfo.Close(); }
publicstaticSqlDataReader SearchStudent()
SqlConnection connectionNonCafeRegistrationOnload =
clsSSMS.GetConnection();
try
connectionNonCafeRegistrationOnload.Open();
return reader;
returnnull;
try
connectionSearchStudUsingIDNo.Open();
return readStud;
commDeleteStud.Parameters.AddWithValue("@studid",
student.StudID);
try
connDeleteStud.Open();
return rowsAffected;
return 0;
finally { connDeleteStud.Close(); }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace UoGStudentsServiceMangt.folderStudentAdmin
publicclassclsNonCafeStudentDB:clsStudentDB
commandRegisterNoncafe.Parameters.AddWithValue("@studid",
NonCafeStudent.StudID);
try
connectionRegisterNonCafe.Open();
commancheck.Parameters.AddWithValue("@studid",
NonCafeStudent.StudID);
if(reader.Read())
Registered = true;
finally { connectionRegisterNonCafe.Close(); }
if (!Registered)
try
connectionRegisterNonCafe.Open();
commandRegisterNoncafe.ExecuteNonQuery();
finally { connectionRegisterNonCafe.Close(); }
// a method that delete Non-cafe student from the Noncafe student list
commandDeleteNoncafe.Parameters.AddWithValue("@studid",
studID);
try
commandDeleteNoncafe.ExecuteNonQuery();
catch (SqlException)
finally { connectionDeleteNonCafe.Close(); }
try
connectionNonCafeOnload.Open();
return reader;
catch (SqlException)
returnnull;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace UoGStudentsServiceMangt.folderStudentAdmin
publicclassclsNonCafeStudentDB:clsStudentDB
commandRegisterNoncafe.Parameters.AddWithValue("@studid",
NonCafeStudent.StudID);
try
connectionRegisterNonCafe.Open();
commancheck.Parameters.AddWithValue("@studid",
NonCafeStudent.StudID);
if(reader.Read())
Registered = true;
finally { connectionRegisterNonCafe.Close(); }
if (!Registered)
try
connectionRegisterNonCafe.Open();
commandRegisterNoncafe.ExecuteNonQuery();
finally { connectionRegisterNonCafe.Close(); }
// a method that delete Non-cafe student from the Noncafe student list
commandDeleteNoncafe.Parameters.AddWithValue("@studid",
studID);
try
commandDeleteNoncafe.ExecuteNonQuery();
catch (SqlException)
finally { connectionDeleteNonCafe.Close(); }
try
connectionNonCafeOnload.Open();
return reader;
catch (SqlException)
returnnull;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace UoGStudentsServiceMangt
publicstaticclassclsTreatment_RecordDB
"VALUES(@date,@studId,@desease,@dosename,@doseamount,@Ssn)";
SqlCommand commandAddnewTreatmentRecord =
newSqlCommand(addNewTreatmentRecordStatment,
connectionAddnewTreatmentRecord);
commandAddnewTreatmentRecord.Parameters.AddWithValue("@date",
treatmentRecord.Date);
commandAddnewTreatmentRecord.Parameters.AddWithValue("@studId",
treatmentRecord.StudID);
commandAddnewTreatmentRecord.Parameters.AddWithValue("@desease",
treatmentRecord.Desease);
commandAddnewTreatmentRecord.Parameters.AddWithValue("@dosename",
treatmentRecord.DoseName);
commandAddnewTreatmentRecord.Parameters.AddWithValue("@doseamount",
treatmentRecord.DoseAmount);
commandAddnewTreatmentRecord.Parameters.AddWithValue("@Ssn",
treatmentRecord.SSN);
try
return affectedRows;
catch (SqlException)
return 0;
finally { connectionAddnewTreatmentRecord.Close(); }
publicstaticSqlDataReader studMedicalHistory(clsTreatment_Record
treatementHistory)
commandMedHistory.Parameters.AddWithValue("@studid",
treatementHistory.StudID);
try
return reader;
returnnull;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace UoGStudentsServiceMangt
publicstaticclassclsPaymentDB
// a method that adds a new payement record to the payment table of the
database
commandInsertPayment.Parameters.AddWithValue("@amount",
payment.Amount);
commandInsertPayment.Parameters.AddWithValue("@dataofPayment",
payment.DateOfPayment);
commandInsertPayment.Parameters.AddWithValue("@codeNo",
payment.CodeNO);
commandInsertPayment.Parameters.AddWithValue("@SSn",
payment.SSN);
commandInsertPayment.Parameters.AddWithValue("@month",payment.Month);
try
return a;
catch (SqlException)
MessageBox.Show(ex.Message,"Error",MessageBoxButtons.OK,
MessageBoxIcon.Error);
return 0;
finally { connectionPaymentRecord.Close(); }
SqlCommand commandSearchNonCafeByID =
newSqlCommand(statmentSearchNonCafeByID, connSearchStudByID);
commandSearchNonCafeByID.Parameters.AddWithValue("@studId",
studID);
try
return reader;
returnnull;
// a method that Load all noncafe students that donot take Cost
publicstaticSqlDataReader FindAllDoNotTakeCost()
try
connNotTakeCost.Open();
return reader;
returnnull;
publicstaticSqlDataReader FindAllHaveTakeCost()
SqlCommand
commandAllTakeCost=newSqlCommand(selectAllTakeCost,connTakeCost);
try
connTakeCost.Open();
return reader;
returnnull;
commCheckPaid.Parameters.AddWithValue("@code", payment.CodeNO);
commCheckPaid.Parameters.AddWithValue("@month", payment.Month);
try
conn.Open();
if (reader.Read())
paid = true;
return paid;
catch (SqlException)
returntrue;
finally { conn.Close(); }
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace UoGStudentsServiceMangt
publicstaticclassclsDormDB
sqlCommandAddnewBlock.Parameters.AddWithValue("@BlockN0",
newDorm.BlockNo);
sqlCommandAddnewBlock.Parameters.AddWithValue("@DormN0",
newDorm.DormNo);
sqlCommandAddnewBlock.Parameters.AddWithValue("@available",
newDorm.Available);
try
connectionAddnewBlock.Open();
return RowsAffected;
return 0;
finally { connectionAddnewBlock.Close(); }
publicstaticList<string> FindAllBuldings()
SqlConnection connFindAllBulding=clsSSMS.GetConnection();
SqlCommand
commFindAllBulding=newSqlCommand(SelectAllBulding,connFindAllBulding);
try
connFindAllBulding.Open();
SqlDataReader reader=commFindAllBulding.ExecuteReader();
while(reader.Read())
list.Add(reader[0].ToString());
return list;
catch(Exception ex)
returnnull;
finally {connFindAllBulding.Close();}
publicstaticSqlDataReader FindAvailableDorms()
try
connAvailableDorm.Open();
return reader;
catch (Exception)
returnnull;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace UoGStudentsServiceMangt
publicstaticclassclsEmployeeDB
insertEmpCommand.Parameters.AddWithValue("@F_Name",
employee.FName);
insertEmpCommand.Parameters.AddWithValue("@L_Name",
employee.LName);
insertEmpCommand.Parameters.AddWithValue("@Ssn", employee.SSN);
try
regEmpConnection.Open();
insertEmpCommand.ExecuteNonQuery();
throw ex;
finally
regEmpConnection.Close();
commandSelectEmp.Parameters.AddWithValue("@empssn", SSNorName);
try
return reader;
returnnull;
commandDeleteEmp.Parameters.AddWithValue("@empSSN",
empTobeDeledted.SSN);
try
return rowsAffected;
return 0;
finally
publicstaticSqlDataReader LoadAllEmployeeList()
SqlCommand loadallEmpcommand =
newSqlCommand(selectAllEmpStatment,LoadAllEmpconn);
try
return reader;
returnnull;
try
commUpdateEmp.Parameters.AddWithValue("@fname",
empUpdate.FName);
commUpdateEmp.Parameters.AddWithValue("@lname",
empUpdate.LName);
commUpdateEmp.Parameters.AddWithValue("@ssn",
empUpdate.SSN);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace UoGStudentsServiceMangt
publicstaticclassclsServingMaterialDB
SqlCommand commandAddnewServingMaterialRecord =
newSqlCommand(statmentAddnewServingMaterialRecod,
connectionNewServingMaterialRecord);
commandAddnewServingMaterialRecord.Parameters.AddWithValue("@cup",
newRecord.Cup);
commandAddnewServingMaterialRecord.Parameters.AddWithValue("@fork",
newRecord.Fork);
commandAddnewServingMaterialRecord.Parameters.AddWithValue("@mealCardNo",
newRecord.MealCardNo);
try
commandAddnewServingMaterialRecord.ExecuteNonQuery(); //
execute the command
finally { connectionNewServingMaterialRecord.Close(); }
// this method retrives all students that does not take serving material
publicstaticSqlDataReader readerNotTakeServingMat()
try
connNoTakeServMat.Open();
return reader;
returnnull;
// a method that finds all the students who take serving material
publicstaticSqlDataReader ListOfStudTakeServingMat()
try
connTakeServMat.Open();
return reader;
returnnull;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace UoGStudentsServiceMangt
publicstaticclassclsEmployeeDB
insertEmpCommand.Parameters.AddWithValue("@F_Name",
employee.FName);
insertEmpCommand.Parameters.AddWithValue("@L_Name",
employee.LName);
insertEmpCommand.Parameters.AddWithValue("@Ssn", employee.SSN);
try
regEmpConnection.Open();
insertEmpCommand.ExecuteNonQuery();
catch (SqlException)
finally
regEmpConnection.Close();
commandSelectEmp.Parameters.AddWithValue("@empssn", SSNorName);
try
return reader;
returnnull;
commandDeleteEmp.Parameters.AddWithValue("@empSSN",
empTobeDeledted.SSN);
try
return rowsAffected;
catch (SqlException)
return 0;
finally
publicstaticSqlDataReader SearchEmp()
SqlCommand loadallEmpcommand =
newSqlCommand(selectAllEmpStatment,LoadAllEmpconn);
try
return reader;
returnnull;
try
commUpdateEmp.Parameters.AddWithValue("@fname",
empUpdate.FName);
commUpdateEmp.Parameters.AddWithValue("@lname",
empUpdate.LName);
commUpdateEmp.Parameters.AddWithValue("@ssn",
empUpdate.SSN);
Login form
CHAPTER FOUR
5. Recommendation conclusion
The objective of this project is to change the existing manual system to computerize system
in relation with the fulfillments of B.Sc in computer science. The system provides a desktop
application in UoG atse tewodros.
Based on the objective specified earlier in chapter one, relevant information Was gathered
and analyzed with team members also desired data was collected through interview,
questioner& observation. So depending on the above analysis the following conclusions are
drawn:-
The developed system enables to access the student data from the server.
One centralized data base server were build for the service given by student
management system.
The desktop application that developed help user to assign dormitory automatically.
Recommendation
The team that developed this desktop recommended the following points for the
implementation & installment of this project.
Gondar university should take the purpose of the project seriously and must be
willing to apply the desktop application also make a great effort to realize the
implementation b/c this application solve main problem observed in university of
Gondar.
REFERENCE
[2] P. Kruchten, H. Obbink, J. Sta_ord. The Past, Present and Future of Software
Using UML, Patterns, and Java™ Third Edition, Prentice Hall, United
States,1985
[4] http://programmers.stackexchange.com/questions/215367/functional-
nonfunctional-requirements-vs-design-ideas