Professional Documents
Culture Documents
Electrical Shop Management System Project Report
Electrical Shop Management System Project Report
INTERNSHIP REPORT
ON
ELECTRICAL SHOP MANAGEMENT SYSTEM
PROJECT
BY
KAMAL ACHARYA
(Tribhuvan University)
Date: 2019/12/10
1
Electrical Shop Management System
Abstract
Electronic Shop Management software helps Electronic showrooms owners and management staff
by producing different kind of financial and stock tracking reports, etc. This software is able to
manage all electronic stocks. In this software shop owner can manage the data of customer and
buyers. Also tax information and other government charges including recycle charges. Electrical shop
management system is workable application for retail store inventory and account management. It
keeps a list STOCKS and products at a store and can do operation on them. The most important
operation on them. The most important operation is a PURCHASE, all the transactions and the
billing details and stock purchasing details involved on it
2
1. INTRODUCTION
An electric shop management system automates and streamlines order processing for
businesses. This software provides constantly updated inventory information, a database of
vendors, a database of customers, a record of customer returns and refunds, information on
billing and payments, order processing records, and general ledger information. Benefits of
well-implemented software include improved sales visibility, improved customer relations, and
efficient order processing with a minimum of delays and backorders. Order management is
important primarily in the retail industry, but also in the telecommunications, health care,
pharmaceutical, financial, and securities sectors. The procedure of stock proportionality is most
fitting for inventories that stay inconspicuous by the purchaser, rather than "keep full"
frameworks where a retail customer might want to see full retires of the item they are
purchasing so as not to think they are purchasing something old, undesirable or stale; and
separated from the "trigger point" frameworks where item is reordered when it hits a specific
level; stock proportionality is utilized viably by without a moment to spare assembling
procedures and retail applications where the item is escaped see.
3
1.2Objective of the project
The application should be able to automate most of the business tasks. Time and Cost
being the major factors in business, the application should be fast enough to meet the business
needs and also help in reduce unnecessary expenses. The application should include a user
friendly interface that reduces the effort put in by the user. It should be able to validate all use
cases in order to avoid faults in the functionality. Security measures to be maintained by
implementing authorization for customers. The application should be developed considering
the users who will be utilizing it for enhancing their business standards by automating their
daily tasks as required by their business. The users should be able to access the application
from their business site or any place of their choice. The users should be guaranteed of their
business security and confidentiality as the application is going to be a multi-user system.
· Database : MS-SQL
4
1.4 Software Features
Like the BASIC programming language, Visual Basic was designed for an easy
learning curve. Programmers can create both simple and complex GUI applications.
Programming in VB is a combination of visually arranging components or controls on a form,
specifying attributes and actions for those components, and writing additional lines of code for
more functionality. Since VB defines default attributes and actions for the components, a
programmer can develop a simple program without writing much code. Programs built with
earlier versions suffered performance problems, but faster computers and native code
compilation has made this less of an issue. Though VB programs can be compiled into native
code executables from version 5 on, they still require the presence of around 1 MB of runtime
libraries. Core runtime libraries are included by default in Windows 2000 and later, but
extended runtime components still have to be installed. Earlier versions of Windows
(95/98/NT), require that the runtime libraries be distributed with the executable.
Forms are created using drag-and-drop techniques. A tool is used to place controls (e.g.,
text boxes, buttons, etc.) on the form (window). Controls have attributes and event handlers
associated with them. Default values are provided when the control is created, but may be
changed by the programmer. Many attribute values can be modified during run time based on
user actions or changes in the environment, providing a dynamic application. For example,
code can be inserted into the form resize event handler to reposition a control so that it remains
cantered on the form, expands to fill up the form, etc. By inserting code into the event handler
for a key press in a text box, the program can automatically translate the case of the text being
entered, or even prevent certain characters from being inserted.
Visual Basic can create executables (EXE files), ActiveX controls, or DLL files, but is
primarily used to develop Windows applications and to interface database systems. Dialog
5
boxes with less functionality can be used to provide pop-up capabilities. Controls provide the
basic functionality of the application, while programmers can insert additional logic within the
appropriate event handlers. For example, a drop-down combination box automatically displays
a list. When the user selects an element, an event handler is called that executes code that the
programmer created to perform the action for that list item. Alternatively, a Visual Basic
component can have no user interface, and instead provide ActiveX objects to other programs
via Component Object Model (COM). This allows for server-side processing or an add-in
module.
The runtime recovers unused memory using reference counting, which depends on
variables passing out of scope or being set to Nothing, avoiding the problem of memory leaks
that are possible in other languages. There is a large library of utility objects, and the language
provides basic support for object-oriented programming. Unlike many other programming
languages, Visual Basic is generally not case-sensitive—though it transforms keywords into a
standard case configuration and forces the case of variable names to conform to the case of the
entry in the symbol table. String comparisons are case sensitive by default. The Visual Basic
compiler is shared with other Visual Studio languages (C, C++). Nevertheless, by default the
restrictions in the IDE do not allow creation of some targets (Windows model DLLs) and
threading models, but over the years, developers have bypassed these restrictions.
Visual Basic 1.0 was introduced in 1991. The drag and drop design for creating the user
interface is derived from a prototype form generator developed by Alan Cooper and his
company called Tripod. Microsoft contracted with Cooper and his associates to develop Tripod
into a programmable form system for Windows 3.0, under the code name Ruby (no relation to
the later Ruby programming language). Tripod did not include a programming language at all.
Microsoft decided to combine Ruby with the Basic language to create Visual Basic. The Ruby
interface generator provided the "visual" part of Visual Basic, and this was combined with the
"EB" Embedded BASIC engine designed for Microsoft's abandoned "Omega" database system.
Ruby also provided the ability to load dynamic link libraries containing additional controls
(then called "gizmos"), which later became the VBX interface.
6
Earlier versions of Visual Basic (prior to version 5) compiled the code to P-Code only.
The P-Code is interpreted by the language runtime. The benefits of P-Code include portability
and smaller binary file sizes, but it usually slows down the execution, since having a runtime
adds an additional layer of interpretation. Visual Basic applications require Microsoft Visual
Basic runtime MSVBVMxx.DLL, where xx is the relevant version number, either 50 or 60.
MSVBVM60.dll comes as standard with Windows in all editions from Windows 98 to
Windows 7 (some editions of Windows 7 do not include it). A Windows 95 machine would
however require inclusion with the installer of whichever DLL was needed by the program.
Visual Basic 5 and 6 can compile code to either native or P-Code but in either case the runtime
is still required for built in functions and forms management.
VBScript is the default language for Active Server Pages. It can be used in Windows
scripting and client-side web page scripting. It resembles VB in syntax, but is a separate
language—executed by vbscript.dll instead of the VB runtime. ASP and VBScript should not
be confused with ASP.NET, which uses the .NET Framework for compiled web pages.Visual
Basic .NET is Microsoft's designated successor to Visual Basic 6.0, and is part of Microsoft's
.NET platform. Visual Basic .NET compiles and runs using the .NET Framework. It is not
backwards compatible with Visual Basic 6.0. An automated conversion tool exists, but fully
automated conversion for most projects is impossible.[32]
Open Office Basic is a Visual Basic compatible interpreter that originated in Star Office
office suite.Gambas is a Visual Basic inspired free software programming language for the
Linux operating system. It is not a clone of Visual Basic, but it does have the ability to convert
Visual Basic programs to Gambas. WinWrap Basic is a third-party VBA variant used with
various software, and available for programmers to use to build a macro facility into their
programs .Lotus Script is a VBA variant available in Lotus SmartSuite and Lotus Notes. Later
versions of Corel WordPerfect Office implement access to VBA as one of the macro/scripting
7
languages, the other major ones being Corel Script and Perfect Script Earlier versions of
Microsoft Word use a variant of Visual Basic called WordBasic.
Debugging: – Visual Basic offers two different options for code debugging :-
Debugging Managed Code Runtime Debugger The Debugging Managed Code Individually
debugs C and C++ applications and Visual Basic Windows applications. The Runtime
Debugger helps to find and fix bugs in programss at runtime.
Data Access Feature: – By using data access features, we can create databases,
scalable sever-side components for most databases, including Microsoft SQL Server and other
enterprise-level database.
SQL Server :
8
There are at least a dozen different editions of Microsoft SQL Server aimed at different
audiences and for different workloads (ranging from small applications that store and
retrieve data on the same computer, to millions of users and computers that access huge
amounts of data from the Internet at the same time). Its primary query languages are T-
SQL and ANSI SQL.
XML is converted to an internal binary data type before being stored in the database.
Specialized indexing methods were made available for XML data. XML data is queried
using XQuery; SQL Server added some extensions to the T-SQL language to allow
embedding XQuery queries in T-SQL.
In addition, it also defines a new extension to XQuery, called XML DML, that allows
query-based modifications to XML data. SQL Server also allows a database server to
be exposed over web services using Tabular Data Stream (TDS) packets encapsulated
within SOAP (protocol) requests. When the data is accessed over web services, results
are returned as XML.
Common Language Runtime (CLR) integration was introduced with this version,
enabling one to write SQL code as Managed Code by the CLR.
For relational data, T-SQL has been augmented with error handling features (try/catch)
and support for recursive queries with CTEs (Common Table Expressions).
SQL Server has also been enhanced with new indexing algorithms, syntax and better
error recovery systems. Data pages are check summed for better error resiliency, and
optimistic concurrency support has been added for better performance. Permissions
and access control have been made more granular and the query processor handles
concurrent execution of queries in a more efficient way.
9
Partitions on tables and indexes are supported natively, so scaling out a database onto
a cluster is easier. SQL CLR was introduced with SQL Server to let it integrate with
the .NET Framework.
SQL Server introduced "MARS" (Multiple Active Results Sets), a method of allowing
usage of database connections for multiple purposes.
SQL Server introduced DMVs (Dynamic Management Views), which are specialized
views and functions that return server state information that can be used to monitor the
health of a server instance, diagnose problems, and tune performance.
10
SYSTEM STUDY AND ANALYSIS
Current store Management System processes both simple and complex orders. It
integrates closely with inventory systems, and allocate inventory at the time of order. It also
creates sales orders for kits and configured item. Current System makes use of promotional
pricing.
2.1.1 Disadvantages
Current Order Management System processes both simple and complex orders.
It integrates closely with inventory systems, and allocate inventory at the time of order.
It also creates sales orders for kits and configured item.
Current System makes use of promotional pricing
Proposed System are looking to provide an order management system to manage the
sales orders which comes through web and mobile app so that all retailers can use this product
to integrate with their website or any other mobile app. It will provide the admin with various
reports on the number of sales made in a month, or on a particular brand or item etc. Provide
efficient feedback mechanism.
2.2.1 Advantages
11
3. SYSTEM DESIGN AND DEVELOPMENT
Product types: Basic characteristics of a work product are described by its attributes. Product
types may be aggregated of other product types. Similarities between work product types are
be expressed by hierarchical generalizations/specializations which is used here in the sense of
a classical “is a”-relationship. „
Model states: The execution of activities depends on model states. The state of a work product
is represented by currently associated attributes, its currently aggregated work products and its
associated work products. The state of an association describes currently defined associations
of association types. The model state is defined by currently defined work products, their states
and the state of associations.
12
createddate datetime Not Null
13
3.2 Input Design
The input design is the link between the information system and the user. It comprises
the developing specification and procedures for data preparation and those steps are necessary
to put transaction data into a usable form for processing data entry. The activity of putting data
into the computer for processing can be achieved by inspecting the computer to read data from
a written or printed document or it can occur by having people keying the data directly into the
system. The design of input focuses on controlling the amount of input required, controlling
errors, avoiding delay, avoiding extra steps and keeping the process simple. The system needs
the data regarding the asset items, depreciation rates, asset transfer, physical verification for
various validation, checking, calculation and report generation.. The error raising method is
also included in the software, which helps to raise error message while wrong entry of input is
done. So in input design the following things are considered.
14
3.3 Output Design
Computer output is the most important and direct information source to the user.
Output design is a process that involves designing necessary outputs in the form of
reports that should be given to the users according to the requirements. Efficient,
intelligible output design should improve the system's relationship with the user and
help in decision making. Since the reports are directing referred by the management
for taking decisions and to draw conclusions they must be designed with almost
care and the details in the reports must be simple, descriptive and clear to the user.
So while designing output the following things are to be considered. Outputs from
computer systems are required primarily to communicate the results of processing
to users. They are also used to provide a permanent copy of the results for later
consultation. The various types of outputs in general are:
Internal Outputs whose destination is within organization and they are the User’s main
interface with the computer.
15
3.4.1 Description of modules
Dealers Details:
This module contains the information about the dealers of different items to various
categories are maintained along with their details. Their details are stored in the database and
retrieved whenever needed. Each dealer’s information separated by unique id, the dealers
added by the admin all fields in the dealer’s module is mandatory. The admin can update dealer
details any time.
Employees Details:
The employee module contains the information about the employees who are working
in a company. Employee id plays an important role in the employee module; Employee
department is the mandatory field in the module. The employees can’t access this software.
Product Details:
The Product module contains the information about the products available a steel
company. Their details such as Product Id, Product name, and their categories are stored in the
database and retrieved whenever needed. The product id is integrated with stock, purchase,
sales modules. The admin add, delete, and update products details.
Stock Details:
The Stock module contains the information about the products available a Departmental Shop.
Their details such as Stock Id, Product name, and their categories are stored in the database
and retrieved whenever needed. Once the admin updated the stock details it fetch into other
modules. The stock of the product automatically reduces when the sales process done to the
dealer.
Sales Details:
This module contains the information about the sales of different items to various customer are
maintained along with their details. Their details are stored in the database and retrieved
whenever needed. two modules integrated with this sales details. the sales date is very
important field for retrieve information in future. The amount total amount automatically
calculated by the quantity of the sales product. The sales return sub module contains the
16
information of returned products. This products which are returned by the customer to the store.
Their details are stored in this database and retrieved whenever needed.
Purchase Details:
This module contains the information about the purchase of an item from different
suppliers. Their purchase details are stored in the database and also can be retrieved.
This purchase return sub module contains the information of complained products .
This products are returned to the supplier . Their details are stored in these database and
retrieved whenever needed.
Report:
This module contains the whole process reports including all modules. The admin can
get the report separately and also fully about the steel company. The report information
includes the total purchase details, salesdetails, stockdetails; productdetails.The admin can get
the particular datas with giving query or conditions in the data store.
17
3.4.2 Data Flow Diagram
LEVEL 0:
Insert
Admin Inventory
Electric View
shop mgt
18
LEVEL: 1
Request
Admin Admin
Login
Response
Customer I insert
Details
Customer
View
Employe Update
es Details
Employees
View
Product
Update Product
Details
View
Update Purchase
Purchase
Details View
Report
19
TESTING AND IMPLIMENTATION
The purpose of testing is to discover errors. Testing is the process of trying to discover
every conceivable fault or weakness in a work product. It provides a way to check the
functionality of components, sub-assemblies, assemblies and/or a finished product. It is the
process of exercising software with the intent of ensuring that the Software system meets its
requirements and user expectations and does not fail in an unacceptable manner. There are
various types of test. Each test type addresses a specific testing requirement.
UNIT TESTING
Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches and
internal code flow should be validated. It is the testing of individual software units of the
application. It is done after the completion of an individual unit before integration. This is a
structural testing, that relies on knowledge of its construction and is invasive. Unit tests perform
basic tests at component level and test a specific business process, application, and/or system
configuration. Unit tests ensure that each unique path of a business process performs accurately
to the documented specifications and contains clearly defined inputs and expected results.
INTEGRATION TESTING
Software integration testing is the incremental integration testing of two or more integrated
software components on a single platform to produce failures caused by interface defects. The
task of the integration test is to check that components or software applications, e.g.
components in a software system or – one step up – software applications at the company level
– interact without error
SYSTEM TESTING
System testing ensures that the entire integrated software system meets requirements. It tests
a configuration to ensure known and predictable results. An example of system testing is the
configuration oriented system integration test. System testing is based on process descriptions
and flows, emphasizing pre-driven process links and integration points.
20
WHITE BOX TESTING
White Box Testing is a testing in which in which the software tester has knowledge of the
inner workings, structure and language of the software, or at least its purpose. It is purpose. It
is used to test areas that cannot be reached from a black box level.
21
4.2 SYSTEM IMPLIMENTATION
IMPLEMENTATION PROCEDURES
LIST OF PROCESS
This phase consists of the following processes:
Prepare for System Implementation, where all steps needed in advance of actually
deploying the application are performed, including preparation of both the production
environment and the Consumer communities.
Deploy System, where the full deployment plan, initially developed during System
Design and evolved throughout subsequent lifecycle phases, is executed and validated.
Transition to Performing Organization, where responsibility for and ownership of
the application are transitioned from the Project Team to the unit in the Performing
Organization that will provide system support and maintenance.
22
User Training
Users are the largest audience in any organization and are the single most important group of
people who can help to reduce unintentional errors and IT vulnerabilities. Users may include
employees, contractors, foreign or domestic guest researchers, other agency personnel, visitors,
guests, and other collaborators or associates requiring access.
Users must: ƒ Understand and comply with agency security policies and procedures; ƒ Be
appropriately trained in the rules of behavior for the systems and applications to which they
have access; ƒ Work with management to meet training needs; ƒ Keep software/ applications
updated with security patches; and ƒ Be aware of actions they can take to better protect their
agency’s information.
These actions include, but are not limited to: proper password usage, data backup, proper
antivirus protection, reporting any suspected incidents or violations of security policy, and
following rules established to avoid social engineering attacks and rules to deter the spread of
spam or viruses and worms.
o Operational Documentation
Updated and correct Documentation for Operation (DFO) is an authority requirement.
Focus is set on quality, user friendliness, availability and easy revision to ensure that
documentation is used by the target personnel.
The main aspects are
Develop Documentation for Operation at customers requirements
Emphasize on quality and user friendliness.
Store and present the documentation on the intranet/internet.
Online revision system
Direct link to databases such as likewise.
Provide documents with links to training programs and additional information.
Maintain the documentation updated to at all time reflect the plant during the field
lifetime.
Documentation For Operation can be developed and maintained from add upstream premises
or at customers operation premises as required by customer.
23
4.3 SYSTEM MAINATANANCE
In addition to the items identified for inclusion in the Maintenance Manual, additional
information may he provided to facilitate the maintenance and modification of the system.
Appendices to document various maintenance procedures standards, or other essential
information may he added to this document as needed.
24
CONCLUSION:
The project entitled as “Electric shop management” is the system that deals with the
issues related to all kind of shops. This project is successfully implemented with all the features
mentioned in system requirements specification. The application provides appropriate
information to users according to the chosen service. The project is designed keeping in view
the day to day problems faced by shop. Little Testing methodology implemented in this project
and debugged the errors.
25
SCOPE OF FUTURE DEVELOPMENT
There is scope for future development of this project. The world of computer fields is
not static; it is always subject to be dynamic. The technology which is famous today becomes
outdate the very next day. To keep abstract of technical improvements, the system may be
further refined. So, it is not concluded. Yet it will improve with further enhancements.
Enhancements can be done in an efficient manner. this even update the same with further
modification establishment and can be integrated with minimal modification. Thus the project
is flexible and can be enhanced at any time with more advanced features. In future can be
implementing the Bill details to the customer register email id.
26
BIBLIOGRAPHY
BOOKS REFERENCE
Christopher, Alexander, Sara, Ishikawa, et. al. A Pattern Language, Oxford University Press,
New York,
S. R., Alpert, K., Brown, and B. Woolf, The Design Patterns Smalltalk Companion, Addison-
Wesley, Reading, MA,
F., Buschman, R., Meunier, H., Rohnert, P., Sommerlad, and M. Stal, A System of Patterns,
John Wiley and Sons, New York, <year>1996</year>.
WEBSITE REFERENCE
https://vb.net-tutorials.com
https://www.codeproject.com
https://www.dotnetspider.com
https://stackoverflow.com
www.Sqlservercentral.com
27
RESEARCHER REFERENCE
Acharya, Kamal. "STUDENT INFORMATION MANAGEMENT
SYSTEM." Authorea Preprints (2023).
Acharya, Kamal. "Library Management System." Available at SSRN4807104 (2019).
ACHARYA, KAMAL, et al. "LIBRARY MANAGEMENT SYSTEM." (2019).
Acharya, Kamal. "Online bus reservation system project report." Authorea
Preprints (2024).
Acharya, Kamal. "Online bus reservation system project report." (2024).
Acharya, Kamal. “Online Bus Reservation System.” SSRN ElectroNIC ASIA
Journal (2024): n. pag.
Acharya, Kamal. “Student Information Management System Project.” SSRN
ElectroNIC ASIA Journal (2024): n. pag.
Acharya, Kamal. “ATTENDANCE MANAGEMENT SYSTEM.” International
Research Journal of Modernization in Engineering Technology and
Science (2023): n. pag.
Acharya, Kamal. “College Information Management System.” SSRN ElectroNIC
ASIA Journal (2024): n. pag.
Acharya, Kamal, Attendance Management System Project (April 28, 2024).
Available at
SSRN: https://ssrn.com/abstract=4810251 or http://dx.doi.org/10.2139/ssrn.4810251
Acharya, Kamal, Online Food Order System (May 2, 2024). Available at
SSRN: https://ssrn.com/abstract=4814732 or http://dx.doi.org/10.2139/ssrn.4814732
Acharya, Kamal, University management system project. (May 1, 2024). Availableat
SSRN: https://ssrn.com/abstract=4814103 or http://dx.doi.org/10.2139/ssrn.4814103
Acharya, Kamal, Online banking management system. (May 1, 2024). Available at
SSRN: https://ssrn.com/abstract=4813597 or http://dx.doi.org/10.2139/ssrn.4813597
Acharya, Kamal, Online Job Portal Management System (May 5, 2024). Available at
SSRN: https://ssrn.com/abstract=4817534 or http://dx.doi.org/10.2139/ssrn.4817534
Acharya, Kamal, Employee leave management system. (May 7, 2024). Available
at
SSRN: https://ssrn.com/abstract=4819626 or http://dx.doi.org/10.2139/ssrn.4819626
Acharya, Kamal, Online electricity billing project report. (May 7, 2024). Available at
SSRN: https://ssrn.com/abstract=4819630 or http://dx.doi.org/10.2139/ssrn.4819630
Acharya, Kamal, POLICY MANAGEMENT SYSTEM PROJECT REPORT. (December
10, 2023). Available at
SSRN: https://ssrn.com/abstract=4831694 or http://dx.doi.org/10.2139/ssrn.4831694
Acharya, Kamal, Online job placement system project report. (January 10, 2023).
Available at
SSRN: https://ssrn.com/abstract=4831638 or http://dx.doi.org/10.2139/ssrn.4831638
Acharya, Kamal, Software testing for project report. (May 16, 2023). Available at
SSRN: https://ssrn.com/abstract=4831028 or http://dx.doi.org/10.2139/ssrn.4831028
Acharya, Kamal, ONLINE CRIME REPORTING SYSTEM PROJECT. (August 10,
2022). Available at
SSRN: https://ssrn.com/abstract=4831015 or http://dx.doi.org/10.2139/ssrn.4831015
28
SAMPLE CODING
Sample Coding:
Imports System.Data.SqlClient
Public Class frmSalesReturn
Button1_Click(sender, e)
End Sub
End Sub
29
Dim iId As Integer
Private Sub ComboBox3_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles
ComboBox3.Leave
Try
If cn.State = ConnectionState.Closed Then cn.Open()
cmd = New SqlCommand("select * from sales where salesid=" & ComboBox3.Text & "", cn)
Dim drAsSqlDataReader
dr = cmd.ExecuteReader
If dr.Read Then
TextBox6.Text = dr(2)
TextBox5.Text = dr(3)
ComboBox2.Text = dr(6)
TextBox2.Text = dr(7)
TextBox9.Text = dr(8)
TextBox7.Text = dr(9)
TextBox3.Text = dr(10)
End If
dr.Close()
cn.Close()
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical)
End Try
End Sub
30
cmd = New SqlCommand("insert into salesreturn values('" & DateTimePicker1.Text & "'," & ComboBox3.Text & ","
& TextBox6.Text & ",'" & TextBox5.Text & "'," & ComboBox2.Text & ",'" & TextBox2.Text & "'," &
TextBox9.Text & "," & TextBox7.Text & "," & TextBox4.Text & "," & TextBox3.Text & ",'" & TextBox9.Text &
"')", cn)
cmd.ExecuteNonQuery()
MsgBox("Successfully Saved", MsgBoxStyle.Exclamation)
cn.Close()
Catch ex As Exception
MsgBox("inserted successfully")
End Try
End Sub
End Class
Imports System.Data.SqlClient
Public Class frmOrder
31
txtamt.Text = ""
ComboBoxsupcode.Text = ""
txtsupname.Text = ""
txtrate.Text = ""
End Sub
32
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
Try
'write a code to shownthe alert msg here...
If cn.State = ConnectionState.Closed Then cn.Open()
cmd = New SqlCommand("insert into Purchase values('" & DateTimePicker1.Text & "'," &ComboBoxsupcode.Text&
",'" &txtsupname.Text& "','" &txtaddress.Text& "'," &txtphone.Text& ",'" & DateTimePicker2.Text & "','" &
DateTimePicker3.Text & "','" & DateTimePicker4.Text & "'," &ComboBoxitemcod.Text& "," &txtrate.Text& ","
&txtqty.Text& "," &txtamt.Text& ",'" &txtname.Text& "', " &txtpurid.Text& ")", cn)
cmd.ExecuteNonQuery()
MsgBox("Successfully Saved", MsgBoxStyle.Exclamation)
cn.Close()
Catch ex As Exception
MsgBox("inserted successfully!")
End Try
End Sub
End Sub
End Class
33
SAMPLE FORMS:
Login Form:
Master
34
35
Supplier Details:
Customer Details:
36
Manufacturing details:
Bill details:
37
Production Return:
38
Report:
39