Motivation
Motivation
Motivation
The product details are entered in the database at the time of new product creation. The new product entry must be done by system administrator. A unique ID is given against each product. The system is used to carry out various transactions in the business process. Once the customer places an order after getting the authentication the amount payable is deducted from the deposit, the stock quantity is set and updated automatically. In case if there is no stock, then an error message indicating that order cannot be placed is displayed and the stock quantity remains unchanged. In a Product inventory if the user comes to purchase a Product, first the valid Customer no. and Product no. needs to be checked according to the name entered and after getting an authentication the order is placed and the transaction is done. If the customer returns the taken product then the amount is updated in the database and the money is returned to the customer and updated accordingly. Hence this system will provide more security and discipline will be maintained in both Product and Account.
Page | 2
BACKGROUND DETAILS.
Every successful project was once a thought in mans mind As the saying goes thousands of years ago man faced the problem of traveling from one place to another, and knowing new boundaries. Thus he discovered the wheel and his happiness knew no bounds. That was the beginning of mechanics and today the mechanics seems to be the tryst of destiny. Gone are the days when people required animals and human beings to pass on messages and to communicate amongst one another. As technology and computers has evolved since decades, they have outsourced their capabilities to almost every possible dimension that we can think of. Projects are more interesting, useful & active if they are live projects. The project (software), which is going to be developed by us, is too a live project, which can be implemented in various fields of education. Our project is based on a working construction project which is named as BUSINESS PROCESS MANAGEMENT. The software is based on transaction with supplier, customer, product, product details and details of purchase and sales process.
Page | 3
OBJECTIVES
The various objectives that we aim our project to achieve are listed as:
To display detailed information of the product, supplier, customer, purchase, sales & bills process to the user. To reduce the stress of members involved in the process from purchase and sales processing to billing process.
To eliminate the cost of third party software. To reduce man power requirements. To reduce the complexity of the software by making the software interactive and easy to use.
Page | 4
OVERVIEW OF PROJECT
OVERVIEW OF PROJECT
Page | 5
Business Process Management This project BUSINESS PROCESS MANAGEMENT which contains the module to manage the construction business. This application will help the client to manage his Product details, customer details, supplier details, purchase and sales details etc. This system consists of Business process management, which has been designed using Visual Basic .NET (front-end) and SQL Server 2000 (backend). The Business process includes products details such as product cost and other details. The employee details are also stored in the system. The Business process will store product cost details such as product description, quantity, rate and total. The business process will also store the products purchase and sales transaction and will also maintain the stock and will also generate weekly, monthly, quarterly and yearly reports accordingly. Before accessing system user needs to enter their valid Id and password and after getting the authentication they can access it. In Case of any incorrect details an error message is generated accordingly. The system has an authentication number for verification purpose for each module, which provides an enhanced security.
ABSTRACT
It is to be designed using VB.Net and SQL Server 2000. This System consists of BUSINESS PROCESS Management. Page | 6
An error message is displayed for incorrect details. It provides enhanced security by giving a unique pin number for authentication purpose.
This system is used for Product, Purchase, Sales and Order transactions. It enables the centralized authorities to modify, delete, or enter new data as when
required. For future enhancement, it has the ability to read data from barcode using barcode reading system.
EXISTING
Page | 7
Page | 8
Business Process Management Whenever a new project is created, all the attributes have to be added in the Excel sheet which becomes very time consuming. Secondly for the report generation, the required data needs to be converted into a word document which requires copying and pasting of the data every time from the Excel sheet into word pad and then the printouts are removed. For every small information the excel sheet has to be referred, every small information needs to be searched which makes the job tedious. The existing system is not attractive. The data is not sorted based on any unique key, which makes it difficult to access the data. Above all the most important reason for implementation in VB.Net is to make it user friendly by having a windows interface capability. PROPOSED SYSTEM : The main aim of the project is to develop a user friendly GUI , which would provide the required information just by clicking of buttons, to make it completely menu driven which would reduce the time factor involved ,and would increase the efficiency and flexibility of the system. Information regarding different attributes like Products, Suppliers, Employees, Customer and other information like overview of the project can be easily monitored through the menu driven approach of the various forms. Various functions like add, update, delete etc would be accomplished just by mere clicking of buttons.
Page | 9
Business Process Management Presently, records of product are done manually through muster. It causes inconvenience during calculation of purchase and sales. It is time consuming and the records have to be checked every time. Hence it requires a lot of manpower and paperwork. For the suppliers and the customer, the information is also stored in musters and when in a need to view the details and to perform any transaction all the records have to be searched from the scratch The existing system has less security such as the database can be easily modified or deleted by an unauthorized user that may cause inconvenience during carrying out any transactions. So the system having a centralized authority is needed to be developed.
Page | 10
List of Processes
Requirement analysis is a software engineering task that bridges the between system level requirement engineering and software design. Requirement engineering activities result in the specification of softwares operational characteristics, indicate softwares interface with other system elements, and establish constraints that software must meet.
Page | 11
Business Process Management Requirements analysis allows the software engineer to refine the software allocation and build models of data, functional and behavioral domains that will be treated by the software.
Business Process Management Such as: Waterfall Model Prototype Model Spiral Model etc. Component Based Model However the Process Model which we selected for our project is Waterfall Model. We selected this model because it is most popular model & suits exactly to our project and schedule.
Page | 13
Page | 14
Operational feasibility part determines whether the system will be used if it is developed and implemented. According to our investigation we found that requirements of lab automation are very high. Also our system will be developed, taking user friendliness into consideration.
Page | 15
2.
We went through the various records maintained in the company for searching through various information pertaining to the employees. Through this study we were able to create database for the system .Also by knowing an employee requirements we were able to create forms and layouts. From the main form we were able to determine the details that should be taken.
b. Onsite Observation:
Onsite observation is the process of recognizing and noting people, objects and occurrences to obtain information. In this step we interacted with the staff that will be using the software. The major objective was to get as close as possible to the real system environment.
5.
SYSTEM TESTING:
Page | 16
6. MAINTENANCE:
In maintenance, we the students who have created the project shall check and put new equipment into use. Master files, database and other relevant information will be made available.
Page | 17
Business Process Management Another main advantage is that it consumes less Time for Searching, Updating, Inserting and Deleting. Information about a company is readily available at any time. The company can obtain various reports at any time. Records are easily fetched.
Page | 18
DESIGNING OF PROJECT
Page | 19
Page | 20
Report
Galaxy Database
Level 1 DFD
User Enters 1.0 Login Information Uses 2.0 Main Menu
Page | 21
Click Login
Galaxy Database
Page | 22
Galaxy Database
Provides
Includes
Enters
Page | 24
Enters
Click Login
Page | 25
Click Login
Replaces
Page | 26
Provides
Generates
Sends
Add
Transfer
Calls
Page | 27
Page | 28
Page | 29
Page | 30
Page | 31
Page | 32
TIMELINE CHART
October W1 1) Gathering Initial Requirement s. Meet Internal Guide Identify needs & Constraints Determine Goals & Scope Establish specification. 2) Feasibility Phase Technical(S/w & H/W) Feasibility Economic Feasibility Application(co de) Feasibility Operational Feasibility 3) Requirement Determinati on Phase Determine inputs Determine outputs Process Control Synopsis W2 W3 W4
November W1 W2 W3 W4
December W1 W2 W3 W4
Page | 33
January 4) Design Customer interface Algorithmic Design for encryption. Algorithmic Design for color image compression using wavelet 5) Development Developing interfaces Developing color image compression using wavelet modules 7) Testing Phase Testing connectivity 8) Implementation Phase 9) Evaluation Phase W1 W2 W3 W4
February W
1
March W3 W4 W1 W2 W3 W4
W2
Page | 34
SCREEN SHOTS
Page | 35
SCREEN SHOTS
LOGIN FORM
Page | 36
Page | 37
NEW CUSTOMER
Page | 38
EDIT CUSTOMER
Page | 39
CUSTOMER SEARCH
Page | 40
NEW SUPPLIER
Page | 41
SUPPLIER SEARCH
Page | 42
PURCHASE DETAIL
Page | 43
SALES DETAIL
Page | 44
NEW PRODUCT
Page | 45
PRODUCT SEARCH
Page | 46
STOCK SEARCH
Page | 47
NEW BILL
Page | 48
Page | 49
Page | 50
CHANGE PASSWORD
Page | 51
EDIT SUPPLIER
Page | 52
Page | 53
PROJECT THEORY
Designer ideas, however innovative remain a fantasy until put on a piece of a paper and implemented. Planning in advance is very necessary to decide about each statement and element of the job in anticipation of what should be done. Now moving on to the actual details of the software, it consists of various forms for performing different specific purposes in the transaction with supplier, details of stock, details of product, and details of purchase and sales process. The function performed by each of the forms is much more related with other forms. Apart from the forms, we have Microsoft SQL Server 2000 database used to hold the records of each of the transaction with supplier and customer, details of product, details of stock, details of sales and purchase process. The various forms are enumerated as below:
LOGIN FORM This form asks the user to enter the user name and password. It is basically for providing authorized access to various users. The two categories of users are Users and Administrator. We can also add various different types of users.
MDI FORM
Page | 54
This is the main form of the application. It is the parent form which contains various other child forms or windows. This form contains menu bar and toolbar with several options. At the bottom of the form a status bar is present displaying the Username, Login time & Date. NEW CUSTOMER FORM This form provides us to have a new customer entry. This form mainly consist an authentication for making a new customer entry into the system so as to keep in record the transactions done. CUSTOMER SEARCH FORM This form provides search option for searching the required customer so as get the details. CUSTOMER EDIT FORM This form provides editing option so as to update, delete or modify the existing details of the customer.
Page | 55
This form provides us to have a new supplier entry. This form mainly consist an authentication for making a new supplier entry into the system so as to keep in record the transactions done. SUPPLIER SEARCH FORM This form provides search option for searching the required supplier so as get the details. SUPPLIER EDIT FORM This form provides editing option so as to update, delete or modify the existing details of the supplier.
CHANGING THE PASSWORD This form allows us to change our own password as if it has been known to another person who can easily access the application. So, these forms allow us to change the password of our own. Even it has the restriction that if an application is logged in by a staff then he doesnt have rights to change the password of the administrator.
Page | 56
This form allows the user to entry a record of the new product along with the basic rates, quantity etc. This is been saved in the product table which will be transact by all other tables which are related to each other. PRODUCT SEARCH FORM This form allows the user to proceed with the searching of the product according to its name which has been saved previously such as its name, date, amount etc. PURCHASE FORM This form allows the user to enter the purchase details. The data is saved in the purchase table and accordingly updated in stock.
SALES FORM
.
This form allows the user to enter the sales details of the product sold to the
respective customer.. The data is saved in the sales table and accordingly updated in stock.
Page | 57
Through this form the user gets a bill in a predefined format in which the user enters the details of the transaction done with the customer and prints the bill and gives it to the customer. BILL SEARCH FORM There are two ways in which a user can search the bills from the system. First way is by giving the Bill No and searching accordingly. Second way is by giving the date on which the bill was issued to the customer. STOCK SEARCH FORM In this form the user can search the stock detail such as total stock available, cost of the product etc. The user can view the details weekly, monthly, quarterly and even yearly.
Page | 58
LOGIN FORM
Page | 59
Public Class frmmain Private Sub NewCustomerToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewCustomerToolStripMenuItem.Click frmcust.Show() End Sub Private Sub NewProductToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewProductToolStripMenuItem.Click frmNewProduct.Show() End Sub Private Sub NewSupplierToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewSupplierToolStripMenuItem.Click frmnewsupp.Show() End Sub Private Sub ByNameToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ByNameToolStripMenuItem.Click frmcustsearch.Show() End Sub Private Sub frmmain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Me.MdiParent = Me 'frmgalaxy.ShowDialog() 'frmlogin.Dispose() End Sub Private Sub ByNameToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ByNameToolStripMenuItem1.Click frmsuppsearch.Show() End Sub Private Sub ByBillNoToolStripMenuItem_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ByBillNoToolStripMenuItem.Click frmbillsearchno.ShowDialog() End Sub Private Sub StockCheckToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StockCheckToolStripMenuItem.Click frmstockchk.Show() End Sub Private Sub NewBillToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewBillToolStripMenuItem.Click frmnewbill.Show() End Sub Private Sub CustomerToolStripMenuItem_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles CustomerToolStripMenuItem.MouseHover
Page | 61
Private Sub notepad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles notepad.Click Shell("notepad.exe") End Sub Private Sub addnewuser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addnewuser.Click
Page | 62
Private Sub ProductSearchToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProductSearchToolStripMenuItem.Click prodsearch.Show() End Sub Private Sub SalesToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SalesToolStripMenuItem.Click frmsales.Show() End Sub
Page | 63
NEW CUSTOMER
Page | 64
Page | 65
Page | 66
SEARCH CUSTOMER
Imports System.Data Imports System.Data.SqlClient Public Class frmcustsearch Dim connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Dim conn As SqlConnection Dim da As SqlDataAdapter Private Sub Customer_Search_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'New_galaxy1DataSet.customer' table. You can move, or remove it, as needed. Try Me.CustomerTableAdapter.Fill(Me.New_galaxy1DataSet.customer) Catch ex As Exception 'MessageBox.Show(ex.ToString()) End Try End Sub Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click Me.Close() End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) Dim str As String str = TextBox1.Text da = New SqlDataAdapter("select * from customer where custname like'" + str + "%'", conn) da.Fill(temp, "customer") DataGridView1.DataSource = temp.Tables("customer") End Sub Private Sub btnreload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnreload.Click Me.CustomerTableAdapter.Fill(Me.New_galaxy1DataSet.customer) Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) da = New SqlDataAdapter("select * from customer", conn) da.Fill(temp, "customer") DataGridView1.DataSource = temp.Tables("customer") End Sub End Class
Page | 67
EDIT CUSTOMER
Imports System.Data Imports System.Data.SqlClient Public Class Edit_Customer Dim conn As SqlConnection Public connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Public ds As DataSet Public da As New SqlDataAdapter Dim mydataview As DataView 'adding new concept of bindingsource Dim mybindingsource As BindingSource Private Sub Edit_Customer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection(connstring) ds = New DataSet() da.SelectCommand = New SqlCommand("select * from customer", conn) Dim mycommand As SqlCommandBuilder = New SqlCommandBuilder(da) da.Fill(ds, "customer") 'binding source object creation mybindingsource = New BindingSource() mybindingsource.DataMember = "customer" mybindingsource.DataSource = ds 'Binding the form fields to the mydataset object txtcustname.DataBindings.Add("text", ds.Tables("customer"), "custname") txtcustphno.DataBindings.Add("text", ds.Tables("customer"), "custphno") txtcustemailid.DataBindings.Add("text", ds.Tables("customer"), "custemailid") txtcustaddr.DataBindings.Add("text", ds.Tables("customer"), "custaddr") custedit_datagrid.DataSource = ds custedit_datagrid.DataMember = "customer" End Sub Sub cleartext() txtcustname.Text = "" txtcustaddr.Text = "" txtcustemailid.Text = "" txtcustphno.Text = "" End Sub Sub disabletext() txtcustname.Enabled = False txtcustaddr.Enabled = False txtcustemailid.Enabled = False txtcustphno.Enabled = False End Sub Sub enabletext()
Page | 68
Page | 69
Private Sub custedit_datagrid_CellMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles custedit_datagrid.CellMouseClick Me.txtcustname.Text = custedit_datagrid.CurrentRow.Cells("custname").Value Me.txtcustaddr.Text = custedit_datagrid.CurrentRow.Cells("custaddr").Value Me.txtcustphno.Text = custedit_datagrid.CurrentRow.Cells("custphno").Value Me.txtcustemailid.Text = custedit_datagrid.CurrentRow.Cells("custemailid").Value End Sub
Private Sub txtcustedit_TextChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtcustedit.TextChanged Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) Dim str As String str = txtcustedit.Text da = New SqlDataAdapter("select * from customer where custname like'" + str + "%'", conn) da.Fill(temp, "customer") custedit_datagrid.DataSource = temp.Tables("customer") custedit_datagrid.DataSource = temp custedit_datagrid.DataMember = "customer" End Sub End Class
Page | 70
NEW SUPPLIER
Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlCommand Public Class frmnewsupp Dim connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Dim conn As New SqlConnection Dim da As SqlDataAdapter Dim cmdInsert As SqlCommand Private Sub btnsuppexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsuppexit.Click Me.Close() End Sub Private Sub btnsuppsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsuppsave.Click Dim blnFlag As Boolean = False If txtsuppname.Text = "" Then txtsuppname.Focus() blnFlag = False ElseIf txtsuppaddr.Text = "" Then txtsuppaddr.Focus() blnFlag = False ElseIf txtsuppphno.Text = "" Then txtsuppphno.Focus() blnFlag = False Else blnFlag = True End If If blnFlag Then Try cmdInsert = New SqlCommand() conn = New SqlConnection(connstring) cmdInsert.Connection = conn cmdInsert.CommandText = "INSERT INTO supplier (suppname,suppphno,suppaddr,suppemailid) VALUES ('" & txtsuppname.Text & "','" & txtsuppphno.Text & "', '" & txtsuppaddr.Text & "','" & txtsuppemailid.Text & "')" conn.Open() cmdInsert.ExecuteNonQuery() conn.Close() MsgBox("Records Entered Successfully") btnsuppsave.Enabled = False Catch ex As Exception MessageBox.Show(ex.ToString()) End Try Else MessageBox.Show("Please Check the Input") End If End Sub
Page | 71
Private Sub btnclear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnclear.Click txtsuppname.Text = "" txtsuppaddr.Text = "" txtsuppphno.Text = "" txtsuppemailid.Text = "" btnsuppsave.Enabled = True End Sub Private Sub frmnewsupp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load txtsuppname.Focus() End Sub End Class
Page | 72
SUPPLIER SEARCH
Imports System.Data Imports System.Data.SqlClient Public Class frmsuppsearch Dim connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Dim conn As SqlConnection Dim da As SqlDataAdapter Private Sub frmsuppsearch_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'New_galaxy1DataSet.supplier' table. You can move, or remove it, as needed. Me.SupplierTableAdapter.Fill(Me.New_galaxy1DataSet.supplier) End Sub Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click Me.Close() End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Dim str As String str = TextBox1.Text Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) da = New SqlDataAdapter("select * from supplier where suppname like'" + str + "%'", conn) da.Fill(temp, "supplier") DataGridView1.DataSource = temp.Tables("supplier") End Sub Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick 'frmeditcust.Show() 'Edit_Customer() Edit_Customer.Show() End Sub Private Sub btnrestore_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnrestore.Click Me.SupplierTableAdapter.Fill(Me.New_galaxy1DataSet.supplier) Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) da = New SqlDataAdapter("select * from supplier", conn) da.Fill(temp, "supplier") DataGridView1.DataSource = temp.Tables("supplier")
Page | 73
EDIT SUPPLIER
Imports System.Data Imports System.Data.SqlClient Public Class frmeditsupp Dim conn As SqlConnection 'Dim connection2 As OleDbConnection Public connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Public ds As DataSet Public da As New SqlDataAdapter Dim mydataview As DataView 'adding new concept of bindingsource Dim mybindingsource As BindingSource Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click Me.Dispose() End Sub Private Sub frmeditsupp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection(connstring) ds = New DataSet() da.SelectCommand = New SqlCommand("select * from supplier", conn) Dim mycommand As SqlCommandBuilder = New SqlCommandBuilder(da) da.Fill(ds, "supplier") 'binding source object creation mybindingsource = New BindingSource() mybindingsource.DataMember = "supplier" mybindingsource.DataSource = ds 'Binding the form fields to the mydataset object txtsuppname.DataBindings.Add("text", ds.Tables("supplier"), "suppname") txtsuppphno.DataBindings.Add("text", ds.Tables("supplier"), "suppphno") txtsuppemailid.DataBindings.Add("text", ds.Tables("supplier"), "suppemailid") txtsuppaddr.DataBindings.Add("text", ds.Tables("supplier"), "suppaddr") custedit_datagrid.DataSource = ds custedit_datagrid.DataMember = "supplier" End Sub
Page | 74
Page | 75
Page | 76
NEW PRODUCT
Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlCommand Public Class frmNewProduct Dim connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Dim conn As New SqlConnection(connstring) Dim da As SqlDataAdapter Dim cmdInsert, cmdInsert1, cmdinsert2 As SqlCommand Dim cmdupdate As SqlCommand Dim total As Decimal Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click Me.Close() End Sub Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnok.Click Dim blnFlag As Boolean = False If txtprodname.Text = "" Then txtprodname.Focus() blnFlag = False ElseIf txtproddesc.Text = "" Then txtproddesc.Focus() blnFlag = False ElseIf txtprodrate.Text = "" Then txtprodrate.Focus() blnFlag = False ElseIf txtprodqty.Text = "" Then txtprodrate.Focus() blnFlag = False ElseIf txtrecvddate.Text = "" Then txtrecvddate.Focus() blnFlag = False ElseIf txttot.Text = "" Then txttot.Focus() blnFlag = False Else blnFlag = True End If If blnFlag Then
Page | 77
Page | 78
Private Sub frmNewProduct_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load txtprodname.Focus() txtrecvddate.Text = FormatDateTime(Now, DateFormat.ShortDate) Dim dr As SqlDataReader Dim mycommand As SqlCommand conn.Open() mycommand = New SqlCommand("select * from supplier", conn) dr = mycommand.ExecuteReader() While dr.Read() cmbsuppname.Items.Add(dr("suppname").ToString()) End While End Sub
Private Sub btnclear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnclear.Click txtprodname.Text = "" txtproddesc.Text = "" txtprodrate.Text = "" txtprodqty.Text = "" txttot.Text = "" cmbsuppname.Text = "" 'DateTimePicker1.Text = "" End Sub
PRODUCT SEARCH
Page | 79
Imports System.Data Imports System.Data.SqlClient Public Class prodsearch Dim conn As SqlConnection 'Dim connection2 As OleDbConnection Public connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Public ds As DataSet Public da As New SqlDataAdapter Dim mydataview As DataView 'adding new concept of bindingsource Dim mybindingsource As BindingSource Private Sub prodsearch_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection(connstring) ds = New DataSet() da.SelectCommand = New SqlCommand("select * from product", conn) Dim mycommand As SqlCommandBuilder = New SqlCommandBuilder(da) da.Fill(ds, "product") 'binding source object creation mybindingsource = New BindingSource() mybindingsource.DataMember = "product" mybindingsource.DataSource = ds proddatagridview.DataSource = ds proddatagridview.DataMember = "product" End Sub Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) Dim str As String str = TextBox2.Text da = New SqlDataAdapter("select * from product where prodname like'" + str + "%'", conn) da.Fill(temp, "product") proddatagridview.DataSource = temp.Tables("product") End Sub Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click Me.Dispose() End Sub End Class
PURCHASE DETAILS
Page | 80
Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlCommand Public Class frmpurchase Dim connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Dim conn As New SqlConnection(connstring) Dim da As SqlDataAdapter Dim cmdInsert, cmdinsert1 As SqlCommand Dim total As Decimal Dim qty As Decimal Dim pname As String Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click Me.Dispose() End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click qty = Val(txtprodqty.Text) pname = cmbprodname.Text Dim blnFlag As Boolean = False If cmbprodname.Text = "" Then cmbprodname.Focus() blnFlag = False ElseIf cmbsuppname.Text = "" Then cmbsuppname.Focus() blnFlag = False ElseIf txtpurdate.Text = "" Then txtpurdate.Focus() blnFlag = False ElseIf txtprodqty.Text = "" Then txtprodqty.Focus() blnFlag = False ElseIf txtprodcost.Text = "" Then txtprodcost.Focus() blnFlag = False ElseIf txtprodtot.Text = "" Then txtprodtot.Focus() blnFlag = False Else blnFlag = True End If If blnFlag Then Try cmdInsert = New SqlCommand() conn = New SqlConnection(connstring) cmdInsert.Connection = conn
Page | 81
Page | 82
SALES DETAILS
Page | 83
Page | 84
Private Sub frmsales_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cmbproductname.Focus()
Page | 85
Private Sub txtprodcost_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtprodcost.Leave Dim tot As Decimal tot = Val(txtprodcost.Text) * Val(txtprodqty.Text) total = Val(tot) txtprodtot.Text = tot.ToString() End Sub End Class
NEW BILL
Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlCommand
Page | 86
Page | 87
Imports System.Data Imports System.Data.SqlClient Public Class frmbillsearchno Dim connstring As String = "Data Source=localhost;Initial Catalog= new galaxy1;Integrated Security=True " Dim conn As SqlConnection Dim da As SqlDataAdapter 'Dim num As Integer = ComboBox1.SelectedItem Private Sub frmbillsearch_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'New_galaxy1DataSet.bill' table. You can move, or remove it, as needed. Me.BillTableAdapter.Fill(Me.New_galaxy1DataSet.bill) 'TODO: This line of code loads data into the 'New_galaxy1DataSet.supplier' table. You can move, or remove it, as needed. End Sub Private Sub txtbillnosearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtbillnosearch.TextChanged Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) da = New SqlDataAdapter("select * from bill where bill_no like'%" & txtbillnosearch.Text & "%'", conn) da.Fill(temp, "bill") DataGridView1.DataSource = temp.Tables("bill") End Sub Private Sub btnrestore_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnrestore.Click Me.BillTableAdapter.Fill(Me.New_galaxy1DataSet.bill) Dim temp As DataSet = New DataSet() conn = New SqlConnection(connstring) da = New SqlDataAdapter("select * from bill", conn) da.Fill(temp, "bill") DataGridView1.DataSource = temp.Tables("bill") End Sub Private Sub btn_exit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_exit.Click Me.Dispose() End Sub End Class
BY BILL DATE
Imports System.Data Imports System.Data.SqlClient
BILL SEARCH
Page | 89
STOCK REPORT
Imports System.Data.SqlClient Public Class frmstockreport Dim rpt As New stockReport() Dim cmd, cmd1, cmd2 As New SqlCommand()
Page | 90
BILL REPORT
Imports System.Data.SqlClient Public Class frmBillReport Dim cmd, cmd1 As New SqlCommand()
Page | 91
Page | 92
IMPLEMENTATIO N TOOLS
IMPLEMENTATION TOOLS
Page | 93
Simplified Deployment
With Visual Basic .NET we can build applications more rapidly and deploy and maintain them with efficiency. Visual Basic .NET 2003 and .NET Framework 1.1 makes "DLL Hell" a thing of the past. Side-by-side versioning enables multiple versions of the same component to live safely on the same machine so that applications can use a specific version of a component.
XCOPY-deployment and Web auto-download of Windows-based applications combine the simplicity of Web page deployment and maintenance with the power of rich, responsive Windows-based applications.
Page | 94
Business Process Management Powerful, Flexible, Simplified Data Access You can tackle any data access scenario easily with ADO.NET and ADO data access. The flexibility of ADO.NET enables data binding to any database, as well as classes, collections, and arrays, and provides true XML representation of data. Seamless access to ADO enables simple data access for connected data binding scenarios. Using ADO.NET, Visual Basic .NET can gain high-speed access to MS SQL Server, Oracle, DB2, Microsoft Access, and more.
Improved Coding
You can code faster and more effectively. A multitude of enhancements to the code editor, including enhanced IntelliSense, smart listing of code for greater readability and a background compiler for real-time notification of syntax errors transforms into a rapid application development (RAD) coding machine.
Business Process Management Microsoft SQL Server 2000 is a full-featured relational database management system (RDBMS) that offers a variety of administrative tools to ease the burdens of database development, maintenance and administration. In this article, we'll cover six of the more frequently used tools: Enterprise Manager, Query Analyzer, SQL Profiler, Service Manager, Data Transformation Services and Books Online. Let's take a brief look at each:
Enterprise Manager
It is the main administrative console for SQL Server installations. It provides you with a graphical "birds-eye" view of all of the SQL Server installations on your network. You can perform high-level administrative functions that affect one or more servers, schedule common maintenance tasks or create and modify the structure of individual databases.
Query Analyzer
It offers a quick and dirty method for performing queries against any of your SQL Server databases. It's a great way to quickly pull information out of a database in response to a user request, test queries before implementing them in other applications, create/modify stored procedures and execute administrative tasks.
SQL Profiler
It provides a window into the inner workings of your database. You can monitor many different event types and observe database performance in real time. SQL Profiler allows you to capture and replay system "traces" that log various activities. It's a great tool for optimizing databases with performance issues or troubleshooting particular problems.
Service Manager
Page | 96
Business Process Management It is used to control the MSSQLServer (the main SQL Server process), MSDTC (Microsoft Distributed Transaction Coordinator) and SQLServerAgent processes. An icon for this service normally resides in the system tray of machines running SQL Server. You can use Service Manager to start, stop or pause any one of these services.
Books Online
It is an often overlooked resource provided with SQL Server that contains answers to a variety of administrative, development and installation issues. It's a great resource to consult before turning to the Internet or technical support.
Page | 97
SYSTEM REQUIREMENT S
SYSTEM REQUIRMENTS
Page | 98
H/W Requirements:
Page | 99
DATA DICTIONARY
Page | 100
DATA DICTIONARY
Table name: Product Description: It stores the information about various products. It contains information
about the product details, such as name, description, quantity, Amount, total cost etc
Sr No. 1 2 3 4 5 6 7 8 Data name pid prod name Proddesc prod cost prod_qty recvd_date total suppname Data type int Varchar(50) Varchar(100) decimal int Description Contains the id of various products Contains the names of the products Contains the unit rate of the product Contains the location of the project Contains the quantity of product purchased Date Time Contains the date of purchasing the project Decimal(18,2) Contains the total cost of the product Varchar(50) Contains the supplier name
Table name: Login Description: It stores the information about various users of the software. It contains
information about the identity of the users, such as user name, password and role of the user.
Sr. No.
1 2 3
Data name
loginid password role
Data type
Description
varchar(30) Contains the names of various users varchar(20) Contains the password of a user Varchar(20) Contains whether a Admin or not
Page | 101
Table name: Purchase Description: It stores the information about various purchase transaction. It
contains information about the purchase details, selling price date etc.
Sr No. 1 2 3 4 5 6 7 8 9 10 Data name purid prod_id prod_name supp_name Qty Pur_date pur_tot_amt prod_cost stck_id supp_id Data type Int Description Contains the id of various purchase done Int Contains the id of the corresponding product purchased Varchar(50) Contains the name of the product Varchar(50) Contains the name of the supplier Int Contains the quantity of the product purchased Date Time Contains the date of purchasing the project Decimal(18,2) Contains the total amount of product purchased Decimal(18,2) Contains the unit cost of a product Int Contains the stock id to maintain the stock Int Contains the supplier id of the supplier associated with purchase
Page | 102
Table name: Sales Description: It stores the information about various sales transactions done
with different customers. It has details like salesid, cost quantity etc.
Sr No. 1 2 3 4 5 6 7 8 9 10 Data name salesid prod_id prod_name custname qty dlvry_date sales_total prod_cost stck_id cust_id Data type Int Int Description Contains the id of various sales done Contains the id of the corresponding product sold Varchar(50) Contains the name of the product Varchar(50) Contains the name of the customer Int Contains the quantity of the product sold Date Time Contains the date of selling the product Decimal(18,2) Contains the total amount of product sold Decimal(18,2) Contains the unit cost of a product Int Contains the stock id to maintain the stock Int Contains the customer id of the customer associated with purchase
Table name: Supplier Details Description: It stores the information about various suppliers. It contains information
about the supplier name, address, contact, email id and id.
Sr. No.
1 2 3 4 5
Data name
supp id suppname suppaddr suppphno suppemailid
Data type
Int Varchar(50) Varchar(50) Varchar Varchar(50)
Description
Contains the id of various suppliers Contains the names of the supplier Contains the address of suppliers Contains the contact of suppliers Contains the email id of suppliers
Page | 103
Table name: Customer Details Description: It stores the information about various customers. It contains
information about the customer name, address, contact, email id and id.
Table name: Stock Description: It stores the information about stock of products.
Sr No. 1 2 3 4 5 6 7 8 9 10 Data name stckid prod_id prod_name supp_name stck_in_hand recvddate prodtotal rate stck_total_qty pur_id Data type Int Int Description Contains the id of stock Contains the id of the corresponding product in the stock Varchar(50) Contains the name of the product Varchar(50) Contains the name of the supplier Int Contains the quantity of the product in hand Date Time Contains the date of selling & buying the product Decimal(18,2) Contains the total amount of product sold Decimal(18,2) Contains the unit cost of a product Int Contains the qty of total products to maintain the stock Int Contains the purchase id
Page | 104
FUTURE ENHANCEMEN T
Page | 105
FUTURE ENHANCEMENTS
This chapter gives some of the enhancement features that can be applied to the project to make it even better, and also to remove some of the limitations that were stated earlier. It enlists the features of the project which could not be covered by us, but can surely be added to and incorporated in the project to make it more effective and useful. The project is made so that after many years to come, the database format of the project can be easily changed. Apart from using the existing database that is developed for the project the admission coordinator will be given the rights to make new databases as per the need. Following features can be added & some of the already existing features can be improved or changed accordingly to further improve the project: 1. Our project has got such flexibility that the one who is using the software can easily make the modifications if required in the future. 2. The database of the project can be extended to have more entries & more tables if required in the future. 3. As the project is fully automated & menu driven, it would require less energy and manpower to maintain large database in such situations. 4. Can be programmed to have more transparency and be used over networks. 5. Various other admission related utilities can be easily incorporated. 6. The project can be further enhanced to read information from the barcode using barcode reader.
Page | 106
CONCLUSION
Page | 107
CONCLUSION
The project Construction management has been completed the project will be implemented at server side. This project Business Process Management which contains the module to manage the various processes of a business. This application will help the client to manage his Product details, customer details, supplier details, purchase and sales transaction details etc. The initial analysis phase started with the study of the existing system, while in the later part, the envisioned project design was decided and the model to be forward for software development was decided to be incremental model. In the designing phase time-line chart was designed to illustrate the schedule, the ER diagram for the overview of the design, the DFDs showing the process interaction and data description table to be used for the designing database. In the second phase, form designing and coding work was performed, the alpha testing was carried out at server site and the beta testing was carried out at the client site. In the implementation, the flexibility has been maintained keeping in mind future enhancements and upgrades.
Page | 108
BIBLIOGRAPHY
Page | 109
BIBLIOGRAPHY
The following list shows the various websites and books that are referred in the duration of the project, and the material used in the making of this report.
BOOKS 1. Steven Holzner, Visual Basic .NET Programming BLACK BOOK (2005)
2.
3. Gary Cornell And Jonathan Morrison, Programming VB.NET A Guide for Experienced Programmer.
Page | 110
Page | 111