+ All Categories
Home > Documents > Full Documentation

Full Documentation

Date post: 09-Apr-2018
Category:
Upload: suntherreswaran-santhana-moorthi
View: 215 times
Download: 0 times
Share this document with a friend

of 135

Transcript
  • 8/7/2019 Full Documentation

    1/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    1 | P a g e

    Table of Contents

    Introduction........................................................................................................................................... 4

    About KDE ......................................................................................................................................... 5

    Problem Analysis ................................................................................................................................ 5

    Project Details ..................................................................................................................................... 6

    Objectives ........................................................................................................................................... 8

    Project Scope ...................................................................................................................................... 8

    Entity Relationship Diagram (ERD) ................................................................................................... 9

    Data Flow Diagram (DFD) ................................................................................................................. 10

    Context Diagram............................................................................................................................... 10

    Data Flow Diagram Level 0.............................................................................................................. 11

    Membership-Level 1 ......................................................................................................................... 12

    Point-of-Sales (POS)-Level 1 ........................................................................................................... 13

    Members Billing-Level 1 .................................................................................................................. 14

    Accounts Receivable-Level 1 ........................................................................................................... 15

    Inventory Management ..................................................................................................................... 16

    Data Dictionnary ................................................................................................................................. 17

    Gantt Chart ......................................................................................................................................... 19

    Work L oad Matrix............................................................................................................................. 20

    Hierarchy Charts ................................................................................................................................ 21

    Overall .............................................................................................................................................. 21

    Membership ...................................................................................................................................... 22

    Point-of-Sales.................................................................................................................................... 23

    Accounts Receivable......................................................................................................................... 25

    PSEUDO CODE.................................................................................................................................. 28

    1 - LOGIN MODULE....................................................................................................................... 28

    2Main Menu.................................................................................................................................. 29

    2MEMBERSHIP........................................................................................................................... 30

    3 - New Registration ......................................................................................................................... 31

  • 8/7/2019 Full Documentation

    2/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    2 | P a g e

    4 - Update / Delete Member.............................................................................................................. 32

    5Point of Sales Form...................................................................................................................... 33

    6New Order................................................................................................................................... 34

    7Cancel Order ............................................................................................................................... 35

    8Members Billing Form................................................................................................................. 36

    9Monthly Statement for Members ................................................................................................ 37

    10List of Users .............................................................................................................................. 38

    11Inventory Management Form..................................................................................................... 38

    12Add New Product...................................................................................................................... 39

    13Delete Product........................................................................................................................... 40

    14Update Product.......................................................................................................................... 41

    15Goods Requisition Product ....................................................................................................... 42

    16Purchase Order.......................................................................................................................... 43

    17Account Receivable Form........................................................................................................... 44

    18Payment Accounts Reveivable Form ........................................................................................ 45

    19Report Menu ............................................................................................................................. 46

    Test plan............................................................................................................................................... 47

    PERCEIVED ASSUMPTION AND LIMITATION........................................................................ 55

    Membership Registration (Membership) .......................................................................................... 55

    Point of Sales (POS) ......................................................................................................................... 56

    Members Billing ............................................................................................................................... 57

    Accounts Receivable......................................................................................................................... 58

    Inventory Management ..................................................................................................................... 59

    Future Enhancement .......................................................................................................................... 60

    User Manual ........................................................................................................................................ 61

    Appendix.............................................................................................................................................. 70

    Minutes of Meeting........................................................................................................................... 70

    Coding............................................................................................................................................... 82

    Login Form ................................................................................................................................... 82

    Main Menu.................................................................................................................................... 83

    Membership_New Registration .................................................................................................... 84

    Membership_Modify/Terminate................................................................................................... 87

  • 8/7/2019 Full Documentation

    3/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    3 | P a g e

    Point of Sales_New Order_Choose Caf ...................................................................................... 91

    Point of Sales_New Order_Malaysian Caf ................................................................................. 92

    Point of Sales_New Order_Western Caf................................................................................... 109

    Points of Sales_New Order_Bill ................................................................................................. 123

    Members Billing_ Monthly Statement........................................................................................ 123

    Members Billing_ Monthly Statement Viewer ........................................................................... 125

    Account Receivable_Payment .................................................................................................... 129

    Inventory Management_Add New Item ..................................................................................... 131

    Inventory Management_Modify/Delete Item ............................................................................. 133

  • 8/7/2019 Full Documentation

    4/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    4 | P a g e

    Introduction

    In this global, each and everything is made easy and simple with help of technology

    development. Besides that, technology solves most of problems that happening in our daily

    life such creating, maintaining and developing data & information. Meanwhile, many people

    havent known the power technology and they still creating and maintaining data &

    information manually. Hence, many problems arisen and decreasing in efficiency in

    managing human resources and department manually.

    At Kelab Darul Eshan (KDE), the management of financial records pertaining to

    members was poorly kept or inaccurate and resulted in untimely monthly invoices to its

    members and consequently created cash-flow problems for the club. The poorly managed

    food and beverage inventory had resulted in the club unnecessarily tying its funds in stocks

    and also caused high wastages as the bulk of the raw materials were perishable items with a

    short shelf life.

    The only way to manage the rapid growth of the business was to effectively computerise its

    operations.

  • 8/7/2019 Full Documentation

    5/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    5 | P a g e

    About KDE

    Kelab Darul Eshan (KDE), was incorporated in 1990, offers one of the most luxurious

    recreational development in South East Asia. This Greg Norman designed 18-hole

    Championship golf course features 6,905 yards to test even the keenest golfers. The club

    started off with 200 members and its entire operations were conducted manually. As the

    membership gradually increased, the club installed standalone personal computers in some of

    the departments to streamline its business activities.

    Presently, Kelab Darul Eshan (KDE) has been experiencing tremendous growth of its

    membership, which has increased to approximately 5000 members and finds that its quality

    of service both at back-office and front-office operations such as billing of members at the

    respective outlets were gradually deteriorating. The critical operations such as monthly

    billing of members took up too much time and increasing the number of staff in the accounts

    department alone did not improve its efficiency

    Problem Analysis

    This project was designed to implement a Desktop application for the Kelab Darul

    Eshan (KDE). Most of the departments include within the KDE had no Automated Financial

    Record Keeping System but relied on paper records and human memory. Human may forget

    hence losing most of the important data. Also incase of change in staff within the department,

    some records may be lost for good, which could lead to loss of the company. Hence, the

    records that were in the company were therefore unreliable and hence needed to make them

    so.

    Although automating the office management system has been an area of concern, no

    study had been carried out on the need for one at KDE Company. Ever since, paper file

    system had been and the major method used as the means in information collecting,

    processing, storing and retrieving in the different department within the company, that deal in

    data entry, processing and retrieving like the staff recruitment department among others.

    Whereas the cases of inefficiency and poor performance by the same system (file based

    databases) like; duplication of data items in multiple files, duplication would affect input,

  • 8/7/2019 Full Documentation

    6/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    6 | P a g e

    maintenance, storage and possibly data integrity problems were been discovered in other

    organizations that use the same system, KDE had not carried out any study to improve on thesystem. And since the data are growing up so quickly, the rate is expected to jump

    appreciably so that information doubles in half the time, that and other reasons have led to the

    growth of office automation.

    Project Details

    We are using to use some concepts, methodologies and techniques which have been used in

    designing the Managing System of KDE. The concept, methodologies and techniques are as

    follows:-

    Data Flow Diagrams(DFD) Hierarchy Charts Entity Relationship Diagram(ERD) Screen & Report Designs Pseudocode Test Plan Perceived Limitations Perceived Assumptions

    The areas that the Managing System will be covered that has specified by the

    management are as follows:-

    1. Membership Adding new member Modifying members details Terminating membership Report on listing members details according alphabetical order

    2. Point-Of-Sales (POS) for the outlets Adding order Modify order Cancel order Report on sales by daily basis or monthly basis

  • 8/7/2019 Full Documentation

    7/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    7 | P a g e

    3.

    Members Billing Monthly statement to members View invoice of users Report on invoice transaction

    4. Accounts Receivable(payments received from members) Receive Payments Modify any mistaken payments Report on received payments by each month Report on balance payments owing by members by name

    5. Inventory Management Add new product Delete product Search product details Update product Goods received Goods Requisition Report on purchase order Report on the inventory used and balance

  • 8/7/2019 Full Documentation

    8/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    8 | P a g e

    Objectives

    The objective of this project is to develop a computerised system that able to help the end

    users to fast achieve their information which they require. This system will replace the

    exisiting one which could not support the business efficiency. The designing of this new

    computerised system is based on the weakness and problems being defined in the existing

    system.In the same time provide also a sharing information system among the whole office

    with security purpose by means of:

    Developping a system based dekstop with login features. Creating a proposed system which enables users to manage the different areas

    such as:

    1. Membership registration2. Point-Of-Sales (POS) for the outlets3. Members Billing4. Accounts Receivable (payments received from members)5. Inventory Management

    Implementing the proposed system using a database created with Visual Basic+ SQL server 2005 for the functionality of the proposed system.

    To create a paperless environment

    Project Scope

    To accomplish these challenges, knowledge and technological capabilities have to be

    developed in some main areas which are:

    Concepts and design Tools and enabling technologies (Visual studio 2008, SQL Server 2005.); Project planning and system analysis.

  • 8/7/2019 Full Documentation

    9/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    9 | P a g e

    Entity Relationship Diagram (ERD)

    Employee

    PK EmployeeID

    FirstNameLastNameGenderUsernamePasswordDepartmentDOBAdressTelephoneEmail Member

    PK MemberID

    FirstName

    LastNameDOBGenderMembershipTypeTelephoneAdressStatusEmailDescription

    Stock

    PK StockID

    ItemNameQuantityInitialQuantityInHandPriceStatus

    FK1 SupplierID

    Supplier

    PK SupplierID

    NameAdressRawMaterialDescription

    PaymentPK PaymentID

    MethodDescriptionAmountExtraChargesDateStatus

    FK1 MemberID

    Bill

    PK ID

    TypeDescriptionAmountoPayDate

    FK1 MemberID

    Order

    PK ID

    DateQuantity

    FK1 MemberIDFK2 StockID

  • 8/7/2019 Full Documentation

    10/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    10 | P a g e

    Data Flow Diagram (DFD)

    Context Diagram

  • 8/7/2019 Full Documentation

    11/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    11 | P a g e

    Data Flow Diagram Level 0

    FinancialDepartment

    6.0

    Report CashFlow

    Member

    2.0

    Make Order

    3.0

    UpdateInventory

    5.0

    Reorder Stock

    Supplier

    1.0

    MaintainMember Data Manager

    Cash flow

    Cash flow

    ReorderItem sold

    Item sold

    invoice

    orderMember

    data

    Stock numberDescriptionSelling price

    Stock numberQuantity sold

    Stock NumberStock on hand

    Reorder quantity

    Item ordered

    invoice

    Vendor dataSalesSales

    Item Sold

    Vendor

    Invoice

    Inventory

    Member Data

    Item Ordered

    4.0

    GenerateInvoice

    Inventory Details

    Invoice

  • 8/7/2019 Full Documentation

    12/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    12 | P a g e

    Membership-Level 1

  • 8/7/2019 Full Documentation

    13/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    13 | P a g e

    Point-of-Sales (POS)-Level 1

  • 8/7/2019 Full Documentation

    14/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    14 | P a g e

    Members Billing-Level 1

  • 8/7/2019 Full Documentation

    15/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    15 | P a g e

    Accounts Receivable-Level 1

  • 8/7/2019 Full Documentation

    16/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    16 | P a g e

    Inventory Management

  • 8/7/2019 Full Documentation

    17/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    17 | P a g e

    Data Dictionnary

    Table Name Column Name Data Type Size in Bytes Status

    MemberTable MembershipID Nvarchar 10 Primary Key

    Firstname Varchar 50 Not null

    Lastname Varchar 50 Not null

    Title Varchar 11 Not null

    Gender Varchar 50 Not null

    Address Varchar 50 Not null

    DOB Date 50 Not null

    JoinDate Varchar 50 Not null

    Zipcode Integer 50 Not null

    Telephone Integer 11 Not null

    Email Varchar 50 Not null

    MaritalStatus Varchar 11 Not null

    Table Name Column Name Data Type Size in Bytes Status

    StockTable Product Code Nvarchar 10 Primary Key

    Name Varchar 50 Not null

    Quantity Varchar 50 Not null

    Brand Name Varchar 11 Not null

    SupplierID Varchar 50 Secondary Key

    Price Varchar 50 Not null

  • 8/7/2019 Full Documentation

    18/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    18 | P a g e

    Table Name Column Name Data Type Size in Bytes Status

    EmployeeTable EmployeeID Nvarchar 10 Primary KeyFirstname Varchar 50 Not null

    Lastname Varchar 50 Not null

    Gender Varchar 50 Not null

    Address Varchar 50 Not null

    DOB Date 50 Not null

    JoinDate Varchar 50 Not null

    Department Integer 50 Not nullTelephone Integer 11 Not null

    Email Varchar 50 Not null

    MaritalStatus Varchar 11 Not null

    Table Name Column Name Data Type Size in Bytes Status

    StockTable StockID Nvarchar 10 Primary Key

    Name Varchar 50 Not null

    Quantity Varchar 50 Not null

    Brand Name Varchar 11 Not null

    SupplierID Varchar 50 Secondary Key

    Price Varchar 50 Not null

    Table Name Column Name Data Type Size in Bytes Status

    PaymentTable PaymentID Nvarchar 10 Primary Key

    MemberID Varchar 50 Secondary Key

    Method Varchar 50 Not null

    Amount Varchar 11 Not null

    ExtraCharges Varchar 50 Not null

    Date Varchar 50 Not null

    Status Varchar 50 Not null

  • 8/7/2019 Full Documentation

    19/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    19 | P a g e

    Gantt Chart

  • 8/7/2019 Full Documentation

    20/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    20 | P a g e

    Work L oad Matrix

    Task Vargaa Suntherreswaran

    Introduction *

    Acknowledgement *

    Data Flow Diagram * *

    Data Dictionary * *

    Gantt Chart * *

    Work Load Matrix *

    Hierarchy Chart * *

    Flow Chart * *

    Screen Design * *

    Report Design * *

    Task Plan * *Perceived Limitation * *

    Perceived Assumption * *

    Membership Registration *

    Point Of Sales *

    Members Billing * *

    Accounts Receivable * *

    Inventory Management * *

    User Guide * *

    Minutes of meeting *

  • 8/7/2019 Full Documentation

    21/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    21 | P a g e

    Hierarchy Charts

    Overall

  • 8/7/2019 Full Documentation

    22/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    22 | P a g e

    Membership

  • 8/7/2019 Full Documentation

    23/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    23 | P a g e

    Point-of-Sales

  • 8/7/2019 Full Documentation

    24/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    24 | P a g e

    Members Billing

  • 8/7/2019 Full Documentation

    25/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    25 | P a g e

    Accounts Receivable

  • 8/7/2019 Full Documentation

    26/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    26 | P a g e

    Inventory Management

  • 8/7/2019 Full Documentation

    27/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    27 | P a g e

    Report Management

  • 8/7/2019 Full Documentation

    28/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    28 | P a g e

    PSEUDO CODE

    1 - LOGIN MODULE

    BEGIN

    Open the Database

    Read (Username and Password)

    Check if (Username equals to Username in Database and Password equals to

    Password in Database depending either if The AdminCheckbox is checked or

    StaffCheckBox is checked)

    Close the Database

    If Yes then

    Goto to theMainMenu

    Else

    Display (Error in Username or Password)

    END

  • 8/7/2019 Full Documentation

    29/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    29 | P a g e

    2Main Menu

    BEGIN

    Load Menu Items

    If User Choose Membership menu

    Open Membership Page

    Else if user Choose Points of Sales menu

    Open Point of Sales Pages

    Else if user choose Members Billing menu

    Open Members Billing page

    Else if user choose Accounts Receivable menu

    Open Account Receivable page

    Else if user choose Inventory Management menu

    Open Inventory Management page

    End if

    END

  • 8/7/2019 Full Documentation

    30/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    30 | P a g e

    2MEMBERSHIP

    BEGIN

    Load form

    If User Clicks on New Membership Registration Button

    Goto New Membership Registration

    Else User Clicks on Modify / Terminate Membership Button

    Goto New Modify / Terminate Registration

    Else if User Clicks on Membership Report Button

    Goto New Membership Report

    End if

    END

  • 8/7/2019 Full Documentation

    31/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    31 | P a g e

    3 - New Registration

    BEGIN

    Open the Database

    Read (Membership ID, First Name, Last Name, Title, IC/Passport, Gender, DOB,

    Marital Status, Occupation, Address, Email, Contact No, Join Date)

    If (RegisterButton is clicked)

    Save (Membership ID, First Name, Last Name, Title, IC/Passport, Gender, DOB,

    Marital Status, Occupation, Address, Email, Contact No, Join Date) into the Database

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    32/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    32 | P a g e

    4 - Update / Delete Member

    BEGIN

    Open the Database

    Search Member by ID

    Enter Member ID

    If Member ID found in the database

    Fill up textbox object with corresponding values from database

    If (Edit Button is clicked)

    Update (Membership ID, First Name, Last Name, Title, IC/Passport,

    Gender, DOB, Marital Status, Occupation, Address, Email, Contact No, Join Date)

    Where Member ID equals to value entered into the Database

    Else if (Delete Button is clicked)

    Delete (Membership ID, First Name, Last Name, Title, IC/Passport,

    Gender, DOB, Marital Status, Occupation, Address, Email, Contact No, Join Date)

    Where Member ID equals to value entered into the Database

    Else

    Display (Member ID not found in the database)If (RegisterButton is clicked)

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    33/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    33 | P a g e

    5Point of Sales Form

    BEGIN

    Load form

    If User Clicks on New order Button

    Goto New Order Form

    Else User Clicks on Cancel Order Button

    Goto New Cancel Order Form

    Else if User Clicks on Report Point of Sales Button

    Goto New Report Point of Sales Report

    End if

    END

  • 8/7/2019 Full Documentation

    34/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    34 | P a g e

    6New Order

    BEGIN

    Open the Database

    Get Membership ID from Search in the database

    Get Name, and Food

    If (GenerateBill is clicked)

    Save (MembershipID, Name, Food) into the Database

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    35/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    35 | P a g e

    7Cancel Order

    BEGIN

    Open the Database

    Get Membership ID from Search in the database

    Get Name, and Food

    If (Delete is clicked)

    Delete (MembershipID, Name, Food) into the Database

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    36/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    36 | P a g e

    8Members Billing Form

    BEGIN

    Load form

    If User Clicks on Monthly Statement Button

    Goto Monthly Statement Form

    Else User Clicks on List of User Button

    Goto List of User Form

    Else if User Clicks on Member Billing Report Button

    Goto Member Billing Report

    End if

    END

  • 8/7/2019 Full Documentation

    37/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    37 | P a g e

    9Monthly Statement for Members

    BEGIN

    Open the Database

    Get Membership ID from Search in the database

    Get Name, and Food

    If (View Current Month Statement is clicked)

    Display Monthly Statement from the Database

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    38/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    38 | P a g e

    10List of Users

    BEGIN

    Open the Database

    Display All Members from Database

    Close the Database

    END

    11Inventory Management Form

    BEGIN

    Load form

    If User Clicks on Add New Product Button

    Goto New Add New Product Form

    Else User Clicks on Search / Delete Product Button

    Goto New Search / Delete Product Form

    Else if User Clicks on Update Product Button

    Goto Update Product Form

    End if

    END

  • 8/7/2019 Full Documentation

    39/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    39 | P a g e

    12Add New Product

    BEGIN

    Open the Database

    Get Product Code, Product Name, Quantity, Brand Name, Supplier, Price

    If (SaveButtom is clicked)

    Save (Product Code, Product Name, Quantity, Brand Name, Supplier, Price) into the

    Database

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    40/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    40 | P a g e

    13Delete Product

    BEGIN

    Open the Database

    Get Product Code or Product Name from Search in the database

    Get Product Code, Product Name, Quantity, Brand Name, Supplier, Price

    If (DeleteButton is clicked)

    Delete All Data from Database Where Product Code is equal to value searched

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    41/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    41 | P a g e

    14Update Product

    BEGIN

    Open the Database

    Get Product Code or Product Name from Search in the database

    Get Product Code, Product Name, Quantity, Brand Name, Supplier, Price

    If (UpdateButton is clicked)

    Update All Data from Database Where Product Code is equal to value searched

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    42/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    42 | P a g e

    15Goods Requisition Product

    BEGIN

    Open the Database

    Get Product Code or Product Name from Search in the database

    Get Product Code, Product Name, Quantity, Brand Name, Supplier, Price

    If (OKButton is clicked)

    Save Requisition Goods into Database

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    43/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    43 | P a g e

    16Purchase Order

    BEGIN

    Open the Database

    Get Delivery Order Number

    Get Supplier Code, Product Code or Product Name

    Get Product Details

    If (ReceiveButton is clicked)

    Save All Data into the Purchase table in the database Where Product Code is equal to

    value searched

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    44/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    44 | P a g e

    17Account Receivable Form

    BEGIN

    Load form

    If User Clicks on Payment Button

    Goto Payment Form

    End if

    END

  • 8/7/2019 Full Documentation

    45/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    45 | P a g e

    18Payment Accounts Reveivable Form

    BEGIN

    Open the Database

    Get Invoice Number

    Get Membership ID and Name

    If (OKButtom is clicked)

    Get Total Due

    Get Payment Receive and Balance

    Save Details into Payment Table into the Database

    Else if (ClearButton is clicked)

    Clear all data within the textbox

    End if

    Close the Database

    END

  • 8/7/2019 Full Documentation

    46/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    46 | P a g e

    19Report Menu

    BEGIN

    Load report menu Items

    If User Choose report menu

    Open Membership Report Page

    Else if user Choose Points of Sales Report

    Open Point of Sales Report

    Else if user choose Members Billing Report

    Open Members Billing Report

    Else if user choose Accounts Receivable Report

    Open Account Receivable Report

    Else if user choose Inventory Management Report

    Open Inventory Management Report

    End if

  • 8/7/2019 Full Documentation

    47/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    47 | P a g e

    Test plan

    TEST PLAN (Main Screen)

    Text Cases Description Expected Outcome

    Login button A button that is written login It opens the main menu system

    screenClear button A button that is written clear Clears/delete the data/input

    entered in the text box.

    Exit button A button that is written exit It exit from the system

    TEST PLAN (Main Menu Screen)

    Text Cases Description Expected Outcome

    Membership button A button that is written

    membership

    It opens the membership menu

    Point-of - sales button A button that is written point-of

    - sales

    It opens the point-of-sales menu

    Members billing button A button that is written

    members billing

    It opens the members billing

    menu

    Account receivable button A button that is written accountreceivable

    It opens the accounts receivablemenu

    Inventory management button A button that is written

    inventory management

    It opens the inventory

    management screen

    Logout button A button that is written logout It exits/logouts the main screen

    and system

  • 8/7/2019 Full Documentation

    48/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    48 | P a g e

    TEST PLAN (Membership Menu)

    Text Cases Description Expected Outcome

    New Membership Registration

    button

    A button that is written new

    members registration

    It open the new membership

    registration screen

    Modify/ Terminate

    Membership button

    A button that is written modify

    or to terminate membership

    It open the modify or terminate

    membership screen

    TEST PLAN (New Membership Registration)

    Text Cases Description Expected Outcome

    Save button A button that is written save It save the membership to the

    database

    Clear button A button that is written clear It clears the input/ data

    entered in the text box

  • 8/7/2019 Full Documentation

    49/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    49 | P a g e

    TEST PLAN (Modify/ Terminate Membership)

    Text Cases Description Expected Outcome

    Save button A button that is written save It save the membership to the

    database

    Modify button A button that is written

    Modify

    When the button is press it

    allows the users to modify

    few particular.

    Terminate button A button that is written

    terminate

    It terminates members

    information from the database.

    It removes entire particular

    about the member

    Search button A button that is written search It allows the user to search the

    particular member with their

    members id.

    TEST PLAN (Point-Of-Sales Menu)

    Text Cases Description Expected Outcome

    New order button A button that is written new

    order

    It open the new order screen

    Select button A button that is written select It select between the options of

    cafe

  • 8/7/2019 Full Documentation

    50/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    50 | P a g e

    TEST PLAN (New Order Button- Point-Of-Sales)

    Text Cases Description Expected Outcome

    Add button A button that is written add To add more food menu to the

    list.

    Search button A button that is written search It allows the user to search the

    particular member with their

    members id.

    Print button A button that is written print

    button

    It allows the bill of the food to

    be print.

    Remove button A button that is written remove

    button

    The remove button is used to

    remove dishes from list box

    Total price A button that is written total

    price

    This button will total the cost

    entire menu which was selected

    TEST PLAN (Members Billing)

    Text Cases Description Expected Outcome

    Monthly statement button A button that is written monthly

    statement

    It open the month statement of

    the user in monthly statement

    screen

    TEST PLAN (Monthly Statement)

    Text Cases Description Expected Outcome

    Search button A button that is written search It allows the user to search the

    particular member with their

    members id.

    View current month statement

    button

    A button that is written view

    current statement

    Current month statement of the

    member can be view in new

    form

  • 8/7/2019 Full Documentation

    51/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    51 | P a g e

    View monthly statement button A button that is written view

    previous statement

    Previous month statements can

    be view in form after selected

    month in calendar

    Print statement A button that is written print

    statement

    It allows the KDE to print and

    send the statement to members.

    TEST PLAN (Account Receivable)

    Text Cases Description Expected Outcome

    Payment A button that is written payment It open the payment account

    receivable screen

    Modify Details A button that is written modify

    details

    It open login screen to modify

    after user_id and password

    given correctly then it will

    proceed to modify screen.

    Report of Accounts Receivable A button that is written report of

    account receivable

    It open report of account

    receivable

    Back to menu button A button that is back to main It brings user to main menu

    Logout button A button that is written logout It exits/logouts the main screen

    and system

    TEST PLAN (Payment Accounts Receivable)

    Text Cases Description Expected Outcome

    Ok button A button that is written ok The ok button search for

    member id/ name

    Ok button A button that is written ok The ok button search for invoice

    number

    Ok button A button that is written ok The ok button confirm after the

    payment has been done.

    Back to menu button A button that is back to main It brings user to the member

    Accounts receivable

  • 8/7/2019 Full Documentation

    52/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    52 | P a g e

    TEST PLAN (Modify details)

    Text Cases Description Expected Outcome

    Login button A button that is written login It opens the main menu system

    screen

    Clear button A button that is written clear Clears/delete the data/input

    entered in the text box.

    Ok button A button that is written ok The ok button search for

    member id/ name

    Ok button A button that is written ok The ok button search for invoice

    number

    Modify button A button that is written modify To modify the total amount

    Modify button A button that is written modify To modify the amount to pay.

    Save button A button that is written save It save the modify payments

    to the database

    Back to menu button A button that is back to main It brings user to the member

    Accounts receivable

    TEST PLAN (Report of Accounts Receivable)

    Text Cases Description Expected Outcome

    Overall Year Report

    button

    A button that is written overall

    year report button

    It view the accounts receivable

    for entire year

    Overall Individual Report A button that is written

    overall individual report

    button

    It view vie the accounts

    receivable for individual

    Back to menu button A button that is back to main It brings user to the member

    Accounts receivable

  • 8/7/2019 Full Documentation

    53/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    53 | P a g e

    TEST PLAN (Inventory Management)

    Text Cases Description Expected Outcome

    Inventory button A button that is written

    inventory

    It open the inventory screen

    Receive goods button A button that is written receive

    goods

    It open the receive goods screen

    Report of inventory

    management button

    A button that is written report of

    inventory management

    It open report of inventory

    management

    Goods requisition button A button that is written goodsrequisition

    It brings user to the goodsrequisition screen

    Logout button A button that is written logout It exits/logouts the main screen

    and system

    Purchase Order A button that is written

    purchase order

    It open the purchase order

    screen

    Back to menu button A button that is back to main It brings user to main menu

  • 8/7/2019 Full Documentation

    54/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    54 | P a g e

    TEST PLAN (Inventory Management Level 1)

    Text Cases Description Expected Outcome

    Add New Product button A button that is written add new

    product

    It open the add new product in

    inventory screen.

    Search/ Delete Product button A button that is written search/

    delete product

    It opens search/delete product in

    inventory screen

    Update Product button A button that is written update

    product

    It open update screen in

    inventory management

    Save button A button that is written save It save the edited inventory to

    the database

    Back to menu button A button that is back to main It brings user to inventory

    management level 0

    Update button A button that is written update It will update the product

    inventory

    Delete button A button that is written delete It will delete the product

    inventory

  • 8/7/2019 Full Documentation

    55/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    55 | P a g e

    PERCEIVED ASSUMPTION AND

    LIMITATION

    Membership Registration (Membership)

    Assumptions

    There are several assumptions in member registration (Membership). The assumptions are:

    Only staffs are allowed to use the system to ensure the system is not used byother. There will password and username will be given. This is to protect the

    privacy of the members and disclosure.

    All the staff in admin can modify and terminate membership. The membership report is viewed in alphabetic mode from a-z. Report can be

    view monthly basis.

    Limitations

    There are several limitations in the membership registration (Membership). The limitations

    are:

    Each time the staff wanted to modify, terminate, add new membership or toview report the have press the back button and go from the membership menu.

    There is no direct link from one page to another page.

    There is no online registration for the new member.

  • 8/7/2019 Full Documentation

    56/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    56 | P a g e

    Point of Sales (POS)

    Assumptions

    There are several assumptions in Point of sales. The Assumptions are:

    The function of POS is to have a proper billing and order system to avoid problemswith the customer.

    The outlets can review the sales everyday and monthly by the point of sales report.

    Limitations

    There are several limitations in the Point of sales. The limitations are:

    Only the bill is printed to the customer not the receipt.

  • 8/7/2019 Full Documentation

    57/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    57 | P a g e

    Members Billing

    Assumptions

    There are several assumptions in the members billing. The assumptions are:

    The function of billing module is to produce and print monthly billing statement,invoice transaction report and update account receivable database.

    The member and the administrator of the KDE club can able to view and print currentmonth and previous month statement.

    The administrator can view entire members statement list for the current month anddue of payment.

    Limitations

    There are several limitations in the members billing. The limitations are:

    The billing statement is limited to 12months only. The entire database will be deletingfor the year after the 12month.

  • 8/7/2019 Full Documentation

    58/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    58 | P a g e

    Accounts Receivable

    Assumptions

    There are several assumptions in account receivable. The Assumptions are:

    Staff can search the member invoice by key in the invoice number and also bymember id.

    .

    Limitations

    There are several limitations in the accounts receivable. The limitations are:

    Data could be inaccurate due to typing error.

  • 8/7/2019 Full Documentation

    59/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    59 | P a g e

    Inventory Management

    Assumptions

    There are several assumptions in inventory management. The assumptions:-

    The function is to have an up-to-date detail on the inventory department to avoidwastages on the raw materials and to have a better detail on the current stocks

    available.

    The account department will handle payment when stocks reach the warehouse.There are several limitations in the Inventory Management. The limitations are:

    Staffs need to know the product code to update the system.

  • 8/7/2019 Full Documentation

    60/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    60 | P a g e

    Future Enhancement

    At the end of this study, we can say that there are many improvements which need to be

    done, because any system is perfect. As future references, we can have:

    Make a version of the system to be online so that, the any personal working on thehospital can be able everwhere to login into the system and work;

    Differentiation of departments whereby every department will have his own way tohandle his duty;

    Permit connectivity among the department to have a better, fast and secure network inthe hospistal;

    Patient will have the possibility to request for an appointment from their home place; Patient will be able to make a payment online through the new version of the system

    (online)

    Add on a sms feature to permit to the employees to send message directly to thephone of the patient with low cost

  • 8/7/2019 Full Documentation

    61/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    61 | P a g e

    User Manual

    Figure 1.0 Login screen of the KDE Management System

    User ID and password are only generated to those who work in KDE Management System. After the

    user key-in their user Id and password. The user must click the login button to login the main menu.

    Username: lee password :lee123

    Figure 1.1 Successfully Login screen

    The above figure will only will appear once the username and password is correct and will enter the

    main menu of the KDE Management.

  • 8/7/2019 Full Documentation

    62/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    62 | P a g e

    Figure 1.2 Invalid Value Screen

    The above figure will only appear when incorrect password and username is been keep-in in thelogin screen. User can retry or cancel to enter the menu.

    Figure 2.0: Shows main menu of the KDE Management System

    This screen can only appear is the username and password is type correctly. Every staff of the club

    will have accessibility to the most of features in the system. In this main menu includes membership,

    point of sales, members billing. Accounts receivable, inventory management and report.

  • 8/7/2019 Full Documentation

    63/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    63 | P a g e

    Figure 2.1 Shows the Files menu.

    In the files sub menu it contains two part logout and exit from the system. If the user press logout it

    go back to the figure 1.0 or if the user press exit it exits from the entire system.

    Figure 2.2 Shows the Membership menu

    In the membership menu it contains two part new registration for the new members and

    modify/terminate membership for existing customer in KDE Management System.

  • 8/7/2019 Full Documentation

    64/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    64 | P a g e

    Figure 3.0 New registration

    When the user clicks the new registration from membership menu, the user has to key-in the details

    of the new user in the club. Once everything completed the user has to click the register button. If

    the user mistakenly key-in. The user can press the button clear to redo the entire registration again.

    Once everything is done the user has click the exit button on the top to exit or redo the process.

  • 8/7/2019 Full Documentation

    65/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    65 | P a g e

    Figure 3.1 Modify/ Terminate

    When the user clicks the modify/terminate from membership menu, the user has to search themember ID first and then click edit or delete data. Once the data has been edited or deleted the user

    has to press the save button in order to save the data in the database. Once everything is done the

    user has click the exit button on the top to exit or redo the process.

    Figure 4.0 Point of sales

    When the user clicks on points of sales there will be only one submenu new order

    Figure 4.1 Choose Caf

  • 8/7/2019 Full Documentation

    66/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    66 | P a g e

    This screen will only appear once the user clicks the new order from the point of sales. Then the user

    will choose one of the caf listed.

    Figure 4.2

    Once the selected caf has been choosen the user has press the select caf button in order for the

    pos screen to appear

    Figure 4.3 New order form for Points of sales

    The user has key-in the member id and press the search button. Then only all the menu will enable.

  • 8/7/2019 Full Documentation

    67/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    67 | P a g e

    Figure 4.4 After selecting all the your menu then user has to press the total price button. User can

    also press the remove button if the menu of their choice. It can also be made before the pressing the

    total price button. After press the total price button the user has to press save record in order to

    save to the database and print button to give the bill to the customer for own their record.

    Figure 5.0 Members Billing

    In members billing there is one sub menu that is monthly statement. The user have to do the normal

    procedure search for Member Id. Once the first name and last name appear the user can print the

    current month statement or view current month statement

  • 8/7/2019 Full Documentation

    68/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    68 | P a g e

    Figure 5.1 Monthly Statement

    This how the monthly statement looks like

    Figure 6.0 Accounts receivable- Payment screen

    Once the member id has been search the total amount due will be appear that total amount due list

    box. The user has key in the amount of payment receive and pay the button get payment.

  • 8/7/2019 Full Documentation

    69/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    69 | P a g e

    Figure 7.0 Inventory Management / New Item

    In the inventory management user fill up the new item and register the new item that wanted to addin the club. After they fill up the form the can press the button register to save to the database

    Figure 7.1 Inventory Management / Modify

    The club can also modify the existing item in the inventory management.

  • 8/7/2019 Full Documentation

    70/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    70 | P a g e

    Appendix

    Minutes of Meeting

    Minutes of meeting 1

    Time: 12.00p.m.-1.00 p.m.

    Date : 20/11/2010

    Location: Apiit (Level 2)

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Details of the meeting

    Discuss question together. Discuss of Hierarchy Chart Discuss of the screen design

    Minutes of meeting 2

  • 8/7/2019 Full Documentation

    71/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    71 | P a g e

    Time: 12.00p.m.-1.00 p.m.

    Date : 25/11/2010

    Location: Apiit (Level 2)

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    - Completed Hierarchy charts- Half way on the Screen Design

    Details of the meeting

    Discuss of the Data flow Diagram (DFD) Discuss of the mistakes done in the screen design.

  • 8/7/2019 Full Documentation

    72/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    72 | P a g e

    Minutes of meeting 3

    Time: 12.00p.m.-1.00 p.m.

    Date : 2/12/2010

    Location: Apiit (Level 2)

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    - Completed Data flow Diagram (DFD)- Completed screen design.

    Details of the meeting

    Discuss data dictionary Discuss of the mistakes done in the screen design. Discuss of the induction of the kelab darul ehsan

  • 8/7/2019 Full Documentation

    73/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    73 | P a g e

    Minutes of meeting 4

    Time: 12.00p.m.-1.00 p.m.

    Date : 9/12/2010

    Location: Apiit (Level 2)

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    completed in the screen design. completed induction of the kelab darul ehsan

    Details of the meeting

    Discuss about the report design Discuss about the test plan Discuss about the perceived assumption and limitation Gantt Chart

  • 8/7/2019 Full Documentation

    74/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    74 | P a g e

    Minutes of meeting 5

    Time: 8.00p.m.-9.00 p.m.

    Date : 13/12/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    Completed the report design Completed the test plan Completed perceived assumption and limitation Completed Gantt chart

    Remark of the meeting

    The partial documentation is already submitted. Waiting for lecturer to approve.

  • 8/7/2019 Full Documentation

    75/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    75 | P a g e

    Minutes of meeting 6

    Time: 8.00p.m.-9.00 p.m.

    Date : 23/12/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Agenda

    completed the presentation but the partial documention was rejected by lecturer.

    Certain part of the documentation was mising such as the DFD level 0 and

    pseudocode.

    Details of the meeting

    Discussed of the DFD level 0 Discussed about pseudo code Discussed about all the other minor problem in partial

    Remark of the meeting

    Need to redo the partial document again and submit to the lecturer to approve.

  • 8/7/2019 Full Documentation

    76/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    76 | P a g e

    Minutes of meeting 7

    Time: 12.00p.m.-1.00 p.m.

    Date : 30/12/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    Completed the DFD level 0 and correction DFD level 1 Half way on the pseudo code

    .

    Details of the meeting

    Problem faced in the pseudo code Discussed about all the other minor problem in partial

  • 8/7/2019 Full Documentation

    77/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    77 | P a g e

    Minutes of meeting 8

    Time: 12.00p.m.-1.00 p.m.

    Date : 6/01/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    Completed pseudo code Completed all the minor partial documentation

    .

    Details of the meeting

    Waiting to get approve from the lecturer to get coding started.

    Remark

    Submitted on the 11th January and got approve from the lecturer to being codingon the same day.

  • 8/7/2019 Full Documentation

    78/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    78 | P a g e

    Minutes of meeting 9

    Time: 12.00p.m.-1.00 p.m.

    Date : 13/01/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    Got the partial documentation approve from lecturerDetails of the meeting

    Discuss about the membership coding and interface Discuss about the POS coding

    .

    Remark

    Start the cooding on the particular day itself

  • 8/7/2019 Full Documentation

    79/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    79 | P a g e

    Minutes of meeting 10

    Time: 12.00p.m.-1.00 p.m.

    Date : 20/01/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    Complete the membership coding Half through coding on point of sale

    Details of the meeting

    Discuss about the members billing Discuss about the POS coding

    .

  • 8/7/2019 Full Documentation

    80/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    80 | P a g e

    Minutes of meeting 12

    Time: 12.00p.m.-1.00 p.m.

    Date : 27/01/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    Complete members billing coding Complete POS coding

    Details of the meeting

    Discuss about the account receivable coding Discuss about Inventory management coding

    .

    Minutes of meeting 12

  • 8/7/2019 Full Documentation

    81/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    81 | P a g e

    Time: 12.00p.m.-1.00 p.m.

    Date : 04/02/2010

    Location: Our Residents

    Attendance: Vargaa Arputhaselan

    Suntherreswaran Santhanamoorthi

    Prepared by: Vargaa Arputhaselan

    Progress Report

    Complete account receivable coding Complete inventory management coding

    Details of the meeting

    Discuss about the crystal report Discuss about full documentation

    Remark

    The last meeting of the SDP project

  • 8/7/2019 Full Documentation

    82/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    82 | P a g e

    Coding

    Login Form

    Imports System.Data.OleDbPublicClass Login

    Dim cn As OleDbConnectionDim cmd As OleDbCommandDim dr As OleDbDataReaderDim str AsStringPrivateSub btnlogin_Click(ByVal sender As System.Object, ByVal e As

    System.EventArgs) Handles btnlogin.Click

    cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource = KDEManagementSystem.mdb")

    'provider to be used when working with access databasecn.Open()cmd = New OleDbCommand("Select UserID, Password from [User] where

    UserID ='" & txtuserid.Text & "'", cn)dr = cmd.ExecuteReaderdr.Read()If dr.HasRows Then

    If dr(1) = txtpwd.Text ThenMe.Hide()MessageBox.Show("Succefully Login", "Successfully Login",

    MessageBoxButtons.OK, MessageBoxIcon.Information)

    MainMenu.Show()Else

    MessageBox.Show("Invalid Password", "Invalid Value",MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)

    EndIfElse

    MessageBox.Show("Invalid UserID", "Invalid Value",MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)

    EndIf

    dr.Close()

    cn.Close()EndSub

    PrivateSub btncancel_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btncancel.Click

    Me.Close()

    EndSub

    EndClass

  • 8/7/2019 Full Documentation

    83/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    83 | P a g e

    Main Menu

    Imports System.Windows.Forms

    PublicClass MainMenu

    PrivateSub NewMemberRegistrationToolStripMenuItem_Click( ByVal senderAs System.Object, ByVal e As System.EventArgs) HandlesNewMemberRegistrationToolStripMenuItem.Click

    NewRegistration.MdiParent = MeNewRegistration.Show()

    EndSub

    PrivateSub ModifyTerminateToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesModifyTerminateToolStripMenuItem.Click

    MembersDetails.MdiParent = MeMembersDetails.Show()

    EndSub

    PrivateSub LogoutToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesLogoutToolStripMenuItem.Click

    Me.Close()Login.Show()

    EndSub

    PrivateSub ExitToolStripMenuItem_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click

    Me.Close()Login.Show()

    EndSub

    PrivateSub NewOrderToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesNewOrderToolStripMenuItem.Click

    ChooseCafe.MdiParent = MeChooseCafe.Show()

    EndSub

    PrivateSub MainMenu_FormClosed(ByVal sender AsObject, ByVal e AsSystem.Windows.Forms.FormClosedEventArgs) HandlesMe.FormClosed

    Login.Show()EndSub

    PrivateSub MonthlyStatementToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesMonthlyStatementToolStripMenuItem.Click

    MonthlyStatement.MdiParent = MeMonthlyStatement.Show()

    EndSub

  • 8/7/2019 Full Documentation

    84/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    84 | P a g e

    PrivateSub AddNewToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handles

    AddNewToolStripMenuItem.ClickNewItem.MdiParent = MeNewItem.Show()

    EndSub

    PrivateSub ModifyDeleteToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesModifyDeleteToolStripMenuItem.Click

    ItemDetails.MdiParent = MeItemDetails.Show()

    EndSub

    PrivateSub PaymentToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesPaymentToolStripMenuItem.Click

    Payment.MdiParent = MePayment.Show()

    EndSubEndClass

    Membership_New Registration

    Imports System.Data.OleDbPublicClass NewRegistration

    Dim cn As OleDbConnection

    Dim cmd As OleDbCommandDim dr As OleDbDataReaderDim da AsNew OleDbDataAdapter()Dim cb As OleDbCommandBuilderDim dsMember AsNew DataSet()

    Dim str AsString

    PrivateSub btnregister_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnregister.Click

    'Dim icount As Integer

    Dim Symbol1 AsIntegerDim Symbol2 AsIntegerDim TestString AsString

    TestString = txtEmail.Text()Symbol1 = InStr(TestString, "@")Symbol2 = InStr(TestString, ".")

    If txtAddress.Text = ""Or txtcontact.Text = ""Or txtEmail.Text =""Or txtFname.Text = ""Or txtLname.Text = ""Or txtICno.Text = ""OrtxtJoinedDate.Text = ""Or txtMembershipID.Text = "KDE"Or

    txtOccupation.Text = ""Then

  • 8/7/2019 Full Documentation

    85/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    85 | P a g e

    MessageBox.Show("Please fill in the required fields", "Error",MessageBoxButtons.OK, MessageBoxIcon.Error)

    ElseIf (Symbol1 0) And (Symbol2 0) ThenTry

    cn = NewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source =KDEManagementSystem.mdb")

    cn.Open()Catch ex As Exception

    MsgBox(ex.Message)EndTry

    cmd = New OleDbCommand("Select * from [Member]", cn)dr = cmd.ExecuteReaderdr.Read()

    If dr(0) = txtMembershipID.Text ThenMessageBox.Show("This Member ID is already has been

    Registered!!! Please Enter New Member ID with increment of value '1' ofprevious Member ID", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error)

    Elsestr = "INSERT INTO Member([MemberID], [FName], [LName],

    [Title], [IC/Passport], [Gender], [DOB], [MaritalStatus], [Occupation],[Address],[ContactNo], [Email], [JoinedDate]) Values('" &txtMembershipID.Text & "', '" & txtFname.Text & "', '" & txtLname.Text &"', '" & cbTitle.Text & "', '" & txtICno.Text & "', '" & cbGender.Text &"', '" & DateTimePicker1.Text & "', '" & cbMaritalStatus.Text & "', '" &txtOccupation.Text & "', '" & txtAddress.Text & "', '" & txtcontact.Text &"', '" & txtEmail.Text & "', '" & txtJoinedDate.Text & "')"

    cmd = New OleDbCommand(str, cn)cmd.ExecuteNonQuery()

    MessageBox.Show("Registered is Save Succefully", "Done",MessageBoxButtons.OK, MessageBoxIcon.Information)

    cn.Close()Me.Close()

    EndIf

    ElseMessageBox.Show("Please enter a valid e-mail address", "Error",

    MessageBoxButtons.OK, MessageBoxIcon.Error)EndIf

    EndSub

    PrivateSub NewRegistration_Load(ByVal sender As System.Object, ByVal e

    As System.EventArgs) HandlesMyBase.Load

  • 8/7/2019 Full Documentation

    86/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    86 | P a g e

    Dim MemID(6), add(6) AsString

    Dim jd AsDate

    jd = Now.DatetxtJoinedDate.Text = jd

    txtJoinedDate.Enabled = False

    'MemID(0) = "K"'MemID(1) = "D"'MemID(2) = "E"'MemID(3) = "0"'MemID(4) = "0"'MemID(5) = "0"'MemID(6) = "0"

    cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource = KDEManagementSystem.mdb")

    'provider to be used when working with access databasecn.Open()cmd = New OleDbCommand("Select MemberID from Member", cn)dr = cmd.ExecuteReaderdr.Read()

    Dim qryMem AsString = "Select MemberID from Member"da.SelectCommand = New OleDbCommand(qryMem, cn)cb = New OleDbCommandBuilder(da)

    'Dim cb As OleDbCommandBuilder = New OleDbCommandBuilder(da)

    da.Fill(dsMember, "Member")Dim dt As DataTable = dsMember.Tables("Member")

    If dr.HasRows Then

    add(6) = dt.Rows(dt.Rows.Count - 1)("MemberID")

    lblLastMemID.Text = add(6)

    Else

    'MemID(3) = "0"'MemID(4) = "0"'MemID(5) = "0"'MemID(6) = "1"

    'txtMembershipID.Text = MemID(3) & MemID(4) & MemID(5) &MemID(6)

    txtMembershipID.Text = "0001"

  • 8/7/2019 Full Documentation

    87/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    87 | P a g e

    EndIf

    EndSub

    PrivateSub btnClear_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnClear.Click

    txtAddress.Clear()txtcontact.Clear()txtEmail.Clear()txtFname.Clear()txtICno.Clear()txtJoinedDate.Clear()txtLname.Clear()txtMembershipID.Clear()txtOccupation.Clear()txtMembershipID.Focus()

    EndSub

    EndClass

    Membership_Modify/Terminate

    Imports System.Data.OleDbPublicClass MembersDetails

    Dim cn As OleDbConnectionDim cmd As OleDbCommandDim dr As OleDbDataReader

    Dim str AsStringPrivateSub MembersDetais_Load(ByVal sender As System.Object, ByVal e

    As System.EventArgs) HandlesMyBase.Load

    txtFname.Enabled = FalsetxtICno.Enabled = FalsetxtLname.Enabled = FalsetxtMembershipID.Enabled = FalsecbGender.Enabled = FalseDateTimePicker1.Enabled = False

    txtcontact.Enabled = FalsetxtAddress.Enabled = False

    txtEmail.Enabled = FalsetxtOccupation.Enabled = FalsecbMaritalStatus.Enabled = FalsecbTitle.Enabled = False

    btndelete.Enabled = Falsebtnedit.Enabled = Falsebtnsave.Enabled = False

    lblAdd.Hide()lblEmail.Hide()lblNo.Hide()lblOcc.Hide()

    EndSub

  • 8/7/2019 Full Documentation

    88/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    88 | P a g e

    PrivateSub btnsearch_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnsearch.Click

    txtAddress.Clear()txtcontact.Clear()txtEmail.Clear()txtFname.Clear()txtICno.Clear()txtLname.Clear()txtMembershipID.Clear()txtOccupation.Clear()

    If txtsearch.Text = "KDE"ThenMessageBox.Show("You haven't enter any Member ID. Please enter

    a Member ID to Search Box.", "ERROR", MessageBoxButtons.OK,MessageBoxIcon.Error)

    Elsecn = New OleDbConnection("provider= Microsoft.Jet.OLEDB.4.0;

    Data Source = KDEManagementSystem.mdb")cn.Open()str = "Select * from [Member]"cmd = New OleDbCommand(str, cn)dr = cmd.ExecuteReader

    While dr.Read()If dr(0) = txtsearch.Text Then

    txtMembershipID.Text = dr(0)txtFname.Text = dr(1)txtLname.Text = dr(2)cbTitle.Text = dr(3)txtICno.Text = dr(4)cbGender.Text = dr(5)DateTimePicker1.Text = dr(6)cbMaritalStatus.Text = dr(7)

    txtOccupation.Text = dr(8)txtAddress.Text = dr(9)txtcontact.Text = dr(10)txtEmail.Text = dr(11)

    EndIf

    EndWhile

    If txtMembershipID.Text = "KDE"ThenMessageBox.Show("The Member ID is not found in Database.

    Please check the Member ID again.", "ERROR", MessageBoxButtons.OK,MessageBoxIcon.Error)

    Elsebtnedit.Enabled = True

  • 8/7/2019 Full Documentation

    89/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    89 | P a g e

    btndelete.Enabled = True

    EndIf

    EndIf

    EndSub

    PrivateSub btnedit_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnedit.Click

    lblAdd.Show()lblEmail.Show()lblNo.Show()lblOcc.Show()

    txtcontact.Enabled = TruetxtAddress.Enabled = TruetxtEmail.Enabled = TruetxtOccupation.Enabled = TruetxtICno.Enabled = TruecbMaritalStatus.Enabled = TruecbTitle.Enabled = True

    btnsave.Enabled = Truebtnedit.Enabled = Falsebtndelete.Enabled = False

    EndSub

    PrivateSub btnsave_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnsave.Click

    cn = New OleDbConnection("provider= Microsoft.Jet.OLEDB.4.0; DataSource = KDEManagementSystem.mdb")

    cn.Open()

    str = "Update Member SET [Title] = '" & cbTitle.Text & "',[IC/Passport] = '" & txtICno.Text & "', [Gender] = '" & cbGender.Text & "',[DOB] = '" & DateTimePicker1.Text & "', [MaritalStatus] = '" &cbMaritalStatus.Text & "', [Occupation] = '" & txtOccupation.Text & "',Address = '" & txtAddress.Text & "', [ContactNo] = '" & txtcontact.Text &"', [Email] = '" & txtEmail.Text & "'where MemberID = '" &

    txtMembershipID.Text & "'"

    cmd = New OleDbCommand(str, cn)cmd.ExecuteNonQuery()

    MessageBox.Show("Changes had been Saved Succefully", "Done",MessageBoxButtons.OK, MessageBoxIcon.Information)

    cn.Close()

    txtFname.Enabled = FalsetxtICno.Enabled = FalsetxtLname.Enabled = False

    txtMembershipID.Enabled = FalsecbGender.Enabled = False

  • 8/7/2019 Full Documentation

    90/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    90 | P a g e

    DateTimePicker1.Enabled = False

    txtcontact.Enabled = FalsetxtAddress.Enabled = FalsetxtEmail.Enabled = FalsetxtOccupation.Enabled = FalsecbMaritalStatus.Enabled = FalsecbTitle.Enabled = False

    btndelete.Enabled = Falsebtnedit.Enabled = Falsebtnsave.Enabled = False

    lblAdd.Hide()lblEmail.Hide()lblNo.Hide()lblOcc.Hide()

    txtAddress.Clear()txtcontact.Clear()txtEmail.Clear()txtFname.Clear()txtICno.Clear()txtLname.Clear()txtMembershipID.Clear()txtOccupation.Clear()txtsearch.Clear()

    txtsearch.Focus()EndSub

    PrivateSub btndelete_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btndelete.Click

    If txtMembershipID.Text = ""And txtEmail.Text = ""ThenMessageBox.Show("Please insert a Member ID or get info before

    delete!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning)ElseIf MessageBox.Show("Are you sure want to delet this record?",

    "ARE YOU SURE?", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop) =Windows.Forms.DialogResult.Cancel Then

    Me.Show()Else

    cn = New OleDbConnection("provider= Microsoft.Jet.OLEDB.4.0;Data Source = KDEManagementSystem.mdb")

    cn.Open()str = "delete from Member where [MemberID] = '" &

    txtMembershipID.Text & "'"cmd = New OleDbCommand(str, cn)cmd.ExecuteNonQuery()

    lblAdd.Hide()lblEmail.Hide()lblNo.Hide()

    lblOcc.Hide()

  • 8/7/2019 Full Documentation

    91/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    91 | P a g e

    txtAddress.Clear()txtcontact.Clear()

    txtEmail.Clear()txtFname.Clear()txtICno.Clear()txtLname.Clear()txtMembershipID.Clear()txtOccupation.Clear()

    txtsearch.Clear()txtsearch.Focus()

    MessageBox.Show("Record Successfully Deleted", "DONE",MessageBoxButtons.OK, MessageBoxIcon.Information)

    EndIfEndSub

    EndClass

    Point of Sales_New Order_Choose Caf

    PublicClass ChooseCafe

    PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click

    If cbChooseCafe.SelectedItem = ""Then

    MessageBox.Show("Please Select A Cafe Before You Take Order.Thank You.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error)

    ElseIf cbChooseCafe.SelectedItem = "Malaysian Cafe"Then

    NewOrder_MCafe.MdiParent = MainMenuNewOrder_MCafe.Show()Me.Close()

    ElseNewOrder_WCafe.MdiParent = MainMenuNewOrder_WCafe.Show()Me.Close()

    EndIfEndIf

    EndSubEndClass

  • 8/7/2019 Full Documentation

    92/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    92 | P a g e

    Point of Sales_New Order_Malaysian Caf

    Imports System.Data.OleDbPublicClass NewOrder_MCafe

    Dim cn As OleDbConnectionDim cmd As OleDbCommandDim dr As OleDbDataReaderDim da AsNew OleDbDataAdapter()Dim cb As OleDbCommandBuilderDim dsPos AsNew DataSet()Dim str, mon, add AsStringDim Sum AsDecimal = 0Dim d AsDate = Now.DateDim t As DateTime = DateTime.Now.ToLongTimeString()

    PrivateSub NewOrder_MCafe_Load(ByVal sender As System.Object, ByVal eAs System.EventArgs) HandlesMyBase.Load

    lbCafeName.Text = ChooseCafe.cbChooseCafe.Text

    cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource = KDEManagementSystem.mdb")

    'provider to be used when working with access databasecn.Open()cmd = New OleDbCommand("Select BillNo from POS", cn)dr = cmd.ExecuteReaderdr.Read()

    Dim qryMem AsString = "Select BillNo from POS"da.SelectCommand = New OleDbCommand(qryMem, cn)cb = New OleDbCommandBuilder(da)

    'Dim cb As OleDbCommandBuilder = New OleDbCommandBuilder(da)

    da.Fill(dsPos, "POS")Dim dt As DataTable = dsPos.Tables("POS")

    If dr.HasRows Thenadd = dt.Rows(dt.Rows.Count - 1)("BillNo")

    lblBillNo.Text = add + 1Else

    lblBillNo.Text = "1"EndIf

    mon = Month(Now).ToString

    If mon = 1 Thenmon = "January"

    ElseIf mon = 2 Thenmon = "February"

    ElseIf mon = 3 Thenmon = "March"

    ElseIf mon = 4 Thenmon = "April"

  • 8/7/2019 Full Documentation

    93/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    93 | P a g e

    ElseIf mon = 5 Thenmon = "May"

    ElseIf mon = 6 Thenmon = "Jun"ElseIf mon = 7 Then

    mon = "July"ElseIf mon = 8 Then

    mon = "August"ElseIf mon = 9 Then

    mon = "September"ElseIf mon = 10 Then

    mon = "October"ElseIf mon = 11 Then

    mon = "November"ElseIf mon = 12 Then

    mon = "December"EndIf

    Mfoodprice()DrinksPrice()

    btnAddDrink.Enabled = FalsebtnAddFood.Enabled = FalsebtnPrint.Enabled = FalsebtnRemove.Enabled = FalsebtnTotalPrice.Enabled = FalsebtnPrint.Enabled = FalsebtnSaveRec.Enabled = False

    txtFname.Enabled = Falsetxtdate.Enabled = False

    tabctrlMenu.Enabled = FalseEndSub

    Sub Mfoodprice()cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data

    Source = KDEManagementSystem.mdb")'provider to be used when working with access databasecn.Open()cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoods

    where FoodName = '" & rbtnAyamPenyet.Text & "'", cn)dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblAyam.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnBakKutTeh.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblBak.Text = dr(1)

  • 8/7/2019 Full Documentation

    94/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    94 | P a g e

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnBananaLeafRice.Text & "'", cn)dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblBanana.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnBeeHoon.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblBee.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnCharKueyTeow.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblKueyTeow.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnHainaneseChickenRice.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblHChickenRice.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnKuehChap.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblKuehChap.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnLaksa.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblLaksa.Text = dr(1)

    EndIf

  • 8/7/2019 Full Documentation

    95/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    95 | P a g e

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnMeeRebus.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblMeeRebus.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnNasiLemak.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblNasiLemak.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnRotiCanai.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblRotiCanai.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnNasiBriyani.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblNasiBriyani.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnCurryMee.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows Then

    lblCurryMee.Text = dr(1)EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnHokkienMee.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblHokkienMee.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoods

    where FoodName = '" & rbtnWontonMee.Text & "'", cn)dr = cmd.ExecuteReader

  • 8/7/2019 Full Documentation

    96/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    96 | P a g e

    dr.Read()

    If dr.HasRows ThenlblWontonMee.Text = dr(1)EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnClaypotChickenRice.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblCChickenRice.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnSagoGulaMelaka.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblSagoGulaMelaka.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnCendol.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblCendol.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnAisKacang.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblAisKacang.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select FoodName, FoodPrice from MCafeFoodswhere FoodName = '" & rbtnBuburChaCha.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblBuburChaCha.Text = dr(1)

    EndIf

    dr.Close()cn.Close()

    EndSub

    Sub DrinksPrice()

  • 8/7/2019 Full Documentation

    97/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    97 | P a g e

    cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource = KDEManagementSystem.mdb")

    'provider to be used when working with access databasecn.Open()cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinks

    where DrinkName = '" & rbtnMilo.Text & "'", cn)dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblMilo.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinkswhere DrinkName = '" & rbtnTea.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblTea.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinkswhere DrinkName = '" & rbtnLemonTea.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblLemonTea.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinkswhere DrinkName = '" & rbtnSirap.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblSirap.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinkswhere DrinkName = '" & rbtnBandung.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblBandung.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinkswhere DrinkName = '" & rbtnSoyaBean.Text & "'", cn)

    dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows Then

    lblSoyaBean.Text = dr(1)EndIf

  • 8/7/2019 Full Documentation

    98/135

    Software Development Project

    Managing System

    Kelab Darul Ehsan

    98 | P a g e

    cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinks

    where DrinkName = '" & rbtnSoftDrinks.Text & "'", cn)dr = cmd.ExecuteReaderdr.Read()

    If dr.HasRows ThenlblSoftDrinks.Text = dr(1)

    EndIf

    cmd = New OleDbCommand("Select DrinkName, [Price] from CafeDrinkswhere DrinkName = '" & rbtnMangoJuice.Text & "'", cn)

    dr = cmd.


Recommended