Final Project Report Doc ORIGINAL
Final Project Report Doc ORIGINAL
System
Diploma in Software Engineering 18.1/Diploma in Computer
System Designing 18.1
i
Declaration
The Technical Report is our group original work and has not been submitted previously for a
diploma at this or any other university/institute. To the best of our knowledge it does not contain
any material published or written by another person, except as acknowledged in the text.
Group members
ii
Preface
Most of the people in the society tend to use the public transportation services. Among them, the
bus service has a huge demand. Even though there are so many private bus companies which
provide transportation services, people have to go through various kinds of difficulties in order to
reach their destination. We looked through this situation which is very common in everyday life
of the people and decided to give a solution.
We have planned to execute a website with the help of a private bus company called S.K. Tours.
The company already owns a website which helps people to book their bus seats, but they can’t
choose the seat they need by their own. Therefore we created a website which facilitates people
to book the bus seat they prefer to travel comfortably.
iii
Operational Tree
Managing
Director
Operation
Administration Accountant Business
Manger
development
Figure 2.1.0
iv
List of keywords
DFD diagrams- A data diagram is a graphical representation of the “flow” of data through an
information system, modelling its process aspects.
Use case diagram- It is a graphic depiction of the interactions among the elements of a system.
Database- It is a structured set of data held in a computer, especially one that is accessible in
various ways.
Primary key- It is a key in a relational database that is unique for each record.
Foreign key- It is a field in one table the uniquely identifies a row of another tabale or the same
table.
v
List of figures
vi
List of tables
vii
List of Acronyms and Abbreviations
Abbreviation Description
ER Entity Relation
DFD Data flow diagram
SDLC System development life cycle
viii
Acknowledgement
We have taken effort in this project to achieve the goal of implementing a bus seats booking
system for the passengers. However, it would not be successful without the kind support and
help of many individuals. Therefore we allocate this section to declare our sincere thanks to all
of them.
First of all we would like to thank our project supervisor Ms. Inoka Abeysinghe for giving us
their valuable guidance to complete this project punctually.
It is difficult to forget the support given by our lecturers because they always encouraged us to
be in the correct path. We appreciate our parallel development teams because they stimulated us
to produce a successful ending to our product . It is essential to remind the support given by the
lab maintenance staff to make this effort a success. Last but not least, we would like to express
our heartiest thank to our beloved parents for their blessings and encouragement..
ix
Abstract
It is very important to maintain efficient software to handle bus booking services. This
application provides a way to record the information and to access them in a simple way. The
report presents the implementing details about a web based online bus booking service system
for S.K tours Bus Company in Kandy. They maintain the whole process manually. For example
recording information, process, maintain their information, etc. Hence passengers, even from
remote and faraway places have to come to the main office which is located at the centre of the
Kandy city. This is an extra cost and a waste of valuable time for the passengers. In order to
overcome these drawbacks, our aim is to design self-sufficient software which is a web based
online bus seat booking system. The application is extendable, easily maintainable, cost
effective, robust, user friendly and error free. The system is implemented using a web base
technology. The system access is given according to their level of control to users such as
administrator, system staffs, employees including passengers etc. The system facilitates you to
do a number of processes such as validate user login, analysis the available seats, calculate total
ticket price, generate the bus ticket, analysis passenger data, generate admin reports, etc. The
user will get a confirmation message when they complete their booking and payment. The
system presents additional features including generating reports as well. These reports include
the analysis and design of the system and also it emphasizes the importance of having this kind
of a system. This system could be implemented easily among the people.
x
Table of Contents
Declaration.................................................................................................................................................ii
Preface.......................................................................................................................................................iii
List of keywords.........................................................................................................................................v
List of figures............................................................................................................................................vi
List of tables.............................................................................................................................................vii
List of Acronyms and Abbreviations.....................................................................................................viii
Acknowledgement.....................................................................................................................................ix
Abstract......................................................................................................................................................x
Chapter 01 – Introduction........................................................................................................................3
1.1 Terms of reference......................................................................................................................4
1.2 scope of the study.......................................................................................................................5
1.3 Methodology...............................................................................................................................6
1.4 Duration.......................................................................................................................................8
Chapter 02- Existing System...................................................................................................................9
2.1 Company overview..........................................................................................................................10
2.2 Overview of the existing Account Management System.................................................................11
2.3 Drawbacks of the existing system....................................................................................................12
Chapter 03- Proposed System...............................................................................................................13
3.1 Objectives of the Proposed System.................................................................................................14
3.2 Benefits of the Proposed System.....................................................................................................15
3.3 Use Case Diagram............................................................................................................................16
3.4 Context Level Diagram.....................................................................................................................17
3.5 Level-0 Data Flow Diagram..............................................................................................................18
3.4 ER Diagram......................................................................................................................................19
3.5 Sequence Diagram...........................................................................................................................20
3.6 Class Diagram..................................................................................................................................21
3.7 Database Schema Diagram..............................................................................................................22
Chapter 04- Design..................................................................................................................................23
4.1 File Design..................................................................................................................................24
4.2 Interface design.........................................................................................................................30
1
4.3 Interface designs and program designs (Pseudo Codes)............................................................31
Chapter 05 – Conclusion and further developments............................................................................88
5.1 Appendices......................................................................................................................................89
5.2 Further developments.....................................................................................................................90
5.3 Conclusion.......................................................................................................................................91
Chapter 06 – Bibliography......................................................................................................................92
6.1 References.......................................................................................................................................93
2
Chapter 01 – Introduction
3
1.1 Terms of reference
The project is to investigate the existing manual system of S.K. Tours (PVT) Ltd
Company, detect the weaknesses, inefficiencies and recommend a suitable automated
system for their company. People struggles with many difficulties because of the manual
process, extra cost and the wastage of time in the present system.
The process of booking bus seats will be fully automated by applying this software and
will enhance the efficiency of the company. The entire system is focusing on the easy
booking of bus seats according to the preferences of the passengers. Also a copy of the
booking receipt will be stored into the passenger’s device and the company’s device so
that any difficulty that might occur regarding the booking can be solved.
The project group shall perform the following investigation and analyze the existing
system.
4. Design a new computerized system for the company including hardware, software, live
4
1.2 scope of the study
• Researching and reviewing passengers’ needs (easy, anywhere and anytime booking etc...).
• Researching and reviewing the manual bus booking system (S.K Tours).
• Generating the system as passengers could access it with least requirements to satisfy them.
(Mobile phone or any devise to access internet is enough).
• Developing the system with a user-friendly interface and easy procedures to attract passengers.
• Implementing solutions through system and making it more effective such as developing
system to book bus ticket whenever or wherever the passengers are.
• Improving the growth of S.K Tours by using modern technology (web based) in luxury bus
service. Therefore, it would make changes in S.K Tours service
.
• Study of using web technologies (PHP, HTML, CSS, jQuery, MySQL) Google Cloud Platform
(for web service) that develop the system.
• Reinforce a variety of skills including concentration, problem solving effort, creativity to fulfill
the vision.
• Evaluation of the web-based system.
5
1.3 Methodology
Software Development Life Cycle (SDLC) was used when developing this whole project.
SDLC is a framework defining tasks performed at each step in the software development
process. This includes,
• Analyzing
• Designing
• Coding
• Testing
• Implementing
• Maintenance
In the Analysis stage the entire booking procedure of the company has been investigated. During
the observations we found out that the efficiency of the bus seat booking procedure of the
company has several weaknesses as it is operated manually. For the preliminary investigation we
used several data gathering techniques to understand the problem.
We were able to talk with the owner of the S.K. Tours bus company and gather relevant
information regarding the current bus seat booking system. He clarified all the doubts we had
with their current manual system. After the feasibility study we decided to develop an Online
Bus Seat Booking System for their company.
After the design was approved coding started. According to the design databases were created.
After the completion of each module testing stage started. All the Errors were eliminated and we
could develop a good software rich with quality, and user friendly.
6
If changes are required by the user, those changes will be done during the maintenance stage.
The admin training is planned as in-house training to train how to operate the system in
situations like booking cancellation, refunding, etc.
7
1.4 Duration
Year 2020
1st month 2nd month 3rd month
Month
Week 2nd 3rd 1st 2nd 3rd 4th 1st 2nd 3rd 4th 1st
Task
Project
initiation
Analysis stage
Design stage
Testing
Report writing
Table 2.2.7
8
Chapter 02- Existing System
9
2.1 Company overview
There are many aspects which forced me to select this problem in the transportation. In Sri
Lanka, nowadays travelling in a bus has become a difficult task for the passengers without
enough seating facilities and comfortable travelling. Personally, I have faced to all the problems
which I have mentioned above.
We met the owner of S.K. Tours Bus Company and he explained the situation going on with
their manual process of booking bus seats. People have to come to the company or they have to
call and get their seats booked. The payments are done only with cash in the current manual
process.
As there are many changes in the modern world and in this generation, IT is using its power
through all the areas. So when we look into travelling in Sri Lanka, we have to improve our
technology resources. Technology and systems designing make working easy and effective;
therefore a web based online bus booking and tracking system can save time and the extra cost..
10
2.2 Overview of the existing online Bus seat booking System
The existing system of the company has a manual procedure to book bus seats.
All the bookings are handled using a hand-written, paper based system.
After investigating the data files of the company we identified that people can’t book seats
according to their wish and even if they do so they don’t have any evidence to show that they
have booked a particular seat. These are the major weaknesses of the current bus seat booking
procedure of this company.
All the data files were stored separately based on various categories.
11
2.3 Drawbacks of the existing system
3. Improper booking system as it is done per the wish of the conductor or someone
responsible.
8. Security for data is low and data can be damaged or destroyed easily.
10. Takes a lot of space to store data as they are stored in files, based on various categories.
12
Chapter 03- Proposed System
13
3.1 Objectives of the Proposed System
• Our aim is to investigate and apply an effective “Bus Seat Booking System” on
the process done manually in order to reduce waste of money and time.
14
3.2 Benefits of the Proposed System
The web based system keeps all the details computerized such as bus details, passengers’
details and process them electronically, to implement the manual system as web based
online bus booking system.
There is no need to keep all the records in paper work. It handles whole things in a proper
way so it is capable of easy accessing. And it is easy to keep backups.
The information about the bus, employees, bus route, and passengers will be managed by
administrator.
The user can log into online system and book there tickets. Payment, transaction
activities also will be managed by administrator.
In web based system it provides facility such as passengers can get details from the web
based online system, therefore no need to contact the center.
Reduced costs-Web based applications can dramatically lower costs due to reduced
support and maintenance, lower requirements on the end user system and simplified
architecture.
.
Its efficiency in processing details and finds the destination, in booking the ticket and pay
through online. Hence it reduces time waste
.
15
3.3 Use Case Diagram
Figure 2.1.1
16
3.4 Context Level Diagram
Daily Visit
Managing Required service list Canvassing Companies Visiting Officer
Director
Signing Invoices
Details of Shifts Management Monthly Payment
System
Salary
Accept
Agreement
Customer
Security Guards Payment and Details of
Salary Reports Attended Shift Company
Accounts
Figure 2.1.2
17
3.5 Level-0 Data Flow Diagram
Signing Agreement
Visiting
Managing Daily visit Status
Required Status officer
Director
1.0
Convessing Companies
Receiving Invoice for
Gathering Monthly Payment New Clients
Payment Details Account
Information
Receivable Accept Agreement
Monthly Salary 2.0 3.0
Report Invoice Details Customer
Payment Monthly Salary Manufacturing
Report Comapanies Invoice
Shift Security
Details Guard
Accountant
Figure 2.1.3
18
3.4 ER Diagram
DOB
NIC Address
Telephone
Number
Name
Salary
Security N
Employee
Get Paid
Guard
Number Employee
Salaries
Income
Reports
Payment
Done
1
Profit
1 Report
Client N Account 1
Name Pays Department
company
1
Date
1 Check
Accountant Manages
Reports
Managing 1
Director
Figure 2.1.4
19
3.5 Sequence Diagram
loop
Confirmation
Figure 2.1.5
20
3.6 Class Diagram
1 Accountant
Manages Insert Payment
0..*
1 insertDataToTheSystem()
SecurityGuard
Reports 1..* 1..*
idNo
id name
description nic
incomeDetails gender
expenses dateOfBirth
calculateProfit() address
telephoneNumber
getPaid()
Figure 2.1.6
21
3.7 Database Schema Diagram
EmployeeDetails
EmpNo Name Gender Date of NIC Address TelephoneNo
Birth
ClientCompanyDetails
ComNo Name Date Payment
Reports
Pc_date Netsal Payment Profit
GetIncome
Id_1 Netincome
GetSalary
Id_2 Netsalary
Figure 2.1.7
22
Chapter 04- Design
23
4.1 File Design
Table 2.2.8
24
Table ID-1
Table Organization-Indexed
Primary key-CompanyNo
Table 2.2.9
25
Table ID-2
Table Organization-Indexed
Primary key-employeeNo
Table 2.3.0
26
Table ID-3
Table Name-Reports
Table Organization-Indexed
Table 2.3.1
27
Table ID-4
Table Organization-Indexed
Table 2.3.2
28
Table ID-5
Table Organization-Indexed
Table 2.3.3
29
4.2 Interface design
Table 2.3.4
30
4.3 Interface designs and program designs (Pseudo Codes)
Special Features
Figure 2.1.8
31
Pseudo code (Login)
Start
Declare password, username
Input password, username
Else
Login Successful
Load Testhome
End if
END
32
Interface number – I2
Figure 2.1.9
33
Pseudo code (Homepage)
Start
Else if (“Reports”)
Load reports
Close Testhome
End if
END
34
Interface number – I3
Figure 2.2.0
35
Pseudo code (Company Details)
Start
Open Defendlankadb file (db)
Read Tablec
Try
Insert into Tablec (company number, company name, company date, company
payment)
If (txtcomnumber is empty)
End if
Update Tablec set (company name, company payment, company date) where
company id
End if
36
If (button click “Delete”)
Delete Tablec
End if
Clear Tablec
end if
Load Testhome
End if
37
Interface number – I4
Interface name – Employee details
Description – This interface is used to insert the details of the security guards. (employee
number, name, Gender, NIC, Date of birth, address, telephone number). After inserting the
details, user can update delete the entered data. This interface also has a clear button which
performs same as the clear button in the Company Details form.
Figure 2.2.1
38
Pseudo code (Employee Details)
Start
Open Defendlankadb file (db)
Read Tablee
If (button click “insert”)
Try
Declare emno, name, nic, address, tp
If (txtemployeeno.Text is empty)
39
Display “Check the employee Phone number again”
Else
End if
Update Tablee set employee name, employee nic, employee date of birth,
employee address, employee telephone, where employee number
End if
Clear Tablee
End if
Load Testhome
END
40
Interface number – I5
Interface name – Budgetary
Description – This form is used to insert all the data needed for salary calculations and the
outcome will show the salary per employee. If the user needs to search a specific employee or a
client company, he can click on the show more details button.
Figure 2.2.2
41
Pseudo code (Budgetary)
Start
Open Defendlankadb file (db)
Read Tableemp
Declare balance1, balance2, epf, got, dayoff, calsalary,basicsal, ad_ex
If (button click “Calculate”)
Labelshowsal.Text = calsalary
End if
If (button click “combobox”)
If (combobox1.Text == “Uniforms”)
Calsalary = bsal + ba1 + ba2 + got + dayoff – (epf + 1500)
Display “Uniforms amount will be deducted from the salary”
Else if (combobox1.Text == “Transport Facility”)
Calsalary = bsal + ba1 + ba2 + got + dayoff – (epf + 500)
Display “Transport Facility amount will be deducted from the salary”
Else if (combobox1.Text == “Medical Allowances”)
Calsalary = bsal + ba1 + ba2 + got + dayoff – (epf + 5000)
Display “Medical Allowance amount will be deducted from the salary”
End if
If (button click “Clear”)
Clear Tableemp
End if
If (button click “Check”)
Declare b, totalsalary
Display “Salary for an employee (b) ”
Totalsalary = totalsalary + b
Insert into Tableemp (id, amnt) values (“+2”, “totalsalary”)
42
Display “Data sent”
End if
If (button click “Home’)
Load testhome
End if
Close Tableemp file ()
END
43
Interface number – I6
Interface name – Further Details
Description – This form is used to display the existing details of client-companies and to search a
specific company by name.
Figure 2.2.3
44
Interface number – I7
Interface name – Search Company Details
Description – This form is used to display the existing details of client-companies and to search a
specific company by name.
Figure 2.2.4
45
Pseudo code (Search Company Details)
Start
Try
Int count = 0
End if
If (count == 0)
Fill adapter ()
Else
Catch
End if
End if
End if
STOP
46
Interface number – I8
Interface name – Search Employee Details
Description – This form is used to display the existing details of employees and to search a
specific employee by name.
Figure 2.2.5
47
Pseudo code (Search Employee Details)
Start
End if
Declare count
Try
If (count == 0)
Else
Catch
End if
End if
End if
END
48
Interface number – I9
Interface name – Display Profit
Description – This form is used to show/check the income of the company and the calculated
Net salaries of employees to get the monthly profit report at the end.
Figure 2.2.6
49
Pseudo code (Display Profit)
Start
lblincome.Text = Testcompany.totalincome
End if
lblnetsal.Text = budgetary.totalsalary
End if
calprofit =0
lblprofit.Test = calprofit
End if
End if
END
50
Program ID – P1
Program name - Form1
Input file - Login
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TestFinalProject
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
52
Program ID – P2
Program name - TESThome
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TestFinalProject
{
public partial class TESThome : Form
{
public TESThome()
{
InitializeComponent();
}
private void btnemployee_Click(object sender, EventArgs e)
{
TESTemployee a = new TESTemployee();
a.Show();
this.Hide();
53
}
54
budgetary b = new budgetary();
b.Show();
this.Hide();
}
55
Program ID – P3
Program name - TESTcompany
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace TestFinalProject
{
public partial class TESTcompany : Form
{
public static double income;
public static double payment;
public static int totalincome = 0;
public TESTcompany()
{
InitializeComponent();
}
56
private void button3_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(@"Data
Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\ASUS\Documents\TestFinalProject\Test
FinalProject\defendlankadb.mdf;Integrated Security=True;Connect Timeout=30");
con.Close();
}
57
a.Show();
this.Hide();
}
if (txtcomnumber.Text == "")
{
MessageBox.Show("Input the company number");
}
else if (txtcomname.Text == "")
{
MessageBox.Show("Input the company name");
}
else if (txtcompayment.Text == "")
{
MessageBox.Show("Input the company payment");
}
58
con.Close();
}
con.Close();
59
}
MessageBox.Show(Convert.ToString(a));
totalincome = totalincome + a;
SqlCommand cmd = new SqlCommand("insert into [getinciome] (id,amt) values ("
+ 1 + "," + totalincome + ")", con);
cmd.ExecuteNonQuery();
MessageBox.Show("Data Sent");
}
}
}
60
Program ID – P4
Program name - TESTemployee
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace TestFinalProject
{
public partial class TESTemployee : Form
{
public TESTemployee()
{
InitializeComponent();
}
61
a.Show();
this.Hide();
}
if (txtemployeeno.Text == "")
{
MessageBox.Show("Input the employee No");
62
}
else if (txtempname.Text == "")
{
MessageBox.Show("Input the employee name");
}
else if (txtempname.Text.All(char.IsLetter) == false)
{
MessageBox.Show("only letters can be input as the employee name");
}
else if (txtempnic.Text == "")
{
MessageBox.Show("Input the employee nic");
}
else if (txtempnic.Text.Length < 10 || nic.Length > 10)
{
MessageBox.Show("check nic no,wrong format");
}
63
MessageBox.Show("check tel no,wrong format");
}
64
con.Close();
}
con.Close();
}
}
}}
65
ogram ID – P5
Program name - budgetary
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace TestFinalProject
{
public partial class budgetary : Form
{
public static int totalsalary;
public budgetary()
{
InitializeComponent();
}
66
double ba1, ba2,epf;
int got, dyoffot;
double calsalary, bsal;
string ad_ex;
lblshowsal.Text = Convert.ToString(calsalary);
bsal = Convert.ToInt32(txtbasicsal.Text);
ba1 = Convert.ToInt32(txtbudallow1.Text);
ba2 = Convert.ToInt32(txtbudallow2.Text);
got = Convert.ToInt32(txtgeneralot.Text);
dyoffot = Convert.ToInt32(txtdayoffot.Text);
67
epf = Convert.ToInt32(textBox2.Text);
ad_ex = Convert.ToString(comboBox1.SelectedItem);
if (comboBox1.Text == "Uniforms")
{
calsalary = bsal + ba1 + ba2 + got + dyoffot - (epf + 20);
MessageBox.Show("Uniforms amount will be deduct from the salary.");
/*Fixed amount for the uniforms are Rs.2000.00*/
}
else if(comboBox1.Text == "Transport Facilities")
{
calsalary = bsal + ba1 + ba2 + got + dyoffot - (epf + 5);
MessageBox.Show("Transportation amount will be deducted from the salary.");
/*Fixed amount for the transportation is Rs.500.00*/
}
else if(comboBox1.Text == "Medical Allowances")
{
calsalary = bsal + ba1 + ba2 + got + dyoffot - (epf + 50);
MessageBox.Show("Medical Allowance will be added to the salary.");
/*Fixed amount for the Medical Allowances is Rs.5000.00*/
}
68
private void btnclearbudgetary_Click(object sender, EventArgs e)
{
txtbxem_no.Text = "";
payment_dateTimePicker.Text = "";
txtbasicsal.Text="";
txtbudallow1.Text="";
txtbudallow2.Text="";
txtgeneralot.Text="";
txtdayoffot.Text="";
textBox2.Text="";
comboBox1.Text = "";
lblshowsal.Text = "";
}
69
con.Open();
MessageBox.Show(Convert.ToString(b));
totalsalary = totalsalary + b;
SqlCommand cmd = new SqlCommand("insert into [getsalary] (id,amnt) values (" + 2 +
"," + totalsalary + ")", con);
cmd.ExecuteNonQuery();
MessageBox.Show("sent");
}
}
}
70
Program ID – P6
Program name Further_Details
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TestFinalProject
{
public partial class Further_Details : Form
{
public Further_Details()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Search_Company_Details cd = new Search_Company_Details();
cd.Show();
this.Hide();
71
}
72
Program ID – P7
Program name - Search_Company_Details
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace TestFinalProject
{
public partial class Search_Company_Details : Form
{
public Search_Company_Details()
{
InitializeComponent();
}
73
private void btnback_2_Click(object sender, EventArgs e)
{
Further_Details fd = new Further_Details();
fd.Show();
this.Hide();
}
con.Close();
this.tablecTableAdapter.Fill(this.defendlankadbDataSet.Tablec);
74
this.tableeTableAdapter.Fill(this.defendlankadbDataSet.Tablee);
}
}
}}
75
Program ID – P8
Program name – Search Employee Details
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace TestFinalProject
{
public partial class Search_Employee_Details : Form
{
public Search_Employee_Details()
{
InitializeComponent();
}
76
fd.Show();
this.Hide();
}
this.tableeTableAdapter.Fill(this.defendlankadbDataSet.Tablee);
77
private void button2_Click(object sender, EventArgs e)
{
int count = 0;
}
}
}
78
Program ID – P9
Program name - Profit
Input file –
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace TestFinalProject
{
public partial class Profit : Form
{
double thisInt;
public Profit()
{
InitializeComponent();
79
thisInt = budgetary.totalsalary;
con.Close();
}
80
TESThome a = new TESThome();
a.Show();
this.Hide();
}
con.Close();
}
}
}
81
Messages
Msg1 Appears when the user has enters the wrong username or password.
82
Msg2 Appears when the user hasn’t filled the field company No in the form.
Msg3 Appears when the user hasn’t filled the field company Name in the form.
83
Msg4 Appears when the user hasn’t filled the field company Payment in the form.
Msg5 Appears if the NIC of the employee has entered in wrong format. The standard
format is xxxxxxxxxv.
84
Msg6 Appears if the textbox employee No is empty.
Msg7 Appears to inform the user that the value of the entered item is deducted from the
salary.
85
Msg8 Appears if the searched company does not exist in the database.
Msg9 Appears if the searched employee name does not exist in the database.
86
Reports
87
Chapter 05 – Conclusion and further developments
88
5.1 Appendices
We selected the Defend Lanka Security firm for our final project. As they needed an Account
Management system we had to consider about their entire Management system. To collect more
accurate information and to identify their requirements properly we that we launch some
questionnaires.
Questionnaires
89
5.2 Further developments
Our aim is to develop this system to do client-company-payments online. So that the clients
don’t need to do payments to the visiting officer or by visiting to the company. When the client
company registers with the system they’ll be able to do payments using their credit cards.
And also we are hoping to develop this system to schedule all the shifts of each security guard
and calculate the salaries of all the visiting officers and the rest of the employees. So that it will
make the entire system of the company automated.
90
5.3 Conclusion
After establishing this system in the company, the account management department will
be able to work more productively than ever before. All the reports and salary calculations will
be done more effectively. As we have developed the software according to the coding standers, it
will be easy for a new programmer to join with the system to do further developments.
Our software is developed to provide the company with better system handling and
monitoring. If a problem is discovered, the company can go through the database and identify the
problem easily. So that, none of the serious consequences they had faced before, will be occurred
in the future.
91
Chapter 06 – Bibliography
92
6.1 References
1. https://www.c-sharpcorner.com/uploadFile/84c85b/object-oriented-programming-
using-C-Sahrp-net/
2. https://www.devu.com/tutorials/
3. https://smallbusiness.chron.com/calculate-profit-loss-security-guard-services-37779.html
4. https://youtube.be//nQvWNAldA1E
5. https://www.tutorialspoint.com/csharp/
93
THANK YOU
94