Professional Documents
Culture Documents
1.
2.
3.
Inception
1.1 Vision & Scope
1.1.1 Introduction
1.1.2 Purpose
1.1.3 Scope
1.1.4 Definitions, Acronyms and Abbreviations
1.1.5 References
1.1.6 Books
1.1.7 Overview
1.1.8 Positioning
1.1.9 Stakeholder and User Descriptions
1.1.10 Product Overview
1.1.11 Cost and Pricing
1.1.12 Licensing and Installation
1.1.13 Product Features and Priorities
1.1.14 Constraints
1.1.15 Quality Ranges
1.1.16 Other Product Requirements
Elaboration
2.1 Software Requirements Specification
2.1.1 Introduction
2.1.2 Purpose
2.1.3 Scope
2.1.4 Definitions, Acronyms and Abbreviations
2.1.5 Overview
2.1.6 Functional Requirements
2.1.7 Non Functional Requirements
2.2 Use case Diagrams
2.3 Fully Dressed Use cases
2.4 System sequence diagrams
2.5 Entity Relationship Diagram
2.6 Normalization
2.7 Domain Model
2.8 Relational Modal
CONSTRUCTION
3.1 Class Diagram
3.2 Implenentation Code
3.2.1 User Management
3.2.2 Employee Management
3.2.3 Plant Management
3.2.4 Pot Management
3.2.5 Supplier Management
3.2.6 Supplier Payment
3.2.7 Order Management
5
5
5
6
6
6
6
6
7
9
10
10
10
13
13
14
17
18
18
18
19
19
23
109
113
121
127
133
139
143
1
5.
152
157
158
162
162
163
163
163
164
164
164
164
164
Transition
4.1 Snap Shots
4.2 User Manual
4.2.1 Computer Requirements
4.2.2 Login Screen
4.2.3 Home Page
4.2.4 User Management
4.2.5 Employee Management
4.2.6 Client Management
4.2.7 Supplier Management
4.2.8 Receipt Generation
4.2.9 Plants Management
4.2.10 Pot Management
4.2.11 Supplier Payment
4.2.12 Order Management
201
201
201
203
203
204
205
206
207
208
209
210
Project Management
5.1 Gantt chart
1. Inception
for the old record usage in GHCMS. There is no proper record for employees details, clients
details, purchase details, sale details, stock details, payment details, supply details and Product
detail.
We are developing this system for Green House City, currently they are using manual system for
information management thats why they wants to have an automated system so that it can
produce ease, correctness, less man power and fastness in their general routine works such as
Plants detail, supplier details, employee, receipt management, payment etc. This system is use to
manage information efficiently, it is desktop based application which provide reliability and
usability.
Green House City management system (GHCMS) is used to manage your business by
improving efficiencies of the nursery. GHCMS is user friendly and takes the hard work out of
running your nursery by setting up facilities to remember all the things that are important to your
business.
1.1.2 Purpose
We are developing this system for Green House City which has manual system and facing the
following problems.
Time consuming
Consumes more men power
It is producing errors such as data duplication, robustness, too much paper work and slow
retrieval of data
Space consuming for files and folders
No proper record maintenance.
So our purpose is to provide ease to daily routine operations and management.
1.1.3 Scope
In this system we maintain all the information of GHC Management System e.g. Employee
information, client information, Pots and Plants detail. This system also deals with order, receipt
and payment management system received payment from client and paid pay to supplier and
employee. This system also deals with Product information. Add Plant, update Plant, search
Plant, reports generate. It also deals with administration management which includes user
registration, add user/employee, update employee.
Description
Green House City Management System
Rational Unified Process
Database
Structured Query Language
5
C#
GUI
UI
C Sharp
Graphical User Interface
User Interface
1.1.5 References
Web Sites
www.functionx.com/csharp
www.programmersheaven.com
www.Rational.org
1.1.6 Books
Applying UML and Patterns 2nd Edition Craig Larman
Programming in C# The Black Book
How to Program C# by Dietel and Dietel
1.1.7 Overview
This document contains the requirements of Green House City to automate their system, all the
requirements are firstly gather from Green House City and then functionalities of system are
concluded. The requirements are also gathered from Miss Rabia Bashir (Lecturer at FUUAST).
This document is written by following the standards of RUP
1.1.8 Positioning
1.1.8.1 Problem Statement
The problem of
Affects
The impact of which is
Administrator, User
The currently system is too much time consuming,
erroneous and hectic job for the stakeholders.
A successful solution would Proposed system is error free and contains complete
be
information about each and every user, clients,
employee, Plants, Pots, suppliers, payments and order.
Represents
Role
After deployment of the
system he will use it to enter
data of the client and employee
and generate general reports
etc.
After deployment of the
system he will use it to view
data and maintain the System
of client, supplier, Plants, Pots
orders, etc.
After deployment of system
he/she will only get the
benefits from it as they will get
the
required
reports
in
minimum time period and with
maximum accuracy.
Description
User
Administrator
Representative
Description
Type
Not Defined
Primary
User is the graduated person with the experience of operating in
different organization.
Responsibilities
The main responsibility of this stakeholder is to manage all the
records of the client, suppliers, Plants, Pots, payment, orders and
employee information. His main interest is that their erroneous
system will be replaced by an efficient Green House City
Management System.
Success Criteria
This stakeholder will define the success if his/her manual based
system is totally computerized and user friendly so that he/she
feels comfort and joy to perform their job.
Involvement
The user is the stakeholder who is deeply involved in the project
by describing the manual procedure to our development team.
Deliverables
As such he doesnt provide any project deliverables but to get the
key information for system he plays the main role. By directly
involved in the system.
Comments
/ Making him speaks more so that maximum information can be
Issues
gathered from it which is required in the future for getting required
output.
Administrator
Representative
Description
Type
Responsibilities
Success Criteria
Involvement
Not Defined
Primary
Administrator is the Person who will help us in developing our
required project.
The main responsibility of this stakeholder is that he only have to
authenticate and generate final transcript of each user, he can also
see the overall report of the clients, payments, suppliers,
employees and orders. His main interest is that their erroneous
system will be replaced by an efficient Green House City
Management System.
The Administrator is the stakeholder who will define the success if
he will totally satisfy with the system.
This system administrator is the stakeholder who is deeply
involved in the project by describing the manual admission
procedure and helping us in contacting different employee to
gather requirements to our development team.
8
Deliverables
Comments
Issues
As such he doesnt provide any project artifact but to get the key
information for system, to get help and approval he plays the main
role.
/ Continuous meeting with him will definitely assist and support us
in properly developing and deploying our system.
1.1.10
Product Overview
Product Perspective
Green House City Management System is a management system that will be used to get the
information and maintain the all the record of employee, Client, order details, pots and Plants
details etc. The system will maintain all the records and records can be searched, updated when it
is needed.
1.1.10.1
1.1.10.2
Summary of Capabilities
held responsible for the facing legal operations. The development team will not responsible for
the maintenance and service of the system after two weeks of deployment.
1.1.13
High
User can easily enter the system by entering login name and password into the
system.
PF-2. Change Password
High
User can change the password if he thinks that the present password is not safe or
secure.
PF-3. Add User
High
Administrators have the exclusive rights to add users by allocating a Login ID and user
name along with users choice of password and storing respective password details in the
system.
PF-4.
Search User
High
An Administrators can easily search a respective users record by entering Login ID.
PF-5.
Activate User
Low
Deactivate User
Low
Update User
Low
High
Administrator/User can add new Employee, his/her information includes his /her
name, contact number, permanent address, CNIC number & Employee salary.
PF-9. Update Employee
High
High
The employee record can be searched by name and ID to check his/her status.
PF-11. Add New Client
High
User and Administrator enters the name, address and cell number, the client id
will be generated automatically and allocated to that client.
PF-12. Search Client Record
High
User and administrator can search the old client records by entering the client id
or name.
PF-13.
High
The Client record can be easily updated by entering the Client id and Client name
PF-14 Add Supplier
High
Users enters the supplier information such as name, Plants or Pots supplied,
Quantity, prices, Supplied date and contact information, id will be generated
automatically and allocated to that client
PF-15 Search Supplier
High
Low
User can modify the supplier information such as name, Plants or pots supplied,
Quantity, prices, Supplied date and contact information, by entering the supplier
id or name.
PF-17 Add Plant
High
User enters the details of the Plant like Plant id, Plant name, quantity and price.
PF-18
Search Plant
High
User can easily search the details of the Plant by entering Plant id or name.
PF-19
Update Plant
High
User can easily modify the details of the Plant by entering Plant id or name.
PF-20 Activate Plant
PF-21
High
Administrator can easily activate the details of the plant by entering Plant id
Or name.
Deactivate Plant
Low
11
Administrator can easily activate the details of the plant by entering Plant id
Or name.
PF-22
Add pot
High
User enters the details of the flowerpots like pot id, pot name, pot quantity, pot
size and pot price.
PF-23
Update pot
High
User can easily modify the details of the Flowerpots by entering pot id or pot
name.
PF-24
Search pot
High
User can easily search the details of the Flowerpot by entering pot id or name.
PF-25
Low
Add Order
High
User enters the details of the order like order id, order date
PF-27
Search Order
High
User can easily search the details of the order by entering order id.
PF-28
Update Order
High
If any change is required in order then user can easily modify the order by
entering order id.
PF-29
Cancel Order
Low
Administrator can easily cancel the order if it is not required by entering the order
id.
PF-30 Generate Receipt
High
User enters the receipt id, receipt date, details of the order like Client name,
Product name, Product quantity etc.
PF-31 Search Receipt
High
User can easily search the details of receipt by entering the receipt id or receipt
date...
12
High
User enters the details of client payment like client payment id, total payment,
received payment, remaining payment, received date, client info etc.
PF-33 Search Payment
High
User can easily search the details of client payment by entering the client payment
id.
PF-34
Update Payment
High
If any change is required in payment then user can easily modify the client
payment by entering received payment id.
1.1.14Constraints
We must be very familiar with the Rational Unified Process in order for the completion of design
process of the system and must be familiar with the C# (C-Sharp) and SQL Server 2008 for the
implementation process of the system.
1.1.15Quality Ranges
Robustness -- Our system will generate appropriate exceptions if there is a failure during
execution.
Correctness -- Our system will meet the specified requirements.
Reliability -- The responses to queries shall take no longer than 5 to 8 second to load onto the
screen after the user submits the query.
The System shall display confirmation messages to user within 5 to 8 second after the user
submits information to the system.
The system will be totally reliable because it will provide the necessary information about all the
matters which are concerned in the Green House City Management System
Performance -- The GHCMS has a simple GUI, so that the user of the system will not have any
problem in handing the system. The document generated by the system will not take more than 5
to 8 second.
Usability -- The required training time for normal users will not be more than one week. The
CDs, Manuals and all the helping materials are given to the client so that maximum
understanding of the system can be taken from this system.
1.1.16
1.1.16.1
System Requirements
Platform
The system must use windows platform.
C# (C Sharp)
C# is used to develop the business logic which is a collection of many APIs present in Visual
Studio. C# (C Sharp) components that will save, load, and update reports to the database are also
13
used.
Printer
Printer is used by the admission office to print the required list and reports.
Scanner
Scanner is used for scanning documents or snaps of the customer.
System requirements
A PC with minimum requirements
1.8 GHz
1 GB RAM (Recommended)
40 GB HD
14
2. Elaboration
15
System
Version 2.1
Prepared by: Azra Yaqoob
Revised by: Muhammad Haris Zahoor, Anam Saghir
2015, November 22nd
Revision History
Date
28-October-2015
Version
1.1
15-November-2015
1.2
20-November-2015
22-November-2015
2.0
2.1
Description
Modification
of
attributes
Modification
of
attributes
Change format, layout
Modification
of
16
Prepared by
Anam Saghir
Muhammad Haris Zahoor
Azra Yaqoob
Azra Yaqoob
attributes, alignment
2.1.2 Purpose
The objective of this software is to minimize the problems that Green House City currently faces
regarding their current system. The current system of the Green House City is manual and paper
based which has many problems and ambiguities like clients data records and their proper
maintenance.
Following are the some common problems with current systems.
17
There is no proper record for employees details, clients details, purchase details, sale
details, stock details, payment details, supply details and Plant details.
Time consuming.
All information is not placed in centralized system.
Lot of paper work.
Slow data processing.
Not user-friendly environment.
Difficult to find records due to file management system.
So, our purpose is to provide a well-managed and maintained software system which provides
the relief to the management of Green House City, as they are interested to get accurate and fast
results from this software.
2.1.3 Scope
Supported by a well-designed database, all available employees details, clients details, purchase
details, sale details, stock details, payment details, supply details and Plant details is integrated
together and can be accessed easily through a single point. This software provides options for
viewing different details regarding GHCMS.
The database is completely efficient and balanced in its design, which allows us to store all
information about employees details, clients details, purchase details, sale details, stock details,
payment details, supply details and Plant details. Users can very easily navigate their way
through the system allowing maximum output and controlled access.
References
Websites
www.functionx.com/csharp
www.programmersheaven.com
www.Rational.org
18
2.1.5 Overview
This part of the document contains all the requirements of the GHCMS. The functionalities of
the software included in this document after a detailed meeting with the honors of the Green
House City and the present staff in this organization. All the requirements are gathered in that
meeting just like the guarantee system will manage all the employees details, clients details,
purchase details, sale details, stock details, payment details, supply details and Plant details.
User Login
SRS-01.
The system operates on Administrator mode and User mode. Entering login ID,
password and selecting the appropriate type of user allows for easy login to the system.
User cannot go in the next window until it provides the correct information regarding to the login
like password mismatching, an error message will be displayed by entering wrong information.
Change Password
SRS-02.
password.
2.1.6.2
Easy to change password by providing the login ID, old password and new
User Management
Add User
SRS-03.
Administrators have the exclusive rights to add Users by allocating a Login ID
and along with Users choice password and store respective password details in the system.
Activate/Deactivate User
SRS-04.
Search User
SRS-05.
Administrators can easily search a respective users record by entering Login ID
Administrator can also view list of all user and view the detailed information.
Update User
SRS-06.
Add Employee
SRS-07.
Administrator can only add new Employee, his/her information includes his /her
name, contact number, address, employee category, CNIC number , Employee salary, joining
date, date of birth and employee.
A special Employee ID is generated for every employee whose record is stored in the DB.
Update Employee
SRS-08.
Administrator can only update existing Employee; his/her information includes
his /her name, contact number, permanent address, CNIC number & Employee salary.
Search Employee
SRS-09.
SRS-10.
Activate/Deactivate Employee
20
SRS-14.
User can also Search employee and view the detailed information by entering the
type of client.
Update Client
SRS-15.
The Client record can be easily updated by entering the Client id.
2.1.6.5 . Supplier Record
Add Supplier
SRS-16.
Users enters the supplier information such as name, Plants supplied, Quantity of
Plant, Plant prices, Supplied date and contact information, id will be generated automatically and
allocated to that client.
Search Supplier
SRS-17.
User/Administrator can search the supplier records by entering the supplier id or
name.
Update Supplier
SRS-18.
User can modify the supplier information such as name, Plants supplied, Quantity
of Plant, Plant prices, supplied date and contact information, by entering the supplier id or name.
2.1.6.6 Plants details
Add Plant
SRS-19.
User enters the details of the Plant like Plant id, Plant name, Plant quantity and
Plant price, plant type.
Search Plant
SRS-20.
User can easily search the details of the Plant by Plant Category.
SRS-21.
User can also search plant by entering the type of plant.
Update Plant
SRS-22.
User can easily modify the details of the Plant by entering Plant id or name.
Activate/Deactivate Plant
SRS-23.Administrator can easily activate or deactivate the details of the Plant by entering
plant id or name.
21
2.1.6.7
Flowerpot details
Add pot
SRS-24.
User enters the details of the flowerpots like pot id, pot name, pot quantity, pot size
and pot price.
Search pot
SRS-25.
User can easily search the details of the pot by entering pot category.
SRS-26.
User can also search pots by defining the type of pot like small medium or large.
Update pot
SRS-27.
User can easily modify the details of the Flowerpots by entering pot id or pot name.
Activate/Deactivate pot
SRS-28.
Administrator can easily Activate/Deactivate the details of the flowerpot by
entering pot id
or name.
2.1.6.8 Order details
Add Order
SRS-29.
User enters the details of the order like order id, order date.
Search Order
SRS-30.
User can easily search the details of the order by entering order id.
Update Order
SRS-31.
If any change is required in order then user can easily modify the order by entering
order id.
Cancel Order
SRS-32.
Administrator can easily cancel the order if it is required by entering the order id.
2.1.6.9 Receipt Generation
Generate Receipt
SRS-33.
User enters the receipt id, receipt date, details of the order like Client name, Plant
name, Plant quantity etc.
Search Receipt
SRS-34. User can easily search the details of receipt by entering the receipt id or receipt date.
22
2.1.6.10
Payment Detail
Add Payment
SRS-35.
User enters the details of supplier payment like Supplier payment id, total
payment, Paid payment, remaining Paid payment, paid date, paid person like employee, supplier
etc.
Search Payment
SRS-36.
User can easily search the details of Paid payment by entering the supplier payment
id.
Update Payment
SRS-37.
If any change is required in supplier payment then user can easily modify the
payment by entering supplier payment id.
2.1.7.2 Performance
PE 1.
speed.
PE 2.
the user.
PE 3.
seconds.
Reponses time will be quick between 4-8 seconds for DB queries submitted by
Reports, lists, and results generated by DB will also be displayed within 10
PE 4.
Any notifications, confirmation messages or error messages will be displayed in
clear, polite and error-free manner, usually within 3-6 seconds time limit.
PE 5.
Memory:
Processor:
512MB RAM
2.0 GHz or up
23
Disk Space:
15 GB
24
For
Management System
25
Version 1.0
Prepared by: Muhammad Haris Zahoor
Revised by: Azra Yaqoob, Anam Saghir
Date: 13/12/2015
Version
1.0
Description
Initial Use
Diagram
26
Prepared by
case Muhammad Haris Zahoor
27
28
29
30
Version
Description
Prepared by
Dec15, 2015
1.0
31
Use Case Description: This use case describes that how a user logs into the system.
Primary Actor: <Administrator>, < Operator>
Stake Holder & Interests: Administrator, Operator Wants to successfully log into the system.
Pre-Condition: System should be in running State.
Account ID and password must be present.
Main Success Scenario:
User Action
System Response
1 User enters Account ID and password.
2- System verifies the information and a
confirmation message will be displayed
to user.
3- System loads the default configuration
settings for current user.
Alternative Flows / Extension Points:
1a. User leaves blank ID and Password.
System should generate error message, and prompts to enter password and account ID.
Post Condition: A successful login confirmation is displayed.
The main screen of system will displayed to user.
Priority: High.
Frequency in Use: Most frequent in use
Cross Reference: SRS-01
Use Case Description: This use case describes that how a user can changes his/her password in
system.
Primary Actor:
<Administrator>, <Operator>
Stake Holder & Interests: Administrator, Operator Wants to successfully change password
and update account information.
Pre-Condition: System should be logged in by authenticated user.
Old and new password must be present.
Main Success scenario:
User actions
System Response
1 User enters old password, new password
- and again new password to confirm.
2 The system verifies the password and
account is updated.
3-
33
Use Case Description: This Use Case describes that how a user can Add Operator.
Primary Actor :< Administrator>
Stake Holder & Interests: Administrator wants to successfully add new operator.
Pre-Condition: User must be authenticated to the system.
Main Success scenario:
User actions
System Response
1 User must be authenticated to the system.
2 User enters his/her name, father name,
CNIC number etc. information.
3- Information is being updated.
4- Confirmation message is been shown to
the user.
Alternative Flows / Extension Points:
2a. User enters his/her wrong name.
User must enter his correct name Information
2b. If User enters wrong father name Information
User must enters the correct father name information
2c. If user enters wrong CNIC number Information
User must enter correct CNIC number
2d. If User left the blank field
User must enter the required Information.
Post condition: Add User is successfully changed in the system.
Users account information is updated.
Priority: High.
Frequency in use: Less frequent.
Cross Reference: SRS-03
Use Case Description: This use case describes that how an operators account is
Activated/Deactivated from the system.
Primary Actor: <Administrator>
Stakeholders & Interests: Administrator Wants to successfully Activate/Deactivate an
operator from the system.
Pre-Condition: System should be logged in by authenticated user.
Operators account must exist.
Main Success Scenario:
User Actions
System Response
1 Administrator requests to
- Activate/Deactivate an operators
account/record.
2 System verifies the request and the
- account is Activate/Deactivate d from
the system.
3 A confirmation message is displayed to
- the user.
Alternative Flows / Extension Points:
1a. Administrator wishes to only deactivate account.
System verifies and deactivates operators account until modified by administrator.
1b. Administrator cancels the deletion process.
System reverts back the deletion process and control returns
Post Condition: A confirmation message is displayed to the user.
Priority: Low
Frequent in Use: Less frequent.
Cross Reference: SRS-04
35
Use Case Description: This use case describes how to operator record is retrieved from the
system.
Primary Actors :< Administrator>, <Operator>
Stakeholders & Interests: Administrator, Operator Wants to successfully search operator
information from the system.
Pre-Condition: System should be logged in by authenticated user.
At least 1 user information must be available.
Main Success Scenario:
User Actions
System Response
1User enters the operator
information.
2- System verifies and displays the search
status.
Alternative Flows / Extension Points:
1a. User enters invalid information of operator.
System generates appropriate error messages indicating user to re-enter the information.
1b. User leaves the field blank.
System generates an error message indicating user to re-enter information.
Post-Condition: Search Information is successfully changed in the system.
Priority: High
Frequency in use: Most frequently in use.
Cross reference: SRS-05
36
Use Case Description: This use case describes how to update operator record from the system.
Primary Actors :< Administrator>, <Operator>
Stakeholders & Interests: Administrator, Operator Wants to successfully update operator
information from the system.
Pre-Condition: System should be logged in by authenticated user.
User information must be available to update.
Main Success Scenario:
User Actions
System Response
1User search the user information
Required information will be displayed.
for updation.
User enters the operator
2- System verifies and displays the
information
updated status.
Alternative Flows / Extension Points:
1a. User enters invalid information of operator.
System generates appropriate error messages indicating user to re-enter the information.
1b. User leaves the field blank.
System generates an error message indicating user to re-enter information.
Post-Condition: Updated Information is successfully stored in the system.
Priority: High
Frequency in use: Less frequent.
Cross reference: SRS-06
37
Use Case Description: This use case describes that how a user can add new employee.
Primary Actor: <Administrator>, < Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully add a new employee
into the system.
Pre-Condition: System should be logged in by authenticated user.
Main Success Scenario:
1
-
User Actions
user enter his\her name, contact number,
Address, CNIC number, employee
category, joining date, date of birth,
employee Salary & employee picture.
System Response
2
-
3
-
39
Use Case Description: This use case describes that how an Employee information is Updated in
the system.
Primary Actor: Administrator, Operator
Stakeholders & Interests: Administrator/Operator Wants to successfully update a employee
record.
Pre-Condition: System should be logged in by authenticated user.
Staff record must exists.
Main Success Scenario:
User Actions
System Response
1
3
Use Case Description: This use case describes how a Employee record is retrieved from the
system.
Primary Actors:
<Administrator>, <operator>
User Actions
User enters employee Id ,name,
date of birth and employee
category to search employee record
System Response
2-
Use Case Description: This use case describes how a Employee record is retrieved from the
system.
Primary Actors:
<Administrator>, <operator>
User Actions
User enters Category of employee
like
Administrator, operator, driver or
Gardner.
System Response
2-
Use Case Description: This use case describes that how an employees account is
Activated/Deactivated from the system.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator, Operator Wants to successfully Activate/Deactivate
an employee from the system.
Pre-Condition: System should be logged in by authenticated user.
Employees account must exist.
Main Success Scenario:
User Actions
System Response
1 Administrator, operator requests to
- Activate/Deactivate an employees
account/record.
2 System verifies the request and the
- employee is Activate/Deactivate d
from the system.
3 A confirmation message is displayed to
- the user.
Alternative Flows / Extension Points:
1a. Administrator, operator wishes to only deactivate account.
System verifies and deactivates employee account until modified by administrator.
1b. Administrator, Operator cancels the deletion process.
System reverts back the deletion process and control returns
Post Condition: A confirmation message is displayed to the user.
Priority: Low
Frequent in use: Less frequent.
Cross Reference: SRS-11
43
Use Case Description: This use case describes that how a user can add new Client.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully add a new Client
into the system.
Pre-Condition: System should be logged in by authenticated user.
Main Success Scenario:
User Actions
1 User enters his/her name, ID, contact
number, address.
System Response
2
3
-
44
Use Case Description: This use case describes how Client record is retrieved from the system.
Primary Actors:
45
Use Case Description: This use case describes how Client record is retrieved from the system.
Primary Actors:
46
Use Case Description: This use case describes that how a Client information is updated in the
system.
Primary Actor: <Administrator>, < Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully update a Client
record.
Pre-Condition: System should be logged in by authenticated user.
Client record must exists.
Main Success Scenario:
User Actions
System Response
1 User search the client information for
2 Required information will be
- updation.
displayed.
User enters his/her name, id.
2 System verifies the information and
- successfully updated.
3 A confirmation message is displayed to
- the user.
Alternative Flows / Extension Points:
1a. User enters any invalid updated information.
System generates appropriate error messages indicating user to re-enter information in
valid format.
1b. User leaves the any required information field blank.
System generates an error message indicating user to re-enter information.
Post Condition: A confirmation message is displayed to the user.
System prompts user if any more updates are to be performed.
Priority: High
Frequent in use: Less frequent.
Cross Reference: SRS-15
47
Use Case Description: This use case describes that how a user can add new Supplier.
Primary Actor: <Administrator>,< Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully add a new Supplier
into the system.
Pre-Condition: System should be logged in by authenticated user.
Main Success Scenario:
User Actions
System Response
1 Users enters the supplier information
- such as name, Plants supplied, Quantity
of Plant, Plant prices, Supplied date and
contact information, id information.
2 Supplier information is being updated.
3 Confirmation message is been shown to
- the user.
Alternative Flows / Extension Points:
1a. If User enters wrong Name Information.
User must enter correct name Information.
1b. If User enters wrong Contact Information
User must enter correct contact Information
1c. If User enters wrong Plant Supplied Information.
User must enter correct plant supplied Information.
1d. If User enters wrong Quantity of Plants Information.
User must enter correct quantity of plants Information.
1e. If User enters wrong Plant Prices Information.
User must enter correct plant prices Information
1f. If User enters wrong Supplied Date Information.
User must enter correct supplied date Information
1g. If User enters wrong Id Information.
User must enter correct id Information
49
Use Case Description: This use case describes how Supplier record is retrieved from the system.
Primary Actors:
<Administrator>, <operator>
Use Case Description: This use case describes that how a Supplier information is
updated in the system.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully update a Supplier
record.
Pre-Condition: System should be logged in by authenticated user.
Supplier record must exists.
Main Success Scenario:
User Actions
System Response
1
2
3
-
4
-
Use Case Description: This use case describes that how a user can add new plant.
Primary Actor :< Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully add a new Plant into
the system.
Pre-Condition: System should be logged in by authenticated user.
Main Success Scenario:
User Actions
1 User enters the details of the Plant like
- Plant id, Plant name, Plant quantity and
plant price, plant type.
System Response
2
3
-
Use Case Description: This use case describes how Plant record is retrieved from the system.
Primary Actors:
<Administrator>, <operator>
Use Case Description: This use case describes how Plant record is retrieved from the system.
Primary Actors:
<Administrator>, <operator>
Use Case Description: This use case describes that how a Plant information is updated in the
system.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully update a Plant
record.
Pre-Condition: System should be logged in by authenticated user.
Plant record must exists.
Main Success Scenario:
User Actions
1 User search the plants information to
- update.
3
System Response
Required information will be
displayed.
4
5
-
Use Case Description: This use case describes that how a plant's Activate/Deactivate d from the
system.
Primary Actor: <Administrator>
Stakeholders & Interests: Administrator Wants to successfully Activate/Deactivate a Plant
from the system.
Pre-Condition: System should be logged in by authenticated user.
Plant must be exist.
Main Success Scenario:
User Actions
System Response
1 Administrator requests to
- Activate/Deactivate a Plant by entering
plant id or plant name.
2 System verifies the request and the
- Plant is Activate/Deactivate d from the
system.
3 A confirmation message is displayed to
- the user.
Alternative Flows / Extension Points:
1a. User enters wrong Name Information.
User must enter correct name Information.
1b. If User enters wrong Id Information
User must enter correct plant Id Information
1c. If User left the blank field
User must enter the required Information.
Post Condition: A confirmation message is displayed to the user.
Priority: Low
Frequent in use: Less frequent.
Cross Reference: SRS-23
Use Case ID: UC-24
Use Case Name: Add pot
Use Case Created On: 5th Dec, 2015.
Use Case Description: This use case describes that how a user can add new pot details.
Primary Actor :< Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully add a new Pot into
the system.
Pre-Condition: System should be logged in by authenticated user.
Main Success Scenario:
User Actions
1 User enters the details of the Pot like Pot
- id, Pot name, Pot quantity, pot price and
pot type.
System Response
2
3
-
Use Case Description: This use case describes how Pot record is retrieved from the system.
Primary Actors:
<Administrator>, <operator>
Use Case Description: This use case describes how Pot record is retrieved from the system.
Primary Actors:
<Administrator>, <operator>
Use Case Description: This use case describes that how a Pot information is updated in the
system.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully update a Pot record.
Pre-Condition: System should be logged in by authenticated user.
Pot record must exists.
Main Success Scenario:
User Actions
1 User search the pot information for
- updation.
3
System Response
Required information will be
displayed.
4
5
-
Use Case Description: This use case describes that how a pot is Activate/Deactivate d from the
system.
Primary Actor: <Administrator>
Stakeholders & Interests: Administrator Wants to successfully Activate/Deactivate a Pot
record from the system.
Pre-Condition: System should be logged in by authenticated user.
Pot must be exist.
Main Success Scenario:
User Actions
System Response
1 Administrator requests to
- Activate/Deactivate a Pot by entering
pot id.
2 System verifies the request and the Pot
- will be Activate/Deactivate from the
system.
3 A confirmation message is displayed to
- the user.
Alternative Flows / Extension Points:
1a. User enters wrong Name Information.
User must enter correct name Information.
1b. If User enters wrong Id Information
User must enter correct pot Id Information
1c. If User left the blank field
User must enter the required Information.
Post Condition: A confirmation message is displayed to the user.
Priority: Low
Frequent in use: Less frequent.
Cross Reference: SRS-28
61
Use Case Description: This use case describes that how a user can add Order.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully add a Order into the
system.
Pre-Condition: System should be logged in by authenticated user.
Main Success Scenario:
User Actions
1- User enters the details of the order like
order id, order date.
System Response
2- Order information order id, order date
are being updated.
3- Confirmation message is been shown to
the user.
Use Case Description: This use case describes that how Order record is retrieved from the
system.
Primary Actors:
<Administrator>, <operator>
Use Case Description: This use case describes that how a Plants information is updated in the
system.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully update an Order
record.
Pre-Condition: System should be logged in by authenticated user.
Order record must exists.
Main Success Scenario:
User Actions
System Response
1- User search the user information for
2 Required information will be
updation.
displayed.
3
Use Case Description: This use case describes that how an operators account will
Activate/Deactivate from the system.
Primary Actor: <Administrator>
Stakeholders & Interests: Administrator Wants to successfully Cancel Order from the system.
Pre-Condition: System should be logged in by authenticated user.
Order must be exist.
Main Success Scenario:
User Actions
1- Administrator requests to Cancel Order
by entering Order ID
System Response
2- System verifies the request and the
Cancel Order from the system.
3- A confirmation message is displayed to
the user.
65
Use Case Description: This use case describes that how a user can add Generate Receipt
Pre-Condition:
Main Success Scenario:
User Actions
1- User enters the receipt id, receipt date,
details of the order like Client name,
plant name, plant quantity etc.
System Response
66
Use Case Description: This use case describes how Order record is retrieved from the system.
Primary Actors:
<Administrator>, <operator>
Use Case Description: This use case describes that how a user can Add Supplier Payment.
Primary Actor: <Administrator>, < Operator>
Stakeholders & Interests:
Pre-Condition:
System should be logged in by authenticated user.
Main Success Scenario:
User Actions
System Response
1- User enters the details of Supplier
payment like Supplier payment id, total
payment, Paid payment, remaining Paid
payment, paid date, paid person like
employee, supplier etc.
2- Supplier payment like Supplier
payment id, total payment, Paid
payment, remaining Paid payment, paid
date, paid person like employee,
supplier are being updated.
3- Confirmation message is been shown to
the user.
Alternative Flows / Extension Points:
1a. User enters invalid information of Paid Payment.
System generates appropriate error messages indicating user to re-enter the information.
1b. User leaves the field blank.
System generates an error message indicating user to re-enter information.
Post Condition: Paid payment is successfully changed in the system.
Priority: High
Frequent in Use: Less frequent.
Cross Reference: SRS-35
Use Case ID: UC-36
Use Case Name: Search Payment
Use Case created By: Anam Saghir
68
Use Case Description: This use case describes how Supplier Payment record is retrieved from
the system.
Primary Actors:
<Administrator>, <operator>
Stakeholders & Interests: Administrator/operator Wants to successfully search Supplier
Payment record from the system.
Pre-Condition: System should be logged in by authenticated user.
At least 1 Supplier Payment information must be available.
Main Success Scenario:
User Actions
1User enters the Supplier Payment
ID or supplier payment date.
System Response
2-
69
Use Case Description: This use case describes that how a Supplier Payment information is
updated in the system.
Primary Actor: <Administrator>, <Operator>
Stakeholders & Interests: Administrator/Operator Wants to successfully update Supplier
Payment record.
Pre-Condition: System should be logged in by authenticated user.
Supplier Payment record must exists.
Main Success Scenario:
User Actions
System Response
1- User search the supplier information for 2 Required information will be
updation.
displayed.
3
Management System
Prepared by: Muhammad Haris
Zahoor
Revised by: Azra Yaqoob ,Anam
Saghir
December 10th, 2015
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Normalization
For
Green House City
Management System
Prepared by: Muhammad Haris Zahoor
Revised By: Azra Yaqoob, Anam Saghir
December 10th, 2015
2.6 Normalization
NORMALIZED TABLES UPTO 3NF
ADDEMPLOYEE :
em
p_i
d
emp_na
me
emp_ emp_
addre phone
ss
emp
_gen
der
emp_c emp_D.O
ategory .B
94
emp_ emp_sal
D.O. ary
B
Emp_st
atus
user_id
Operator :
op_id
op _name
op_availibility op _status
op _password
user_id
Plants:
pl_id
pl _name
pl
_season
pl _type
pl_status
pl
_category
pl
_price
pl
_quantity
user_id
Pot Table :
Pt_id
Pt_status
Pt_name
user_id
Potquantity:
Pts_id
Pts_size
Pts_price
Pts_quantity
user_id
Client:
cl_id
Supplier :
sup_id
cl _name
sup_name
cl _type
cl _address
sup_address
SupplierProduct:
sup_id sup_product_id sup_quantity sup_date
Order:
order_id
order_date
Orderdetail:
order_id order_product_id
client_id
order_quantity
cl _phone
sup_phone
user_id
user_id
user_id
order_quantity_
per_price
95
order_quantity_total_price
user_id
SupplierPayment:
spmt_i
d
spmt_dat spmt_totala
e
mount
spmt_
dueamount
spmt_totalpai spmt_
damount
duedate
sup_id
cpmt_
dueamount
cpmt_totalpai cpmt_
damount
duedate
ord_id
user_id
ClientPayment:
cpmt_i cpmt_dat cpmt_totala
d
e
mount
cp_id
cl_id
order_id
user_id
user_id
Domain Model
96
For
Green House City
Management System
Prepared by: Muhammad Haris
Zahoor
Revised By: Azra Yaqoob, Anam
Saghir
December 10th, 2015
97
98
Attribute
Table ID
Primary
2emp_id
Normal Attribute
emp_name
emp_address
emp_phoneno
Table
Name OPERATOR
Attribute
Primary
Foreign Key
Normal
Attribute
emp_gender
op_id
user_id
op_name
emp_DOB
op_status
emp_category
op_password
emp_DOB
user_availibility
Table ID
3
emp_salary
emp_status
Attribute
Primary
Foreign Key
Normal Attribute
Table Name Plants
pl_id
user_id
pl_name
pl_season
pl_type
pl_category
pl_price
pl_quantity
pl_status
Attribute
Primary
pt_id
Table ID
Table Name
PotsQuantity
Foreign Key
user_id
Foreign Key
user_id
Normal Attribute
pt_size
pt_price
pt_quantity
pt_status
99
Attribute
Primary
pt_id
Table ID
Table Name
Client
Attribute
Primary
cl_id
cl_type
cl_address
cl_phone
Foreign Key
user_id
Normal Attribute
pt_name
Foreign Key
user_id
Normal Attribute
cl_name
Table ID
Table Name
Supplier
Attribute
Primary
sup_id
Foreign Key
user_id
Table ID
Table Name
SupplierProduct
Normal Attribute
sup_name
sup_address
sup_phone
100
Attribute
Primary
sup_id
Table ID
Table Name
Order
Attribute
Primary
order_id
Table ID
10
Table Name
OrderDetail
Attribute
Primary
order_id
Foreign Key
user_id
Normal Attribute
sup_quantity
sup_date
sup_product_id
sup_total_price
sup_per_price
Foreign Key
user_id
client_id
Normal Attribute
order_date
Foreign Key
user_id
Normal Attribute
order_product_id
order_quantity_total_price
order_quantity
order_quantity_per_price
101
Table ID
11
Table Name
SupplierPayment
Attribute
Primary
spmt_id
Foreign Key
suup_id
user_id
Normal Attribute
spmt_totalamount
spmt_dueamount
spmt_paidamount
spmt_duedate
spmt_paydate
supplydate
102
Table ID
12
Table Name
Receipt Table
Attribute
Primary
rec_id
Table ID
13
Table Name
ClientPayment
Attribute
Primary
cpmt_id
Foreign Key
cl_id
user_id
pl_id
ordr_id
Normal Attribute
date
Foreign Key
oord_id
user_id
Normal Attribute
cpmt_totalamount
cpmt_dueamount
cpmt_paidamount
cpmt_duedate
cpmt_paydate
103
3. CONSTRUCTION
104
Class Diagram
For
Green House City
Management System
Prepared by: Muhammad Haris
Zahoor
Revised By: Azra Yaqoob, Anam
Saghir
January 5th, 2016
105
106
107
if (password1 == "")
{
MessageBox.Show("Password field is empty so Add Opeartor cannot perform...");
return 0;
}
else if (password1 == "" && id == "")
{
MessageBox.Show("All fields are empty so Opeator data cannot be inserted...");
return 0;
}
else if (id == "")
{
MessageBox.Show("Please first select the id option then data will be inserted...");
return 0;
}
else if (currentstatus == "")
{
MessageBox.Show("Your current status field is empty please select the desire
option..");
return 0;
}
}
108
");
return 0;
}
else if (confirmpassword1 == "")
{
MessageBox.Show("Your confirm password field is empty please enter the desire
information... ");
return 0;
}
else if (password != confirmpassword1)
{
MessageBox.Show("Your Password and Confirmation password are mismatch please
enter the desire information...");
return 0;
}
return obj1.changepassworddatabase(id,password);
return obj1.searchdatabase(id);
}
return obj1.deleteoperatordatabase(id);
109
//its id authentication...
else if (id == "")
{
MessageBox.Show("Your Id field is empty.So login cannot possible.");
}
110
if (id == "" && name == "" && gender == "" && address == "" && contactno == "" &&
cnic == "" && salary == "" && category == "")
{
MessageBox.Show("All compulsory field all empty so data cannot be inserted...");
return 0;
}
111
else if (id == "" && gender == "" && address == "" && contactno == "" && cnic == ""
&& salary == "" && category == "")
{
MessageBox.Show("All compulsory field
id,gender,address,contactno,cnic,salary,category are empty so data cannot be inserted...");
return 0;
}
else if (id == "" && name == "" && address == "" && contactno == "" && cnic == "" &&
salary == "" && category == "")
{
MessageBox.Show("All compulsory field
id,name,address,contactno,cnic,salary,category are empty so data cannot be inserted...");
return 0;
}
////when address is enter...ohter filed is not enter....
else if (id == "" && name == "" && gender == "" && contactno == "" && cnic == "" &&
salary == "" && category == "")
{
MessageBox.Show("All compulsory field id,name,gender,contactno,cnic,salary,category
are empty so data cannot be inserted...");
return 0;
}
///when contact field is enter other is not...
else if (id == "" && name == "" && address == "" && gender == "" && cnic == "" &&
salary == "" && category == "")
{
MessageBox.Show("All compulsory field id,name,address,gender,cnic,salary,category
are empty so data cannot be inserted...");
return 0;
}
///when cnic field is enter and other is not...
else if (id == "" && name == "" && address == "" && gender == "" && contactno == ""
&& salary == "" && category == "")
{
MessageBox.Show("All compulsory field
id,name,address,gender,contact,salary,category are empty so data cannot be inserted...");
return 0;
}
///when employee category filed is empty...
else if (id == "" && name == "" && address == "" && gender == "" && contactno == ""
&& salary == "" && cnic == "")
{
MessageBox.Show("All compulsory field id,name,address,gender,contact,salary,cnic are
empty so data cannot be inserted...");
return 0;
}
else if (name == "" && gender == "" && address == "" && contactno == "" && cnic ==
"" && salary == "" && category == "")
{
MessageBox.Show("All compulsory field
name,gender,address,contactno,cnic,salary,category are empty so data cannot be inserted...");
112
return 0;
}
else if (gender == "" && address == "" && contactno == "" && cnic == "" && salary ==
"" && category == "")
{
MessageBox.Show("All compulsory field gender,address,contactno,cnic,salary,category
are empty so data cannot be inserted...");
return 0;
}
else if (address == "" && contactno == "" && cnic == "" && salary == "" && category
== "")
{
MessageBox.Show("All compulsory field address,contactno,cnic,salary,category are
empty so data cannot be inserted...");
return 0;
}
else if (contactno == "" && cnic == "" && salary == "" && category == "")
{
MessageBox.Show("All compulsory field contactno,cnic,salary,category are empty so
data cannot be inserted...");
return 0;
}
else if (cnic == "" && salary == "" && category == "")
{
MessageBox.Show("All compulsory field cnic,salary,category are empty so data cannot
be inserted...");
return 0;
}
else if (salary == "" && category == "")
{
MessageBox.Show("All compulsory field salary,category are empty so data cannot be
inserted...");
return 0;
}
else if (id == "")
{
MessageBox.Show("The id field is empty so data cannot be inserted...");
return 0;
}
else if (name == "")
{
MessageBox.Show("The name field is empty so data cannot be inserted...");
return 0;
}
else if (gender == "")
{
MessageBox.Show("The gender field is empty so data cannot be inserted...");
return 0;
}
else if (address == "")
{
MessageBox.Show("The address field is empty so data cannot be inserted...");
return 0;
}
else if (contactno == "")
{
MessageBox.Show("The contactno field is empty so data cannot be inserted...");
113
return 0;
}
else if (cnic == "")
{
MessageBox.Show("The cnic field is empty so data cannot be inserted...");
return 0;
}
else if (salary == "")
{
MessageBox.Show("The salary field is empty so data cannot be inserted...");
return 0;
}
else if (category == "")
{
MessageBox.Show("The category field is empty so data cannot be inserted...");
return 0;
}
return obj1.insertemp(id, name, gender, address, dob, contactno, cnic, salary, category,
joindate,useridno,status);
}
///end of the employee method classs....
///searching employee code..
///for select category aunthentication...
public void nooption(int val)
{
if (val == 0)
{
MessageBox.Show("Please Select the Desire Category for Search...");
}
}
///id search method.....
public DataTable searchid(string id1)
{
id = id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
}
return obj1.databaseserachid(id);
return obj1.databaseserachname(name);
114
return obj1.databaseserachcategory(category);
/// <summary>
/// for search id updatation of data...
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable updatesearch(string id)
{
string id1 = id;
if (id1 == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
return obj1.updatesearchdatabase(id1);
}
///for updation of employeee data...
///for inseration in updation of data check validaty...
public int empupdate(string id2, string name2, string gender2, string address2, string dob2,
string contactno2, string cnic2, string salary2, string category2, string joindate2)
{
id = id2;
name = name2;
gender = gender2;
address = address2;
dob = dob2;
contactno = contactno2;
cnic = cnic2;
salary = salary2;
category = category2;
joindate = joindate2;
if (name == "" && gender == "" && address == "" && contactno == "" && cnic == ""
&& salary == "" && category == "")
{
MessageBox.Show("All compulsory field all empty so data cannot be inserted...");
return 0;
}
else if (gender == "" && address == "" && contactno == "" && cnic == "" && salary ==
"" && category == "")
115
116
}
else if (gender == "" && address == "" && contactno == "" && cnic == "" && salary ==
"" && category == "")
{
MessageBox.Show("All compulsory field gender,address,contactno,cnic,salary,category
are empty so data cannot be inserted...");
return 0;
}
else if (address == "" && contactno == "" && cnic == "" && salary == "" && category
== "")
{
MessageBox.Show("All compulsory field address,contactno,cnic,salary,category are
empty so data cannot be inserted...");
return 0;
}
else if (contactno == "" && cnic == "" && salary == "" && category == "")
{
MessageBox.Show("All compulsory field contactno,cnic,salary,category are empty so
data cannot be inserted...");
return 0;
}
else if (cnic == "" && salary == "" && category == "")
{
MessageBox.Show("All compulsory field cnic,salary,category are empty so data cannot
be inserted...");
return 0;
}
else if (salary == "" && category == "")
{
MessageBox.Show("All compulsory field salary,category are empty so data cannot be
inserted...");
return 0;
}
else if (id == "")
{
MessageBox.Show("The id field is empty so data cannot be inserted...");
return 0;
}
else if (name == "")
{
MessageBox.Show("The name field is empty so data cannot be inserted...");
return 0;
}
else if (gender == "")
{
MessageBox.Show("The gender field is empty so data cannot be inserted...");
return 0;
}
else if (address == "")
{
MessageBox.Show("The address field is empty so data cannot be inserted...");
return 0;
}
else if (contactno == "")
{
MessageBox.Show("The contactno field is empty so data cannot be inserted...");
return 0;
}
117
118
119
return 0;
}
else if (category == "" && quantity == "" && price1 == "")
{
MessageBox.Show("All compulsory field category,price and quantity are empty so data
cannot be inserted...");
return 0;
}
///remainnig authentication write..later...
else if (name == "")
{
MessageBox.Show("The
return 0;
}
else if (season == "")
{
MessageBox.Show("The
return 0;
}
else if (type == "")
{
MessageBox.Show("The
return 0;
}
else if (category == "")
{
MessageBox.Show("The
return 0;
}
else if (quantity == "")
{
MessageBox.Show("The
return 0;
}
else if (price == "")
{
MessageBox.Show("The
return 0;
}
120
return obj1.databaseserachid(id);
return obj1.databaseserachname(name);
return obj1.databasesearchplant(type,plant);
<summary>
for search id updatation of data...
</summary>
<param name="id"></param>
<returns></returns>
121
}
return obj1.updatesearchdatabase(id1);
}
///updation of plant..
public int plantupdate(string id2, string name2, string season2, string type2, string
category2, string quantity2, string userid2,string price2)
{
id = id2;
name = name2;
season = season2;
type = type2;
category = category2;
quantity = quantity2;
userid = userid2;
price = price2;
if (name == "" && season == "" && type == "" && category == "" && quantity == "" &&
price == "")
{
MessageBox.Show("All compulsory field all empty so plant data cannot be inserted...");
return 0;
}
else if (season == "" && type == "" && category == "" && quantity == "" && price ==
"")
{
MessageBox.Show("All compulsory field season,type,category,quantity,price are empty
so data cannot be inserted...");
return 0;
}
else if (type == "" && category == "" && quantity == "" && price == "")
{
MessageBox.Show("All compulsory field type,category and quantity and price are
empty so data cannot be inserted...");
return 0;
}
else if (category == "" && quantity == "" && price == "")
{
MessageBox.Show("All compulsory field category,price and quantity are empty so data
cannot be inserted...");
return 0;
}
///remainnig authentication write..later...
122
123
124
///small
sizesmall = sizesmall1;
quantitysmall = quantitysmall1;
pricesmall = pricesmall1;
///medium
sizemeidum = sizemeidum1;
quantitymeidum = quantitymeidum1;
pricemeidum = pricemeidum1;
//large
sizelarge = sizelarge1;
quantitylarge = quantitylarge1;
pricelarge = pricelarge1;
///extralarge...
extrasizelarge = sizeextralarge1;
extraquantitylarge = quantityextralarge1;
extrapricelarge = priceextralarge1;
///userid
userid = userid1;
///for name aunthentication...
if (name == "")
{
MessageBox.Show("Name field is empty. Plese enter the desire name..");
return 0;
}
if (sizesmall == "" && sizemeidum == "" && sizelarge == "" && extrasizelarge == "")
{
MessageBox.Show("Size field is empty.Please select the desire size..");
return 0;
}
///for small size authentication..
if (sizesmall == "Small")
{
if (quantitysmall == "" && pricesmall == "")
{
MessageBox.Show("Please enter the quantity and price of small size pots...");
return 0;
}
else if (quantitysmall == "")
{
MessageBox.Show("Please enter the quantity of small size pots...");
return 0;
}
else if (pricesmall == "")
{
MessageBox.Show("Please enter the price of small size pots...");
return 0;
}
smallcount = 1;
}
///for medium size authentication..
if (sizemeidum == "Medium")
{
if (quantitymeidum == "" && pricemeidum == "")
{
MessageBox.Show("Please enter the quantity and price of Medium size pots...");
return 0;
}
else if (quantitymeidum == "")
125
}
else if (pricemeidum == "")
{
MessageBox.Show("Please enter the price of Medium size pots...");
return 0;
}
mediumcount = 1;
}
///for large size authentication..
if (sizelarge == "Large")
{
if (quantitylarge == "" && pricelarge == "")
{
MessageBox.Show("Please enter the quantity and price of large size pots...");
return 0;
}
else if (quantitylarge == "")
{
MessageBox.Show("Please enter the quantity of large size pots...");
return 0;
}
else if (pricelarge == "")
{
MessageBox.Show("Please enter the price of large size pots...");
return 0;
}
largecount = 1;
}
///for extra large
///
if (extrasizelarge == "Extra Large")
{
if (extraquantitylarge == "" && extrapricelarge == "")
{
MessageBox.Show("Please enter the quantity and price of extra large size pots...");
return 0;
}
else if (extraquantitylarge == "")
{
MessageBox.Show("Please enter the quantity of extra large size pots...");
return 0;
}
else if (extrapricelarge == "")
{
MessageBox.Show("Please enter the price of extra large size pots...");
return 0;
}
extralargecount = 1;
}
///for inseration of pots..
obj1.insertpot(id, name, userid);
if (smallcount == 1)
{
num1 = obj1.insertsmallpot(id, sizesmall, quantitysmall, pricesmall, userid,status);
}
126
127
return obj1.databaseserachid(id);
}
///name search method..
///name search method...
public DataTable searchname(string name1)
{
name = name1;
if (name == "")
{
MessageBox.Show("Name field is empty so searching is not poosible...");
}
}
return obj1.databaseserachname(name);
///search category..
///
///name search category...
public DataTable searhcategory(string size1)
{
size = size1;
}
return obj1.databaseserachcategory(size);
/// <summary>
/// /for update searching...
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable updatesearch(string id1)
{
id = id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
return obj1.updatesearchdatabase(id1);
}
/// <summary>
/// for update medium search
/// </summary>
/// <param name="id1"></param>
/// <returns></returns>
public DataTable udpatesarchmedium(string id1)
{
id = id1;
}
return obj1.updatesearchmediumdatabase(id);
/// <summary>
128
return obj1.databasesearchpots(id);
129
}
else if (name == "" && size == "" && quantity == "")
{
MessageBox.Show("size,quantity and name field is empty. so updation is not
possible..");
return 0;
}
else if (name == "" && price == "" && quantity == "")
{
MessageBox.Show("price,quantity and name field is empty. so updation is not
possible..");
return 0;
}
else if (name == "")
{
MessageBox.Show("name field is empty. so updation is not possible..");
return 0;
}
else if (size == "")
{
MessageBox.Show("size field is empty. so updation is not possible..");
return 0;
}
else if (price == "")
{
MessageBox.Show("price field is empty. so updation is not possible..");
return 0;
}
else if (quantity == "")
{
MessageBox.Show("quantity field is empty. so updation is not possible..");
return 0;
}
return obj1.updatedatabasepots(id, name, size, price, quantity, userid);
}
}
130
return obj1.searchplantcombodatabase();
}
/// <summary>
/// for pot search method.....
/// </summary>
/// <returns></returns>
public DataTable searchpotcombo()
{
return obj1.searchpotcombodatabase();
}
/// <summary>
/// <summary>
/// this method is used to count number of rows in database so we write..
/// </summary>
/// <returns></returns>
public int countlogic()
{
return obj1.countdatabase();
}
public void authenticate(string check)
{
if (check == "")
{
MessageBox.Show("Please select the Product category first..");
}
}
/// <summary>
/// this method is used to authenticate about supplier informatiion...
/// </summary>
/// <param name="id1"></param>
/// <param name="name1"></param>
/// <param name="type1"></param>
/// <param name="address1"></param>
/// <param name="contactno1"></param>
/// <param name="userid1"></param>
/// <returns></returns>
public int supplierauthenticate(string id1, string name1, string address1, string contactno1,
string userid1)
{
id = id1;
name = name1;
address = address1;
contactno = contactno1;
userid = userid1;
if (name == "" && address == "" && contactno == "")
{
MessageBox.Show("All fields are empty please enter the desire data in these field..");
return 0;
131
}
else if (name == "" && address == "")
{
MessageBox.Show("Your name and address fields are empty please enter the desire
data in this field..");
return 0;
}
else if (name == "" && contactno == "")
{
MessageBox.Show("Your name and contactno fields are empty please enter the desire
data in this field..");
return 0;
}
else if (address == "" && contactno == "")
{
MessageBox.Show("Your address and contactno fields are empty please enter the
desire data in this field..");
return 0;
}
else if(name=="")
{
MessageBox.Show("Your name fields are empty please enter the desire data in this
field..");
return 0;
}
else if (address == "")
{
MessageBox.Show("Your address fields are empty please enter the desire data in this
field..");
return 0;
}
else if (contactno == "")
{
MessageBox.Show("Your contactno fields are empty please enter the desire data in this
field..");
return 0;
}
return obj1.insertsupplier(id, name, address, contactno, userid);
}
///for plant inseration....
public int insertplant(string id1,string product1,string quantity1,string
product_per_price1,string product_total_price1,string date1,string userid1)
{
id = id1;
product=product1;
quantity = quantity1;
product_per_price = product_per_price1;
product_total_price = product_total_price1;
date = date1;
userid = userid1;
== "")
if (product == "" && quantity == "" && product_per_price == "" && product_total_price
{
MessageBox.Show("All fields are empty please enter the desire data in these field..");
132
return 0;
}
else if (product == "" && quantity == "")
{
MessageBox.Show("Your product and quantity fields are empty please enter the desire
data in this field..");
return 0;
}
else if (quantity == "" && product_per_price == "")
{
MessageBox.Show("Your quantity and product per price fields are empty please enter
the desire data in this field..");
return 0;
}
else if (quantity == "" && product_total_price == "")
{
MessageBox.Show("Your quantity and product total price fields are empty please enter
the desire data in this field..");
return 0;
}
else if (product == "")
{
MessageBox.Show("Your product fields are empty please enter the desire data in this
field..");
return 0;
}
else if (quantity == "")
{
MessageBox.Show("Your quantity fields are empty please enter the desire data in this
field..");
return 0;
}
else if (product_per_price == "")
{
MessageBox.Show("Your product per price fields are empty please enter the desire data
in this field..");
return 0;
}
else if (product_total_price == "")
{
MessageBox.Show("Your product total price fields are empty please enter the desire
data in this field..");
return 0;
}
return obj1.insertplantdatabase(id1,product1, quantity1, product_per_price1,
product_total_price1, date1, userid1);
}
////for show the data supplier supply plant and pots.. in searchdatagridview...
public DataTable searchproduct(string id1)
{
id = id1;
133
return obj1.databasearchproduct(id);
134
}
else if (product_total_price == "")
{
MessageBox.Show("Your product total price fields are empty please enter the desire
data in this field..");
return 0;
}
else if (size== "")
{
MessageBox.Show("Your size fields are empty please enter the desire data in this
field..");
return 0;
}
return obj1.insertpotplantdatabase(id1, size1, product1, quantity1, product_per_price1,
product_total_price1, date1, userid1);
}
/// <summary>
/// it is used to get id of the pot through pot name...
/// </summary>
/// <param name="product"></param>
/// <returns></returns>
public string gepotid(string product)
{
return obj1.gepotiddatabase(product);
}
/// <summary>
/// /
/// </summary>
/// <param name="number"></param>
/// <returns></returns>
public DataTable searchsizecombo(string number)
{
return obj1.searchsizecombodatabase(number);
}
///search supplier code will be started at that position
//when no option select in search..
///for select category aunthentication...
public void nooption(int val)
{
if (val == 0)
{
MessageBox.Show("Please Select the Desire Category for Search...");
}
}
///search id supplier aunthentication...
///id search method.....
public DataTable searchid(string id1)
{
id = id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
135
}
}
return obj1.databaseserachid(id);
136
}
public DataTable findsuppliertotalamount(string supplierid1)
{
string supplierid = supplierid1;
return obj1.searchsuppliercombodatabase(supplierid);
}
public int supplierpaymentauthenticate(string id1, string supid1, string date1, string
totalamount1, string totalpaidamount1, string dueamount1, string duedate1, string userid1)
{
DateTime dt1 = DateTime.Parse(date1);
DateTime dt2 = DateTime.Parse(duedate1);
id = id1;
supid = supid1;
date = date1;
totalamount = totalamount1;
totalpaidamount = totalpaidamount1;
dueamount = dueamount1;
duedate = duedate1;
userid = userid1;
if (supid == "" && totalamount == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your all compulsory fields are empty...");
return 0;
}
else if (supid == "" && totalamount == "" && totalpaidamount == "" )
{
MessageBox.Show("Your supplier id,total amount, and totalpaid amount fields are
empty ...");
return 0;
}
else if (supid == "" && totalamount == "" && dueamount == "")
{
MessageBox.Show("Your supplier id,total amount, and dueamount fields are empty ...");
return 0;
}
else if (supid == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your supplier id,totalpaid amount and due amount fields are
empty...");
return 0;
}
else if (supid1 == "")
{
MessageBox.Show("Your supplier id field are empty...");
return 0;
}
else if (totalamount == "")
{
MessageBox.Show("Your totalamount field are empty...");
return 0;
}
else if (totalpaidamount == "")
{
MessageBox.Show("Your totalpaid amount field are empty...");
return 0;
}
137
138
}
return obj1.databasesearchdate(dateto1, datefrom1);
}
/// <summary>
/// before updation first is searching....
/// </summary>
/// <param name="id1"></param>
/// <returns></returns>
public DataTable searchsupplierpayment(string id1)
{
id=id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
return obj1.searchsupplierpaymentdatabase(id);
}
///update supplier payment...
public int updatesupplierpaymentauthenticate(string id1, string supid1, string date1, string
totalamount1, string totalpaidamount1, string dueamount1, string duedate1, string userid1)
{
DateTime dt1 = DateTime.Parse(date1);
DateTime dt2 = DateTime.Parse(duedate1);
id = id1;
supid = supid1;
date = date1;
totalamount = totalamount1;
totalpaidamount = totalpaidamount1;
dueamount = dueamount1;
duedate = duedate1;
userid = userid1;
if (supid == "" && totalamount == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your all compulsory fields are empty...");
return 0;
}
else if (supid == "" && totalamount == "" && totalpaidamount == "")
{
MessageBox.Show("Your supplier id,total amount, and totalpaid amount fields are
empty ...");
return 0;
}
else if (supid == "" && totalamount == "" && dueamount == "")
{
MessageBox.Show("Your supplier id,total amount, and dueamount fields are empty ...");
return 0;
}
else if (supid == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your supplier id,totalpaid amount and due amount fields are
empty...");
139
return 0;
}
else if (supid1 == "")
{
MessageBox.Show("Your supplier id field are empty...");
return 0;
}
else if (totalamount == "")
{
MessageBox.Show("Your totalamount field are empty...");
return 0;
}
else if (totalpaidamount == "")
{
MessageBox.Show("Your totalpaid amount field are empty...");
return 0;
}
else if (dueamount == "")
{
MessageBox.Show("Your due amount field are empty...");
return 0;
}
if (dt2.Date < dt1.Date)
{
MessageBox.Show("Your due date is less than current date please enter the correct
date ...");
return 0;
}
return obj1.updatesupplierpaymentdatabase(id, supid, date, totalamount,
totalpaidamount, dueamount, duedate, userid);
}
}
140
141
}
///for plant inseration....
public int insertplant(string id1, string product1, string quantity1, string product_per_price1,
string product_total_price1, string date1, string userid1)
{
id = id1;
product = product1;
quantity = quantity1;
product_per_price = product_per_price1;
product_total_price = product_total_price1;
date = date1;
userid = userid1;
== "")
if (product == "" && quantity == "" && product_per_price == "" && product_total_price
{
MessageBox.Show("All fields are empty please enter the desire data in these field..");
return 0;
}
else if (product == "" && quantity == "")
{
MessageBox.Show("Your product and quantity fields are empty please enter the desire
data in this field..");
return 0;
}
else if (quantity == "" && product_per_price == "")
{
MessageBox.Show("Your quantity and product per price fields are empty please enter
the desire data in this field..");
return 0;
}
else if (quantity == "" && product_total_price == "")
{
MessageBox.Show("Your quantity and product total price fields are empty please enter
the desire data in this field..");
return 0;
}
else if (product == "")
{
MessageBox.Show("Your product fields are empty please enter the desire data in this
field..");
return 0;
}
else if (quantity == "")
{
MessageBox.Show("Your quantity fields are empty please enter the desire data in this
field..");
return 0;
}
else if (product_per_price == "")
{
MessageBox.Show("Your product per price fields are empty please enter the desire data
in this field..");
return 0;
}
else if (product_total_price == "")
142
MessageBox.Show("Your product total price fields are empty please enter the desire
data in this field..");
return 0;
}
return obj1.insertplantdatabase(id1, product1, quantity1, product_per_price1,
product_total_price1, date1, userid1);
}
////for show the data supplier supply plant and pots.. in searchdatagridview...
public DataTable searchproduct(string id1)
{
id = id1;
return obj1.databasearchproduct(id);
}
///for pot inseration....
public int insertpotplant(string id1, string size1, string product1, string quantity1, string
product_per_price1, string product_total_price1, string date1, string userid1)
{
id = id1;
product = product1;
size = size1;
quantity = quantity1;
product_per_price = product_per_price1;
product_total_price = product_total_price1;
date = date1;
userid = userid1;
if (product == "" && quantity == "" && product_per_price == "" && product_total_price
== "" && size == "")
{
MessageBox.Show("All fields are empty please enter the desire data in these field..");
return 0;
}
else if (product == "" && quantity == "" && size == "")
{
MessageBox.Show("Your product,size and quantity fields are empty please enter the
desire data in this field..");
return 0;
}
else if (quantity == "" && product_per_price == "" && size == "")
{
MessageBox.Show("Your,size quantity and product per price fields are empty please
enter the desire data in this field..");
return 0;
}
else if (quantity == "" && product_total_price == "" && size == "")
{
MessageBox.Show("Your quantity,size and product total price fields are empty please
enter the desire data in this field..");
return 0;
}
143
144
product = product1;
return obj1.databasefindproductprice(product);
}
///find product pot prices that is currently selected
public string findproductprice(string product1,string size1)
{
product = product1;
size = size1;
return obj1.databasefindproductprice(product,size);
}
///searching start at that point...
///search supplier code will be started at that position
//when no option select in search..
///for select category aunthentication...
public void nooption(int val)
{
if (val == 0)
{
MessageBox.Show("Please Select the Desire Category for Search...");
}
}
///search id supplier aunthentication...
///id search method.....
public DataTable searchid(string id1)
{
id = id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
}
return obj1.databaseserachid(id);
145
if (id1 == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
return obj1.searchupdateorderdatabase(id1);
}
///search order products...
public DataTable searchupdateorderproduct(string id)
{
string id1 = id;
return obj1.searchupdateorderproductdatabase(id1);
}
/////search update order
public int orderauthenticateupdate(string id1, string client1, string date1, string userid1)
{
id = id1;
client = client1;
date = date1;
userid = userid1;
if (client == "")
{
MessageBox.Show("Your client filed is empty please enter the desire information...");
return 0;
}
return obj1.insertorderupdate(id, client, date, userid); ;
}
////for updatation plant...
///for plant inseration....
public int insertplantupdate(string id1, string product1, string quantity1, string
product_per_price1, string product_total_price1, string date1, string userid1,string oldid,int
addquantity,int detectquantity,int nodectection)
{
id = id1;
product = product1;
quantity = quantity1;
product_per_price = product_per_price1;
product_total_price = product_total_price1;
date = date1;
userid = userid1;
if (product == "" && quantity == "" && product_per_price == "" && product_total_price
== "")
{
MessageBox.Show("All fields are empty please enter the desire data in these field..");
return 0;
}
else if (product == "" && quantity == "")
{
146
MessageBox.Show("Your product and quantity fields are empty please enter the desire
data in this field..");
return 0;
}
else if (quantity == "" && product_per_price == "")
{
MessageBox.Show("Your quantity and product per price fields are empty please enter
the desire data in this field..");
return 0;
}
else if (quantity == "" && product_total_price == "")
{
MessageBox.Show("Your quantity and product total price fields are empty please enter
the desire data in this field..");
return 0;
}
else if (product == "")
{
MessageBox.Show("Your product fields are empty please enter the desire data in this
field..");
return 0;
}
else if (quantity == "")
{
MessageBox.Show("Your quantity fields are empty please enter the desire data in this
field..");
return 0;
}
else if (product_per_price == "")
{
MessageBox.Show("Your product per price fields are empty please enter the desire data
in this field..");
return 0;
}
else if (product_total_price == "")
{
MessageBox.Show("Your product total price fields are empty please enter the desire
data in this field..");
return 0;
}
return obj1.insertplantdatabaseupdate(id1, product1, quantity1, product_per_price1,
product_total_price1, date1, userid1,oldid,addquantity,detectquantity,nodectection);
}
///old plantname...
public string checkoldplantname(string oldplantname)
{
return obj1.checkoldplantnamedatabase(oldplantname);
}
/////iinsert pot update...
///for pot inseration....
public int insertpotupdate(string id1, string size1, string product1, string quantity1, string
product_per_price1, string product_total_price1, string date1, string userid1,string oldpotname,int
addquantity,int detectquantity)
{
147
id = id1;
product = product1;
size = size1;
quantity = quantity1;
product_per_price = product_per_price1;
product_total_price = product_total_price1;
date = date1;
userid = userid1;
if (product == "" && quantity == "" && product_per_price == "" && product_total_price
== "" && size == "")
{
MessageBox.Show("All fields are empty please enter the desire data in these field..");
return 0;
}
else if (product == "" && quantity == "" && size == "")
{
MessageBox.Show("Your product,size and quantity fields are empty please enter the
desire data in this field..");
return 0;
}
else if (quantity == "" && product_per_price == "" && size == "")
{
MessageBox.Show("Your,size quantity and product per price fields are empty please
enter the desire data in this field..");
return 0;
}
else if (quantity == "" && product_total_price == "" && size == "")
{
MessageBox.Show("Your quantity,size and product total price fields are empty please
enter the desire data in this field..");
return 0;
}
else if (product == "")
{
MessageBox.Show("Your product fields are empty please enter the desire data in this
field..");
return 0;
}
else if (quantity == "")
{
MessageBox.Show("Your quantity fields are empty please enter the desire data in this
field..");
return 0;
}
else if (product_per_price == "")
{
MessageBox.Show("Your product per price fields are empty please enter the desire data
in this field..");
return 0;
}
else if (product_total_price == "")
{
MessageBox.Show("Your product total price fields are empty please enter the desire
data in this field..");
return 0;
}
148
149
date = date1;
totalamount = totalamount1;
totalpaidamount = totalpaidamount1;
dueamount = dueamount1;
duedate = duedate1;
userid = userid1;
if (supid == "" && totalamount == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your all compulsory fields are empty...");
return 0;
}
else if (supid == "" && totalamount == "" && totalpaidamount == "")
{
MessageBox.Show("Your Order id,total amount, and totalpaid amount fields are
empty ...");
return 0;
}
else if (supid == "" && totalamount == "" && dueamount == "")
{
MessageBox.Show("Your Order id,total amount, and dueamount fields are empty ...");
return 0;
}
else if (supid == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your Order id,totalpaid amount and due amount fields are
empty...");
return 0;
}
else if (supid1 == "")
{
MessageBox.Show("Your Order id field are empty...");
return 0;
}
else if (totalamount == "")
{
MessageBox.Show("Your totalamount field are empty...");
return 0;
}
else if (totalpaidamount == "")
{
MessageBox.Show("Your totalpaid amount field are empty...");
return 0;
}
else if (dueamount == "")
{
MessageBox.Show("Your due amount field are empty...");
return 0;
}
if (dt2.Date < dt1.Date)
{
MessageBox.Show("Your due date is less than current date please enter the correct
date ...");
return 0;
}
return obj1.insertorderpayment(id, supid, date, totalamount, totalpaidamount,
dueamount, duedate, userid);
}
150
}
/// <summary>
/// before updation first is searching....
/// </summary>
/// <param name="id1"></param>
/// <returns></returns>
public DataTable searchsupplierpayment(string id1)
151
id = id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
return obj1.searchsupplierpaymentdatabase(id);
}
///update supplier payment...
public int updatesupplierpaymentauthenticate(string id1, string supid1, string date1, string
totalamount1, string totalpaidamount1, string dueamount1, string duedate1, string userid1)
{
DateTime dt1 = DateTime.Parse(date1);
DateTime dt2 = DateTime.Parse(duedate1);
id = id1;
supid = supid1;
date = date1;
totalamount = totalamount1;
totalpaidamount = totalpaidamount1;
dueamount = dueamount1;
duedate = duedate1;
userid = userid1;
if (supid == "" && totalamount == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your all compulsory fields are empty...");
return 0;
}
else if (supid == "" && totalamount == "" && totalpaidamount == "")
{
MessageBox.Show("Your Order id,total amount, and totalpaid amount fields are
empty ...");
return 0;
}
else if (supid == "" && totalamount == "" && dueamount == "")
{
MessageBox.Show("Your Order id,total amount, and dueamount fields are empty ...");
return 0;
}
else if (supid == "" && totalpaidamount == "" && dueamount == "")
{
MessageBox.Show("Your Order id,totalpaid amount and due amount fields are
empty...");
return 0;
}
else if (supid1 == "")
{
MessageBox.Show("Your Order id field are empty...");
return 0;
}
else if (totalamount == "")
{
MessageBox.Show("Your totalamount field are empty...");
152
return 0;
}
else if (totalpaidamount == "")
{
MessageBox.Show("Your totalpaid amount field are empty...");
return 0;
}
else if (dueamount == "")
{
MessageBox.Show("Your due amount field are empty...");
return 0;
}
if (dt2.Date < dt1.Date)
{
MessageBox.Show("Your due date is less than current date please enter the correct
date ...");
return 0;
}
return obj1.updatesupplierpaymentdatabase(id, supid, date, totalamount,
totalpaidamount, dueamount, duedate, userid);
}
}
153
orderid = orderid1;
clientid = clientid1;
userid = userid1;
if (paymentid1 == "")
{
MessageBox.Show("Your all compulsory fields are empty.. Please enter the desire
information..");
return 0;
}
return obj1.Insert_Generate_Receipt( recid1, date1, paymentid1, orderid1, clientid1,
userid1);
}
public string searchorderid(string paymentid1)
{
string paymentid = paymentid1;
return obj1.searchorderiddatabase(paymentid);
}
////search client id...
public string searchclientid(string ordid1)
{
string ordid = ordid1;
return obj1.searchclientiddatabase(ordid);
}
public void nooption(int val)
{
if (val == 0)
{
MessageBox.Show("Please Select the Desire Category for Search...");
}
}
///search id supplier aunthentication...
///id search method.....
public DataTable searchid(string id1)
{
id = id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
return obj1.databaseserachid(id);
}
///for searching date
///for searching date..
///for date search
public DataTable searchdate(string dateto, string datefrom)
{
DateTime dt9 = DateTime.Parse(dateto);
DateTime dt10 = DateTime.Parse(datefrom);
string dateto1 = dateto;
string datefrom1 = datefrom;
154
3.2.10
Client Management
class BLClient
{
///object creation of DLC class..
DLClient obj1 = new DLClient();
/// <summary>
/// global variable inilitilization...
/// logic class
/// </summary>
/// <returns></returns>
public string id, name, address, type, contactno, userid;
/// <summary>
/// <summary>
/// this method is used to count number of rows in database so we write..
/// </summary>
/// <returns></returns>
public int countlogic()
{
return obj1.countdatabase();
}
///client add authentication...
public int clientauthenticate(string id1, string name1, string type1, string address1, string
contactno1, string userid1)
{
id = id1;
name = name1;
address = address1;
type = type1;
contactno = contactno1;
userid = userid1;
if (name == "" && type == "")
{
MessageBox.Show("Your name and type fields are empty please enter the desire data
in these field..");
return 0;
}
else if (name == "")
{
MessageBox.Show("Your name fields are empty please enter the desire data in this
field..");
return 0;
155
}
else if (type == "")
{
MessageBox.Show("Your type fields are empty please enter the desire data in this
field..");
return 0;
}
if (type == "Permanent")
{
if (address == "" && contactno == "")
{
MessageBox.Show("Your address and contactno field are empty please enter the
desire data in these field..");
return 0;
}
else if (address == "")
{
MessageBox.Show("Your address fields are empty please enter the desire data in
this field..");
return 0;
}
else if (contactno == "")
{
MessageBox.Show("Your type contactno are empty please enter the desire data in
this field..");
return 0;
}
}
return obj1.insertclient(id, name, type, address, contactno, userid);
}
///search id client aunthentication...
///id search method.....
public DataTable searchid(string id1)
{
id = id1;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
}
return obj1.databaseserachid(id);
156
///
///name search category...
public DataTable searhcategory(string category)
{
type = category;
return obj1.databaseserachcategory(type);
}
//when no option select in search..
///for select category aunthentication...
public void nooption(int val)
{
if (val == 0)
{
MessageBox.Show("Please Select the Desire Category for Search...");
}
}
/// <summary>
/// for search id updatation of data...
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable updatesearch(string id2)
{
id = id2;
if (id == "")
{
MessageBox.Show("Id field is empty so searching is not poosible...");
}
return obj1.updatesearchdatabase(id);
}
////client updation...
public int cltupdate(string id2,string name2,string type2,string address2,string
contactno2,string userid2)
{
id = id2;
name = name2;
address = address2;
type = type2;
contactno = contactno2;
userid = userid2;
if (name == "" && type == "")
{
MessageBox.Show("Your name and type fields are empty please enter the desire data
in these field..");
return 0;
}
else if (name == "")
{
MessageBox.Show("Your name fields are empty please enter the desire data in this
field..");
157
return 0;
}
else if (type == "")
{
MessageBox.Show("Your type fields are empty please enter the desire data in this
field..");
return 0;
}
if (type == "Permanent")
{
if (address == "" && contactno == "")
{
MessageBox.Show("Your address and contactno field are empty please enter the
desire data in these field..");
return 0;
}
else if (address == "")
{
MessageBox.Show("Your address fields are empty please enter the desire data in
this field..");
return 0;
}
else if (contactno == "")
{
MessageBox.Show("Your type contactno are empty please enter the desire data in
this field..");
return 0;
}
}
}
}
Query 2
SqlDataAdapter sda = new SqlDataAdapter(@"SELECT opid
FROM
OPERATOR
WHERE
(opstatus = '" + name1 + "' OR opstatus = '" + name2 + "')AND(status = '" +
"ACTIVATED" + "')", con);
Query 3
SqlDataAdapter sda = new SqlDataAdapter(@"SELECT opid
158
FROM
OPERATOR
WHERE
(opstatus = '" + name1 + "' OR opstatus = '" + name2 + "')AND(status = '" +
"ACTIVATED" + "')", con);
Query 2
Query 3
Query 2
SqlCommand cmd = new SqlCommand(@"SELECT MAX(plantid) FROM XCheckAllDatabase
WHERE (plantname = '" + checkname + "') ", con);
Query 3
SqlCommand cmd = new SqlCommand(@"INSERT INTO Plants
(plid, plname, plseason, pltype, plcategory, plquantity, opid,plprice,status)
VALUES
('" + id + "','" + name + "','" + season + "','" + type + "','" + category + "','" +
quantity + "','" + userid + "','" + price + "','" + status + "')", con);
SET
Query 2
159
Query 2
Query 2
SqlCommand cmd9 = new SqlCommand(@"SELECT
FROM
Plants
WHERE
(plname = '" + product + "')", con);
plquantity
Query 2
SqlCommand cmd1 = new SqlCommand(@"SELECT
FROM
ClientPayment
WHERE
(oord_id = '" + orderid + "')", con);
oord_id
Query 2
SqlCommand cmd = new SqlCommand(@"INSERT INTO Client
(cl_id, cl_name, cl_type, cl_address, cl_contectno, userid)
VALUES
('" + id + "','" + name + "','" + type + "','" + address + "','" + contactno + "','" +
userid + "')", con);
160
orders_id
Query 2
SqlCommand cmd1 = new SqlCommand(@"SELECT
FROM
ClientPayment
WHERE
(oord_id = '" + supid + "')", con);
3.3.10
oord_id
Query 1
Query 2
SqlDataAdapter sda = new SqlDataAdapter(@"SELECT
SupplierProduct.suplt_total_price
FROM
Supplier INNER JOIN
SupplierProduct ON Supplier.sup_id = SupplierProduct.suplt_id
WHERE
(Supplier.sup_id = '" + supplierid + "')", con);
Test Cases
For
Green House City
Management System
Prepared by: Azra Yaqoob, Anam
Saghir
Revised By: : Muhammad Haris
Zahoor
January 5th, 2016
161
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
User Login
This test case is to test the user login. This test case
verifies if the user login is completed successfully or
not. This test case will be carried more than one time
to verify the process
.
High
User request the system for login
System verifies the id and password.
System successfully login the user
System should be in running mode.
Administrator/operator successfully log into
system.
Account ID and password must present.
A successful login confirmation is displayed.
The main screen of the system is shown to user.
Account Id
Password
Redirect To Home Page
Redirect To Home Page
Pass
162
the
Change Password
TC: 02
Description
Change Password
This test case is to test that how the user changes his
password in system. This test case will be carried
more than one time to verify the process.
Priority
High
User requests the system to Change password.
System should successfully process the request and
ask for old and new
Password.
The user enter the old password new password and
again new password to confirm.
System verifies the password and account is
updated.
A confirmation message is shown to the user.
System should be in running mode.
System should be logged in by authenticated user.
Old and new password must be present.
A confirmation message indicating change of
password is displayed to the user.
Users account information is updated.
Old password
New password.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Add user
TC: 03
Add user
163
Description
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Pass
Activate/Deactivate user
TC: 04
Description
Priority
Activate/Deactivate User
This
test
case
is
to
test
Admin
can
Activate/Deactivate operator account. This
test case verifies if the Activate/Deactivate operator
is completed successfully or not. This test case will be
carried more than one time to verify the process.
Low
164
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Search User
TC: 05
Description
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Search User
This test case is to test that how to operator record is
retrieved from the system if the search operator is
completed successfully or not. This test case will be
carried more than one time to verify the process.
High
User requests the system to search user.
System should successfully process the request.
The user enter operator information.
System verifies the information and display the
search status.
System should be in running mode.
System should be logged in by authenticated user.
At least 1 user information must be available.
Search Information is successfully changed in the
system.
User id.
165
Actual Result:
Expected
Result:
Acceptance:
Update User
TC: 06
Description
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Update User
This test case is to test that how to operator record is
updated from the system if the updating operator is
completed successfully or not. This test case will be
carried more than one time to verify the process.
High
User requests the system to search user.
System should successfully process the request.
The user enter operator information.
System verifies the information and display the
updated status.
System should be in running mode.
System should be logged in by authenticated user.
At least 1 user information must be available.
Search Information is successfully changed in the
system.
User id.
User account is successfully updated.
User account is successfully updated.
Pass
Add Employee
TC: 07
Description
Add Employee
This test case is to test that how operator,
administrator can successfully add new employee in
the system .This test case verifies if the add new
employee is completed successfully or not. This test
166
Preconditions:
Postconditions:
Input Data:
Actual Result:
High
Operator, administrator request for add new
employee.
System will show add new employee form to the
operator, administrator.
Operator, administrator provides the employee
information.
System verifies the information and confirmation
message is shown to operator, administrator.
System should be in running mode.
System should be logged in by authenticated user.
Add new employee is successfully added in database.
Name
contact number
Address
CNIC number
employee category
joining date
date of birth,
employee Salary
New
employee
database.
is successfully added in
Expected
Result:
Acceptance:
Pass
Update Employee
TC: 08
Description
Priority
Update Employee
This test case is to test the administrator, operator
can update employee account. This test case verifies
if the Update employee is completed successfully or
not. This test case will be carried more than one time
to verify the process.
High
167
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Administrator,
operator
request
to
update
employee.
System will show all employee to the administrator,
operator.
Administrator, operator enter required information
System verifies the information and confirmation
message is shown to administrator, operator.
System should be in running mode.
System should be logged in by authenticated user.
Staff record must exists.
Employee account is updated and stored with all the
provided information in the database.
Name
contact number
Address
CNIC number
employee category
joining date
date of birth,
employee Salary
Employee account is successfully updated in
database.
Employee
database.
account
is
successfully
updated
in
Priority
High
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Priority
High
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Activate/Deactivate Employee
TC: 11
Description
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Activate/Deactivate Employee
This test case is to test Administrator, operator can
Activate/Deactivate employee account. This test case
verifies if the Activate/Deactivate employee is
completed successfully or not. This test case will be
carried more than one time to verify the process.
Low
Administrator,
operator
request
to
Activate/Deactivate user.
System will show all employee to the operator,
administrator.
Operator, administrator enter required information.
System verifies the information and show specific
employee to the operator, administrator and
confirms
deletion
process
form
operator,
administrator.
Operator, administrator will respond to the message
After verification employee record has been
successfully Activate/Deactivated from system and
confirmation message is show to the operator,
administrator.
System should be in running mode.
System should be logged in by authenticated user.
Employee
account
is
successfully
Activate/Deactivated from the database.
Id.
System account is successfully Activate/Deactivated
from the database.
System account is successfully Activate/Deactivated
from the database.
Pass
170
Add Client
TC: 12
Description
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Add Client
This test case is to test that how operator,
administrator can successfully add new client in the
system .This test case verifies if the add new client is
completed successfully or not. This test case will be
carried more than one time to verify the process.
High
Operator, administrator request for add new client.
System will show add new client form to the operator,
administrator.
Operator, administrator provides client information.
System verifies the information and confirmation
message is shown to operator, administrator.
System should be in running mode.
System should be logged in by authenticated user.
Client is successfully added in database.
Name
Id
contact number
Address.
Client is successfully added in database.
Client is successfully added in database.
Pass
Priority
High
171
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Update Client
TC: 15
Description
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Update Client
This test case is to test the administrator, operator
can update client account. This test case verifies if
the Update client is completed successfully or not.
This test case will be carried more than one time to
verify the process.
High
Administrator, operator request to update client.
System will show all client to the administrator,
operator.
Administrator, operator enter required information.
System verifies the information and confirmation
message is shown to administrator, operator.
System should be in running mode.
System should be logged in by authenticated user.
Client record must exists.
Client account is updated and stored with all the
provided information in the database.
id.
Actual Result:
Expected
Result:
Acceptance:
Add Supplier
TC: 16
Description
Add Supplier
This test case is to test that how operator,
administrator can successfully add new supplier in the
system .This test case verifies if the add new supplier
173
Preconditions:
Postconditions:
Input Data:
High
Operator, administrator request for add new supplier.
System will show add new supplier form to the
operator, administrator.
Operator, administrator provides supplier information.
System verifies the information and confirmation
message is shown to operator, administrator.
System should be in running mode.
System should be logged in by authenticated user.
Supplier is successfully added in database.
Name
Plants supplied
Quantity of Plant
Plant prices
Supplied date
contact information
id information
Actual Result:
Expected
Result:
Acceptance:
Pass
Search Supplier
TC:17
Description
Search Supplier
This test case is to test that how to search supplier
record is retrieved from the system. If the search
supplier is completed successfully or not.
This test case will be carried more than one time to
verify the process.
Priority
High
174
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Pass
Update Supplier
TC: 18
Description
Update Supplier
This test case is to test the administrator, operator
can update supplier account. This test case verifies if
the Update supplier is completed successfully or not.
This test case will be carried more than one time to
verify the process.
Priority
High
Administrator, operator request to update supplier.
System will show all supplier to the administrator,
operator.
Administrator, operator enter required information.
System verifies the information and confirmation
message is shown to administrator, operator.
System should be in running mode.
System should be logged in by authenticated user.
Supplier record must exists.
Supplier account is updated and stored with all the
provided information in the database.
Supplier id.
Supplier account is successfully updated in
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
175
database.
Expected
Result:
Acceptance:
Supplier account
database.
is
successfully
updated
in
Pass
Add Plant
TC: 19
Description
Add Plant.
This test case is to test that how operator,
administrator can successfully add Plant in the
system .This test case verifies if the add new plant is
completed successfully or not. This test case will be
carried more than one time to verify the process.
Priority
High
Operator, administrator request for add new plant.
System will show add new plant form to the operator,
administrator.
Operator, administrator provides Plant information.
System verifies the information and confirmation
message is shown to operator, administrator.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Plant
record is retrieved
From the system. If the search Plant is completed
successfully or not.
This test case will be carried more than one time to
verify the process.
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
High
User requests the system to search Plant.
System should successfully process the request.
The user enter plant information.
System verifies the information and display the
search status.
System should be in running mode.
System should be logged in by authenticated user.
At least 1 Client information must be available.
Search Information is successfully changed in the
system.
Name
Id
Type
Plant account is successfully searching from the
database.
Plant account is successfully searching from the
database.
Pass
Priority
High
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Update Plant
TC: 22
Description
Update Plant
This test case is to test the administrator, operator
can update Plant account. This test case verifies if the
Update plant is completed successfully or not. This
test case will be carried more than one time to verify
the process.
Priority
High
Administrator, operator request to update plant.
System will show all plant to the administrator,
operator.
Administrator, operator enter required information.
System verifies the information and confirmation
message is shown to administrator, operator.
System should be in running mode.
System should be logged in by authenticated user.
Plant record must exists.
Supplier account is updated and stored with all the
provided information in the database.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
plant id
Actual Result:
Expected
Result:
Acceptance:
Pass
178
Activate/Deactivate Plant
TC: 23
Description
Activate/Deactivate Plant.
This test case is to test Administrator can
Activate/Deactivate plant from the system. This test
case verifies if the Activate/Deactivate plant process
is completed successfully or not. This test case will be
carried more than one time to verify the process.
Priority
Low
Administrator request to Activate/Deactivate Plant.
System will show all Plant to the, administrator.
Administrator enter required information.
System verifies the information and show specific
plant to the administrator and confirms deletion
process form administrator.
Administrator will respond to the message
After verification plant record has been successfully
Activate/Deactivated from system and confirmation
message is shown to the administrator.
System should be in running mode.
System should be logged in by authenticated user.
Plant must be exist.
Plant is successfully Activate/Deactivated from the
database.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Plant id
Plant is successfully Activate/Deactivated from the
database.
Plant is successfully Activate/Deactivated from the
database.
Pass
Add Pot
TC: 24
Description
Add Pot.
This test case is to test that how operator,
administrator can successfully add Pot in the
system .This test case verifies if the add new pot is
179
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
High
Operator, administrator request for add new pot.
System will show add new pot form to the operator,
administrator.
Operator, administrator provides Pot information.
System verifies the information and confirmation
message is shown to operator, administrator.
System should be in running mode.
System should be logged in by authenticated user.
Pot Information is successfully change in the system.
Pot id
Pot name
Pot quantity
pot price
Pot type.
New Pot is successfully added in database.
New Pot is successfully added in database.
Pass
Priority
High
Normal Flow:
180
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Priority
High
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Update Pot
TC: 27
Description
Priority
Normal Flow:
Preconditions:
Postconditions:
Input Data:
database.
Pass
Update Pot
This test case is to test the administrator, operator
can update Pot account. This test case verifies if the
Update pot is completed successfully or not. This test
case will be carried more than one time to verify the
process.
High
Administrator, operator request to update pot.
System will show all pot to the administrator,
operator.
Administrator, operator enter required information.
System verifies the information and confirmation
message is shown to administrator, operator.
System should be in running mode.
System should be logged in by authenticated user.
Pot record must exists.
Supplier account is updated and stored with all the
provided information in the database.
pot id
Actual Result:
Expected
Result:
Acceptance:
Activate/Deactivate Pot
TC: 28
Description
Priority
Activate/Deactivate Pot.
This test case is to test Administrator, operator can
Activate/Deactivate pot from the system. This test
case verifies if the Activate/Deactivate pot employee
is completed successfully or not. This test case will be
carried more than one time to verify the process.
Low
182
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Administrator,
operator
request
to
Activate/Deactivate Pot.
System will show all Pot to the operator,
administrator.
Operator, administrator enter required information.
System verifies the information and show specific
pot to the operator, administrator and confirms
deletion process form operator, administrator.
Operator, administrator will respond to the message
After verification pot record has been successfully
Activate/Deactivated from system and confirmation
message is show to the operator, administrator.
System should be in running mode.
System should be logged in by authenticated user.
Pot must be exist.
Pot is successfully Activate/Deactivated from the
database.
Pot id
Pot is successfully Activate/Deactivated from the
database.
Pot is successfully Activate/Deactivated from the
database.
Pass
Add Order
TC: 29
Description
Add Order
This test case is to test that how operator,
administrator can successfully add order in the
system .This test case verifies if the add order is
completed successfully or not. This test case will be
carried more than one time to verify the process.
Priority
High
Operator, administrator request for add order.
System will show add order form to the operator,
administrator.
Operator,
administrator
provides
the
order
information.
System verifies the information and confirmation
message is shown to operator, administrator.
Normal Flow:
183
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Search Order
TC:30
Description
Search Order
This test case is to test that how to search Order
record is retrieved from the system. If the search
Order is completed successfully or not.
This test case will be carried more than one time to
verify the process.
Priority
High
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
184
Update Order
TC: 31
Description
Update Order
This test case is to test the administrator, operator
can update Order. This test case verifies if the Update
Order is completed successfully or not. This test case
will be carried more than one time to verify the
process.
Priority
High
Administrator, operator request to update Order.
System will show all order to the administrator,
operator.
Administrator, operator enter required information.
System verifies the information and confirmation
message is shown to administrator, operator.
System should be in running mode.
System should be logged in by authenticated user.
Order record must exists.
Order account is updated and stored with all the
provided information in the database.
Order Id.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Cancel Order
TC: 32
Description
Cancel Order.
This test case is to test Administrator can
Activate/Deactivate Operator account from the
system.
This
test
case
verifies
if
the
Activate/Deactivate operator account is completed
successfully or not. This test case will be carried more
185
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Low
Administrator request to cancel order.
System verifies the request and Cancel Order from
the
System.
After verification order has been successfully cancel
from system and confirmation message is show to
the, administrator.
System should be in running mode.
System should be logged in by authenticated user.
Order must be exist.
A confirmation message is displayed to the user.
Order id
Order is successfully cancel from the database.
Order is successfully cancel from the database.
Pass
Generate Receipt
TC: 33
Description
Generate Receipt
This test case is to test that how operator,
administrator can successfully add generate receipt in
the system .This test case verifies if the add order is
completed successfully or not. This test case will be
carried more than one time to verify the process.
Priority
High
Operator, administrator request for add order.
System will show add order form to the operator,
administrator.
Operator,
administrator
provides
the
order
information.
System verifies the information and confirmation
message is shown to operator, administrator.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Search Receipt
TC: 34
Description
Search Receipt
This test case is to test that how to Order record is
retrieved
From the system. If the search Order record is
completed successfully or not.
This test case will be carried more than one time to
verify the process.
Priority
High
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Pass
Add Payment
TC: 35
Description
Add Payment.
This test case is to test that how operator,
administrator can successfully add Payment in the
system .This test case verifies if the add Payment is
completed successfully or not. This test case will be
carried more than one time to verify the process.
Priority
High
Operator, administrator request for add Payment.
System will show add Payment form to the operator,
administrator.
Operator,
administrator
provides
Payment
information.
System verifies the information and confirmation
message is shown to operator, administrator.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
Pass
Search Payment
TC:36
Description
Search Payment
This test case is to test that how to Payment record is
retrieved from the system.if the
payment is
188
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
High
The user enter Payment information.
System verifies the information and display the
search status.
Update Payment
TC: 37
Description
Update Payment
This test case is to test the administrator, operator
can update Payment information in the system. This
test case verifies if the Update Payment is completed
successfully or not. This test case will be carried more
than one time to verify the process.
Priority
High
Administrator, operator enter required information.
System verifies the information and confirmation
message is shown to administrator, operator.
Normal Flow:
Preconditions:
Postconditions:
Input Data:
Actual Result:
Expected
Result:
Acceptance:
is
successfully
updated
Pass
4. Transition
190
in
191
192
193
194
195
196
User Manual
197
For
Green House City
Management System
Prepared by: Azra Yaqoob
Revised By: Muhammad Haris Zahoor
January 5th, 2016
198
o
o
o
o
199
o Each tile Contains Segments like Add, search, Update, Activate and deactivate
o By clicking on a tile a redial appears
o As below by clicking Employee Management a redial that contains Add
Employee, Search Employee, Update employee etc. appears
200
201
202
203
204
205
4.2.10
Pot Management
206
4.2.11
Supplier Payment
4.2.12
Order Management
By clicking on Order management, redial appears you can easily add, Search, update,
activate, deactivate and view deactive information by click on related segment.
on add order segment add order form will appears having buttons, Text boxes, Labels
and combo box
User can easily enter required client id information in fields
Add button will store and save the record
A conformation message will be shown to user and then user have to fill the information
of ordered products.
Reset button will clear all the fields
Close button is to close the form
208
5. Project Management
5.1 Gantt chart
209
210