C#.net

Grocery Shop Inventory Using C#.net

This tutorial will teach you  to make a small shop Grocery Shop Inventory management system in C#.Net.how make a system.in in c#.net step by step. The following  system will use to manage the Grocery Shop sales calculation. If you are an interested in pos in c#.net this is the right place where you will able learn inventory management system c#.net more projects.

Features of the System

  1. User shall be able to select the item what they need.
  2. User shall be able to calculate the total

Paste the code inside the ok button

double sum = 0.0;
           double price;
           double qty;
           double cal = 0.0;

           if (chk1.Checked)
           {
               String suger = chk1.Text;
               String mes = txtsstatus.SelectedItem.ToString();
               price = 140.0;
               qty = int.Parse(txtsqty.Text);

               if (mes.Equals("KG"))
               {
                   cal = (qty * price);
                   this.dataGridView1.Rows.Add(suger, price, qty, cal);
              
               }
               else
               {
                   cal = (qty / 1000 * price);

                   this.dataGridView1.Rows.Add(suger, price, qty, cal);
               }

           }

               if (chk2.Checked)
               {
                   String tea = chk2.Text;
                   String mes1 = txttstatus.SelectedItem.ToString();
                   price = 150.0;
                   qty = int.Parse(txttqty.Text);

                   if (mes1.Equals("KG"))
                   {
                         cal = (qty * price);
                         this.dataGridView1.Rows.Add(tea, price, qty, cal);
                   }
                   else
               {
                   cal = (qty / 1000 * price);

                   this.dataGridView1.Rows.Add(tea, price, qty, cal);
               }
                  
              }
              if (chk3.Checked)
               {
                   String flour = chk3.Text;
                   String mes2 = txtfstatus.SelectedItem.ToString();
                   price = 260.0;
                   qty = int.Parse(txtfqty.Text);

                   if (mes2.Equals("KG"))
                   {
                         cal = (qty * price);
                         this.dataGridView1.Rows.Add(flour, price, qty, cal);
                   }
                   else
               {
                   cal = (qty / 1000 * price);
                   this.dataGridView1.Rows.Add(flour, price, qty, cal);
               }
                  
              }

              if (chk4.Checked)
              {
                  String rice = chk4.Text;
                  String mes3 = txtrstatus.SelectedItem.ToString();
                  price = 250.0;
                  qty = int.Parse(txtrqty.Text);

                  if (mes3.Equals("KG"))
                  {
                      cal = (qty * price);
                      this.dataGridView1.Rows.Add(rice, price, qty, cal);
                  }
                  else
                  {
                      cal = (qty / 1000 * price);
                      this.dataGridView1.Rows.Add(rice, price, qty, cal);
                  }

              }

              if (chk5.Checked)
              {
                  String dhall = chk5.Text;
                  String mes4 = txtdstatus.SelectedItem.ToString();
                  price = 300.0;
                  qty = int.Parse(txtdqty.Text);

                  if (mes4.Equals("KG"))
                  {
                      cal = (qty * price);
                      this.dataGridView1.Rows.Add(dhall, price, qty, cal);
                  }
                  else
                  {
                      cal = (qty / 1000 * price);
                      this.dataGridView1.Rows.Add(dhall, price, qty, cal);
                  }
              }

           for(int row=0; row< dataGridView1.Rows.Count; row++)
           {
               sum = sum + Convert.ToInt32(dataGridView1.Rows[row].Cells[3].Value);
           }
           txtbill.Text = sum.ToString();

 

i have attached the video link below. which will do this tutorials step by step.

 

admin

Recent Posts

Laravel 11 CRUD Mastering RESTful API MVC with Repository Pattern

In this tutorial will teach Laravel 11 Api MVC with Repository Pattern Crud Application step…

2 weeks ago

Laravel 11 CRUD Application

In this tutorial will teach Laravel 11 CRUD Application step by step. Laravel  11 CRUD…

1 month ago

How to make Times Table in React

in this tutorials we will be talk about how to make a times table in…

2 months ago

Laravel Tutorial: How to Add Numbers Easily Laravel 10

In this tutorials will teach How to add two numbers in Laravel 10. (more…)

2 months ago

Build Full-Stack Node.js MongoDB CRUD App with JWT Authentication

In this tutorial, we will teach the process of building a full-stack application using Node.js,…

3 months ago

Hospital Management System using OOP Java and MySQL

In this tutorial, we will explin you through the process of building a Hospital Management…

3 months ago