Online Shop Presentation

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 66

A

Project Report
On

“bazar management system with gst


billing”
Submitted To

SHIVAJI UNIVERSITY, KOLHAPUR


In partial fulfillment of

BACHELOR OF SCIENCE(Computer Science)


Submitted by

Mr. KOLE VINAYAK RAJEDRA

Mr. THATTEVALE SOURABH YASHVANT

Under the guidance of

Prof. Patil. R.K.(M.Sc)

(Mcs Computer)

SHIVRAJ COLLEGE OF ARTS, COMMERCE &


D.S.KADAM SCIENCE COLLEGE, GADHINGLAJ
DIST- KOLHAPUR

2017-2018
K.V.R.S.S.S’s
SHIVRAJ COLLEGE OF ARTS, COMMERCE &
D.S.KADAM SCIENCE COLLEGE, GADHINGLAJ
DIST- KOLHAPUR

GUIDANCE CERTIFICATE

This is to certify that the project entitled “BAZAR


MANAGEMENT SYSTEM” conducted at Shivraj College,
Gadhinglaj by Mr. Kole Vinayak Rajendra and Thattevale Sourabh
Yashvant
In partial fulfillment of this work for award of Bachelor of
Computer Science (B.Sc.) submitted to Shivaji University , Kolhapur
has been completed under my supervision and guidance.
To the best of my knowledge and belief, the presented by them is
original in nature and has not been from any source. In addition, this
report has not been submitted earlier for ant degree or diploma of
Shivaji University or any other university.

Place :Gadhinglaj.
date :

Prof R. K. Patil (Project Guidance)


K.V.R.S.S.S’s
SHIVRAJ COLLEGE OF ARTS, COMMERCE &
D.S.KADAM SCIENCE COLLEGE, GADHINGLAJ
DIST- KOLHAPUR

CERTIFICATE
This is to certify that the project entitled,
“BAZAR MANAGEMENT SYSTEM”
submitted by Mr. Kole Vinayak Rajendra and Thattevale Sourabh
Yashvant to Shivaji University Kolhapur, in partial fulfillment of the
degree of B.Sc, has been carried out under the guidance and
supervision of Prof. R.K. Patil the conclusion drawn by them during
by them are based on work done and data collected by them during
project work.
To the best of our knowledge and belief, the matter presented here has
not been submitted earlier.

Date:
Place: Gadhinglaj

HOD EXAMINER PRINCIPAL


Prof. C.S.Nikam Prof. Dr. S.Y.KOTMIRE
CERTIFICATE
This is to certify that Mr. Kole Vinayak Rajendra and Thattevale
Sourabh Yashvant of Shivraj College ,Gadhinglaj have successfully
completed their project in Visual Studio on our “Bazar Management
System”.
I Wish them all good Wishes for their future ventures.

Date:
Place: Kolhapur
DECLARATION

We undersigned here by declare that this report entitled “Bazar


Management System” for Shivraj Arts, Commerce and D.S. Kadam
Science college , Gadhinglaj is our original work prepared under
guidance of Prof. R. K. Patil the Empirical finding in this report are
based on data collected by us . The matter presented is this report is
not copied from any source.
We understand such copy is liable for punishment in any way the
university authorities deem to fit. This work has not been submitted
to either Shivaji University or any other University.
This work is humbly submitted to Shivaji University, Kolhapur for
the award of the degree of Bachelor of Computer Science (B.Sc)

Date :
Place :Gadhinglaj

Mr. Kole Vinayak Rajendra


Mr. Thattevale Sourabh Yashvant
(B.Sc III Computer Science)
ACKNOWLEDGEMENT

It gives great pleasure to remain deeply indebted to our guide prof.


R.K. Patil. for providing us with the required facilities for the
academic achievement. Under whom we had the privilege to work.
The faith and Confidence shown by him in us boosted our moral and
motivated us to perform better in preferring this project.
We are thankful to those who have contributed either directly or
indirectly to this project.

Thanking You,
Mr. Kole Vinayak Rajendra
Mr. Thattevale Sourabh Yashvant
(B.Sc III Computer Science)
INDEX

1. Intoduction

2. About Project

3. Organisation Profile

4. Objective Of Proposed System.

5. Proposed System.

6. System Requirement.

7. Methodology

8. Bibliogrophy.
Chapter 1
INTRODUCTION
Introduction
The project entitled “Big Bazar Management
System With GST Billings” for a software program. In this fast
changing world Information techonology and information
management are going to play an important role. We are living in
the computer age during past some year. The computer has
gaining popularity. Computer revolution found its way into
almost every aspect of human life and living, a computer software
is admirably suited to handle any information and hence is as
information processor that is, it can receive data, perform some
basic operation on that data and produces result according to a
pre-determined program.

Big bazar is a very large Indian supermarket and


popular place to find inexpensive household items, and food all
under one roof. However, there are a few things to be aware of
when shopping.

.
Chapter 2
About Project
ABOUT PROJECT
You are in trouble if you have to keep telling
customers, "I'm sorry we're out of that size. May we order it
for you?" Even though the shirts are selling briskly, you will
lose customers if you don't have an item in stock. When the
customer spends, you have got to be ready with the goods.
This is what bazar management is all about .In many retail and
wholesale operations, the single largest asset is inventory.
Control of this investment is vital. It will eliminate a number of
the problems associated with capital shortages and will also
provide capital to permit expansion of operations for increase

sales and profit .


EXISTING SYSTEM
 In existing system we cannot modify the record also we
cannot keep backup of document.

 The management cannot be effectively followed by existing


system.

 To storage large amount of data, it needs much powerfull


Database.
LIMITATION OF EXISTING SYSTEM :
1. It is time consuming .
2. Cost is higher as compare to online shop.
3. Need to visit the shop.
4. Records can’t be updated easily.
5. As it is time consuming, there is possibilities of errors in
calculations.
ORGANISATION PROFILE

 Organization Name : Apna Bazar,Gadhinglaj.


Tal-Gadhinglaj,
Dist-Kolhapur.

 Owner : Mr.Yashavant Chougule.

 Mobile No. : 9730085507

 Year Of Establishment : 20-8-2009

 Area Of work : Ajara Road,Gadhinglaj.


Chapter 3
Objective Of Proposed System
Objective Of Proposed System:

 To develop the complete computerized


application that can satisfy all the needs of
organization.

 To get more reliable and efficient maintenance of


products of market.

 To care of update of software.

 The full system is automatic and there is no need


of human interaction for any calculation .

 The final reports of the system will be accurate &


efficient to handle.
Chapter 3
Methodology
METHODOLOGY
To design a computerized system be followed the
software engineer approach. We have chosen classic life cycle
approach for software development. This phenomenon includes
system design, system Analysis and testing which is followed by
again first phase i.e. repeating the cycle.

System design means understand the old system


completely and planning the new system or to replace existing
system.Then we tell them that we are making project on bazar
management System. So they give us information like transaction,
resisters and required reports and over all process .

After getting all information we make design of the


bazar management system with GST billing . We get help for staff of
computer science at coding time of the project .When whole project
is completed we give the demo of project to “Apna Bazar
market,Gadhinglaj”.
PROPOSED SYSTEM:

Advantages:
 Less of paperwork.
 Record searching.
 Require less manpower.
 Accuracy and efficiency in calculation.
 It will provide high security.
Chapter 4

System analysis
System Development Life Cycle
The process model used for this system “classic
life cycle” as this is simple and is best for small
scale project.

System

Analysis

Design

Code

Testing

Maintenance
Chapter 5
Data Flow
diagram
1st level DFD:

Order Product
Give order 1.0
Distributer
Customer Order

For Product
Details

Purchase Invoice
2.0

Purchas
e

Give bill recite

3.0

Order
Stock details
2nd Level DFD:

Customer ID
Customer Name

Address 1.0
Customer Distributer
Order

City Details Purchase Details

2.0

Purchas
e
Give Bill recite
Discount
Stock
Details Category
3.0 Name
Sale
Sale item to where
TAX
Product
Quantity

4.0 Weight

Report

Users
Chapter 6
(ERD)
Entity Relationship
Diagram
ERD FOR ONLINE SHOPPING

Customer
Customer ID
Name
Customer
Address

Orde
Customer r

Stoc
Sales Pay k
Prod Bill

Owner
Che Stock
ck

Bill

Bill Sup
ply
Giv
e

Distributer

Distributer Distribute
ID r name
Chapter 6
System
requirement
 Software Requirement-
 Microsoft Visual Studio 2012
 Microsoft SQL server 2012
 Crystal Report.
 Operating System:-Win-7 64 bit,Win-8 64 bit.

 Hardware Requirement-

 Intel Dual Core or Higher Processor.


 2 GB of RAM or Above.
 Minimum 20 GB Hard-Disk.
 1 Keyboard and Mouse.
 Front End-
 Visual C# .NET.

 Back End-
 SQL Server.

 About SQL Server-

SQL Server is a Microsoft product used to manage and store


information.

Technically, SQL Server is a “relational database management


system”
Chapter 7
About ASP.NET
About ASP.NET
ASP.NET is a web development platform, which
provides a programming model, a comprehensive software
infrastructure and various services required to build up robust
web applications for PC, as well as mobile devices.
ASP.NET works on top of the HTTP protocol, and uses the
HTTP commands and policies to set a browser-to-server
bilateral communication and cooperation.
ASP.NET is a part of Microsoft .Net platform. ASP.NET
applications are compiled codes, written using the extensible
and reusable components or objects present in .Net
framework. These codes can use the entire hierarchy of
classes in .Net framework.
The ASP.NET application codes can be written in any of the
following languages:

 C#
 Visual Basic.Net
 Jscript
 J#
ASP.NET is used to produce interactive, data-driven web
applications over the internet. It consists of a large number of
controls such as text boxes, buttons, and labels for
assembling, configuring, and manipulating code to create
HTML pages.
.
Chapter 8
About Database
About SQL Server
SQL (Structured Query Language) is a standardized
programming language used for managing relational databases and
performing various operations on the data in them. Initially created in
the 1970s, SQL is regularly used by database administrators, as well
as by developers writing data integration scripts and data analysts
looking to set up and run analytical queries.

The uses of SQL include modifying database table and index


structures; adding, updating and deleting rows of data; and retrieving
subsets of information from within a database for transaction processing
and analytics applications. Queries and other SQL operations take the
form of commands written as statements -- commonly used SQL
statements include select, add, insert, update, delete, create, alter and
truncate.

SQL became the de facto standard programming language


for relational databases after they emerged in the late 1970s and early
1980s. Also known as SQL databases, relational systems comprise a set
of tables containing data in rows and columns. Each column in a table
corresponds to a category of data -- for example, customer name or
address -- while each row contains a data value for the intersecting
column.
Chapter 9
Databas Design
1) Table Description ( ADMIN MODULE )

Sr No. Table Name Description

1 Customer Master This table contains Customer details by Admin

2 Supplier Master This table contains Supplier details managed by Admin

3 Product Master This table contains Product details managed by Admin

4 Purchase Master This table contains Purchase details managed by Admin

5 Purchas details This table contains Purchas details managed by Admin

6 Sale Master This table contains sales details managed by Admin

7 Sale Details This table contains Sales details managed by Admin

8 User Master This table contains details of Technisian.

1. Customer Master table -

No Field Name Data type Size Description

1 CID Int 11 Primary Key


2 CName Varchar 20 Not null
3 CAddress Varchar 30 Not null
4 CContact Varchar 30 Not null
5 CMail Varchar 30 Not null
2. Supplier Master -

No Field Name Data type Size Description

1 SID Int 11 Primary Key


2 SName Varchar 20 Not null
3 SAddress Varchar 20 Not null
4 SContact Varchar 20 Not null
5 SMail Varchar 20 Not null

3. Product Master –

No Field Name Data type Size Description

1 PID Number - Primary Key


2 PName Date/Time - Not null
3 Rate Number - Foreign Key
4 GST Date/Time - Not null
5 Unit Text 15 Not null
4. Purchas Master -

No Field Name Data type Size Description

1 PurID Int 11 Primary Key


2 PDate DateTime Not null
3 TotalQty Decimal (18,2) Not null
4 NetAmount Decimal (18,2) Not null
5 DueAmount Decimal (18,2) Not null
6 Total Discount Decimal (18,2) Not null
7 Total GST Decimal (18,2) Not null
8 SID Varchar 20 Foreign key
9 GST Varchar 20 Not null

5. Purchas Details -

No Field Name Data type Size Description

1 DetailsID Int 11 Primary Key


2 PurID Int 11 Foreign key
3 Qty Decimal (18,2) Not null
4 DetailTotal Decimal (18,2) Not null
5 PID Int 11 Foreign key
6 Rate Decimal (18,2) Not null
6. Sale Master -

No Field Name Data type Size Description


1 SaleID Int 11 Primary Key
2 SaleDate DateTime - Not null
3 TotalQty Decimal (18,2) Not null
4 NetAmount Decimal (18,2) Not null
5 DueAmount Decimal (18,2) Not null
6 TotalDiscount Decimal (18,2) Not null
7 TotalGST Decimal (18,2) Not null
8 CID Varchar 20 Foreign key
9 GST Varchar 20 Not null

7. Sale Details -

No Field Name Data type Size Description

1 SDetailsID Int 11 Primary Key


2 SaleID Int 11 Foreign key
3 PID Int 11 Foreign key
4 Qty Decimal (18,2) Not null
5 DetailTotal Decimal (18,2) Not null
6 Rate Decimal (18,2) Not null
Chapter 10
Source Code
Home Page

using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace prjBazarBilling
{
public partial class frmPurchaseMaster : Form
{
MySqlConnection cn = new
MySqlConnection("server=localhost;database=dbbazarbill;use
rid=root;password=root");
MySqlCommand cmd = new MySqlCommand();
public frmPurchaseMaster()
{
InitializeComponent();
}

private void btnClose_Click(object sender,


EventArgs e)
{
this.Close();

private void frmPurchaseMaster_Load(object sender,


EventArgs e)
{
// TODO: This line of code loads data into the
'dataSet1.productmaster' table. You can move, or remove
it, as needed.
this.productmasterTableAdapter.Fill(this.dataSet1.productm
aster);
cmbGST.SelectedIndex = 0;
cmbGST_SelectedIndexChanged(cmbGST, null);
BindSupplier();
GetMaxId();
}

private void dataGridView1_CellEndEdit(object


sender, DataGridViewCellEventArgs e)
{

if(this.dataGridView1.CurrentCell.OwningColumn==this.dataG
ridView1.Columns["Qty"])

{
double d1 =
Convert.ToDouble(dataGridView1.CurrentRow.Cells["Qty"].Val
ue);
double d2 =
Convert.ToDouble(dataGridView1.CurrentRow.Cells["Rate"].Va
lue);

dataGridView1.CurrentRow.Cells["DetailTotal"].Value
=d1*d2;
int rows;
rows=dataGridView1.RowCount;
double total=0,totalQty=0;
for(int i=0;i<rows;i++)
{
totalQty =
Convert.ToDouble(dataGridView1.Rows[i].Cells["Qty"].Value)
+ totalQty;
lblTotalQty.Text =
totalQty.ToString();

total=Convert.ToDouble(dataGridView1.Rows[i].Cells["Detail
Total"].Value)+total;
lblDetailTotal.Text=total.ToString();
}
}
if(this.dataGridView1.CurrentCell.OwningColumn==this.dataG
ridView1.Columns["Rate"])

{
double d1 =
Convert.ToDouble(dataGridView1.CurrentRow.Cells["Qty"].Val
ue);
double d2 =
Convert.ToDouble(dataGridView1.CurrentRow.Cells["Rate"].Va
lue);

dataGridView1.CurrentRow.Cells["DetailTotal"].Value
=d1*d2;
int rows;
rows=dataGridView1.RowCount;
double total = 0, totalQty=0;
for(int i=0;i<rows;i++)
{
totalQty =
Convert.ToDouble(dataGridView1.Rows[i].Cells["Qty"].Value)
+ totalQty;
lblTotalQty.Text =
totalQty.ToString();

total=Convert.ToDouble(dataGridView1.Rows[i].Cells["Detail
Total"].Value)+total;
lblDetailTotal.Text=total.ToString();
}
}
}

private void dataGridView1_CellValueChanged(object


sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex != -1 && e.ColumnIndex ==
COLUMN_COMBO_SELECTION)
{
try
{
string val =
dataGridView1.CurrentRow.Cells[0].Value.ToString();
MySqlDataAdapter adp = new
MySqlDataAdapter("Select * from productmaster where
PID='"+val+"'",cn);
DataSet ds = new DataSet();
adp.Fill(ds, "productmaster");

dataGridView1.CurrentRow.Cells["Rate"].Value =
ds.Tables["productmaster"].Rows[0]["Rate"].ToString();

dataGridView1.CurrentRow.Cells["Qty"].Value = 1;
double d1 =
Convert.ToDouble(dataGridView1.CurrentRow.Cells["Qty"].Val
ue);
double d2 =
Convert.ToDouble(dataGridView1.CurrentRow.Cells["Rate"].Va
lue);

dataGridView1.CurrentRow.Cells["DetailTotal"].Value = d1 *
d2;
int rows;
rows = dataGridView1.RowCount;
double total = 0, totalQty=0;
for (int i = 0; i < rows; i++)
{
totalQty =
Convert.ToDouble(dataGridView1.Rows[i].Cells["Qty"].Value)
+ totalQty;
lblTotalQty.Text =
totalQty.ToString();
total =
Convert.ToDouble(dataGridView1.Rows[i].Cells["DetailTotal"
].Value) + total;
lblDetailTotal.Text =
total.ToString();
CalculateGSTAmt();
}

}
catch (Exception ex)
{
}
}
}
int COLUMN_COMBO_SELECTION = 0;
private void
dataGridView1_CurrentCellDirtyStateChanged(object sender,
EventArgs e)
{
if (this.dataGridView1.CurrentCell.ColumnIndex
== COLUMN_COMBO_SELECTION)
{
this.dataGridView1.EndEdit();
}
}
double GSTPer = 0;

public void CalculateGSTAmt()


{
try
{
double detailTotal =
0,GSTAmt=0,discAmt=0,netAmt=0,due=0;
if (lblDetailTotal.Text != "Detail Total"
&& txtTotalDiscAmt.Text!="")
{
discAmt =
Convert.ToDouble(txtTotalDiscAmt.Text);
detailTotal =
Convert.ToDouble(lblDetailTotal.Text)-discAmt;
GSTAmt = detailTotal * GSTPer / 100;
txtTotalGST.Text = GSTAmt.ToString();
netAmt = detailTotal + GSTAmt;
txtNetAmt.Text = netAmt.ToString();
txtPaid.Text = netAmt.ToString();
due = Convert.ToDouble(txtNetAmt.Text)
- Convert.ToDouble(txtPaid.Text);
txtDueAmt.Text = due.ToString();
}
}
catch (Exception ex)
{
}
}
public void BindSupplier()
{
try
{
try
{

cn.Open();
cmd.CommandText = "select * from
suppliermaster";
MySqlDataAdapter adp = new
MySqlDataAdapter();
cmd.Connection = cn;
adp.SelectCommand = cmd;
DataTable dt = new DataTable();
adp.Fill(dt);
if (dt.Rows.Count > 0)
{
cmbSupplier.DataSource = dt;
cmbSupplier.ValueMember = "SID";
cmbSupplier.DisplayMember =
"SName";
}
//
}
catch
{
}
finally
{
cn.Close();
}
}
catch (Exception ex)
{
}
}

public void GetMaxId()


{
try
{
cn.Open();
cmd.CommandText = "select max(PurId) as id
from purchasemaster";
MySqlDataReader dr = cmd.ExecuteReader();
dr.Read();
if (dr["id"] == System.DBNull.Value)
{

txtPurId.Text = "1";
}
else
{
int i =
Convert.ToInt32(dr["id"].ToString());
int id = i + 1;
txtPurId.Text = id.ToString();

}
cn.Close();
}
catch (Exception ex)
{
}
}

public int GetDetailsMaxId()


{
int Detailid = 1;
try
{
cn.Open();
cmd.CommandText = "select max(DetailsId)
as id from purchasedetail";
MySqlDataReader dr = cmd.ExecuteReader();
dr.Read();
if (dr["id"] == System.DBNull.Value)
{

// txtPurId.Text = "1";
Detailid = 1;

}
else
{
int i =
Convert.ToInt32(dr["id"].ToString());
Detailid = i + 1;
//txtPurId.Text = id.ToString();

}
catch (Exception ex)
{
}
finally
{
cn.Close();
}
return Detailid;
}

public int GetstkMaxId()


{
int stkId = 1;
try
{
cn.Open();
cmd.CommandText = "select max(StkId) as id
from stockmaster";
MySqlDataReader dr = cmd.ExecuteReader();
dr.Read();
if (dr["id"] == System.DBNull.Value)
{
// txtPurId.Text = "1";
stkId = 1;
}
else
{
int i =
Convert.ToInt32(dr["id"].ToString());
stkId = i + 1;
//txtPurId.Text = id.ToString();
}
}
catch (Exception ex)
{
}
finally
{
cn.Close();
}
return stkId;
}
public void Clear()
{
txtPurId.Text = "";
GetMaxId();
lblDetailTotal.Text = "0.0";
lblTotalQty.Text = "0.0";
txtTotalDiscAmt.Text = "0.0";
txtTotalGST.Text = "0.0";
txtNetAmt.Text = "0.0";
txtDueAmt.Text = "0.0";
txtPaid.Text = "0.0";
dataGridView1.Rows.Clear();

private void cmbGST_SelectedIndexChanged(object


sender, EventArgs e)
{
if (cmbGST.SelectedIndex == 0)
{
GSTPer = 0;

}
else if (cmbGST.SelectedIndex == 1)
{
GSTPer = 5;

}
else if (cmbGST.SelectedIndex == 2)
{
GSTPer = 12;
}
else if (cmbGST.SelectedIndex == 3)
{
GSTPer = 18;
}
else
{
GSTPer = 28;
}
CalculateGSTAmt();

private void txtTotalDiscAmt_TextChanged(object


sender, EventArgs e)
{
CalculateGSTAmt();
}

private void btnInsert_Click(object sender,


EventArgs e)
{
try
{

MySqlDataAdapter adp = new


MySqlDataAdapter("Select * from purchasemaster", cn);
//ds.Clear();
DataSet ds = new DataSet();
adp.Fill(ds, "purchasemaster");
DataTable MyTable =
ds.Tables["purchasemaster"];
DataRow newRow = MyTable.NewRow();
newRow[0] = txtPurId.Text;
newRow[1] = dtpPDate.Text;
newRow[2] = lblTotalQty.Text;
newRow[3] = txtNetAmt.Text;
newRow[4] = txtPaid.Text;
newRow[5] = txtDueAmt.Text;
newRow[6] = txtTotalDiscAmt.Text;
newRow[7] = txtTotalGST.Text;
newRow[8] = cmbSupplier.SelectedValue;
newRow[9] = cmbGST.SelectedItem;

//Adding new row to the table


MyTable.Rows.Add(newRow);

//Generating Insert Command


MySqlCommandBuilder UpdateDataCommand =
new MySqlCommandBuilder(adp);
adp.InsertCommand =
UpdateDataCommand.GetInsertCommand();

//Addding row to the dataset


adp.Update(ds, "purchasemaster");

//Updating Database with the new row


ds.AcceptChanges();

//--Storing in 'PODetails' Table--


int rows;
rows = dataGridView1.RowCount - 1;

// Retrieving deatils of the PoDetails


Table
MySqlDataAdapter adp1 = new
MySqlDataAdapter("Select * from purchasedetail", cn);
DataSet ds1 = new DataSet();
ds1.Clear();
adp1.Fill(ds1, "purchasedetail");

//creating instance of the PODetails table


DataTable MyTable1 =
ds1.Tables["purchasedetail"];

for (int i = 0; i < rows; i++)


{

DataRow newRow1 = MyTable1.NewRow();


newRow1[0] = GetDetailsMaxId();
newRow1[1] = txtPurId.Text;
newRow1[2] =
dataGridView1.Rows[i].Cells["Qty"].Value;
newRow1[3] =
dataGridView1.Rows[i].Cells["DetailTotal"].Value;
newRow1[4] =
dataGridView1.Rows[i].Cells["ProductName"].Value;
newRow1[5] =
dataGridView1.Rows[i].Cells["Rate"].Value;
//Adding new row to the table
MyTable1.Rows.Add(newRow1);
//Generating Insert Command
MySqlCommandBuilder UpdateDataCommand1
= new MySqlCommandBuilder(adp1);
adp1.InsertCommand =
UpdateDataCommand1.GetInsertCommand();
//Addding row to the dataset
adp1.Update(ds1, "purchasedetail");
//Updating Database with the new row
ds1.AcceptChanges();

// Retrieving deatils of the PoDetails


Table
MySqlDataAdapter adpStk = new
MySqlDataAdapter("Select * from stockmaster where PID='"+
dataGridView1.Rows[i].Cells["ProductName"].Value+"'", cn);
DataSet dsStk = new DataSet();
dsStk.Clear();
adpStk.Fill(dsStk, "stockmaster");

//creating instance of the PODetails


table
DataTable dtStk =
dsStk.Tables["stockmaster"];
double avlStk, updStk; string query;
MySqlCommand cmdStk = new
MySqlCommand();
if (dtStk.Rows.Count > 0)
{
avlStk =
Convert.ToDouble(dtStk.Rows[0]["AvlQty"].ToString());
updStk = avlStk +Convert.ToDouble
(dataGridView1.Rows[i].Cells["Qty"].Value);
query="update stockmaster set
AvlQty=" + updStk + " where PID=" +
dataGridView1.Rows[i].Cells["ProductName"].Value+"";
cmdStk.Connection = cn;
cmdStk.CommandText = query;
cn.Open();
cmdStk.ExecuteNonQuery();
cn.Close();
}
else
{
cn.Close();
cmdStk.Connection = cn;
query="insert into
stockmaster(StkId,PID,AvlQty)values('" + GetstkMaxId() +
"','" + dataGridView1.Rows[i].Cells["ProductName"].Value +
"','" + dataGridView1.Rows[i].Cells["Qty"].Value+"')";
/*cmdStk = new
MySqlCommand(query,cn);
cmd.Connection = cn;*/

cmdStk.CommandText = query;
cn.Open();
cmdStk.ExecuteNonQuery();
cn.Close();
}

}
cn.Close();
MessageBox.Show("Purchase Order Details
Saved");
Clear();
}
catch (Exception ex)
{
}
finally {
cn.Close();
}
}

private void btnClear_Click(object sender,


EventArgs e)
{
Clear();
}

private void panel2_Paint(object sender,


PaintEventArgs e)
{

}
}
Chapter 9
Output
Design
Admin Pages

Home Page –

Customer Master Table –


Supplier Master Table –

Product Master Table –


Purchas Table –

Sale Table –
Admin Login Page-
Chapter 10
Report Generation
Customer List Report

Supplier List Report-


Product List Report-

Date Wise Report

Purchase Between Date –


Sales Between Date
Bill No Wise Report

Purchase Show Bye Bill No –

Sales Show By Bill No –


Chapter 11
User Manual
User Manual
The project “Bazar Management System” is developed by using
front end as Visual Studio(ASP.NET) and backend as SQL server to
access to Bazar.
When you run this system then you will get logic from where you
have to enter the password to logon the system, the purpose of
the login form is to maintain the security.
After logon Main from will appear. This contains the following
items which are created by using various controls.

administrator
user
Login
logout

1) Administrator –
The list of items under this is updated only by the manager or
the Administrator . For security purpose it has got one
password form whose password is known by the administrator
only The list has following sub items.
2) User –
User can see only first home page. User can use
this home page for information and details of product,
and for ordering bakery foods.
This form is only used for admin. Only Admin will be login here
who belongs to bakeryand update detail.
3) Login-

a)Admin Login

b) user login
User must login before order any bakery product .

4) Logout –

This is used to logout for the Admin as well as User .


CONCLUSION

 The project reviles that there is huge scope for organized


inventory and improvement of bazar in our area.

 With the changing lifestyle, modernization and westernization


there exits a huge scope for big bazar management .

 The system can be updated according to user requirements.

 Aggressive marketing is key to increase the market share in


this area, since the market has lot of potential both in terms of
untapped market.
BIBILIOGRAPHY

 System Analysis and Design – Award F.H.

 ASP.NET: The Complete Reference– Matthew


MacDonald

 SQL, the complete reference- James R. Groff

 www.google.com

You might also like