Top Banner
R E Raza Enterprises (Pvt) Ltd. Muhammad Noman Raza Batch 2012 Raza Enterprises(Pvt) Ltd. Custom Clearing and Forwarding Agents Specialist in Dry port cargo handling Syllabus Title : Computer Studies
206
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch 2012

Raza Enterprises(Pvt) Ltd.

Custom Clearing and Forwarding Agents

Specialist in Dry port cargo handling

Syllabus Title : Computer Studies

Syllabus and Components Code: 7010/02

Center Name : The City School PAF Chapter

Page 2: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Center Number : PK547

Candidate Name : Muhammad Noman Raza

Table of Contents1.Introduction Page #Acknowledgement 4Introduction to the company (Background) 5Functional Departments 6-7Selected Departments 8Reasons for the selection of the department 92.AnalysisProblem definition 11Objectives of the system 12-15Data Flow Description of the existing system 16Data Flow Diagram (DFD) of the existing system 17Data Flow Description of the proposed system 18Data Flow Diagram (DFD) of the proposed system 19Alternative solutions 20-21Evaluation of the alternative solutions 223.DesignPlan of Action 24-25Gantt Chart 26Algorithm 27-56System Requirements (Hardware and Software) 57-58System Flowchart 59Database Relationships 60-684.ImplementationProgram Listing (Source Code) 70-108Structured Flowchart 109Use of separate modules 110-1125.TestingTest Strategy 114Testing with different types of date 115-120Sample run 121-132Data Dictionary 133-138Testing of the system for error messages 139-1446.DocumentationThe User Guide 146-158Reports 159-161Input/Output Chart 162-1687.Evaluation and Future DevelopmentEvaluation of the computerized system 170Future Development 171-172

2

Page 3: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Introduction

Introduction

ACKNOWLEDGEMENT

All praise to Allah Almighty who gave me the courage and strength to complete this Project.

3

Page 4: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

I acknowledge the help and guidance of my teachers who provided me their full

support in the assignment which were the essential steps in understanding the

project. I also like to thank my parents who provided me all the things I required for

the Project. I would like to express my gratitude for my teachers Sir Jawaid, Sir Faisal,

Sir Kamran, Sir Gul Muhammad, Sir Zia and Sir Afzal, especially to my father who

supported me and gave his suggestions for the project, without his encouragement I

would not be able to complete the project and my brother Adnan who gathered the

information and guided me throughout the project.

This project will help my father for whose business I am making this project.

Muhammad Noman Raza

Introduction

IntroductionRaza Enterprises came to exist in 1999, when its owner Sheikh Muhammad Raza planned to

start his own business after getting the experience of 8 to 10 years working at the company,

4

Page 5: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

which did the same business of clearing and forwarding agency. By working there, he

received much knowledge about the process of working as an agent. He started business in

partnership with his friend , and then he was able to open a new business under his own

name.

It started with an office at Pak Chamber and spread the business to other countries

including China and Afghanistan. Now it has two offices and a new business named as

Fairy International.

Raza Enterprises is a Customs Clearing / Forwarding Organization. They have a team of

qualified, experienced and trustworthy staff for speedy clearance of cargo of their valuable

clients.

The Organization has established business with more than 100 Importers and Exporters

and this has created the goodwill for the company.

Clearing and Forwarding process is not so easy as it seems. It is according to the rules and

regulations defined by the government and other agencies. It involves great painstaking

from the order booking to the order delivery process. Only a limited number of

organizations have established cordial relationship with their clients in this business and

Raza Enterprises is one of them.

Introduction

Functional Departments:

Accounts and Finance Department:

5

Page 6: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

This department is the backbone of any organization same is here. This department assesses the

valuables of the Organization, their productive capacity, evaluates the costs of having a business

with the clients and their benefits in financial terms. It records all financial transaction with other

clients, collects all of the data together and presents it in the form of regular accounts, prepares

budgets for the whole of the business, decides on the most appropriate method of finance and

keeps control of the cash flow of the business.

Marketing Department:

This department keeps an eye on the clients markets, collects information from resources and

markets the services of the Organization to the highly productive and financially strong clients. It

keeps record of each service so that decisions can be made about ‘extension’ strategies. Marketing

Managers keeps in contact with clients so that required services can be provided.

HR Department:

The purpose of this department is to manage employees and their relations with the Organization,

while maintaining discipline in an organized way. It keeps a daily record of employees’

performance for each department in the Organization. Besides that it forecasts staffing needs for

the business, prepares job descriptions and specifications, plans and implements staff training

programs. It also interviews and selects the right candidate for a particular job.

Billing Department:

6

Page 7: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

This department maintains a record of clients documents and computes their bills according to

their invoices, it then delivers the summary of bills to the accounts.

Service Department:

It provides services for the clients and tries to find ways of enhancing the easily accessible

services for the valued customers and clients.

Administration Department:

This department includes reception staff and other clerical support staff. It oversees the

administration of all the departments, their requirements and proper functioning. It makes

approvals for the needs of the departments such as purchasing of new furniture and equipments,

arranges for the meetings requirements and makes schedules of different occasions of the

business.

Introduction

Selected Department i.e. the Administration Department

7

Page 8: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

The selected department which is Administration controls all the functions of other departments

because it produces the initial required information for the other departments. The records

include all the information regarding the clients and their orders. Such as, Order date, Shipping

date, Company name and the information desk officer checks the availability of the ships at the

specified dates. It therefore, books the orders and provides the payment options and payment

details to the clients.

It then transfers the available information about the clients order and the details of the orders

to the services department which checks the available services and informs the Administration

department about the requirements of the orders. If there is a lack of available services then the

services department informs the Administration department accordingly, which then insures the

availability of services. On the other hand if the services department finds that all the

requirements for the order are met then that department processes the documents and checks

any misinformation given by the client or from the company staff.

After the orders are furnished then the company’s billing department issues invoices with

required charges for the Clients and transfers these to the Accounts and Finance Department

which submits the records to the concerned companies.

Thus in this way all the orders are furnished for the clients.

Introduction

The Reason for selecting the Administration Department

8

Page 9: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

The reason for selecting the Administration Department is that it is the most important one of all the department s. It includes Reception Counter staff and other staffs whose work is to enter the data in computers. It is the most preliminary stage for the functioning of the department.

This department is linked to all the other departments such as Accounts and Finance, Billing and Service. department. It records the orders of the clients and other details.

Besides recording the data it also maintains records of both the clients and staffs needs, such as computers accessories and furniture etc.

Ten to twelve clerks are in office working on computers continuously updating and recording the data for the clients. Computers are very and accurate, are easy to backup and operate. Each function of the department is password protected. It costs less and also much time is saved, which improves the work done by this department.

The department records initial information about the clients and their orders according to a specified date and delivery. The Reception staff takes information about the clients about it also issues the order receipt to the Clients for the acknowledgement of accepting the orders. It then transfers the data to the Services department which notes the requirements of the clients and provides feed back to the Administration Department regarding arrangements for the orders.

The Services Department also processes orders and transfers the data to the Billing department which makes original invoices with all the charges for the Clients Orders and makes bills with required documents.

With all such activities going on in the department and links to other departments, it plays a key role in the establishment of the business.

9

Page 10: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch 2012

Analysis

Analysis

Page 11: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Problems with Current System

The current system in place is seriously outdated and time consuming. It also takes

up a lot of space. When a person comes to the reception for placing an order it is

made with his/her details written on a form the company representative’s company

card, along with a picture, this card holder will place the order with required details

on the form. Without a computer program the receptionist checks the form

manually and asks for missing information. He/she attaches the forms and ID card

copy with the form with client’s signatures. If there is a misinformation given by

the client the receptionist cannot check immediately. The form is dispatched by the

dispatch person by hand to other departments heads approval while the client waits

for the approval. While other clients come in to place orders and the same

procedure goes on thus making a time consuming process which delays the overall

performance of the company. The clients stand in long queues. Further there is

mismanagement of data records can occur due to large amounts of data storage

manually.This creates a need of more staff and higher management of other

departments as approving authorities.

This system is also very time consuming as it involves a lot of paperwork and

constant updating.

Analysis

11

Page 12: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Objectives Of The

Proposed System

In terms of computers

In terms of business

COMPUTER TERMS:

1. Improvement of Records’ Conditions:

Once the Clients information system unit is computerized, all records will be in a

highly presentable manner and no longer hard to read due to employees’

handwritings. Along with this, there will no longer be the possibility of loss of data

due to distortion of paper.

2. Data Safety and Security:

After all the clients’ data is safely stored on the company’s network, there will be no

longer remain the danger of losing admission records in the various transactions

they are used in. Also, due to the vast number of records in the storage, many

records are wrongly categorized and never found again. Secondly, the issue of data

security will be cured due through computerized systems leaving no chance of

unauthorized access of the organization’s data. Backing of data will also be doable

and that too, easily.

3. Reduction of Storage Space:

12

Page 13: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

The computerization of databases will be a blessing for the company especially

concerning the storage space requirement. There will be no more skyscrapers of

records and no more need for extension of the packed storage rooms. This will

enable the company to utilize its budget in other things.

4. Fast Data Accessing and Retrieval:

The desired record would be generated instantly on demand without the hassle of

going through the unorganized and time-consuming storage room. This will also

enhance the efficiency of the ordering of data.

5. Reduction in Paperwork:

Since all processes will be done on screen, there will no longer be the requirement

to purchase paper to store data. Everything will be computerized, therefore,

reducing the amount of paper circulating in the office and reducing expenses as

well.

6. Easy Updating of Records:

Considering the manual information system, updating or correction of data in clients

records is quite impractical due to their huge number and the fatigue suffered in

singling out one record from thousand others. To add to that, records will always be

up-to-date with a minute chance of retrieving records that haven’t been brought up

to date.

7. Less Time Consumption:

13

Page 14: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Once the clerical delays are removed, daily operations will be executed at much

faster rate which includes all aspects related to clients’ records e.g.: filling a form

and having it sent to another department. It also covers employee laziness and

intense workload.

8. Various Frequent Reports:

If it was the case that the company used a manual system, it would be extremely

hard to analyze all past data and generate reports based on different factors

concerning patient information. However, with the help of a computerized system,

all facts and figures can be obtained through easily and quickly. Hence, it eliminates

the concept of annual surveys and “Past one year only” reports.

BUSINESS TERMS:

1. Faster Transactions:

Computerization of the clients’ information system will enable it to handle more

clients than its maximum potential because of the quick and efficient data retrieval

and processing at the front desk. Adding to it will be the network environment, which

will provide fast message sending, so the clients will not have to wait at all.

2. Presentable Environment:

Networking will eliminate the need of going to and fro in departments and from desk

to desk, taking different forms and

collecting /submitting different files. Therefore, daily transactions will be carried out

much smoother and the desks will be less crowded and quiet as well.

14

Page 15: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

3. Low Labor:

Computerization will greatly decrease all work-force which comes between the

front-desk and the client. It will help let go of storage room maintenance staff,

employees who retrieve the records, storage room guards, on-spot boys who

deliver checks and records from department to department, etc.

4. Efficient Management:

The company’s managerial directors will have less to worry about once the

new system is installed. Therefore, over employment and excessive

workload will no longer be matters of concern, thus, enabling them to divert

additional attention to other issues.

5. Customer Satisfaction:

Seeing the decreased number of required transactions the customer will have to

perform, he will definitely be more content with the company’s system. There will be

no more record searching, transporting or updating/correction fatigues which in turn

will portray a good image of the company and its management.

Analysis

15

Page 16: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Data Flow Description of the existing system

The current system in use is the outdated form of registers and papers. When a client comes to the organization to place an order, the client card is checked manually and the card holder’s details written on them, along with a picture, after confirming the identity of the client the order form is issued. The client then fills out the form with the required details in it.

After filling out the form the client submits it to the receptionist who, who writes the information about the form in register while the client is put on hold. The client waits for the approval of the order. The form is then dispatched manually by a dispatch person to the approving authority. After a long wait the clients order is approved and a manual receipt is issued and the acknowledgement slip is received

When a client wishes to cancel the order, he/she will again have to fill the form of cancelling the form. If another client asks for the details of the order the receptionist will have to check the register manually if he finds the requested order only then the information can be passed to that client. Thus there is a long delay in the process. .

Analysis

16

Page 17: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Data Flow Diagram of Existing System

Comes to

Place an order

Analysis

17

Store room

To update or retrieve a record

Order

New Client

Gives the Order form

Reception

Enter Details

Clients details register

Issued Order Approval register

Fill a order formForm Filled

Receives the order form and details

Orders details register

Page 18: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Data Flow Description of the proposed system

When a client approaches the organization to place a new order the client can only show the ID card and the details will be received through the system from the ‘Details file’ and if the client record is found it is updated automatically.

When a client wishes to cancel the order, he/she will again have to fill the form of cancelling the form. If another client asks for the details of the order the receptionist doesn’t have to check the register manually if he finds the requested order then the information can be passed to that client immediately. Thus decreases the delay in the process.

The client waits for the approval of the order. The form is submitted to the approval authority through the system. Now the clients have to wait for only some minutes and then the request of next client can be furnished. The clients order is approved and a receipt is issued from the system and the acknowledgement slip is received.

Thus this system creates efficiency and reliability creating less chances of human error. Data can be secured in the system hard disk and on the backups with very few paper works.

Analysis

18

Page 19: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Data Flow Diagram of the proposed system

Comes to

Place an order

Analysis

19

Order

New Client

Raza Ent. Gives the order form

Fill a membership form Form

Filled

To update or retrieve a record

Enter Details

Receives the order and enters the details

Main database

Orders’s details file

Issued Order acceptance slip

Clients details file

Page 20: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Alternate Solutions

Apart from computerization of the system, there are various other solutions an

organization may consider to overcome its existing problems. These may include:

1. RECRUITMENT OF ADDITIONAL STAFF:

More clerks and operation staffs may be hired to look after the clients in order to split the work

between the existing ones.

2. TRAINING OF STAFF:

The company’s staff could receive on job training to help make them perform their tasks more

efficiently and hence, solve the problems without having to require additional manpower.

3. ORDERED FILES AND CABINETS:

By abandoning the method of storing clients’ files in large storage rooms in unorganized boxes

and using assorted cabinets, fast retrieval of files can be ensured. These cabinets may be year

wise and the files stored in them could be alphabetically arranged.

4. SPECIAL STORAGE AND RETRIEVAL STAFF:

A fraction of the staff could be separated to perform only the job of managing the store room.

They would ensure that each file is stored in the right cabinet and would know where each file is

stored when they have to be retrieved. Also, since this would be their only task, there will be a

less margin for error as then wouldn’t be in a hurry.

5. PRINTING SOLUTION:

20

Page 21: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Considering the company’s immense dependency on paperwork, it might be beneficent if it

collaborated with a printing agency in order to print its bills invoices and other documents. This

would also save the clients waiting time

Analysis

21

Page 22: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Evaluation Of Alternate Solutions

Advantages:

With more staff employed each staff member will do only one task. More output will be produced . More employment is available for people. By training the staff some deficiencies may be overcome. By organization of files and usage of cabinets, there will be fast

retrieval of records. If any problem arises or any record has to be retrieved, the task can be done quickly. It is more easy for the staff

to retrieve the record due to better organization through alphabetical order. With special staff reserved for taking care of

stored data, there will be less problems.

Disadvantages;

By employing more staff, more wages will have to be given which will mean more expenses for the Organization. For training the staff

seminars and courses will have to be conducted by the management which will be more expensive. If cabinets are used soon there will be

requirement of more cabinets. With staff and rooms specially reserved for storage more accommodation will be required which will mean

more expenses for the Organization. The printing solution will not be cost efficient because the price at which deal is made with printing

agency will be quite expensive .

Design

22

Page 23: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Design

Plan Of Action23

Page 24: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

The entire process of SDLC will be divided into 7 different phases to allow a more clear

view for future planning and program development. These 7 stages will elapse over a

period of seven months.

1) System Analysis And Investigation :

In the first stage, the software development team will study the current environment of the

system to retrieve as much information as possible regarding the manual system.

2) System Design:

Here, the system will be thoroughly designed, and while making the project, all of its

aspects will be based on the requirements brought forward in the previous phase.

3) Designing Test Data

During this stage, some data will be purposefully designed to test the new

system. It will be made sure that the data is designed in such a way that

each and every nook and cranny of the system is targeted to remove all

possible flaws that might be present and pass on unnoticed to cause

problems for the users of the system. The information used will comprise

of:

Data without errors or mistakes

Data with known errors

Large amounts of data

Data that target end results

Extreme data

4) Coding Of Program Specifications:

24

Page 25: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

The program will now be written using a commercial programming language. The

database files will also be connected with the program using an appropriate DBMS.

5) Testing And Debugging:

The software development team will evaluate the designed system and once again goes

through the system top to bottom make sure to remove any persisting errors. They will

also fix the displays if any glitch turns up.

6) Evaluation:

In this stage, the system analysis team along with the management team will

collaboratively discuss the outcomes of the system. They will evaluate whether the

objectives of the system as decided in early phases have been fulfilled or not. Also, they

will analyze whether the new system is productive or not, both time and cost wise

7) Documentation:

Each and every phase of the SDLC cycle will be documented into 2 categories:

I. User Guide: The program will be summarized into short, precise and easy-to-

understand instructions. It will be made sure that the guide us user friendly, in

easy language and helpful for trouble-shooting and learning purposes. It will

comprise mostly of screenshots, dialogue boxes and error messages

II. Programmer Guide: This technical documentation is for the reference of

programmers if in case in future the program needs to be reviewed. It will comprise

of system-related diagrams and charts

Design

25

Page 26: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Gantt ChartTopics

Month August September October November December January February

Weeks 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4System Analysis and InvestigationSpecification of the proposed System

Designing the proposed System

Designing Test Data

Coding of Programs

Testing and Debugging

Evaluation of the new system

System Documents

Design

26

Page 27: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

AlgorithmsLOGIN FORM

Step 1: Start

Step 2 : Initialize the Environment

Step 3 : Display the Login Form

Step 4: Open Database

Step 5 : If txtusername = ” Raza Enterprises” And txtpassword = “ nomi12345” Then

Step 6: : Display the Message Box “Login Sucessfully”

Step 7 : Display the Splash Screen1

Step 8 : Else display the Message Box “Invalid Username or Password”

Step 9 : End If

Sign up button

Step 1: Initialize the environment

Step2: Open Create Account Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Create Account Form

Step3: Open Database

Step4: Fill the textboxes with the required details

Username Password

27

Page 28: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 5: By clicking the “Save” button the account will be created

Step 6: Display the message box “Record Saved”

Search Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Select party name

Step 4: Fill the Combo Box by party name

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

TxtUsername TxtPassword

And Display MessageBox “Record Found”

Update Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the previous saved records

Step 4: Edit the records saved earlier and press the update button

Step 5: Display the Message Box “Record Updated”

Delete Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the records already saved

Step 4: Select the record to be deleted and click the “Delete Button”

28

Page 29: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 5: Display the Message Box “Record Deleted”

Close Button

Step 1: Initialize the environment

Step 2: Click the “Close” button , the form will be closed and goes to the Login Form

SPLASH SCREEN

Step 1: Start

Step 2 : Initialize the Environment

Step 3 : Display the Company Logo, its copyright information and the version of the software

of the splash screen

Step 4: The time interval for splash screen is 5 seconds

Step 5: Hide the splash screen and display the main form

MAIN FORM

Step 1: Start

Step 2 : Initialize the Environment

Raza Enterprises[ Pvt. ] LTD

Menu Items Create Account Afghan Client Pak Client Company info Bank Daily Expense Payment Records Client History Bank History

\

29

Page 30: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

OPTIONS ON THE MAIN FORM

1. On selection of “Create Account” Display Create Account Form2. On selection of “Afghan Client” Display Afghan Client Form3. On selection of “Pak Client” Display Pak Client Form4. On selection of “Company info” Display Company Information Form5. On selection of “Bank info” Display Bank Form6. On selection of “Daily Expense” Display Daily Expense Form 7. On selection of “Payment Records” Display Payment Record Form8. On selection of “Bank History” Display Bank History Form9. On selection of “Client History” Display Client History Form

AFGHAN CLIENT FORM

Step 1: Initialize the environment

Step2: Open Afghan Client Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Afghan Client Form

Step3: Open Database

Step4: Fill the textboxes with the required details

Description Cargo Packages Origin Country Port of Clearance Airwaybill Invoice date Vessel name Index name Job closing Consignment

30

Page 31: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Port of Clearance Terrace Document receiving date Receiving date Machine date Lcno Destination Country Hawb date Invoice value Arrival date Remarks Shipper name Sros Weight Netweight Custom dues Currency Destination City Lc date Salesman Igmno Igm date Crossborder date Crossborder party date Crossborder submit date Party name

Step 5: By clicking “Save” button the following information will be saved in Database

Step 6: Display the message box “Record Saved” and all the textboxes will be cleared

Step 7: Else Display the message box “Must type numerical value”

Search Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Select party name

Step 4: Fill the Combo Box by party name

31

Page 32: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

Description Cargo Packages Origin Country Port of Clearance Airwaybill Invoice date Vessel name Index name Job closing Consignment Port of Clearance Terrace Document receiving date Receiving date Machine date Lcno Destination Country Hawb date Invoice value Arrival date Remarks Shipper name Sros Weight Netweight Custom dues Currency Destination City Lc date Salesman Igmno Igm date Crossborder date Crossborder party date Crossborder submit date

32

Page 33: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Party name

Step 7: And Display MessageBox “Record Founded”

Update Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the previous saved records

Step 4: Edit the records saved earlier and press the update button

Step 5: Update the following records:

Description Cargo Packages Origin Country Port of Clearance Airwaybill Invoice date Vessel name Index name Job closing Consignment Port of Clearance Terrace Document receiving date Receiving date Machine date Lcno Destination Country Hawb date Invoice value Arrival date Remarks Shipper name

33

Page 34: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Sros Weight Netweight Custom dues Currency Destination City Lc date Salesman Igmno Igm date Crossborder date Crossborder party date Crossborder submit date Party name

Step 6: Display the Message Box “Record Updated”

Print Button

Step 1: Initialize the environment

Step 2: Click the “Print” button , the form will be closed and goes to the Client Report form

New Button

Step 1: Initialize the environment

Step 2: Click the “New” button , all the textboxes will be cleared

34

Page 35: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

PAK CLIENT FORM

Step 1: Initialize the environment

Step2: Open Pak Client Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Pak Client Form

Step3: Open Database

Step4: Fill the textboxes with the required details

Party Name Description Cargo Packages Origin Country Port of Clearance Airwaybill Invoice date Vessel name Index name Job closing Consignment Port of Clearance Terrace Document receiving date Receiving date Machine date Lcno Destination Country Hawb date Invoice value Arrival date Delivery date Remarks Shipper name

35

Page 36: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Sros Weight Netweight Custom dues Currency Destination City Lc date Salesman Igmno Igm date

Step 5: By clicking “Save” button the following information will be saved in Database

Step 6: Display the message box “Record Saved” and all the texboxes will be cleared

Step 7: Else Display the message box “Must type numerical value”

Search Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Select party name

Step 4: Fill the Combo Box by party name

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

Party Name Description Cargo Packages Origin Country Port of Clearance Airwaybill Invoice date Vessel name Index name Job closing Consignment

36

Page 37: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Port of Clearance Terrace Document receiving date Receiving date Machine date Lcno Destination Country Hawb date Invoice value Arrival date Delivery date Remarks Shipper name Sros Weight Netweight Custom dues Currency Destination City Lc date Salesman Igmno Igm date

Step 7: And Display MessageBox “Record Found”

Update Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the previous saved records

Step 4: Edit the records saved earlier and press the update button

Step 5: Update the following records:

Party name Description Cargo

37

Page 38: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Packages Origin Country Port of Clearance Airwaybill Invoice date Vessel name Index name Job closing Consignment Port of Clearance Terrace Document receiving date Receiving date Machine date Lcno Destination Country Hawb date Invoice value Arrival date Delivery date Remarks Shipper name Sros Weight Netweight Custom dues Currency Destination City Lc date Salesman Igmno Igm date

Step 6: Display the Message Box “Record Updated”

New Button

38

Page 39: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 1: Initialize the environment

Step 2: Click the “New” button , all the textboxes will be cleared

COMPANY INFORMATION FORM

Step 1: Initialize the environment

Step2: Open Client Information Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Client Information Form

Step3: Open Database

Step4: Fill the textboxes with the required details

Party Name Phone Number Mobile Number Email Office Address Representative Bank Name / Account Number Others

Step 5: By clicking “Save” button the following information will be saved in Database

Step 6: Display the message box “Record Saved” and all the textboxes will be cleared

Search Button

39

Page 40: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Select party name

Step 4: Fill the Combo Box by party name

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

Party Name Phone Number Mobile Number Email Office Address Representative Bank Name / Account Number Others

Step 7: And Display MessageBox “Record Found”

Update Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the previous saved records

Step 4: Edit the records saved earlier and press the update button

Step 5: Update the following records:

Party Name Phone Number Mobile Number Email Office Address Representative Bank Name / Account Number Others

40

Page 41: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 6: Display the Message Box “Record Updated”

Delete Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the records already saved

Step 4: Select the record to be deleted and click the “Delete Button”

Step 5: The following records will be deleted:

Party Name Phone Number Mobile Number Email Office Address Representative Bank Name / Account Number Others

Step 5: Display the Message Box “Record Deleted”

BANK FORM

Step 1: Initialize the environment

Step2: Open Bank Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Bank Form

Step3: Open Database

Step 4: Select the options given in the combo box;

41

Page 42: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Deposit Withdraw

Step 5: On selecting the Deposit option the Deposit panel will be shown

Step 6: Fill the textboxes with the required details

Party Name Previous Balance Deposit by Cash Pay Order No Cheque No Amount Online Banking Drafts Net Amount

Step 7: On selecting the Withdraw option the Deposit panel will be hidden and

Withdraw panel will be shown

Step 8: Fill the textboxes with the required details

Party Name Previous Balance Withdrawby Cash Pay Order No Cheque No Amount Online Banking Drafts Net Amount

Step 5: By clicking “Save” button the following information will be saved in Database

Step 6: Display the message box “Record Saved” and all the textboxes will be cleared

Search Button

Step 1: Initialize the environment

42

Page 43: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 2: Open Database

Step 3: Select Date and Party name

Step 4: Fill the Combo Box by Date and Party name

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

Party Name Previous Balance Net Balance Deposit

Deposit by Cash Pay Order No Cheque No Amount Online Banking Drafts

Withdraw Withdraw by Cash Pay Order No Cheque No Amount Online Banking Drafts

Step 7: And Display MessageBox “Record Found”

Step 8: Else pass MessageBox “Record not found”

Clear Button

Step 1: Initialize the environment

43

Page 44: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 2: Click the “Clear” button , all the textboxes will be cleared

Print Button

Step 1: Initialize the environment

Step 2: Click the “Print” button , the Bank Report form will be shown

Bank History Button

Step 1: Initialize the environment

Step 2: Click the “Bank History” button , the Bank History form will be shown

Add Button

Step 1: Initialize the environment

Step 2: Click the “Add” button , the Net balance will be added in the previous balance

Subtract Button

Step 1: Initialize the environment

Step 2: Click the “Subtract” button , the Net balance will be deducted From the

Previous balance

PAYMENT RECORD FORM

Step 1: Initialize the environment

44

Page 45: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step2: Open Payment Record Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Payment Record Form

Step3: Open Database

Step4: Fill the textboxes with the required details

Party Name Bill No. Bill of Lading MAWB / HAWB Consignee Name Job Description Vessel Name IGM No. Index No. Machine No. No. of Packages / Units Remarks if any Unloading Custom Duty THC /DO Charges Endowment Wharfage Invoice Port Storage Sindh Excise CAA Excise Stamp Duty Loading Cartage / Freight Custom Examination Weighment CSE Charges Amendment Expenses

45

Page 46: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Extra Approval Karachi Clearance Expense Dry Port Clearance Expense Port Container Allow Custom Seal Band Pay order Sec 82 Fine Detention Container Rent Documentation Charges Wharfage Storage Token Cartage Entry pass Service Charges GST Other Expenses Total Expense Advance Amount Total Balance Credit Debit

Step 5: By clicking “Save” button the following information will be saved in Database

Step 6: Display the message box “Record Saved” and clear all the textboxes

Search Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Select party name

Step 4: Fill the Combo Box by party name

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

Party Name Bill No. Bill of Lading MAWB / HAWB

46

Page 47: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Consignee Name Job Description Vessel Name IGM No. Index No. Machine No. No. of Packages / Units Remarks if any Unloading Custom Duty THC /DO Charges Endowment Wharfage Invoice Port Storage Sindh Excise CAA Excise Stamp Duty Loading Cartage / Freight Custom Examination Weighment CSE Charges Amendment Expenses Extra Approval Karachi Clearance Expense Dry Port Clearance Expense Port Container Allow Custom Seal Band Pay order Sec 82 Fine Detention Container Rent Documentation Charges Wharfage Storage Token Cartage Entry pass Service Charges GST Other Expenses Total Expense

47

Page 48: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Advance Amount Total Balance Credit Debit

Step 7: And Display MessageBox “Record Found”

Update Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the previous saved records

Step 4: Edit the records saved earlier and press the update button

Step 5: Update the following records:

Party Name Bill No. Bill of Lading MAWB / HAWB Consignee Name Job Description Vessel Name IGM No. Index No. Machine No. No. of Packages / Units Remarks if any Unloading Custom Duty THC /DO Charges Endowment Wharfage Invoice

Port Storage Sindh Excise CAA Excise

48

Page 49: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Stamp Duty Loading Cartage / Freight Custom Examination Weighment CSE Charges Amendment Expenses Extra Approval Karachi Clearance Expense Dry Port Clearance Expense Port Container Allow Custom Seal Band Pay order Sec 82 Fine Detention Container Rent Documentation Charges Wharfage Storage Token Cartage Entry pass Service Charges GST Other Expenses Total Expense Advance Amount Total Balance Credit Debit

Step 6: Display the Message Box “Record Updated”

Clear Button

Step 1: Initialize the environment

Step 2: Click the “Clear” button , all the textboxes will be cleared

Print Button

49

Page 50: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 1: Initialize the environment

Step 2: Click the “Print” button , the Payment Record Report form will be shown

DAILY EXPENSE VOUCHER SHEET FORM

Step 1: Initialize the environment

Step2: Open Daily Expense Voucher Sheet Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Daily Expense Voucher Sheet Form

Step3: Open Database

Step4: Fill the textboxes with the required details

Party Name VNo. Received Amount Office Expense Withdraw Job Description My Expense Advance DT Amount

Step 5: By clicking “Save” button the following information will be saved in Database

Step 6: Display the message box “Record Saved”

Search Button

50

Page 51: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Select party name

Step 4: Fill the Combo Box by party name

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

Party Name VNo. Received Amount Office Expense Withdraw Job Description My Expense Advance DT Amount

Step 7:And Display MessageBox “Record Found”

Update Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the previous saved records

Step 4: Edit the records saved earlier and press the update button

Step 5: Update the following records:

Party Name VNo. Received Amount Office Expense Withdraw

Job Description My Expense Advance DT Amount

51

Page 52: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Step 6: Display the Message Box “Record Updated”

Party Name VNo. Received Amount Office Expense Withdraw Job Description My Expense Advance DT Amount

Clear Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the records already saved

Step 4: Select the record to be Cleared and click the “Clear Button”

Step 5: The following records will be deleted:

Party Name Previous Balance Deposit Withdraw

Party Name VNo. Received Amount Office Expense Withdraw Job Description My Expense Advance DT Amount

Step 5: Display the Message Box “Record Deleted”

CLIENT HISTORY FORM ( Grid View)

52

Page 53: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

ShowButton

Step 1: Select Starting Date and Ending Date

Step 2: Pressing the Show button the following information will be shown in the DataGridView.

Bill no Job no Bill of lading MAWB Consignment Job Description Vessel name Igm no Index no. Machine no No of Packages Remarks Custom Duty DO Charges Endowment Invoice Port Storage Sindh Excise CAA Charges Stamp Duty Loading Unloading Cartage Custom Examination Weighment CSE Charges AMD Expense Extra Approval KCE Expense DPC Expense PC Allow Custom Seal

53

Page 54: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

BP Order S Fine DC Rent DC Charges WS Token CE Pass Service Charges GST Office Expense Total Expense Advance Amount Total Balance Credit Debit Party Name Date

BANK HISTORY FORM (Grid View)

ShowButton

Step 1: Select Starting Date and Ending Date

Step 2: Pressing the Show button the following information is shown.

P-balance D-name Df-name D-cash D-cheque no D-payorder no D-amount W-party name W-cash W-payorder no W-cheque no W-amount Net amount dt

54

Page 55: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

d-drafts d-online banking w-draft w-online banking

CREATE ACCOUNT FORM

Step 1: Initialize the environment

Step2: Open Create Account Form

Step3: Open Database

Save button

Step 1: Initialize the environment

Step2: Open Create Account Form

Step3: Open Database

Step4: Fill the textboxes with the required details

Username Password

Step 5: By clicking the “Save” button the account will be created

Step 6: Display the message box “Record Saved”

Search Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Select party name

Step 4: Fill the Combo Box by party name

Step 5: Click the Search Button

Step 6: If the Record found Fill all the textboxes as follows

55

Page 56: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

TxtUsername TxtPassword

And Display MessageBox “Record Found”

Update Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the previous saved records

Step 4: Edit the records saved earlier and press the update button

Step 5: Display the Message Box “Record Updated”

Delete Button

Step 1: Initialize the environment

Step 2: Open Database

Step 3: Search the records already saved

Step 4: Select the record to be deleted and click the “Delete Button”

Step 5: Display the Message Box “Record Deleted”

Close Button

Step 1: Initialize the environment

Step 2: Click the “Close” button , the form will be closed and goes to the Main Form

Design

56

Page 57: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

System RequirementsTo run the program properly, following are the minimum system requirements each node should

have. These include the hardware, software and some other specifications.

1. HARDWARE REQUIREMENTS

Processor: this program required a Pentium I processor of at least 200MHz speed to run

smoothly, a processor with higher speed will be better and more preferred.

Memory: a RAM of 16 MB will be sufficient but a large memory will surely increase the

performance as well as the speed of searching

Hard Disk: For the management of database and storage of records, the minimum

required hard disk of 4GB would suffice. It will consist of a 3GB partition reserved totally

for the database.

Keyboard: a standard keyboard of 101 or 102 keys will be sufficient as no advanced

functions are present in the program.

Mouse pointer: A window standard mouse with two buttons would be required as the

program is a window GUI-based one.

Monitor Screen: A standard VGA monitor will be necessary as the primary display

device. A color monitor will be needed with 600*800 resolutions. A monochrome monitor

can also be used.

57

Page 58: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Printer: A printer will be required to print database records, stationary follow, up tables,

etc. a dot matrix printer with 9 pins will fulfill the minimum requirements. A laser printer

could also be used if time is their main concern.

2. SOFTWARE REQUIREMENTS:

Operating System: This project is designed to run in windows background. The

minimum for proper running is Windows XP although higher versions will surely increase

the performance of the program

Language: This program at the front end has been designed in Visual Basic 2005. For

optimum performance higher version is required.

Database Package: In the background, this project runs in MS Access. The database

package required for this project is Microsoft Access 2003.

Anti-Virus Software: A good commercial anti-virus will be required to protect the fragile patient data from viruses.

Design

System Flowchart58 Login

Page 59: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Design

DATABASE

59

Splash Screen

Main Form

Pak Client Company Info.Afgan Client Client HistCreate A/CDaily Exp

Save

Update

Search

Delete

Close

New

Save Save Save SaveShow

Search Search SearchSearch

Update Update Update Update

DeleteNew Clear

PrintDatabase

Pak client

Database

Afgan client

Database

Company info

Database

Daily Expense

Reports

Page 60: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Login Table

60

Page 61: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Aghan client

61

Page 62: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Bank

62

Page 63: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Company info

63

Page 64: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Daily Expence

64

Page 65: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Pak client

65

Page 66: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Payment Record

66

Page 67: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Database relationship

67

Page 68: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Implementation

68

Page 69: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Implementation

Source CodeLogin

69

Page 70: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

General Area

Imports System.Data.OleDb

Global Area

PublicClass Form1Dim cn As OleDbConnection = NewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb")‘Used to Connect the Form with the databaseDim re AsStringDim dr As OleDbDataReader‘Used to read from the database

Close ButtonPrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.ClickMe.Close()

EndSub Login Button

PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickIf TxtUsername.Text <>""And TxtPassword.Text <>""Then

cn.Open()‘Used to Open the connection with the database re = " select * from login where username ='"& TxtUsername.Text &"' and pass ='"& TxtPassword.Text &"'"Dim cmd AsNew OleDbCommand(re, cn) dr = cmd.ExecuteReaderIf dr.HasRows Then MsgBox("Login Sucessfully") Mainform.Show()Me.Hide()

Else MsgBox("Invalid Username or Password")EndIfEndIf cn.Close()EndSub

Sign Up

70

Page 71: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click createaccount.Show()

EndSub

EndClass

Splash Screen

PublicNotInheritableClass SplashScreen1

'TODO: This form can easily be set as the splash screen for the application by going to the "Application" tab' of the Project Designer ("Properties" under the "Project" menu).

PrivateSub SplashScreen1_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load'Set up the dialog text at runtime according to the application's assembly information.

'TODO: Customize the application's assembly information in the "Application" pane of the project ' properties dialog (under the "Project" menu).

'Application titleIfMy.Application.Info.Title <>""Then ApplicationTitle.Text = My.Application.Info.TitleElse'If the application title is missing, use the application name, without the extension ApplicationTitle.Text = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)EndIf

'Format the version information using the text set into the Version control at design time as the' formatting string. This allows for effective localization if desired.' Build and revision information could be included by using the following code and changing the ' Version control's designtime text to "Version {0}.{1:00}.{2}.{3}" or something similar. See

71

Page 72: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

' String.Format() in Help for more information.'' Version.Text = System.String.Format(Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor, My.Application.Info.Version.Build, My.Application.Info.Version.Revision)

Version.Text = System.String.Format(Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor)

'Copyright info Copyright.Text = My.Application.Info.CopyrightEndSub

Main Form

PublicClass Mainform

PrivateSub AfghanClientToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AfghanClientToolStripMenuItem.ClickDim af AsNew afgclient af.MdiParent = Me af.Show()

EndSub‘MDI parent form is used to contain the afg client form in the main form

PrivateSub Mainform_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load

NotifyIcon1.BalloonTipText = " Raza Enterprises" NotifyIcon1.BalloonTipTitle = " R-E Administration" NotifyIcon1.BalloonTipIcon = ToolTipIcon.Info NotifyIcon1.ShowBalloonTip(5000)‘ Ballon is used to show the application running in the task bar

Me.Hide() spl.Refresh() spl.Show() System.Threading.Thread.Sleep(5000) spl.Close()

72

Page 73: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Me.Show()‘ ballon is closed after 5 secEndSub

PrivateSub PakClToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PakClToolStripMenuItem.ClickDim pak AsNew pakclient pak.MdiParent = Me pak.Show()

EndSub

PrivateSub MenuStrip1_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles MenuStrip1.ItemClicked

EndSub

PrivateSub CreateAccountToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Dim create AsNew createaccount create.MdiParent = Me create.Show()EndSub

PrivateSub PaymentRecordToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PaymentRecordToolStripMenuItem.ClickDim payment AsNew paymentrecord payment.MdiParent = Me payment.Show()

EndSub

PrivateSub BankHistroyToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BankHistroyToolStripMenuItem.ClickDim bank AsNew bankhistory bank.MdiParent = Me bank.Show()

EndSub

73

Page 74: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

PrivateSub CompanyInfoToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CompanyInfoToolStripMenuItem.ClickDim company AsNew Company_INFO company.MdiParent = Me company.Show()

EndSub

PrivateSub ClientHistoryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClientHistoryToolStripMenuItem.ClickDim client AsNew clienthistory client.MdiParent = Me client.Show()

EndSub

PrivateSub CreateAccountToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateAccountToolStripMenuItem1.ClickDim create AsNew createaccount create.MdiParent = Me create.Show()EndSub

PrivateSub DailyexpenseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DailyexpenseToolStripMenuItem.ClickDim daily AsNew dailyexpense daily.MdiParent = Me daily.Show()

EndSub

PrivateSub BankToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BankToolStripMenuItem.ClickDim bank AsNew bank bank.MdiParent = Me bank.Show()

EndSubEndClass

74

Page 75: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Bank

General Area

Imports System.Data.OleDb Global Area

Public Class bank Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb") Dim str As String Dim dr As OleDbDataReader Dim ds As New DataSet

Sub fillpname() con.Open() str = "select partyname from bank" Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader While dr.Read cmbpname.Items.Add(dr(0))

End While

con.Close()

End Sub Sub clr() txtdamount.Text = "" txtdcash.Text = "" txtdchequeno.Text = "" txtdpayorderno.Text = "" txtdonline.Text = "" txtddraft.Text = "" txtnet.Text = ""

txtpbalance.Text = "" txtwamount.Text = "" txtwcash.Text = "" txtwchequeno.Text = "" txtwpayorderno.Text = "" txtwonline.Text = "" txtwdraft.Text = ""

End Sub

75

Page 76: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Save Button Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open()

Try

str = "insert into bank (partyname,pbalance,dcash,dchequeno,dpayorderno,damount,wcash,wpayorderno,wchequeno,wamount,netamount,dt,ddrafts,donlinebanking,wdraft,wonlinebanking)values('" & txtpname.Text & "'," & txtpbalance.Text & "," & txtdcash.Text & ", '" & txtdchequeno.Text & "','" & txtdpayorderno.Text & "', " & txtdamount.Text & ", " & txtwcash.Text & ",'" & txtwpayorderno.Text & "', '" & txtwchequeno.Text & "'," & txtwamount.Text & ", " & txtnet.Text & ",'" & DateTimePicker2.Text & "', '" & txtddraft.Text & "', '" & txtdonline.Text & "', '" & txtwdraft.Text & "', '" & txtwonline.Text & "')" Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record saved") clr() Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close() End Sub

Load Event Private Sub bank_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load fillpname()

End Sub

Add Button Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click txtnet.Text = Val(txtpbalance.Text) + Val(txtdamount.Text) txtpbalance.Text = Val(txtpbalance.Text) + Val(txtdamount.Text)

76

Page 77: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

End Sub‘Val function is used to add / subtract a particular value

Subtract Button Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click txtnet.Text = Val(txtpbalance.Text) - Val(txtwamount.Text)

End Sub

Clear Button

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click clr()

End Sub Search Button

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

Panel1.Visible = True Panel2.Visible = True Panel3.Visible = True

End Sub

Combo Box 2 Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged If ComboBox2.SelectedIndex = 0 Then

Panel1.Visible = True Panel2.Visible = False ElseIf ComboBox2.SelectedIndex = 1 Then Panel1.Visible = False Panel2.Visible = True

End If End Sub

Combo Box 1

77

Page 78: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Private Sub cmbpname_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbpname.SelectedIndexChanged con.Open() str = "select * from bank where partyname ='" & cmbpname.Text & "' and dt ='" & DateTimePicker1.Text & "'" Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader

If dr.HasRows Then MsgBox("Record found")

While dr.Read

txtpbalance.Text = dr(0) txtpname.Text = dr(1) txtdcash.Text = dr(2) txtdchequeno.Text = dr(3) txtdpayorderno.Text = dr(4) txtdamount.Text = dr(5) txtwcash.Text = dr(6) txtwpayorderno.Text = dr(7) txtwchequeno.Text = dr(8) txtwamount.Text = dr(9) txtnet.Text = dr(10) DateTimePicker1.Text = dr(11) txtddraft.Text = dr(12) txtdonline.Text = dr(13) txtwdraft.Text = dr(14) txtwonline.Text = dr(15)

End While

Else MsgBox("Recosd not Found")

End If con.Close() End Sub

Bank Hisrtory Button Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click bankhistory.Show() End Sub

78

Page 79: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Print Button

Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click Bankreports.Show()

End Sub

Bank Report

Dim cr As New Bank_Statement CrystalReportViewer1.ReportSource = cr CrystalReportViewer1.Show()

Bank History

General Area

Imports System.Data.OleDb Global Area

Public Class bankhistory Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb") Dim str As String Dim dr As OleDbDataReader Dim ds As New DataSet

Show Button

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open()

str = "select * from bank where dt between '" & DateTimePicker1.Text & "' and '" & DateTimePicker2.Text & "' " Dim cmd As New OleDbCommand(str, con) Dim da As OleDbDataAdapter

da = New OleDbDataAdapter(cmd) cmd.ExecuteNonQuery() da.Fill(ds)

DataGridView1.DataSource = ds.Tables(0)

79

Page 80: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

con.Close() End Sub

End Class

Afghan Client

General Area

Imports System.Data.OleDb

Global Area

PublicClass afgclient

Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb")Dim str AsString

Dim dr As OleDbDataReader

Sub clr() txtariway.Text = "" txtarrivaldt.Text = "" txtcargo.Text = "" txtconsignment.Text = "" txtcrossborderdt.Text = "" txtcrossborderpartydt.Text = "" txtcurrency.Text = "" txtcustomdues.Text = "" txtdeliverydt.Text = "" txtdescription.Text = ""

txtdesinationcountry.Text = "" txtdestinationcity.Text = "" txtdocumentdt.Text = "" txthawbdt.Text = "" txtigm.Text = "" txtigmdt.Text = "" txtindex.Text = "" txtinvoicedt.Text = "" txtinvoicevalue.Text = "" txtjobclosing.Text = ""

80

Page 81: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

txtjobno.Text = "" txtlcdt.Text = "" txtlcno.Text = "" txtmachinedt.Text = "" txtnetweight.Text = "" txtorigion.Text = "" txtpackages.Text = "" txtpct.Text = "" txtpname.Text = "" txtportclear.Text = "" txtreceivingdt.Text = "" txtremarks.Text = "" txtsalesman.Text = "" txtsborderdt.Text = "" txtshipper.Text = "" txtsro.Text = "" txtvname.Text = "" txtweight.Text = ""

EndSub‘ the function clear is used to clear all the textboxes

Sub fillname() con.Open() str = "select partyname from afghanclient"Dim cmd AsNew OleDbCommand(str, con) dr = cmd.ExecuteReaderWhile dr.Read ComboBox1.Items.Add(dr(0))

EndWhile con.Close()

EndSub‘ the function fillname is used to fill the combo box

Load Event

PrivateSub afgclient_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load fillname()

EndSub

Save Button

81

Page 82: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

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

If IsNumeric(txtweight.Text) And IsNumeric(txtnetweight.Text) And IsNumeric(txtcustomdues.Text) Then‘Isnumeric is used to avoid non numerical values con.Open()

Try‘Try is used to stop the application from hanging.

str = "insert into afghanclient(description,cargo,packages,origioncountry,poc,airwaybill,invoicedate,vesselname,indexname,jobclosing,consignment,pct,documentrecevingdt,recevingdt,machinedt,lcno,destinationcountry,hawbdt,invoicevalue,arrivaldt,deliverydt,remarks,shippername,sros,weight,netweight,customdues,destinationcity,lcdt,salesman,igmno,igmdt,crossborderdt,crossborderpartydt,crossbordersubmitdt,curr,partyname) values('"& txtdescription.Text &"' ,'"& txtcargo.Text &"','"& txtpackages.Text &"','"& txtorigion.Text &"','"& txtportclear.Text &"','"& txtariway.Text &"','"& txtinvoicedt.Text &"' ,'"& txtvname.Text &"','"& txtindex.Text &"','"& txtjobclosing.Text &"','"& txtconsignment.Text &"','"& txtpct.Text &"','"& txtdocumentdt.Text &"' ,'"& txtreceivingdt.Text &"','"& txtmachinedt.Text &"','"& txtlcno.Text &"','"& txtdestinationcity.Text &"','"& txthawbdt.Text &"','"& txtinvoicevalue.Text &"' ,'"& txtarrivaldt.Text &"','"& txtdeliverydt.Text &"','"& txtremarks.Text &"','"& txtshipper.Text &"','"& txtsro.Text &"','"& txtweight.Text &"' ,'"& txtnetweight.Text &"','"& txtcustomdues.Text &"','"& txtdestinationcity.Text &"','"& txtlcdt.Text &"','"& txtsalesman.Text &"','"& txtigm.Text &"','"& txtigmdt.Text &"','"& txtcrossborderdt.Text &"','"& txtcrossborderpartydt.Text &"','"& txtsborderdt.Text &"','"& txtcurrency.Text &"','"& txtpname.Text &"')"

Dim cmd AsNew OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record saved") clr()

Catch ex As Exception MsgBox(ex.ToString())‘it is used so that the error can be shown in form of a msg box

82

Page 83: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

EndTry con.Close()Else MsgBox("Must type numeric value")

EndIf

EndSub Search Button

PrivateSub btsearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btsearch.Click Label22.Visible = True ComboBox1.Visible = True

EndSub

Combo box

PrivateSub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged con.Open()Try str = " select * from afghanclient where partyname = '"& ComboBox1.Text &"' "Dim c AsNew OleDbCommand(str, con) dr = c.ExecuteReaderWhile dr.Read txtjobno.Text = dr(0) txtdescription.Text = dr(1) txtcargo.Text = dr(2) txtpackages.Text = dr(3) txtorigion.Text = dr(4) txtportclear.Text = dr(5)

txtariway.Text = dr(6) txtinvoicedt.Text = dr(7) txtvname.Text = dr(8) txtindex.Text = dr(9) txtjobclosing.Text = dr(10) txtconsignment.Text = dr(11) txtpct.Text = dr(12) txtdocumentdt.Text = dr(13) txtreceivingdt.Text = dr(14)

83

Page 84: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

txtmachinedt.Text = dr(15) txtlcno.Text = dr(16) txtdesinationcountry.Text = dr(17) txthawbdt.Text = dr(18) txtinvoicevalue.Text = dr(19) txtarrivaldt.Text = dr(20) txtdeliverydt.Text = dr(21) txtremarks.Text = dr(22) txtshipper.Text = dr(23) txtsro.Text = dr(24) txtweight.Text = dr(25) txtnetweight.Text = dr(26) txtcustomdues.Text = dr(27) txtcurrency.Text = dr(28) txtdestinationcity.Text = dr(29) txtlcdt.Text = dr(30) txtsalesman.Text = dr(31) txtigm.Text = dr(32) txtigmdt.Text = dr(33) txtcrossborderdt.Text = dr(34) txtcrossborderpartydt.Text = dr(35) txtsborderdt.Text = dr(36) txtpname.Text = dr(37)

EndWhile‘it is used to bring the rocords from the database to the combo box by using a unique field

Catch ex As Exception

EndTry con.Close()

EndSub

Update Button

PrivateSub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnupdate.ClickTry con.Open() str = "update afghanclient set description= '"& txtdescription.Text &"' ,cargo='"& txtcargo.Text &"',packages= '"& txtpackages.Text &"' ,origioncountry='"& txtorigion.Text &"',poc= '"& txtportclear.Text &"' ,airwaybill='"& txtariway.Text

84

Page 85: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

&"',invoicedate='"& txtinvoicedt.Text &"' ,vesselname ='"& txtvname.Text &"' ,indexname='"& txtindex.Text &"' ,jobclosing='"& txtjobclosing.Text &"' ,consignment='"& txtconsignment.Text &"' ,pct='"& txtpct.Text &"' ,documentrecevingdt='"& txtdocumentdt.Text &"',recevingdt='"& txtreceivingdt.Text &"' ,machinedt='"& txtmachinedt.Text &"',lcno='"& txtlcno.Text &"' ,destinationcountry='"& txtdesinationcountry.Text &"',hawbdt='"& txthawbdt.Text &"' ,invoicevalue='"& txtinvoicevalue.Text &"',arrivaldt='"& txtarrivaldt.Text &"' ,deliverydt='"& txtdeliverydt.Text &"',remarks='"& txtremarks.Text &"' ,shippername='"& txtshipper.Text &"',sros='"& txtsro.Text &"' ,weight='"& txtweight.Text &"',netweight='"& txtnetweight.Text &"' ,customdues='"& txtcustomdues.Text &"',curr='"& txtcurrency.Text &"' ,destinationcity='"& txtdestinationcity.Text &"',lcdt='"& txtlcdt.Text &"' ,salesman='"& txtsalesman.Text &"',igmno='"& txtigm.Text &"' ,igmdt='"& txtigmdt.Text &"',crossborderdt='"& txtcrossborderdt.Text &"',crossborderpartydt='"& txtcrossborderpartydt.Text &"',crossbordersubmitdt='"& txtsborderdt.Text &"',partyname='"& txtpname.Text &"'where partyname = '"& ComboBox1.Text &"' "Dim cmd AsNew OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record Updated")Catch ex As Exception MsgBox(ex.ToString())

EndTry con.Close()EndSub

Clear Button

PrivateSub btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnew.Click clr()

EndSub

85

Page 86: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

PrivateSub txtcrossborderpartydt_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtcrossborderpartydt.ValueChanged

EndSub

Print Button

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

EndSubEndClass

Afghan RTP

Load Event

Dim cr As New Client_RecordCrystalReportViewer1.ReportSource = crCrystalReportViewer1.Show()

Pak Client

General Area

Imports System.Data.OleDb Global Area

Public Class pakclient

Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\RazaData\razadata.mdb") Dim str As String Dim dr As OleDbDataReader Sub clr() txtariway.Text = "" txtarrivaldt.Text = "" txtcargo.Text = "" txtconsignment.Text = ""

86

Page 87: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

txtcurrency.Text = "" txtcustomdues.Text = "" txtdeliverydt.Text = "" txtdescription.Text = "" txtdesinationcountry.Text = "" txtdestinationcity.Text = "" txtdocumentdt.Text = "" txthawbdt.Text = "" txtigm.Text = "" txtigmdt.Text = "" txtindex.Text = "" txtinvoicedt.Text = "" txtinvoicevalue.Text = "" txtjobclosing.Text = "" txtjobno.Text = "" txtlcdt.Text = "" txtlcno.Text = "" txtmachinedt.Text = "" txtnetweight.Text = "" txtorigion.Text = "" txtpackages.Text = "" txtpct.Text = "" txtpartyname.Text = "" txtportclearance.Text = "" txtreceivingdt.Text = "" txtremarks.Text = "" txtsalesman.Text = "" txtshipper.Text = "" txtsro.Text = "" txtvname.Text = "" txtweight.Text = ""

End Sub Sub fillname() con.Open() str = "select partyname from pakclient"

Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader While dr.Read ComboBox1.Items.Add(dr(0))

End While con.Close() End Sub

Load Event

87

Page 88: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Private Sub pakclient_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load fillname()

End Sub Save Button

Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click If IsNumeric(txtweight.Text) And IsNumeric(txtnetweight.Text) And IsNumeric(txtcustomdues.Text) Then con.Open()

Try

str = "insert into pakclient(description,cargo,packages,origioncountry,poc,airwaybill,invoicedate,vesselname,indexname,jobclosing,consignment,pct,documentrecevingdt,recevingdt,machinedt,lcno,destinationcountry,hawbdt,invoicevalue,arrivaldt,deliverydt,remarks,shippername,sros,weight,netweight,customdues,destinationcity,lcdt,salesman,igmno,igmdt,curr,partyname) values('" & txtdescription.Text & "' ,'" & txtcargo.Text & "','" & txtpackages.Text & "','" & txtorigion.Text & "','" & txtportclearance.Text & "','" & txtariway.Text & "','" & txtinvoicedt.Text & "' ,'" & txtvname.Text & "','" & txtindex.Text & "','" & txtjobclosing.Text & "','" & txtconsignment.Text & "','" & txtpct.Text & "','" & txtdocumentdt.Text & "' ,'" & txtreceivingdt.Text & "','" & txtmachinedt.Text & "','" & txtlcno.Text & "','" & txtdesinationcountry.Text & "','" & txthawbdt.Text & "','" & txtinvoicevalue.Text & "' ,'" & txtarrivaldt.Text & "','" & txtdeliverydt.Text & "','" & txtremarks.Text & "','" & txtshipper.Text & "','" & txtsro.Text &

"','" & txtweight.Text & "' ,'" & txtnetweight.Text & "','" & txtcustomdues.Text & "','" & txtdestinationcity.Text & "','" & txtlcdt.Text & "','" & txtsalesman.Text & "','" & txtigm.Text & "','" & txtigmdt.Text & "','" & txtcurrency.Text & "','" & txtpartyname.Text & "')"

Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record saved")

88

Page 89: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

clr()

Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close() Else MsgBox("Must type numeric value")

End If

End Sub

Search Button

Private Sub btsearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btsearch.Click ComboBox1.Visible = True Label37.Visible = True

End Sub Combo Box

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged con.Open() Try str = "select * from pakclient where partyname = '" & ComboBox1.Text & "' " Dim c As New OleDbCommand(str, con) dr = c.ExecuteReader

While dr.Read txtjobno.Text = dr(0) txtdescription.Text = dr(1) txtcargo.Text = dr(2) txtpackages.Text = dr(3) txtorigion.Text = dr(4) txtportclearance.Text = dr(5) txtariway.Text = dr(6) txtinvoicedt.Text = dr(7)

89

Page 90: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

txtvname.Text = dr(8) txtindex.Text = dr(9) txtjobclosing.Text = dr(10) txtconsignment.Text = dr(11) txtpct.Text = dr(12) txtdocumentdt.Text = dr(13) txtreceivingdt.Text = dr(14) txtmachinedt.Text = dr(15) txtlcno.Text = dr(16) txtdesinationcountry.Text = dr(17) txthawbdt.Text = dr(18) txtinvoicevalue.Text = dr(19) txtarrivaldt.Text = dr(20) txtdeliverydt.Text = dr(21) txtremarks.Text = dr(22) txtshipper.Text = dr(23) txtsro.Text = dr(24) txtweight.Text = dr(25) txtnetweight.Text = dr(26) txtcustomdues.Text = dr(27) txtcurrency.Text = dr(28) txtdestinationcity.Text = dr(29) txtlcdt.Text = dr(30) txtsalesman.Text = dr(31) txtigm.Text = dr(32) txtigmdt.Text = dr(33) txtpartyname.Text = dr(34)

End While Catch ex As Exception

End Try con.Close()

End Sub Update Button

Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnupdate.Click Try con.Open() str = "update pakclient set description= '" & txtdescription.Text & "' ,cargo='" & txtcargo.Text & "',packages= '" & txtpackages.Text & "' ,origioncountry='" & txtorigion.Text &

90

Page 91: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

"',poc= '" & txtportclearance.Text & "' ,airwaybill='" & txtariway.Text & "',invoicedate='" & txtinvoicedt.Text & "' ,vesselname ='" & txtvname.Text & "' ,indexname='" & txtindex.Text & "' ,jobclosing='" & txtjobclosing.Text & "' ,consignment='" & txtconsignment.Text & "' ,pct='" & txtpct.Text & "' ,documentrecevingdt='" & txtdocumentdt.Text & "',recevingdt='" & txtreceivingdt.Text & "' ,machinedt='" & txtmachinedt.Text & "',lcno='" & txtlcno.Text & "' ,destinationcountry='" & txtdesinationcountry.Text & "',hawbdt='" & txthawbdt.Text & "' ,invoicevalue='" & txtinvoicevalue.Text & "',arrivaldt='" & txtarrivaldt.Text & "' ,deliverydt='" & txtdeliverydt.Text & "',remarks='" & txtremarks.Text & "' ,shippername='" & txtshipper.Text & "',sros='" & txtsro.Text & "' ,weight='" & txtweight.Text & "',netweight='" & txtnetweight.Text & "' ,customdues='" & txtcustomdues.Text & "',curr='" & txtcurrency.Text & "' ,destinationcity='" & txtdestinationcity.Text & "',lcdt='" & txtlcdt.Text & "' ,salesman='" & txtsalesman.Text & "',igmno='" & txtigm.Text & "' ,igmdt='" & txtigmdt.Text & "',partyname='" & txtpartyname.Text & "'where partyname = '" & ComboBox1.Text & "' " Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record Updated") Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close()

End Sub New Button

Private Sub btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnew.Click clr()

End Sub

Payment Record General Area

Imports System.Data.OleDb Global Area

Public Class paymentrecord

91

Page 92: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb") Dim str As String Dim dr As OleDbDataReader Sub clr() txtaamount.Text = "" txtaexpense.Text = "" txtblading.Text = "" txtbno.Text = "" txtbpayorder.Text = "" txtcartage.Text = "" txtccharges.Text = "" txtcduty.Text = "" txtcepass.Text = "" txtcexamination.Text = "" txtcharges.Text = "" txtconsignment.Text = "" txtcredit.Text = "" txtcse.Text = "" txtcseal.Text = "" txtdcharges.Text = "" txtdebit.Text = "" txtdexpense.Text = "" txteapproval.Text = "" txtendowsment.Text = "" txtgst.Text = "" txtigmno.Text = "" txtindex.Text = "" txtinvoice.Text = "" txtjdescription.Text = "" txtjobno.Text = "" txtkexpense.Text = "" txtloading.Text = "" txtmachine.Text = "" txtmawb.Text = "" txtother.Text = ""

txtpackages.Text = "" txtpname.Text = "" txtport.Text = "" txtpstorage.Text = "" txtremarks.Text = "" txtrent.Text = "" txtscharges.Text = "" txtsduty.Text = ""

92

Page 93: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

txtsexcise.Text = "" txtsfine.Text = "" txttbalance.Text = "" txttexpense.Text = "" txtunloading.Text = "" txtvname.Text = "" txtweighment.Text = "" txtwstoken.Text = ""

End Sub

Sub fillname() con.Open() str = "select pname from paymentrecord" Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader

While dr.Read ComboBox1.Items.Add(dr(0))

End While con.Close()

End Sub Save Button

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If IsNumeric(txtcduty.Text) And IsNumeric(txtdcharges.Text) And IsNumeric(txtendowsment.Text) And IsNumeric(txtinvoice.Text) And IsNumeric(txtpstorage.Text) And IsNumeric(txtsexcise.Text) And IsNumeric(txtccharges.Text) And IsNumeric(txtsduty.Text) And IsNumeric(txtloading.Text) And IsNumeric(txtunloading.Text) And IsNumeric(txtcartage.Text) And IsNumeric(txtcexamination.Text) And IsNumeric(txtweighment.Text) And IsNumeric(txtcse.Text) And IsNumeric(txtaexpense.Text) And IsNumeric(txteapproval.Text) And IsNumeric(txtkexpense.Text) And

IsNumeric(txtdexpense.Text) And IsNumeric(txtport.Text) And IsNumeric(txtcseal.Text) And IsNumeric(txtbpayorder.Text) And IsNumeric(txtsfine.Text) And IsNumeric(txtrent.Text) And IsNumeric(txtdcharges.Text) And IsNumeric(txtwstoken.Text) And IsNumeric(txtcepass.Text) And IsNumeric(txtscharges.Text) And IsNumeric(txtgst.Text) And IsNumeric(txtother.Text) And IsNumeric(txttexpense.Text) And IsNumeric(txtaamount.Text) And IsNumeric(txttbalance.Text) And IsNumeric(txtcredit.Text) And IsNumeric(txtdebit.Text) Then

93

Page 94: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

con.Open()

Try

str = "insert into paymentrecord(bno,billoflading,mawb,consignment,jdescription,vesselname,igmno,indexno,machineno,nopackages,remarks,customduty,docharges,endowsment,invoice,ptstorage,sindhexise,caacharges,stampduty,loading,unloading,cartage,customexamin,weighment,csecharges,amdexpense,exapproval,kcexpense,dpcexpense,pcallow,customseal,bporder,sfine,dcrent,dcharges,wstoken,cepass,servicechg,gst,oexpense,texpense,adamount,tbalance,credit,debit,pname) values('" & txtbno.Text & "' ,'" & txtblading.Text & "','" & txtmawb.Text & "','" & txtconsignment.Text & "','" & txtjdescription.Text & "','" & txtvname.Text & "','" & txtigmno.Text & "' ,'" & txtindex.Text & "','" & txtmachine.Text & "','" & txtpackages.Text & "','" & txtremarks.Text & "','" & txtcduty.Text & "' ,'" & txtcharges.Text & "','" & txtendowsment.Text & "','" & txtinvoice.Text & "','" & txtpstorage.Text & "','" & txtsexcise.Text & "','" & txtccharges.Text & "' ,'" & txtsduty.Text & "','" & txtloading.Text & "','" & txtunloading.Text & "','" & txtcartage.Text & "','" & txtcexamination.Text & "','" & txtweighment.Text & "' ,'" & txtcse.Text & "','" & txtaexpense.Text & "','" & txteapproval.Text & "','" & txtkexpense.Text & "','" & txtdexpense.Text & "','" & txtport.Text & "','" & txtcseal.Text & "','" & txtbpayorder.Text & "','" & txtsfine.Text & "','" & txtrent.Text & "','" & txtdcharges.Text & "' ,'" & txtwstoken.Text & "','" & txtcepass.Text & "','" & txtscharges.Text & "','" & txtgst.Text & "','" & txtother.Text & "','" & txttexpense.Text & "','" & txtaamount.Text & "' ,'" & txttbalance.Text & "','" & txtcredit.Text & "','" & txtdebit.Text & "','" & txtpname.Text & "')"

Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record saved") clr()

Catch ex As Exception MsgBox(ex.ToString())

94

Page 95: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

End Try con.Close()

Else MsgBox("Must type numeric value")

End If End Sub

Search Button Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ComboBox1.Visible = True Label49.Visible = True

End Sub New Button

Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click clr()

End Sub Load Event

Private Sub paymentrecord_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load fillname()

End Sub Combo Box

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged con.Open() Try

str = "select * from paymentrecord where pname='" & ComboBox1.Text & "' " Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader While dr.Read txtbno.Text = dr(0) txtjobno.Text = dr(1) txtblading.Text = dr(2) txtmawb.Text = dr(3)

95

Page 96: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

txtconsignment.Text = dr(4) txtjdescription.Text = dr(5) txtvname.Text = dr(6) txtigmno.Text = dr(7) txtindex.Text = dr(8) txtmachine.Text = dr(9) txtpackages.Text = dr(10) txtremarks.Text = dr(11) txtcduty.Text = dr(12) txtcharges.Text = dr(13) txtendowsment.Text = dr(14) txtinvoice.Text = dr(15) txtpstorage.Text = dr(16) txtsexcise.Text = dr(17) txtccharges.Text = dr(18) txtsduty.Text = dr(19) txtloading.Text = dr(20) txtunloading.Text = dr(21) txtcartage.Text = dr(22) txtcexamination.Text = dr(23) txtweighment.Text = dr(24) txtcse.Text = dr(25) txtaexpense.Text = dr(26) txteapproval.Text = dr(27) txtkexpense.Text = dr(28) txtdexpense.Text = dr(29) txtport.Text = dr(30) txtcseal.Text = dr(31) txtbpayorder.Text = dr(32) txtsfine.Text = dr(33) txtrent.Text = dr(34) txtdcharges.Text = dr(35) txtwstoken.Text = dr(36) txtcepass.Text = dr(37) txtscharges.Text = dr(38) txtgst.Text = dr(39)

txtother.Text = dr(40) txttexpense.Text = dr(41) txtaamount.Text = dr(42) txttbalance.Text = dr(43) txtcredit.Text = dr(44) txtdebit.Text = dr(45) txtpname.Text = dr(46) End While

96

Page 97: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Catch ex As Exception

End Try con.Close()

End Sub

Update Button Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Try con.Open()

str = "update paymentrecord set bno= '" & txtbno.Text & "' ,billoflading='" & txtblading.Text & "',mawb= '" & txtmawb.Text & "' ,consignment='" & txtconsignment.Text & "',jdescription= '" & txtjdescription.Text & "' ,vesselname='" & txtvname.Text & "',igmno='" & txtigmno.Text & "' ,indexno ='" & txtindex.Text & "' ,machineno='" & txtmachine.Text & "' ,nopackages='" & txtpackages.Text & "' ,remarks='" & txtremarks.Text & "' ,customduty='" & txtcduty.Text & "' ,docharges='" & txtcharges.Text & "',endowsment='" & txtendowsment.Text & "' ,invoice='" & txtinvoice.Text & "',ptstorage='" & txtpstorage.Text & "' ,sindhexise='" & txtsexcise.Text & "',caacharges='" & txtccharges.Text & "' ,stampduty='" & txtsduty.Text & "',loading='" & txtloading.Text & "' ,unloading='" & txtunloading.Text & "',cartage='" & txtcartage.Text & "' ,customexamin='" & txtcexamination.Text & "',weighment='" & txtweighment.Text & "' ,csecharges='" & txtcse.Text & "',amdexpense='" & txtaexpense.Text & "' ,exapproval='" & txteapproval.Text & "',kcexpense='" & txtkexpense.Text & "' ,dpcexpense='" & txtdexpense.Text & "',pcallow='" & txtport.Text & "' ,customseal='" & txtcseal.Text & "',bporder='" & txtbpayorder.Text & "' ,sfine='" & txtsfine.Text & "',dcrent='" & txtrent.Text & "',dcharges='" & txtdcharges.Text & "',wstoken='" & txtwstoken.Text & "',cepass='"

& txtcepass.Text & "',servicechg='" & txtscharges.Text & "',gst='" & txtgst.Text & "',oexpense='" & txtother.Text & "',texpense='" & txttexpense.Text & "',adamount='" & txtaamount.Text & "',tbalance='" & txttbalance.Text & "',credit='" & txtcredit.Text & "',debit='" & txtdebit.Text & "',pname='" & txtpname.Text & "'where pname = '" & ComboBox1.Text & "' "

Dim cmd As New OleDbCommand(str, con)

97

Page 98: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

cmd.ExecuteNonQuery() MsgBox("Record Updated") Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close() End Sub

Print Button

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Paymentrecordreport.Show()

End SubEnd Class

Payment Record RTP

Dim cr As New Payment_RecordCrystalReportViewer1.ReportSource = crCrystalReportViewer1.Show()

Client History General Area

Imports System.Data.OleDb Global Area

Public Class clienthistory Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb") Dim str As String

Dim dr As OleDbDataReader Dim ds As New DataSet

Show Button Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open()

98

Page 99: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

str = "select * from paymentrecord where dt between '" & DateTimePicker1.Text & "' and '" & DateTimePicker2.Text & "' " Dim cmd As New OleDbCommand(str, con) Dim da As OleDbDataAdapter

da = New OleDbDataAdapter(cmd) cmd.ExecuteNonQuery() da.Fill(ds)

DataGridView1.DataSource = ds.Tables(0) con.Close() End Sub

End Class

Company Info General Area

Imports System.Data.OleDb Global Area

Public Class Company_INFO Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb") Dim str As String Dim dr As OleDbDataReader Sub clr() txtbankinfo.Text = "" txtemail.Text = "" txtmobile.Text = "" txtofficeadd.Text = "" txtothers.Text = "" txtphone.Text = "" txtpname.Text = "" txtrepresent.Text = ""

End Sub

Sub fillname() con.Open() str = "select pname from companyinfo" Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader

While dr.Read ComboBox1.Items.Add(dr(0))

99

Page 100: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

End While con.Close()

End Sub Delete Button

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.Open() str = "delete from companyinfo where pname ='" & txtpname.Text & "' " Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record deleted") clr()

con.Close() End Sub

Save Button Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click con.Open()

Try

str = "insert into companyinfo(pname,phone,mobileno,email,officeadd,represent,bankinfo,others) values('" & txtpname.Text & "','" & txtphone.Text & "','" & txtmobile.Text & "','" & txtemail.Text & "','" & txtofficeadd.Text & "','" & txtrepresent.Text & "','" & txtbankinfo.Text & "','" & txtothers.Text & "')" Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record saved")

clr()

Catch ex As Exception MsgBox(ex.ToString()) End Try con.Close() fillname() ComboBox1.Refresh()

100

Page 101: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

End Sub Load Event

Private Sub Company_INFO_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load fillname()

End Sub Combo Box

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged con.Open() Try str = "select * from companyinfo where pname='" & ComboBox1.Text & "' " Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader While dr.Read txtpname.Text = dr(0) txtphone.Text = dr(1) txtmobile.Text = dr(2) txtemail.Text = dr(3) txtofficeadd.Text = dr(4) txtrepresent.Text = dr(5) txtbankinfo.Text = dr(6) txtothers.Text = dr(7) End While MsgBox("Record Found")

Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close() End Sub

Search Button Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Panel1.Visible = True

End Sub Update Button

101

Page 102: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Try con.Open()

str = "update companyinfo set phone= '" & txtphone.Text & "' ,email='" & txtemail.Text & "',mobileno= '" & txtmobile.Text & "' ,others='" & txtothers.Text & "',pname='" & txtpname.Text & "',officeadd='" & txtofficeadd.Text & "',represent='" & txtrepresent.Text & "',bankinfo='" & txtbankinfo.Text & "'where pname = '" & ComboBox1.Text & "' " Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record Updated") Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close() End SubEnd Class

Create Account General Area

Imports System.Data.OleDb Global Area

Public Class createaccount Dim cn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb") Dim re As String Dim dr As OleDbDataReader Sub clr() TxtPassword.Text = ""

TxtUsername.Text = ""

End Sub Sub filluname() cn.Open() re = "select username from login" Dim cmd As New OleDbCommand(re, cn) dr = cmd.ExecuteReader

102

Page 103: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

While dr.Read ComboBox1.Items.Add(dr(0))

End While cn.Close()

End Sub Delete Button

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click cn.Open() re = "delete from login where username ='" & TxtUsername.Text & "' " Dim cmd As New OleDbCommand(re, cn) cmd.ExecuteNonQuery() MsgBox("Record deleted") clr()

cn.Close()

End Sub Update Button

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click cn.Open() re = "update login set username ='" & TxtUsername.Text & "',pass ='" & TxtPassword.Text & "' where username='" & TxtUsername.Text & "'"

Dim cmd As New OleDbCommand(re, cn) cmd.ExecuteNonQuery() MsgBox("Record updated") clr()

cn.Close()

End Sub Load Event

Private Sub createaccount_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load filluname()

End Sub

103

Page 104: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Save Button

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click cn.Open()

Try

re = "insert into login values('" & TxtUsername.Text & "','" & TxtPassword.Text & "')" Dim cmd As New OleDbCommand(re, cn) cmd.ExecuteNonQuery() MsgBox("Record saved") clr() Catch ex As Exception MsgBox(ex.ToString())

End Try cn.Close() End Sub

Search Button

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ComboBox1.Visible = True

End Sub Combo Box

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged cn.Open() re = "select * from login where username='" & ComboBox1.Text & "'" Dim cmd As New OleDbCommand(re, cn) dr = cmd.ExecuteReader While dr.Read TxtUsername.Text = dr(0) TxtPassword.Text = dr(1) MsgBox("Record Found")

End While cn.Close()

104

Page 105: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

ComboBox1.Visible = False

End Sub Close Button

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Me.Close()

End Sub

End Class

Daily Expense General Area

Imports System.Data.OleDb Global Area

Public Class dailyexpense Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\RazaData\razadata.mdb") Dim str As String Dim dr As OleDbDataReader Sub clr() txtadtamount.Text = "" txtjdescription.Text = "" txtjobno.Text = "" txtmexpense.Text = "" txtoexpense.Text = "" txtpname.Text = "" txtramount.Text = "" txtsno.Text = "" txtvno.Text = ""

End Sub Sub fillname() con.Open() str = "select pname from dailyexpence" Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader

While dr.Read ComboBox1.Items.Add(dr(0))

105

Page 106: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

End While con.Close()

Save Button End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If IsNumeric(txtramount.Text) And IsNumeric(txtmexpense.Text) And IsNumeric(txtoexpense.Text) And IsNumeric(txtadtamount.Text) Then con.Open()

Try

str = "insert into dailyexpence(sno,pname,jdescription,vno,ramount,mexpence,offexpence,adtaamount) values('" & txtsno.Text & "' ,'" & txtpname.Text & "','" & txtjdescription.Text & "','" & txtvno.Text & "','" & txtramount.Text & "','" & txtmexpense.Text & "','" & txtoexpense.Text & "' ,'" & txtadtamount.Text & "')"

Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record saved") clr()

Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close() Else MsgBox(" Must type numerical value")

End If

End Sub Clear Button

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click clr()

End Sub

106

Page 107: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Load Event

Private Sub dailyexpense_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load fillname()

End Sub Search Button

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Label11.Visible = True ComboBox1.Visible = True

End Sub Combo Box

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged con.Open() Try str = "select * from dailyexpense where pname='" & ComboBox1.Text & "' " Dim cmd As New OleDbCommand(str, con) dr = cmd.ExecuteReader While dr.Read txtjobno.Text = dr(0) txtsno.Text = dr(1) txtpname.Text = dr(2) txtjdescription.Text = dr(3) txtvno.Text = dr(4) txtmexpense.Text = dr(6) txtoexpense.Text = dr(7)

txtadtamount.Text = dr(8) txtramount.Text = dr(5)

End While

Catch ex As Exception

End Try con.Close()

End Sub

107

Page 108: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Update Button

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Try con.Open() str = "update dailyexpence set sno= '" & txtsno.Text & "' ,pname='" & txtpname.Text & "',jdescription= '" & txtjdescription.Text & "' ,vno='" & txtvno.Text & "',ramount= '" & txtramount.Text & "' ,mexpence='" & txtmexpense.Text & "',offexpence='" & txtoexpense.Text & "' ,adtaamount ='" & txtadtamount.Text & "'where pname = '" & ComboBox1.Text & "' "

Dim cmd As New OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record Updated") Catch ex As Exception MsgBox(ex.ToString())

End Try con.Close()

End SubEnd Class

Implementation

Structured Flowchart

108

Splash Screen

Main Screen

Login Screen

Page 109: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Implementation

Use of Separate Modules

Login Form:

Here the user has to type their username and password to gain access to the system. On entering the wrong username and password an error message is displayed.

109

Pak client Bank Company info Daily Exp Payment RecordAghan client

Job No.

Invoice date

Airway bill

POC

Packages

Cargo

Description

Job no

Vessel name

Index name

Weight

SROS

Currency

Job ClosingHawb date

Description

Consignment

Vessel name

Received date

IC no

PCT

Invoice date

Dest .Country

Invoice value

CB-Submit dt

crossborderdt

Job no

Ddraft

Party name

Pbalance

Dcash

Netamount

Wamount

Wcash

Damount

date

Wdraft

Wchequeno

Wonlinebank

Party name

Phone

Mobile no

Email

Others

Bank info

Representativ

OfficeAddress

Job no

S.No

Party name

JobDesc

Offc expense

My expense

R amount

V no

Adt amount

Bill No.

DO charges

Job No

BillofLading

MAWB

Remarks

No packages

Index No

Igm No

Custom duty

invoice

PT storage

Cartage

Page 110: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Create account Form:

If a user does not have an account, a new account can be created by entering a new user name and password. Access to the system is then granted.

Splash Screen:

This screen shows the name of the Company and type of business. It also shows Company Logo.

Main Menu Form:

Here the user can navigate between forms Afghan Client, Pak Client, Bank, Client History, Daily Expense, Bank, Payment and Create account forms all can be accessed from here. Users can also log out at this screen by clicking on the button on the right hand on the menu strip.

Afghan Client Form:

User can enter new details. They can also change the data, delete the details if the user cancels the orders in the system. User can also search for details. They can know which orders and pending for the Company access different company orders and update them as necessary. User can also close or minimize this form to return to the main menu.

110

Page 111: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Pak Client Form:

User can enter new order details. They can also change the data and delete the details if the order is removed or cancelled by the company. Users can also search for the orders here by means of party name if a company has orders. They can also return to the main menu.

Bank Form:

Here the user can search the banking information about the orders of the company by Party name, and specified date, if the order is there then the system shows the details of that order, others wise it gives a message “record not found” If the user finds that there is a deposit by the company it is added in the deposit amount. On the other hand if the company withdraws money from the bank the subtract button subtracts that amount to the system . The net balance is shown after adding or subtracting amounts. The user can clear the information from the form by using clear button. The user can go to check the banking history by using bank button.

Crystal Report Viewer:

Here the user can view a report which has details of all the orders that have been furnished or pending during a specified date, it also shows different charges and order amounts

.

Company Info Form:

111

Page 112: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

In this Form the information about the company is shown by selecting a party name. The data can be deleted, updated or searched by delete, update, save and search buttons

Daily Expense Form:

By entering the daily expense form the user can find the information about a company regarding its daily expenses. The options available are save, search, update and clear.

Payment Record Form:

Using this form information about a company client can be entered, searched or deleted by party name and the user can make changes in the record and then updates them in the current record. Fields can be cleared by clear button to show information about the other clients.

Testing

112

Page 113: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Testing

Test Strategy

After the designing phase is complete, the testing of the system is to be performed. The main purpose of this system is to make sure weather the system is producing the expected results or not. The acceptance of the system of data is based on nature of data being entered.

The two types of data are entered. They are:

Normal Data: The data which computer easily accepts without an error message is categorized as normal data. E.g. Book name for which data type is text, which accepts both alphabets and numbers but very few special characters, so the data would be “127 Hours”.

Abnormal Data: The data which is unacceptable for the computer to save due to which the user faces errors, is abnormal data. This type of data should never be entered in the database by the user. E.g. Book name for which data type is

113

Page 114: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

text, which accepts both alphabets and numbers but very few special characters, so the data would be “H(R@%?”.

Testing

Testing with different types of Data

Serial No. Field name Data type Valid data Invalid data

1 User name Text Abc @

2 Pass Text Computer ||

Login Table

Company Info

Serial No. Field name Data type Valid data Invalid data

114

Page 115: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

1 Party name Text Abc @

2 Phone Text Computer ||

3 Mobile no. Text 0347-2079618 Abc

4 Email Text abc@ /*-

5 Office address Text Abc b-2 ? > ;

6 Representative Text Saad +-*

7 Bank info Text 2500$ {}

8 Others Text Abcd-232-r ?>/

Serial No. Field name Data type Valid data Invalid data

1 Description Text Table for clients * *

2 Cargo Text Computer ||

3 Packages Text 400T ^

4 Origin country Text Pak #

5 POC Text Abc 456

6 Airway bill Text Abc }}

7 Invoice date Date/time Mm/dd/yy 31 march

8 Vessel name Text Abc “:

9 Index name Text Abc +*

10 Job closing Date/time Mm/dd/yy 456

11 Consignment Text Abc 1234

12 PCT Text Abc 456

115

Page 116: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

13 Doc receiving date Date/time Mm/dd/yy 28 Feb

14 Receiving date Date/time Mm/dd/yy 21st Jan

15 Net weight Number 2500 Kgs

16 IC no Text 0123- Abcd

17 Destination country

Text Japan City name

18 Hawb date Date/time Mm/dd/yy 25th Dec 2011

Afghan Client Table

Serial No. Field name Data type Valid data Invalid data

1 Description Text Table for clients * *

2 Custom dues Number 2345 Abc

3 Packages Text 400T ^

4 Origin country Text Pak #

5 POC Text Abc 456

6 Airway bill Text Abc }}

7 Invoice date Date/time Mm/dd/yy 31 march

8 Vessel name Text Abc “:

9 Index name Text Abc +*

10 Arrival date Date/time Mm/dd/yy 456

11 Consignment Text Abc 1234

12 PCT Text Abc 456

116

Page 117: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

13 Delivery date Date/time Mm/dd/yy 28 Feb

14 Receiving date Date/time Mm/dd/yy 21st Jan

15 Net weight Number 2500 Kgs

16 IC no Text 0123- Abcd

17 Destination country

Text Japan City name

18 Hawb date Date/time Mm/dd/yy 25th Dec 2011

Pak Client Table

Bank Table

Serial No. Field name Data type Valid data Invalid data

1 Previous balance Number 0123 * *

2 Party name Text Abc Enterprise 234/-

3 Deposit cash Number 400 ^

4 Deposit Cheque no

Text kc-2346 #

5 Deposit Pay order no

Text Pk-2345 %

6 Deposit amount Number 21000 }}

7 Withdraw cash Number 45000 31 march

8 Withdraw Pay order no

Text TK-23635 “:

9 Withdraw cheque no

Text BC-25647 +*

10 Withdraw amount Number 45604

11 Net amount Number Abc 1234

117

Page 118: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

12 Date Text Abc 456

13 Deposit draft Text Abc 28 Feb

14 Deposit online banking

Text Abc 21st Jan

15 Withdraw draft Text Abc Kgs

16 Withdraw online banking

Text Abc Abcd

Serial No. Field name Data type Valid data Invalid data

1 Serial No. Text 012E25 * *

2 Party name Text Abc Enterprise 234/-

3 Job description Text Abc continued ^

4 Vessel name Text kc-2346 #

5 Rent amount Number 2345 %

6 My expense Number 21000 Abc

7 Office expense Number 45000 31 march

8 Adta amount Number 23635 “:

Daily Expense Table

118

Page 119: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Payment Record Table

Serial No. Field name Data type Valid data Invalid data

1 Bill of lading Text ok * *

2 Mawb Text Abc 234/-

3 Consignment Text Abc ^

4 Job description Text shipping #

5 Vessel name Number 2345 %

6 Igm No Number 21000 Abc

7 Index no Number 45000 31 march

8 Machine no Number 23635 “:

9 Party name Text Abc Enterprise 123

10 Remarks Text Done 3214

11 Custom duty Number 250 {]

12 DO charges Number 215 | ;

13 Endowment Number 36 Ok

14 Invoice Number 2634 T123

15 Pt storage Number 1245 n/a

16 GST Number 2.3 Paid

17 Debit Number 45000 Add

18 Credit Number 36000 Subtract

19 Total expense Number 78000 Total amount

Testing

119

Page 120: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Sample Run

120

Page 121: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

121

Page 122: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

122

Page 123: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

123

Page 124: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

124

Page 125: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

125

Page 126: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

126

Page 127: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Testing

Data Dictionary

127

Page 128: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

128

Page 129: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

129

Page 130: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

130

Page 131: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

131

Page 132: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

132

Page 133: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Testing

Testing for error messages

When incorrect password is entered an error occurs and the application does not login.

133

Page 134: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

when non numeric value is written an error is occurred and the record is not saved.

134

Page 135: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

When non numeric value is written an error is occurred and the record is not saved.

135

Page 136: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

When non numeric value is written an error is occurred and the record is not saved.

136

Page 137: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

When the date and party name do not match the application gives an error and does not search.

137

Page 138: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

When non numeric value is written an error is occurred and the record is not saved.

138

Page 139: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Documentation

139

Page 140: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Documentation

User Guide

How to Install:

The Project of NLP owned by The National Library Of Pakistan is now a standard package like any software. The user will now have to insert a disk and double click on the installation exe file to start the installation process. The installation of this software is like any other installation of any other software.

1. After double clicking on the installation exe file the following setup screen will appear will click ok and the installation process would start.

2. Then after clicking ok a window will appear which will allow the user to select the place on hard disk where the user wishes to install the software. This path is selected by clicking the change directory button. After selection of the directory the installation process takes the user to another step.

3. Now another window appears which will show the path from where the user would like to run the software. After selection of this path the ok button further takes another step in the process of installation.

4. Installation is now complete.

How to Uninstall:

To uninstall the software the user will have to go on the start menu and through settings go on to the control panel menu and select add/remove program. The following window will appear.

Now the user can choose the program or file he wishes to remove. After selection of the program the un-installation process will start. The software is now uninstalled.

How to Run The Program:

The software is now ready to run from the specified place by the user while installation.

140

Page 141: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Login Form:

When the project loads the first thing that appears on the screen is the Login Screen. Here the User will have to enter the username and password. The username is “admin” and the password is “admin”. Enter the username and password on their specified fields. The “Login” button will verify the username and password. After the verification a message box saying “Login Successful” will come up and confirm your verification. Click “OK”

141

Page 142: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Splash Screen

142

Page 143: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Main Menu:

Once the main menu appears on the screen, several options will appear in the form of command buttons.

On the main menu the options are provided to the user by the help of menu strip buttons.

*In the form the menu strip buttons show

1. Afghanistan Client2. Pak Client3. Payment Record4. Bank History5. Company info6. Client history7. Create account8. Daily expense

143

Page 144: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Afghan Client:

*In the Customer information for Afghanistan Client form there are:

1. Add a Client2. Search a Client3. Update a Client4. Return a Client5. Print a Client

144

Page 145: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Pak Client:

*In the Customer information for Pakistan Client form there are:

6. Add a Client7. Search a Client8. Update a Client9. Return a Client10.Print a Client

145

Page 146: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Payment Records:

*In the Client Payment Record form there are:

11.Add a payment12.Search a payment13.Update a payment14.Return a payment15.Print a payment

146

Page 147: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Bank:

*In the Bank form there are:

16.Add a payment17.Search a payment18.Update a payment19.Return a payment20.Print a payment21.Subtract a payment

147

Page 148: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Bank History:

*In the Bank History table form there is:

1. A data grid view table connected to the bank table in the database which shows the records of the bank.

148

Page 149: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Company Info:

*In the Company Info form there are:

22.Add a Company info23.Search a Company info24.Update a Company info25.Return a Company info26.Print a Company info

Create Account:

149

Page 150: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

*In the Create account form there are:

27.Add a account28.Search a account29.Update a account30.Return a account

Client History:

150

Page 151: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

*In the Client History table form there is:

1. A data grid view table connected to the client table in the database which shows the records of the client.

Daily Expense:

151

Page 152: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

*In the Daily expense form there are:

31.Add a expense32.Search a expense33.Update a expense34.Return a expense

Documentation

152

Page 153: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Reports

153

Page 154: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

154

Page 155: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

155

Page 156: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Documentation

Input / Output Chart

Login Form

INPUT OUTPUT User Name User Name Password Password

Daily Expense Form

INPUT OUTPUT Job No. Job No. Serial No. Serial No. Party Name Party Name Job Description Job Description Vessel No. Vessel No. Received amount Received amount My expense My expense Office expense Office expense Advance date

amount Advance date

amount

Company Information Form

INPUT OUTPUT Party name Party name Phone no. Phone no. Mobile no. Mobile no. Email Email Office address Office address Representative Representative Bank information Bank information Others Others

156

Page 157: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Payment Record Form

INPUT

P

R

O

C

E

Ss

OUTPUTBill Number Bill Number Party Name Party Name Bill of Lading Bill of Lading Consignment Consignment Job description Job description Vessel name Vessel name Igm no Igm no Index no Index no Machine no Machine no No of packages No of packages Remarks Remarks Custom duty Custom duty DO charges DO charges Endowment Endowment Pt storage Pt storage Sindh exise Sindh exise CAA charges. CAA charges. Stamp duty Stamp duty Loading Loading Unloading Unloading Cartage Cartage Custom examination Custom examination Weighment Weighment Cse charges Cse charges Amd expense Amd expense Extra approval Extra approval KC expense KC expense dP expense dP expense Pc allow Pc allow Custom seal Custom seal Bp order Bp order S fine S fine Dc rent Dc rent D charges D charges Ws token Ws token Ce pass Ce pass Service charges Service charges General sales tax General sales tax Office expense Office expense Total expense Total expense

157

Page 158: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Advance Amount Advance Amount

Pak Client Form

INPUT OUTPUT Party Name Party Name Job No Job No Description Description Cargo Cargo Packages Packages Origin Country Origin Country POC POC Airway Bill Airway Bill Invoice date Invoice date Vessel name Vessel name Index name Index name Job Closing Job Closing Consignment Consignment PCT PCT Document receiving

date Document receiving

date Receiving date Receiving date Machine date Machine date IC No. IC No. Destination Country Destination Country HAWB date HAWB date Invoice value Invoice value Arrival date Arrival date Delivery date Delivery date Remarks Remarks Shipper name Shipper name SROS SROS Weight Weight Net weight Net weight Custom dues Custom dues Currency Currency IC date IC date Salesman Salesman IGM no IGM no IGM date IGM date

158

Page 159: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Afghan Client Form

INPUT OUTPUT Party Name Party Name Job No Job No Description Description Cargo Cargo Packages Packages Origin Country Origin Country POC POC Airway Bill Airway Bill Invoice date Invoice date Vessel name Vessel name Index name Index name Job Closing Job Closing Consignment Consignment PCT PCT Document receiving

date Document receiving

date Receiving date Receiving date Machine date Machine date IC No. IC No. Destination Country Destination Country HAWB date HAWB date Invoice value Invoice value Arrival date Arrival date Delivery date Delivery date Remarks Remarks Shipper name Shipper name SROS SROS Weight Weight Net weight Net weight Custom dues Custom dues Currency Currency IC date IC date Salesman Salesman IGM no IGM no IGM date IGM date Destination City Destination City

159

Page 160: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Bank Form

INPUT OUTPUT Party name Party name Previous balance Previous balance Deposited cash Deposited cash Deposit by draft Deposit by draft Deposit Online

banking Deposit Online

banking Deposit amount Deposit amount Deposit Cheque no Deposit Cheque no Deposit Pay order

no Deposit Pay order

no Withdraw cash Withdraw cash Withdraw by draft Withdraw by draft Withdraw Online

banking Withdraw Online

banking Withdraw amount Withdraw amount Withdraw Cheque

no Withdraw Cheque

no Withdraw Pay order

no Withdraw Pay order

no

160

Page 161: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Bank History Form (Grid View)

INPUT OUTPUT

Starting date

Party name Previous balance Deposited cash Deposit by draft Deposit Online

banking Deposit amount Deposit Cheque no

Ending date

Deposit Pay order no

Withdraw cash Withdraw by draft Withdraw Online

banking Withdraw amount Withdraw Cheque

no Withdraw Pay order

no

161

Page 162: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Client History Form (Grid View)

INPUT OUTPUT

Starting Date

Bill Number Party Name Bill of Lading Consignment Job description Vessel name Igm no Index no Machine no No of packages Remarks Custom duty DO charges Endowment Pt storage Sindh exise CAA charges. Stamp duty Loading Unloading

Ending date

Cartage Custom examination Weighment Cse charges Amd expense Extra approval KC expense dP expense Pc allow Custom seal Bp order S fine Dc rent D charges Ws token Ce pass Service charges General sales tax

162

Page 163: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Office expense Total expense Advance Amount

Evaluation and Future Development

163

Page 164: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Evaluation and Future Development

164

Page 165: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Evaluation of the Computerized System

Finally, computerized system of Raza Enterprises.LTD has been completed and I truly believe that it will help the company.

Data of the company is now very safe due to the use of passwords. Duplication of data has been to the maximum extent been eliminated. The data can be viewed more presentably by the use of reports. Data can now be entered more accurately and easily.

The user guide is also present in the system which can be viewed by the new users so that they can understand the basic functions and mechanisms of the system. An online update would also be available soon.

It is faster then manual work and will safe the time of the customer and moderisation is a good sign for the country.

165

Page 166: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

Evaluation and Future Development

Future Development

The Raza Enterprises.LTD control project is sufficient to satisfy the record keeping needs of the company. However a few threads have been kept loose with regard to any future development prompted by change in the requirements.

The current database is based on Microsoft Access 2003and in near future it can be upgraded to any future version of Access.

A Local Area Network can be setup throughout the company to facilitate easy transfer of records from one department to another.

The company can introduce internet so as to have contact with rest of the departments. A main webpage on the internet can help in the publicity of the company in places where it’s not known to others causing a possible increase in the company’s clients.

The company can use fast printers such as the latest laser printers and appoint more qualified operators for printing reports which are much feasible and more reliable.

The company can also increase its hardware capacity in future.

To facilitate communications throughout the company, the merge mail facility can be used.

The company should always use updated hardware for better, safe, fast and reliable use.

The company can update the software visual studio 2008 for better performance by future updates and versions to utilize the full capabilities of the language in the software.

166

Page 167: Booklet to design a software on ms visual studio with an example

R ERaza Enterprises (Pvt) Ltd. Muhammad Noman RazaBatch-2012

The program can be modified to include more sub menus and files so that the other departments in the company can use it as well.

167