Book PDF
Book PDF
Book PDF
CERTIFICATE
This is to certify that the project titled “Canadian Dental Management System” is
Student Name
I
DECLARATION
We, Abdijibar Mohamoud Abdi, Abdikarim Hassan Mohamed, Mohamed Ahmed Ibrahim
hereby declare that this thesis is our original work and has not been presented for the
award of any diploma in any other college or university.
Signature……………………. Signature…………………….
Signature…………………….
Date: ………………….
ICT,
II
ACKNOWLEDGEMEN
BISMILLAH , first thanks to Allah(SW) who allowed us to achieve this stage of life and
make our long dream came true, again special thanks goes to our parents whom their
encouragement and advice for our studying.
We are also here to express our gratitude to our advisor Mr.: Abdirizak Mohamed Abdilahi
for his support, guidance and encouragement of our project.
This book would not have been possible without the help of many people whose
comments and suggestions significantly improved the end result of this project.
Finally, we wish to express our appreciation to all who has contributed whatever
donations to this paper including our family, friends and our honorable teachers.
III
Table of Contents
CERTIFICATE ................................................................................................................................................... I
In partial fulfillment of the requirements for the award of Diploma. (ICT) ........................................... I
DECLARATION ............................................................................................................................................... II
ACKNOWLEDGEMEN .................................................................................................................................... III
Table of Contents ........................................................................................... Error! Bookmark not defined.
Chapter One ................................................................................................................................................ 1
Introduction ................................................................................................................................................. 1
1.0 Introduction ....................................................................................................................................... 1
1.1 Background ....................................................................................................................................... 2
1.1.1 Organization Background ......................................................................................................... 2
1.1.2 Mission ........................................................................................................................................ 2
1.1.3 Vision........................................................................................................................................... 2
1.1.4 Org Structure ............................................................................................................................. 3
1.2 Problem Statement............................................................................................................................ 3
1.3 Proposed Solution ............................................................................................................................. 4
1.4 The project goals and objectives ......................................................................................................... 4
1.4.1 Project Goals ................................................................................................................................ 4
1.4.2 Project Objectives ........................................................................................................................ 4
1.5 Theoretical background ................................................................................................................... 5
1.6 Project management: ........................................................................................................................ 6
1.6.1 Total Cost .................................................................................................................................... 6
1.6.2 Time management ...................................................................................................................... 6
Chapter two ................................................................................................................................................. 7
Analysis ........................................................................................................................................................ 7
2.0 Introduction ....................................................................................................................................... 7
2.1 Fact Finding....................................................................................................................................... 7
2.1.1 Interview ..................................................................................................................................... 7
2.2 Requirement ...................................................................................................................................... 8
2.2.1 Functional requirement system ................................................................................................ 8
2.2.2 Non-fictional requirements ....................................................................................................... 9
2.3 System DFDs.................................................................................................................................... 10
IV
2.3.1 Context Diagrams .................................................................................................................... 10
2.3.2 Level zero diagrams ................................................................................................................. 11
2.3.3 Lower level diagram ................................................................................................................ 13
Chapter Three ........................................................................................................................................... 14
Project Design............................................................................................................................................ 14
3.0 Introduction: ................................................................................................................................... 14
3.1: Data Dictionary .............................................................................................................................. 14
3.1.2 Data structure dictionary ............................................................................................................ 15
3.1.3 Data store dictionary ............................................................................................................... 16
3.1.4 Data flow dictionary................................................................................................................. 16
3.2 Data design ...................................................................................................................................... 17
3.2.1 Entities and Attributes............................................................................................................. 17
3.2.2 Database design ........................................................................................................................ 17
3.3 Interface & Screens Design ............................................................................................................ 22
3.4 Input, Output & report Design .......................................................................................................... 22
Chapter Four ............................................................................................................................................... 24
Project Implementation ............................................................................................................................. 24
4.0 Introduction: ................................................................................................................................... 24
4.1 Application Development ............................................................................................................... 24
............................................................................................................................................................ 31
4.1.1 Modules ..................................................................................................................................... 31
............................................................................................................................................................ 34
............................................................................................................................................................ 35
............................................................................................................................................................ 36
............................................................................................................................................................ 40
4.1.2Refer to DFDs, process description, ERDs ............................................................................. 41
4.2 User manual.................................................................................................................................... 41
Chapter Five .............................................................................................................................................. 42
Project Conclusion .................................................................................................................................... 42
5.1 Future work:.................................................................................................................................... 42
5.2 Conclusions:..................................................................................................................................... 42
5.3 Reference ......................................................................................................................................... 43
V
VI
Chapter One
Introduction
1.0 Introduction
Canadian dental Management system is software for registration manipulating and storing the data
in each customer, and other clients in the field. This dental is the most popular in Somaliland
special Hargeisa City. Dental health centers are important because they provide crucial services to
the society, so it is necessary to automate their work process in order to enhance the quality of
their service. They provide instruction on brushing, flossing, the use of fluorides, and other aspects
of dental care. They remove tooth decay, fill cavities, examine X rays, place protective plastic
sealants on children's teeth, straighten teeth, and repair fractured teeth. They also perform
corrective surgery on gums and supporting bones to treat gum diseases.
Dentists extract teeth and make models and measurements for dentures to replace missing teeth.
They also administer anesthetics and write prescriptions for antibiotics and other medications.
Since most of our dental clinics work manual system, and it is very hard to keep track the health
situation of the patients in an order manner with time to time.
At that time, it is worthwhile to make a database system that safe and keep track the information
of the patients as well as simplify their work up to extent.
The other reason why it is important for dental clinics to have a database system is that patients
with dental problems might take long time to cure and visits their doctors/consultants more than
one time, so the dentist have to follow up their treatment history properly to provide the best
treatment type. This dental is located opposite the Somcable in Hargeisa City but our project this
only designed in Canadian dental for registration and storing data of employees and customers, So
we decided to make a modern technology program that dental works for and at that time we used
C# .net which as an object-oriented language and it was the only language we thought is good for
making dental management system. This project has started the month of January 23 2020 and
designed for registration manipulate updates and also store client’s information it also included.
Any customer that joint and leave and their information and also the schedule of employees and
their work Also This project it included a database program in order to save the
data in the dental information and etc. So, we thought Microsoft SQL server is suitable for
connecting C#.net program.
1
1.1 Background
1.1.1 Organization Background
This Canadian dental was started working 2016 and it located Sha’ab village opposite Somcable
the owner of the dental is takaful insurance and consists in several parts and the employee that
works. And also, this dental works like the international dental in the world and it is better than
other dentals in Hargeisa to cover all needs and wants of the customers.
Canadian dental clinic and pharmacy principal activities include flossing, the use of fluorides,
remove tooth decay, fill cavities, examine X rays, place protective plastic sealants on teeth,
straighten teeth, and repair fractured teeth. They also perform curative surgery on gums and
supporting bones to treat gum diseases.
The dental clinic is small in size and has no branches in other regions of Somaliland.
The dental clinic works 11/5 every day except weekends, the dentist works two shifts.
In the morning the dentist check patients that has already examined and described their problem,
while in the afternoon the dentist tries to receive and see the complaints of at least 50 patients.
Apart from Canadian Dental Clinic and Pharmacy, there are many other dental clinics which
provide the same service to the society, but the reliable knowledge of the Dr. and his team made
the clinic the most famous and customer oriented dental clinic in Somaliland.
Canadian Dental Clinic and Pharmacy work in a manual system; they use big books to store the
information of their patients.
Also, dental staffs are always ready to serve to the dental's customers and customer satisfaction.
1.1.2 Mission
1. Our mission to able by the rule of the low, and adherent to the principle of Islamic
religion. Human rights and moral values.
2. Promoting best dental
1.1.3 Vision
To be the first choice for customers, Exceptional and personalized service, exceeding expectations,
and inspiring a connection to our service in the experiences we provide.
And also, we want to become the best dental in the Somaliland
Values
At its core, the Canadian dental holds the following values and beliefs:
2
Exceptional Service - We understand that the value can be created with every encounter and this
is reflected in our superior standard of service.
Integrity - We are honest and straight forward in our interactions with our customers and the
communities in which we operate.
Respect - We respect the objectives of our clients, the values of our customers, and the cultural
difference in the locations that we operate. Teamwork and Passion - We bring our individual
expertise, creativity and passion for our customers as a Canadian dental team member.
Cashier
3
this system is transferring from a lot of the problem is lost would This dental lost everything you
write your personal computer and puts it could resolve problems of dental I want to use this
program to that we make because the program is very useful quality.
1) The dental we were working for, were manual system and were not right to store in this
modern in this modern time
2) This dental has no database system to store data of the customers
3) There was no computerized system for employees and customer’s data.
4) Sometimes the data is losing
4
3. system able to display available customers and left customers
5
1.6 Project management:
1.6.1 Total Cost
In this project, we did not face a lot of cost issues specially hardware cost because the dental
we were working for had not a program of hardware it had computer also have laptops but the
issue was to buy software’s we bought Microsoft SQL server and Microsoft Visual studio
also, laptop or desktop computer to use this software, that took as a money that we estimated $260
and that Software’s that the dental works.
Mouse Wireless $6
PROJECT CHAPTERS
Chapter Five
Chapter Four
PROJECT HAPTERS
Chapter Three
Chapter Two
Chapter One
0 2 4 6 8 10 12 14 16
TIME/DAYS
6
Chapter two
Analysis
2.0 Introduction
System analysis is a logical process; the objective of this phase is not actually to solve the problem
but to determine what must be done to solve the problem. The basic objective of the analysis stage
is to develop the logical model of the system.
This chapter will provide a full description of the system and its users then it depicts the functional
And non-functional requirements that have been collected using several methods from
Brainstorming interview and e-surveys, after determining the most important requirement,
Requirement analysis was adopted using several tools such as use –case diagram, sequence
diagram and activity diagram Before making our project we must to make Analysis to try the solve
problems that we found our analysis. In this chapter we deliberate to analysis the system and easily
to understand how data is follow. The data Follow diagrams (DFDs) or fact finding they are help
to building international system,
7
2.2 Requirement
Before starting making any project the manager of project must determine what is functional, on
functional and quality functional for the project. Functional requirements show how the system
behave. Nonfunctional requirements are mainly to specify criteria that judge the operation of the
system like reliability for example. Quality requirement will show security, usability and
maintainability of project
2.2.1 Functional requirement system
It will describe what the software should do and also define the internal working of software
And also it is a requirement that specifies criteria that can be used to judge the
Operation of a system, rather than specific behaviors. They are contrasted with functional
Requirements that define specific behavior or functions. On the other side:
The functional requirements document is a formal statement of an application’s functional
Requirements. It serves the same purpose as a contract. The developers agree to provide the
Capabilities specified. The client agrees to find the product satisfactory if it provides the
Capabilities specified in the Functional requirements.
The system should add the details along with automatically generated registration number of newly
admitted patients to the database
The system should search for existing patient details for a given registration number
The system should keep the track of vacant and occupied beds in general ward and ICU
The clinic has one dentist and two staff which are responsible for patient registration, and giving
prescribed drugs to the patients.
So this system is going to be used in a small network (client- server based) in which the dentist
himself is the administrator of the database and responsible who is accessing the database and what
privileges should be given to the users.
User id and password must be maintained to restrict data access and empower data integrity.
The new system should be a very simple and easy to use one; most important it should be very
user friendly so that the user can get used to, without a lot of pre-training.
1. All Registrations can be completed automatically as you enter data.
2. Data can be saved automatically soon after it is entered so that the risk of data being lost is
minimized.
3. Sorting and storing documents and other information like searching is much easier.
8
4. Searching and retrieving data is much easier.
5. Validation rules can be used in order to guarantee better verification
6.Addition of new patients, modification of appointment, keeping the patient’s treatment history
will be simple
❖ Step one: how to enter system
✓ Enter the password of administrator will be able to create account and delete update
data in this Dental management system.
How to create new data: You can enter new record via visual basic studio and
SQL server
1. Click new button then patient ID
2. Write the patient name, then
3. Gender
4. Fill the phone patient then
5. Write Data-register
6. And then click save button
❖ Step Two:
How to update: Is the change data already exist another new data if you made mistake
1. click patient’s tables you want to update
2. click Address or phone you went to update, then
3. Click update button your date will be update.
2.2.2 Non-fictional requirements
These define system properties and constraints e.g. reliability, response time and storage
requirements. Constraints are I/O device capability, system representations, etc.
Process requirements may also be specified mandating a particular IDE, programming language
or development method.
Non-functional requirements may be more critical than
Functional requirements. If these are not met, the system may be useless.
Usability: the system should be easy to use by Staff.
Maintainability: the system must be easy to modify and maintain.
Effectiveness: This means that system should perform well in relation to the effort.
Interoperability: the system should be able to work with any operating system easily.
9
Efficiency: the system must give good result within amount of time.
Security: the system should be secured from un-authorized access.
Accessibility: we must make sure that the system be accessible for all authorized staff and not
accessibility by anyone else.
Extensibility: the system must be customizable.
Patient Doctor
Dental
Patient Visits Management
System Patient Information
Payment
Employee
10
2.3.2 Level zero diagrams
In this part we will study diagrams in the project that how can easily understand Diagrams can
Help us to understand main concept of the project many people can understands easily understand
What diagrams tells us
1. Shows all the major processes that comprise the overall system the internal components
Of process zero
2. On the other side:
3. Shows how the major processes are interrelated by data flows
4. Shows external entities and the major processes with which they interact
5. Adds data stores
Data flow diagrams (DFDs) reveal relationships among and between the various
components in a
Program or system. DFDs are an important technique for modeling a system’s high-level
detail
By showing how input data is transformed to output results through a sequence of
functional
Transformations. DFDs consist of four major components: entities, processes, data stores,
and data flows.
In below pictures tells us the process of the programming is working
11
Level zero diagrams
Permission Employee
Patient
Request
Invoice
Request
System Doctor
Request
Expense
Payment
Manager
Report
D1 Payment FILE
12
2.3.3 Lower level diagram
A lower level diagram is component-level design process that follows a step-by-step
refinement
Process. This process can be used for designing data structures, required software
architecture
The goal of LLD or a low-level design document (LLDD) is to give the internal logical
design of
The actual program code. High-level design is created based on the low-level design. LLD
describes
The class diagrams with the methods and relations between classes and program specs. It
describes
The modules so that the programmer can directly code the program from the document.
13
Chapter Three
Project Design
3.0 Introduction:
In this chapter we deliberate and express to the system and easily to see graphical design project.
Here, we shaping on the system and always users shall to see the design to evaluate.
Patient ID INT
14
Patient Registration date VARCHAR (50)
Patient Id No Int
The answer depends upon the functionalists required in Spell Checker and availability of memory.
For example, following are few possibilities.
1. Hashing is one simple option for this. We can put all words in a hash table. Refer this paper
which compares hashing with self-balancing Binary Search Trees and Skip List, and shows that
hashing performs better. 2. Hashing doesn’t support operations like prefix search. Prefix search is
something where a user types a prefix and your dictionary shows all words starting with that prefix.
Hashing also doesn’t support efficient printing of all words in dictionary in alphabetical order and
nearest neighbor search.
Dental
Patient management Admin
system
15
3.1.3 Data store dictionary
A data store is a repository for persistently storing and managing collections of data which include
not just repositories like databases, but also simpler store types such as simple files, emails etc. A
database is a series of bytes that is managed by a database management system (DBMS). A file is
a series of bytes that is managed by a file system. Thus, any database or file is a series of bytes
that, once stored, is called a data store.
Patients
Administrator
Processor
Data source
16
3.2 Data design
3.2.1 Entities and Attributes
An entity relationship diagram is a means of visualizing how the information a system produces is
related. There are five main components of an ERD:
Entities which are represented by rectangles. An entity is an object or concept about which you
want to store information
Entity
A weak entity is an entity that must defined by a foreign key relationship with another entity as
it cannot be uniquely identified by its own attributes alone.
Entity
Actions, which are represented by diamond shapes, show how two entities share information in
the database
Entity
17
to generate a design in a data definition language, which can then be used to create a database. A
fully attributed data model contains detailed attributes for each entity.
The term database design can be used to describe many different parts of the design of an overall
database system. Principally, and most correctly, it can be thought of as the logical design of the
base data structures used to store the data. In the relational model these are the tables and views.
In an object database the entities and relationships map directly to object classes and named
relationships. However, the term database design could also be used to apply to the overall process
of designing, not just the base data structures, but also the forms and queries used as part of the
overall database application within the database management system (DBMS).
The process of doing database design generally consists of a number of steps which will be carried
out by the database designer. Usually, the designer must:
3) Superimpose a logical structure upon the data on the basis of these relationships
18
3.2.2.4 assign all data elements to entities
3.2.2.5 create 3NF designs for all tables, taking care to identify all primary
and foreign keys
Database Normalization:
19
is a process in which data attributes within a data model are organized to increase the cohesion of
entity types in other words, the goal of data normalization is to reduce and even eliminate data
redundancy, an important consideration for application developers because it is incredibly difficult
to stores objects in a relational database that maintains the same information in several places?
As per First Normal Form, no two Rows of data must contain repeating group of information i.e.
each set of columns must have a unique value, such that multiple columns cannot be used to fetch
the same row. Each table should be organized into rows, and each row should have a primary key
that distinguishes it as unique. The Primary key is usually a single column, but sometimes more
than one column can be combined to create a single primary key. For example, consider a table
which is not in First normal form in First. Normal Form, any row must not have a column in which
more than one value is saved, like separated with commas. Rather than that, we must separate such
data into multiple rows
A table is in Second Normal Form if it is in 1NF and all of its non-key columns depend on the full
key
20
Third Normal Form (3NF)
A table is in Third Normal Form if it is in 2NF and has no transitive dependencies. A transitive
dependency is one in which a first column determines a second column, and that second column
in turn determines a third column.
Most database designers don't bother going any further, but there are more normal forms should
you be interested.
3.2.2.4 generate the final ERD that will include new entities identified during
normalization
21
3.3 Interface & Screens Design
22
3.5 Control Design.
Save Button
Save
23
Chapter Four
Project Implementation
4.0 Introduction:
In this chapter we deliberate and express to the system and easily to see graphical design project.
Here, we shaping on the system and always users shall to see the design to evaluate.
the project, if you type incorrect username or password you can enter the project so its security
form
}
private void pictureBox2_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void metroLabel1_Click(object sender, EventArgs e)
{
Home f1 = new Home();
f1.Show();
this.Hide();
}
private void metroLabel2_Click(object sender, EventArgs e)
{
Doctors f2 = new Doctors ();
f2.Show();
this.Hide();
}
private void metroLabel3_Click(object sender, EventArgs e)
{
Patient f1 = new Patient ();
f1.Show();
this.Hide();
25
Doctor
Save
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Successfully Saved");
DisplayData();
ClearData();
}
26
Update
Delete
private void btnDelete_Click(object sender, EventArgs e)
{
try
{
if (txtDoctor_ID.Text != "")
{
Cmd = new SqlCommand("delete Doctors where Doctor_ID= @Doctor_ID",
cn);
if (cn.State == ConnectionState.Closed)
cn.Open();
ID = Convert.ToInt32(txtDoctor_ID.Text);
Cmd.Parameters.AddWithValue("@Doctor_ID", ID);
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Record deleted Successfully");
DisplayData();
ClearData();
}
27
Patient
Update
else
{
MessageBox.Show("Please select record to delete");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Clear
private void btnClear_Click(object sender, EventArgs e)
{
txtPatientID.Clear();
txtFullName.Clear();
txtGender.Clear();
txtAge.Clear();
txtPTell.Clear();
txtDoctorName.Clear();
txtSearch.Clear();
30
4.1.1 Modules
SqlConnection cn = new SqlConnection("Data Source=DESKTOP-1IH0L1E;Initial
Catalog=Project;Integrated Security=True");
SqlCommand Cmd;
SqlDataAdapter da;
DataTable table;
int ID = 0;
cn.Open();
DataTable dt = new DataTable();
da = new SqlDataAdapter("Select * from Employee", cn);
da.Fill(dt);
dgv.DataSource = dt;
cn.Close();
}
private void DisplayData()
{
cn.Open();
DataTable dt = new DataTable();
da = new SqlDataAdapter("Select * from Employee", cn);
da.Fill(dt);
dgv.DataSource = dt;
cn.Close();
}
private void ClearData()
{
txtEmployeeID.Clear();
txtFull_Name.Clear();
txtGender.Clear();
txtSalary.Clear();
txtJobTitle.Clear();
txtTell.Clear();
31
ID = 0;
}
Save
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Record Saved Successfully");
DisplayData();
ClearData();
}
else
{
MessageBox.Show("Please provide record");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
32
Update
private void btnUpdate_Click(object sender, EventArgs e)
{
try
{
if (txtEmployeeID.Text != "" && txtFull_Name.Text != "" && txtGender.Text != "" &&
txtTell.Text != "" && txtJobTitle.Text != "" && txtSalary.Text != "" )
{
Cmd = new SqlCommand(" Update Employee set Employee_Id=@Employee_Id
,Full_Name=@Full_Name, Gender=@Gender, Salary=@Salary, Tell=@Tell , Job_Title=@Job_Title,
Registration_Date=@Registration_Date where Employee_Id=@Employee_Id", cn);
if (cn.State == ConnectionState.Closed)
cn.Open();
ID = Convert.ToInt32(txtEmployeeID.Text);
Cmd.Parameters.AddWithValue("@Employee_Id", ID);
Cmd.Parameters.AddWithValue("@Full_Name", txtFull_Name.Text);
Cmd.Parameters.AddWithValue("@Gender", txtGender.Text);
Cmd.Parameters.AddWithValue("@Salary", txtSalary.Text);
Cmd.Parameters.AddWithValue("@Tell", txtTell.Text);
Cmd.Parameters.AddWithValue("@Job_Title", txtJobTitle.Text);
Cmd.Parameters.AddWithValue("@Registration_Date", dtp.Text);
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Record updated succesfuly");
DisplayData();
ClearData();
}
}
Delete catch (Exception ex)
{
private
Clearvoid btnDelete_Click(object sender, EventArgs e)
{ MessageBox.Show(ex.Message);
}try
{
if (txtEmployeeID.Text != "")
{
Cmd = new SqlCommand("delete Employee where Employee_ID= @Employee_ID", cn);
if (cn.State == ConnectionState.Closed)
cn.Open();
ID = Convert.ToInt32(txtEmployeeID.Text);
Cmd.Parameters.AddWithValue("@Employee_ID", ID);
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Record deleted Successfully");
DisplayData();
ClearData();
}
else
{
MessageBox.Show("Please select record to delete");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
33
}
Clear
txtEmployeeID.Clear();
txtFull_Name.Clear();
txtGender.Clear();
txtSalary.Clear();
txtTell.Clear();
txtJobTitle.Clear();
txtSearch.Clear();
}
34
public Salary()
{
InitializeComponent();
}
SqlConnection cn = new SqlConnection("Data Source=(local);Initial
Catalog=Project;Integrated Security=True");
SqlCommand Cmd;
SqlDataAdapter da;
DataTable table;
int ID = 0;
private void Salary_Load(object sender, EventArgs e)
{
cn.Open();
DataTable dt = new DataTable();
da = new SqlDataAdapter("Select * from Salary", cn);
da.Fill(dt);
dgv.DataSource = dt;
cn.Close();
Save
Delete
private void btnDelete_Click_2(object sender, EventArgs e)
{
try
{
if (txtEmployeeID.Text != "")
{
Cmd = new SqlCommand("delete Salary where Employee_ID= @Employee_ID",
cn);
if (cn.State == ConnectionState.Closed)
cn.Open();
ID = Convert.ToInt32(txtEmployeeID.Text);
Cmd.Parameters.AddWithValue("@Employee_ID", ID);
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Record deleted Successfully");
DisplayData();
ClearData();
}
else
{
MessageBox.Show("Please select record to delete"); 36
}
}
catch (Exception ex)
{
Clear
txtEmployeeID.Clear();
txtFull_Name.Clear();
txtGender.Clear();
txtPAID.Clear();
txtSalaryAmount.Clear();
txtSearch.Clear();
}
37
Save
public Payment()
{
InitializeComponent();
}
SqlConnection cn = new SqlConnection("Data Source=(local);Initial
Catalog=Project;Integrated Security=True");
SqlCommand Cmd;
SqlDataAdapter da;
DataTable Table;
int ID = 0;
private void Payment_Load(object sender, EventArgs e)
{
cn.Open();
DataTable dt = new DataTable();
da = new SqlDataAdapter("Select * from Payment", cn);
da.Fill(dt);
dgv.DataSource = dt;
cn.Close();
ID = 0;
}
38
Save
private void btnSave_Click(object sender, EventArgs e)
{
try
{
if (txtPatientID .Text != "" && txtFullName .Text != "" && txtPrice .Text != "" )
{
Cmd = new SqlCommand("insert into Payment
values(@Patient_ID,@Full_Name,@Price,@Payment_Date )", cn);
if (cn.State == ConnectionState.Closed)
cn.Open();
Cmd.Parameters.AddWithValue("@Patient_ID", txtPatientID .Text);
Cmd.Parameters.AddWithValue("@Full_Name", txtFullName .Text);
Cmd.Parameters.AddWithValue("@Price", txtPrice .Text);
Cmd.Parameters.AddWithValue("@Payment_Date", dtp.Value);
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Successfully Saved");
DisplayData();
ClearData();
}
else
{
MessageBox.Show("Please provide details!!");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Clear
39
Update
}
else
{
MessageBox.Show("Please provide details!!");
}
}
catch (Exception ex)
Delete {
MessageBox.Show(ex.Message);
private void btnDelete_Click(object sender, EventArgs e)
}
{
}
try
{
if (txtPatientID.Text != "")
{
Cmd = new SqlCommand("delete Payment where Patient_ID = @Patient_ID",
cn);
if (cn.State == ConnectionState.Closed)
cn.Open();
ID = Convert.ToInt32(txtPatientID.Text);
Cmd.Parameters.AddWithValue("@Patient_ID", ID);
Cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Record deleted Successfully");
DisplayData();
ClearData();
}
else
{
MessageBox.Show("Please select record to delete");
40
}
}
catch (Exception ex)
{
4.1.2Refer to DFDs, process description, ERDs
Register information
Main Patient
Registration
Office
Payment
information
Register
automatically the
Payment
41
Chapter Five
Project Conclusion
5.1 Future work:
We will be upgrading with new visions and design that better than this part Now we can’t able to
upgrading due to time and our techniques when we reach our hope We will produce new versions
that is the best this one this software will make more update in reality for all that reasons it made
to make an update placed and make advanced this software works only offline It may have not
attractiveness graphical interface that attractive with the user, for the future will update it and
we will add more additional interfaces that make the software more attractive,
✓ Camera
5.2 Conclusions:
The system has been developed using C# and SQL Server, the system was able to process and
update the database with more ease. It helped in developing a total integrated system.
This the project “Canadian Dental Management System” can be altered in accordance with the
future requirements of the organization. After we have completed the project we are sure the
problems in the existing system would Overcome. The “Canadian Dental Management System”
process made computerized to reduce human errors and to increase the efficiency. The main focus
of this project is to lessen human efforts. The maintenance of the records is made efficient, as all
the records are stored in the SQL SERVER database, through which data can be retrieved easily.
The navigation control is provided in all the forms to navigate through the large amount of records.
If the numbers of records are very large then user has to just type in the search string and user gets
the results immediately. The editing is also made simpler. The user has to just type in the required
field and press the update button to update the desired field
42
5.3 Reference
Online collecting information’s
http://www.google.com
http://www.youtube.com
43
The End
44