Scribd Upload a Document

Top of Form

stock modu

Search Documents
Bottom of Form

Explore

Documents
• • • • • • • • • •

Books - Fiction Books - Non-fiction Health & Medicine Brochures/Catalogs Government Docs How-To Guides/Manuals Magazines/Newspapers Recipes/Menus School Work + all categories Featured Recent Authors Students Researchers Publishers Government & Nonprofits Businesses Musicians Artists & Designers Teachers + all categories Most Followed Popular Sign Up |


• • • • • • • • • • • •

People


• • •

Log In

1
First Page Previous Page Next Page

/ 67
Sections not available Zoom Out Zoom In Fullscreen Exit Fullscreen Select View Mode

View Mode SlideshowScroll
Top of Form

Bottom of Form

Readcast Add a Comment Embed & Share

Reading should be social! Post a message on your social networks to let others know what you're reading. Select the sites below and start sharing. Readcast this Document
Top of Form

47770c67074afa

Login to Add a Comment

4gen
Bottom of Form

Share & Embed
Add to Collections Auto-hide: on

Download this Document for Free

Stock maintenance system

ABSTRACT
Stock maintenance system

The main objective of this project is to overcome the work load and time consumptionwhic h makes the maintenance of

the stock in an organization as a tedious process. This project provides complete information about the details of the stock to the users. This project .

identifies the amount of stock available.products that are replaced.products .the product that is purchased faults in the product.

and the date at which the products are bought and sold in a particular concern.that have been sold.Separate modules have been createdfor .

details and delivery details.selling.purchasing. viewing stock details.As a whole.marketing process can be improved if stock .

has been maintained properly.0 as a front end and oracle 9ias back .This project is developed with help of visual basic 6.

The application software Rational Rose is also used. I CONTENTS Stock maintenance system .end.

N o T i t l e P a g e N o Abstr acts List of figuresList of tables .S .

System tools 2.1problem 1.Methodology .Introducti on 1.2 ORACLE9i 3.1 MS-VISUAL basic2.2pr oblem definition 2.IIIIII1.

2 database connectivity 4.1 concept3.2 software requirement .System requirement 4.1 hardware requirement4.3.

System modules 5.1.1 structural diagram5.1.1 use case diagram5.5 sequence .3 state diagram5.4 activity diagram5.5.2 class diagram5.1.1.1.

6 collaboration diagram5.1.4 .3 delivery module5.1 stock module5.2.2.2.2 sales module5.diagram5.2 module diagram5.2.

Implementa tion and result .replacing the fault module 6.

.

Stock maintenance system LIST OF FIGURES FIG NO TITLE PAGE NOOVER ALL DIAGRAM .

STATE DIAGRAM 4. CLASS DIAGRAM 3. . USE CASE DIAGRAM 2.1.

ACTIVITY DIAGRAM 5. SEQUENCE DIAGRAM 6. COLLABORATI ON DIAGRAM .

CLASS DIAGRAM 3. USE CASE DIAGRAM 2.STOCK MODULE 1. .

.STATE DIAGRAM 4. ACTIVITY DIAGRAM 5. SEQUENCE DIAGRAM 6.

USE CASE DIAGRAM .COLLABORATI ON DIAGRAM Stock maintenance system SALES MODULE 1.

2. . STATE DIAGRAM 4. ACTIVITY DIAGRAM 5. CLASS DIAGRAM 3.

SEQUENCE DIAGRAM 6. COLLABORATI ON DIAGRAM DELIVERY MODULE 1. .

USE CASE DIAGRAM 2. STATE DIAGRAM 4. . CLASS DIAGRAM 3.

ACTIVITY DIAGRAM 5. COLLABORATI ON DIAGRAM . SEQUENCE DIAGRAM 6.

.REPLASEING THE FAULT MODULE 1. CLASS DIAGRAM 3. USE CASE DIAGRAM 2.

. ACTIVITY DIAGRAM 5. SEQUENCE DIAGRAM 6.STATE DIAGRAM 4.

COLLABORATI ON DIAGRAM Stock maintenance system II LIST OF TABLES .

REPLACING . DELIVERY MODULE 4. SALES MODULE 3.TABLE NO TITLE PAGE NO 1. STOCK MODULE2.

THE FAULTS MODULE Stock maintenance system III 1. INTRODUCTI .

1 PROBLEM Stock Maintenance gives an idea about how products are maintained in the particular .ON1.

concern. the products that are to be soldare maintained here. The products that are to be purchased.This project also gives idea about the faults in .

Further some additional details of the currentstock that .the purchased product and the productsthat are to be replaced also been given.

The password and user idhas been .is available in the store is also given.Stock maintenance in this project is done in an authorized way.

set here. As a whole the marketing process can be improved if the stock ismaintained properly. .

2PROBLEM DEFINITION: The stock has to be maintained properly since the whole marketing process can beimproved. Stock .1.

The stock details which includes .maintenance in this project gives the idea about how products aremaintained in a particular concern.

the amount of stock available. the date or the time it is being bought or delivered. the stock is to be purchased. the amount that is alreadyavailable .

Stock maintenance systemThe stock maintenance in this project is understood by goin through the .are maintained in this project.

modules that is being involved. . The whole economic status is being improved properly if stock ismaintained.

1 MSVISUAL BASIC: .Stock maintenance system 2. SOFTWARE TOOLS2.

Visual Basic 6.0 is fastest and easiest way to create single user and client/server applications for Microsoft Windows.0 provides .Visual Basic 6.

The .complete set of tools tosimplify rapid application development both for the experienced professional and newwindows programmers.

The “Basic” part refers to the BASIC language .“Visual” part refers to the method used to create GraphicalUser Interface.

used by more programmers than any other language in the history of computing. It is an ideal programming language for .

developing sophisticated professional applications for Microsoft.2 ORACLE 9i: Oracle 9i makes most necessary . 2.

conversion to the code automatically when weconvert our data base. However the conversion process makes some changes to .

and there are some additional changes that must made in order torun the application .codethat need to aware of.

METHODOL OGY Stock maintenance system .successfully in oracle. 3.

1 CONCEPT Storing of information about the stock values and updating the stock values for each organization which is using this system.3. keeps .

track of all the information about thestock exchange that are made by the customers. having registration feature of adding upnew customers .

2 DATABASE CONNECTIVI TY: .to the organization are provided in this system. 3.

The front end used for implementation of this project is Visual Basic 6.0 and the back end that is used for this project is Oracle9i.The .

0 and oracle9i is provided by using Microsoft ADO Data control6.database connectivity betweenVisual Basic 6..0(OLED .

B). Thus the project makes use of the internal feature of ADODC for communicating with the database and this is responsible for .

transfer of data to and fromthe table from and to the front end. ODBC datasource are .A term used to a database or database server used as a source of data.

Data sources can be created byusing the windows control panel or the register database .referred to by their Data Source Name (DSN).

method. ODBCdrivers . A standard protocol that permits application to connect to a variety of external database servers or files.

To add ADO data .used by the Microsoft database engine permit access to Microsoft SQL server and several other databases.

control to the toolbox go to the components and select Microsoft ado Data control 6. There are three different options insettingconnectio .0(OLEDB).

Use ODBC Data source name : any ODBC DSN can . Use data link file : any data link file already stored can be specified.n string. They are as follows1.2.

.3.be specified. Use connection string: choose build to create a new connection String specifying the OLEDB provider.

1 Hardware Requirements: Stock maintenance systemP r o c e s s .SYSTEM REQUIREME NT4.4.

0 G H Z Strora ge Capacity:20 .or:Intel Pentium III or later.C P U S p e e d : 1 .

GBR A M Capacity: 512 MB 4.0B a c k .2 Software Requirements: Front End:VISU AL BASIC 6.

E n d : O r a c l e 9 i Operating System:Wind ows F a m i l y Applic ation Software:Ratio nal Rose

5.SYSTEM MODULES5.1 STRUCTURE DIAGRAMOV ERALL DIAGRAM5.1. 1 USE CASE DIAGRAM:

Use case diagram is a diagram that shows the interaction between the user and thesystem to captures the user’s goal.

Stock maintenance system 5.1.2 CLASS DIAGRAM: Class diagram or object modeling is a collection of static elements

such as classes,their relationships connected as a graph to each other. Stock maintenance system

COM P A NY M A NA GE R ida d d r e s s s upply item s() US E R nam e a d d r e s s request() p u r c h a s e ( ) DB M A NAGE Ru p d a t e ( ) d i s p l a y ( ) O RDE R LINEquantity pric e O RD E R pric e am

ount d i s p a t c h ( ) c l o s e ( ) S TO RE K E E PE Ra d d r e s s p h o n e n o DEA LE Rnam ea d d r e s s s e n d s price details()request replacing defected item s() Fig 1.2

5.1.3 STATE DIAGRAM:

State diagram shows that the sequence of states that an object goes through duringits life in response to

outside stimuli and messages.

4 ACTIVITY DIAGRAM Activity diagram is a variation or special case of a .Stock maintenance system 5.1.

state machine in whichthe states are activities representing the performance of operations and the transitions aretriggered by .

the completion of the operations. createrequirementfromcustomer check availablityreceivepayrollsupplyproductsr equestandreceive itemcheck for damageyesnoreplacedamageditems Fig 1.4 .

.

1.Stock maintenance system 5.5 SEQUENCE DIAGRAM: Sequence diagram is an easy and intuitive way of .

U S E R O R D E R S H O P KEEPERD E A L E .describing the behaviour of asystem by viewing the interaction between the system and its environment.

5 .RCOMPANYDB M A N A G E R requestforitemcheck foravailablityupdateprodectdetailsorder itemsaskforquotationsendprice detailscapturedealdispatch productrequestfordeliveryrequestfor customerdetailssendcustomer detailsupdatedeliverydetailcomplainabout defectdetailofdefectrequestforreplacing refecteditemsreplacedefectreplacedeliver itemcloseorder Fig 1.

.

Stock maintenance system 5.1.5 COLLABORA TION DEIAGRAM: .

Colloboration diagram represents a collaboration.which . which is a set of objectsrelated in a particular context and interaction.

USERORDE RSHOPKEE .is a set of exchanged amongt theobjects with in the collaboration to achieve a desired outcome.

PERDEALER C O M P A N YD B MANAGER1 : request for item2: check for availablity3: update .

prodect details4: order items5: ask for quotation6: send price details7: capture .

deal8: dispatch product9: request for delivery10: request for custom11: send customer .

details12: update delivery detail13: complain about defect14: detail of defect15: .

request for replacing refected items16: replace defect17: replace deliver .

6 .item18: close order Fig 1.

.

2 MODULE DIAGRAM Class diagram or object modeling is a collection of static elements .Stock maintenance system 5.

2. their relationships connected as a graph to each other.1 STOCK MODULE:US .such asclasses. 5.

E CASE DIAGRAM Stock maintenance system CLASS DIAGRAM: USERnameaddresscomplain()purchase()ST OREKEEPERuser idpassworddeliver()send defects .

details()ORDERpriceamountdispatch()close ()DBMANAGERupdate details()display details()COMPANYnameaddresssupply items()set limit()DEALERnameaddressreplace()reques t return() Fig 2.2 STATE DIAGRAM: .

Stock maintenance system .

ACTIVITY DIAGRAM:SE QUENCE DIAGRAM:C OLLABORAT ION DIAGRAM: .

2.2 SALES MODULE:US E CASE DIAGRAM: COMPANYMANAGERset limitDEALERDB MANAGERprice dealverify pricecapturedealSTORE KEEPERupdate product details .Stock maintenance system 5.

Fig 2.7

Stock maintenance system

CLASS DIAGRAM:
COMPANY nameaddr esssupply items()set limit() DEALER namea ddress replace()reque st return()ORDERpricea mountdispatch()clos e() DB MANAGER update

details()display details() STORE KEEPER user idpassword deliver()s end defects details()

Fig 2.8

STATE DIAGRAM:

Stock maintenance system

ACTIVITY DIAGRAM:SE

QUENCE DIAGRAM:C OLLABORAT ION DIAGRAM: Stock maintenance system .

5.3 DELIVERY MODULE:US E CASE DIAGRAM: USERDB MANAGERasks for product sends the productreceive paymentSTORE KEEPER update product's delivery details .2.

Fig 2.13 CLASS DIAGRAM: USERn ameadd ressco mplain( .

)purcha se()S T ORE KEEPE R user idpassw .

o r d deli ver()se nd defects details( )D B .

MANAG E updat e detailsd isplay details .

14 .Fig 2.

.

.

Stock maintenance system .

STATE DIAGRAM:A CTIVITY DIAGRAM: Stock maintenance system .

2.COLLABORA TION DIAGRAM: Stock maintenance system 5.4 REPLACING .

THE FAULT MODULE:US E CASE DIAGRAM: DB MANAGERUSER update detailscomplaints about defectSTORE KEEPER COMPANY MAN AGER details about defectreplaces the .

defectrequests for return DEALER return another product fig 2.18 .

.

Stock maintenance system .

CLASS DIAGRAM: COMPANYMANAGERreplace product()USERnameaddresscompl ain()purchase()DEALERnameaddres sreplace()request return()DB MANAGERupdate details()display details()STOREKEEPERuser idpassworddeliver()send defects details() Fig 2.19 .

STATE DIAGRAM: .

Stock maintenance system ACTIVITY DIAGRAM:C OLLABORAT ION DIAGRAM: .

1 .IMPLEMEN TATION AND RESULT:LOG IN FORM: Fig 6.Stock maintenance system 6.

2 CODING: Private Sub cmdCancel_Click ()LoginSucceeded = FalseUnload MeEnd SubPrivate Sub .OUTPUT: Fig 6.

"Error"ElseIf . vbCritical + vbOKOnly.cmdOK_Click()If (txtUserName.Tex t = "") ThenMsgBox "Enter a valid Username".

(txtPassword.Text = "") Then .

Stock maintenance systemMsgBox "Enter a valid Password". vbCritical + vbOKOnly. "Error"End If rs.Open .Closers.

1.EOF = True Then 'If Search is foundMsgBox "User not found".Text & "'"."Select Passwd from Login where uname = '" & txtUserName. db.2If rs. .

Text) ThenMsgBox "Invalid Password".vbCritical + vbOKOnly. "Error"ElseIf (rs. .Fields("Passw d") <> txtPassword.

vbCritical + vbOKOnly.Set FocusElseuser = txtUserName. "Error"txtPasswor d.Text If (txtUserName.Tex .Text = ""txtPassword.

Hid efrmmsg.Label1. Caption = "welcome to Stock Maintenance .t = "admin") ThenuserAdmin = TrueText1.Text = TruefrmLogin.

System"frmmsg.S howEnd If End If End Sub MAIN FROM: Stock maintenance system Fig :6.3 .

Stock maintenance system .

STOCK MAINTENAN CE: Fig 6.4 UPDATE: .

Stock maintenance system Fig :6.5 NEW ENTRY: .

6 .Fig 6.

.

.

Stock maintenance system SHOW ALL: Fig :6.7 CODING: Dim date1 As DateDim temp. p As Integer Dim . q.

db As New ADODB.Records etPrivate Sub cmddelete_Click() Dim str As StringIf (MsgBox("Are .Connecti onDim rs As New ADODB.

vbYesNo + vbQuestion.you sure you want to Delete it". "Stock") =vbYes) Thenstr = "delete from Stock where itemcode='" & rs! itemcode & "'" .

Execute str .Stock maintenance systemdb.

Closeconnectm eMsgBox "Deleted Successfully".SetFocusE nd If End If End .db. vbOKOnlycmbity pe.Visible = TrueElsefrmStock Details.

SubPrivate Sub Command2_Click ()If (MsgBox("Are you sure you want to update the stock". vbYesNo + vbQuestion."Stoc .

Upd ate "itemname".Text. txticode. txtiname.Update "itemtype". txtitype.Up .Upd ate "itemcode".Text.Text.k") = vbYes) ThenWith rs.

txtnetwt.U pdate "price".Text.Upd ate "date_of_entry".Upda te "quantity". txtdate.TextEnd . txtprice.Text. txtquantity.Text.date "netweight".

"Update"Unload MefrmStockDetai ls.ShowEnd If . vbInformation + vbOKOnly.WithMsgBox "Stock Detail modified successfully".

ElsefrmStockDeta ils.ShowEnd .SetFocusEnd SubPrivate Sub Command1_Click () Stock maintenance systemfrmpurchas e.

Visible = Falsecmbitype.Vis ible = TrueCall ResetEnd SubPrivate Sub Form_Load()conn .SubPrivate Sub Command3_Click ()txtitype.

ectmeMSHFlexGr id1.Visible = Falsers. adLockOptimistic Set MSHFlexGrid1.Closers.O pen "select * from stock ".D . adOpenKeyset. db.

"scott".Open "arun". j As Integer db. "tiger"Call Resetallrs.ataSource = rsEnd SubPrivate Sub connectme()Dim i As Integer.Open "select itemtype .

Ad dItem rs! itemtypers.Move NextWendtxtitype . adOpenKeyset.from stock group By itemtype ". db.EOF <> Truecmbitype.ad LockOptimisticW hile rs.

.Visible = False .V isible = True ThenMSHFlexGri d1.Visible = FalseEnd SubPrivate Sub Command4_Click ()If MSHFlexGrid1.

Visi ble = Truetxtiname.Visi ble = Truetxtamount.Vis ible = Truetxticode.Vi .Stock maintenance systemtxtitype.

Visib le = Truetxtdate.Vi sible = Truetxtprice.sible = Truetxtnetwt.Visibl e= .Visi ble = Truetxtquantity.

TrueCommand2.En abled = TrueElseUnload MeEnd If End SubPrivate Sub cmbitype_Click() Call .E nabled = Truecmddelete.

O pen "select * from stock where itemtype=" & "'" & cmbitype.adOpenKeyset. db.Text & "'".Closers. adLockOptimistic rs.MoveFirstcmbit .Resetrs.

Text = ! itemnametxtnetwt.ype. .Visi ble = TrueWith rstxtitype = ! itemtypetxticode =! itemcodetxtiname.Visible = Falsetxtitype.

T ext = !price Stock maintenance . Text = ! date_of_entrytxtq uantity.Text = ! quantitytxtprice.Text = ! netweighttxtdate.

system p = txtprice.Clear txticode.Texttxt amount.Text = p * qEnd WithEnd SubPublic Sub Resetall()cmbityp e.Text = .Textq = txtquantity.

""txtiname.Text = ""txtprice.Text = ""End SubPrivate Sub cmdfirst_Click()tx ticode.Text = ""txtquantity.Visible = .Text = ""txtnetwt.Text = ""txtdate.

Ena bled = Truers.Enabled = TruecmdLast.TrueOn Error GoTo Err cmdNext. Enabled = .MoveFirst DisplaycmdPrev.

Number = 3021 ThenMsgBox "NO CURRENT RECORD"cmdNe xt.FalsecmdFIrst.Enabled = .En abled = FalseErr:If Err.

FalsecmdLast.En abled = False Stock maintenance systemEnd If End .Ena bled = FalsecmdPrev.Ena bled = FalsecmdFIrst.

Ena bled = .Enabled = TruecmdPrev.Visible = TrueOn Error GoTo Err cmdFIrst.SubPrivate Sub cmdlast_Click()tx ticode.

Number = 3021 ThenMsgBox "NO CURRENT . Enabled = FalsecmdLast.Truers.Ena bled = FalseErr:If Err.MoveLast DisplaycmdNext.

Ena bled = FalsecmdFIrst.Ena bled = FalsecmdPrev.RECORD"cmdNe xt.En abled = FalseEnd If End SubPrivate .Enabled = FalsecmdLast.

Ena .EOF <> True ThencmdFIrst.BOF <> True And rs.Visible = TrueOn Error GoTo Err If rs.Sub cmdnext_Click()t xticode.

MoveNext DisplayElsers.Ena bled = Truers.Mo veLast Stock maintenance systemDisplaycm .bled = TruecmdPrev.

Enabled = .dNext.Enabled = FalsecmdLast.Number = 3021 ThenMsgBox "NO CURRENT RECORD"cmdNe xt.Ena bled = FalseEnd If If Err.

FalsecmdLast.En abled = FalseEnd If End SubPrivate Sub cmdprev_Click()t .Ena bled = FalsecmdFIrst.Ena bled = FalsecmdPrev.

BOF <> True And rs.xticode.Ena bled = TrueIf rs.EOF <> .Visible = TrueOn Error GoTo Err cmdNext.Enabled = TruecmdLast.

Enabled = FalsecmdFIrst.True Thenrs.MovePrevi ousDisplayElsers. MoveFirstDisplay cmdPrev.En abled = FalseEnd If Err:If .

Err.Ena bled = False .Number = 3021 ThenMsgBox "NO CURRENT RECORD"cmdNe xt.Enabled = FalsecmdLast.

En abled = FalseEnd If End Sub SALES MASTER: .Stock maintenance systemcmdPrev.E nabled = FalsecmdFIrst.

Stock maintenance system Fig 6.8 .

9 .Stock maintenance system OUTPUT: Fig :6.

10Fig :6.11 .Stock maintenance system Fig :6.

.

.

Connecti onDim rs As New ADODB. q As .Records etDim p.Stock maintenance system CODING: Dim db As New ADODB.

Enabl ed = TrueCommand1.E nabled = TrueLabel17.DoublePrivate Sub cmbitype_Click() Command6.Visi ble = .

Cl ear rs.Falsetxtcname.Vis ible = Falsetemp = cmbitype.TextCall Resetcmbicode.Open "select itemcode from stock where itemtype=" & "'" .

& temp & "'". adLockPessimisti cWhile rs.EOF <> Truecmbicode.Move NextWendrs.Clos . db.Ad dItem rs! itemcoders.adOpenDynam ic.

Open "select * from stock where itemtype= " & "'" & temp & "'". db.D ataSource = .ers.ad LockOptimisticSe t MSHFlexGrid1. adOpenKeyset.

Ena bled = TrueCommand1.CloseEnd SubPrivate Sub Command3_Click ()Command6.Visi ble = False .rsrs.E nabled = TrueLabel17.

V isible = FalseCall saveconnectmeEn d SubPrivate Sub Command6_Click ()rs1.Open "select * from itemorder .Stock maintenance systemtxtcname.

adOpenKeyset. adLockOptimistic rs1.Textrs1 !customername = . db.Textrs1! itemcode = cmbicode.AddNewrs1! billnumber = txtbillno.".

Textrs 1!amount = txtamount.Textrs1 .Textrs1! order_date = txtdate.Close MsgBox "Item .txtcname.Updaters1.Textrs1! orderedquantity = txtquantity.

. . "Order Master"MsgBox "your item will be Delivered as Soon as Possible".Detail Save Successfully ". "Order Master"Call .

saveCall saleanother Label17.Vis ible = FalseCommand1.Visible = Falsetxtcname. Enabled = TrueEnd SubPrivate Sub .

open1()rs2.Text & .Open "select * from stock where itemcode=" & "'" & cmbicode.Text & "'" & "anditemtype=" & "'" & cmbitype.

db.EOF <> True And rs2. adLockOptimistic If rs2.Text &"'".BOF <> True . adOpenKeyset."'" & "and itemname=" & "'" & txtiname.

Te xt)If rs2!quantity < 0 Then Stock maintenance systemMsgBox "Sorry Not .Thenrs2!quantity = rs2!quantity Val(txtquantity.

Enough Stock and you want order it "Exit SubEnd If rs2.Clo seMsgBox "item quantity updated"ElseMsg Box "THAT ITEM IS NOT .Updaters2.

db.Open "select * from sales ". adLockOptimistic rs1.AVIALABLE"En d If rs1. adOpenKeyset.AddNewrs1! billnumber = txtbillno.Textrs1! .

itemtype = cmbitype.Textrs1! itemcode = cmbicode.Textrs1 !itemname = txtiname.Textrs1! sale_date = .Textrs1! netweight = txtnetwt.

Textrs 1!price = txtprice.txtdate.Textrs1 .Textrs1! quantity = txtquantity.Updaters1.Close MsgBox "Item .Textrs1! amount = txtamount.

"Sales Master"If (MsgBox("sale another Item".Detail Save Successfully". vbOKOnly. vbYesNo + vbQuestion. "Sales Master ") = .

S howfrmSaleentry. SetFocusEnd If .vbYes) ThenCall saveCall saleanother Command6.Enabl ed = TrueElseUnload MefrmSaleentry.

Op en "select itemtype from stock group By itemtype ". db. .Stock maintenance systemEnd SubPrivate Sub saleanother()rs.

Ad dItem rs! itemtypers.EOF <> Truecmbitype.Clos ers.adOpenKeyset.ad LockOptimisticW hile rs.Open "select itemtype from .Move NextWendrs.

db.Te xt = ""cmbitype.ad LockOptimisticrs.stock group By itemtype ".Clear . CloseEnd SubPrivate Sub save()txtcname. adOpenKeyset.

Text = . "dd/mm/yyyy")txt quantity.Text = ""txtdate.Text = ""txtprice.Text = Format$(Date.Clear txtiname.Text = ""txtnetwt.cmbicode.Text = ""txtdate.

""txtamount.Text = ""End SubPrivate Sub Command2_Click ()Dim z. x As DoublecmdRefres h_Click Stock maintenance .

SetFocu sCommand1.Vis ible = FalseCommand6.systemconnectme cmbitype. .Visi ble = Falsetxtcname.Enab led = TrueLabel17.

ad . adOpenKeyset.Op en "select * from sales order by BILLNUMBER". db.Enabled = TrueEnd SubPrivate Sub increment()rs1.

LockOptimisticIf rs1.Closers1.Text = zrs1.MoveLas tz = Val(rs1! billnumber)z = z + 1txtbillno.EOF <> True Thenrs1.Ope .BOF <> True And rs1.

adOpenKeyset.n "select * from itemorder order by BILLNUMBER".ad LockOptimisticIf rs1. db.EOF <> .BOF <> True And rs1.

Text = ""x = Val(rs1! billnumber)rs1.True Thenrs1.MoveLas ttxtbillno.Text = iElsei = Val(z)i = .Cl oseIf x > z Theni = Val(x)i = i + 1txtbillno.

i + 1txtbillno.Text =i Stock maintenance systemEnd If Elsers1.CloseEnd If Elsetxtbillno.Text = .

Text = ""txtprice.Text = ""txtnetwt.T ext = ""txtiname.7000rs1.CloseEnd If End SubPublic Sub Reset()txtcname.Text = ""txtquantity.Text .

= ""txtamount.Open "select * from stock where itemtype=" & "'" .Text = ""End SubPrivate Sub cmbicode_Click() Call Resetrs.

adLockOptimistic With .& cmbitype.Text & "'".Text & "'" & " anditemcode=" & "'" & cmbicode. db. adOpenKeyset.

Text =! itemnametxtnetwt.Text = ! priceEnd Withrs.Closetxtqu .rstxtiname.Text = ""txtprice. Text = ! netweighttxtquant ity.

O pen "arun". "scott".antity.SetFocusEn d Sub Stock maintenance systemPrivate Sub Form_Load()db. "tiger"connectme .

End SubPrivate Sub connectme()Call Resetallincrement rs. adOpenKeyset.ad .Open "select itemtype from stock group By itemtype ". db.

Clos ers.Open "select itemtype from stock group By .Move NextWendrs.EOF <> Truecmbitype.LockOptimisticW hile rs.Ad dItem rs! itemtypers.

CloseEnd SubPublic Sub Resetall()txtbillno .itemtype ". db. adOpenKeyset.D ataSource = rsrs.ad LockOptimisticSe t MSHFlexGrid1.

Clear cmbicode.Text = ""cmbitype.Text = ..Text = ""txtquantity.Text = ""txtnetwt.Text = ""txtdate.Clear txtiname.Text = ""txtprice.

Text = ""End Sub Stock maintenance system DELIVERY MODULE: .""txtamount.

12 .Stock maintenance system Fig :6.

13 .Stock maintenance system OUTPUT: Fig :6.

.

.

Stock maintenance system Fig :6.14 CODING: Dim db As New ADODB.Records .Connecti onDim rs As New ADODB.

Open "select * from itemorder where billnumber=" & .Textcm bicode.etPrivate Sub cmbbillno_click()t emp = cmbbillno.Clear rs.

Move .Ad dItem rs! itemcoders. adOpenDynamic. db. adLockPessimisti cWhile rs.EOF <> Truecmbicode."'" & temp & "'and deliver is NULL".

NextWendrs.Clos ers.Open "select billnumber.itemco de. db. .deliver from itemorder where billnumber=" & "'"& temp & "' and deliver is NULL".

D ataSource = rsrs.adOpenDynamic.CloseEnd SubEnd SubPrivate Sub cmbicode_Click() . adLockPessimisti cSet MSHFlexGrid1.

Open "select * from stock where itemcode=" & "'" & cmbicode. db.rs.adOpenDynam ic. adLockPessimisti cWith rstxtitype = .Text & "'".

Close Stock maintenance .!itemtypetxtiname =! itemnametxtnetwt =! netweighttxtprice = !priceEnd Withrs.

adOpenDynam ic. adLockPessimisti .systemrs. db.Text & "'".Open "select * from itemorder where itemcode=" & "'" & cmbicode.

cWith rstxtcname =! customernametxtd ate = ! order_datetxtoqua ntity = ! orderedquantitytxt amount = ! amountEnd .

Withrs.Open "select * from stock where itemcode=" & "'" & cmbicode & "'". y As Doublers. .CloseEnd SubPrivate Sub Command1_Click ()Dim x.

EOF <> True And rs.BOF <> True Theny = x Val(txtoquantity.db. adLockOptimistic x = Val(rs! quantity)If rs.adOpenKeyset.T ext)If y < 0 .

UpdateMsgBo .So Delivery is not Possible "rs.CloseExit SubEnd If rs! quantity = yrs.ThenMsgBox "Sorry Not Enough Stock.

Text & "'" & "and billnumber=" & .Open "select * from itemorder where itemcode=" & "'" & cmbicode.x "item is Delivered"End If rs.Closers.

Text . txtddate. adLockPessimisti cWith rs. adOpenDynamic. db.Text & "'".Update "DELIVERY_DA TE"."'" & cmbbillno.

TextEn d Withrs.itemco .Stock maintenance system.Update "deliver". txtdeliver.Closers.Op en "select billnumber.

deliver from itemorder where billnumber=" & "'"& cmbbillno.Text & .Text & "'" & " and billnumber=" & "'" & cmbbillno.de.

D ataSource = rsEnd SubPrivate Sub Command2_Click .adOpenDynam ic."'". adLockPessimisti cSet MSHFlexGrid1. db.

db. .()Command1.Visible = Truers.Open "select * from itemorder where deliver is not NULL".Ena bled = FalseMSHFlexGri d2.

CloseEnd SubPrivate Sub Command3_Click ()Command1.D ataSource = rsrs.Ena .adOpenDynamic.a dLockPessimistic Set MSHFlexGrid2.

Visible = FalseElseUnload MeEnd If End SubPrivate Sub Command4_Click .V isible = True ThenMSHFlexGri d2.bled = TrueIf MSHFlexGrid2.

Open "select * from itemorder ". adLockPessimisti .()Command1.Ena bled = FalseMSHFlexGri d2. db. adOpenDynamic.Visible = Truers.

D ataSource = rsrs.cSet MSHFlexGrid2.Close Stock maintenance systemEnd SubPrivate Sub Form_Load()txtdd .

"tiger"rs.Open "select billnumber from(Select * from itemorder .ate.Open "arun". "scott".Text = Format$(Date. "dd/mm/yyyy")db .

group By billnumber)where deliver is NULL".EOF <> Truecmbbillno. db.Ad dItem rs! . adLockOptimistic While rs. adOpenKeyset.

billnumber rs.D ataSource = rsMSHFlexGrid2.CloseEnd Sub .MoveNextWen dSet MSHFlexGrid1. Visible = Falsers.

15 OUTPUT: .REPLACING FAULT MODULE: Fig :6.

16 CODING: Dim db As New ADODB.Connecti onDim rs As New ADODB.Records .Stock maintenance system Fig :6.

etPrivate Sub cmbbillno_Chang e()temp = cmbbillno.TextCa ll Resetallcmbicode.Open "select * from itemorder where . Clear rs.

Ad dItem rs! .EOF <> Truecmbicode.billnumber=" & "'" & temp & "'and deliver isnot NULL". adLockPessimisti cWhile rs. db. adOpenDynamic.

itemcoders.Move NextWendrs.Clos e .

itemcod e.Open "select billnumber.Stock maintenance systemrs.amount from itemorder where billnumber=" & .Custo mername.

adOpenDynamic.CloseEnd .D ataSource = rsrs.a dLockPessimistic Set MSHFlexGrid1."'" & temp & "' and deliver is not NULL". db.

Open "select * from itemorder where .TextCa ll Resetallcmbicode. Clear rs.SubPrivate Sub cmbbillno_click()t emp = cmbbillno.

adOpenDynamic.EOF <> Truecmbicode. adLockPessimisti cWhile rs. db.billnumber=" & "'" & temp & "'and deliver isnot NULL".Ad dItem rs! .

itemcod e.Open "select billnumber.Custo mername.Clos ers.amount from itemorder where billnumber=" & "'" & temp & "' .Move NextWendrs.itemcoders.

and deliver is not NULL", db, adOpenDynamic,a dLockPessimistic Set MSHFlexGrid1.D ataSource = rsrs.CloseEnd SubPublic Sub

Resetall()cmbicod e.Clear txtcname.Text = ""txtnoreplace.Te xt = ""txtoquantity.Tex t = ""End Sub Stock maintenance

systemPrivate Sub cmbicode_Click() rs.Open "select * from itemorder where itemcode=" & "'" & cmbicode & "'" & " and billnumber=" & "'" &

cmbbillno.Text & "'", db, adOpenDynamic, adLockPessimisti cWith rstxtcname =! customernametxto quantity = ! orderedquantityEn

d Withrs.CloseIf (MsgBox("If you want to Replace the item press Yes ,otherwise press No", vbYesNo +vbQuestion, "Replace/Reject") = vbYes)

ThenCommand2. Enabled = FalseElseComma nd1.Enabled = FalseLabel1.Visib le = Falsetxtnoreplace. Visible = FalseEnd If End

vbYesNo + vbQuestion."Repl ace") = vbYes) Thenrs.SubPrivate Sub Command1_Click ()If (MsgBox("If you press Yes Replacement will done".Open .

"select * from replace where itemcode=" & "'" & cmbicode.Text & "'". . db.Text & "'" & " and billnumber=" & "'" & cmbbillno.

Textrs! itemcode = cmbicode.AddNewrs! billnumber = cmbbillno.Textrs! customername = txtcname. adLockPessimisti crs.adOpenDynamic.Textrs! .

Upd .Textrs.Text Stock maintenance systemrs! replace_date = txtdate.Textrs! Replace = Text1.replace_quantity = txtnoreplace.

Open "select billnumber.itemco de.ateMsgBox "Replacement successfully done". "Replace"rs.replace from . .replace_quantit y .Close rs.

. db.Text & "'" & " and itemcode=" & "'" & cmbicode.replace where billnumber=" & "'" & cmbbillno.Text& "'".

Enabled = TrueEnd If End SubPrivate Sub .CloseComma nd2. adLockPessimisti cSet MSHFlexGrid1.adOpenDynamic.D ataSource = rsrs.

"Reject") = vbYes)Thenrs. vbYesNo + vbQuestion.Command2_Click ()If (MsgBox("Are you sure want to Reject".Op en "select * from .

Text & "'". db. adOpenDynamic. .Text & "'" & " and billnumber=" & "'" & cmbbillno.replace where itemcode=" & "'" & cmbicode.

Textrs! itemcode = cmbicode.Textrs! replace_quantity = .adLockPessimisti crs.AddNewrs! billnumber = cmbbillno.Textrs! customername = txtcname.

0rs!replace_date = txtdate.Open "select .Closers . .Textrs! Replace = Text2.Upd ateMsgBox "Replacement not done".Textrs. "Reject"rs.

billnumber.replace_quantit y .replace from replace where billnumber=" & "'" & cmbbillno.itemco de.Text & "'" & " and itemcode=" & "'" .

Text& "'". adOpenDynamic.& cmbicode. db. adLockPessimisti c Stock maintenance systemSet .

Visibl e= Truetxtnoreplace.Enabled = TrueLabel1.MSHFlexGrid1.CloseComma nd1.D ataSource = rsrs. Visible = TrueEnd If End SubPrivate .

Clear Label1.Visible = Truetxtnoreplace.E nabled = TrueCommand2.E . Visible = TrueCommand1.Sub Command4_Click ()cmbbillno.

"scott".CloseC all Form_LoadEnd SubPrivate Sub Form_Load()db.nabled = TrueCall Resetalldb.Open .O pen "arun". "tiger"rs.

"select billnumber from(select * from(replace full outer join itemorder using( billnumber) )where replace is null and deliver is not null )group By .

db.billnumber".MoveNextWen drs.Closers.EOF <> Truecmbbillno.adOpenKeyset.Open . adLockOptimistic While rs.Ad dItem rs! billnumber rs.

"select billnumber.itemcod .custo mername.customername from (replace full outer joinitemorder using (billnumber.itemco de.

adOpenKeyset.e))where replace is null and deliver isnot null ".D . db. adLockOptimistic Stock maintenance systemSet MSHFlexGrid1.

Text = Format$ (Date.ataSource = rsrs.Closetxtdate. "dd/mm/yyyy")En d Sub TABLES DESIGNSTOC K MODULE: .

N A M E N U L L ? T Y P E I T E M T Y P E V A R C H A R 2 ( 6 0 ) I T E M C O D E N U M B E R .

( 3 5 ) I T E M N A M E V A R C H A R 2 ( 1 0 0 ) N E T W E I G H T V A R C H A R 2 ( 7 0 ) D A T E _ O F _ E N T .

) .R Q T B ) E E 2 Y D A T E U A N T I Y N U M E R ( 3 5 P R I C N U M B R ( 1 0 .

SALES MODULE: N U T B B B T A M E N L L ? Y P E I L L N U M E R N U M E R ( 3 5 ) I E M T Y P .

E V A R C H A R 2 ( 6 0 ) I T E M C O D E N U M B E R ( 3 5 ) I T E M N A M E V A R C H A R 2 ( 6 0 ) N E T W E I G .

H T V A R C H A R 2 ( 5 0 ) .

.

Stock maintenance systemS A L .

E E Q T E R U ( O _ D A T D A T E U A N T I Y N U M B R ( 3 5 ) P I C E N M B E R 3 5 ) A M U N T N U .

2 ) DELIVERY MODULE: N N ? T A U Y M L P E L E .M B E R ( 1 0 .

B I L L N U M B E R N U M B E R ( 3 5 ) I T E M C O D E N U M B E R ( 3 5 ) CUSTO MERNAME VARCHAR .

2(60)O R D E R _ D A T E D A T E D E L I V E R Y _ D A T E D A T E ORDERE DQUANTITYVA RCHAR2(60)A M O U N T .

2 ) E L I V E V A R C H R 2 ( 5 0 ) REPLACE MODULE : N A M E N .N R D R A U M B E ( 1 0 .

U L L ? T Y P E B I L L N U M B E R N U M B E R ( 3 5 ) I T E M C O D E N U M B E R ( 3 5 ) CUS .

TOMERNA MEVARCH AR2(60)R E P L A C E _ D A T E D A T E REPL ACE_QUAN TITYVARC HAR2(60)R .

E P L A C E V A R C H A R 2 ( 6 8 ) .

.

.

CONCLUSIO N AND FUTURE .Stock maintenance system 8 .

ENHANCEME NT8.it .1 CONCLUSION Thus the project gives the detailed explanation about how stock is maintained inan organization.

8.also gives idea about how stocks are to be purchased and how to bemaintained in a company.2 .

however good and efficient .FUTURE ENHANCEME NT There is always a room for the improvement in any software package.

In future we will enhance this .it may be. The important thing is that the software should be flexibleenough for further modifications.

project by making our system to store the details of the customer such as the house address to make the door delivery which is an easy andquick way. .

1 REFERENCE BOOKS . REFERENCE Stock maintenance system 9.9.

0” by Francesco Balena. “Programming in Microsoft Visual Basic 6.  “Oracle The complete Reference” by .

 “Visual Studio .George Koch and Kevin Loney.NET :The .NET Framework Black Book” by Temple man and Vitter .

2 REFERENCE WEBSITES ✔ www.com Stock Maintenance System Download this Document for FreePrintMobileCollectionsReport Document .com ✔ www.epay.9.v3schools .

Rated: 0 5 false false 0 Copyright: Attribution Non-commercial Follow anandv86 <a href='http://delivery.click0=http://delivery.1' SRC="http://fw.com/rjss/dc/11955/287854/adj/N5390.abr=! .ctasnet.582 Uploaded: 02/09/2010 Category: Uncategorized.Report this document? Please tell us reason(s) for reporting this document Top of Form 47770c67074afa doc Spam or junk Porn adult content Hateful or offensive If you are the copyright owner of this document and want to report it.com/adserver/www/delivery/avw. Report Cancel Bottom of Form This is a private document.php? oaparams=2__bannerid=10951__zoneid=2376__OXLCA=1__cb=9c8edc1891__oadest=.ctasnet.adsafeprotected.CRIMTAN2/B62 74545.com/adserver/www/delivery/ck.272874.php? zoneid=2376&cb=INSERT_RANDOM_NUMBER_HERE&n=aed776a9&ct0=INSERT_CLIC KURL_HERE' border='0' alt='' /></a> < SCRIPT language='JavaScript1.com/adserver/www/delivery/ck. Info and Rating Reads: 22.php? n=aed776a9&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://delivery. please follow these directions to submit a copyright infringement notice.ctasnet.

com/rfw/dc/11955/287852/ad/N5390.abr=!ie5.CRIMTAN2%2FB6274545%3Babr%3D%21ie4%3Babr%3D%21ie5%3Bsz %3D300x250%3Bord%3D%5Btimestamp%5D%3F" target="_blank">< IMG SRC="http://fw. 2.com/adserver/www/delivery/ck.CRIMTAN2/B62 74545.sz=300x250.abr=!ie4.ord=9c8edc1891?">< /SCRIPT>< NOSCRIPT>< a href="http://delivery.ctasnet. 71 p.adsafeprotected.ord=9c8edc1891?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Advertisement"></A>< /NOSCRIPT> Share & Embed Related Documents PreviousNext 1.ie.net%2Fjump %2FN5390.272874. 71 p.doubleclick.272874.php? oaparams=2__bannerid=10951__zoneid=2376__OXLCA=1__cb=9c8edc1891__oadest=http %3A%2F%2Fad.sz=300x250. 1 p. .

2 p. 4 p. 4.29 p. 3. . 14 p. 2 p.

52 p.1 p. 3 p. 52 p. 5. 7 p. .

1 p. 6. 7.8 p. 19 p. 2 p. 34 p. .

8. 26 p. 164 p. 9. .1 p. 3 p. 28 p.

2 p. 1 p. 27 p. 1 p. . 1 p. 10.

1 p. 14 p. 3 p. 12. . 1 p. 11.1 p.

3 p. . 13. 9 p.21 p. 13 p. 14. 24 p.

76 p.476 p. . 476 p. 15. 76 p. 476 p.

8 p.76 p. . 2 p. More from this user PreviousNext 1. 16. 23 p. 1 p.

3.1 p. 2. 16 p. 15 p. 42 p. 8 p. .

Recent Readcasters Add a Comment Top of Form 47770c67074afa Submit Characters: 400 document_comme 4gen Bottom of Form sivachitrasleft a comment hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelllllllllllllllllllllllllllllllllllllllllllllllll lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 08 / 22 / 2011 Reply Haytham Mohammedleft a comment haytham 04 / 30 / 2011 Reply .

Print This Document High Quality Open the downloaded document.scrib dow nload Scribd. Other login options Login with Facebook http://w w w .logged_in email address (required) create username (required) password (required) Send me the Scribd Newsletter. and select print from the file menu (PDF reader required). Publish Your Documents Quickly and easily . You can manage these notifications in your account settings. Download and Print Closes in seconds.logged_in Bottom of Form Top of Form Signup I don't have a Facebook account Top of Form 47770c67074afa 26623608 dow nload Scribd. Sign UpPrivacy policy You will receive email notifications regarding your account activity. 1. Bottom of Form Why Sign up? 1. and occasional account related communications. You Must be Logged in to Download a Document Use your Facebook login and see what your friends are reading and sharing. We promise to respect your privacy.scrib 26623608 http://w w w . 2. Discover and Connect With people of similar interests 2.

Top of Form 47770c67074afa Email Address: You need to provide a login for this account as well. Login Submit Bottom of Form Upload a Document stock modu Top of Form Search Documents Bottom of Form • • Follow Us! scribd. Reset Your Password « Back to Login Please enter your email address below to reset your password.logged_in email address or username password Log In Trouble logging in? Bottom of Form Login Successful Now bringing you back.3.com/scribd . We will send you an email with instructions on how to continue.. 3. Share Your Reading Interest On Scribd and social sites like Facebook and Twitter Already have a Scribd account? Top of Form 47770c67074afa 26623608 dow nload Scribd..

Language: English Choose the language in which you want to experience Scribd: • • • English Español Português (Brasil) scribd. scribd.com/scribd facebook. scribd.gif" height="1" width="1" alt="Quantcast"/></div> <img src="http://b. scribd. scribd. scribd. scribd."><img src="//pixel.com/pixel/p-13DPpb-yg8ofc.scorecardresearch. scribd.quantserve. < div style="display: none.• • • • • • • • • • • • • • • twitter.0&cj=1" /> .com/scribd About Press Blog Partners Scribd 101 Web Stuff Support FAQ Developers / API Jobs Terms Copyright Privacy Copyright © 2012 Scribd Inc. scribd. scribd.com/p? c1=2&c2=9304646&cv=2. scribd.