Professional Documents
Culture Documents
INTRODUCTIO
This project is developed as user friendly software so that it meets the user
needs at any time. This system is windows application software which attempts to
integrate all departments and functions across an organization onto a single
computer system that can serve all those department’s particular needs.
● Employee Details
● Customer Details
● Stock Details
● Delivery Details
1.1 AIM AND OBJECTIVE OF THE PROJECT
The main aim of this project is to design and develop a fully computerized
management system for "TRENDY JEANS SHOP" This project has all necessary
modules that make the management an easy task. All problems faced in manual
based system shall be rectified by this project
The objectives are
⮚ A complete solution for Employee details.
1
⮚ To efficiently manage the Customer details.
2
⮚ To provide a good scope for efficient process of data.
⮚ To maintain a detailed staff attendance.
⮚ To help the management to take monthly reports.
1.2ORGANIZATION PROFILE
which was started in 2012. It is functioning for the past ten years. The concern is
GARMENTS SHOP in Udumalpet. There are about 2 floors from which user can
The concern purchases the items from their supplier and stocks them. Also
the concern satisfies all customer needs. The customer details, complaint details
and rectification details are entered and designed according to the need of the
The GARMENTS SHOP broadly covers all the Stitching work such as
Blouse, Sudithars, Mans Shirt, Pant, Kutras etc…. The TRENDY JEANS SHOP
1.3 OBJECTIVE
3
● To generate the reports effectively
RAM : 2 GB
4
CHAPTER II
SYSTEM
STUDY
When new stock came in to the gift shop the corresponding purchase files is
opened and the information regarding to the invoice are stored in the stock file, at
the same time the input details are also transferred to the payment file and recorded
automatically. This helps the user to process payment details very easily without
verifying the purchase file every time.
6
⮚ Validation checks are performed then and there
⮚ Data integrity is maintained
2010
Microsoft .NET supports not only language independence, but also language
integration. This means that it can inherit from classes, catch exceptions, and take
advantage of polymorphism across different languages. The .NET Framework
makes this possible with a specification called the Common Type System (CTS)
that all .NET components must obey. For example, everything in.NET is an object
of a specific class that derives from the root class called System. Object. The CTS
supports the general concept of classes, interfaces, delegates (which support
callbacks), reference types, and value types.
7
Overloading
Multithreading
8
It is a comprehensive, object-oriented collection of reusable types used to
develop applications ranging from traditional command-line or graphical user
interface (GUI) applications to applications based on the latest innovations
provided by ASP.NET, such as Web Forms and XML Web services.
9
addition, other vendors have signed up to provide implementations of other
languages, such as Perl, Python, and even COBOL.
When a compiler compiles for the CLR, this code is said to be managed
code. Managed code is simply code that takes advantage of the services offered by
the CLR. For the runtime to work with managed code, that code must contain
metadata. This metadata is created during the compilation process by compilers
targeting the CLR. The metadata is stored with the compiled code and contains
information about the types, members, and references in the code. Among other
things, the CLR uses this metadata to
▪ Locate classes
▪ Load classes
▪ Generate native code
▪ Provide security
Managed Execution
To understand how your VB.NET applications work, and just how much the
code differs from the VB code that Dorothy wrote in Kansas, it’s important to
understand managed code and how it works. To use managed execution and get the
benefits of the CLR, you must use a language that was built for, or targets, the
runtime. Fortunately for you, this includes VB.NET. In fact, Microsoft wanted to
make sure that VB.NET was a premier language on the .NET platform, meaning
that Visual Basic could no longer be accused of being a “toy” language.
10
somewhat differently. The syntax of each language is different, of course, but
when the compilation process occurs, all code should be compiled into something
understandable to the runtime.
One of the more interesting aspects of .NET is that when you compile your
code, you do not compile to native code. Before you VB developers panic and fear
that you are returning to the days of interpreted code, realize that the compilation
process translates your code into something called Microsoft intermediate
language, which is also called MSIL or just IL. The compiler also creates the
necessary metadata and compiles it into the component. This IL is CPU
independent. After the IL and metadata are in a file, this compiled file is called the
PE, which stands for either portable executable or physical executable, depending
on whom you ask. Because the PE contains your IL and metadata, it is therefore
self-describing, eliminating the need for a type library or interfaces specified with
the Interface Definition Language (IDL).
Your code does not stay IL for long, however. It is the PE file, containing
the IL that can be distributed and placed with the CLR running on the .NET
Framework on any operating system for which the .NET framework exists,
because the IL is platform independent. When you run the IL, however, it is
compiled to native code for that platform. Therefore, you are still running native
code; you are not going back to the days of interpreted code at all. The compilation
to native code occurs via another tool of the .NET Framework: the Just-In-Time
(JIT) compiler. With the code compiled, it can run within the Framework and take
advantage of low level features such as memory management and security.
11
The compiled code is native code for the CPU on which the .NET
Framework is running, meaning that you are indeed running native code instead of
interpreted code. A JIT compiler will be available for each platform on which the
.NET Framework runs, so you should always be getting native code on any
platform running the .NET Framework. Remember, today this is just Windows, but
this could change in the future.
Classes
Most Visual Basic developers are familiar with classes. Classes are
definitions or blueprints of objects that will be created at runtime. Classes define
the properties, methods, fields, and events of objects.
You could actually instantiate the interface in VB6, but because it did not
have any implementation code, there was no point in doing so. In VB.NET, you
can create a class that has implementation code instead of just the interface, and
then mark the class as abstract. Now, other classes can inherit from that abstract
class and use the implementation in it or override the implementation as needed.
Interfaces
Value Types
12
In .NET languages, a standard variable type, such as an integer, is native to
the language, and it is passed by value when used as an argument. Objects, on the
other hand, are always passed by reference. However, a value type is a user-
defined type that acts much like an object, but is passed by value. In reality, value
types are stored as primitive data types.
1) INTEROPERABILITY
13
3) BASE CLASS LIBRARY
The Base Class Library (BCL), part of the Framework Class Library (FCL),
is a library of functionality available to all languages using the .NET Framework.
The BCL provides classes which encapsulate a number of common functions,
including file reading and writing, graphic rendering, database interaction and
XML document manipulation.
4) SIMPLIFIED DEPLOYMENT
5) SECURITY
6) PORTABILITY
14
7) VIRTUAL EXECUTION SYSTEM (VES)
The VES loads and executes CLI-compatible programs, using the metadata
to combine separately generated pieces of code at runtime.
8) CARBAGE COLLECTION
2.7 ASSEMBLIES
15
2. The culture. This is an RFC 1766 identifier of the locale for the assembly. In
general, library and process assemblies should be culture neutral; the culture
should only be used for satellite assemblies.
3. The version. This is a dotted number made up of four values — major,
minor, build and revision.
4. A public key token. This is a 64-bit hash of the public key that corresponds
to the private key used to sign[1] the assembly. A signed assembly is said to
have a strong name.
2.8 COMMON TYPE SYSTEM
It describes set of data types that can be used in different .Net languages in
common. (i.e), CTS ensures that objects written in different .Net languages can
interact with each other.
Value types:
Value types directly contain their data, and instances of value types are either
allocated on the stack or allocated inline in a structure. Value types can be built-in
(implemented by the runtime), user-defined, or enumerations.
Reference types:
Reference types store a reference to the value's memory address, and are allocated
on the heap. Reference types can be self-describing types, pointer types, or
interface types. The type of a reference type can be determined from values of self-
16
describing types. Self-describing types are further split into arrays and class types.
The class types are user-defined classes, boxed value types, and delegates.
17
Types can inherit implementation from other types, pass objects to another
type's methods, and call methods defined on other types, regardless of the
language the types are implemented in.
Debuggers, profilers, or other tools are required to understand only one
environment—the Microsoft intermediate language (MSIL) and metadata for
the common language runtime—and they can support any programming
language that targets the runtime.
Exception handling is consistent across languages. Your code can throw an
exception in one language and that exception can be caught and understood
by an object written in another language.
2.10 MS ACCESS
Introduction to Database
Entity
Relationship
18
Uniqueness and keys
Primary key
Data integrity
• Text
• Currency
• Date / time
• Logical
• OLE Object Picture
19
Queries
Forms
A form is used to get a record from user in specific format. Using forms we
can display records in specific manner. In forms, we can set lay out properties and
data properties. Using forms we can design the fields in text box and check box for
selecting a list of options and radio or push buttons used for selecting a single
option at a time. Reports
In MS-Access, the records in database are prepared for reports. Each record
is set in specific place. In the reports, we can include needed fields only. After
viewing the reports, the records can be printed in a specific manner.
The ADO object model is actually quite simple-there is only six total
objects. The Connection object sets up a link between program and the data source.
This object contains all of the necessary configuration information and acts as a
gateway for all of the other ADO objects. The connection object is mandatory-all
implementations of ADO must support it.
20
The command object represents a SQL statement or stored procedure that
software executes against the data source. Use of command objects is optional-data
can be extracted directly from a Connection object. If desired. Command objects
may have an associated collection of parameter objects that provide additional
information to the data source when executing the command. The Parameter
collection is optional.
21
CHAPTER III
Design is the first step into the development phase for any engineered
product or system. Design is a creative process. A good design is the key to
effective system. The term "Design" is defined as "The process of applying various
techniques and principles for the purpose of defining a process or a system in
sufficient detail to permit its physical realization". It may be defined as a process
of applying various techniques and principles for the purpose of defining a device,
a process or a system in sufficient detail to permit its physical realization. Software
design sits at the technical kermel of the software engineering process and is
applied regardless of the development paradigm that is used. The system design
develops the architectural detail required to build a system or product. As in the
case of any systematic approach, this software too has undergone the best possible
design phase fine tuning all efficiency, performance and accuracy levels. The
design phase is a transition from a user oriented document to a document to the
programmers or database personnel. System design goes through two phases of
development: Logical and Physical Design.
22
• The dialog to guide the operating personnel in providing input.
A quality output is one, which meets the requirements of the end user and
presents the information clearly. In output design it is determined how the
information is to be displaced for immediate need and also the hard copy output. It
is the most important and direct source information to the user. Efficient and
intelligent output design improves the system's relationship to help user decision-
making.
The data base design has the aim to improve the existing system. The new
system is developed by the proposed system. The idea of systems has become most
practicable and necessary in conceptualizing the interrelationships and integration
of operators especially when using computers, it involves à set of technique that
helps in solving problems, In a database environment common data are available
and are used by several users.
23
Thus the goal of a relational data is to generate a set of relational data is to
generate a set creational schemes that allow us to store information without
unnecessary reluctance yet allow us to retrieve easily one approach is to design
schemes that are in an appropriate normal form.
24
CHAPTER IV
6.1.INTRODUCTION
Test plan: Before going for testing, first we have to decide upon the type of
testing to be carried out. The following factors are taken into consideration: To
ensure that information properly flows into and out of program To find out whether
the local data structures maintains its integrity. during all steps in an algorithm
execution To ensure that the module operate properly at boundaries established to
limit or restrict processing To find out whether error - handling paths are working
correctly or JOU To find out whether the values are correctly updated or not Check
for validations Unit Testing: Unit or module testing is the process of testing the
individual components (subprograms or procedures) of a program. The purpose is
to discover discrepancies between the modules interface specification and its actual
behavior. In our system each module namely
Integration Testing:
26
mentioned above, are tested tor checking the integration between them, after each
of them are tested Individually. System Testing: Validation testing provides the
final assurance that software meets all functional, behavioral and performance
requirement. The software once validated must be combined with other system
elements, System testing verifies that as elements combine properly and that
overall system function and performance is achieved.
It is the systematic technique for constructing the program structure and for
conducting tests to uncover errors associated with interfacing. The objective is to
take module and build program structure that has been dictated by design. These
are two types of integration. Incremented Integration Non-incremented integration.
Acceptance testing is carried out to evaluate the finished product. This is done by
the sponsor and may involve executing typical transactions or using the system on
site on a trial basis. It is actually a series of different tests whose primary propose
is fully existing the computer based system. Although each test has a different
purpose all work should verify that system. The most crucial stage is achieving a
successful new system and is giving the user's confidence is that the new system
will work and be effective in the implementations stage.
27
CHAPTER V
CONCLUSION
5.1 CONCLUSION
Every application has its own merits and demerits. The project has covered
almost all the requirements. Further requirements and improvements can easily be
done since the coding is mainly structured or modular in nature. Changing the
existing modules or adding new modules can append improvements. Further
enhancements can be made to the application, so that the functions are very
attractive and useful manner than the present one.
28
BIBLIOGRAPHY
BOOK REFERENCES
1) Daniel Cazzulino, Victor Garcia Aprea, James Greenwood, and Chris Hart,
2) Bill Evjen, Billy Hollis, Bill Sheldon, and Kent Sharkey, ‘Professional VB
2007.
3) Damon Allison, Andy Olsen, and James Speer, Visual Basic .NET Class
5) Benjamin Nevarez, ‘Inside the SQL Server Query Optimize’, Red gate
books , 2011
WEB REFERENCES
1) www.net-tutorials.com
2) www.tutorialspoint.com/vb.net
3) www.visual-basic-tutorials.com
4) www.vbtutor.net
5) www. sqlmag.com
29
APPENDICES
Level 0
Stock Details
Registration
Id, Name Details
Sales
Quantity Purchased
Level 1
Purchased
Accessories
Amount
Billing Update
Remaining Quantity
Stock Details
30
Level 2
Purchase details
Store
Login
Admin
Purchased
Quantity
Total
Amount
Bill
Pay and Update Amount
Remaining Quantity
Update
Stock Details
Updated Quantity
31
SYSTEM FLOW DIAGRAM
User Input
No
Is Valid
Yes
Process
32
C. ENTITY RELATIONSHIP DIAGRAM
Quantity
Address Accessories
SID
Accessories Name
id
SName
Available Phone
Accessories Number
Price
Accessories
Accessories Accessories
Name
id Name
Billing
Price Stock
Update
Bill ID
Total Price
Quantity
Date
Customer Accessories
id id
Customer Updated
Date
name Stock
Sales Customer
33
Address Phone
Number
D. TABLE STRUCTURE
34
2) Table Name: Order Details
35
3) Table Name: Supplier details
36
4) Table Name: Stock Details
37
5) Table Name: Billing Details
38
6) Table Name: Employee
Description: This table holds the details about the employees of the company.
39
E. SAMPLE
SCREENS: LOGIN
PAGE
40
Order Details
41
Tailor Master Details
42
Alteration Register
43
Bill Details
44
Computerized Billing:
45
Measurement Details
46
F. SAMPLE CODING:
Imports System.Data
Imports System.Data.SqlClient
Public Class frmBuyer
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim da As New SqlDataAdapter("select *from tblBuyerDetails1", con)
Dim ds As New DataSet
Dim dbind As New BindingSource
Dim a As Integer = 0
47
LoadDatabase()
da.Fill(ds,
"tblBuyerDetails1")
dbind.DataSource = ds
dbind.DataMember =
ds.Tables(0).ToString()
DataGridView1.DataSource = dbind
End Sub
Private Sub ClearGridView()
For Each row As DataGridViewRow In
DataGridView1.Rows DataGridView1.Rows.Remove(row)
Next
End Sub
48
cmd.Parameters.AddWithValue("@Address", txtaddress.Text)
cmd.Parameters.AddWithValue("@RDate", DateTimePicker1.Value)
'cmd.Parameters.AddWithValue("@Accname", txtaccname.Text)
49
'cmd.Parameters.AddWithValue("@Accno", txtaccno.Text)
'cmd.Parameters.AddWithValue("@Bankname", txtbankname.Text)
'cmd.Parameters.AddWithValue("@Branchname", txtbranchname.Text)
cmd.ExecuteNonQuery()
MsgBox("Details of Buyer are Successfully Inserted", vbInformation,
"Successfully Inserted")
con.Close()
Catch ex As Exception
MsgBox("Details are not Inserted! Please Try Later", vbInformation, "Error
In Inserting Buyer Details")
End Try
ClearGridView()
Load1()
clear()
End Sub
51
End Sub
txtbuyerid.Text = row.Cells(0).Value.ToString()
txtBuyername.Text = row.Cells(1).Value.ToString()
txtcontact.Text = row.Cells(2).Value.ToString()
txtmail.Text = row.Cells(3).Value.ToString()
txtaddress.Text = row.Cells(4).Value.ToString()
DateTimePicker1.Value =
row.Cells(5).Value.ToString() 'txtaccname.Text =
row.Cells(5).Value.ToString() 'txtaccno.Text =
row.Cells(6).Value.ToString() 'txtbankname.Text =
row.Cells(7).Value.ToString() 'txtbranchname.Text =
row.Cells(8).Value.ToString()
End If
End If
Catch ex As Exception
End Try
End Sub
52
Private Sub btUpdate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btUpdate.Click
LoadDatabase()
Me.Refresh()
'Dim answer As
Long Try
cmd.Parameters.Clear()
cmd.Parameters.AddWithValue("@Bname", txtBuyername.Text)
cmd.Parameters.AddWithValue("@Conno", txtcontact.Text)
cmd.Parameters.AddWithValue("@Email", txtmail.Text)
cmd.Parameters.AddWithValue("@Address", txtaddress.Text)
cmd.Parameters.AddWithValue("@RDate", DateTimePicker1.Value)
'cmd.Parameters.AddWithValue("@Accname", txtaccname.Text)
'cmd.Parameters.AddWithValue("@Accno", txtaccno.Text)
'cmd.Parameters.AddWithValue("@Bankname", txtbankname.Text)
'cmd.Parameters.AddWithValue("@Branchname", txtbranchname.Text)
cmd.Parameters.Add("@Bno", SqlDbType.NVarChar).Value =
txtbuyerid.Text
53
cmd.ExecuteNonQuery()
MsgBox("Buyer Details Updated", vbInformation, "Succesfully Updated")
con.Close()
ClearGridView()
Load1()
Me.Refresh()
'Else
'txtSerialNo.Focus()
'End If
Catch ex As Exception
54
'If (answer = vbYes) Then
cmd.Connection = con
55
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "spDeleteBuyerDetails1"
cmd.Parameters.Add("@Bno", SqlDbType.NVarChar).Value =
txtbuyerid.Text
'cmd.Parameters.AddWithValue("@ProductCode", ttProductCode.Text)
cmd.ExecuteNonQuery()
MsgBox("Details Deleted", vbInformation, "Successfully Deleted")
ClearGridView()
Load1()
Me.Refresh()
'Else
'
txtSerialNo.Focus()
'End If
Catch ex As Exception
MsgBox("Unable to Delete Record! Please Try Later", vbInformation,
"Error in Deleting")
End
Try
clear()
End Sub
56
SqlConnection()
con.ConnectionString = "Data Source=.\SQLEXPRESS;Initial
Catalog=Geeva;Integrated Security=True"
con.Open()
57
Dim da As New SqlDataAdapter("spSearchBuyerDetails1", con)
da.SelectCommand.Parameters.Clear()
da.SelectCommand.CommandType = CommandType.StoredProcedure
da.SelectCommand.Parameters.AddWithValue("Bname", txtBSearch.Text)
Dim dt As New DataTable
da.Fill(dt)
DataGridView1.DataSource = dt
con.Close()
End Sub
Private Sub clear()
txtbuyerid.Clear()
txtBuyername.Clear()
txtcontact.Clear()
txtmail.Clear()
txtaddress.Clear()
'txtaccname.Clear()
'txtaccno.Clear()
'txtbankname.Clear()
'txtbranchname.Clear(
)
End Sub
59
Imports System.Data
Imports System.Data.SqlClient
Public Class frmComplaints
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim da As New SqlDataAdapter("select *from tblComplaint", con)
Dim ds As New DataSet
Dim dbind As New BindingSource
Dim a As Integer = 0
Private Sub frmComplaints_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
LoadDatabase()
Load1()
clear()
End Sub
Private Sub LoadDatabase()
con.Close()
con.ConnectionString = "Data Source=.\SQLEXPRESS;Initial
Catalog=Geeva;Integrated Security=True"
con.Open()
End Sub
Public Sub Load1()
ClearGridView()
LoadDatabase()
da.Fill(ds,
"tblcomplaint")
60
dbind.DataSource = ds
61
dbind.DataMember =
ds.Tables(0).ToString()
DataGridView1.DataSource = dbind
End Sub
63
cmd.ExecuteNonQuery()
MsgBox("Details of Complaint are Successfully Inserted", vbInformation,
"Successfully Inserted")
con.Close()
Catch ex As Exception
MsgBox("Details are not Inserted! Please Try Later", vbInformation, "Error
In Inserting Complaint Details")
End Try
ClearGridView()
Load1()
clear()
End Sub
txtSerialNo.Focus()
'End If
Catch ex As Exception
67
clear()
End Sub
68
Dim dgv As DataGridView = TryCast(sender, DataGridView)
69
If dgv IsNot Nothing AndAlso dgv.SelectedRows.Count > 0 Then
Dim row As DataGridViewRow = dgv.SelectedRows(0)
If row IsNot Nothing Then
txtbuyerid.Text = row.Cells(0).Value.ToString()
txtBuyername.Text = row.Cells(1).Value.ToString()
txtcontact.Text = row.Cells(2).Value.ToString()
txtmail.Text = row.Cells(3).Value.ToString()
txtaddress.Text = row.Cells(4).Value.ToString()
'txtaccname.Text = row.Cells(5).Value.ToString()
'txtaccno.Text = row.Cells(6).Value.ToString()
'txtbankname.Text = row.Cells(7).Value.ToString()
'txtbranchname.Text =
row.Cells(8).Value.ToString()
End If
End If
Catch ex As Exception
End Try
End Sub
70