You are on page 1of 88

A

PROJECT REPORT
ON
Sales and Inventory Management System
For
M.C.A (Master of Computer Application)
emester !
u"mitte# "$
Mr/Ms.______________
%ui#e# "$
Prof. ______________

u"mitte# to
Computer &epartment
in'a(a# )nstitute of Mana(ement
!a#(aon (*+)
Sinhagad Technical Education Societys
SINH!" INSTIT#TE $% M!N!EMENT
,,-./ !a#(aon (*u#ru+)/ Off in'(a# Roa#/ Pune ,.. 0,.. Telefa12 03043,56 ,73..
Email2 #irector8siom9sin'(a#.e#u/ Re(istrar.siom9sin'(a#.e#u
&ate2
&E'TI%I&!TE
T'is is to certif$ t'at Ms. ______'as successfull$ complete# 'er pro:ect ;or+
entitle# S!(ES !N" IN)ENT$'* M!N!EMENT S*STEM in partial
fulfillment of Masters of Computer Applications pro(ram for t'e $ear 300< =
30.0. 'e 'as ;or+e# un#er our (ui#ance an# #irection.
8888888888888888888 888888888888888888
(&irector )OM = MCA) (Pro:ect %ui#e)
!&+N$,(E"EMENT
) ;oul# li+e to ta+e t'is opportunit$ to e1press m$ (ratitu#e to;ar#s all t'e people
;'o 'a>e in >arious ;a$s/ 'elpe# in t'e successful completion of m$ pro:ect.
) must con>e$ m$ (ratitu#e to Prof. Na>nat' 'ete for (i>in( me t'e constant
source of inspiration an# 'elp in preparin( t'e pro:ect/ personall$ correctin( m$
;or+ an# pro>i#in( encoura(ement t'rou('out t'e pro:ect.
) also t'an+ all m$ facult$ mem"ers for steerin( me t'rou(' t'e tou(' as ;ell as
eas$ p'ases of t'e pro:ect in a result oriente# manner ;it' concern attention.
T'an+in( ?ou/
8888888888888888
"E&(!'!TI$N
)/ Ms 888888888888'ere"$ #eclare t'at t'is pro:ect is t'e recor# of aut'entic ;or+
carrie# out "$ me #urin( t'e aca#emic $ear 300< = 30.0 an# 'as not "een
su"mitte# to an$ ot'er @ni>ersit$ or )nstitute to;ar#s t'e a;ar# of an$ #e(ree.

i(nature of t'e stu#ent
88888888888888888888
)ntro#uction
System Introduction
For optimal sales an# in>entor$ mana(ement processes/ $ou nee# ro"ust
functionalit$ for mana(in( $our lo(istics facilities. upport for in>entor$
mana(ement 'elps $ou recor# an# trac+ materials on t'e "asis of "ot' Auantit$ an#
>alue.
Bare'ouse in>entor$ mana(ement functions co>er internal ;are'ouse mo>ements
an# stora(e.
@sin( t'is soft;are ;e can re#uce costs for ;are'ousin(/ transportation/ or#er
fulfillment/ an# material 'an#lin( = ;'ile impro>in( customer ser>ice.
?ou can si(nificantl$ impro>e in>entor$ turns/ optimiCe t'e flo; of (oo#s/ an#
s'orten routes ;it'in $our ;are'ouse or #istri"ution center. A##itional "enefits of
in>entor$ mana(ement inclu#e impro>e# cas' flo;/ >isi"ilit$/ an# #ecision
ma+in(.
T'is soft;are is user frien#l$ an# 'ence eas$ to use.
Emplo$ees can plan/ enter/ an# #ocument ;are'ouse an# internal stoc+
mo>ements "$ mana(in( (oo#s receipts/ (oo#s issues/ stora(e/ pic+in( an#
pac+in(/ p'$sical stoc+ transfers/ an# transfer postin(s.
Pro-lems In e.isting system
As ;e +no; manual s$stem are Auite te#ious /time consumin( an# less efficient
an# accurate in comparison to t'e computeriCe# s$stem.
o follo;in( are some #isa#>anta(es of t'e ol# s$stem2
.. Time consumin(
3. Dess accurate
5. Dess efficient
,. Dot of paper ;or+
6. lo; #ata processin(
E. Not user frien#l$ en>ironment
7. &ifficult to +eep ol# recor#s
Sco/e of Pro/osed System
T'e scope of t'is s$stem is to pro>i#e user efficient ;or+in( en>ironment an#
more output can "e (enerate# t'rou(' t'is. T'is s$stem pro>i#es user frien#l$
interface resultin( in +no;in( eac' an# e>er$ usa"ilit$ features of t'e s$stem.
T'is s$stem 'elps in trac+in( recor#s so t'at past recor#s can "e >erifie# t'rou('
t'em an# one can ma+e #ecisions "ase# on t'e past recor#s. T'is s$stem
completes t'e ;or+ in a >er$ less time resultin( in less time consumption an# 'i('
le>el of efficienc$.
T'is s$stem is #e>elope# in suc' a ;a$ t'at e>en a naF>e user can also operate t'e
s$stem easil$. T'e calculations are ma#e >er$ Auic+l$ an# t'e recor#s are #irectl$
sa>e# into #ata"ases an# t'e #ata"ases can "e maintaine# for a lon(er perio# of
time. Eac' recor# can "e retrie>e# an# can "e >erifie# for t'e future transactions.
Also t'is s$stem pro>i#es 'i(' le>el of securit$ for #ata lea+in( as onl$ a#min
people can access t'e #ata"ase no c'an(es can "e ma#e in it until it >erifies t'e
user lo(in i# an# pass;or#.
Be also 'a>e operator lo(in t'rou(' ;'ic' operator can ta+e or#ers "ut canGt
ma+e c'an(es in t'e #ata"ase. Dimite# access is a>aila"le to t'e operator.
%easi-ility Study
As ;e +no; eac' an# e>er$ pro:ect nee#s to 'a>e a feasi"ilit$ stu#$ for t'e
complete un#erstan#a"ilit$ of t'e pro:ect. Be ;ill consi#er 5 t$pes of feasi"ilit$
stu#$ t'e$ are tec'nical feasi"ilit$/ operational feasi"ilit$ an# economical
feasi"ilit$.
Technical Feasibility:
T'is ne; s$stem reAuires E full$ traine# people to run t'e s$stem perfectl$.
. a#min person to maintain #ata"ase n ot'er 6 to 'an#le t'e s$stem interface an#
or#er ma+in( t'in(s.
As our e1istin( s$stem is purel$ manual/ so ;e nee# a onetime in>estment of Rs ,
Dacs for t'e purc'ase of E computers/ 6 in>oice printers/ a laser printer/ AC an#
net;or+in( etc. )t reAuires appr1. .0 Dac+s PA as a operatin( cost.
Bit' t'e a"o>e #etails our s$stem is tec'nicall$ feasi"le as after in>estin( ., Dacs
in a $ear/ t'e compan$ is still sa>in( Rs .6 Dacs PA.
Operational Feasibility:
T'e ne; solution is feasi"le in all sense "ut operationall$ it is not. T'e ne;
s$stem #eman#s t'e e1pulsion of at least .6 people from t'e compan$. )t creates
an en>ironment of :o"lessness an# fear amon( t'e emplo$ees. )t can lea# to an
in#efinite stri+e in t'e compan$ also. o t'e mana(ement must ta+e correcti>e
actions prior in a#>ance in or#er to start t'e furt'er procee#in(s.
Economic Feasibility:
Bit' t'e manual s$stem t'e operatin( cost of t'e s$stem is a"out E0 Dac+s
P.A. T'is cost comprises salar$ of 36 people/ stationar$/ "uil#in( rent/ electricit$/
;ater/ telep'one etc. *ut ;it' t'e ne; s$stem t'is reoccurrin( cost comes out to
"e a"out 30 Dac+s P.A. Hence t'e ne; s$stem is economicall$ feasi"le.
$/erating Environment 0 Hard1are and
Soft1are
HARDWARE REQUIREMENT
Processor2 Pentium , or more for optimum performance
RAM2 Recommen#e# 36EM*
Har# &is+2 Minimum 30%*
OFTWARE REQUIREMENT
Operatin( $stem 4 Certifie# &istri"ution of B)N&OB
!isual *asic 3006 E1press E#ition
&ata"ase(*ac+en#) 4 M Access 3005
Propose# $stem
$-2ectives
T'e main o":ecti>e of t'is s$stem is to +eep recor#s of t'e complete
in>entor$.
)t support for in>entor$ mana(ement 'elps $ou recor# an# trac+ materials
on t'e "asis of "ot' Auantit$ an# >alue.
)t impro>es cas' flo;/ >isi"ilit$/ an# #ecision ma+in(.
For ;are'ouse mana(ement/ $ou can trac+ Auantit$ an# >alue of all $our
materials/ perform p'$sical in>entor$/ an# optimiCe $our ;are'ouse
resources
#ser 'e3uirements
%#N&TI$N!( 'E4#I'EMENTS
A. )NP@T-O@TP@T
.. $stem s'all 'a>e a form to accept t'e customer #etails.
3. $stem s'all 'a>e a form to accept t'e Plant #etails.
5. $stem s'all #ispla$ transaction #etails.
,. $stem s'all pro>i#e searc' facilit$ on customer name/ Or#er Place#/
#ate of or#er/ #ate of or#er #ispatc'/ #ate of transaction/ transaction
amount/ cre#it car# no etc.
6. $stem s'oul# pro>i#e facilit$ for c'an(e in a##ress-name.
E. $stem s'oul# maintain t'e #etails a"out placin( or#er-#ispatc' or or#er
i.e/ or#er status
*. PROCE)N%
.. $stem s'oul# automaticall$ (enerate t'e "ill.
3. $stem s'oul# inform t'e pen#in( or#er an# ma+e c'an(es if t'e or#er is
#ispatc'e#.
C. ERROR HAN&D)N%
.. 'oul# report an$ errors on #uplicate primar$ +e$s.
3. 'oul# report an$ IOut of Ran(eG >alues on numeric fiel#s
5. 'oul# report an$ #ata t$pe mismatc'es an$ fiel# on t'e forms.
,. 'oul# report on an$ I)n>ali# #atesG
6. 'oul# report an$ >iolation of aut'oriCation of ri('ts
E. 'oul# report an$ )n>ali# Do(in errors
N$N5%#N&TI$N!( 'E4#I'EMENTS
.. All user manuals s'oul# "e pro>i#e# in t'e necessar$ format
3. Application s'oul# support 6 simultaneous users.
5. Transaction s'oul# "e complete# ;it'in .-6
t'
of secon#
,. T'ere ;ill "e "ac+up proce#ure to maintain recor#s.
ANAD?) J
&E)%N
#se case "iagram for Su//lier
Checks Inventories
Tracks Order
Dispatch order on
time
Sends Invoice
Updates Records
Supplier
Customer
Login Id and Pwd
KKinclu#eLL
#se &ase "iagram for &ustomer
Make list o
re!uirements
Places the Order
Makes pa"ment
Invoice
Send #R$
Customer
Cler+
Studies
Re!uirements
&lass "iagram for a customer order
Customer
Cust8)#
Name
A##r.
A##r3
Cust8cit$
Pinco#e
A##cust()
@p#atecust()
%etcust#et()
Or#er
Or#er8no
Or#ercre#ate
Or#er8status
'ipment8#at
e
C'allan
calc*illtotal()
calctotal;ei(
't()
Pa$ment
Amount
Pa$ment
#ate
Ma+epa$me
nt()
%etin>oice()
Cre#it
Num"er
T$pe
E1pir$#ate
>ali#atin(
C'eAue
C'Ano
*an+name
*an+i#
>ali#atin(
Or#et#etail
Or#erno
MaterialAt$
Material>alue
Caclsu"total
calc;ei('t
Material
Materialco#e
Plantco#e
tc+At$
%etpriceforAt$()
%RN
Reci>e#At$
&ama(e#
Re:ecte#
Re:ect(oo#()
&escription()
Se3uence diagram for Su//lier
upplier Transaction Customer )n>oice
Do( )n
!ali#ate
Places or#er
Trac+s or#er
Ta+es customr #etails
Fill Or#er #etails
Ma+es Pa$ment
&ispatc' Or#er
en# or#er #etails
en# )n>oice
en# %NR
A## ne; entr$
Do( Out
)nput creens
S/lash Screen
(ogin %orm
Main %orm
Transaction screen
$rder En3uiry
Material "etails
Plant "etails
!-out
State "etails
$rder "etails
&ustomer "etails
$rder Status
!dd Plant
!dd &ustomer
Search &ustomer
#/date customer
!dd material
Edit material
Ta"le specifications
@)&8PA (Do(in Ta"le)
&olumn Name "ata
Ty/e
Si6e "escri/tion
@ER8NAME Te1t 60 @ser name of t'e A&M)N-OPERATOR
PABOR& Te1t 60 Pass;or# of t'e A&M)N-OPERATOR
customer8master (Customer &etails Ta"le)
&olumn Name "ata Ty/e Si6e "escri/tion
cust8slno (PM) Num E Customer i#entification
cust8name Te1t 60 Name of t'e customer
cust8a##. C'ar ,0 A##ress line one of t'e customer
cust8a##3 C'ar ,0 A##ress line t;o of t'e customer
Cust8a##5 C'ar ,0 A##ress line t'ree of t'e customer
cust8pinco#e Num E Pin co#e of t'e customer a##ress
cust8cit$ C'ar .6 Cit$ of t'e customer
contact8person
8name
C'ar 50 Name of t'e person responsi"le for or#er ma+in(
contact8person
8num"er
Num .0 P'one num"er for t'e person ;'o ma#e t'e or#er
tate8co#e
(FM)
C'ar 3 )nitials of t'e state #eri>e# from state #etails ta"le
state8master (tate &etails ta"le)
&olumn Name "ata Ty/e Si6e "escri/tion
state8co#e c'ar 3 Co#e Of t'e state e(. MH 4ma'aras'tra
state8#escriptio
n
c'ar 60 &escription of t'e co#e.
material8master (Material &etail Ta"le)
&olumn Name "ata Ty/e Si6e "escri/tion
cust8slno (PM) Num E Customer i#entification
material8co#e c'ar .0 Co#e of t'e material
material8#escri
ption
C'ar 30 &escri"in( t'e material specification
s'ippin(8plant C'ar , )t (i>es #etail of s'ippin( plant n is lin+e# ;it'
plant master ta"le
material8price Num .0 Price of t'e material
!alues Di+e 2
COMP00.
Computer = Pentium )!
PMP. = Pune Plant = @nit )
PMP3 = Pune Plant = @nit ))
PMP5 = Pune Plant 4 @nit )))
Material8price 4 6000
plant8master (Plant &etails Ta"le)
&olumn Name "ata Ty/e Si6e "escri/tion
plant8co#e Num E
plant8name c'ar .0 Co#e of t'e material
material8#escri
ption
C'ar 30 &escri"in( t'e material specification
s'ippin(8plant C'ar , )t (i>es #etail of s'ippin( plant n is lin+e# ;it'
plant master ta"le
material8price Num .0 Price of t'e material
Plant8a## C'ar ,0 A##ress of plant
Plant8cit$ C'ar .6 Cit$ of plant
Plant8co#e(p+) C'ar .6 Co#e of plant
status8master (Or#er tatus Master)
&olumn Name "ata Ty/e Si6e "escri/tion
or#er8status c'ar , tatus of or#er in s'ort
#escription c'ar 60 &escription of t'e plant.
Or#er tatus Co#e J !alues
OE& 4 Or#er Entr$ #one
OCHM& 4 Or#er c'ec+e#
CDR& 4 Or#er cleare#
CH& 4 Or#er sc'e#ule#
H)P&) 4 Or#er 'ippe# "$ #ispatc' section
)N!% 4 )n>oice (enerate# "$ accounts #epartment
MAC) 4 Mac'ine installe# "$ installation (roup
P?MR 4 Pa$ment Recei>e# from customer
T'!NS!&TI$N!( T!7(ES T$ 7E &'E!TE"
OR&ER8HEA&ER(OR&ER Hea#er )nformation Ta"le
&olumn Name "ata
Ty/e
Si6e "escri/tion
or#er8no (p+) Num N Num"er of or#er
or#er8creation8#a
te
&ate 4 &ate of t'e or#er placement
or#er8status c'ar , tatus of or#er
customer8ref8no c'ar 30 Reference num"er of t'e customer
customer8ref8#at
e
#ate 4 #ate on ;'ic' customer referre#
Or#er8>alue Num .. !alue of eac' or#er
material8reAuire#
8#ate
&ate &ate on ;'ic' customer nee#s t'e #eli>er$
customer8slno
(FM)
Num E Customer i#entification num"er
#eli>er$8c'allan8
no
num N &eli>er$ c'allan num"er
s'ipment8#ate &ate &ate on ;'ic' material #ispatc'e#
in>oice8num"er num N Num"er of in>oice
in>oice8#ate #ate 4 &ate of in>oice
transporter8name c'ar ,0 Name of t'e transporter
plant8co#e (FM) c'ar , Co#e of t'e plant
mac'ine8installe#
8"$
c'ar ,0 Name of t'e person ;'o installe# t'e mac'ine
c'eAue8no num 30 Num"er of c'eAue
"an+8name c'ar .6 Name of t'e "an+
OR&ER8&ETA)D(Or#er &etail )nformation Ta"le line item ;ise )
&olumn Name "ata Ty/e Si6e "escri/tion
or#er8no(FM) Num N Num"er of or#er
material8co#e
(FM)
Num N Co#e of material
item8At$ num E Ouantit$ of t'e item
item8>alue Num .. !alue of item
stoc+8master()tem toc+ Master Ta"le)
&olumn Name "ata Ty/e Si6e "escri/tion
material8co#e
(FM)
Num N Co#e of material
plant8co#e(FM
)
c'ar , Co#e of plant
stoc+8At$ Num E toc+ of item Auantit$
or#er8trac+in((Or#er8status8trac+in( Ta"le)
&olumn Name "ata Ty/e Si6e "escri/tion
or#er8no
(FM)
Num N Num"er of or#er
or#er8status c'ar , &escription of item status
creation8#ate #ate &ate on ;'ic' or#er ;as create#
Test Proce#ures an#
)mplementation
Introduction
Testin( presents an interestin( anomal$ for t'e soft;are en(ineer. &urin(
earlier soft;are en(ineerin( acti>ities/ t'e en(ineer attempts to "uil# soft;are
from an a"stract concept to a tan(i"le pro#uct. No; comes testin(. T'e en(ineer
creates a series of test cases t'at are inten#e# to #emolis' t'e soft;are t'at 'as
"een "uilt. )n fact/ testin( is t'e one step in t'e soft;are process t'at coul# "e
>ie;e# (ps$c'olo(icall$/ at least) as #estructi>e rat'er t'an constructi>e.
oft;are en(ineers are "$ t'eir nature constructi>e people. Testin( reAuires
t'at t'e #e>eloper #iscar# preconcei>e# notions of t'e correctness of soft;are
:ust #e>elope# an# o>ercome a conflict of interest t'at occurs ;'en errors are
unco>ere#.
)f testin( is con#ucte# successfull$ (accor#in( to t'e o":ecti>es state#
pre>iousl$)/ it ;ill unco>er errors in t'e soft;are. As a secon#ar$ "enefit/ testin(
#emonstrates t'at soft;are functions appear to "e ;or+in( accor#in( to
specification/ t'at "e'a>ioral an# performance reAuirements appear to 'a>e "een
met. )n a##ition/ #ata collecte# as testin( is con#ucte# pro>i#e a (oo# in#ication
of soft;are relia"ilit$ an# some in#ication of soft;are Aualit$ as a ;'ole. *ut
testin( cannot s'o; t'e a"sence of errors an# #efects/ it can s'o;
Onl$ t'at soft;are errors an# #efects are present. )t is important to +eep t'is
(rat'er (loom$) statement in min# as testin( is "ein( con#ucte#.
Testing /rinci/les
*efore appl$in( met'o#s to #esi(n effecti>e test cases/ a soft;are en(ineer must
un#erstan# t'e "asic principle t'at (ui#e soft;are testin(2
All tests s'oul# "e tracea"le to customer reAuirements
Tests s'oul# "e planne# lon( "efore testin( "e(ins
N0 percent of all errors unco>ere# #urin( testin( ;ill li+el$ "e tracea"le to
30 percent of all pro(ram components. T'e pro"lem/ of course/ is to isolate t'ese
suspect components an# to t'orou('l$ test t'em.
Testin( s'oul# "ein( in t'e small an# pro(ress to;ar# testin( in t'e
lar(e.
E1'austi>e testin( is not possi"le
To "e most effecti>e an in#epen#ent t'ir# part$ s'oul# con#uct testin(
A ric' >ariet$ of test case #esi(n met'o#s 'a>e e>ol>e# for soft;are. T'ese
met'o#s pro>i#e t'e #e>eloper ;it' a s$stematic approac' to testin(. More
important/ met'o#s pro>i#e a mec'anism t'at can 'elp to ensure t'e completeness
of tests an# pro>i#e t'e 'i('est li+eli'oo# for unco>erin( errors in soft;are.
!ny engineered /roduct 8and most other things9 can -e tested in one of
t1o 1ays:
Mno;in( t'e specifie# function t'at a pro#uct 'as "een #esi(ne# to
perform/ tests can "e con#ucte# t'at #emonstrate eac' function is full$ operational
B'ile at t'e same time searc'in( for errors in eac' functionP (3) +no;in(
t'e internal
Bor+in( of a pro#uct/ tests can "e con#ucte# to ensure t'at all (ears
mes'/ t'at is/ internal operations are performe# accor#in( to specifications an#
all internal components 'a>e "een a#eAuatel$ e1ercise#. T'e first test approac' is
calle# "lac+ "o1 testin( an# t'e secon#/ ;'ite4"o1 testin(.
Testing /erformed 1ere:
@N)T TET)N%
)NTE%RAT)ON TET)N%
&ATA*AE TET)N%
RECO!ER? TET)N%
F@NCT)ONAD)T? TET)N%
MOME TET
AN)T? TET
COMPAT)*)D)T? TET)N%
DOA& TET)N%
?TEM TET)N%
PERFORMANCE TET)N%
@ER ACCEPTANCE TET)N%
,hite -o. testing
ometimes calle# (lass4"o1 testin( is a test case #esi(n met'o# t'at uses t'e
control structure of t'e proce#ural #esi(n to #eri>e test cases. @sin( ;'ite4"o1
testin( met'o#s/ t'e soft;are en(ineer can #eri>e test cases t'at (.) (uarantee t'at
all in#epen#ent pat's ;it'in a mo#ule 'a>e "een e1ercise# at least once/ (3)
e1ercise all lo(ical #ecisions on t'eir true an# false si#es/ (5) e1ecute all loops at
t'eir "oun#aries an# ;it'in t'eir operational "oun#s/ an# (,) e1ercise internal #ata
structures to ensure t'eir >ali#it$.
B'ite4"o1 testin( of soft;are is pre#icate# on close e1amination of proce#ural
#etail. Pro>i#in( test cases t'at e1ercise specific sets of con#itions an#-or loops
tests lo(ical pat's t'rou(' t'e soft;are. T'e status of t'e pro(ram ma$ "e
e1amine# at >arious points to #etermine if t'e e1pecte# or asserte# status
correspon#s to t'e actual status. *asis pat' testin( is a ;'ite4"o1 testin( tec'niAue
first propose# "$ Tom McCa"e. T'e "asis pat' met'o# ena"les t'e test case
#esi(ner to #eri>e a lo(ical comple1it$ measure of a proce#ural #esi(n an# use
t'is measure as a (ui#e for #efinin( a "asis set of e1ecution pat's. Test cases
#eri>e# to e1ercise t'e "asis set are (uarantee# to e1ecute e>er$ statement in t'e
pro(ram at least one time #urin( testin(.
)n t'is s$stem/ t'e s$stem ;as teste# for t'e calculation matters ;ere t'e
#ata pro>i#e# for (i>in( t'e ri('t output or not. )f ;ron( #ata ;as pro>i#e# t'en
;'at it is t'ro;in( error or acceptin(.
7lac; -o. testing
Also calle# "e'a>ioral testin(/ focuses on t'e functional reAuirements of t'e
soft;are. T'at is/ "lac+ "o1 testin( ena"les t'e soft;are en(ineer to #eri>e sets of
input con#itions t'at ;ill full$ e1ercise all functional reAuirements for a pro(ram.
*lac+ "o1 testin( is not an alternati>e to ;'ite4"o1 tec'niAues. Rat'er/ it is a
complementar$ approac' t'at is li+el$ to unco>er a #ifferent class of error t'an
;'ite4"o1 met'o#s. B'en computer soft;are is consi#ere#/ "lac+ "o1 testin(
allu#es to tests t'at are con#ucte# at t'e soft;are interface. Alt'ou(' t'e$ are
#esi(ne# to unco>er errors/ "lac+4"o1 tests are use# to #emonstrate t'at soft;are
functions are operational/ t'at input is
Properl$ accepte# an# output is correctl$ pro#uce# an# t'at t'e inte(rit$ of
e1ternal information is maintaine#. A "lac+4"o1 test e1amines some fun#amental
aspect of a s$stem ;it' a little re(ar# for t'e internal lo(ical structure of t'e
soft;are. *lac+4"o1 testin( attempts to fin# errors in t'e follo;in( cate(ories2
.. )ncorrect or missin( functions/
3. )nterface errors/
5. Errors in #ata structures or e1ternal #ata"ase access/
,. *e'a>ior or performance errors/ an#
6. )nitialiCation an# termination errors. *$ appl$in( "ac+4"o1 tec'niAues/
;e #eri>e a set of test cases t'at satisf$ t'e follo;in( criteria2
a. Test cases t'at re#uce/ "$ a count t'at is (reater t'an one/ t'e
num"er of a##itional test cases t'at must "e #esi(ne# to ac'ie>e reasona"le testin(
an#
". Test cases t'at tell us somet'in( a"out t'e presence or a"sence of
classes of errors/ rat'er t'an an error associate# onl$ ;it' t'e specific test at 'an#.
B'ite4"o1 testin( s'oul# not/ 'o;e>er/ "e #ismisse# as impractical. A
limite# num"er of important lo(ical pat's can "e selecte# an# e1ercise#. )mportant
#ata structures can "e pro"e# for >ali#it$. T'e attri"utes of "ot' "lac+ an# ;'ite
"o1 testin( can "e com"ine# to pro>i#e an approac' t'at >ali#ates t'e soft;are
interface an# selecti>el$ ensures t'at t'e internal ;or+in(s of t'e soft;are are
correct.
*lac+ "o1 testin( for t'is s$stem ;as #one to c'ec+ t'e internal testin( i.e/
t'e s$stem is ;or+in( properl$ in eac' case or no. B'at +in# of errors are t'ere in
#ata"ase #esi(n.
Testing Process
The testing /rocess can -e sho1n as:
De>els of testin( Test
Plan
Test
Proce#ures
Test Report
Test Case
E1ecution
Test Case
pecification
Test Case
Anal$sis
)s Error
@nco>ere#
Q
No
?es
Menu Tree
Main Pa(e
Transaction
creen
!ie; Tools Master
Controls
Help
Do(out
E1it
Tool"ar
tatus
*ar
Calcul
ator
Notepa#
Customer
Plant
Material
$stem
ReAuirement
s
A"out
Pro:ect Co#e
report
File
Reports
E1it
tate
@ER MAN@AD
Menu E./lanation
tart @p screen
.. T'e first menu item of t'e $stem screen is transaction screen t'is screen is
t'e main screen it 'as all t'e menu items ;'ic' 'elp to ta+e or#er an#
maintain it in #ata"ase. T'e .
st
ta" is or!er entry" t'is screen ;ill "e
#isa"le# initiall$ to ma+e an or#er operator 'as to clic+ on or!er entry
"utton at t'e ri('t 'an# si#e of t'e screen
Or#er Entr$
3. Once t'at "utton is clic+e# t'e screen is acti>ate# an# or#erno./o#er creation
#ate an# or#er status are auto (enerate# searc' cust8co#e "$ clic+in( search
"utton an# retrie>e rest of t'e customer #etails. )f t'e customer is ne; t'en
a#ministrator 'as to a## ne; customer into #ata"ase ;'ic' is onl$ accesse#
"$ a#min person operator are not (i>en t'ose ri('ts.
5. Once customer #etails are retrie>e# clic+ calc#late or!er $al#e b#tton this
t'is ;ill ta+e to t'e or#er #etail screen ;'ere or#er no is auto (enerate#
material co#e is selecte# an# item At$ is to "e fille# an# "$ clic+in( on
calculate t'e total is calculate# n t'us t'e or#er is place#
,. To a## all #etails in transaction screen refres' "utton s'oul# "e clic+e#
6. Customer ref num"er is also 'a>e to "e fille# "$ operator-a#min n t'en to
(o on t'e ne1t screen clic+ on >erifie#
'ipment &etails
E. T'e s'ipment #etails are alrea#$ auto fille# "$ t'e s$stem operator 'as to
pro>i#e t'e transporter name onl$
Accounts &epartment
7. Accounts #ept is also auto fille# a#min 'as to >erif$ all t'e #etails an# ma+e
or#er #ate accor#in( to con>enience
Mac'ine )nstallation
N. Ne1t screen is mac'ine installation 'ere t'e en(ineer ;'o (onna install t'e
mac'ine is to "e (i>en.
Commercial %roup
<. )n commercial (roup screen all t'e pa$ment #etails are to "e fille#
accor#in(l$ once customer ma+es t'e pa$ment
.0.T'us t'e recor#s 'as "een create#.
Or#er EnAuir$
...)n t'e ne1t ta" ;e can see t'e or#er status.
!dmin authority
.. Han#lin( #ata"ases is in t'e po;er of t'e a#min person onl$
3. o all customer #ata"ases an# material #ata"ase an# all master ta"les are to
"e 'an#le# "$ t'e a#min person onl$.
5. T'ese screens are #etaile# screens so no specific #escription is nee#e# for
t'e same.
Propose#
En'ancements
%uture Sco/e:
T'e scope of t'e pro:ect inclu#es t'at ;'at all future en'ancements can "e #one in
t'is s$stem to ma+e it more feasi"le to use
&ata"ases for #ifferent pro#ucts ran(e an# stora(e can "e pro>i#e#.
Multilin(ual support can "e pro>i#e# so t'at it can "e un#erstan#a"le "$
t'e person of an$ lan(ua(e.
More (rap'ics can "e a##e# to ma+e it more user4frien#l$ an#
un#erstan#a"le.
Mana(e & backup versions of documents online.
7enefits
Mana(es Trac+ sales
Mana(es contacts
Mana(es accounts
Mana(es opportunities
Trac+ pro#uct issues
Mana(e issue priorit$
Trac+ pro#uct features
Mana(e pro#uct life c$cle
"ra1-ac;s !nd (imitations
.. T'e s$stem is not capa"le of 'an#lin( more t'an E users at a time.
3. ome +e$;or#s in s$stem are #ifficult to un#erstan# so t'e a#min n
operator person s'oul# un#erstan# t'em t'orou('l$ to use t'e s$stem
accuratel$.
5. %rap's coul# 'a>e "een a##e# in or#er to (et t'e recor#s more clearl$.
&onclusion
B'ile #e>elopin( t'e s$stem a conscious effort 'as "een ma#e to create an#
#e>elop a soft;are pac+a(e/ ma+in( use of a>aila"le tools/ tec'niAues an#
resources = t'at ;oul# (enerate a proper $stem
B'ile ma+in( t'e s$stem/ an e$e 'as "een +ept on ma+in( it as user4
frien#l$/ as cost4effecti>e an# as fle1i"le as possi"le. As suc' one ma$ 'ope t'at
t'e s$stem ;ill "e accepta"le to an$ user an# ;ill a#eAuatel$ meet 'is-'er nee#s.
As in case of an$ s$stem #e>elopment processes ;'ere t'ere are a num"er
of s'ortcomin(s/ t'ere 'a>e "een some s'ortcomin(s in t'e #e>elopment of t'is
s$stem also. T'e pro:ect is still un#er mo#ification.
7I7(I$'!PH*
7$$+S 'E%E''E"
)ntro#uction To Pro(rammin( ;it' !isual *asic .NET
*$ %ar$ J. *ronson
,E7 (IN+
'ttp2--;;;.#reaminco#e.net
'ttp2--;;;.a.>"co#e.com
Co#e #esi(n
(ogin
Public Shared temp As String
Public Shared flag As Integer
Dim hcl As Integer
Private Sub Login_Load(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 'yBaseLoad
!leDb(onnection)!pen(%
Dim ob"*eader As !leDbData*eader + !leDb(ommand)$,ecute*eader
Do -hile ob"*eader*ead(%
(omboBo,)ItemsAdd(ob"*eader(./S$*_0A'$.%%
Loop
!leDb(onnection)(lose(%
1e,tBo,)2ocus(%
$nd Sub
Private Sub Button)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)(lic3
Dim username# pass4ord# temp)# temp5 As String
Dim *ead As !leDb!leDbData*eader
If (omboBo,)1e,t 67 .. And 1e,tBo,)1e,t 67 .. 1hen
username + /(ase((omboBo,)1e,t%
pass4ord + /(ase(1e,tBo,)1e,t%
temp + /(ase(1e,tBo,)1e,t%
!leDb(ommand5ParametersAdd(./S$*_0A'$.#
Data!leDb!leDb1ypeLongVar(har%
!leDb(ommand5Parameters(./S$*_0A'$.%Value + username
!leDb(onnection)!pen(%
*ead + !leDb(ommand5$,ecute*eader
-ith *ead
-hile *ead
temp) + 8etValue(9%
temp5 + 8etValue()%
$nd -hile
$nd -ith
!leDb(onnection)(lose(%
If pass4ord$:uals(temp)% + 1rue 1hen
'e&ide(%
curr + 0e4 'ain
;currSho4(%
curr&ide(%
$lse
'essageBo,Sho4(.-rong Pass4ord <<<.# .Login $rror.#
'essageBo,Buttons!=# 'essageBo,Icon$,clamation%
8o1o bug)
1e,tBo,)2ocus(%
$nd If
If temp$:uals(.AD'I0.% + 1rue 1hen
flag + )
$nd If
If temp$:uals(.!P.% + 1rue 1hen
flag + 5
$nd If
hcl + 'sgBo,(.Login Successful -elcome to Sales and Inventory
'anagement System <<<.# 'sgBo,Style!=!nly > vbInformation# .Sales And
Inventory 'anagement System.%
If (hcl + 'sgBo,*esult!=% 1hen
curr + 0e4 'ain
currSho4(%
$nd If
$lse
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Sales and Inventory 'anagement System.%
bug)?
(omboBo,)2ocus(%
$nd If
$nd Sub
Private Sub Button5_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button5(lic3
$nd
$nd Sub
$nd (lass
Transaction screen
Imports SystemData
Public (lass transaction
Inherits System-indo4s2orms2orm
Public Shared temporder_no As Integer
Public Shared temporder_value As Integer
Public Shared tempplant_code As String
Dim random As 0e4 random
Dim num As Integer + random0e,t(@@@@@%
Dim challan_no As Integer + random0e,t(@@@%
Dim order_no As Integer
Dim order_creation_date As Date
Dim order_status As String
Dim customer_ref_no As String
Dim customer_slno As String
Dim customer_ref_date As Date
Dim order_value As Integer
Dim plant_code As String
Dim material_re:uired_date As Date
Dim customer_initial As String
Dim delivery_challan_no As Integer
Dim shipment_date As Date
Dim invoice_number As Integer
Dim invoice_date As Date
Dim transporter_name As String
Dim machine_installed_by As String
Dim che:ue_no As String
Dim ban3_name As String
Private Sub Button)9)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)9)(lic3
'e(lose(%
$nd Sub
Private Sub Button)99_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)99(lic3
'e1abPage)$nabled + 1rue
'e1ab(ontrol)SelectedInde, + 9
$nd Sub
Private Sub transaction_Load(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 'yBaseLoad
'e1abPage)$nabled + 2alse
'e1abPage5$nabled + 2alse
'e1abPageA$nabled + 2alse
'e1abPageB$nabled + 2alse
'e1abPageC$nabled + 2alse
'e1abPageD$nabled + 1rue
'e1ab(ontrol)SelectedInde, + C
1e,tBo,)1e,t + Str(num%
temporder_no + num
Button))Visible + 2alse
$nd Sub
Private Sub ButtonA_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonA(lic3
If 1e,tBo,)1e,t 67 .. And 1e,tBo,B1e,t 67 .. And 1e,tBo,C1e,t 67
.. And 1e,tBo,A1e,t 67 .. And 1e,tBo,5)1e,t 67 .. And Date1imePic3er)1e,t
67 .. And Date1imePic3erC1e,t 67 .. 1hen
'e1abPage5$nabled + 1rue
'e1ab(ontrol)SelectedInde, + )
'e1abPage)$nabled + 2alse
order_no + 1e,tBo,)1e,t
order_creation_date + Date1imePic3er)1e,t
order_status + .S(&D.
customer_ref_no + 1e,tBo,B1e,t
customer_ref_date + Date1imePic3er51e,t
material_re:uired_date + Date1imePic3erC1e,t
order_value + 1e,tBo,5)1e,t
plant_code + 1e,tBo,C1e,t
customer_slno + 1e,tBo,A1e,t
1e,tBo,)51e,t + Str(order_no%
1e,tBo,551e,t + order_status
customer_initial + 'id(customer_slno# )# )%
1e,tBo,BD1e,t + customer_initial
1e,tBo,)A1e,t + Str(challan_no%
$lse
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Sales 'anagement System.%
1e,tBo,A2ocus(%
$nd If
$nd Sub
Private Sub ButtonB_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonB(lic3
If 1e,tBo,)A1e,t 67 .. And 1e,tBo,)B1e,t 67 .. 1hen
Dim invoice_int As Integer
Dim random As 0e4 *andom
Dim num As Integer + random0e,t(@@@@@%
'e1abPageA$nabled + 1rue
'e1ab(ontrol)SelectedInde, + 5
order_status + .S&IP.
delivery_challan_no + 1e,tBo,)A1e,t
shipment_date + Date1imePic3erA1e,t
transporter_name + 1e,tBo,)B1e,t
invoice_int + Val(1e,tBo,5A1e,t% > Val(num%
1e,tBo,5A1e,t + Str(delivery_challan_no%
1e,tBo,5E1e,t + Str(invoice_int%
1e,tBo,5@1e,t + Str(order_value%
Dim *ead As !leDb!leDbData*eader
If customer_slno 67 .. 1hen
account(ommand)ParametersAdd(.cust_slno.#
Data!leDb!leDb1ypeInteger%
account(ommand)Parameters(.cust_slno.%Value + customer_slno
account(onnection)!pen(%
*ead + account(ommand)$,ecute*eader(%
-ith *ead
-hile *ead
1e,tBo,5B1e,t + 8etValue(9%
1e,tBo,5C1e,t + 8etValue()%
1e,tBo,5D1e,t + 8etValue(5%
1e,tBo,5F1e,t + 8etValue(A%
$nd -hile
$nd -ith
account(onnection)(lose(%
$nd If
$lse
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Sales 'anagement System.%
1e,tBo,)B2ocus(%
$nd If
$nd Sub
Private Sub ButtonC_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonC(lic3
'e1abPageB$nabled + 1rue
'e1ab(ontrol)SelectedInde, + A
order_status + .I0V8.
invoice_number + Val(1e,tBo,5E1e,t%
invoice_date + Date1imePic3erB1e,t
1e,tBo,AD1e,t + Str(delivery_challan_no%
Dim *ead As !leDb!leDbData*eader
If customer_slno 67 .. 1hen
mach(ommand)ParametersAdd(.cust_slno.#
Data!leDb!leDb1ypeInteger%
mach(ommand)Parameters(.cust_slno.%Value + customer_slno
mach(onnection)!pen(%
*ead + mach(ommand)$,ecute*eader(%
-ith *ead
-hile *ead
1e,tBo,AC1e,t + 8etValue(9%
1e,tBo,AA1e,t + 8etValue()%
1e,tBo,AB1e,t + 8etValue(5%
1e,tBo,A)1e,t + 8etValue(A%
$nd -hile
$nd -ith
mach(onnection)(lose(%
$nd If
$nd Sub
Private Sub ButtonD_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonD(lic3
If 1e,tBo,A91e,t 67 .. 1hen
'e1abPageC$nabled + 1rue
'e1ab(ontrol)SelectedInde, + B
order_status + .'A(I.
1e,tBo,B)1e,t + Str(order_no%
1e,tBo,A51e,t + order_status
machine_installed_by + 1e,tBo,A91e,t
Dim *ead As !leDb!leDbData*eader
If customer_slno 67 .. 1hen
com(ommand)ParametersAdd(.cust_slno.#
Data!leDb!leDb1ypeInteger%
com(ommand)Parameters(.cust_slno.%Value + customer_slno
com(onnection)!pen(%
*ead + com(ommand)$,ecute*eader(%
-ith *ead
-hile *ead
1e,tBo,B91e,t + 8etValue(9%
1e,tBo,AE1e,t + 8etValue()%
1e,tBo,A@1e,t + 8etValue(5%
1e,tBo,AF1e,t + 8etValue(A%
$nd -hile
$nd -ith
com(onnection)(lose(%
$nd If
$lse
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Sales 'anagement System.%
1e,tBo,A92ocus(%
$nd If
$nd Sub
Private Sub ButtonF_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonF(lic3
If 1e,tBo,B51e,t 67 .. And 1e,tBo,)1e,t 67 .. 1hen
order_status + .PG'*.
che:ue_no + 1e,tBo,B51e,t
ban3_name + 1e,tBo,BA1e,t
!n $rror 8o1o fi,
If 1e,tBo,A51e,t + .. !r 1e,tBo,AF1e,t + .. !r 1e,tBo,AE1e,t +
.. !r 1e,tBo,A@1e,t + .. !r 1e,tBo,B91e,t + .. !r 1e,tBo,B)1e,t + .. !r
1e,tBo,B51e,t + .. !r 1e,tBo,BA1e,t + .. 1hen
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Library System.%
$,it Sub
$nd If
payment(onnection)!pen(%
payment(ommand)(ommand1e,t + _
.I0S$*1 I01! !*D$*_&$AD$*(ban3_name# che:ue_no# customer_initial#
customer_ref_date# customer_ref_no# customer_slno# delivery_challan_no#
invoice_date# invoice_number#machine_installed_by# material_re:uired_date#
order_creation_date# order_no# order_status# order_value# plant_code#
shipment_date#transporter_name%VAL/$S(;. H ban3_name H .;#;. H che:ue_no H
.;#;. H customer_initial H .;#;. H customer_ref_date H .;#;. H
customer_ref_no H .;#;. H customer_slno H .; #;. H delivery_challan_no H
.;#;. H invoice_date H .;#;. H invoice_number H .;#;. H machine_installed_by
H .;# ;. H material_re:uired_date H .; # ;. H order_creation_date H .;# ;. H
order_no H .;# ;. H order_status H .;# ;. H order_value H .;# ;. H plant_code
H .;# ;. H shipment_date H .; #;. H transporter_name H .;%.
'sgBo,(.0e4 *ecord has been added.# vbInformation# .Sales
'anagement System.%
payment(ommand)$,ecute0onIuery(%
payment(onnection)(lose(%
'e(lose(%
fi,?
$,it Sub
$lse
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Sales 'anagement System.%
1e,tBo,B52ocus(%
$nd If
$nd Sub
Private Sub Button5_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button5(lic3
Dim str) As String
Dim *ead As !leDb!leDbData*eader
If 1e,tBo,A1e,t 67 .. 1hen
str) + 1e,tBo,A1e,t
If str) 67 .. 1hen
order(ommand)ParametersAdd(.cust_slno.#
Data!leDb!leDb1ypeInteger%
order(ommand)Parameters(.cust_slno.%Value + str)
order(onnection)!pen(%
*ead + order(ommand)$,ecute*eader(%
-ith *ead
-hile *ead
1e,tBo,D1e,t + 8etValue(9%
1e,tBo,F1e,t + 8etValue()%
1e,tBo,E1e,t + 8etValue(5%
1e,tBo,@1e,t + 8etValue(A%
1e,tBo,)91e,t + 8etValue(B%
1e,tBo,))1e,t + 8etValue(C%
$nd -hile
$nd -ith
order(onnection)(lose(%
$nd If
$lse
'sgBo,(.Please provide an (ustomer (ode to search.#
'sgBo,Style$,clamation# .Sales 'anagement System.%
1e,tBo,A2ocus(%
$nd If
$nd Sub
Private Sub Button)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)(lic3
curr + 0e4 !rderdetail
currSho4(%
Button)Visible + 2alse
Button))Visible + 1rue
order_status + .*$VD.
$nd Sub
Private Sub Button))_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button))(lic3
1e,tBo,5)1e,t + temporder_value
1e,tBo,C1e,t + tempplant_code
order_status + .(L*D.
$nd Sub
Private Sub Button)9_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs%
1e,tBo,551e,t + order_status
$nd Sub
Private Sub ButtonE_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonE(lic3
Dim en: As String
Dim *ead As !leDb!leDbData*eader
If 1e,tBo,)C1e,t 67 .. 1hen
en: + 1e,tBo,)C1e,t
en:uiry(ommandParametersAdd(.order_no.#
Data!leDb!leDb1ypeInteger%
en:uiry(ommandParameters(.order_no.%Value + en:
en:uiry(onnection!pen(%
*ead + en:uiry(ommand$,ecute*eader(%
-ith *ead
-hile *ead
1e,tBo,591e,t + 8etValue()%
1e,tBo,)D1e,t + 8etValue(5%
1e,tBo,)F1e,t + 8etValue(A%
1e,tBo,)E1e,t + 8etValue(B%
1e,tBo,)@1e,t + 8etValue(C%
1e,tBo,BB1e,t + 8etValue(F%
1e,tBo,BC1e,t + 8etValue(D%
$nd -hile
$nd -ith
en:uiry(onnection(lose(%
$lse
'essageBo,Sho4(.Please $nter the !rder 0o <<<.# .Sales
'anagement System.# 'essageBo,Buttons!=# 'essageBo,Icon$,clamation%
$nd If
$nd Sub
Private Sub Button@_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button@(lic3
1e,tBo,)C1e,t + ..
1e,tBo,)D1e,t + ..
1e,tBo,)F1e,t + ..
1e,tBo,)E1e,t + ..
1e,tBo,)@1e,t + ..
1e,tBo,591e,t + ..
1e,tBo,BB1e,t + ..
1e,tBo,BC1e,t + ..
1e,tBo,)C2ocus(%
$nd Sub
Private Sub 8roupBo,)_$nter(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 8roupBo,)$nter
$nd Sub
Private Sub 1abPage)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 1abPage)(lic3
$nd Sub
$nd (lass
!dd customer
Imports SystemData!leDb
Public (lass Addcust
Inherits System-indo4s2orms2orm
Private Sub ButtonA_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonA(lic3
'e(lose(%
$nd Sub
Private Sub Button5_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button5(lic3
1e,tBo,)1e,t + ..
1e,tBo,51e,t + ..
1e,tBo,A1e,t + ..
1e,tBo,B1e,t + ..
1e,tBo,C1e,t + ..
1e,tBo,D1e,t + ..
1e,tBo,F1e,t + ..
1e,tBo,E1e,t + ..
1e,tBo,@1e,t + ..
1e,tBo,)91e,t + ..
(omboBo,)1e,t + ..
$nd Sub
Private Sub Button)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)(lic3
!n $rror 8o1o fi,
If 1e,tBo,)1e,t + .. !r 1e,tBo,51e,t + .. !r 1e,tBo,A1e,t + .. !r
1e,tBo,B1e,t + .. !r 1e,tBo,C1e,t + .. !r 1e,tBo,D1e,t + .. !r
1e,tBo,F1e,t + .. !r 1e,tBo,E1e,t + .. !r 1e,tBo,@1e,t + .. !r
1e,tBo,)91e,t + .. !r (omboBo,)1e,t + .. 1hen
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Sales 'anagement System.%
$,it Sub
$nd If
!leDb(onnection)!pen(%
!leDb(ommand)(ommand1e,t + _
.I0S$*1 I01! customer_master(cust_slno# cust_name# cust_initial# cust_add)#
cust_add5# cust_addA# contact_person_name# contact_person_number#
cust_pincode# cust_city#state_code%VAL/$S(;. H 1e,tBo,)1e,t H .;# ;. H
1e,tBo,51e,t H .;#;. H 1e,tBo,A1e,t H .;# ;. H 1e,tBo,B1e,t H .;#;. H
1e,tBo,C1e,t H .;# ;. H 1e,tBo,D1e,t H .;#;. H 1e,tBo,F1e,t H .;# ;. H
1e,tBo,E1e,t H .;#;. H 1e,tBo,@1e,t H .;# ;. H 1e,tBo,)91e,t H .;#;. H
(omboBo,)1e,t H .;%.
'sgBo,(.0e4 (ustomer has been added.# vbInformation# .Sales
'anagement System.%
!leDb(ommand)$,ecute0onIuery(%
!leDb(onnection)(lose(%
'e(lose(%
fi,?
$,it Sub
$nd Sub
Private Sub Addcust_Load(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 'yBaseLoad
1e,tBo,)2ocus(%
!leDb(onnection5!pen(%
Dim ob"*eader As !leDbData*eader + !leDb(ommand5$,ecute*eader
Do -hile ob"*eader*ead(%
(omboBo,)ItemsAdd(ob"*eader(.state_code.%%
Loop
!leDb(onnection5(lose(%
$nd Sub
Private Sub 8roupBo,)_$nter(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 8roupBo,)$nter
$nd Sub
$nd (lass
Edit material
Public (lass $ditmaterial
Inherits System-indo4s2orms2orm
Private Sub Button5_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button5(lic3
'e(lose(%
$nd Sub
Private Sub Button)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)(lic3
!leDb(onnection)!pen(%
1ry
Dim int*o4 As Integer + 'eBinding(onte,t(DataSetS'S#
.material_master.%Position J )
'eBinding(onte,t(DataSetS'S# .material_master.%Position >+
int*o4
!leDbDataAdapter)/pdate(DataSetS'S%
'sgBo,(.(hanges has been successfully save.# vbInformation#
.Sales 'anagement System.%
(atch
$nd 1ry
!leDb(onnection)(lose(%
'e(lose(%
$nd Sub
Private Sub ButtonA_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonA(lic3
!n $rror 8o1o fi,
'eBinding(onte,t(DataSetS'S# .material_master.%Position + 9
(ount(%
fi,?
$,it Sub
$nd Sub
Private Sub ButtonB_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonB(lic3
!n $rror 8o1o fi,
'eBinding(onte,t(DataSetS'S# .material_master.%Position J+ )
(ount(%
fi,?
$,it Sub
$nd Sub
Private Sub ButtonC_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonC(lic3
!n $rror 8o1o fi,
'eBinding(onte,t(DataSetS'S# .material_master.%Position >+ )
(ount(%
fi,?
$,it Sub
$nd Sub
Private Sub ButtonD_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonD(lic3
!n $rror 8o1o fi,
'eBinding(onte,t(DataSetS'S# .material_master.%Position +
'eBinding(onte,t(DataSetS'S# .material_master.%(ount J )
(ount(%
fi,?
$,it Sub
$nd Sub
Private Sub (ount(%
Dim *ecords# (urrent As Integer
Dim enableBac3 As Boolean + 2alse
Dim enable2or4ard As Boolean + 2alse
*ecords + 'eBinding(onte,t(DataSetS'S# .material_master.%(ount
(urrent + 'eBinding(onte,t(DataSetS'S# .material_master.%Position >
)
If 'eBinding(onte,t(DataSetS'S# .material_master.%Position 7 9 1hen
enableBac3 + 1rue
$nd If
If Binding(onte,t(DataSetS'S# .material_master.%Position 6
DataSetS'Smaterial_master(ount J ) 1hen
enable2or4ard + 1rue
$nd If
ButtonA$nabled + enableBac3
ButtonB$nabled + enableBac3
ButtonC$nabled + enable2or4ard
ButtonD$nabled + enable2or4ard
$nd Sub
Private Sub $ditcust_Load(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 'yBaseLoad
1e,tBo,)2ocus(%
DataSetS'S(lear(%
!leDbDataAdapter)2ill(DataSetS'S%
(ount(%
$nd Sub
Private Sub ButtonF_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonF(lic3
Dim str) As String
Dim *ead As !leDb!leDbData*eader
str) + InputBo,(.$nter 'aterial (ode ?.# .Search by 'aterial (ode.%
If str) 67 .. 1hen
!leDb(ommand)ParametersAdd(.material_code.#
Data!leDb!leDb1ypeInteger%
!leDb(ommand)Parameters(.material_code.%Value + str)
!leDb(onnection)!pen(%
*ead + !leDb(ommand)$,ecute*eader(%
-ith *ead
-hile *ead
1e,tBo,)1e,t + 8etValue(9%
1e,tBo,51e,t + 8etValue()%
1e,tBo,A1e,t + 8etValue(5%
1e,tBo,B1e,t + 8etValue(A%
$nd -hile
$nd -ith
!leDb(onnection)(lose(%
$nd If
$nd Sub
$nd (lass
$rder "etail
Imports SystemData!leDb
Public (lass !rderdetail
Inherits System-indo4s2orms2orm
Public Shared temp) As String
Public Shared temp5 As String
Dim :ty As Integer
Dim item_value As Integer
Private Sub !rderdetail_Load(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 'yBaseLoad
1e,tBo,)$nabled + 2alse
ButtonB$nabled + 2alse
1e,tBo,A$nabled + 2alse
1e,tBo,B$nabled + 2alse
1e,tBo,C$nabled + 2alse
1e,tBo,)1e,t + Str(transactiontemporder_no%
material(onnection!pen(%
Dim ob"*eader As !leDbData*eader + material(ommand$,ecute*eader
Do -hile ob"*eader*ead(%
(omboBo,)ItemsAdd(ob"*eader(.material_code.%%
Loop
material(onnection(lose(%
$nd Sub
Private Sub ButtonA_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonA(lic3
1e,tBo,)1e,t + ..
(omboBo,)1e,t + ..
1e,tBo,51e,t + ..
1e,tBo,A1e,t + ..
1e,tBo,B1e,t + ..
1e,tBo,C1e,t + ..
ButtonB$nabled + 2alse
1e,tBo,A$nabled + 2alse
1e,tBo,B$nabled + 2alse
1e,tBo,C$nabled + 2alse
$nd Sub
Private Sub Button5_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button5(lic3
'e(lose(%
$nd Sub
Private Sub Button)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)(lic3
Dim str) As String
Dim *ead As !leDb!leDbData*eader
1e,tBo,A$nabled + 1rue
1e,tBo,B$nabled + 1rue
1e,tBo,C$nabled + 1rue
ButtonB$nabled + 1rue
matorderdetail(ommand)ParametersAdd(.material_code.#
Data!leDb!leDb1ypeInteger%
matorderdetail(ommand)Parameters(.material_code.%Value + str)
matorderdetail(onnection)!pen(%
*ead + matorderdetail(ommand)$,ecute*eader
-ith *ead
-hile *ead
1e,tBo,B1e,t + 8etValue(A%
1e,tBo,C1e,t + 8etValue(5%
$nd -hile
$nd -ith
matorderdetail(onnection)(lose(%
:ty + Val(1e,tBo,C1e,t%
item_value + :ty K Val(1e,tBo,51e,t%
1e,tBo,A1e,t + Str(item_value%
$nd Sub
Private Sub ButtonB_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles ButtonB(lic3
Dim flag As Integer
!n $rror 8o1o fi,
If 1e,tBo,)1e,t + .. !r 1e,tBo,51e,t + .. !r 1e,tBo,A1e,t + .. !r
1e,tBo,B1e,t + .. !r 1e,tBo,C1e,t + .. !r (omboBo,)1e,t + .. 1hen
'sgBo,(.All fields re:uired not to be a null value.#
vb$,clamation# .Library System.%
$,it Sub
$nd If
orderdetailinsert(onnection)!pen(%
orderdetailinsert(ommand)(ommand1e,t + _
.I0S$*1 I01!
order_detail(order_no#material_code#item_:ty#item_value%VAL/$S(;. H
1e,tBo,)1e,t H .;# ;. H (omboBo,)1e,t H .;#;. H 1e,tBo,51e,t H .;# ;. H
1e,tBo,A1e,t H .;%.
flag + 'sgBo,(.!rder Placed<<<.# 'sgBo,Style!=!nly > vbInformation#
.Sales 'anagement System.%
If (flag + 'sgBo,*esult!=% 1hen
transactiontemporder_value + item_value
transactiontempplant_code + 1e,tBo,B1e,t
$nd If
orderdetailinsert(ommand)$,ecute0onIuery(%
orderdetailinsert(onnection)(lose(%
'e(lose(%
fi,?
$,it Sub
'e(lose(%
$nd Sub
Private Sub 8roupBo,)_$nter(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles 8roupBo,)$nter
$nd Sub
$nd (lass
$rder Status
Public (lass !rderstatus
Inherits System-indo4s2orms2orm
Private Sub Button5_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button5(lic3
'e(lose(%
$nd Sub
Private Sub Button)_(lic3(ByVal sender As System!b"ect# ByVal e As
System$ventArgs% &andles Button)(lic3
!n $rror 8o1o fi,
If 1e,tBo,)1e,t + .. And 1e,tBo,51e,t + .. 1hen
'sgBo,(.State (ode and State Description cannot be a null
value.# vb$,clamation# .Sales 'anagement System.%
$,it Sub
$nd If
!leDb(onnection)!pen(%
!leDb(ommand)(ommand1e,t + _
.I0S$*1 I01! status_master(order_status# description%. H _
.VAL/$S(;. H 1e,tBo,)1e,t H .;#;. H 1e,tBo,51e,t H .;%.
'sgBo,(.0e4 State has been successfully added.# vbInformation#
.Sales 'anagement System.%
!leDb(ommand)$,ecute0onIuery(%
!leDb(onnection)(lose(%
'e(lose(%
fi,?
$,it Sub
$nd Sub
Test &ases
&ase
no.
Scenario Sr.no !ction E./ected
$ut/ut
!ctual
$ut/ut
'esult
. Do(in A @ser
for(ets to
enter t'e
username-
pass;or#
Messa(e
;in#o;
sa$in(
Please
enter t'e
username-
pass;or#
Messa(e
;in#o;
sa$in(
Please
enter t'e
username-
pass;or#
PA
* @ser enters
;ron(
username-
pass;or#
Messa(e
;in#o;
sa$in(
Bron(
username-
pass;or#
Messa(e
;in#o;
sa$in(
Bron(
username-
pass;or#
PA
C @ser enters
correct
username-
pass;or#
Ta+es user
to
Homepa(e
Ta+es user
to
Homepa(e
PA
&ase
no.
Scenario Sr.no !ction E./ected
$ut/ut
!ctual
$ut/ut
'esult
3 Placin(
Or#er
A @ser enters
;ron(
customer
co#e
Messa(e
;in#o;
sa$in(
Customer
&oes not
e1ist
Messa(e
;in#o;
sa$in(
Customer
&oes not
e1ist
PA
* @ser #oes
not enters
ome
recor# e.(
name
Messa(e
;in#o;
sa$in(
Name
'oul# Not
"e null
Messa(e
;in#o;
sa$in(
Name
'oul# Not
"e null
PA
C @ser Enters
;ron(
plant co#e
Messa(e
;in#o;
sa$in(
)n>ali#
co#e
Messa(e
;in#o;
sa$in(
)n>ali#
co#e
PA
Reports
Or#er Pen#in(-*oo+in(-*illin(
Or#er anal$sis in term of #ates
*alance Pa$ment report
State Transition "iagram for su//lier
)n>ali#
useri# -
p;#
Do()n
!ali#ate
@ser8i#
an# P;#
)nitiate
Or#er
Or#er
&etails
Trac+s
Or#er
'ipment
'ipment
a>aila"ili
t$
C'ec+ For t'e
transport
&ispatc'
or#er
)n>oice
)n>oice
#etails
Pa$ment &etails
Recor#s
@p#ate
Recor#s
!ctivity "iagram for system:
Customer upplier 'ipment
ReAuest Material
Trac+s Or#er
Recei>e Or#er *ill Customer
Pa$ *ill
en# %RN
Close Or#er
'ip Or#er
%et
Materials

You might also like