Inventory program in mca p1
-
Upload
rameshvvv -
Category
Engineering
-
view
48 -
download
3
description
Transcript of Inventory program in mca p1
![Page 1: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/1.jpg)
Inventory program
Page: 1 2 3 4 5 6 7 8 9
Use Case Diagram
![Page 2: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/2.jpg)
Activity Diagram
Collabration Diagram
![Page 3: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/3.jpg)
Component Diagram
Deployment Diagram
![Page 4: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/4.jpg)
Screen Desing in VB6.0
SOURCE CODE
Dim con As New ADODB.ConnectionDim rs As New ADODB.Recordset
Private Sub Command1_Click()If con.State = 1 Then con.Closecon.Open ("Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=stk")rs.Open "select*from slogin", con, adOpenDynamic, adLockOptimisticcon.Execute ("insert into slogin values('" & Text1.Text & "','" & Text2.Text & "')")
MsgBox ("")
End Sub
![Page 5: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/5.jpg)
Private Sub Form_Load()con.Open ("Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=stk")rs.Open "select * from slogin", con, adOpenDynamic, adLockOptimisticFrame1.Visible = FalseuserADD.Visible = FalseEnd Sub
Private Sub Label1_Click()PurchaseFrm.ShowUnload MeEnd Sub
Private Sub Label2_Click()SalesFrm.ShowUnload MeEnd Sub
Private Sub Label3_Click()DataReport1.ShowEnd Sub
Private Sub OKButt_Click()rs.MoveFirstDo While Not rs.EOFIf Text1.Text = rs.Fields("uname") And Text2.Text = rs.Fields("passwd") ThenMsgBox "Congratulations"Frame1.Visible = TrueFrame2.Visible = FalseElseMsgBox "Please Enter the Correct Username and Password"Text1.Text = ""Text2.Text = ""Text1.SetFocusEnd Ifrs.MoveNextLoop
End Sub
![Page 6: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/6.jpg)
Screen Design
SOURCE CODE
Dim con As New ADODB.ConnectionDim rs As New ADODB.RecordsetDim rsstk As New ADODB.Recordset
Private Sub AddButt_Click()
If con.State = 1 Then con.Closecon.Open ("Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=stk")rsstk.Open "select*from stkview", con, adOpenDynamic, adLockOptimisticrs.Open "select*from purch", con, adOpenDynamic, adLockOptimisticcon.Execute ("insert into purch values(" & Text1.Text & ",'" & Text2.Text & "','" & Text3.Text & "','" & Combo1.Text & "'," & Text4.Text & "," & Text5.Text & "," & Text6.Text & ")")MsgBox ("Stored your Purchase Details")
Dim N As IntegerN = Val(Text7)con.Execute ("update stkview set pname='" & Combo1.Text & "',pqty=" & Text8.Text & " where pid=" & N & " ")MsgBox ("Stock Also Updated")Call TextClearEnd Sub
![Page 7: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/7.jpg)
Private Sub Combo1_Click()
rsstk.MoveFirstDo While Not rsstk.EOFIf rsstk.Fields("pname") = Combo1.Text ThenText7.Text = rsstk.Fields("pid")Text8.Text = rsstk.Fields("pqty")
End Ifrsstk.MoveNextLoop
End Sub
Private Sub Form_Load()con.Open ("Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=stk")rs.Open "select * from purch", con, adOpenDynamic, adLockOptimisticrsstk.Open "select * from stkview", con, adOpenDynamic, adLockOptimistic
Combo1.Clearrsstk.MoveFirstDo While Not rsstk.EOFCombo1.AddItem (rsstk.Fields("pname"))rsstk.MoveNextLoop
Text7.Visible = FalseText8.Visible = False
End Sub
Private Sub Text5_LostFocus()Text6 = Val(Text4) * Val(Text5)Text8 = Val(Text8) + Val(Text5)
End Sub
Public Sub TextClear()Text1 = ""Text2 = ""Text3 = ""
![Page 8: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/8.jpg)
Text4 = ""Text5 = ""Text6 = ""End Sub
Screen Design
Source CodeDim con As New ADODB.ConnectionDim rs As New ADODB.RecordsetDim rsstk As New ADODB.Recordset
Private Sub AddButt_Click()If con.State = 1 Then con.Closecon.Open ("Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=stk")rsstk.Open "select*from stkview", con, adOpenDynamic, adLockOptimisticrs.Open "select*from sales", con, adOpenDynamic, adLockOptimisticcon.Execute ("insert into sales values(" & Text1.Text & ",'" & Text2.Text & "','" & Text3.Text & "','" & Combo1.Text & "'," & Text4.Text & "," & Text5.Text & "," & Text6.Text & ")")MsgBox ("Stored your Sales Details")
Dim N As IntegerN = Val(Text7)con.Execute ("update stkview set pname='" & Combo1.Text & "',pqty=" & Text8.Text & " where pid=" & N & " ")MsgBox ("Stock Also Updated")
End Sub
![Page 9: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/9.jpg)
Private Sub Combo1_Click()rsstk.MoveFirstDo While Not rsstk.EOFIf rsstk.Fields("pname") = Combo1.Text ThenText7.Text = rsstk.Fields("pid")Text8.Text = rsstk.Fields("pqty")End Ifrsstk.MoveNextLoop
If Combo1.Text = "MOUSE" ThenText4.Text = 75ElseIf Combo1.Text = "KEYBOARD" ThenText4.Text = 115ElseIf Combo1.Text = "MONITOR" ThenText4.Text = 4500End If
End Sub
Private Sub Form_Load()
con.Open ("Provide=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=stk")
rsstk.Open "select * from stkview", con, adOpenDynamic, adLockOptimistic
Cmbo1.Clearrsstk.MoveFirstDo While Not rsstk.EOFCombo1.AddItem (rsstk.Fields("pname"))rsstk.MoveNextLoop
Text7.Visible = FalseText8.Visible = False
End Sub
Private Sub Text5_LostFocus()Text6 = Val(Text4) * Val(Text5)Text8 = Val(Text8) - Val(Text5)End Sub
![Page 10: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/10.jpg)
After Purchase and Sales - Stock Details
![Page 11: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/11.jpg)
![Page 12: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/12.jpg)
at 10:11 PM Newer Post Older Post Home
Search
Counts
Blog Archive
▼ 2011 (33) o ► December (1) o ► September (1) o ► August (1) o ► April (2) o ▼ March (15)
Network Programming - Programs MULTI USER CHAT SLIDING WINDOW PROTOCOL UDP CHAT UDP SOCKET TCP SOCKETS TCP SOCKET - FT Domain Name Services Remote Procedure Call ROUTING PROTOCOLS BUSINESS PLANNING PROCESS Inventory program ONLINE RAILWAY RESERVATION SYSTEM WINSOCK CONTROL - Client -Chat WINSOCK CONTROL - Server - Chat
o ► February (3) o ► January (10)
► 2010 (72)
Ads By Google
![Page 13: Inventory program in mca p1](https://reader036.fdocuments.in/reader036/viewer/2022082700/54b5cbdb4a7959231b8b456c/html5/thumbnails/13.jpg)
Powered by Blogger.