0% found this document useful (0 votes)
13 views8 pages

Store Management Application

The document describes a store inventory management application created in Visual Basic. It allows users to track inventory items, update stock levels, add new items, remove items, edit existing items, and search for items. The application aims to streamline inventory management tasks and reduce errors for retail stores.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views8 pages

Store Management Application

The document describes a store inventory management application created in Visual Basic. It allows users to track inventory items, update stock levels, add new items, remove items, edit existing items, and search for items. The application aims to streamline inventory management tasks and reduce errors for retail stores.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Store Management Application

• Introduction:
- The Store Inventory Management Application is a software solution
designed to streamline the process of managing inventory for a retail
store. Developed using Visual Basic 2010 IDE in Visual Basic language,
this application provides an efficient and user-friendly interface for store
owners and managers to track their merchandise, update stock levels,
and make informed decisions regarding inventory management.

- The Store Inventory Management Application serves as a


comprehensive tool for maintaining accurate records of items in stock,
their categories, quantities, unit prices, suppliers, and important dates
such as when they were added to the inventory and when they were last
updated. By digitizing these processes, the application minimizes manual
errors and reduces the time and effort required for inventory
management tasks.
• Key Features:

1. Display Items:

- Tabular display of inventory items including ID, name, category,


quantity, unit price, supplier, date added, and last updated.
- Real-time updates reflecting changes made to the inventory.

2. Add Item:
- User-friendly form for entering details of a new item.

- Provides Unique ID to every item and store the time when added

3. Remove Item:
- Ability to delete items from the inventory.
- Confirmation prompts to prevent accidental deletions.

4. Edit Item:
- Edit existing item details seamlessly.
- Update item information with ease, ensuring data accuracy.

5. Search Item:
- Search functionality based on ID, name, category, etc.
- Filtered results for efficient retrieval of specific items.

6. User Interface Design:


- Intuitive layout and design for ease of use.
- Consistent styling and navigation across all forms and functionalities.
• Images:
1. Add Item:

2. Remove Item:

3. Edit Item:

4. Search Item:
• Code:
1. Form1 (Home Page & Search Item) :-
Public Class Home
Dim panel As Integer
Private Sub Home_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
'Loading Home page into the panel
LoadChildForm(Items)
panel = 1
HomeBtn.Enabled = False
Label2.Text = "ITEMS: " & Items.count
End Sub

Sub LoadChildForm(ByVal childForm As Form)


childForm.TopLevel = False
childForm.FormBorderStyle = Windows.Forms.FormBorderStyle.None
childForm.Dock = DockStyle.Fill
Panel1.Controls.Clear()
Panel1.Controls.Add(childForm)
childForm.Show()
End Sub

Private Sub HomeBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


HomeBtn.Click
LoadChildForm(Items)
Call updateButtons(HomeBtn, 1)
For Each item As DataGridViewRow In Items.DataGridView1.Rows
item.Visible = True
Next
End Sub

Private Sub AddItemBtn_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles AddItemBtn.Click
LoadChildForm(Add_Item)
Call updateButtons(AddItemBtn, 2)
End Sub

Function updateButtons(ByVal btn As Button, ByVal val As Integer)


If Panel = 1 Then
HomeBtn.Enabled = True
btn.Enabled = False
Panel = val
ElseIf Panel = 2 Then
AddItemBtn.Enabled = True
btn.Enabled = False
Panel = val
ElseIf Panel = 3 Then
RemItemBtn.Enabled = True
btn.Enabled = False
Panel = val
ElseIf Panel = 4 Then
EditItemBtn.Enabled = True
btn.Enabled = False
Panel = val
ElseIf panel = 5 Then
SearchItemBtn.Enabled = True
btn.Enabled = False
panel = val
End If
Return ""
End Function

Private Sub RemItemBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


RemItemBtn.Click
Dim selection As String = ""
For Each selectedRow As DataGridViewRow In Items.DataGridView1.SelectedRows
If Items.DataGridView1.SelectedRows.Count = 1 Then
selection = selection & selectedRow.Cells(0).Value
Else
If String.IsNullOrEmpty(selection) Then
selection = selectedRow.Cells(0).Value
Else
selection = selection & ", " & selectedRow.Cells(0).Value
End If
End If
Next
If Not String.IsNullOrEmpty(selection) Then
Dim result As DialogResult = MessageBox.Show("Are you sure you want to delete item with id: " &
selection, "Delete Item", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If result = Windows.Forms.DialogResult.Yes Then
For Each selectedRow As DataGridViewRow In Items.DataGridView1.SelectedRows
Items.DataGridView1.Rows.RemoveAt(selectedRow.Index)
Next
Label2.Text = "ITEMS: " & Items.DataGridView1.RowCount
End If
Else
MessageBox.Show("Please select a row to delete!", "Error")
End If
End Sub

Private Sub EditItemBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


EditItemBtn.Click
If Items.DataGridView1.SelectedRows.Count = 1 Then
LoadChildForm(Form4)
Form4.updateID()
Call updateButtons(EditItemBtn, 4)
Else
MessageBox.Show("Please select a single row!", "Error")
End If
End Sub

Private Sub SearchItemBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles SearchItemBtn.Click
Dim query As String = InputBox("Enter the item name to query...")

If Not String.IsNullOrEmpty(query) Then

For Each item As DataGridViewRow In Items.DataGridView1.SelectedRows


item.Selected = False
Next

For Each item As DataGridViewRow In Items.DataGridView1.Rows


If Not LCase(item.Cells(1).Value).Contains(LCase(query)) Then
item.Visible = False
End If
Next

Call updateButtons(SearchItemBtn, 5)
End If
End Sub
End Class

2. Form2 (DataGrid) :-
Public Class Items
Public count As Integer = 0
End Class

3. Form3 (Add Item):-


Public Class Add_Item

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button1.Click
Items.count = Items.count + 1
Items.DataGridView1.Rows.Add(Items.count, TextBox1.Text, TextBox2.Text, TextBox3.Text,
TextBox4.Text, TextBox5.Text, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"),
DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"))
Call clearAllTextBox()
Home.Label2.Text = "ITEMS: " & Items.DataGridView1.RowCount
Items.DataGridView1.Rows(0).Cells(0).Selected = False
MsgBox("Sucessfully added item with ID: " & Items.count)
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button2.Click
Call clearAllTextBox()
End Sub

Private Function clearAllTextBox()


TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
End Function
End Class

4. Form4 (Edit Item):-


Public Class Form4

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button1.Click
Dim itemRow As DataGridViewRow = Items.DataGridView1.SelectedRows(0)
If Not String.IsNullOrEmpty(TextBox1.Text) Then
itemRow.Cells(1).Value = TextBox1.Text
End If
If Not String.IsNullOrEmpty(TextBox2.Text) Then
itemRow.Cells(2).Value = TextBox2.Text
End If
If Not String.IsNullOrEmpty(TextBox3.Text) Then
itemRow.Cells(3).Value = TextBox3.Text
End If
If Not String.IsNullOrEmpty(TextBox4.Text) Then
itemRow.Cells(4).Value = TextBox4.Text
End If
If Not String.IsNullOrEmpty(TextBox5.Text) Then
itemRow.Cells(5).Value = TextBox5.Text
End If

itemRow.Cells(7).Value = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")

clearAllTextBox()
MessageBox.Show("Updated the item", "Success")
Home.LoadChildForm(Items)
Call Home.updateButtons(Home.HomeBtn, 1)
End Sub

Private Function clearAllTextBox()


TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Function

Function updateID()
TextBox6.Text = Items.DataGridView1.SelectedRows(0).Cells(0).Value
End Function

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button2.Click
Home.LoadChildForm(Items)
Call Home.updateButtons(Home.HomeBtn, 1)
End Sub
End Class

• Conclusion
In conclusion, the Store Inventory Management Application represents a paradigm shift in
how retail businesses approach inventory management. By harnessing the power of
technology and innovation, this application empowers store owners and managers to
overcome the complexities inherent in inventory management, streamline operations, and
unlock new levels of efficiency and profitability. With its rich feature set, user-centric design,
and unwavering commitment to excellence, the application stands poised to revolutionize
the way retail stores manage their inventory, setting new standards of excellence in the
industry.

You might also like