Material Inward and Outward
Material Inward and Outward
Material Inward and Outward
INTRODUCTION
The system involves various material inwards and outward activities of the college.
Details regarding them can be viewed in the forms whenever necessary.
The modules are divided into 2 levels such as Admin, User. Admin Module has the
process of User Management and Material Inward and Outward Management. User Module
has User Login Maintenance and Material Outward and available Details.
1
1.2 SYSTEM SPECIFICATION
RAM capacity : 4 GB
Mouse : Optical
2
1.3 ABOUT THE SOFTWARE
FRONT END
This Project work has completed in ASP. NET with C# 2.0 as front end and SQL
Server 2005 as back end. Microsoft .NET is software that connects information, people,
systems and devices. It spans clients, servers and developer tools and consists of:
The .NET Framework programming model that enables developers to build
Web-based applications which expose their functionality programmatically
over a network using standard protocols such as SOAP and HTTP.
Developer tools such as Microsoft Visual Studio .NET, which provide a rapid
application integrated development environment for programming with the
.NET Framework.
A set of servers including Microsoft Windows 2000, Microsoft SQL, Server
and Microsoft BizTalk Server that integrates, runs, operates and manages
XML Web services and applications.
Client software such as Windows XP, Windows CE and Microsoft Office XP,
7 that help developers deliver a deep and compelling user experience across a
family of devices and existing products.
The .NET Framework is the programming model of the .NET environment for
building, deploying and running Web- based applications, smart client applications and XML
Web services. It manages much of the plumbing, enabling developers to focus on writing the
business logic code for their applications. The .NET Framework includes the common
language runtime and class libraries.
3
VISUAL STUDIO 2010
The most important language added in this version was the introduction of
generics, which are similar in many aspects to C++ templates. This potentially increases the
number of bugs caught at compile- time instead of run- time by encouraging the use of strict
type checking in areas where it was not possible before, C++ also got a similar upgrade with
the addition of C++/CLI which is slated to replace the use of Managed C++. Other new
features of Visual Studio 2010 include the “Development Designer” which allows application
designs to be validated before deployments, an improved environment for web publishing
when combined with ASP.NET 2.0 and load testing to see application performance under
various sorts of user loads. Visual Studio 2010 also added extensive 64- bit support. While
the development environment itself only available as a 32- bit application, visual C++ 2010
supports compiling for (x64AMD64 and EM64T) as well as IA- 64 (Itanium). The platforms
SDK include 64- bit and 64-bit versions of the libraries.
4
OVERVIEW OF THE .NET FRAME WORK
The .NET framework has two main components: the common language runtime
and the .Net framework class library. The common language runtime is the foundation of
the .NET framework. You can think of the runtime as an agent that manages code at
execution time and remoting while also enforcing strict type safely and other forms of code
accuracy that ensure security and robustness in fact the concept of code management is a
fundamental principle of the runtime.
Code that targets the runtime is known as managed code, while code that does not
target the runtime is known as un managed code. The class library, the other main
component of the .NET frameworks is a comprehensive, object-oriented collection reusable
types that you can use to develop applications ranging from traditional command line or
graphical user interface (FGUI) applications to application base d on the latest innovations
provided by ASP.NET, such as web forms and XML web services.
5
The .NET framework can be hosted by unmanaged component that load the common
language runtime into their processes and initiate the execution of managed code. ASP.NET
works directly with the runtime to enable ASP.NET application and XML web services, both
of which are discussed later in this topic, Internet explorer is an example of unmanaged
application that hosts the runtime (in the form of a MIME type extension). Using internet
explorer to the host runtime enables you to embed managed components or windows forms
controls in HTML documents. Hosting the runtime in this way makes mobile code 9similar
to Microsoft Active X controls) possible, but with significant improvement that only
managed code can offer, such as semi-trusted execution and secure isolated file storage.
The following illustration shows the relationship of the common language runtime
and the class library to your application and to the overall system. The illustration also shows
how managed code operated with in a larger architecture.
We can use the .NET framework to develop the following types of application and services:
Console applications
Window GUI application (Windows Forms) ASP.NET applications
XML Web services
Windows services
6
ASP.NET
ASP.NET is a set of Microsoft.NET framework technologies used for building web
applications and XML Web services. ASP.NET page execute on the server and generate
markup such as HTML, WML or XML that is sent to a desktop or mobile browser.
ASP.NET pages use a compiled, event-driven programming model that improves
performance and enables the separation of application logic and user interface. Both
ASP.NET pages and ASP.NET web services files contain server-side (as opposed to client
side logic) written in Visual basic .NET, C#.NET or any .NET compatible language, Web
applications and XML Web Services take advantage of the features of the common language
runtime, such as type safety, inheritance, language, interoperability, versioning, and
integrated security.
IIS
Microsoft Internet Information S4ervices (IIS; formerly called Server is a set of
Internet-based services for servers using Microsoft Windows. It is the world’s second most
popular web server in terms of overall websites. As of September 2007 it served 34.94% of
all websites and 36.63% of all active websites according to Net craft. The servers currently
include FTP, SMTP, NNTOP, and HTTP/HTTPS.
ADO.NET
ADO.NET provides consistent access to data sources such a Microsoft SQL Server
and XML, as well as to data sources exposed through OLE DB and ODBC. Data sharing
consumer applications can use ADO.NET to connect to these data sources and retrieve,
manipulate and update the data that they contain.
ADO.NET separates data access from data manipulation into discrete components
that can be used separately or in tandem. ADO.NET includes .NET Frame work data
providers for connecting to a database, executing commands and retrieving results. Those
results are either processed directly, placed in and ADO.NET Dataset objects in order to be
exposed to the used in an ad hoc manner, combined with data from multiple sources or
remote between tiers. The ADO.NET Dataset object can also be used independently of a
.NET Framework data provider to manage data local to the application or sourced from
XML.
The ADO.NET classes are found in System.Data.dll and are integrated with the XML
classes found in System.Xml.dll. When compiling code that uses the System. Data,
namespace reference both System.Data.dll and System.Xml.dll.
7
ADO.NET provided functionality to developers writing managed code similar to the
functionality provided to native component object model (COM) developers by ActiveX Data
Objects (ADO).
ADO.NET COMPONENTS
There are two components of ADO.NET that you can use to access and manipulate
data:
.NET Framework data providers.
The DataSet
8
BACK END
MS SQL SERVER
DATABASE
SQL SERVER
.SQL Server is a RDBMS that you can store and manipulate large amount of information.
A relational database is a database, which consists of tables of that related information that
are linked together on key fields.
The tools of SQL Server are user friendly and provide a powerful development
environment, making it equally appropriate for novices and MIS professionals. For example
we can access quickly and easily create a database of mailing list information that we can
merge with other document.
SQL Server commands are related to Oracle, So that the oracle users can easily operate
the SQL Server, One of the main advantage is it can easily execute set of queries at a time..
SQL Server is an Object Oriented program. Objects are modules, which is used to
provide information and programs, which any of user can directly apply to create application.
Each Object has properties that defines how the looks and perform. It has the following
Objects.
Tables
Queries
Forms & Reports
Modules
9
TABLES
Tables are primary building blocks of SQL SERVER database. All data is stored in
tables. Every table in the database focus on one subject. We can combine specific fields from
multiple tables into one data sheet. The datasheet that a query written is called a record set.
QUERIES
Queries are used to perform some operation for retrieve the data from the table and to
FORMS
RELATIONSHIPS
Relationship is mainly used to join the two databases. Join is an object, which has
three forms that are (inner join, simple join, and outer join)
although the degree of interest in each concept has varied over the years, each has stood the
test of time. Each one provides the software designer with a foundation from which more
sophisticated design methods can be applied. Fundamental design concepts provide the
Abstraction
Abstraction permits one to concentrate on a problem at some level of generalization
without regard to irrelevant low level details, use of abstraction also permits one to work with
concepts and terms that are familiar in the problem environment without having to transform
them to an unfamiliar structure. Two types of abstraction are there, one is procedural
abstraction and data abstraction. A procedural abstraction is a named sequence of instructions
that has a specific and limited function. A data abstraction is a named collection of data that
describes a data object.
10
Modularity
Modularity is the single attribute software that allows a program to be intellectually
manageable. Software architecture embodies modularity, that is, software is divided into
named and addressable components, called modules that are integrated to satisfy problem
requirements.
Software Architecture
Software Architecture alludes to “the overall structure of the software and the ways in
which that structure provides conceptual integrity for a system”. Control hierarchy also called
program structure”, represents the organization of control. The tree structure used to represent
the control hierarchy.
Structural Partitioning
The program structure should be partitioned both horizontally and vertically. Horizontal
partitioning defines separate branches of the modular hierarchy for each major program
function, Vertical partitioning called factoring, suggest that control and work should be
distributes top-down in the program architecture. Top level modules should perform control
functions and do actual processing work. Modules reside low in the architecture should be the
workers, performing all input, computational and output tasks.
Data Structure
11
2. SYSTEM STUDY
12
2.3 FEASIBILTY STUDY
A feasibility analysis usually involves a thorough assessment of the operational(need),
financial and technical aspects of a proposal. Feasibility study is the test of the system
proposal made to identify whether the user needs may be satisfied using the current software
and hardware technologies, whether the system will be cost effective from a business point of
view and whether it can be developed with the given budgetary constraints. A feasibility
study should be relatively cheap and done at the earliest possible time. Depending on the
study, the decision is made whether to go ahead with a more detailed analysis.
Technical Feasibility
Economic Feasibility
Behavioral Feasibility
Technical Feasibility
Technical Feasibility deals with the hardware as well as software requirements.
Technology is not a constraint to type system development. To find out whether the
necessary technology, the proposed equipments have the capacity to hold the data, which is
used in the project, should be checked to carry out this technical feasibility.
The technical feasibility issues usually raised during the feasibility stage of
investigation includes these
This software is running in windows 7 Operating System, which can be easily
installed.
The hardware required is Pentium based server.
The system can be expanded.
13
Economical Feasibility
This feasibility study present tangible and intangible benefits from the prefect by
comparing the development and operational cost. The technique of cost benefit analysis is
often used as a basis for assessing economic feasibility. This system needs some more initial
investment than the existing system, but it can be justifiable that it will improve quality of
service.
Thus feasibility study should center along the following points:
Improvement resulting over the existing method in terms of accuracy,
timeliness.
Cost comparison
Estimate on the life expectancy of the hardware
Overall objective
Our project is economically feasible. It does not require much cost to be involved in the
overall process. The overall objectives are in easing out the requirement processes.
14
3. SYSTEM DESIGN AND DEVELOPMENT
The most creative and challenging face of the system development is System Design.
It provides the understanding and procedural details necessary for implementing the system
recommended in the feasibility study. Design goes through the logical and physical stages of
development.
Also the important input format is designed in such a way that accidental errors are
avoided. The user has to input only just the minimum data required, which also helps in
avoiding the errors that the users may make. Accurate designing of the input format is very
important in developing efficient software. The goal or input design is to make entry as easy,
logical and free from errors.
15
Material Inward and Outward has the following module description
Admin Module
The Administrator logins to the application through the login form, and storing the
material inward , and view the material outward and net stock details from the corresponding
tables from the database.
User Module
The user registration contains dept id, department name, username, password, email,
mobile number.
After the registration, department incharge login into material outward form through
the username and password. From this form they can view the available stock items of the
material and apply for required materials to the department.
User Module
The user can view their profile and also material outward status .
17
4. SYSTEM TESTING & IMPLEMENTATION
SYSTEM TESTING
Software testing is an important element of software quality assurance and represents the
ultimate review of specification, design and coding. It increasing visibility of software as a
system element and the costs associates with a software failure are motivating forces for all
well planned through testing .The system is tested with giving wrong information. Cascade
deletion and, the software developer checks updating. Testing and debugging are different
activities, but debugging must be accommodated in any testing strategy.
TYPES OF TESTING
UNIT TESTING
Unit testing is the important and major part of the project. So errors can be rectified
easily in each module and program clarity can be increased. In this project, the entire system
is divided into several modules and is developed individually. Hence, unit testing is
conducted to individual modules.
INTEGRATION TESTING
Integration testing is the systematic technique for constructing the program structure
while conducting tests to uncover errors associated with integrating. After the unit test, each
module is gradually integrated to form one final system. All the modules when unit tested
will work properly but after integrating the data can cause error one module can have an
inadvertent, adverse effect on another; sub functions when combined may not produce the
desired major function; global data structures can cause problems, etc. In this project the
integration testing is performed by combing login, material inward and outward modules are
generated the report.
18
PERFORMANCE TESTING
A type of Physical test covering a wide range of engineering or functional evaluations
where a material, product, or system is not specified by detailed material or component
specifications: rather, emphasis is on the final measurable performance characteristics.
Testing can be a qualitative or quantitative procedure.
ACCEPTANCE TESTING
The User Acceptance testing focuses mainly on the functionality thereby validating
the fitness-for-use of the system by the business user. The user acceptance test is performed
by the users and application managers.
Implementation is used here to mean the process of converting a new or revised system
design into operational one; conversion is one aspect of implementation. The other aspect is
post implementation review and software and maintenance.
The best suited application package to develop purchase system is Visual Studio and
Sql Server under Windows 7 environment.
19
5. CONCLUSION AND FUTURE ENHANCEMENT
The main objective of the website is to reduce the effort by the college and save the
time and avoid unwanted rushes at the college office and assure a smooth working
schedule at college office without affecting regular scheduled like fees collection,
record entries, affiliation , etc.,
The project could very well be enhanced further as per the requirements
20
6. FUTURE ENHANCEMENT
In Material Inward and Outward System the users can sign up and login within
their material out area. In Further System, the user cannot enter immediately after the signup
without getting permission of the admin, add the material return option and as per the college
requirements.
21
7. BIBILIOGRAPHY
Reference Books
Eilas awared “SYSTEM ANALYSIS DESIGN” and Tata Mcgraw hill publication
sixth edition, 2003
Reference Websites
www.asp.net
www.microsoft.com
www.codeproject.com
www.c-sharpcorner.com
www.programmersheaven.com
www.w3schools.com
22
23
8. APPENDIX
Four basic symbols are used to construct data flow diagrams. They are symbols that
represent data source, data flows, and data transformations and data storage. The points at
which data are transformed are represented by enclosed figures, usually circles, which are
called nodes.
- Data Flow
- Process
- Storage
24
CONTEXT DIAGRAM
Details
Material
Logi
Outward
n
Confirmation
User name, Password Validation Add
User Login
Material Outward
Files
User Details Add Details
Registration Registration
25
Level 1 DFD- Administrator
Administrator
Log
in
Material Inward and
Verifications & Outward Files
Approvals
Overall
Material Control
Inward
and
Outward
Material
Inward and
Outward
User Managing
26
Level 2 DFD- User
User
Login Details
Login Material Out Files
Add Details
Logi
n Material
Out Entry
Stock
Available
27
Level 2 DFD- Admin
Admin
Login Details
Login Material In Files
Add Details
Logi
n Material
Inward
Entry
28
TABLE SPECIFICATIONS
29
Table Name: MaterialOut
30
SCREEN SHOTS
About Us
31
Admin Login page
32
Admin Page
33
Registered User Details
34
Material Master Entry
35
Material List
36
Material Inward
37
Material Inward Report
38
Material Outward Report
39
Material Outward (Track Department Wise)
40
Material Outward (Track Material Wise)
41
User Signup Page
42
User Login
43
Material Out
44
Contact Us
45
Source Code
Signup Form
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Partial Class SignUpVB
Inherits System.Web.UI.Page
46
Dim address As New SqlParameter("@Address", SqlDbType.VarChar, 50)
address.Value = txtAdress.Text.ToString()
cmd.Parameters.Add(address)
Try
cmd.ExecuteNonQuery()
lblMsg.Text = "User Registration successful,you can now <a
href='LoginVB.aspx'>Login</a>"
ClearControls(Me)
Catch ex As SqlException
Dim errorMessage As String = "Error in registring user"
errorMessage += ex.Message
47
Login Form
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Partial Class LoginVB
Inherits System.Web.UI.Page
con.Open()
Dim result As Integer = DirectCast(cmd.ExecuteScalar(), Int32)
con.Close()
End Sub
End Class
48
Material Master
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
}
protected void add_Click(object sender, EventArgs e)
{
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString =
"Server=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\material.mdf;Integrated Security=True;User Instance=True";
SqlCommand objcmd = new SqlCommand();
string query = "insert into materialmaster (Pid,Pname,Pdescription)
values ('" + pid.Text + "','" + pname.Text + "','" + pdescription.Text +
"')";
objcmd = new SqlCommand(query, myConnection);
myConnection.Open();
objcmd.ExecuteNonQuery();
Label1.Text = "Added";
myConnection.Close();
}
}
49
Material In
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class matin : System.Web.UI.Page
{
protected void ADD_Click(object sender, EventArgs e)
{
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString =
"Server=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\material.mdf;Integrated Security=True;User Instance=True";
DataTable dt = new DataTable();
myConnection.Open();
// SqlCommand objcmd = new SqlCommand();
SqlDataReader myReader = null;
SqlCommand myCommand = new SqlCommand("select * from materialmaster
where Pid='" + pid.SelectedItem + "'", myConnection);
myReader = myCommand.ExecuteReader();
while (myReader.Read())
{
pname.Text = (myReader["Pname"].ToString());
pdescription.Text = (myReader["Pdescription"].ToString());
}
}
protected void MATERIALIN_Click(object sender, EventArgs e)
{
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString =
"Server=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\material.mdf;Integrated Security=True;User Instance=True";
SqlCommand objcmd = new SqlCommand();
string query = "insert into Materialin
(Pid,Pname,Pdescription,Qty,Price,Dateofin,Purpose) values ('" +
pid.SelectedItem + "','" + pname.Text + "','" + pdescription.Text + "','" +
qty.Text + "','" + price.Text + "','" + dateofin.SelectedDate + "','" +
purpose.Text + "')";
objcmd = new SqlCommand(query, myConnection);
myConnection.Open();
objcmd.ExecuteNonQuery();
Label1.Text = "Added";
myConnection.Close();
}
}
50
Material Out
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
}
protected void ADD_Click(object sender, EventArgs e)
{
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString =
"Server=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\material.mdf;Integrated Security=True;User Instance=True";
DataTable dt = new DataTable();
myConnection.Open();
// SqlCommand objcmd = new SqlCommand();
SqlDataReader myReader = null;
SqlCommand myCommand = new SqlCommand("select * from materialmaster
where Pid='" + pid.SelectedItem + "'", myConnection);
myReader = myCommand.ExecuteReader();
while (myReader.Read())
{
pname.Text = (myReader["Pname"].ToString());
pdescription.Text = (myReader["Pdescription"].ToString());
}
}
protected void MATERIALIN_Click(object sender, EventArgs e)
{
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString =
"Server=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\material.mdf;Integrated Security=True;User Instance=True";
SqlCommand objcmd = new SqlCommand();
string query = "insert into Matout
(Pid,Pname,Pdescription,Qty,Dept,Dateofout,Purpose) values ('" +
pid.SelectedItem + "','" + pname.Text + "','" + pdescription.Text + "','" +
qty.Text + "','" + txtDeptName.SelectedItem + "','" +
dateofout.SelectedDate + "','" + purpose.Text + "')";
objcmd = new SqlCommand(query, myConnection);
myConnection.Open();
objcmd.ExecuteNonQuery();
Label1.Text = "Added";
myConnection.Close();
}
}
51