SlideShare a Scribd company logo
1 of 135
Download to read offline
i
IIINNN TTTHHHEEE NNNAAAMMMEEE OOOFFF
AAAAAAAALLLLLLLLLLLLLLLLAAAAAAAAHHHHHHHH
TTTHHHEEE MMMOOOSSSTTT BBBEEENNNEEEFFFIIICCCEEENNNTTT
TTTHHHEEE MMMOOOSSSTTT MMMEEERRRCCCIIIFFFUUULLL
ii
iii
AUTOMATION
OF
INVENTORY CONTROL SYSTEM
FOR
PIONEER PAKISTAN SEED LIMITED
SAHIWAL
BY
Mr. KASHIF KHAN
Mr. SHAHID HUSSAIN
Mr. EHTESHAM ANWER
iv
A dissertation submitted to
COMPUTER SCIENCE DEPARTMENT
ALLAMA IQBAL OPEN UNIVERSITY
ISLAMABAD
As a partial fulfillment of the requirement
For B.C.S. Degree in
COMPUTER SCIENCE
OCTOBER 1999.
v
PROJECT BRIEF
Project Name: - Inventory Control System
Organization: - Pioneer Pakistan Seed Ltd.
Objectives: - To Automate The
Inventory Control system
Undertaken By: - KASHIF KHAN
SHAHID HUSSAIN
EHTESHAM ANWER
Supervised By: - Mr. SHAHZAD ASIM
MCS
Starting Month: - May, 1999
Completion Month: - October, 1999
Source Language: - Visual Basic 6.0 (Enterprise Edition)
Operating System: - MS-Windows 98
Software Used: - MS-Word 97
VISIO (ver 1.0)
INPAGE (ver 1.1)
Paint Brush 98
Computer Used: - Pentium MMX 200 MHz
vi
FINAL APPROVAL
This is to certify that we have read this thesis submitted by:
Name Roll Number Reg. Number
Kashif Khan F-4744820 097-PSL-0400
Shahid Hussain G-4187680 097-PSL-1253
Ehtesham Anwer F-4743947 097-PSL-0386
And it is our judgment that this thesis is sufficient standard to
warrant its acceptance by ALLAMA IQBAL OPEN
UNIVERSITY, ISLAMABAD for the Bachelor Degree of
Computer Science.
vii
COMMITTEE
1.External Examiner:
2.Supervisor:
Mr. SHAHZAD ASIM
MCS
Center in Computer Excellence
SAHIWAL
3.Chairman:
Dr. MOHAMMAD ARSHAD
Ph.D.
Chairman of MATH. STAT. and
Computer Science Department
ALLAMA IQBAL OPEN UNIVERSITY
ISLAMABAD
viii
DEDICATION
I dedicate this thesis
To the memories of my
Late Father
A.S. Hamayun Khan
Kashif Khan
I dedicate this thesis to
My loving Parents
They really work hard
For me
Shahid Hussain
I dedicate this thesis to
My loving Parents
And my younger
Brother
Ehtesham Anwer
ix
ACKNOWLEDGMENT
ll praise goes to ALLAH ALMIGHTY. The most merciful,
and the most beneficent, Who gave us courage to
complete this task successfully and all respects to His
Prophet MOHAMMED (peace be upon him) who enable
us to recognize our creator.
We are students of B.C.S. at sahiwal campus of A.I.O.U. We
are belonging to the first batch of B.C.S. launched by A.I.O.U. in
May 1997. We are very fortune to get a higher education in our
city without going to anywhere outside.
All credits are goes to A.I.O.U. and C.C.E. (center in
computer excellence), which is study center in our city and give
us a chance to get skills in the modern education of computer
science. We are very proud to announce that we are PIONEERS
of B.C.S. because of we are students of first batch of B.C.S.
launched by A.I.O.U. in sahiwal.
We are bound to thanks to all our teachers especially Sir
Asghar Ali who teach us from very first day of B.C.S. Sir Asif
Raza Zaidi, Sir Najeeb-ur-Rehman, Sir Rashid Munir and also a
very special thanks to Afzal Hussain who was our lab. Incharg
and now he is a professional programmer.
We are also wants to record our thanks to Mr.Nasir
Mahmood (production and plant manager) and Dr. Shafiq Ahmad
(quality assurance manager) for their co-operation and provided
valuable information in completing our project.
We also cannot forget to express our deep gratitude to all
our class fellows and especially our best friend Rao Kashif for
assistance and memorable occasions that we will never forget.
KASHIF KHAN
SHAHID HUSSAIN
EHTESHAM ANWER
A
x
PREFACE
ach and every system either manual or computerized is a
collection of many sub systems. Similarly the system at
PIONEER PAKISTAN SEED LTD. have many sub systems
such as Payroll for their employees, Inventory Control for
their stock keeping, Accounts Maintenance for transaction occurs
in daily office workings. We choose Inventory Control at
PIONEER PAKISTAN SEED LTD. because they have very large
warehouses for storage of different types of items, their respected
hybrids in different sizes of bags.
So this thesis is about inventory control system of PIONEER
PAKISTAN SEED LIMITED, which consists of nine chapters.
First chapter contains information about the organization
and the main objectives of the organization and also an
organizational structure.
The second chapter provides information about inventory and
its types.
The third chapter is about the existing system of the
organization, which is manual system.
The fourth chapter is about the proposed system for the
PIONEER PAKISTAN SEED LIMITED.
The fifth chapter is about the system designing. It describes
all the table layouts and their fields with their types.
In the sixth chapter we select a language for the
development of the software.
In the seventh chapter information about software
implementation is given.
In chapter eight, all the input/output data screens and source
codes are presents.
The last chapter is a user’s guide, which gives view of the
procedures for the users to operate and handle the control of the
new system.
In epilogue we realizes our limitations in imaginations about
creativity, development of project and analyzing the system.
E
xi
The appendix A of the thesis contains program flow charts.
Appendix B contains data dictionary, which tells the purpose
of every field, used in any table as well as data flow diagrams and
their explanation.
Appendix C contains document involved in manual system
of PIONEER PAKISTAN SEED LIMITED.
xii
CONTENTS
CHAPTER 1 INTRODUCTION TO ORGANIZATION 1
1.1 INTRODUCTION ...........................................................……….. 2
1.2 OBJECTIVES ........................................................................… 2
1.3 PROJECT OVERVIEW ...........................................................… 4
1.3.1 COMMERCIAL SEEDS ..................................................… 4
1.3.2 LOCAL PRODUCTION ..................................................… 4
1.4 ORGANIZATIONAL STRUCTURE ..........................................… 5
1.5 PROJECT AIMS ....................................................................… 5
1.6 PROJECT OBJECTIVES .........................................................… 6
CHAPTER 2 INTRODUCTION TO INVENTORY 7
2.1 WHAT IS INVENTORY ........................................................… 8
2.2 RAW MATERIAL .................................................................… 8
2.3 SUPPLIES ...........................................................................… 9
2.4 WORK IN PROCESS .............................................................… 9
2.5 FINISHED GOODS ...............................................................… 9
2.6 PURPOSE OF INVENTORIES ...............................................… 9
2.7 COSTING MATERIAL ISSUES ..............................................… 10
CHAPTER 3 EXISTING SYSTEM 12
3.1 INTRODUCTION .................................................................… 13
3.2 STOCK REGISTER ...............................................................… 13
3.3 PARENT SEED, CHEMICAL AND PACKING MATERIAL
REGISTER.
14
3.4 RAW MATERIAL REGISTER ...............................................… 14
3.5 DOCUMENTS ....................................................................… 15
3.6 LIMITATIONS IN EXISTING SYSTEM ..................................… 16
xiii
CHAPTER 4 PROPOSED SYSTEM 17
4.1 INTRODUCTION .................................................................… 18
4.2 NEED FOR COMPUTERIZED PROCESSING ........................…. 18
4.3 SOFTWARE PROCESS MODELS ...........................................… 19
4.4 PHASES OF PROPOSED SYSTEM .........................................… 20
4.4.1 PRELIMINARY INVESTIGATION ..............................… 20
4.4.2 ANALYSIS PHASE ....................................................… 21
4.4.3 DESIGN PHASE ........................................................… 22
4.4.4 DEVELOPMENT PHASE ............................................… 23
4.4.5 IMPLEMENTATION PHASE ......................................… 23
4.5 OBJECTIVES OF THE PROPOSED SYSTEM ..........................… 24
4.6 PROPOSED SYSTEM REQUIREMENTS .................................… 27
4.6.1 REPORTS .................................................................… 28
4.6.2 INPUT SCREENS ......................................................… 28
4.6.2 HUMAN INTERFACE ................................................… 28
CHAPTER 5 SYSTEM DESIGN 29
5.1 INTRODUCTION .................................................................… 30
5.2 DESIGN APPROACHES ........................................................… 30
5.2.1 TOP-DOWN DESIGN .................................................… 31
5.2.2 BOTTOM-UP DESIGN ...............................................… 31
5.2.3 CRITICAL FIRST DESIGN .........................................… 31
5.2.4 STRUCTURED DESIGN .............................................… 32
5.3 ADOPTED APPROACH ........................................................… 32
5.4 STRUCTURED TOOLS .........................................................… 33
5.4.1 DATA FLOW DIAGRAMS ..........................................… 33
5.4.2 DATA DICTIONARY .................................................… 34
5.5 DESIGN SPECIFICATION ....................................................… 34
5.5.1 OUTPUT DESIGNING ...............................................… 34
5.5.2 INPUT DESIGNING ..................................................… 35
5.5.3 FILE DESIGNING. …………………………………………… 36
xiv
5.6 DESCRIPTION OF FILES ....................................................… 36
CHAPTER 6 SOFTWARE DEVELOPMENT 44
6.1 INTRODUCTION .................................................................… 45
6.2 WHY COMPUTER BASED SYSTEM ......................................… 45
6.3 SELECTION OF LANGUAGE ................................................… 45
6.4 SOFTWARE DEVELOPMENT ...............................................… 47
6.5 METHODS OF DEVELOPMENT PHASE ................................… 48
6.5.1 CODING ...................................................................… 48
6.5.2 COMPILING .............................................................… 48
6.5.3 TESTING ..................................................................… 49
6.6 SYSTEM EVALUATION .......................................................… 50
6.6.1 TIMELINESS ............................................................… 50
6.6.2 CONCISENESS .........................................................… 51
6.6.3 EFFICIENCY ............................................................… 51
6.7 HARDWARE CONSIDERATION ............................................… 51
6.8 SOFTWARE CONSIDERATION .............................................… 52
CHAPTER 7 SOFTWARE IMPLEMENTATION 53
7.1 INTRODUCTION .................................................................… 54
7.2 CONVERSION .....................................................................… 54
7.2.1 DIRECT CONVERSION METHOD ..............................… 55
7.2.2 GRADUAL CONVERSION METHOD ..........................… 55
7.2.3 PARALLEL CONVERSION METHOD .........................… 55
7.2.4 PILOT CONVERSION METHOD .................................… 56
7.3 PROPOSED CONVERSION METHOD ....................................… 56
7.4 TRAINING OF PERSONNEL .................................................… 56
CHAPTER 8 CODING AND DATA SCREENS 58
8.1 MAIN MENU …………………………………………………………… 59
8.2 IN-COMING UNFINISHED SEEDS ………………………………… 62
xv
8.3 IN-COMING FINISHED SEEDS ……………………………………… 70
8.4 OUT-GOING FINISHED SEEDS ……………………………………… 78
8.5 ITEM INFORMATION ………………………………………………… 86
8.6 PARTY INFORMATION ……………………………………………… 90
8.7 BIN NO INFORMATION……………………………………………… 94
8.8 BAGS SIZE INFORMATION ………………………………………… 98
8.9 WAREHOUSE INFORMATION ……………………………………… 102
8.10 STOCK POSITION …………………………………………………… 105
CHAPTER 9 USER GUIDE 111
9.1 INTRODUCTION ............................................................…….. 112
9.2 GETTING STARTED ............................................................… 112
9.3 THE SCREEN MENU ...........................................................… 112
9.4 THE HOT KEYS ……...........................................................… 114
EPILOGUE .................................................................................… 116
APPENDIX A DATA DICTIONARY & DFD …............................... 118
1
C H A P T E R
1
I N T R O D U C T I O N
T O
O R G A N I Z A T I O N
A.I.O.U. (Sahiwal Campus) Ch. # 1
2
1.1 INTRODUCTION
Name of the company is “PIONEER PAKISTAN SEED LTD”.
The registered office of the company is situated in Punjab province,
Pakistan
Pioneer Hybrid International inc. was established in 1926 in
DMOVEEN (the city of AMERICA).
PIONEER is a largest company in the world in production of seeds.
PIONEER have a business over 27 billions per annum.
It has its branches in 152 countries of the world.
It has research centers in 40 countries of the world.
PIONEER provides 38% hybrid seeds on world level.
PIONEER has praised award in 1938 due to his struggle against
poverty and hunger.
1.2 OBJECTIVES
The objectives for which the company is established are:
1. To carry on all or any of the business of growers, producers,
conditioners, processors, packagers, sellers, merchants, agents,
consultants, advisors and technicians for in and to all cereal food,
fiber, oil and vegetable seeds, plants, grains, forage, hybrids, and
varieties of the same foodstuffs and other agricultural and
horticultural products by products, microbial products and matters
related to or ancillary to any thereof.
A.I.O.U. (Sahiwal Campus) Ch. # 1
3
2. To transfer technology and experience in the seed and microbial
business by means of introducing efficient agricultural service
support to farmers and training Pakistani nationals.
3. To deal in all fields of agricultural investments and agro-industry
investments.
4. To improve, export, buy, sell, exchange, manufacture, prepare,
process condition, package and deal in seed, grain, forage, fiber,
oil, vegetable seeds more generally all agricultural and non-
agricultural products and by products of all types and description.
5. To purchase otherwise acquire, erect, maintain, equip, reconstruct
and adopt and building, offices, showrooms, workshops, mills,
plants, machinery, tools accessories and things found necessary or
convenient for purpose of the company and to work the same.
6. To purchase, take on lease or other wise acquire lands, buildings,
and houses and in articulator lands producing or likely to produce
the articles in which the company is directly or indirectly interested.
7. To carry on the business of distributors, constructors, agents,
importers, exporters and carriers.
8. To make arrangements for the purchase, supply, manufacture,
marketing and disposal of all or any articles goods and material
required, stocked or manufactured by the company or in CO-
operation with any person, body of any Government department.
9. To carry on the business of crop farming in addition to animal
husbandry, agricultural and allied industry.
10. To manufacture and deal in chemicals necessary or required for any
of the purpose of the company.
A.I.O.U. (Sahiwal Campus) Ch. # 1
4
11. To carry on the business of imports and exports of all kinds of
goods, commodities and merchandise directly or indirectly related
to the business of the company.
12. To undertake commercial obligations, transactions, and operations
of all kinds relating to business of the company.
13. To adopt such mean of making known the product and business of
the company as may seem expedient and particulars and granting
prizes, rewards and donations.
1.3 PROJECT OVERVIEW
The inventory of PIONEER PAKISTAN SEED LTD. is of two
types:
a) Commercial seed.
b) Local production.
1.3.1 COMMERCIAL SEED
According to the requirement of the growers or market an order is
sent to USA from which demanded seed is arrived and stocked in the
warehouses of the company. After that according to the demand of the
growers or the market the imported seed is distributed.
1.3.2 LOCAL PRODUCTION
In local production first of all contract is made with the growers,
then parent seed and chemicals are provided to the growers. When crop
is grown then detesling is made. Detesling is a process of preparing
A.I.O.U. (Sahiwal Campus) Ch. # 1
5
hybrid seeds. Then ripped crop is brought to the seed plant for
processing. In processing there are many process involves such as
weaghtage, unload, sorting, drying, shelling, cleaning, sizing, gravity
treatment like insecticides, fungicides, coloring, or dying, after it
bagging and then store the finished seeds in cold storage or local
warehouse for further use. When finished seed is prepared then packing
is made in the plant with the help of automatic machines. This stock is
then distributed among growers or in the market.
1.4 ORGANIZATIONAL STRUCTURE
The General Manager and the Chief Executive of PIONEER
PAKISTAN SEED LTD. is Mr. Asif Ali Shah. The main organizational
chart is as under:
GM (Chief Executive)
Finance & Admin. Marketing Supply Management
Production Seed plant Quality Assurance
The Head Office situated
14-L, Model Town
Lahore.
A.I.O.U. (Sahiwal Campus) Ch. # 1
6
1.5 PROJECT AIMS
Observe the existing inventory control system of PIONEER
PAKISTAN SEED LTD.
Collect relevant slips, forms, registers and reports etc.
Submit a study report for its computerization to improve.
Input and output formats.
Security.
Generation of all types of reports.
On-line information retrieved.
1.6 PROJECT OBJECTIVES
In order to meet these objectives the project work is divided into
following phases:
1. Preliminary Investigation
2. Analysis Phases
3. Design phase
4. Development phase
5. Implementation phase
______________________
7
C H A P T E R
2
I N T R O D U C T I O N
T O
I N V E N T O R Y
A.I.O.U. (Sahiwal Campus) Ch. # 2
8
2.1 WHAT IS INVENTORY
An inventory is an idle resource that process economic value.
Broadly defined, inventories are useable resources that are at a given
point in time. In a manufacturing environment this would include raw
materials, semi finished goods (work in process) and finished goods. In
retail firms, inventory is generally viewed as the stock of the goods for
sale. Inventories however may include nonphysical assets such as cash,
accounts receivable and personal. Although we usually think of
inventories in the context of manufacturing and distribution firms, other
types of business have inventory. Banks, for example, must maintain an
inventory of cash to meet customer demand. Non business organizations
have inventory too. Hospitals have inventories of medicine, surgical
supplies etc. The particular inventories that must be managed depend
upon the nature of the nature of the business, but the following inventory
types are generally found in all business.
2.2 RAW MATERIAL
Raw materials are the ingredients that go in to the final product.
Raw materials are the paper ink and binding to make books. The exact
form of the material depends upon the manufacturing process. Some
manufacturers take nature’s own resources and convert them into a
product. Steel-making firms must have iron and coal to produce steel.
The steel then sold to auto manufacturers, and for them it becomes a raw
material. Other manufacturers assemble component parts into a final
product. Their raw materials inventory consists of many different
components supplied by other manufacturers.
A.I.O.U. (Sahiwal Campus) Ch. # 2
9
2.3 SUPPLIES
Every business requires materials that do not become part of the
final product. These items are term as MRO items (maintain, repair, and
operating supplies) are usually small in number and expanse compared
to other inventories. Nevertheless, they are essential to the operation of
the plant.
2.4 WORK IN PROCESS
Raw materials moving through the stages of production are called
work in process. Depending on the length and complexity of the
production process, work in process inventory can be relatively large
and small.
2.5 FINISHED GOODS
Finished goods consist of unsold final products. Finished goods
are stored at the manufacturing facility itself or at some point in the
distribution channel at warehouse or retails.
2.6 PURPOSES OF INVENTORIES
Inventories serve a multitude of purposes, including the following:
1. They aid continues production by ensuring that inputs are always
available and that economic production runs can be made.
A.I.O.U. (Sahiwal Campus) Ch. # 2
10
2. They faceplate intermittent production of several production on the
same facilities (even though demand may be relatively constant for
each product).
3. They decouple successive stages in processing a product so that
downtime in one stage does not stop the entire process.
4. They help level production activities, stabilize employment and
improve labor relations by storing human and machine effort.
5. They provide a mean of hedging against future price and delivery
uncertainties, such as strikes, price increases and inflation.
6. They provide a means of obtaining and handling materials
uneconomic lot sizes and gaining quantity discounts.
7. They help service customer with varying demands and in various
locations because an adequate supply is maintained to meet their
immediate and seasonal needs.
2.7 COSTING MATERIALS ISSUES
Of the various methods in use for the costing of materials issues or
sailing or purchasing of inventories a rough division can be made
between those, which use so-called actual costs, and those, which use
standard costs:
1. Specific Cost:
Under this method specific cost of the units of materials issued is
charged to production. It can be used efficiently in those concerns
where it is possible to keep each lot of material purchased separate
from other lots of the same material in the storeroom and different
stores ledger card is used for each lot purchased. In such
circumstances at the time of materiel issue, it will be possible to find
out the particular purchased and cost represented by the material
issued.
A.I.O.U. (Sahiwal Campus) Ch. # 2
11
2. First-in, First-Out:
It is also called FIFO method. The working of this method is based
upon the assumption that the various lots of materials purchased are
used in the same order in which they were received. Further,
materials from each lot are charged out at the price of their original
purchase. Owing to this the method is sometimes called ‘original
price method’.
3. Last-in, Last-Out:
It is also called LIFO method. Under this method the materials
issued take the cost of the last units received. This method is
predicted upon the idea that materials to be charged to production
should carry the most recently purchased price of materials of that
kind. The requisitions are priced by working back from the most
recent lot of materials received. In other words, the cost of most
recent lot of materials purchased is applied to price requisitions until
that lot is exhausted then the next recent lot’s price is used to price
requisitions, and so on through successive consignments. This result
in leaving the old items of materials in inventory.
4. Weighted Average:
This method of costing materials issues is based upon the
assumptions that materials issues from stock are composed of
uniform quantities taken from each lot in stock at the date of issue.
In this method average cost of materials purchased is charged to
production rather than actual cost. In other words, it is assumed that
where a material is purchased at different prices the cost of a unit of
such material will be the average of the cost of all units purchased
during a particular period.
The costing method used in PIONEER PAKISTAN SEED LTD.
for sailing or purchasing of inventories is FIFO (first in first out)
method.
____________________
12
C H A P T E R
3
E X I S T I N G
S Y S T E M
A.I.O.U. (Sahiwal Campus) Ch. # 3
13
3.1 INTRODUCTION
It is very important for the system designer to understand the
system before its improvements and implementation. The system
designer must know what is going on.
After conducting the comprehensive study of the existing system,
which is running manually, it is viewed that the management has some
problems for the producer of adding and retrieving information about the
items, which are purchased, issued to any distributors or others. The
existing system is running manually as followed:
3.2 STOCK REGISTER
Management of PIONEER PAKISTAN SEED LTD. has one stock
register. An index is maintained in the beginning of the register. All
entries about all items are made in stock register. Local production as
well as commercial seed’s information is entered in the stock register.
The stock register of PIONEER PAKISTAN SEED LTD. has following
information.
s Date
s Name of Article
s Particulars
s Gate Pass No.
s Received Quantity
s Issued Quantity
s Balance in K.G.
s Document
A.I.O.U. (Sahiwal Campus) Ch. # 3
14
3.3 PARENT SEED, CHEMICAL AND
PACKING MATERIAL REGISTER
When company contracts with the grower then it supplies parent
seed and chemicals to growers. And after processing is completed then
packing is made. The information about raw material is entered in this
register, which has following information:
s Date
s Particulars
s Gate Pass No.
s Received Quantity
s Issued Quantity
s Balance in Stock
s Document
3.4 RAW MATERIAL REGISTER
When production is made locally, it is called local production. For
this Raw material is purchased from the grower. All information about
raw material is recorded in this register that has following information:
s Sr. No.
s Date
s Grower
s I.G.P.
A.I.O.U. (Sahiwal Campus) Ch. # 3
15
s Truck No.
s No. Of bags.
s Gross weight
s Truck weight
s Bags weight
s Net weight
s Moisture
s Hybrid
s Bin no.
3.5 DOCUMENTS
There are different types of documents involved in office at
PIONEER PAKISTAN SEED LTD. for any transaction or input/output
of material to any party or from anywhere. These documents are
mentioned as under:
s O.G.P. (Outward Gate Pass)
s I.G.P. (Inward Gate Pass)
s S.I.T. (Stock Inter Transfer)
s D.N. (delivery Note)
s S.S.T. (Seed Sample Trial)
s D.C. (Delivery Challan)
s G.R.N. (Goods Receiving Net)
A.I.O.U. (Sahiwal Campus) Ch. # 3
16
3.6 LIMITATIONS IN EXISTING SYSTEM
After studying the existing system that is currently functioning
manually. Many drawbacks have found. Some of the major limitations
are listed below:
s The first and most vital fault in their system is they done all work
manually, which make their whole system slow and inefficient.
s Due to manual system there is no proper maintaining of records and
order specifications if need in sometime future.
s A lot of space is consumed to maintain the record of every
transaction occur in the office of the PIONEER PAKISTAN SEED
LTD. such as arrival of raw material trucks, or stock of finished
seeds in the warehouses, or the sail of finished seeds to any
customer.
s It was very laborious job to make any report about daily
production, weekly or monthly production or profit or loss at the
end of the year or to know how much unfinished seed in the
processing BINS.
s If the Management of the PIONEER PAKISTAN SEED LTD.
wants to know about the sales information at any particular date
then there is a lot of time was consumed to prepare the desire
report. Similar case with the Grower name and corresponding lot
no. assign to him.
And also much other limitation is observed and feels in the current
system that is very time consuming system.
__________________
17
C H A P T E R
4
P R O P O S E D
S Y S T E M
A.I.O.U. (Sahiwal Campus) Ch. # 4
18
4.1 INTRODUCTION
The proposed system will be a computer-based system. All the
input data will be properly organized and stored and will be processed
for required output to provide timely information. Proposed system will
perform all the activities described in the existing system and will
provide necessary information with accuracy and efficiently. Proposed
system is designed keeping in mind all the problems being faced in the
present manual system.
The scope of this system is to provide an automated flexible
computerized inventory control system. The system will provide on-line
information and will be capable of generating necessary reports. The
scope of this system is to provide up to date, consistent and reliable
information.
4.2 NEED FOR COMPUTERIZED PROCESSING
The PIONEER PAKISTAN SEED LTD. has increased its business
day by day. With the passage of time handling this large scale
production and inventory control becomes increasingly difficult. To
overcome these problems a computer-based system is needed.
Computerization means the automation of a system, which was
previously working manually and was slow. After computerization its
becomes more sufficient and accurate.
Computerization is a very sophisticated and technical job and is to
be required a comprehensive study of the system. So that the system
analyst can understand the whole system, its weakness and drawbacks.
Computer information provided by a customer is highly reliable and
accurate. Further it provides information with in seconds.
A.I.O.U. (Sahiwal Campus) Ch. # 4
19
That is why commercial and scientific organization are switching
over to computer based information system.
4.3 SOFTWARE PROCESS MODELS
To develop software for any purpose we must follow some rules
and strategies to solve the actual problem. A software process model
provides these strategies and rules. If we see in the field of software
engineering there are many process models for different types of
problems to solve. Some of them are listed below:
1. The Linear Sequential Model:
This process model is also called “classic life cycle” or the “waterfall
model”, the linear sequential model suggests a systematic, sequential
approach to software development that begins at the system level and
progresses through analysis, design, coding, testing and maintenance.
2. The Prototyping Model:
This model begins with requirements gathering. Developer and user
meet and define the overall objectives for the software, identify
whatever requirements are known, and outline areas where definition
is mandatory. A “quick design” then occurs. The quick design leads
to the construction of a Prototype.
3. The RAD Model:
Rapid Application development is a linear sequential software
development process model that emphasizes an extremely short
development cycle. The RAD model is a “high-speed” adaptation of
the linear sequential model in which rapid development is achieved
by using a component-based construction approach. Use primarily for
information system applications.
A.I.O.U. (Sahiwal Campus) Ch. # 4
20
There are also some Evolutionary Software Process Models which
includes The Incremental Model, The Spiral Model, The Component
Assembly Model, The Concurrent Development Model, The Formal
Methods Model and Fourth generation Techniques. A number of
different Process Models for software development have been proposed,
each exhibiting strengths and weaknesses, but all having a series of
generic phases in common.
4.4 PHASES OF PROPOSED SYSTEM
We choose linear sequential model for our software development
because of this is neat, concise series of obvious steps, systematic
sequential approach to software development. This model is consists on
following phases:
s Preliminary Investigation
s Analysis
s Design
s Development
s Implementation
4.4.1 PRELIMINARY INVESTIGATION
This phase deals with the determination of problems. So going
through this phase three simple questions were asked from officers.
A.I.O.U. (Sahiwal Campus) Ch. # 4
21
1. The Impetus For Chance:
In this step reasons are studies for which new system is needed or old
system is being revised.
2. True Nature Of the Problem:
In this step symptoms and the actual problems are differentiated. This
will help us to identify the problem.
3. Scope Of The Problem:
In this step the specific areas in which the problem lies, is defined.
4.4.2 ANALYSIS PHASE
The analysis phase is primarily concerned with studying the
existing system. After analysis the existing system we can then design
and implement a better and user-friendly computerized system.
1. Understanding The System:
In this step, the system before doing sometimes is understood to
improve its functioning. In other words, we must find out what is
going on.
2. User Involvement:
The most successful projects or systems are in which user plays an
active and vital role. The user’s knowledge of the system is needed
for a new and a better system.
3. Data Gathering:
The basic work in analysis phase is gathering and analyzing the data.
Two common data gathering techniques are interviews and
A.I.O.U. (Sahiwal Campus) Ch. # 4
22
questioners. The analyst also wants to collect the data about existing
system.
4. Data Analysis:
The collect data serve as foundation for the documentation of system
analysis phase.
5. System Requirement:
The purpose of gathering and analyzing the data is to establish the
system requirements because the design of the new system will be
based on these system requirements.
4.4.3 DESIGN PHASE
Design phase is the most important phase in the system. This
phase is the most time consuming part of the project. The design phase
comes after the comprehensive study of the existing system. If the
analyst will not spend adequate time in designing, he will not be able to
fulfill the requirements of the users.
The design phase mostly consists of the following steps:
1. Preliminary Design:
It is particularly important first to design how the system will look
and respond to user before designing the software structure.
The most critical and creative aspect of development is design the
user interface design determines how the system will look for the
user from outside while the preliminary design of software structure
determines how the system will provide the desired function to the
users.
A.I.O.U. (Sahiwal Campus) Ch. # 4
23
2. Detail Design:
In the detail design the actual contents of each module in the
preliminary design are planned. Designing each module is much like
writing a short program. Here is a partial list of those design
activities, which are used in design phase.
s Design of Input
s Design of Output
s Design system flow chart
This list is not a comprehensive and not all lists will be used for
all systems. This large and detail document, usually referred to as the
detail design specification, will be an outgrowth of the preliminary
design document.
A very important issue in building software is deciding what
programming language will be used. Often the very success or failure
of the system can depend on the choice of language.
4.4.4 DEVELOPMENT PHASE
Development of the proposed system is conducted as:
s Development of the computer programs, i.e. Coding
s Testing of the computer programs with dummy date
s Testing of computer programs with real data.
4.4.5 IMPLEMENTATION PHASE
Implementation is the process of replacing the old system with the
new one. The key point in implementation is that users are now going to
switch to the new system.
A.I.O.U. (Sahiwal Campus) Ch. # 4
24
For smooth transition, groundwork must be laid carefully. Criteria
must be evaluated to establish that the system is actually ready to be
converted.
Conversion to the system must be planned carefully. Data files
must be prepared to be used by the new system. Personnel who will use
or interact with the system must be trained. All conversion related
activities must be a trying one for those involved.
When the new system has been converted, some neutral party
usually evaluates it. The evaluator is probably another analyst, either
from the organization or from an independent firm.
4.5 OBJECTIVES OF THE PROPOSED SYSTEM
The most important factor in developing a computerized system
for the user is that it should meet as closely as possible the objectives
defined by the user along with the system analyst. The analyst is the
person who is capable and fully aware of the computer technology and
the user has the knowledge of the organization in which he is working.
Both persons with their knowledge and CO-operation define the
objectives of the proposed system. These objectives must be able to
satisfy the requirements of the users. In addition, the relative importance
of each objective should be established.
Keeping in mind the drawbacks of the existing system, the
following are the major objectives, which have been chosen before
designing the proposed system.
1. EFFICIENCY:
Efficiency is the degree to which we minimize utilization of
resources for achieving an object. The proposed system is faster
and efficient than the existing manual system.
A.I.O.U. (Sahiwal Campus) Ch. # 4
25
2. USER FRIENDLY:
Authorized staff should communicate with the system through
simple conversions. No specialized computer staff must be
required. This makes the system user friendly.
3. TIME FACTOR:
Time is an important factor for decision-making. The higher
authorities require quick response to their queries because decisions
are based on up to date information. The required reports can be
produced quickly.
4. DATA SECURITY:
It refers to protection from any accidental loss or destruction of
data. The data required for decision-making is very important,
sensitive and valuable. Therefor reliability of the system may be
secured by giving a regular and guaranteed service to the user i.e. a
password is given to the user and by using that password he can
initialize the files.
5. ACCEPTABILITY:
The system should be acceptable to the organization. It should
satisfy the previous and new objectives in a better way.
6. ECONOMY:
The proposed system should be cost beneficial as compared to the
existing system.
7. PRODUCTIVITY:
A significant reduction in clerical staff will lead to improve staff
productivity.
8. ACCURACY:
The proposed system will provide accurate information, needed for
decision-making and error free results. It will ensure efficient and
accurate record keeping.
A.I.O.U. (Sahiwal Campus) Ch. # 4
26
9. RELIABILITY:
The new system is more reliable than the manual one due to its
accuracy and security. So that timely decision-making may be
possible.
10. PERFORMANCE:
The proposed system should reduce the time and efforts required
retrieving information.
11. USABILITY:
The goal of the proposed system is to keeping every thing nice and
simple for all users. Since the users of the proposed system will be
the staff of the finance and account’s system section so that
application should be as self documented as possible, and the user
should not need to memories lot to use it comfortably.
12. COMPREHENSIVE DATA BASE:
The proposed system has comprehensive database in which
insertion, deletion, modification, retrieval about records and
facilities of various reports are available.
13. MINIMIZE THE REDUNDANCY:
The proposed system has no redundancy. This means that the files
are designed in such a way that minimum data is duplicated in the
files.
14. EASE OF OPERATION:
Graphical user interface (GUI) and menu driven facility is provided
in the system. The use of various hot keys and use of mouse or any
pointing device makes very easier for user to operate the system
without any complications. Screens guide the operator through the
system to perform the required task.
15. MAINTAINABILITY:
The system should be easily modified and expanded to meet future
user needs.
A.I.O.U. (Sahiwal Campus) Ch. # 4
27
16. ROBUSTNESS:
The proposed system should be correctly and sensibly handles all
exceptional data
4.6 PROPOSED SYSTEM REQUIREMENTS
The main objectives of the proposed computerized information
system are to make an automated new computerized system that will
solve the aforesaid problems. The system will enable the PIONEER
ADMINISTRATION to control and manage the inventory information
in an ordered and better way.
Change of the existing system to a new system whether manual or
computerized, needs some requirements on which new system will be
based. As the requirements are the base for the new system, therefore
these should be clear and well defined. For this requirement analysis,
system study is very much essential and user is main factor in fixing
system requirements.
In our system, after studying the existing manual system. Defining
the problems, specifying system scope and objectives, analyzing
gathered data and discussing various problems relating to inventory
control system, production officer, store incharg and other staff, system
requirements were identified and analyzed. The requirements of our
system are:
s It must provide some on-line information, as soft copy reports on
the monitor screen
s Generate some printed reports as hard copy on paper
The system is required to provide the output in the form of reports
A.I.O.U. (Sahiwal Campus) Ch. # 4
28
4.6.1 REPORTS
1. Lot wise report about raw material to finished seed and stock
material.
2. Bags size wise report of the finished seeds in the warehouse.
3. Hybrid wise report of the finished seeds in the warehouse.
4. Year wise report of the sale of the finished seeds
5. Monthly report of the stock.
4.6.2 INPUT SCREENS
The screens for the data entry will be similar to that of their paper
formats of “INVENTORY CONTROL SYSTEM”.
4.6.3 HUMAN INTERFACE
The proposed system of “INVENTORY CONTROL SYSTEM”
will have a very user-friendly graphical user interface. It will menu
driven by messages help at different levels and various push buttons on
the forms which can be easily driven by clicking mouse or any other
pointing device also many hot keys makes much easier for the user to
operate the system.
___________________
29
C H A P T E R
5
S Y S T E M
D E S I G N
A.I.O.U. (Sahiwal Campus) Ch. # 5
30
5.1 INTRODUCTION
System design is the most important of all the phase in the system
life cycle. After studying the existing system, analyst should plan and
design new system that meets the needs of the users. System design
presents specific information for the designing of the output, input,
processing, life structure and database.
Economy, reliability, responsiveness and modularity should be
considered in design. This chapter deals with designing of the system,
which comprises of designing output forms, input forms, codes and files.
5.2 DESIGN APPROACHES
Design methods, strategies and methodologies are tools for the
designer. Since designing a new system is a creative function land as
such very difficult to define and describe in a detail. It follows that a
good designer may employee a design standard but will constantly be
reviewing its effectiveness and looking for improvements. The common
design methods are:
a) TOP-DOWN DESIGN
b) BOTTOM-UP DESIGN
c) CRITICAL-FIRST DESIGN
d) STRUCTURED DESIGN
A.I.O.U. (Sahiwal Campus) Ch. # 5
31
5.2.1 TOP-DOWN DESIGN
Top-down design is based around the idea that there are various
levels of decision, which need to be made, varying from those
concerning the goals of project and the system boundary down to detail
level of allocating data to disks and layout of printed reports.
Progressively analyzing higher-level function into more detail is refereed
to as functional decomposition; stepwise refinement refers to gradually
increase the precision of a statement. These may both be considered as
specific varieties of top-down development method.
5.2.2 BOTTOM-UP DESIGN
Bottom-up design starts with basics units of the system, and from
these the design builds up to higher level. A system created in this way
could start with the design of input document and output outs, eventually
arriving at the point where a management information system has been
built.
This method has a longer history than the others and some author
claim it has better success rate than top-down design. Bottom-up design
also tends to produce system with complex interfaces between modules
because were not designed to be interfaced in the first phase.
5.2.3 CRITICAL-FIRST DESIGN
Critical-first design is a method system design that emphasizes the
identification of the most critical components in the system. If the
potential problem areas can be identified at an early stage it is possible to
try to solve these before going onto further design work. It is very
difficult to know for certain at the beginning of the project what
A.I.O.U. (Sahiwal Campus) Ch. # 5
32
constitutes the biggest potential problem but tackling the most critical
components first is a very practical way of commencing system design.
This method could be used to design a whole system by making all parts
of design in terms of difficulty and working down the list, although this
is not frequently done.
5.2.4 STRUCTURED DESIGN
This designing approach is similar to Top-Down Approach. This
approach provides a variety of new documentation techniques, but also
bring the project emphases upon logical design prior to physical
implementation considerations. This follows on from the freedom from
hardware constraints, which means that designers can now decide what
is wanted prior to looking at how this will be achieved.
5.3 ADOPTED APPROACH
Since structured approach or structured methodology is viewed as
top-down approach in addition to new documentation techniques, we
select this approach for designing new system.
The structured methodology is based on building a logical model
of the system, i.e. identifying the major components of the system,
decomposing them into their lower level components and iterating until
the desired level of data is achieved.
Top-down design methods after result in stepwise refinement.
Starting from abstract design, in each step the design is refined to a
more concrete level, until we reach a level where no more refinement is
needed and the design can be implemented directly. Pure top-down or
bottom-up approaches are often not practical. For bottom-up approaches
to be successful. We must have a good notion of the top and in top-
A.I.O.U. (Sahiwal Campus) Ch. # 5
33
down approach one must have some idea about the feasibility of the
components specified during design.
5.4 STRUCTURED TOOLS
Structured design approach is realized through its rich set of
analysis and design tools, each of which serves a particular purpose in
developing the specification, like:
5.4.1 DATA FLOW DIAGRAMS
Data flow diagram represents a significant change from which in
the typical way, system is viewed. The use of DFDs provided a
complete, clean and global understanding of the system than did in the
traditional approach. These diagrams illustrate the flow of data through
a system and the work or processing performed by that system. There
are only four symbols that can appear on a DFD: the Process, the
internal or external Entity, the Data Store and the Data Flow. With these
symbols we can model processing for any system.
These are of three types:
1. Context DFD:
Here, the emphasis is on the relationship between the system and
its environment. No information about the structure of the system
itself is pictured in a context DFD.
2. Diagram 0:
A Diagram 0 (diagram zero) shows the system itself. It pictures
the major processes along with the external entities, data stores, and
data flow
A.I.O.U. (Sahiwal Campus) Ch. # 5
34
3. Detailed DFD:
These are explosions of higher-level representations and are
detailed pictures of major processes or subsystems. They are likely
to be used by designers in their own work rather than for
presentations to users or managers.
5.4.2 DATA DICTIONARY
A data dictionary is a repository of information that describes the
logical structure of database. It has entries for record types, data item
types, and data aggregates, along with other information. The data
dictionary contains metedata, data about the data in the database.
5.5 DESIGN SPECIFICATION
System designing consists of the following three steps:
a) Output Designing.
b) Input Designing.
c) File Designing.
5.5.1 OUTPUT DESIGNING
Output designing from the system can be in the form of queries
and reports.
Some features are to be considered while designing output like:
A.I.O.U. (Sahiwal Campus) Ch. # 5
35
s What output information do users need?
s What format and volume it should have?
s Output should be good looking.
s They should be easy to understand.
s Unnecessary information should be avoided.
The new output reports of Automated Inventory Control System
are like:
s Lot wise report about raw material to finished seed and stock
material.
s Bags size wise report of the finished seeds in the warehouse.
s Hybrid wise report of the finished seeds in the warehouse.
s Year wise report of the sale of the finished seeds
s Monthly report of the stock.
5.5.2 INPUT DESIGNING
Designing of input mainly involves the form designing. Since
input always plays very important role in data entry phase, so these
forms have been very carefully and precisely designed. These are
s Finished seeds form
s Unfinished seeds form
s Item form
s Warehouse form
s Warehouse item form
s Bag size form
A.I.O.U. (Sahiwal Campus) Ch. # 5
36
5.5.3 FILE DESIGNING
File designing is of fundamental significance in any efficient
computerized system. Files are designed such that queries and reports
are produced in least amount of time:
There are two steps involve while designing the files:
1. First Step:
In the files we have designed is the selection of candidate key,
which UNIQUELY identifies the records in the data structure.
2. Second Step:
Normalization is done in the second step of design. Normalization
techniques are used to avoid data redundancy and inconsistency in the
files. It is the method of proving that what we have done would have
been correct, i.e. there is no duplication of any record in the files.
5.6 DESCRIPTION OF FILES
As a result of above-mentioned procedure the proposed system
uses number of databases files. Database is a collection of related data
about an enterprise with multiple uses. A brief description of the files
designed for the proposed system is as follows:
1. ITEM FILE
Table Name: ITEM
Primary Key: ICODE
A.I.O.U. (Sahiwal Campus) Ch. # 5
37
RECORD LAYOUT
Field-Name Description Data Type Width
ICODE ITEM CODE Character 5
INAME ITEM NAME Character 20
FINISHED FINISHED SEEDS Boolean 1
This file contains information about the items involved in
inventory control system of PIONEER PAKISTAN SEED LIMITED.
2. WAREHOUSE FILE
Table Name: WHOUSE
Primary Key: WCODE
RECORD LAYOUT
Field-Name Description Data Type Width
WCODE WAREHOUSE CODE Character 5
WNAME WAREHOUSE NAME Character 20
This file contains information about warehouses of PIONEER
PAKISTAN SEED LIMITED.
3. PARTY FILE
Table Name: PARTY
Primary Key: PCODE
A.I.O.U. (Sahiwal Campus) Ch. # 5
38
RECORD LAYOUT
Field-Name Description Data Type Width
PCODE PARTY CODE Character 5
PNAME PARTY NAME Character 30
ADDRESS ADDRESS OF PARTY Character 50
CITY CITY OF PARTY Character 20
PHONE PHONE OF PARTY Character 20
EMAIL EMAIL OF PARTY Character 20
This file contains information about the parties or distributors of
PIONEER PAKISTAN SEED LIMITED.
4. IN-COMING FINISHED SEEDS FILE
Table Name: INCFS
Primary Key: VNO, ICODE
RECORD LAYOUT
Field-Name Description Data Type Width
VNO VOUCHER NUMBER Numeric 10
VDATE VOUCHER DATE Date 8
ICODE ITEM CODE Character 5
INAME ITEM NAME Character 20
QTY QUANTITY Numeric 2
A.I.O.U. (Sahiwal Campus) Ch. # 5
39
PCODE PARTY CODE Character 5
IGP INWARD GATE PASS Character 5
DOCNO DOCUMENT NUMBER Character 10
BAGSIZE BAGS SIZES Character 2
TOTAL TOTAL WEAGHT Numeric 2
This file contains information about the total finished seed come
from USA.
5. IN-COMING UNFINISHED SEEDS FILE
Table Name: INCUS
Primary Key: VNO, ICODE
RECORD LAYOUT
Field-Name Description Data Type Width
VNO VOUCHER NUMBER Numeric 10
VDATE VOUCHER DATE Date 8
ICODE ITEM CODE Character 5
INAME ITEM NAME Character 20
PNAME PARTY NAME Character 30
PCODE PARTY CODE Character 5
IGP INWARD GATE PASS Character 5
DOCNO DOCUMENT NUMBER Character 10
TOTAL TOTAL WEAGHT Numeric 2
A.I.O.U. (Sahiwal Campus) Ch. # 5
40
This file contains information about the total unfinished seed
come from the growers.
6. OUTGOING FINISHED FILE
Table Name: OGFS
Primary Key: VNO, ICODE
RECORD LAYOUT
Field-Name Description Data Type Width
VNO VOUCHER NUMBER Numeric 10
VDATE VOUCHER DATE Date 8
ICODE ITEM CODE Character 5
INAME ITEM NAME Character 20
QTY QUANTITY Numeric 2
BAGSIZE BAGS SIZES Character 2
PCODE PARTY CODE Character 5
PNAME PARTY NAME Character 30
OGP OUTWARD GATE PASS Character 5
DOCNO DOCUMENT NUMBER Character 10
TOTAL TOTAL QUANTITY Numeric 2
This file contains information about the finished seed sail to any
party or distributor.
A.I.O.U. (Sahiwal Campus) Ch. # 5
41
7. STOCK POSITION FILE
Table Name: STOCKP
Primary Key: VNO, ICODE, and WCODE
RECORD LAYOUT
Field-Name Description Data Type Width
VNO VOUCHER NUMBER Numeric 2
VDATE VOUCHER DATE Date 8
WCODE WHARE HOUSE CODE Character 5
WNAME WAREHOUSE NAME Character 20
ICODE ITEM CODE Character 5
INAME ITEM NAME Character 20
QTY QUANTITY Numeric 2
This file contains information about which item present in which
warehouse
8. BAGS SIZES FILE
Table Name: BAGSIZE
Primary Key: VNO, ICODE, and BAGSIZE
A.I.O.U. (Sahiwal Campus) Ch. # 5
42
RECORD LAYOUT
Field-Name Description Data Type Width
VNO VOUCHER NUMBER Numeric 2
VDATE VOUCHER DATE Date 8
BAGSIZE BAGS SIZES Character 2
ICODE ITEM CODE Character 5
INAME ITEM NAME Character 20
QTY QUANTITY Numeric 2
SEASON SEASON OF PROCESS Boolean 1
YEAR YEAR OF PACKING Numeric 2
This file contains information about which item pack in which
size of the bag.
9. BINS NO FILE
Table Name: BINNO
Primary Key: VNO, ICODE, and BINNO
RECORD LAYOUT
Field-Name Description Data Type Width
VNO VOUCHER NUMBER Numeric 2
VDATE VOUCHER DATE Date 8
BINNO BIN NUMBERS Character 5
ICODE ITEM CODE Character 5
A.I.O.U. (Sahiwal Campus) Ch. # 5
43
INAME ITEM NAME Character 20
QTY QUANTITY Numeric 2
SEASON SEASON OF PROCESS Boolean 1
YEAR YEAR OF PACKING Numeric 2
This file contains information about which item kept in which bin
number.
___________________
44
C H A P T E R
6
S O F T W A R E
D E V E L O P M E N T
A.I.O.U. (Sahiwal Campus) Ch. # 6
45
6.1 INTRODUCTION
The conversion of manual processing into computerized processing
requires the development of computer programs for the proposed system.
Software development is an important phase. Special care is to be taken
because it may cause heavy loss even a situation may arise that
redevelopment of the whole system, because it involves the realization
of the whole system. Computer programs are written and arrangements
are made to train the personnel.
6.2 WHY COMPUTER BASED SYSTEM
Many systems are being computerized now days. The reason for
computerization is that the work is done very quickly and accurately.
The results produced by computer are in a micro or in a nano seconds.
So, efficiency and accuracy are the main reasons, for which, computer is
considered to be one of those fields in which extensive research is being
done today. For this reason, PIONEER PAKISTAN SEED LTD. wants
to computerize INVENTORY CONTROL SYSTEM, so that information
may be retrieved and manipulated, whenever required, quickly and
easily.
6.3 SELECTION OF LANGUAGE
The main purpose of this phase is to develop the software that
gives requirements of the users. A database can solve all the problems of
new proposed system so that a database is a collection of files linked
with each other with some common link fields. The link fields then
manipulate the files, which includes retrieval, deletion, addition and
A.I.O.U. (Sahiwal Campus) Ch. # 6
46
updating of the record. This system can be employed for entering data,
retrieving of this data and updating a part of data.
There are many languages that are used to solve the problems of
users. Each language has its own nature and different applications. So
the selection of the language is very important for the development of
the software. Also the language depends upon hardware used. Keeping
in mind all these things, the choice of programming language is
important and definitely depends upon the problem on hand. As the new
proposed system require the handling of data files and indexed files
there are following languages that may be suitable for INVENTORY
CONTROL SYSTEM.
The languages are given:
1. COBOL
2. Clipper
3. Delphi
4. Informics
5. Oracle
6. Visual Basic
7. Visual FoxPro
We have selected Visual Basic for the development of the new
proposed system because:
1. Its processing is very fast.
2. It is more efficient than other languages.
3. Visual Basic has its own database.
4. It provides the facility of form designing and then linking with the
database.
A.I.O.U. (Sahiwal Campus) Ch. # 6
47
5. The more constructs are available in Visual Basic.
The software developed in Visual Basic can be easily extended by
the end-user to fit his future needs. For example, Visual Basic allows
extensibility in two ways:
s It allows the use of ActiveX controls, Allowing for the addition of
functionality that the original designers did not include in the
program.
s Visual Basic has an extensibility model that allows for the creation
of Add-ins and Wizards to perform tasks on code and forms. This
allows developers to use the program to create helper programs for
themselves and prototypes for others.
6.4 SOFTWARE DEVELOPMENT
The salient feature in the development of an efficient computerized
system is software development. The purpose of software development
is to transfer the complete proposed system into the executable computer
programs.
Programming is not simply science but there is a touch of art
involved in it. There is however a number of clearly identifiable steps
that are always involved in the programming phase and those provide a
convenient framework.
These steps are:
1. Define the problem.
2. Plane a solution.
3. Maintain the program.
A.I.O.U. (Sahiwal Campus) Ch. # 6
48
Thus the purpose of the programming task is to code, debug and
test each program before and after integrating them into the modules.
6.5 METHODS OF DEVELOPMENT PHASE
The development phase of the proposed system includes the
following methods:
s Coding.
s Compilation of program.
s Testing of program.
6.5.1 CODING
Data coding is common practice. There are many ways to plan a
code. Subject is very tedious and quite complex. The group
classification codes have been used for the system, because codes can
be easily generated by these methods.
6.5.2 COMPILING
When all the coding of programs has been completed, then the
programs are compiled using the available compiler by the system on
which the development has been done.
A.I.O.U. (Sahiwal Campus) Ch. # 6
49
6.5.3 TESTING
Even if the system is developed using correct algorithms, its
reliability remains doubtful. The validation of the result is very
important to make the system acceptable. Before making the system
operational, it is necessary to check that the new system is
comprehensive with in its limits and produced output result accurately.
Programs and subroutines were confirmed for the desired results.
Major consideration was laid on procedures. All subprograms were
tested and combined results were compared with the manual results. All
possible efforts were made to make sure that system produced selectable
results under any condition.
During this process all programming bugs and minor design faults
were removed. Necessary changes were made in design and structure;
special care was taken not to change the actual logic of the system.
The basic concept of testing the system is to confirm that the
developed system fulfills all the objectives and requirements of the
management and proposed system provide accurate information. Before
the implementation of the system, using the following methods first
tests the system:
1. Unit Testing:
Testing the single module or program to check that all programs are
running well.
2. System Testing:
Testing of the system linking all the files and environment data to
check that all the programs are working correctly.
3. Volume Testing:
Testing the system using the large number of data to check the
efficiency of the system required by the organization.
A.I.O.U. (Sahiwal Campus) Ch. # 6
50
6.6 SYSTEM EVALUATION
The new system should be evaluated to determine whether the
stated objectives were met. The evaluation is necessary to keep the
system updated of business and economic environment, as well as
technological changes in the electronic data processing. System
evaluation is also important because it judges the compatibility of
developed system with the existing system and checks the validity
under organizational constraints. Generally, a system, which produced
information that, possess the properties of accuracy, timeliness,
completeness is declared to successful.
However comparison are often made in one or more of these
properties for economic reasons. The user of the new system is in the
best position to determine, on an ongoing basis, the effectiveness of the
system. The system developed for PIONEER PAKISTAN SEED LTD.
is directed to meet their problems.
Accuracy is the ratio of correct information to the total volume of
information produced over a period. The accuracy level depends on the
type of information produced. Validation checks have been made to
ensure the accuracy of the system.
6.6.1 TIMELINESS
It is another important characteristic of the new system. This was
the major problem faced by management of INVENTORY CONTROL
SYSTEM. If some body needs some information, he had to wait for few
days with the result that by the time the information might not be of any
value. New system provides accurate and instantaneous response to its
users.
A.I.O.U. (Sahiwal Campus) Ch. # 6
51
6.6.2 CONCISENESS
Concise information that summarizes the relevant data and point
out the area of exception to the normal and planed activities is what the
management and the user need.
6.6.3 EFFICIENCY
The new system is thus efficient as it contains all the three
characteristics listed above. It is user friendly as well.
6.7 HARDWARE CONSIDERATION
The minimum computer hardware requirements to ensure that the
proposed system will run properly is listed below:
s Computer on the Microsoft Hardware Compatibility List.
s Pentium 100 MHz.
s 1 GB hard disk.
s 16 MB RAM.
s 3.5-inch 1.44-MB floppies drive.
s Super VGA video adapter.
s Super VGA monitor.
s An 80-column printer.
s Microsoft mouse or equivalent pointing device.
s U.P.S. (For un-interruption of power supply)
A.I.O.U. (Sahiwal Campus) Ch. # 6
52
6.8 SOFTWARE CONSIDERATION
To execute properly the source program, which is developed in
Visual Basic, the following software must install in above-mentioned
hardware:
s Visual Basic 6.0 Enterprise Edition.
s Microsoft Windows 98 or Microsoft Windows NT server 4.0 or
Windows NT workstation 4.0
s Anti Virus Guard and Toolkit
______________________
53
C H A P T E R
7
S O F T W A R E
I M P L E M E N T A T I O N
A.I.O.U. (Sahiwal Campus) Ch. # 7
54
7.1 INTRODUCTION
Implementation means the process of transforming of present
manual system into a new computerized one. There are several options
are available for conversion. In data processing, conversion is defined as
placing the system into operation and the process of changes:
s From one data processing to another.
s From one form of representing to another.
Implementation of a project involved activities are planning and
scheduling of the implementation process, organizational planing and
personnel administration, final system design and testing, establishment
of standard of performance and control procedures, and conversion from
old to new system. The most considerable process concerning
implementation phase is the conversion plane that discussed in detail.
7.2 CONVERSION
Conversion refers to those activities necessary to transfer
operations from old system to new system. Conversion to the new
system involves several activities like equipment conversion, file
conversion, and procedure conversion. There are several conversion
option available that will reduce the risk of mishap in the new system.
There are four basic patterns when implementing the new system.
1. Direct conversion.
2. Gradual conversion.
3. Parallel conversion.
4. Pilot conversion
A.I.O.U. (Sahiwal Campus) Ch. # 7
55
The main purpose in conduction comparative study is to argue for
one method of conversion over the other by studying keenly advantages
and limitation of either conversion method. An implementation phase is
rigidly based upon this comparative study.
7.2.1 DIRECT CONVERSION
Direct conversion method stresses upon the introduction of a
completely new system without any reference to the existing system. The
old system is abandoned and the new system becomes completely
operational. This method is suitable when the new system is entirely
different from the existing one. This conversion method is usually the
least expensive and most risky of all the conversion methods.
7.2.2 GRADUAL CONVERSION
Gradual method allows one program at a time to replace an activity
of the existing system. Gradually, the present system is overthrown by
the newly designed system. Small-scale operations are conducted first to
confirm that this changeover will be successful. When the new system is
completely tested, the old system is not used any more and the new
system is completely taken over. This process is continues until the new
system is fully implemented. Both the risk and cost of conversion are
medium in this method.
7.2.3 PARALLEL CONVERSION
In parallel conversion method, both old and the new system are
adopted simultaneously. Data is processed or moved through systems
concurrently and only when the new system is checked, the operation of
A.I.O.U. (Sahiwal Campus) Ch. # 7
56
the old system is abandoned. The safest approach to conversion is to run
both new and old systems at the same time, until it is satisfactorily
established that the new system is producing reliable results. It provides
the old system as a backup in case the new system is failed. This
conversion method is most expensive and less risky than all other
conversion methods.
7.2.4 PILOT CONVERSION
In pilot conversion method, new system is implemented in parts,
the system is implemented in the while organization. Pilot conversion
method therefor, is a combination of the direct conversion and parallel
conversion. Both the cost and risk in this conversion method are
medium.
7.3 PROPOSED CONVERSION METHOD
The most feasible conversion method that suits the organization is
the parallel conversion. It is selected because it provides opportunity to
compare the results of the existing system with those of the developed
system. Another advantage of this approach is that the risk of failure is
covered. Although this implementation approach is more expensive and
increases additional workload, the old system will be safe and the
procedure will be followed for some time until it is confirmed that the
newly designed system is working perfectly.
7.4 TRAINING OF PERSONNEL
Software development is quit user friendly, so that any person can
obtain the require information efficiently from the database, after only
A.I.O.U. (Sahiwal Campus) Ch. # 7
57
few hours of training and practice of the new system. However, a
comprehensive lecture to familiarize the staff with Windows 98 and
Visual Basic 6.0 will also help in better understanding of the system.
______________________
58
C H A P T E R
8
C O D I N G
A N D
D A T A S C R E E N S
A.I.O.U. (Sahiwal Campus) Ch. # 8
59
8.1 MAIN MENU
Private Sub Command1_Click()
frmstkinuf.Show vbModal, mainmenu
End Sub
Private Sub Command2_Click()
frmstkin.Show vbModal, mainmenu
End Sub
Private Sub Command3_Click()
frmstkout.Show vbModal, mainmenu
End Sub
Private Sub Command5_Click()
Dim A As Integer
A = MsgBox("Are you sure you want to quit ? ", vbYesNo + vbQuestion, "Exit...?")
A.I.O.U. (Sahiwal Campus) Ch. # 8
60
If A = 6 Then
End
End If
End Sub
Private Sub Command6_Click()
FRMTOTREP.Show vbModal, mainmenu
End Sub
Private Sub Command7_Click()
FRMTOTREP1.Show vbModal, mainmenu
End Sub
Private Sub Form_Load()
frmSplash.Show vbModal, mainmenu
End Sub
Private Sub MIBAG_Click()
frmbagsize.Show vbModal, mainmenu
End Sub
Private Sub mi1_Click()
FRMTOTREP.Show vbModal, mainmenu
End Sub
Private Sub mi2_Click()
FRMTOTREP1.Show vbModal, mainmenu
End Sub
Private Sub mibags_Click()
frmbagsize.Show vbModal, mainmenu
End Sub
Private Sub mibinno_Click()
frmbins.Show vbModal, mainmenu
End Sub
Private Sub midevelopers_Click()
credits.Show vbModal, mainmenu
End Sub
Private Sub miitems_Click()
A.I.O.U. (Sahiwal Campus) Ch. # 8
61
items.Show vbModal, mainmenu
End Sub
Private Sub miparty_Click()
frmparty.Show vbModal, mainmenu
End Sub
Private Sub mipioneer_Click()
frmAbout.Show vbModal, mainmenu
End Sub
Private Sub misfs_Click()
frmstkin.Show vbModal, mainmenu
End Sub
Private Sub mistockp_Click()
frmstkpos.Show vbModal, mainmenu
End Sub
Private Sub miunfinish_Click()
frmstkout.Show vbModal, mainmenu
End Sub
Private Sub miuser_Click()
userguide.Show vbModal, mainmenu
End Sub
Private Sub miwhare_Click()
whouses.Show vbModal, mainmenu
End Sub
Private Sub msiufd_Click()
frmstkinuf.Show vbModal, mainmenu
End Sub
Private Sub Timer1_Timer()
If Image1.BorderStyle = 1 Then
Image1.BorderStyle = 0
Else
Image1.BorderStyle = 1
End If
A.I.O.U. (Sahiwal Campus) Ch. # 8
62
End Sub
Private Sub Timer2_Timer()
Label9.Caption = Time
End Sub
Private Sub Timer3_Timer()
Label11.Caption = Date
End Sub
8.2 IN-COMING UNFINISHED SEEDS
Dim isfin As Boolean
Dim isedit As Boolean
Private Sub cmddelete_Click()
dbitem.Refresh
With dbitem.Recordset
While .EOF = False
A.I.O.U. (Sahiwal Campus) Ch. # 8
63
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = False Then
.Edit
If Not IsNull(.Fields("qty")) Then
.Fields("QTY") = .Fields("QTY").Value - Val(txtqty.Text)
End If
.Update
ab = True
dbstkin.Refresh
If ab = True Then
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("ICODE") = Trim(txticode.Text) Then
.Delete
.MoveNext
Exit Sub
Else
.MoveNext
End If
Wend
End With
End If
Else
.MoveNext
End If
Wend
End With
dbstkin.Refresh
dbitem.Refresh
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
64
Private Sub cmdsave_Click()
Dim ab As Boolean
ab = False
txticode.SetFocus
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(txticode.Text) Then
.Edit
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("ICODE") = txticode.Text
.Fields("INAME") = txtiname.Text
.Fields("pcode") = txtpcode.Text
.Fields("docno") = txtdoc.Text
.Fields("igp") = txtigp.Text
.Fields("qty") = txtqty.Text
.Update
ab = True
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = False Then
.Edit
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
If Not IsNull(.Fields("qty")) Then
.Fields("QTY") = Val(txtqty.Text) + .Fields("QTY").Value
Else
.Fields("qty") = txtqty.Text
End If
.Update
ab = True
Exit Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
65
Else
.MoveNext
End If
Wend
End With
dbitem.Refresh
dbstkin.Refresh
Exit Sub
Else
.MoveNext
End If
Wend
If ab = False Then
.AddNew
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("ICODE") = txticode.Text
.Fields("INAME") = txtiname.Text
.Fields("pcode") = txtpcode.Text
.Fields("docno") = txtdoc.Text
.Fields("igp") = txtigp.Text
.Fields("qty") = txtqty.Text
.Update
ab = True
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = False Then
.Edit
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
If Not IsNull(.Fields("qty")) Then
.Fields("QTY") = Val(txtqty.Text) + .Fields("QTY").Value
A.I.O.U. (Sahiwal Campus) Ch. # 8
66
Else
.Fields("qty") = txtqty.Text
End If
.Update
ab = True
Exit Sub
Else
.MoveNext
End If
Wend
End With
dbitem.Refresh
dbstkin.Refresh
End If
End With
dbstkin.Refresh
dbitem.Refresh
ab = False
End Sub
Private Sub DBGrid1_DblClick()
txtvno.Text = DBGrid1.Columns("VNO")
txtvdate.Text = DBGrid1.Columns("VDATE")
txtpcode.Text = DBGrid1.Columns("PCODE")
txticode.Text = DBGrid1.Columns("ICODE")
txtqty.Text = DBGrid1.Columns("QTY")
txtigp.Text = DBGrid1.Columns("IGP")
txtdoc.Text = DBGrid1.Columns("DOCNO")
End Sub
Private Sub DBGrid3_DblClick()
txtpcode.Text = DBGrid3.Columns(0)
End Sub
Private Sub Form_Load()
A.I.O.U. (Sahiwal Campus) Ch. # 8
67
isedit = False
txtvdate = Date
isfin = True
dbitem.RecordSource = "SELECT * FROM ITEM WHERE FINISHED = 0"
End Sub
Private Sub txtbs_LostFocus()
txttotal.Text = Val(txtqty.Text) * Val(txtbs.Text)
txttotal.Text = txttotal.Text & " " & "kg"
End Sub
Private Sub txticode_GotFocus()
DBGrid4.Visible = True
End Sub
Private Sub txticode_LostFocus()
Dim isf, isf1, isexist As Boolean
isf = False
isedit = False
isexist = False
isf1 = False
DBGrid4.Visible = False
dbitem.Refresh
dbstkin.Refresh
With dbstkin.Recordset
While dbstkin.Recordset.EOF = False
If .Fields("vno") = Val(txtvno) And .Fields("icode") = Trim(txticode.Text) Then
txtiname.Text = .Fields("iname")
txtqty.Text = .Fields("qty")
isf1 = True
isf = True
isedit = True
Exit Sub
Else
.MoveNext
A.I.O.U. (Sahiwal Campus) Ch. # 8
68
End If
Wend
End With
dbitem.Refresh
If isf1 = False Then
While dbitem.Recordset.EOF = False
If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) Then
isf = True
End If
If dbitem. Recordset.Fields("icode") = Trim(txticode.Text) And
dbitem.Recordset.Fields("finished") = False Then
txtiname.Text = dbitem.Recordset.Fields("INAME")
isexist = True
Exit Sub
Else
dbitem.Recordset.MoveNext
End If
Wend
End If
If isf = False Then
resp = MsgBox("Record does not exist", vbOKOnly, "Alert")
txticode.Text = " "
txticode.SetFocus
End If
End Sub
Private Sub txtpcode_GotFocus()
DBGrid3.Visible = True
End Sub
Private Sub txtpcode_LostFocus()
Dim ISFound As Boolean
ISFound = False
dbparty.Refresh
A.I.O.U. (Sahiwal Campus) Ch. # 8
69
While dbparty.Recordset.EOF = False
If dbparty.Recordset.Fields("PCODE") = Trim(txtpcode.Text) Then
txtpname.Text = dbparty.Recordset.Fields("PNAME")
DBGrid3.Visible = False
ISFound = True
Exit Sub
Else
dbparty.Recordset.MoveNext
End If
Wend
If ISFound = False Then
resp = MsgBox("This party code and name does not exist", vbOKOnly, "Alert")
txtpcode.SetFocus
DBGrid3.Visible = True
End If
End Sub
Private Sub txtvno_LostFocus()
dbstkin.Refresh
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text Then
txtvdate.Text = .Fields("vdate")
txtigp.Text = .Fields("igp")
txtdoc.Text = .Fields("docno")
txtpcode.Text = .Fields("pcode")
isedit = True
Exit Sub
Else
MoveNext
End If
Wend
End With: End Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
70
8.3 IN-COMING FINISHED SEEDS
Dim isfin As Boolean
Dim isedit As Boolean
Private Sub cmddelete_Click()
dbitem.Refresh
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then
.Edit
If Not IsNull(.Fields("qty")) Then
.Fields("QTY") = .Fields("QTY").Value - Val(txttotal.Text)
End If
.Update
ab = True
dbstkin.Refresh
With dbstkin.Recordset
While .EOF = False
A.I.O.U. (Sahiwal Campus) Ch. # 8
71
If .Fields("vno") = txtvno.Text And .Fields("ICODE") = Trim(txticode.Text) Then
.Delete
.MoveNext
Exit Sub
Else
.MoveNext
End If
Wend
End With
dbstkin.Refresh
dbitem.Refresh
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdsave_Click()
Dim ab As Boolean
ab = False
txticode.SetFocus
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(txticode.Text) Then
.Edit
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("ICODE") = txticode.Text
A.I.O.U. (Sahiwal Campus) Ch. # 8
72
.Fields("INAME") = txtiname.Text
.Fields("pcode") = txtpcode.Text
.Fields("docno") = txtdoc.Text
.Fields("igp") = txtigp.Text
.Fields("qty") = txtqty.Text
.Fields("bagsize") = txtbs.Text
.Fields("TOTAL") = txttotal.Text
.Update
ab = True
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then
.Edit
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
If Not IsNull(.Fields("qty")) Then
.Fields("QTY") = Val(txttotal.Text) + .Fields("QTY").Value
Else
.Fields("qty") = txttotal.Text
End If
.Update
ab = True
Exit Sub
Else
.MoveNext
End If
Wend
End With
dbitem.Refresh
dbstkin.Refresh
Exit Sub
Else
A.I.O.U. (Sahiwal Campus) Ch. # 8
73
.MoveNext
End If
Wend
If ab = False Then
.AddNew
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("ICODE") = txticode.Text
.Fields("INAME") = txtiname.Text
.Fields("pcode") = txtpcode.Text
.Fields("docno") = txtdoc.Text
.Fields("igp") = txtigp.Text
.Fields("qty") = txtqty.Text
.Fields("bagsize") = txtbs.Text
.Fields("TOTAL") = txttotal.Text
Update
ab = True
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then
.Edit
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
If Not IsNull(.Fields("qty")) Then
.Fields("QTY") = Val(txttotal.Text) + .Fields("QTY").Value
Else
.Fields("qty") = txttotal.Text
End If
.Update
ab = True
Exit Sub
Else
A.I.O.U. (Sahiwal Campus) Ch. # 8
74
.MoveNext
End If
Wend
End With
dbitem.Refresh
dbstkin.Refresh
End If
End With
dbstkin.Refresh
dbitem.Refresh
ab = False
End Sub
Private Sub DBGrid1_DblClick()
txtvno.Text = DBGrid1.Columns("VNO")
txtvdate.Text = DBGrid1.Columns("VDATE")
txtpcode.Text = DBGrid1.Columns("PCODE")
txticode.Text = DBGrid1.Columns("ICODE")
txtqty.Text = DBGrid1.Columns("QTY")
txtbs.Text = DBGrid1.Columns("BAGSIZE")
txttotal.Text = DBGrid1.Columns("TOTAL")
txtigp.Text = DBGrid1.Columns("IGP")
txtdoc.Text = DBGrid1.Columns("DOCNO")
End Sub
Private Sub DBGrid3_DblClick()
txtpcode.Text = DBGrid3.Columns(0)
End Sub
Private Sub Form_Load()
isedit = False
txtvdate = Date
isfin = True
dbitem.RecordSource = "SELECT * FROM ITEM WHERE FINISHED = -1"
End Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
75
Private Sub txtbs_LostFocus()
txttotal.Text = Val(txtqty.Text) * Val(txtbs.Text)
End Sub
Private Sub txticode_GotFocus()
DBGrid4.Visible = True
End Sub
Private Sub txticode_LostFocus()
Dim isf, isf1 As Boolean
isf = False
isedit = False
isf1 = False
DBGrid4.Visible = False
dbitem.Refresh
dbstkin.Refresh
With dbstkin.Recordset
While dbstkin.Recordset.EOF = False
If .Fields("vno") = Val(txtvno) And .Fields("icode") = Trim(txticode.Text) Then
txtiname.Text = .Fields("iname")
txtqty.Text = .Fields("qty")
txtbs.Text = .Fields("bagsize")
isf1 = True
isedit = True
Exit Sub
Else
.MoveNext
End If
Wend
End With
dbitem.Refresh
If isf1 = False Then
While dbitem.Recordset.EOF = False
If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) Then
A.I.O.U. (Sahiwal Campus) Ch. # 8
76
isf = True
End If
If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) And
dbitem.Recordset.Fields("finished") = True Then
txtiname.Text = dbitem.Recordset.Fields("INAME")
isexist = True
Exit Sub
Else
dbitem.Recordset.MoveNext
End If
Wend
End If
If isf = False Then
resp = MsgBox("Record does not exist", vbOKOnly, "Alert")
txticode.Text = " "
txticode.SetFocus
End If
End Sub
Private Sub txtpcode_GotFocus()
DBGrid3.Visible = True
End Sub
Private Sub txtpcode_LostFocus()
Dim ISFound As Boolean
ISFound = False
dbparty.Refresh
While dbparty.Recordset.EOF = False
If dbparty.Recordset.Fields("PCODE") = Trim(txtpcode.Text) Then
txtpname.Text = dbparty.Recordset.Fields("PNAME")
DBGrid3.Visible = False
ISFound = True
Exit Sub
Else
A.I.O.U. (Sahiwal Campus) Ch. # 8
77
dbparty.Recordset.MoveNext
End If
Wend
If ISFound = False Then
resp = MsgBox("This party code and name does not exist", vbOKOnly, "Alert")
txtpcode.SetFocus
DBGrid3.Visible = True
End If
End Sub
Private Sub txtvno_LostFocus()
dbstkin.Refresh
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text Then
txtvdate.Text = .Fields("vdate")
txtigp.Text = .Fields("igp")
txtdoc.Text = .Fields("docno")
txtpcode.Text = .Fields("pcode")
isedit = True
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
78
8.4 OUT-GOING FINISHED SEEDS
Dim isfin As Boolean
Dim isedit As Boolean
Private Sub cmddelete_Click()
dbitem.Refresh
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then
.Edit
xzIf Not IsNull(.Fields("qty")) Then
.Fields("QTY") = .Fields("QTY").Value + Val(txttotal.Text)
End If
.Update
ab = True
A.I.O.U. (Sahiwal Campus) Ch. # 8
79
dbstkin.Refresh
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("ICODE") = Trim(txticode.Text) Then
.Delete
.MoveNext
Exit Sub
Else
.MoveNext
End If
Wend
End With
dbstkin.Refresh
dbitem.Refresh
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdsave_Click()
Dim ab As Boolean
ab = False
txticode.SetFocus
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(txticode.Text) Then
.Edit
A.I.O.U. (Sahiwal Campus) Ch. # 8
80
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("ICODE") = txticode.Text
.Fields("INAME") = txtiname.Text
.Fields("pcode") = txtpcode.Text
.Fields("docno") = txtdoc.Text
.Fields("ogp") = txtigp.Text
.Fields("qty") = txtqty.Text
.Fields("bagsize") = txtbs.Text
.Fields("TOTAL") = txttotal.Text
.Update
ab = True
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then
.Edit
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
If Not IsNull(.Fields("qty")) Then
Fields("QTY") = .Fields("QTY").Value - Val(txttotal.Text)
Else
resp = MsgBox("There is not any quantity of this product", vbOKOnly, "Alert")
End If
.Update
ab = True
Exit Sub
Else
.MoveNext
End If
Wend
End With
dbitem.Refresh
A.I.O.U. (Sahiwal Campus) Ch. # 8
81
dbstkin.Refresh
Exit Sub
Else
.MoveNext
End If
Wend
If ab = False Then
.AddNew
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("ICODE") = txticode.Text
.Fields("INAME") = txtiname.Text
.Fields("pcode") = txtpcode.Text
.Fields("docno") = txtdoc.Text
.Fields("ogp") = txtigp.Text
.Fields("qty") = txtqty.Text
.Fields("bagsize") = txtbs.Text
.Fields("TOTAL") = txttotal.Text
.Update
ab = True
With dbitem.Recordset
While .EOF = False
If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then
.Edit
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
If Not IsNull(.Fields("qty")) Then
.Fields("QTY") = .Fields("QTY").Value - Val(txttotal.Text)
Else
resp = MsgBox("There is not any quantity of this product", vbOKOnly, "Alert")
End If
.Update
A.I.O.U. (Sahiwal Campus) Ch. # 8
82
ab = True
Exit Sub
Else
.MoveNext
End If
Wend
End With
dbitem.Refresh
dbstkin.Refresh
End If
End With
dbstkin.Refresh
dbitem.Refresh
ab = False
End Sub
Private Sub DBGrid1_DblClick()
txtvno.Text = DBGrid1.Columns("VNO")
txtvdate.Text = DBGrid1.Columns("VDATE")
txtpcode.Text = DBGrid1.Columns("PCODE")
txticode.Text = DBGrid1.Columns("ICODE")
txtqty.Text = DBGrid1.Columns("QTY")
txtbs.Text = DBGrid1.Columns("BAGSIZE")
txttotal.Text = DBGrid1.Columns("TOTAL")
txtigp.Text = DBGrid1.Columns("OGP")
txtdoc.Text = DBGrid1.Columns("DOCNO")
End Sub
Private Sub DBGrid3_DblClick()
txtpcode.Text = DBGrid3.Columns(0)
End Sub
Private Sub Form_Load()
isedit = False
txtvdate = Date
A.I.O.U. (Sahiwal Campus) Ch. # 8
83
isfin = True
dbitem.RecordSource = "SELECT * FROM ITEM WHERE FINISHED = -1"
End Sub
Private Sub txtbs_LostFocus()
txttotal.Text = Val(txtqty.Text) * Val(txtbs.Text)
End Sub
Private Sub txticode_GotFocus()
DBGrid4.Visible = True
End Sub
Private Sub txticode_LostFocus()
Dim isf, isf1 As Boolean
isf = False
isedit = False
isf1 = False
DBGrid4.Visible = False
dbitem.Refresh
dbstkin.Refresh
With dbstkin.Recordset
While dbstkin.Recordset.EOF = False
If .Fields("vno") = Val(txtvno) And .Fields("icode") = Trim(txticode.Text) Then
txtiname.Text = .Fields("iname")
If Not IsNull("qty") Then
txtqty.Text = .Fields("qty")
End If
txtbs.Text = .Fields("bagsize")
isf1 = True
isedit = True
Exit Sub
Else
.MoveNext
End If
Wend
A.I.O.U. (Sahiwal Campus) Ch. # 8
84
End With
dbitem.Refresh
If isf1 = False Then
While dbitem.Recordset.EOF = False
If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) And
dbitem.Recordset.Fields("finished") = True Then
txtiname.Text = dbitem.Recordset.Fields("INAME")
isf = True
Exit Sub
Else
dbitem.Recordset.MoveNext
End If
Wend
End If
If isf = False Then
resp = MsgBox("Record does not exist", vbOKOnly, "Alert")
txticode.Text = " "
txticode.SetFocus
End If
End Sub
Private Sub txtpcode_GotFocus()
DBGrid3.Visible = True
End Sub
Private Sub txtpcode_LostFocus()
Dim ISFound As Boolean
ISFound = False
dbparty.Refresh
While dbparty.Recordset.EOF = False
If dbparty.Recordset.Fields("PCODE") = Trim(txtpcode.Text) Then
txtpname.Text = dbparty.Recordset.Fields("PNAME")
DBGrid3.Visible = False
ISFound = True
A.I.O.U. (Sahiwal Campus) Ch. # 8
85
Exit Sub
Else
dbparty.Recordset.MoveNext
End If
Wend
If ISFound = False Then
resp = MsgBox("This party code and name does not exist", vbOKOnly, "Alert")
txtpcode.SetFocus
DBGrid3.Visible = True
End If
End Sub
Private Sub txtvno_LostFocus()
dbstkin.Refresh
With dbstkin.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text Then
txtvdate.Text = .Fields("vdate")
txtigp.Text = .Fields("ogp")
txtdoc.Text = .Fields("docno")
txtpcode.Text = .Fields("pcode")
isedit = True
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
86
8.5 ITEM INFORMATION
Dim resp As String
Dim isedit, isexit As Boolean
Private Sub cmddelete_Click()
If isedit = True Then
resp = MsgBox("Are you sure to delete this record",
vbQuestion + vbYesNo, "Alert")
If resp = vbYes Then
If Data1.Recordset.EOF = False Then
Data1.Recordset.Delete
isedit = False
Else
resp = MsgBox("There is not any record to delete", vbInformation, “Alert”)
End If
End If
A.I.O.U. (Sahiwal Campus) Ch. # 8
87
Else
resp = MsgBox("Item Code does not exist", vbCritical,
"Alert")
End If
txticode.Text = " "
txtiname.Text = " "
txticode.SetFocus
Data1.Refresh
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdsave_Click()
Data1.Refresh
With Data1.Recordset
If txticode.Text = "" Then
resp = MsgBox("Item Code must not be empty", vbInformation, "Alert")
txticode.Text = ""
txticode.SetFocus
Else
While Data1.Recordset.EOF = False
If Data1.Recordset.Fields("finished") = OPTION1.Value And
Data1.Recordset.Fields("ICODE") = Trim(txticode.Text)
Then
.Edit
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
.Fields("FINISHED") = OPTION1.Value
isedit = False
Data1.Recordset.Update
Exit Sub
Else
.MoveNext
A.I.O.U. (Sahiwal Campus) Ch. # 8
88
End If
Wend
If isedit = False Then
.AddNew
.Fields("ICODE") = Trim(txticode.Text)
.Fields("INAME") = Trim(txtiname.Text)
.Fields("FINISHED") = OPTION1.Value
Data1.Recordset.Update
End If
txticode.Text = ""
txtiname.Text = ""
Data1.Refresh
txticode.SetFocus
End If
End With
Data1.Refresh
End Sub
Private Sub DBGrid1_DblClick()
txticode.Text = DBGrid1.Columns(0)
End Sub
Private Sub Form_Load()
isedit = False
isexit = False
End Sub
Private Sub OPTION1_GotFocus()
Data1.Refresh
End Sub
Private Sub txticode_LostFocus()
Data1.Refresh
If txticode.Text <> "" Then
While Data1.Recordset.EOF = False
A.I.O.U. (Sahiwal Campus) Ch. # 8
89
If Data1.Recordset.Fields("finished") = True And
Data1.Recordset.Fields("ICODE") = Trim(txticode.Text)
Then
With Data1.Recordset
txtiname.Text = .Fields("INAME")
If Not IsNull(.Fields("qty")) Then
Text1.Text = .Fields("qty")
End If
End With
isedit = True
Exit Sub
Else
Data1.Recordset.MoveNext
End If
Wend
While Data1.Recordset.EOF = False
If Data1.Recordset.Fields("finished") = False And
Data1.Recordset.Fields("ICODE") = Trim(txticode.Text)
Then
With Data1.Recordset
txtiname.Text = .Fields("INAME")
If Not IsNull(.Fields("qty")) Then
Text1.Text = .Fields("qty")
End If
End With
isedit = True
Exit Sub
Else
Data1.Recordset.MoveNext
End If
Wend
End If
End Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
90
8.6 PARTY INFORMATION
Dim resp As String
Dim isedit, isexit As Boolean
Private Sub cmddelete_Click()
If isedit = True Then
resp = MsgBox("Are you sure to delete this record", vbQuestion + vbYesNo, "Alert")
If resp = vbYes Then
If Data1.Recordset.EOF = False Then
Data1.Recordset.Delete
isedit = False
Else
resp = MsgBox("There is not any record to delete", vbInformation, "Alert")
End If
End If
A.I.O.U. (Sahiwal Campus) Ch. # 8
91
Else
resp = MsgBox("Code does not exist", vbCritical, "Alert")
End If
txtpcode.Text = " "
txtpname.Text = " "
txtaddress.Text = " "
txtcity.Text = " "
txtphone.Text = " "
txtemail.Text = " "
txtpcode.SetFocus
Data1.Refresh
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdsave_Click()
If txtpcode.Text = "" Then
resp = MsgBox("Party code must not be empty", vbInformation, "Alert")
txtpcode.Text = ""
txtpcode.SetFocus
Else
If isedit = True Then
With Data1.Recordset
.Edit
.Fields("PCODE") = Trim(txtpcode.Text)
.Fields("PNAME") = Trim(txtpname.Text)
.Fields("ADDRESS") = Trim(txtaddress.Text)
.Fields("CITY") = Trim(txtcity.Text)
.Fields("PHONE") = Trim(txtphone.Text)
.Fields("EMAIL") = Trim(txtemail.Text)
End With
isedit = False
A.I.O.U. (Sahiwal Campus) Ch. # 8
92
Data1.Recordset.Update
Else
With Data1.Recordset
.AddNew
.Fields("PCODE") = Trim(txtpcode.Text)
.Fields("PNAME") = Trim(txtpname.Text)
.Fields("ADDRESS") = Trim(txtaddress.Text)
.Fields("CITY") = Trim(txtcity.Text)
.Fields("PHONE") = Trim(txtphone.Text)
.Fields("EMAIL") = Trim(txtemail.Text)
End With
Data1.Recordset.Update
End If
txtpcode.Text = ""
txtpname.Text = ""
txtaddress.Text = ""
txtcity.Text = ""
txtphone.Text = ""
txtemail.Text = ""
Data1.Refresh
txtpcode.SetFocus
End If
Data1.Refresh
End Sub
Private Sub DBGrid1_DblClick()
txtpcode.Text = DBGrid1.Columns(0)
End Sub
Private Sub Form_Load()
isedit = False
isexit = False
End Sub
Private Sub txtaddress_KeyPress(KeyAscii As Integer)
A.I.O.U. (Sahiwal Campus) Ch. # 8
93
If KeyAscii = 13 And txtaddress.Text <> "" Then
txtcity.SetFocus
End If
End Sub
Private Sub txtpcode_LostFocus()
Data1.Refresh
If txtpcode.Text <> "" Then
While Data1.Recordset.EOF = False
If Data1.Recordset.Fields(0) = Trim(txtpcode.Text) Then
With Data1.Recordset
txtpname.Text = .Fields("PNAME")
txtaddress.Text = .Fields("ADDRESS")
txtcity.Text = .Fields("CITY")
txtphone.Text = .Fields("PHONE")
txtemail.Text = .Fields("EMAIL")
End With
isedit = True
Exit Sub
Else
Data1.Recordset.MoveNext
End If
Wend
End If
End Sub
A.I.O.U. (Sahiwal Campus) Ch. # 8
94
8.7 BIN-NO INFORMATION
Dim resp As String
Dim isedit As Boolean
Private Sub cmddelete_Click()
Data2.Refresh
With Data2.Recordset
If Data2.Recordset.RecordCount >= 1 Then
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then
.Delete
Data2.Refresh
Exit Sub
Else
.MoveNext
A.I.O.U. (Sahiwal Campus) Ch. # 8
95
End If
Wend
End If
End With
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdsave_Click()
Dim isf As Boolean
isf = False
With Data2.Recordset
Data2.Refresh
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then
.Edit
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("year") = Trim(txtyear.Text)
.Fields("season") = Trim(cmbseason.Text)
.Fields("icode") = Trim(DBICODE.Text)
.Fields("qty") = txtqty.Text
.Fields("binno") = Trim(txtbs.Text)
.Update
isf = True
Exit Sub
Else
.MoveNext
End If
Wend
If isf = False Then
.AddNew
A.I.O.U. (Sahiwal Campus) Ch. # 8
96
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("year") = Trim(txtyear.Text)
.Fields("season") = Trim(cmbseason.Text)
.Fields("icode") = Trim(DBICODE.Text)
.Fields("qty") = txtqty.Text
.Fields("binno") = Trim(txtbs.Text)
.Update
isf = True
End If
End With
Data2.Refresh
DBICODE.SetFocus
End Sub
Private Sub DBGrid1_DblClick()
txtvno.Text = DBGrid1.Columns(0)
txtvdate.Text = DBGrid1.Columns(1)
txtyear.Text = DBGrid1.Columns(2)
DBICODE.Text = DBGrid1.Columns(4)
cmbseason.Text = DBGrid1.Columns(3)
txtqty.Text = DBGrid1.Columns(5)
txtbs.Text = DBGrid1.Columns(6)
End Sub
Private Sub dbicode_GotFocus()
DBGrid2.Visible = True
End Sub
Private Sub dbicode_LostFocus()
Data1.Refresh
With Data1.Recordset
While .EOF = False
If .Fields("icode") = Trim(DBICODE.Text) And .Fields("finished") = 0 Then
txtiname.Text = .Fields("iname")
A.I.O.U. (Sahiwal Campus) Ch. # 8
97
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub Form_Load()
isedit = False
txtvdate = Date
End Sub
Private Sub txtiname_GotFocus()
DBGrid2.Visible = False
End Sub
Private Sub txtiname_LostFocus()
Data2.Refresh
While Data2.Recordset.EOF = False
If Data2.Recordset.Fields("VNO") = txtvno.Text And
Data2.Recordset.Fields("ICODE") = Trim(DBICODE.Text) Then
txtqty = Data2.Recordset.Fields("QTY")
txtbs = Data2.Recordset.Fields("Binno")
Exit Sub
Else
Data2.Recordset.MoveNext
End If
Wend
End Sub
Private Sub txtvno_LostFocus()
Data2.Refresh
With Data2.Recordset
While .EOF = False
If .Fields("vno") = txtvno.Text Then
A.I.O.U. (Sahiwal Campus) Ch. # 8
98
txtvdate.Text = .Fields("VDATE")
txtyear.Text = .Fields("YEAR")
cmbseason.Text = .Fields("SEASON")
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
8.8 BAG SIZE INFORMATION
Dim resp As String
Dim isedit As Boolean
Private Sub cmddelete_Click()
With Data2.Recordset
Data2.Refresh
A.I.O.U. (Sahiwal Campus) Ch. # 8
99
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then
.Delete
Data2.Refresh
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdsave_Click()
Dim isf As Boolean
isf = False
With Data2.Recordset
Data2.Refresh
While .EOF = False
If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then
.Edit
.Fields("vno") = txtvno.Text
.Fields("vdate") = txtvdate.Text
.Fields("year") = Trim(txtyear.Text)
.Fields("season") = Trim(cmbseason.Text)
.Fields("icode") = Trim(DBICODE.Text)
.Fields("qty") = txtqty.Text
.Fields("bagsize") = Trim(txtbs.Text)
.Update
isf = True
Exit Sub
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS
ICS

More Related Content

Similar to ICS

Application of industrial engineering techniques in garments production
Application of industrial engineering techniques      in garments productionApplication of industrial engineering techniques      in garments production
Application of industrial engineering techniques in garments productionMd.Abdur Rahim Al Bahar
 
Crime Reporting System
Crime Reporting SystemCrime Reporting System
Crime Reporting SystemHaroon Alam
 
Inventory Managment
Inventory ManagmentInventory Managment
Inventory Managmentsai prakash
 
AUTOMATED LIBRARY MANAGEMENT SYSTEM
AUTOMATED LIBRARY MANAGEMENT SYSTEMAUTOMATED LIBRARY MANAGEMENT SYSTEM
AUTOMATED LIBRARY MANAGEMENT SYSTEMAbhishek Kumar
 
Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Minhas Kamal
 
Documentation 140612091527-phpapp01
Documentation 140612091527-phpapp01Documentation 140612091527-phpapp01
Documentation 140612091527-phpapp01Mahesh Jadhav
 
325317356-Lpu-Final-Year-CSE-Project-Example.pdf
325317356-Lpu-Final-Year-CSE-Project-Example.pdf325317356-Lpu-Final-Year-CSE-Project-Example.pdf
325317356-Lpu-Final-Year-CSE-Project-Example.pdfRaviJangid67
 
osy microproject[1].pdf
osy microproject[1].pdfosy microproject[1].pdf
osy microproject[1].pdfRenuDeshmukh5
 
Fruit Product Management System
Fruit Product Management SystemFruit Product Management System
Fruit Product Management Systemsaiyadsanobar
 
Horticultural Information System
 Horticultural Information System  Horticultural Information System
Horticultural Information System Krishna Vala
 
3.abstact (biometric security system)
3.abstact (biometric security system)3.abstact (biometric security system)
3.abstact (biometric security system)JIEMS Akkalkuwa
 
REPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERI
REPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERIREPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERI
REPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERIManish Choudhary
 

Similar to ICS (20)

KIOCL
KIOCLKIOCL
KIOCL
 
Application of industrial engineering techniques in garments production
Application of industrial engineering techniques      in garments productionApplication of industrial engineering techniques      in garments production
Application of industrial engineering techniques in garments production
 
Crime Reporting System
Crime Reporting SystemCrime Reporting System
Crime Reporting System
 
Inventory Managment
Inventory ManagmentInventory Managment
Inventory Managment
 
AUTOMATED LIBRARY MANAGEMENT SYSTEM
AUTOMATED LIBRARY MANAGEMENT SYSTEMAUTOMATED LIBRARY MANAGEMENT SYSTEM
AUTOMATED LIBRARY MANAGEMENT SYSTEM
 
Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)
 
raju
rajuraju
raju
 
Documentation 140612091527-phpapp01
Documentation 140612091527-phpapp01Documentation 140612091527-phpapp01
Documentation 140612091527-phpapp01
 
MSSMT
MSSMTMSSMT
MSSMT
 
325317356-Lpu-Final-Year-CSE-Project-Example.pdf
325317356-Lpu-Final-Year-CSE-Project-Example.pdf325317356-Lpu-Final-Year-CSE-Project-Example.pdf
325317356-Lpu-Final-Year-CSE-Project-Example.pdf
 
Square textiles ltd. .A.S.
Square textiles ltd. .A.S.Square textiles ltd. .A.S.
Square textiles ltd. .A.S.
 
FYP 2 REPORT AMIRUL ARIFF
FYP 2 REPORT AMIRUL ARIFFFYP 2 REPORT AMIRUL ARIFF
FYP 2 REPORT AMIRUL ARIFF
 
osy microproject[1].pdf
osy microproject[1].pdfosy microproject[1].pdf
osy microproject[1].pdf
 
Compliance guide
Compliance guideCompliance guide
Compliance guide
 
Sujeet document
Sujeet documentSujeet document
Sujeet document
 
Fruit Product Management System
Fruit Product Management SystemFruit Product Management System
Fruit Product Management System
 
Aquaponics System - An EPS@ISEP 2014 Spring Project
Aquaponics System - An EPS@ISEP 2014 Spring ProjectAquaponics System - An EPS@ISEP 2014 Spring Project
Aquaponics System - An EPS@ISEP 2014 Spring Project
 
Horticultural Information System
 Horticultural Information System  Horticultural Information System
Horticultural Information System
 
3.abstact (biometric security system)
3.abstact (biometric security system)3.abstact (biometric security system)
3.abstact (biometric security system)
 
REPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERI
REPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERIREPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERI
REPORT ON SUMMER TRAINING IN MEMS AT CSIR-CEERI
 

ICS

  • 1. i IIINNN TTTHHHEEE NNNAAAMMMEEE OOOFFF AAAAAAAALLLLLLLLLLLLLLLLAAAAAAAAHHHHHHHH TTTHHHEEE MMMOOOSSSTTT BBBEEENNNEEEFFFIIICCCEEENNNTTT TTTHHHEEE MMMOOOSSSTTT MMMEEERRRCCCIIIFFFUUULLL
  • 2. ii
  • 3. iii AUTOMATION OF INVENTORY CONTROL SYSTEM FOR PIONEER PAKISTAN SEED LIMITED SAHIWAL BY Mr. KASHIF KHAN Mr. SHAHID HUSSAIN Mr. EHTESHAM ANWER
  • 4. iv A dissertation submitted to COMPUTER SCIENCE DEPARTMENT ALLAMA IQBAL OPEN UNIVERSITY ISLAMABAD As a partial fulfillment of the requirement For B.C.S. Degree in COMPUTER SCIENCE OCTOBER 1999.
  • 5. v PROJECT BRIEF Project Name: - Inventory Control System Organization: - Pioneer Pakistan Seed Ltd. Objectives: - To Automate The Inventory Control system Undertaken By: - KASHIF KHAN SHAHID HUSSAIN EHTESHAM ANWER Supervised By: - Mr. SHAHZAD ASIM MCS Starting Month: - May, 1999 Completion Month: - October, 1999 Source Language: - Visual Basic 6.0 (Enterprise Edition) Operating System: - MS-Windows 98 Software Used: - MS-Word 97 VISIO (ver 1.0) INPAGE (ver 1.1) Paint Brush 98 Computer Used: - Pentium MMX 200 MHz
  • 6. vi FINAL APPROVAL This is to certify that we have read this thesis submitted by: Name Roll Number Reg. Number Kashif Khan F-4744820 097-PSL-0400 Shahid Hussain G-4187680 097-PSL-1253 Ehtesham Anwer F-4743947 097-PSL-0386 And it is our judgment that this thesis is sufficient standard to warrant its acceptance by ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD for the Bachelor Degree of Computer Science.
  • 7. vii COMMITTEE 1.External Examiner: 2.Supervisor: Mr. SHAHZAD ASIM MCS Center in Computer Excellence SAHIWAL 3.Chairman: Dr. MOHAMMAD ARSHAD Ph.D. Chairman of MATH. STAT. and Computer Science Department ALLAMA IQBAL OPEN UNIVERSITY ISLAMABAD
  • 8. viii DEDICATION I dedicate this thesis To the memories of my Late Father A.S. Hamayun Khan Kashif Khan I dedicate this thesis to My loving Parents They really work hard For me Shahid Hussain I dedicate this thesis to My loving Parents And my younger Brother Ehtesham Anwer
  • 9. ix ACKNOWLEDGMENT ll praise goes to ALLAH ALMIGHTY. The most merciful, and the most beneficent, Who gave us courage to complete this task successfully and all respects to His Prophet MOHAMMED (peace be upon him) who enable us to recognize our creator. We are students of B.C.S. at sahiwal campus of A.I.O.U. We are belonging to the first batch of B.C.S. launched by A.I.O.U. in May 1997. We are very fortune to get a higher education in our city without going to anywhere outside. All credits are goes to A.I.O.U. and C.C.E. (center in computer excellence), which is study center in our city and give us a chance to get skills in the modern education of computer science. We are very proud to announce that we are PIONEERS of B.C.S. because of we are students of first batch of B.C.S. launched by A.I.O.U. in sahiwal. We are bound to thanks to all our teachers especially Sir Asghar Ali who teach us from very first day of B.C.S. Sir Asif Raza Zaidi, Sir Najeeb-ur-Rehman, Sir Rashid Munir and also a very special thanks to Afzal Hussain who was our lab. Incharg and now he is a professional programmer. We are also wants to record our thanks to Mr.Nasir Mahmood (production and plant manager) and Dr. Shafiq Ahmad (quality assurance manager) for their co-operation and provided valuable information in completing our project. We also cannot forget to express our deep gratitude to all our class fellows and especially our best friend Rao Kashif for assistance and memorable occasions that we will never forget. KASHIF KHAN SHAHID HUSSAIN EHTESHAM ANWER A
  • 10. x PREFACE ach and every system either manual or computerized is a collection of many sub systems. Similarly the system at PIONEER PAKISTAN SEED LTD. have many sub systems such as Payroll for their employees, Inventory Control for their stock keeping, Accounts Maintenance for transaction occurs in daily office workings. We choose Inventory Control at PIONEER PAKISTAN SEED LTD. because they have very large warehouses for storage of different types of items, their respected hybrids in different sizes of bags. So this thesis is about inventory control system of PIONEER PAKISTAN SEED LIMITED, which consists of nine chapters. First chapter contains information about the organization and the main objectives of the organization and also an organizational structure. The second chapter provides information about inventory and its types. The third chapter is about the existing system of the organization, which is manual system. The fourth chapter is about the proposed system for the PIONEER PAKISTAN SEED LIMITED. The fifth chapter is about the system designing. It describes all the table layouts and their fields with their types. In the sixth chapter we select a language for the development of the software. In the seventh chapter information about software implementation is given. In chapter eight, all the input/output data screens and source codes are presents. The last chapter is a user’s guide, which gives view of the procedures for the users to operate and handle the control of the new system. In epilogue we realizes our limitations in imaginations about creativity, development of project and analyzing the system. E
  • 11. xi The appendix A of the thesis contains program flow charts. Appendix B contains data dictionary, which tells the purpose of every field, used in any table as well as data flow diagrams and their explanation. Appendix C contains document involved in manual system of PIONEER PAKISTAN SEED LIMITED.
  • 12. xii CONTENTS CHAPTER 1 INTRODUCTION TO ORGANIZATION 1 1.1 INTRODUCTION ...........................................................……….. 2 1.2 OBJECTIVES ........................................................................… 2 1.3 PROJECT OVERVIEW ...........................................................… 4 1.3.1 COMMERCIAL SEEDS ..................................................… 4 1.3.2 LOCAL PRODUCTION ..................................................… 4 1.4 ORGANIZATIONAL STRUCTURE ..........................................… 5 1.5 PROJECT AIMS ....................................................................… 5 1.6 PROJECT OBJECTIVES .........................................................… 6 CHAPTER 2 INTRODUCTION TO INVENTORY 7 2.1 WHAT IS INVENTORY ........................................................… 8 2.2 RAW MATERIAL .................................................................… 8 2.3 SUPPLIES ...........................................................................… 9 2.4 WORK IN PROCESS .............................................................… 9 2.5 FINISHED GOODS ...............................................................… 9 2.6 PURPOSE OF INVENTORIES ...............................................… 9 2.7 COSTING MATERIAL ISSUES ..............................................… 10 CHAPTER 3 EXISTING SYSTEM 12 3.1 INTRODUCTION .................................................................… 13 3.2 STOCK REGISTER ...............................................................… 13 3.3 PARENT SEED, CHEMICAL AND PACKING MATERIAL REGISTER. 14 3.4 RAW MATERIAL REGISTER ...............................................… 14 3.5 DOCUMENTS ....................................................................… 15 3.6 LIMITATIONS IN EXISTING SYSTEM ..................................… 16
  • 13. xiii CHAPTER 4 PROPOSED SYSTEM 17 4.1 INTRODUCTION .................................................................… 18 4.2 NEED FOR COMPUTERIZED PROCESSING ........................…. 18 4.3 SOFTWARE PROCESS MODELS ...........................................… 19 4.4 PHASES OF PROPOSED SYSTEM .........................................… 20 4.4.1 PRELIMINARY INVESTIGATION ..............................… 20 4.4.2 ANALYSIS PHASE ....................................................… 21 4.4.3 DESIGN PHASE ........................................................… 22 4.4.4 DEVELOPMENT PHASE ............................................… 23 4.4.5 IMPLEMENTATION PHASE ......................................… 23 4.5 OBJECTIVES OF THE PROPOSED SYSTEM ..........................… 24 4.6 PROPOSED SYSTEM REQUIREMENTS .................................… 27 4.6.1 REPORTS .................................................................… 28 4.6.2 INPUT SCREENS ......................................................… 28 4.6.2 HUMAN INTERFACE ................................................… 28 CHAPTER 5 SYSTEM DESIGN 29 5.1 INTRODUCTION .................................................................… 30 5.2 DESIGN APPROACHES ........................................................… 30 5.2.1 TOP-DOWN DESIGN .................................................… 31 5.2.2 BOTTOM-UP DESIGN ...............................................… 31 5.2.3 CRITICAL FIRST DESIGN .........................................… 31 5.2.4 STRUCTURED DESIGN .............................................… 32 5.3 ADOPTED APPROACH ........................................................… 32 5.4 STRUCTURED TOOLS .........................................................… 33 5.4.1 DATA FLOW DIAGRAMS ..........................................… 33 5.4.2 DATA DICTIONARY .................................................… 34 5.5 DESIGN SPECIFICATION ....................................................… 34 5.5.1 OUTPUT DESIGNING ...............................................… 34 5.5.2 INPUT DESIGNING ..................................................… 35 5.5.3 FILE DESIGNING. …………………………………………… 36
  • 14. xiv 5.6 DESCRIPTION OF FILES ....................................................… 36 CHAPTER 6 SOFTWARE DEVELOPMENT 44 6.1 INTRODUCTION .................................................................… 45 6.2 WHY COMPUTER BASED SYSTEM ......................................… 45 6.3 SELECTION OF LANGUAGE ................................................… 45 6.4 SOFTWARE DEVELOPMENT ...............................................… 47 6.5 METHODS OF DEVELOPMENT PHASE ................................… 48 6.5.1 CODING ...................................................................… 48 6.5.2 COMPILING .............................................................… 48 6.5.3 TESTING ..................................................................… 49 6.6 SYSTEM EVALUATION .......................................................… 50 6.6.1 TIMELINESS ............................................................… 50 6.6.2 CONCISENESS .........................................................… 51 6.6.3 EFFICIENCY ............................................................… 51 6.7 HARDWARE CONSIDERATION ............................................… 51 6.8 SOFTWARE CONSIDERATION .............................................… 52 CHAPTER 7 SOFTWARE IMPLEMENTATION 53 7.1 INTRODUCTION .................................................................… 54 7.2 CONVERSION .....................................................................… 54 7.2.1 DIRECT CONVERSION METHOD ..............................… 55 7.2.2 GRADUAL CONVERSION METHOD ..........................… 55 7.2.3 PARALLEL CONVERSION METHOD .........................… 55 7.2.4 PILOT CONVERSION METHOD .................................… 56 7.3 PROPOSED CONVERSION METHOD ....................................… 56 7.4 TRAINING OF PERSONNEL .................................................… 56 CHAPTER 8 CODING AND DATA SCREENS 58 8.1 MAIN MENU …………………………………………………………… 59 8.2 IN-COMING UNFINISHED SEEDS ………………………………… 62
  • 15. xv 8.3 IN-COMING FINISHED SEEDS ……………………………………… 70 8.4 OUT-GOING FINISHED SEEDS ……………………………………… 78 8.5 ITEM INFORMATION ………………………………………………… 86 8.6 PARTY INFORMATION ……………………………………………… 90 8.7 BIN NO INFORMATION……………………………………………… 94 8.8 BAGS SIZE INFORMATION ………………………………………… 98 8.9 WAREHOUSE INFORMATION ……………………………………… 102 8.10 STOCK POSITION …………………………………………………… 105 CHAPTER 9 USER GUIDE 111 9.1 INTRODUCTION ............................................................…….. 112 9.2 GETTING STARTED ............................................................… 112 9.3 THE SCREEN MENU ...........................................................… 112 9.4 THE HOT KEYS ……...........................................................… 114 EPILOGUE .................................................................................… 116 APPENDIX A DATA DICTIONARY & DFD …............................... 118
  • 16. 1 C H A P T E R 1 I N T R O D U C T I O N T O O R G A N I Z A T I O N
  • 17. A.I.O.U. (Sahiwal Campus) Ch. # 1 2 1.1 INTRODUCTION Name of the company is “PIONEER PAKISTAN SEED LTD”. The registered office of the company is situated in Punjab province, Pakistan Pioneer Hybrid International inc. was established in 1926 in DMOVEEN (the city of AMERICA). PIONEER is a largest company in the world in production of seeds. PIONEER have a business over 27 billions per annum. It has its branches in 152 countries of the world. It has research centers in 40 countries of the world. PIONEER provides 38% hybrid seeds on world level. PIONEER has praised award in 1938 due to his struggle against poverty and hunger. 1.2 OBJECTIVES The objectives for which the company is established are: 1. To carry on all or any of the business of growers, producers, conditioners, processors, packagers, sellers, merchants, agents, consultants, advisors and technicians for in and to all cereal food, fiber, oil and vegetable seeds, plants, grains, forage, hybrids, and varieties of the same foodstuffs and other agricultural and horticultural products by products, microbial products and matters related to or ancillary to any thereof.
  • 18. A.I.O.U. (Sahiwal Campus) Ch. # 1 3 2. To transfer technology and experience in the seed and microbial business by means of introducing efficient agricultural service support to farmers and training Pakistani nationals. 3. To deal in all fields of agricultural investments and agro-industry investments. 4. To improve, export, buy, sell, exchange, manufacture, prepare, process condition, package and deal in seed, grain, forage, fiber, oil, vegetable seeds more generally all agricultural and non- agricultural products and by products of all types and description. 5. To purchase otherwise acquire, erect, maintain, equip, reconstruct and adopt and building, offices, showrooms, workshops, mills, plants, machinery, tools accessories and things found necessary or convenient for purpose of the company and to work the same. 6. To purchase, take on lease or other wise acquire lands, buildings, and houses and in articulator lands producing or likely to produce the articles in which the company is directly or indirectly interested. 7. To carry on the business of distributors, constructors, agents, importers, exporters and carriers. 8. To make arrangements for the purchase, supply, manufacture, marketing and disposal of all or any articles goods and material required, stocked or manufactured by the company or in CO- operation with any person, body of any Government department. 9. To carry on the business of crop farming in addition to animal husbandry, agricultural and allied industry. 10. To manufacture and deal in chemicals necessary or required for any of the purpose of the company.
  • 19. A.I.O.U. (Sahiwal Campus) Ch. # 1 4 11. To carry on the business of imports and exports of all kinds of goods, commodities and merchandise directly or indirectly related to the business of the company. 12. To undertake commercial obligations, transactions, and operations of all kinds relating to business of the company. 13. To adopt such mean of making known the product and business of the company as may seem expedient and particulars and granting prizes, rewards and donations. 1.3 PROJECT OVERVIEW The inventory of PIONEER PAKISTAN SEED LTD. is of two types: a) Commercial seed. b) Local production. 1.3.1 COMMERCIAL SEED According to the requirement of the growers or market an order is sent to USA from which demanded seed is arrived and stocked in the warehouses of the company. After that according to the demand of the growers or the market the imported seed is distributed. 1.3.2 LOCAL PRODUCTION In local production first of all contract is made with the growers, then parent seed and chemicals are provided to the growers. When crop is grown then detesling is made. Detesling is a process of preparing
  • 20. A.I.O.U. (Sahiwal Campus) Ch. # 1 5 hybrid seeds. Then ripped crop is brought to the seed plant for processing. In processing there are many process involves such as weaghtage, unload, sorting, drying, shelling, cleaning, sizing, gravity treatment like insecticides, fungicides, coloring, or dying, after it bagging and then store the finished seeds in cold storage or local warehouse for further use. When finished seed is prepared then packing is made in the plant with the help of automatic machines. This stock is then distributed among growers or in the market. 1.4 ORGANIZATIONAL STRUCTURE The General Manager and the Chief Executive of PIONEER PAKISTAN SEED LTD. is Mr. Asif Ali Shah. The main organizational chart is as under: GM (Chief Executive) Finance & Admin. Marketing Supply Management Production Seed plant Quality Assurance The Head Office situated 14-L, Model Town Lahore.
  • 21. A.I.O.U. (Sahiwal Campus) Ch. # 1 6 1.5 PROJECT AIMS Observe the existing inventory control system of PIONEER PAKISTAN SEED LTD. Collect relevant slips, forms, registers and reports etc. Submit a study report for its computerization to improve. Input and output formats. Security. Generation of all types of reports. On-line information retrieved. 1.6 PROJECT OBJECTIVES In order to meet these objectives the project work is divided into following phases: 1. Preliminary Investigation 2. Analysis Phases 3. Design phase 4. Development phase 5. Implementation phase ______________________
  • 22. 7 C H A P T E R 2 I N T R O D U C T I O N T O I N V E N T O R Y
  • 23. A.I.O.U. (Sahiwal Campus) Ch. # 2 8 2.1 WHAT IS INVENTORY An inventory is an idle resource that process economic value. Broadly defined, inventories are useable resources that are at a given point in time. In a manufacturing environment this would include raw materials, semi finished goods (work in process) and finished goods. In retail firms, inventory is generally viewed as the stock of the goods for sale. Inventories however may include nonphysical assets such as cash, accounts receivable and personal. Although we usually think of inventories in the context of manufacturing and distribution firms, other types of business have inventory. Banks, for example, must maintain an inventory of cash to meet customer demand. Non business organizations have inventory too. Hospitals have inventories of medicine, surgical supplies etc. The particular inventories that must be managed depend upon the nature of the nature of the business, but the following inventory types are generally found in all business. 2.2 RAW MATERIAL Raw materials are the ingredients that go in to the final product. Raw materials are the paper ink and binding to make books. The exact form of the material depends upon the manufacturing process. Some manufacturers take nature’s own resources and convert them into a product. Steel-making firms must have iron and coal to produce steel. The steel then sold to auto manufacturers, and for them it becomes a raw material. Other manufacturers assemble component parts into a final product. Their raw materials inventory consists of many different components supplied by other manufacturers.
  • 24. A.I.O.U. (Sahiwal Campus) Ch. # 2 9 2.3 SUPPLIES Every business requires materials that do not become part of the final product. These items are term as MRO items (maintain, repair, and operating supplies) are usually small in number and expanse compared to other inventories. Nevertheless, they are essential to the operation of the plant. 2.4 WORK IN PROCESS Raw materials moving through the stages of production are called work in process. Depending on the length and complexity of the production process, work in process inventory can be relatively large and small. 2.5 FINISHED GOODS Finished goods consist of unsold final products. Finished goods are stored at the manufacturing facility itself or at some point in the distribution channel at warehouse or retails. 2.6 PURPOSES OF INVENTORIES Inventories serve a multitude of purposes, including the following: 1. They aid continues production by ensuring that inputs are always available and that economic production runs can be made.
  • 25. A.I.O.U. (Sahiwal Campus) Ch. # 2 10 2. They faceplate intermittent production of several production on the same facilities (even though demand may be relatively constant for each product). 3. They decouple successive stages in processing a product so that downtime in one stage does not stop the entire process. 4. They help level production activities, stabilize employment and improve labor relations by storing human and machine effort. 5. They provide a mean of hedging against future price and delivery uncertainties, such as strikes, price increases and inflation. 6. They provide a means of obtaining and handling materials uneconomic lot sizes and gaining quantity discounts. 7. They help service customer with varying demands and in various locations because an adequate supply is maintained to meet their immediate and seasonal needs. 2.7 COSTING MATERIALS ISSUES Of the various methods in use for the costing of materials issues or sailing or purchasing of inventories a rough division can be made between those, which use so-called actual costs, and those, which use standard costs: 1. Specific Cost: Under this method specific cost of the units of materials issued is charged to production. It can be used efficiently in those concerns where it is possible to keep each lot of material purchased separate from other lots of the same material in the storeroom and different stores ledger card is used for each lot purchased. In such circumstances at the time of materiel issue, it will be possible to find out the particular purchased and cost represented by the material issued.
  • 26. A.I.O.U. (Sahiwal Campus) Ch. # 2 11 2. First-in, First-Out: It is also called FIFO method. The working of this method is based upon the assumption that the various lots of materials purchased are used in the same order in which they were received. Further, materials from each lot are charged out at the price of their original purchase. Owing to this the method is sometimes called ‘original price method’. 3. Last-in, Last-Out: It is also called LIFO method. Under this method the materials issued take the cost of the last units received. This method is predicted upon the idea that materials to be charged to production should carry the most recently purchased price of materials of that kind. The requisitions are priced by working back from the most recent lot of materials received. In other words, the cost of most recent lot of materials purchased is applied to price requisitions until that lot is exhausted then the next recent lot’s price is used to price requisitions, and so on through successive consignments. This result in leaving the old items of materials in inventory. 4. Weighted Average: This method of costing materials issues is based upon the assumptions that materials issues from stock are composed of uniform quantities taken from each lot in stock at the date of issue. In this method average cost of materials purchased is charged to production rather than actual cost. In other words, it is assumed that where a material is purchased at different prices the cost of a unit of such material will be the average of the cost of all units purchased during a particular period. The costing method used in PIONEER PAKISTAN SEED LTD. for sailing or purchasing of inventories is FIFO (first in first out) method. ____________________
  • 27. 12 C H A P T E R 3 E X I S T I N G S Y S T E M
  • 28. A.I.O.U. (Sahiwal Campus) Ch. # 3 13 3.1 INTRODUCTION It is very important for the system designer to understand the system before its improvements and implementation. The system designer must know what is going on. After conducting the comprehensive study of the existing system, which is running manually, it is viewed that the management has some problems for the producer of adding and retrieving information about the items, which are purchased, issued to any distributors or others. The existing system is running manually as followed: 3.2 STOCK REGISTER Management of PIONEER PAKISTAN SEED LTD. has one stock register. An index is maintained in the beginning of the register. All entries about all items are made in stock register. Local production as well as commercial seed’s information is entered in the stock register. The stock register of PIONEER PAKISTAN SEED LTD. has following information. s Date s Name of Article s Particulars s Gate Pass No. s Received Quantity s Issued Quantity s Balance in K.G. s Document
  • 29. A.I.O.U. (Sahiwal Campus) Ch. # 3 14 3.3 PARENT SEED, CHEMICAL AND PACKING MATERIAL REGISTER When company contracts with the grower then it supplies parent seed and chemicals to growers. And after processing is completed then packing is made. The information about raw material is entered in this register, which has following information: s Date s Particulars s Gate Pass No. s Received Quantity s Issued Quantity s Balance in Stock s Document 3.4 RAW MATERIAL REGISTER When production is made locally, it is called local production. For this Raw material is purchased from the grower. All information about raw material is recorded in this register that has following information: s Sr. No. s Date s Grower s I.G.P.
  • 30. A.I.O.U. (Sahiwal Campus) Ch. # 3 15 s Truck No. s No. Of bags. s Gross weight s Truck weight s Bags weight s Net weight s Moisture s Hybrid s Bin no. 3.5 DOCUMENTS There are different types of documents involved in office at PIONEER PAKISTAN SEED LTD. for any transaction or input/output of material to any party or from anywhere. These documents are mentioned as under: s O.G.P. (Outward Gate Pass) s I.G.P. (Inward Gate Pass) s S.I.T. (Stock Inter Transfer) s D.N. (delivery Note) s S.S.T. (Seed Sample Trial) s D.C. (Delivery Challan) s G.R.N. (Goods Receiving Net)
  • 31. A.I.O.U. (Sahiwal Campus) Ch. # 3 16 3.6 LIMITATIONS IN EXISTING SYSTEM After studying the existing system that is currently functioning manually. Many drawbacks have found. Some of the major limitations are listed below: s The first and most vital fault in their system is they done all work manually, which make their whole system slow and inefficient. s Due to manual system there is no proper maintaining of records and order specifications if need in sometime future. s A lot of space is consumed to maintain the record of every transaction occur in the office of the PIONEER PAKISTAN SEED LTD. such as arrival of raw material trucks, or stock of finished seeds in the warehouses, or the sail of finished seeds to any customer. s It was very laborious job to make any report about daily production, weekly or monthly production or profit or loss at the end of the year or to know how much unfinished seed in the processing BINS. s If the Management of the PIONEER PAKISTAN SEED LTD. wants to know about the sales information at any particular date then there is a lot of time was consumed to prepare the desire report. Similar case with the Grower name and corresponding lot no. assign to him. And also much other limitation is observed and feels in the current system that is very time consuming system. __________________
  • 32. 17 C H A P T E R 4 P R O P O S E D S Y S T E M
  • 33. A.I.O.U. (Sahiwal Campus) Ch. # 4 18 4.1 INTRODUCTION The proposed system will be a computer-based system. All the input data will be properly organized and stored and will be processed for required output to provide timely information. Proposed system will perform all the activities described in the existing system and will provide necessary information with accuracy and efficiently. Proposed system is designed keeping in mind all the problems being faced in the present manual system. The scope of this system is to provide an automated flexible computerized inventory control system. The system will provide on-line information and will be capable of generating necessary reports. The scope of this system is to provide up to date, consistent and reliable information. 4.2 NEED FOR COMPUTERIZED PROCESSING The PIONEER PAKISTAN SEED LTD. has increased its business day by day. With the passage of time handling this large scale production and inventory control becomes increasingly difficult. To overcome these problems a computer-based system is needed. Computerization means the automation of a system, which was previously working manually and was slow. After computerization its becomes more sufficient and accurate. Computerization is a very sophisticated and technical job and is to be required a comprehensive study of the system. So that the system analyst can understand the whole system, its weakness and drawbacks. Computer information provided by a customer is highly reliable and accurate. Further it provides information with in seconds.
  • 34. A.I.O.U. (Sahiwal Campus) Ch. # 4 19 That is why commercial and scientific organization are switching over to computer based information system. 4.3 SOFTWARE PROCESS MODELS To develop software for any purpose we must follow some rules and strategies to solve the actual problem. A software process model provides these strategies and rules. If we see in the field of software engineering there are many process models for different types of problems to solve. Some of them are listed below: 1. The Linear Sequential Model: This process model is also called “classic life cycle” or the “waterfall model”, the linear sequential model suggests a systematic, sequential approach to software development that begins at the system level and progresses through analysis, design, coding, testing and maintenance. 2. The Prototyping Model: This model begins with requirements gathering. Developer and user meet and define the overall objectives for the software, identify whatever requirements are known, and outline areas where definition is mandatory. A “quick design” then occurs. The quick design leads to the construction of a Prototype. 3. The RAD Model: Rapid Application development is a linear sequential software development process model that emphasizes an extremely short development cycle. The RAD model is a “high-speed” adaptation of the linear sequential model in which rapid development is achieved by using a component-based construction approach. Use primarily for information system applications.
  • 35. A.I.O.U. (Sahiwal Campus) Ch. # 4 20 There are also some Evolutionary Software Process Models which includes The Incremental Model, The Spiral Model, The Component Assembly Model, The Concurrent Development Model, The Formal Methods Model and Fourth generation Techniques. A number of different Process Models for software development have been proposed, each exhibiting strengths and weaknesses, but all having a series of generic phases in common. 4.4 PHASES OF PROPOSED SYSTEM We choose linear sequential model for our software development because of this is neat, concise series of obvious steps, systematic sequential approach to software development. This model is consists on following phases: s Preliminary Investigation s Analysis s Design s Development s Implementation 4.4.1 PRELIMINARY INVESTIGATION This phase deals with the determination of problems. So going through this phase three simple questions were asked from officers.
  • 36. A.I.O.U. (Sahiwal Campus) Ch. # 4 21 1. The Impetus For Chance: In this step reasons are studies for which new system is needed or old system is being revised. 2. True Nature Of the Problem: In this step symptoms and the actual problems are differentiated. This will help us to identify the problem. 3. Scope Of The Problem: In this step the specific areas in which the problem lies, is defined. 4.4.2 ANALYSIS PHASE The analysis phase is primarily concerned with studying the existing system. After analysis the existing system we can then design and implement a better and user-friendly computerized system. 1. Understanding The System: In this step, the system before doing sometimes is understood to improve its functioning. In other words, we must find out what is going on. 2. User Involvement: The most successful projects or systems are in which user plays an active and vital role. The user’s knowledge of the system is needed for a new and a better system. 3. Data Gathering: The basic work in analysis phase is gathering and analyzing the data. Two common data gathering techniques are interviews and
  • 37. A.I.O.U. (Sahiwal Campus) Ch. # 4 22 questioners. The analyst also wants to collect the data about existing system. 4. Data Analysis: The collect data serve as foundation for the documentation of system analysis phase. 5. System Requirement: The purpose of gathering and analyzing the data is to establish the system requirements because the design of the new system will be based on these system requirements. 4.4.3 DESIGN PHASE Design phase is the most important phase in the system. This phase is the most time consuming part of the project. The design phase comes after the comprehensive study of the existing system. If the analyst will not spend adequate time in designing, he will not be able to fulfill the requirements of the users. The design phase mostly consists of the following steps: 1. Preliminary Design: It is particularly important first to design how the system will look and respond to user before designing the software structure. The most critical and creative aspect of development is design the user interface design determines how the system will look for the user from outside while the preliminary design of software structure determines how the system will provide the desired function to the users.
  • 38. A.I.O.U. (Sahiwal Campus) Ch. # 4 23 2. Detail Design: In the detail design the actual contents of each module in the preliminary design are planned. Designing each module is much like writing a short program. Here is a partial list of those design activities, which are used in design phase. s Design of Input s Design of Output s Design system flow chart This list is not a comprehensive and not all lists will be used for all systems. This large and detail document, usually referred to as the detail design specification, will be an outgrowth of the preliminary design document. A very important issue in building software is deciding what programming language will be used. Often the very success or failure of the system can depend on the choice of language. 4.4.4 DEVELOPMENT PHASE Development of the proposed system is conducted as: s Development of the computer programs, i.e. Coding s Testing of the computer programs with dummy date s Testing of computer programs with real data. 4.4.5 IMPLEMENTATION PHASE Implementation is the process of replacing the old system with the new one. The key point in implementation is that users are now going to switch to the new system.
  • 39. A.I.O.U. (Sahiwal Campus) Ch. # 4 24 For smooth transition, groundwork must be laid carefully. Criteria must be evaluated to establish that the system is actually ready to be converted. Conversion to the system must be planned carefully. Data files must be prepared to be used by the new system. Personnel who will use or interact with the system must be trained. All conversion related activities must be a trying one for those involved. When the new system has been converted, some neutral party usually evaluates it. The evaluator is probably another analyst, either from the organization or from an independent firm. 4.5 OBJECTIVES OF THE PROPOSED SYSTEM The most important factor in developing a computerized system for the user is that it should meet as closely as possible the objectives defined by the user along with the system analyst. The analyst is the person who is capable and fully aware of the computer technology and the user has the knowledge of the organization in which he is working. Both persons with their knowledge and CO-operation define the objectives of the proposed system. These objectives must be able to satisfy the requirements of the users. In addition, the relative importance of each objective should be established. Keeping in mind the drawbacks of the existing system, the following are the major objectives, which have been chosen before designing the proposed system. 1. EFFICIENCY: Efficiency is the degree to which we minimize utilization of resources for achieving an object. The proposed system is faster and efficient than the existing manual system.
  • 40. A.I.O.U. (Sahiwal Campus) Ch. # 4 25 2. USER FRIENDLY: Authorized staff should communicate with the system through simple conversions. No specialized computer staff must be required. This makes the system user friendly. 3. TIME FACTOR: Time is an important factor for decision-making. The higher authorities require quick response to their queries because decisions are based on up to date information. The required reports can be produced quickly. 4. DATA SECURITY: It refers to protection from any accidental loss or destruction of data. The data required for decision-making is very important, sensitive and valuable. Therefor reliability of the system may be secured by giving a regular and guaranteed service to the user i.e. a password is given to the user and by using that password he can initialize the files. 5. ACCEPTABILITY: The system should be acceptable to the organization. It should satisfy the previous and new objectives in a better way. 6. ECONOMY: The proposed system should be cost beneficial as compared to the existing system. 7. PRODUCTIVITY: A significant reduction in clerical staff will lead to improve staff productivity. 8. ACCURACY: The proposed system will provide accurate information, needed for decision-making and error free results. It will ensure efficient and accurate record keeping.
  • 41. A.I.O.U. (Sahiwal Campus) Ch. # 4 26 9. RELIABILITY: The new system is more reliable than the manual one due to its accuracy and security. So that timely decision-making may be possible. 10. PERFORMANCE: The proposed system should reduce the time and efforts required retrieving information. 11. USABILITY: The goal of the proposed system is to keeping every thing nice and simple for all users. Since the users of the proposed system will be the staff of the finance and account’s system section so that application should be as self documented as possible, and the user should not need to memories lot to use it comfortably. 12. COMPREHENSIVE DATA BASE: The proposed system has comprehensive database in which insertion, deletion, modification, retrieval about records and facilities of various reports are available. 13. MINIMIZE THE REDUNDANCY: The proposed system has no redundancy. This means that the files are designed in such a way that minimum data is duplicated in the files. 14. EASE OF OPERATION: Graphical user interface (GUI) and menu driven facility is provided in the system. The use of various hot keys and use of mouse or any pointing device makes very easier for user to operate the system without any complications. Screens guide the operator through the system to perform the required task. 15. MAINTAINABILITY: The system should be easily modified and expanded to meet future user needs.
  • 42. A.I.O.U. (Sahiwal Campus) Ch. # 4 27 16. ROBUSTNESS: The proposed system should be correctly and sensibly handles all exceptional data 4.6 PROPOSED SYSTEM REQUIREMENTS The main objectives of the proposed computerized information system are to make an automated new computerized system that will solve the aforesaid problems. The system will enable the PIONEER ADMINISTRATION to control and manage the inventory information in an ordered and better way. Change of the existing system to a new system whether manual or computerized, needs some requirements on which new system will be based. As the requirements are the base for the new system, therefore these should be clear and well defined. For this requirement analysis, system study is very much essential and user is main factor in fixing system requirements. In our system, after studying the existing manual system. Defining the problems, specifying system scope and objectives, analyzing gathered data and discussing various problems relating to inventory control system, production officer, store incharg and other staff, system requirements were identified and analyzed. The requirements of our system are: s It must provide some on-line information, as soft copy reports on the monitor screen s Generate some printed reports as hard copy on paper The system is required to provide the output in the form of reports
  • 43. A.I.O.U. (Sahiwal Campus) Ch. # 4 28 4.6.1 REPORTS 1. Lot wise report about raw material to finished seed and stock material. 2. Bags size wise report of the finished seeds in the warehouse. 3. Hybrid wise report of the finished seeds in the warehouse. 4. Year wise report of the sale of the finished seeds 5. Monthly report of the stock. 4.6.2 INPUT SCREENS The screens for the data entry will be similar to that of their paper formats of “INVENTORY CONTROL SYSTEM”. 4.6.3 HUMAN INTERFACE The proposed system of “INVENTORY CONTROL SYSTEM” will have a very user-friendly graphical user interface. It will menu driven by messages help at different levels and various push buttons on the forms which can be easily driven by clicking mouse or any other pointing device also many hot keys makes much easier for the user to operate the system. ___________________
  • 44. 29 C H A P T E R 5 S Y S T E M D E S I G N
  • 45. A.I.O.U. (Sahiwal Campus) Ch. # 5 30 5.1 INTRODUCTION System design is the most important of all the phase in the system life cycle. After studying the existing system, analyst should plan and design new system that meets the needs of the users. System design presents specific information for the designing of the output, input, processing, life structure and database. Economy, reliability, responsiveness and modularity should be considered in design. This chapter deals with designing of the system, which comprises of designing output forms, input forms, codes and files. 5.2 DESIGN APPROACHES Design methods, strategies and methodologies are tools for the designer. Since designing a new system is a creative function land as such very difficult to define and describe in a detail. It follows that a good designer may employee a design standard but will constantly be reviewing its effectiveness and looking for improvements. The common design methods are: a) TOP-DOWN DESIGN b) BOTTOM-UP DESIGN c) CRITICAL-FIRST DESIGN d) STRUCTURED DESIGN
  • 46. A.I.O.U. (Sahiwal Campus) Ch. # 5 31 5.2.1 TOP-DOWN DESIGN Top-down design is based around the idea that there are various levels of decision, which need to be made, varying from those concerning the goals of project and the system boundary down to detail level of allocating data to disks and layout of printed reports. Progressively analyzing higher-level function into more detail is refereed to as functional decomposition; stepwise refinement refers to gradually increase the precision of a statement. These may both be considered as specific varieties of top-down development method. 5.2.2 BOTTOM-UP DESIGN Bottom-up design starts with basics units of the system, and from these the design builds up to higher level. A system created in this way could start with the design of input document and output outs, eventually arriving at the point where a management information system has been built. This method has a longer history than the others and some author claim it has better success rate than top-down design. Bottom-up design also tends to produce system with complex interfaces between modules because were not designed to be interfaced in the first phase. 5.2.3 CRITICAL-FIRST DESIGN Critical-first design is a method system design that emphasizes the identification of the most critical components in the system. If the potential problem areas can be identified at an early stage it is possible to try to solve these before going onto further design work. It is very difficult to know for certain at the beginning of the project what
  • 47. A.I.O.U. (Sahiwal Campus) Ch. # 5 32 constitutes the biggest potential problem but tackling the most critical components first is a very practical way of commencing system design. This method could be used to design a whole system by making all parts of design in terms of difficulty and working down the list, although this is not frequently done. 5.2.4 STRUCTURED DESIGN This designing approach is similar to Top-Down Approach. This approach provides a variety of new documentation techniques, but also bring the project emphases upon logical design prior to physical implementation considerations. This follows on from the freedom from hardware constraints, which means that designers can now decide what is wanted prior to looking at how this will be achieved. 5.3 ADOPTED APPROACH Since structured approach or structured methodology is viewed as top-down approach in addition to new documentation techniques, we select this approach for designing new system. The structured methodology is based on building a logical model of the system, i.e. identifying the major components of the system, decomposing them into their lower level components and iterating until the desired level of data is achieved. Top-down design methods after result in stepwise refinement. Starting from abstract design, in each step the design is refined to a more concrete level, until we reach a level where no more refinement is needed and the design can be implemented directly. Pure top-down or bottom-up approaches are often not practical. For bottom-up approaches to be successful. We must have a good notion of the top and in top-
  • 48. A.I.O.U. (Sahiwal Campus) Ch. # 5 33 down approach one must have some idea about the feasibility of the components specified during design. 5.4 STRUCTURED TOOLS Structured design approach is realized through its rich set of analysis and design tools, each of which serves a particular purpose in developing the specification, like: 5.4.1 DATA FLOW DIAGRAMS Data flow diagram represents a significant change from which in the typical way, system is viewed. The use of DFDs provided a complete, clean and global understanding of the system than did in the traditional approach. These diagrams illustrate the flow of data through a system and the work or processing performed by that system. There are only four symbols that can appear on a DFD: the Process, the internal or external Entity, the Data Store and the Data Flow. With these symbols we can model processing for any system. These are of three types: 1. Context DFD: Here, the emphasis is on the relationship between the system and its environment. No information about the structure of the system itself is pictured in a context DFD. 2. Diagram 0: A Diagram 0 (diagram zero) shows the system itself. It pictures the major processes along with the external entities, data stores, and data flow
  • 49. A.I.O.U. (Sahiwal Campus) Ch. # 5 34 3. Detailed DFD: These are explosions of higher-level representations and are detailed pictures of major processes or subsystems. They are likely to be used by designers in their own work rather than for presentations to users or managers. 5.4.2 DATA DICTIONARY A data dictionary is a repository of information that describes the logical structure of database. It has entries for record types, data item types, and data aggregates, along with other information. The data dictionary contains metedata, data about the data in the database. 5.5 DESIGN SPECIFICATION System designing consists of the following three steps: a) Output Designing. b) Input Designing. c) File Designing. 5.5.1 OUTPUT DESIGNING Output designing from the system can be in the form of queries and reports. Some features are to be considered while designing output like:
  • 50. A.I.O.U. (Sahiwal Campus) Ch. # 5 35 s What output information do users need? s What format and volume it should have? s Output should be good looking. s They should be easy to understand. s Unnecessary information should be avoided. The new output reports of Automated Inventory Control System are like: s Lot wise report about raw material to finished seed and stock material. s Bags size wise report of the finished seeds in the warehouse. s Hybrid wise report of the finished seeds in the warehouse. s Year wise report of the sale of the finished seeds s Monthly report of the stock. 5.5.2 INPUT DESIGNING Designing of input mainly involves the form designing. Since input always plays very important role in data entry phase, so these forms have been very carefully and precisely designed. These are s Finished seeds form s Unfinished seeds form s Item form s Warehouse form s Warehouse item form s Bag size form
  • 51. A.I.O.U. (Sahiwal Campus) Ch. # 5 36 5.5.3 FILE DESIGNING File designing is of fundamental significance in any efficient computerized system. Files are designed such that queries and reports are produced in least amount of time: There are two steps involve while designing the files: 1. First Step: In the files we have designed is the selection of candidate key, which UNIQUELY identifies the records in the data structure. 2. Second Step: Normalization is done in the second step of design. Normalization techniques are used to avoid data redundancy and inconsistency in the files. It is the method of proving that what we have done would have been correct, i.e. there is no duplication of any record in the files. 5.6 DESCRIPTION OF FILES As a result of above-mentioned procedure the proposed system uses number of databases files. Database is a collection of related data about an enterprise with multiple uses. A brief description of the files designed for the proposed system is as follows: 1. ITEM FILE Table Name: ITEM Primary Key: ICODE
  • 52. A.I.O.U. (Sahiwal Campus) Ch. # 5 37 RECORD LAYOUT Field-Name Description Data Type Width ICODE ITEM CODE Character 5 INAME ITEM NAME Character 20 FINISHED FINISHED SEEDS Boolean 1 This file contains information about the items involved in inventory control system of PIONEER PAKISTAN SEED LIMITED. 2. WAREHOUSE FILE Table Name: WHOUSE Primary Key: WCODE RECORD LAYOUT Field-Name Description Data Type Width WCODE WAREHOUSE CODE Character 5 WNAME WAREHOUSE NAME Character 20 This file contains information about warehouses of PIONEER PAKISTAN SEED LIMITED. 3. PARTY FILE Table Name: PARTY Primary Key: PCODE
  • 53. A.I.O.U. (Sahiwal Campus) Ch. # 5 38 RECORD LAYOUT Field-Name Description Data Type Width PCODE PARTY CODE Character 5 PNAME PARTY NAME Character 30 ADDRESS ADDRESS OF PARTY Character 50 CITY CITY OF PARTY Character 20 PHONE PHONE OF PARTY Character 20 EMAIL EMAIL OF PARTY Character 20 This file contains information about the parties or distributors of PIONEER PAKISTAN SEED LIMITED. 4. IN-COMING FINISHED SEEDS FILE Table Name: INCFS Primary Key: VNO, ICODE RECORD LAYOUT Field-Name Description Data Type Width VNO VOUCHER NUMBER Numeric 10 VDATE VOUCHER DATE Date 8 ICODE ITEM CODE Character 5 INAME ITEM NAME Character 20 QTY QUANTITY Numeric 2
  • 54. A.I.O.U. (Sahiwal Campus) Ch. # 5 39 PCODE PARTY CODE Character 5 IGP INWARD GATE PASS Character 5 DOCNO DOCUMENT NUMBER Character 10 BAGSIZE BAGS SIZES Character 2 TOTAL TOTAL WEAGHT Numeric 2 This file contains information about the total finished seed come from USA. 5. IN-COMING UNFINISHED SEEDS FILE Table Name: INCUS Primary Key: VNO, ICODE RECORD LAYOUT Field-Name Description Data Type Width VNO VOUCHER NUMBER Numeric 10 VDATE VOUCHER DATE Date 8 ICODE ITEM CODE Character 5 INAME ITEM NAME Character 20 PNAME PARTY NAME Character 30 PCODE PARTY CODE Character 5 IGP INWARD GATE PASS Character 5 DOCNO DOCUMENT NUMBER Character 10 TOTAL TOTAL WEAGHT Numeric 2
  • 55. A.I.O.U. (Sahiwal Campus) Ch. # 5 40 This file contains information about the total unfinished seed come from the growers. 6. OUTGOING FINISHED FILE Table Name: OGFS Primary Key: VNO, ICODE RECORD LAYOUT Field-Name Description Data Type Width VNO VOUCHER NUMBER Numeric 10 VDATE VOUCHER DATE Date 8 ICODE ITEM CODE Character 5 INAME ITEM NAME Character 20 QTY QUANTITY Numeric 2 BAGSIZE BAGS SIZES Character 2 PCODE PARTY CODE Character 5 PNAME PARTY NAME Character 30 OGP OUTWARD GATE PASS Character 5 DOCNO DOCUMENT NUMBER Character 10 TOTAL TOTAL QUANTITY Numeric 2 This file contains information about the finished seed sail to any party or distributor.
  • 56. A.I.O.U. (Sahiwal Campus) Ch. # 5 41 7. STOCK POSITION FILE Table Name: STOCKP Primary Key: VNO, ICODE, and WCODE RECORD LAYOUT Field-Name Description Data Type Width VNO VOUCHER NUMBER Numeric 2 VDATE VOUCHER DATE Date 8 WCODE WHARE HOUSE CODE Character 5 WNAME WAREHOUSE NAME Character 20 ICODE ITEM CODE Character 5 INAME ITEM NAME Character 20 QTY QUANTITY Numeric 2 This file contains information about which item present in which warehouse 8. BAGS SIZES FILE Table Name: BAGSIZE Primary Key: VNO, ICODE, and BAGSIZE
  • 57. A.I.O.U. (Sahiwal Campus) Ch. # 5 42 RECORD LAYOUT Field-Name Description Data Type Width VNO VOUCHER NUMBER Numeric 2 VDATE VOUCHER DATE Date 8 BAGSIZE BAGS SIZES Character 2 ICODE ITEM CODE Character 5 INAME ITEM NAME Character 20 QTY QUANTITY Numeric 2 SEASON SEASON OF PROCESS Boolean 1 YEAR YEAR OF PACKING Numeric 2 This file contains information about which item pack in which size of the bag. 9. BINS NO FILE Table Name: BINNO Primary Key: VNO, ICODE, and BINNO RECORD LAYOUT Field-Name Description Data Type Width VNO VOUCHER NUMBER Numeric 2 VDATE VOUCHER DATE Date 8 BINNO BIN NUMBERS Character 5 ICODE ITEM CODE Character 5
  • 58. A.I.O.U. (Sahiwal Campus) Ch. # 5 43 INAME ITEM NAME Character 20 QTY QUANTITY Numeric 2 SEASON SEASON OF PROCESS Boolean 1 YEAR YEAR OF PACKING Numeric 2 This file contains information about which item kept in which bin number. ___________________
  • 59. 44 C H A P T E R 6 S O F T W A R E D E V E L O P M E N T
  • 60. A.I.O.U. (Sahiwal Campus) Ch. # 6 45 6.1 INTRODUCTION The conversion of manual processing into computerized processing requires the development of computer programs for the proposed system. Software development is an important phase. Special care is to be taken because it may cause heavy loss even a situation may arise that redevelopment of the whole system, because it involves the realization of the whole system. Computer programs are written and arrangements are made to train the personnel. 6.2 WHY COMPUTER BASED SYSTEM Many systems are being computerized now days. The reason for computerization is that the work is done very quickly and accurately. The results produced by computer are in a micro or in a nano seconds. So, efficiency and accuracy are the main reasons, for which, computer is considered to be one of those fields in which extensive research is being done today. For this reason, PIONEER PAKISTAN SEED LTD. wants to computerize INVENTORY CONTROL SYSTEM, so that information may be retrieved and manipulated, whenever required, quickly and easily. 6.3 SELECTION OF LANGUAGE The main purpose of this phase is to develop the software that gives requirements of the users. A database can solve all the problems of new proposed system so that a database is a collection of files linked with each other with some common link fields. The link fields then manipulate the files, which includes retrieval, deletion, addition and
  • 61. A.I.O.U. (Sahiwal Campus) Ch. # 6 46 updating of the record. This system can be employed for entering data, retrieving of this data and updating a part of data. There are many languages that are used to solve the problems of users. Each language has its own nature and different applications. So the selection of the language is very important for the development of the software. Also the language depends upon hardware used. Keeping in mind all these things, the choice of programming language is important and definitely depends upon the problem on hand. As the new proposed system require the handling of data files and indexed files there are following languages that may be suitable for INVENTORY CONTROL SYSTEM. The languages are given: 1. COBOL 2. Clipper 3. Delphi 4. Informics 5. Oracle 6. Visual Basic 7. Visual FoxPro We have selected Visual Basic for the development of the new proposed system because: 1. Its processing is very fast. 2. It is more efficient than other languages. 3. Visual Basic has its own database. 4. It provides the facility of form designing and then linking with the database.
  • 62. A.I.O.U. (Sahiwal Campus) Ch. # 6 47 5. The more constructs are available in Visual Basic. The software developed in Visual Basic can be easily extended by the end-user to fit his future needs. For example, Visual Basic allows extensibility in two ways: s It allows the use of ActiveX controls, Allowing for the addition of functionality that the original designers did not include in the program. s Visual Basic has an extensibility model that allows for the creation of Add-ins and Wizards to perform tasks on code and forms. This allows developers to use the program to create helper programs for themselves and prototypes for others. 6.4 SOFTWARE DEVELOPMENT The salient feature in the development of an efficient computerized system is software development. The purpose of software development is to transfer the complete proposed system into the executable computer programs. Programming is not simply science but there is a touch of art involved in it. There is however a number of clearly identifiable steps that are always involved in the programming phase and those provide a convenient framework. These steps are: 1. Define the problem. 2. Plane a solution. 3. Maintain the program.
  • 63. A.I.O.U. (Sahiwal Campus) Ch. # 6 48 Thus the purpose of the programming task is to code, debug and test each program before and after integrating them into the modules. 6.5 METHODS OF DEVELOPMENT PHASE The development phase of the proposed system includes the following methods: s Coding. s Compilation of program. s Testing of program. 6.5.1 CODING Data coding is common practice. There are many ways to plan a code. Subject is very tedious and quite complex. The group classification codes have been used for the system, because codes can be easily generated by these methods. 6.5.2 COMPILING When all the coding of programs has been completed, then the programs are compiled using the available compiler by the system on which the development has been done.
  • 64. A.I.O.U. (Sahiwal Campus) Ch. # 6 49 6.5.3 TESTING Even if the system is developed using correct algorithms, its reliability remains doubtful. The validation of the result is very important to make the system acceptable. Before making the system operational, it is necessary to check that the new system is comprehensive with in its limits and produced output result accurately. Programs and subroutines were confirmed for the desired results. Major consideration was laid on procedures. All subprograms were tested and combined results were compared with the manual results. All possible efforts were made to make sure that system produced selectable results under any condition. During this process all programming bugs and minor design faults were removed. Necessary changes were made in design and structure; special care was taken not to change the actual logic of the system. The basic concept of testing the system is to confirm that the developed system fulfills all the objectives and requirements of the management and proposed system provide accurate information. Before the implementation of the system, using the following methods first tests the system: 1. Unit Testing: Testing the single module or program to check that all programs are running well. 2. System Testing: Testing of the system linking all the files and environment data to check that all the programs are working correctly. 3. Volume Testing: Testing the system using the large number of data to check the efficiency of the system required by the organization.
  • 65. A.I.O.U. (Sahiwal Campus) Ch. # 6 50 6.6 SYSTEM EVALUATION The new system should be evaluated to determine whether the stated objectives were met. The evaluation is necessary to keep the system updated of business and economic environment, as well as technological changes in the electronic data processing. System evaluation is also important because it judges the compatibility of developed system with the existing system and checks the validity under organizational constraints. Generally, a system, which produced information that, possess the properties of accuracy, timeliness, completeness is declared to successful. However comparison are often made in one or more of these properties for economic reasons. The user of the new system is in the best position to determine, on an ongoing basis, the effectiveness of the system. The system developed for PIONEER PAKISTAN SEED LTD. is directed to meet their problems. Accuracy is the ratio of correct information to the total volume of information produced over a period. The accuracy level depends on the type of information produced. Validation checks have been made to ensure the accuracy of the system. 6.6.1 TIMELINESS It is another important characteristic of the new system. This was the major problem faced by management of INVENTORY CONTROL SYSTEM. If some body needs some information, he had to wait for few days with the result that by the time the information might not be of any value. New system provides accurate and instantaneous response to its users.
  • 66. A.I.O.U. (Sahiwal Campus) Ch. # 6 51 6.6.2 CONCISENESS Concise information that summarizes the relevant data and point out the area of exception to the normal and planed activities is what the management and the user need. 6.6.3 EFFICIENCY The new system is thus efficient as it contains all the three characteristics listed above. It is user friendly as well. 6.7 HARDWARE CONSIDERATION The minimum computer hardware requirements to ensure that the proposed system will run properly is listed below: s Computer on the Microsoft Hardware Compatibility List. s Pentium 100 MHz. s 1 GB hard disk. s 16 MB RAM. s 3.5-inch 1.44-MB floppies drive. s Super VGA video adapter. s Super VGA monitor. s An 80-column printer. s Microsoft mouse or equivalent pointing device. s U.P.S. (For un-interruption of power supply)
  • 67. A.I.O.U. (Sahiwal Campus) Ch. # 6 52 6.8 SOFTWARE CONSIDERATION To execute properly the source program, which is developed in Visual Basic, the following software must install in above-mentioned hardware: s Visual Basic 6.0 Enterprise Edition. s Microsoft Windows 98 or Microsoft Windows NT server 4.0 or Windows NT workstation 4.0 s Anti Virus Guard and Toolkit ______________________
  • 68. 53 C H A P T E R 7 S O F T W A R E I M P L E M E N T A T I O N
  • 69. A.I.O.U. (Sahiwal Campus) Ch. # 7 54 7.1 INTRODUCTION Implementation means the process of transforming of present manual system into a new computerized one. There are several options are available for conversion. In data processing, conversion is defined as placing the system into operation and the process of changes: s From one data processing to another. s From one form of representing to another. Implementation of a project involved activities are planning and scheduling of the implementation process, organizational planing and personnel administration, final system design and testing, establishment of standard of performance and control procedures, and conversion from old to new system. The most considerable process concerning implementation phase is the conversion plane that discussed in detail. 7.2 CONVERSION Conversion refers to those activities necessary to transfer operations from old system to new system. Conversion to the new system involves several activities like equipment conversion, file conversion, and procedure conversion. There are several conversion option available that will reduce the risk of mishap in the new system. There are four basic patterns when implementing the new system. 1. Direct conversion. 2. Gradual conversion. 3. Parallel conversion. 4. Pilot conversion
  • 70. A.I.O.U. (Sahiwal Campus) Ch. # 7 55 The main purpose in conduction comparative study is to argue for one method of conversion over the other by studying keenly advantages and limitation of either conversion method. An implementation phase is rigidly based upon this comparative study. 7.2.1 DIRECT CONVERSION Direct conversion method stresses upon the introduction of a completely new system without any reference to the existing system. The old system is abandoned and the new system becomes completely operational. This method is suitable when the new system is entirely different from the existing one. This conversion method is usually the least expensive and most risky of all the conversion methods. 7.2.2 GRADUAL CONVERSION Gradual method allows one program at a time to replace an activity of the existing system. Gradually, the present system is overthrown by the newly designed system. Small-scale operations are conducted first to confirm that this changeover will be successful. When the new system is completely tested, the old system is not used any more and the new system is completely taken over. This process is continues until the new system is fully implemented. Both the risk and cost of conversion are medium in this method. 7.2.3 PARALLEL CONVERSION In parallel conversion method, both old and the new system are adopted simultaneously. Data is processed or moved through systems concurrently and only when the new system is checked, the operation of
  • 71. A.I.O.U. (Sahiwal Campus) Ch. # 7 56 the old system is abandoned. The safest approach to conversion is to run both new and old systems at the same time, until it is satisfactorily established that the new system is producing reliable results. It provides the old system as a backup in case the new system is failed. This conversion method is most expensive and less risky than all other conversion methods. 7.2.4 PILOT CONVERSION In pilot conversion method, new system is implemented in parts, the system is implemented in the while organization. Pilot conversion method therefor, is a combination of the direct conversion and parallel conversion. Both the cost and risk in this conversion method are medium. 7.3 PROPOSED CONVERSION METHOD The most feasible conversion method that suits the organization is the parallel conversion. It is selected because it provides opportunity to compare the results of the existing system with those of the developed system. Another advantage of this approach is that the risk of failure is covered. Although this implementation approach is more expensive and increases additional workload, the old system will be safe and the procedure will be followed for some time until it is confirmed that the newly designed system is working perfectly. 7.4 TRAINING OF PERSONNEL Software development is quit user friendly, so that any person can obtain the require information efficiently from the database, after only
  • 72. A.I.O.U. (Sahiwal Campus) Ch. # 7 57 few hours of training and practice of the new system. However, a comprehensive lecture to familiarize the staff with Windows 98 and Visual Basic 6.0 will also help in better understanding of the system. ______________________
  • 73. 58 C H A P T E R 8 C O D I N G A N D D A T A S C R E E N S
  • 74. A.I.O.U. (Sahiwal Campus) Ch. # 8 59 8.1 MAIN MENU Private Sub Command1_Click() frmstkinuf.Show vbModal, mainmenu End Sub Private Sub Command2_Click() frmstkin.Show vbModal, mainmenu End Sub Private Sub Command3_Click() frmstkout.Show vbModal, mainmenu End Sub Private Sub Command5_Click() Dim A As Integer A = MsgBox("Are you sure you want to quit ? ", vbYesNo + vbQuestion, "Exit...?")
  • 75. A.I.O.U. (Sahiwal Campus) Ch. # 8 60 If A = 6 Then End End If End Sub Private Sub Command6_Click() FRMTOTREP.Show vbModal, mainmenu End Sub Private Sub Command7_Click() FRMTOTREP1.Show vbModal, mainmenu End Sub Private Sub Form_Load() frmSplash.Show vbModal, mainmenu End Sub Private Sub MIBAG_Click() frmbagsize.Show vbModal, mainmenu End Sub Private Sub mi1_Click() FRMTOTREP.Show vbModal, mainmenu End Sub Private Sub mi2_Click() FRMTOTREP1.Show vbModal, mainmenu End Sub Private Sub mibags_Click() frmbagsize.Show vbModal, mainmenu End Sub Private Sub mibinno_Click() frmbins.Show vbModal, mainmenu End Sub Private Sub midevelopers_Click() credits.Show vbModal, mainmenu End Sub Private Sub miitems_Click()
  • 76. A.I.O.U. (Sahiwal Campus) Ch. # 8 61 items.Show vbModal, mainmenu End Sub Private Sub miparty_Click() frmparty.Show vbModal, mainmenu End Sub Private Sub mipioneer_Click() frmAbout.Show vbModal, mainmenu End Sub Private Sub misfs_Click() frmstkin.Show vbModal, mainmenu End Sub Private Sub mistockp_Click() frmstkpos.Show vbModal, mainmenu End Sub Private Sub miunfinish_Click() frmstkout.Show vbModal, mainmenu End Sub Private Sub miuser_Click() userguide.Show vbModal, mainmenu End Sub Private Sub miwhare_Click() whouses.Show vbModal, mainmenu End Sub Private Sub msiufd_Click() frmstkinuf.Show vbModal, mainmenu End Sub Private Sub Timer1_Timer() If Image1.BorderStyle = 1 Then Image1.BorderStyle = 0 Else Image1.BorderStyle = 1 End If
  • 77. A.I.O.U. (Sahiwal Campus) Ch. # 8 62 End Sub Private Sub Timer2_Timer() Label9.Caption = Time End Sub Private Sub Timer3_Timer() Label11.Caption = Date End Sub 8.2 IN-COMING UNFINISHED SEEDS Dim isfin As Boolean Dim isedit As Boolean Private Sub cmddelete_Click() dbitem.Refresh With dbitem.Recordset While .EOF = False
  • 78. A.I.O.U. (Sahiwal Campus) Ch. # 8 63 If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = False Then .Edit If Not IsNull(.Fields("qty")) Then .Fields("QTY") = .Fields("QTY").Value - Val(txtqty.Text) End If .Update ab = True dbstkin.Refresh If ab = True Then With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("ICODE") = Trim(txticode.Text) Then .Delete .MoveNext Exit Sub Else .MoveNext End If Wend End With End If Else .MoveNext End If Wend End With dbstkin.Refresh dbitem.Refresh End Sub Private Sub cmdexit_Click() Unload Me End Sub
  • 79. A.I.O.U. (Sahiwal Campus) Ch. # 8 64 Private Sub cmdsave_Click() Dim ab As Boolean ab = False txticode.SetFocus With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(txticode.Text) Then .Edit .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("ICODE") = txticode.Text .Fields("INAME") = txtiname.Text .Fields("pcode") = txtpcode.Text .Fields("docno") = txtdoc.Text .Fields("igp") = txtigp.Text .Fields("qty") = txtqty.Text .Update ab = True With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = False Then .Edit .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) If Not IsNull(.Fields("qty")) Then .Fields("QTY") = Val(txtqty.Text) + .Fields("QTY").Value Else .Fields("qty") = txtqty.Text End If .Update ab = True Exit Sub
  • 80. A.I.O.U. (Sahiwal Campus) Ch. # 8 65 Else .MoveNext End If Wend End With dbitem.Refresh dbstkin.Refresh Exit Sub Else .MoveNext End If Wend If ab = False Then .AddNew .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("ICODE") = txticode.Text .Fields("INAME") = txtiname.Text .Fields("pcode") = txtpcode.Text .Fields("docno") = txtdoc.Text .Fields("igp") = txtigp.Text .Fields("qty") = txtqty.Text .Update ab = True With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = False Then .Edit .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) If Not IsNull(.Fields("qty")) Then .Fields("QTY") = Val(txtqty.Text) + .Fields("QTY").Value
  • 81. A.I.O.U. (Sahiwal Campus) Ch. # 8 66 Else .Fields("qty") = txtqty.Text End If .Update ab = True Exit Sub Else .MoveNext End If Wend End With dbitem.Refresh dbstkin.Refresh End If End With dbstkin.Refresh dbitem.Refresh ab = False End Sub Private Sub DBGrid1_DblClick() txtvno.Text = DBGrid1.Columns("VNO") txtvdate.Text = DBGrid1.Columns("VDATE") txtpcode.Text = DBGrid1.Columns("PCODE") txticode.Text = DBGrid1.Columns("ICODE") txtqty.Text = DBGrid1.Columns("QTY") txtigp.Text = DBGrid1.Columns("IGP") txtdoc.Text = DBGrid1.Columns("DOCNO") End Sub Private Sub DBGrid3_DblClick() txtpcode.Text = DBGrid3.Columns(0) End Sub Private Sub Form_Load()
  • 82. A.I.O.U. (Sahiwal Campus) Ch. # 8 67 isedit = False txtvdate = Date isfin = True dbitem.RecordSource = "SELECT * FROM ITEM WHERE FINISHED = 0" End Sub Private Sub txtbs_LostFocus() txttotal.Text = Val(txtqty.Text) * Val(txtbs.Text) txttotal.Text = txttotal.Text & " " & "kg" End Sub Private Sub txticode_GotFocus() DBGrid4.Visible = True End Sub Private Sub txticode_LostFocus() Dim isf, isf1, isexist As Boolean isf = False isedit = False isexist = False isf1 = False DBGrid4.Visible = False dbitem.Refresh dbstkin.Refresh With dbstkin.Recordset While dbstkin.Recordset.EOF = False If .Fields("vno") = Val(txtvno) And .Fields("icode") = Trim(txticode.Text) Then txtiname.Text = .Fields("iname") txtqty.Text = .Fields("qty") isf1 = True isf = True isedit = True Exit Sub Else .MoveNext
  • 83. A.I.O.U. (Sahiwal Campus) Ch. # 8 68 End If Wend End With dbitem.Refresh If isf1 = False Then While dbitem.Recordset.EOF = False If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) Then isf = True End If If dbitem. Recordset.Fields("icode") = Trim(txticode.Text) And dbitem.Recordset.Fields("finished") = False Then txtiname.Text = dbitem.Recordset.Fields("INAME") isexist = True Exit Sub Else dbitem.Recordset.MoveNext End If Wend End If If isf = False Then resp = MsgBox("Record does not exist", vbOKOnly, "Alert") txticode.Text = " " txticode.SetFocus End If End Sub Private Sub txtpcode_GotFocus() DBGrid3.Visible = True End Sub Private Sub txtpcode_LostFocus() Dim ISFound As Boolean ISFound = False dbparty.Refresh
  • 84. A.I.O.U. (Sahiwal Campus) Ch. # 8 69 While dbparty.Recordset.EOF = False If dbparty.Recordset.Fields("PCODE") = Trim(txtpcode.Text) Then txtpname.Text = dbparty.Recordset.Fields("PNAME") DBGrid3.Visible = False ISFound = True Exit Sub Else dbparty.Recordset.MoveNext End If Wend If ISFound = False Then resp = MsgBox("This party code and name does not exist", vbOKOnly, "Alert") txtpcode.SetFocus DBGrid3.Visible = True End If End Sub Private Sub txtvno_LostFocus() dbstkin.Refresh With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text Then txtvdate.Text = .Fields("vdate") txtigp.Text = .Fields("igp") txtdoc.Text = .Fields("docno") txtpcode.Text = .Fields("pcode") isedit = True Exit Sub Else MoveNext End If Wend End With: End Sub
  • 85. A.I.O.U. (Sahiwal Campus) Ch. # 8 70 8.3 IN-COMING FINISHED SEEDS Dim isfin As Boolean Dim isedit As Boolean Private Sub cmddelete_Click() dbitem.Refresh With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then .Edit If Not IsNull(.Fields("qty")) Then .Fields("QTY") = .Fields("QTY").Value - Val(txttotal.Text) End If .Update ab = True dbstkin.Refresh With dbstkin.Recordset While .EOF = False
  • 86. A.I.O.U. (Sahiwal Campus) Ch. # 8 71 If .Fields("vno") = txtvno.Text And .Fields("ICODE") = Trim(txticode.Text) Then .Delete .MoveNext Exit Sub Else .MoveNext End If Wend End With dbstkin.Refresh dbitem.Refresh Exit Sub Else .MoveNext End If Wend End With End Sub Private Sub cmdexit_Click() Unload Me End Sub Private Sub cmdsave_Click() Dim ab As Boolean ab = False txticode.SetFocus With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(txticode.Text) Then .Edit .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("ICODE") = txticode.Text
  • 87. A.I.O.U. (Sahiwal Campus) Ch. # 8 72 .Fields("INAME") = txtiname.Text .Fields("pcode") = txtpcode.Text .Fields("docno") = txtdoc.Text .Fields("igp") = txtigp.Text .Fields("qty") = txtqty.Text .Fields("bagsize") = txtbs.Text .Fields("TOTAL") = txttotal.Text .Update ab = True With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then .Edit .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) If Not IsNull(.Fields("qty")) Then .Fields("QTY") = Val(txttotal.Text) + .Fields("QTY").Value Else .Fields("qty") = txttotal.Text End If .Update ab = True Exit Sub Else .MoveNext End If Wend End With dbitem.Refresh dbstkin.Refresh Exit Sub Else
  • 88. A.I.O.U. (Sahiwal Campus) Ch. # 8 73 .MoveNext End If Wend If ab = False Then .AddNew .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("ICODE") = txticode.Text .Fields("INAME") = txtiname.Text .Fields("pcode") = txtpcode.Text .Fields("docno") = txtdoc.Text .Fields("igp") = txtigp.Text .Fields("qty") = txtqty.Text .Fields("bagsize") = txtbs.Text .Fields("TOTAL") = txttotal.Text Update ab = True With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then .Edit .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) If Not IsNull(.Fields("qty")) Then .Fields("QTY") = Val(txttotal.Text) + .Fields("QTY").Value Else .Fields("qty") = txttotal.Text End If .Update ab = True Exit Sub Else
  • 89. A.I.O.U. (Sahiwal Campus) Ch. # 8 74 .MoveNext End If Wend End With dbitem.Refresh dbstkin.Refresh End If End With dbstkin.Refresh dbitem.Refresh ab = False End Sub Private Sub DBGrid1_DblClick() txtvno.Text = DBGrid1.Columns("VNO") txtvdate.Text = DBGrid1.Columns("VDATE") txtpcode.Text = DBGrid1.Columns("PCODE") txticode.Text = DBGrid1.Columns("ICODE") txtqty.Text = DBGrid1.Columns("QTY") txtbs.Text = DBGrid1.Columns("BAGSIZE") txttotal.Text = DBGrid1.Columns("TOTAL") txtigp.Text = DBGrid1.Columns("IGP") txtdoc.Text = DBGrid1.Columns("DOCNO") End Sub Private Sub DBGrid3_DblClick() txtpcode.Text = DBGrid3.Columns(0) End Sub Private Sub Form_Load() isedit = False txtvdate = Date isfin = True dbitem.RecordSource = "SELECT * FROM ITEM WHERE FINISHED = -1" End Sub
  • 90. A.I.O.U. (Sahiwal Campus) Ch. # 8 75 Private Sub txtbs_LostFocus() txttotal.Text = Val(txtqty.Text) * Val(txtbs.Text) End Sub Private Sub txticode_GotFocus() DBGrid4.Visible = True End Sub Private Sub txticode_LostFocus() Dim isf, isf1 As Boolean isf = False isedit = False isf1 = False DBGrid4.Visible = False dbitem.Refresh dbstkin.Refresh With dbstkin.Recordset While dbstkin.Recordset.EOF = False If .Fields("vno") = Val(txtvno) And .Fields("icode") = Trim(txticode.Text) Then txtiname.Text = .Fields("iname") txtqty.Text = .Fields("qty") txtbs.Text = .Fields("bagsize") isf1 = True isedit = True Exit Sub Else .MoveNext End If Wend End With dbitem.Refresh If isf1 = False Then While dbitem.Recordset.EOF = False If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) Then
  • 91. A.I.O.U. (Sahiwal Campus) Ch. # 8 76 isf = True End If If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) And dbitem.Recordset.Fields("finished") = True Then txtiname.Text = dbitem.Recordset.Fields("INAME") isexist = True Exit Sub Else dbitem.Recordset.MoveNext End If Wend End If If isf = False Then resp = MsgBox("Record does not exist", vbOKOnly, "Alert") txticode.Text = " " txticode.SetFocus End If End Sub Private Sub txtpcode_GotFocus() DBGrid3.Visible = True End Sub Private Sub txtpcode_LostFocus() Dim ISFound As Boolean ISFound = False dbparty.Refresh While dbparty.Recordset.EOF = False If dbparty.Recordset.Fields("PCODE") = Trim(txtpcode.Text) Then txtpname.Text = dbparty.Recordset.Fields("PNAME") DBGrid3.Visible = False ISFound = True Exit Sub Else
  • 92. A.I.O.U. (Sahiwal Campus) Ch. # 8 77 dbparty.Recordset.MoveNext End If Wend If ISFound = False Then resp = MsgBox("This party code and name does not exist", vbOKOnly, "Alert") txtpcode.SetFocus DBGrid3.Visible = True End If End Sub Private Sub txtvno_LostFocus() dbstkin.Refresh With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text Then txtvdate.Text = .Fields("vdate") txtigp.Text = .Fields("igp") txtdoc.Text = .Fields("docno") txtpcode.Text = .Fields("pcode") isedit = True Exit Sub Else .MoveNext End If Wend End With End Sub
  • 93. A.I.O.U. (Sahiwal Campus) Ch. # 8 78 8.4 OUT-GOING FINISHED SEEDS Dim isfin As Boolean Dim isedit As Boolean Private Sub cmddelete_Click() dbitem.Refresh With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then .Edit xzIf Not IsNull(.Fields("qty")) Then .Fields("QTY") = .Fields("QTY").Value + Val(txttotal.Text) End If .Update ab = True
  • 94. A.I.O.U. (Sahiwal Campus) Ch. # 8 79 dbstkin.Refresh With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("ICODE") = Trim(txticode.Text) Then .Delete .MoveNext Exit Sub Else .MoveNext End If Wend End With dbstkin.Refresh dbitem.Refresh Exit Sub Else .MoveNext End If Wend End With End Sub Private Sub cmdexit_Click() Unload Me End Sub Private Sub cmdsave_Click() Dim ab As Boolean ab = False txticode.SetFocus With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(txticode.Text) Then .Edit
  • 95. A.I.O.U. (Sahiwal Campus) Ch. # 8 80 .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("ICODE") = txticode.Text .Fields("INAME") = txtiname.Text .Fields("pcode") = txtpcode.Text .Fields("docno") = txtdoc.Text .Fields("ogp") = txtigp.Text .Fields("qty") = txtqty.Text .Fields("bagsize") = txtbs.Text .Fields("TOTAL") = txttotal.Text .Update ab = True With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then .Edit .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) If Not IsNull(.Fields("qty")) Then Fields("QTY") = .Fields("QTY").Value - Val(txttotal.Text) Else resp = MsgBox("There is not any quantity of this product", vbOKOnly, "Alert") End If .Update ab = True Exit Sub Else .MoveNext End If Wend End With dbitem.Refresh
  • 96. A.I.O.U. (Sahiwal Campus) Ch. # 8 81 dbstkin.Refresh Exit Sub Else .MoveNext End If Wend If ab = False Then .AddNew .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("ICODE") = txticode.Text .Fields("INAME") = txtiname.Text .Fields("pcode") = txtpcode.Text .Fields("docno") = txtdoc.Text .Fields("ogp") = txtigp.Text .Fields("qty") = txtqty.Text .Fields("bagsize") = txtbs.Text .Fields("TOTAL") = txttotal.Text .Update ab = True With dbitem.Recordset While .EOF = False If .Fields("ICODE") = Trim(txticode.Text) And .Fields("finished") = True Then .Edit .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) If Not IsNull(.Fields("qty")) Then .Fields("QTY") = .Fields("QTY").Value - Val(txttotal.Text) Else resp = MsgBox("There is not any quantity of this product", vbOKOnly, "Alert") End If .Update
  • 97. A.I.O.U. (Sahiwal Campus) Ch. # 8 82 ab = True Exit Sub Else .MoveNext End If Wend End With dbitem.Refresh dbstkin.Refresh End If End With dbstkin.Refresh dbitem.Refresh ab = False End Sub Private Sub DBGrid1_DblClick() txtvno.Text = DBGrid1.Columns("VNO") txtvdate.Text = DBGrid1.Columns("VDATE") txtpcode.Text = DBGrid1.Columns("PCODE") txticode.Text = DBGrid1.Columns("ICODE") txtqty.Text = DBGrid1.Columns("QTY") txtbs.Text = DBGrid1.Columns("BAGSIZE") txttotal.Text = DBGrid1.Columns("TOTAL") txtigp.Text = DBGrid1.Columns("OGP") txtdoc.Text = DBGrid1.Columns("DOCNO") End Sub Private Sub DBGrid3_DblClick() txtpcode.Text = DBGrid3.Columns(0) End Sub Private Sub Form_Load() isedit = False txtvdate = Date
  • 98. A.I.O.U. (Sahiwal Campus) Ch. # 8 83 isfin = True dbitem.RecordSource = "SELECT * FROM ITEM WHERE FINISHED = -1" End Sub Private Sub txtbs_LostFocus() txttotal.Text = Val(txtqty.Text) * Val(txtbs.Text) End Sub Private Sub txticode_GotFocus() DBGrid4.Visible = True End Sub Private Sub txticode_LostFocus() Dim isf, isf1 As Boolean isf = False isedit = False isf1 = False DBGrid4.Visible = False dbitem.Refresh dbstkin.Refresh With dbstkin.Recordset While dbstkin.Recordset.EOF = False If .Fields("vno") = Val(txtvno) And .Fields("icode") = Trim(txticode.Text) Then txtiname.Text = .Fields("iname") If Not IsNull("qty") Then txtqty.Text = .Fields("qty") End If txtbs.Text = .Fields("bagsize") isf1 = True isedit = True Exit Sub Else .MoveNext End If Wend
  • 99. A.I.O.U. (Sahiwal Campus) Ch. # 8 84 End With dbitem.Refresh If isf1 = False Then While dbitem.Recordset.EOF = False If dbitem.Recordset.Fields("icode") = Trim(txticode.Text) And dbitem.Recordset.Fields("finished") = True Then txtiname.Text = dbitem.Recordset.Fields("INAME") isf = True Exit Sub Else dbitem.Recordset.MoveNext End If Wend End If If isf = False Then resp = MsgBox("Record does not exist", vbOKOnly, "Alert") txticode.Text = " " txticode.SetFocus End If End Sub Private Sub txtpcode_GotFocus() DBGrid3.Visible = True End Sub Private Sub txtpcode_LostFocus() Dim ISFound As Boolean ISFound = False dbparty.Refresh While dbparty.Recordset.EOF = False If dbparty.Recordset.Fields("PCODE") = Trim(txtpcode.Text) Then txtpname.Text = dbparty.Recordset.Fields("PNAME") DBGrid3.Visible = False ISFound = True
  • 100. A.I.O.U. (Sahiwal Campus) Ch. # 8 85 Exit Sub Else dbparty.Recordset.MoveNext End If Wend If ISFound = False Then resp = MsgBox("This party code and name does not exist", vbOKOnly, "Alert") txtpcode.SetFocus DBGrid3.Visible = True End If End Sub Private Sub txtvno_LostFocus() dbstkin.Refresh With dbstkin.Recordset While .EOF = False If .Fields("vno") = txtvno.Text Then txtvdate.Text = .Fields("vdate") txtigp.Text = .Fields("ogp") txtdoc.Text = .Fields("docno") txtpcode.Text = .Fields("pcode") isedit = True Exit Sub Else .MoveNext End If Wend End With End Sub
  • 101. A.I.O.U. (Sahiwal Campus) Ch. # 8 86 8.5 ITEM INFORMATION Dim resp As String Dim isedit, isexit As Boolean Private Sub cmddelete_Click() If isedit = True Then resp = MsgBox("Are you sure to delete this record", vbQuestion + vbYesNo, "Alert") If resp = vbYes Then If Data1.Recordset.EOF = False Then Data1.Recordset.Delete isedit = False Else resp = MsgBox("There is not any record to delete", vbInformation, “Alert”) End If End If
  • 102. A.I.O.U. (Sahiwal Campus) Ch. # 8 87 Else resp = MsgBox("Item Code does not exist", vbCritical, "Alert") End If txticode.Text = " " txtiname.Text = " " txticode.SetFocus Data1.Refresh End Sub Private Sub cmdexit_Click() Unload Me End Sub Private Sub cmdsave_Click() Data1.Refresh With Data1.Recordset If txticode.Text = "" Then resp = MsgBox("Item Code must not be empty", vbInformation, "Alert") txticode.Text = "" txticode.SetFocus Else While Data1.Recordset.EOF = False If Data1.Recordset.Fields("finished") = OPTION1.Value And Data1.Recordset.Fields("ICODE") = Trim(txticode.Text) Then .Edit .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) .Fields("FINISHED") = OPTION1.Value isedit = False Data1.Recordset.Update Exit Sub Else .MoveNext
  • 103. A.I.O.U. (Sahiwal Campus) Ch. # 8 88 End If Wend If isedit = False Then .AddNew .Fields("ICODE") = Trim(txticode.Text) .Fields("INAME") = Trim(txtiname.Text) .Fields("FINISHED") = OPTION1.Value Data1.Recordset.Update End If txticode.Text = "" txtiname.Text = "" Data1.Refresh txticode.SetFocus End If End With Data1.Refresh End Sub Private Sub DBGrid1_DblClick() txticode.Text = DBGrid1.Columns(0) End Sub Private Sub Form_Load() isedit = False isexit = False End Sub Private Sub OPTION1_GotFocus() Data1.Refresh End Sub Private Sub txticode_LostFocus() Data1.Refresh If txticode.Text <> "" Then While Data1.Recordset.EOF = False
  • 104. A.I.O.U. (Sahiwal Campus) Ch. # 8 89 If Data1.Recordset.Fields("finished") = True And Data1.Recordset.Fields("ICODE") = Trim(txticode.Text) Then With Data1.Recordset txtiname.Text = .Fields("INAME") If Not IsNull(.Fields("qty")) Then Text1.Text = .Fields("qty") End If End With isedit = True Exit Sub Else Data1.Recordset.MoveNext End If Wend While Data1.Recordset.EOF = False If Data1.Recordset.Fields("finished") = False And Data1.Recordset.Fields("ICODE") = Trim(txticode.Text) Then With Data1.Recordset txtiname.Text = .Fields("INAME") If Not IsNull(.Fields("qty")) Then Text1.Text = .Fields("qty") End If End With isedit = True Exit Sub Else Data1.Recordset.MoveNext End If Wend End If End Sub
  • 105. A.I.O.U. (Sahiwal Campus) Ch. # 8 90 8.6 PARTY INFORMATION Dim resp As String Dim isedit, isexit As Boolean Private Sub cmddelete_Click() If isedit = True Then resp = MsgBox("Are you sure to delete this record", vbQuestion + vbYesNo, "Alert") If resp = vbYes Then If Data1.Recordset.EOF = False Then Data1.Recordset.Delete isedit = False Else resp = MsgBox("There is not any record to delete", vbInformation, "Alert") End If End If
  • 106. A.I.O.U. (Sahiwal Campus) Ch. # 8 91 Else resp = MsgBox("Code does not exist", vbCritical, "Alert") End If txtpcode.Text = " " txtpname.Text = " " txtaddress.Text = " " txtcity.Text = " " txtphone.Text = " " txtemail.Text = " " txtpcode.SetFocus Data1.Refresh End Sub Private Sub cmdexit_Click() Unload Me End Sub Private Sub cmdsave_Click() If txtpcode.Text = "" Then resp = MsgBox("Party code must not be empty", vbInformation, "Alert") txtpcode.Text = "" txtpcode.SetFocus Else If isedit = True Then With Data1.Recordset .Edit .Fields("PCODE") = Trim(txtpcode.Text) .Fields("PNAME") = Trim(txtpname.Text) .Fields("ADDRESS") = Trim(txtaddress.Text) .Fields("CITY") = Trim(txtcity.Text) .Fields("PHONE") = Trim(txtphone.Text) .Fields("EMAIL") = Trim(txtemail.Text) End With isedit = False
  • 107. A.I.O.U. (Sahiwal Campus) Ch. # 8 92 Data1.Recordset.Update Else With Data1.Recordset .AddNew .Fields("PCODE") = Trim(txtpcode.Text) .Fields("PNAME") = Trim(txtpname.Text) .Fields("ADDRESS") = Trim(txtaddress.Text) .Fields("CITY") = Trim(txtcity.Text) .Fields("PHONE") = Trim(txtphone.Text) .Fields("EMAIL") = Trim(txtemail.Text) End With Data1.Recordset.Update End If txtpcode.Text = "" txtpname.Text = "" txtaddress.Text = "" txtcity.Text = "" txtphone.Text = "" txtemail.Text = "" Data1.Refresh txtpcode.SetFocus End If Data1.Refresh End Sub Private Sub DBGrid1_DblClick() txtpcode.Text = DBGrid1.Columns(0) End Sub Private Sub Form_Load() isedit = False isexit = False End Sub Private Sub txtaddress_KeyPress(KeyAscii As Integer)
  • 108. A.I.O.U. (Sahiwal Campus) Ch. # 8 93 If KeyAscii = 13 And txtaddress.Text <> "" Then txtcity.SetFocus End If End Sub Private Sub txtpcode_LostFocus() Data1.Refresh If txtpcode.Text <> "" Then While Data1.Recordset.EOF = False If Data1.Recordset.Fields(0) = Trim(txtpcode.Text) Then With Data1.Recordset txtpname.Text = .Fields("PNAME") txtaddress.Text = .Fields("ADDRESS") txtcity.Text = .Fields("CITY") txtphone.Text = .Fields("PHONE") txtemail.Text = .Fields("EMAIL") End With isedit = True Exit Sub Else Data1.Recordset.MoveNext End If Wend End If End Sub
  • 109. A.I.O.U. (Sahiwal Campus) Ch. # 8 94 8.7 BIN-NO INFORMATION Dim resp As String Dim isedit As Boolean Private Sub cmddelete_Click() Data2.Refresh With Data2.Recordset If Data2.Recordset.RecordCount >= 1 Then While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then .Delete Data2.Refresh Exit Sub Else .MoveNext
  • 110. A.I.O.U. (Sahiwal Campus) Ch. # 8 95 End If Wend End If End With End Sub Private Sub cmdexit_Click() Unload Me End Sub Private Sub cmdsave_Click() Dim isf As Boolean isf = False With Data2.Recordset Data2.Refresh While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then .Edit .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("year") = Trim(txtyear.Text) .Fields("season") = Trim(cmbseason.Text) .Fields("icode") = Trim(DBICODE.Text) .Fields("qty") = txtqty.Text .Fields("binno") = Trim(txtbs.Text) .Update isf = True Exit Sub Else .MoveNext End If Wend If isf = False Then .AddNew
  • 111. A.I.O.U. (Sahiwal Campus) Ch. # 8 96 .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("year") = Trim(txtyear.Text) .Fields("season") = Trim(cmbseason.Text) .Fields("icode") = Trim(DBICODE.Text) .Fields("qty") = txtqty.Text .Fields("binno") = Trim(txtbs.Text) .Update isf = True End If End With Data2.Refresh DBICODE.SetFocus End Sub Private Sub DBGrid1_DblClick() txtvno.Text = DBGrid1.Columns(0) txtvdate.Text = DBGrid1.Columns(1) txtyear.Text = DBGrid1.Columns(2) DBICODE.Text = DBGrid1.Columns(4) cmbseason.Text = DBGrid1.Columns(3) txtqty.Text = DBGrid1.Columns(5) txtbs.Text = DBGrid1.Columns(6) End Sub Private Sub dbicode_GotFocus() DBGrid2.Visible = True End Sub Private Sub dbicode_LostFocus() Data1.Refresh With Data1.Recordset While .EOF = False If .Fields("icode") = Trim(DBICODE.Text) And .Fields("finished") = 0 Then txtiname.Text = .Fields("iname")
  • 112. A.I.O.U. (Sahiwal Campus) Ch. # 8 97 Exit Sub Else .MoveNext End If Wend End With End Sub Private Sub Form_Load() isedit = False txtvdate = Date End Sub Private Sub txtiname_GotFocus() DBGrid2.Visible = False End Sub Private Sub txtiname_LostFocus() Data2.Refresh While Data2.Recordset.EOF = False If Data2.Recordset.Fields("VNO") = txtvno.Text And Data2.Recordset.Fields("ICODE") = Trim(DBICODE.Text) Then txtqty = Data2.Recordset.Fields("QTY") txtbs = Data2.Recordset.Fields("Binno") Exit Sub Else Data2.Recordset.MoveNext End If Wend End Sub Private Sub txtvno_LostFocus() Data2.Refresh With Data2.Recordset While .EOF = False If .Fields("vno") = txtvno.Text Then
  • 113. A.I.O.U. (Sahiwal Campus) Ch. # 8 98 txtvdate.Text = .Fields("VDATE") txtyear.Text = .Fields("YEAR") cmbseason.Text = .Fields("SEASON") Exit Sub Else .MoveNext End If Wend End With End Sub 8.8 BAG SIZE INFORMATION Dim resp As String Dim isedit As Boolean Private Sub cmddelete_Click() With Data2.Recordset Data2.Refresh
  • 114. A.I.O.U. (Sahiwal Campus) Ch. # 8 99 While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then .Delete Data2.Refresh Exit Sub Else .MoveNext End If Wend End With End Sub Private Sub cmdexit_Click() Unload Me End Sub Private Sub cmdsave_Click() Dim isf As Boolean isf = False With Data2.Recordset Data2.Refresh While .EOF = False If .Fields("vno") = txtvno.Text And .Fields("icode") = Trim(DBICODE.Text) Then .Edit .Fields("vno") = txtvno.Text .Fields("vdate") = txtvdate.Text .Fields("year") = Trim(txtyear.Text) .Fields("season") = Trim(cmbseason.Text) .Fields("icode") = Trim(DBICODE.Text) .Fields("qty") = txtqty.Text .Fields("bagsize") = Trim(txtbs.Text) .Update isf = True Exit Sub