Sie sind auf Seite 1von 68

c c

    
     

PRACTICAL TRAINING








  !! 
"##$%&'#%#'(

 )*+*


* 

1. Introduction and Objectives


2. System Analysis
3. Feasibility Analysis
4. Tools/platform, hardware and software
5. Technology Overview of .net 2005 with c# 2.0
6. Analysis (Context Diagrams, DFDs)
7. System Design
8. System Implementation
9. Software Testing
10. Table Structure
11. Output Screenshots
12. Coding















!,*-.!*

PACE is software that deals to automate the order service provider organizations. It deals to
maintain order information, customer¶s status and details and print bill for the same. The
major part of the project to deal with product and provide satisfaction to customer. At the
time of product Purchase Company provide Order Id that is work like a primary key and at
the time of service we make transactions on this key.

Other module of the project is to keep the track record of employee through employee id.
Administrator has the full authority to add or remove an employee or to edit details of an
employee.

The project is to automate any Product service center which provides it¶s customer with all
order placing facilities for the Products owned by them. It basically deals with Electronics
products and their parts and accessories.

PACE offers many different order placement services for various electronic products and
their parts and accessories. The customers ask for different types of products and the
company thus have to ensure the quality of product delivered.

Earlier, there was no automated process to organize the series of activities that take place.
The customer has to wait for a long time to be entertained by an executive. An executive
could not differentiate which customer to entertain first. There was no procedure to monitor
the efficiency of the workers. Long queue used to exist, just for getting the invoice. There
was no process which could recheck that the product has been dispatched or not (when
required, the official would browse through all the slips and related documents. This was
error-prone and time consuming).

Other module of the project is to keep the track of the electronics products and their parts and
accessories . Administrator has the full authority to add or remove an employee or to edit
details of an employee.Administrator can view the status of the customers.

/0  )/!

1!!2/0

System Analysis is a detailed study of the various operations performed by a system


and their relationships within and outside of the system. Here the key question is- what all
problems exist in the present system? What must be done to solve the problem? Analysis
begins when a user or manager begins a study of the program using existing system.
During analysis, data collected on the various files, decision points and transactions
handled by the present system. The commonly used tools in the system are Data Flow
Diagram, interviews, etc. Training, experience and common sense are required for collection
of relevant information needed to develop the system. The success of the system depends
largely on how clearly the problem is defined, thoroughly investigated and properly carried
out through the choice of solution. A good analysis model should provide not only the
mechanisms of problem understanding but also the frame work of the solution. Thus it
should be studied thoroughly by collecting data about the system. Then the proposed system
should be analyzed thoroughly in accordance with the needs.

System analysis can be categorized into four parts.


System planning and initial investigation
Information Gathering
Applying analysis tools for structured analysis
Feasibility study
Cost/ Benefit analysis.

In the current system we need to keep a number of records related to the electronic products
and their parts and accessories and we need toenter the details of them and their prices
manually.This is time consuming and has much cost.

c,*c*-/0

In our proposed system we have the provision for adding the details of the products on
website itself. So the overhead of the administrative authorities becomeless. Another
advantage of the system is that it is very easy to edit the details of the productand delete a
product when it found unnecessary. The product details are added in thedatabase and so
customers can also view the products and their parts and accessories whenever they want.

Our proposed system has several advantages


User friendly interface
Fast access to database
Less error
More Storage Capacity
Search facility
Look and Feel Environment
Quick transaction

All the manual difficulties in managing the product details have been rectified by
implementing computerization.

+ !!)!/  )/!

Whatever we think need not be feasible .It is wise to think about the feasibility of any
problem we undertake. Feasibility is the study of impact, which happens in the organization
by the development of a system. The impact can be either positive or negative. When the
positives nominate the negatives, then the system is considered feasible. Here the feasibility
study can be performed in two ways such as technical feasibility and Economical Feasibility.

   + 
We can strongly says that it is technically feasible, since there will not be much difficulty in
getting required resources for the development and maintaining the system as well. All the
resources needed for the development of the software as well as the maintenance of the
same is available in the organization here we are utilizing the resources which are available
already.

  + 
Development of this application is highly economically feasible .The organization needed
not spend much money for the development of t he system already available. The only thing
is to be done is making an environment for the development with an effective supervision. I f
we are doing so , we can attain the maximum usability of the corresponding resources .Even
after the development , the organization will not be in condition to invest more in t he
organization. Therefore , the system is economically feasible.

TOOLS, PLATFORM & LANGUAGE TO BE USED


**)
† FRONT-END : ASP.NET(With C# 2.0)
† BACK-END : MICROSOFT SQL SERVER 2005

c) +*,0
† Microsoft Visual Studio 2008

3 ,-4 , -*+4 , !,*0
3 ,-4 , !,*0:
† PROCESSOR : P-IV(1.80 GHZ)
† RAM : 128 MB
† STORAGE CAPACITY : 40 GB
† DRIVERS : 52X24X
† 52X CD : 1.44 MB FDD

*+4 , !,*0:


† OPERATING SYSTEM : WINDOW 7
† RDBMS : SQL SERVER 2005


   5*6 6 7 c 8  

 "##9+ 7 :;), ,"##9


-) c 8  

 "##97 <"#

The Microsoft .NET Framework version 2.0 extends the .NET Framework version 1.1 with
new features, improvements to existing features, and enhancements to the documentation.
This section provides information about some key additions and modifications.
For more information about compatibility and for a list of the public API modifications to the
class library that might affect the compatibility of your application.

- %c == 


The new generation of 64-bit computers enables the creation of applications that can run
faster and take advantage of more memory than is available to 32-bit applications. New
support for 64-bit applications enables users to build managed code libraries or easily use
unmanaged code libraries on 64-bit computers. For more information, see 64-bit
Applications.

  )== 


An access control list (ACL) is used to grant or revoke permission to access a resource on a
computer. New classes have been added to the .NET Framework that allow managed code to
create and modify an ACL. New members that use an ACL have been added to the I/O,
registry, and threading classes.

-*
New features in ADO.NET include support for user-defined types (UDT), asynchronous
database operations, XML data types, large value types, snapshot isolation, and new
attributes that allow applications to support multiple active result sets (MARS) with SQL
Server 2005. For more information about these and other new ADO.NET features, see What's
New in ADO.NET.

c
The Microsoft .NET Framework 2.0 includes significant enhancements to all areas of
ASP.NET. For Web page development, new controls make it easier to add commonly used
functionality to dynamic Web pages. New data controls make it possible to display and edit
data on an ASP.NET Web page without writing code. An improved code-behind model
makes developing ASP.NET pages easier and more robust. Caching features provide several
new ways to cache pages, including the ability to build cache dependency on tables in a SQL
Server database.
You can now customize Web sites and pages in a variety of ways. Profile properties enable
ASP.NET to track property values for individual users automatically. Using Web Parts, you
can create pages that users can customize in the browser. You can add navigation menus
using simple controls.
Improvements to Web site features allow you to create professional Web sites faster and
more easily. Master pages allow you to create a consistent layout for all the pages in a site,
and themes allow you to define a consistent look for controls and static text. To help protect
your sites, you can precompile a Web site to produce executable code from source files (both
code files and the markup in .aspx pages). You can then deploy the resulting output, which
does not include any source information, to a production server. Enhancements to ASP.NET
also include new tools and classes to make Web site management easier for Web site
developers, server administrators, and hosters.
ASP.NET accommodates a wide variety of browsers and devices. By default, controls render
output that is compatible with XHTML 1.1 standards. You can use device filtering to specify
different property values on the same control for different browsers.
+ 7 :)
The .NET Framework class library is a collection of reusable types that tightly integrate with
the common language runtime. The class library is object oriented, providing types from
which your own managed code can derive functionality. This not only makes the .NET
Framework types easy to use, but also reduces the time associated with learning new features
of the .NET Framework. In addition, third-party components can integrate seamlessly with
classes in the .NET Framework.
For example, the .NET Framework collection classes implement a set of interfaces that you
can use to develop your own collection classes. Your collection classes will blend seamlessly
with the classes in the .NET Framework.
As you would expect from an object-oriented class library, the .NET Framework types enable
you to accomplish a range of common programming tasks, including tasks such as string
management, data collection, database connectivity, and file access. In addition to these
common tasks, the class library includes types that support a variety of specialized
development scenarios. For example, you can use the .NET Framework to develop the
following types of applications and services:
O Console applications.
O Windows GUI applications (Windows Forms).
O ASP.NET applications.
O XML Web services.
O Windows services.
For example, the Windows Forms classes are a comprehensive set of reusable types that
vastly simplify Windows GUI development. If you write an ASP.NET Web Form
application, you can use the Web Forms classes.
  ) 55 ,  ),
Compilers and tools expose the runtime's functionality and enable you to write code that
benefits from this managed execution environment. Code that you develop with a language
compiler that targets the runtime is called managed code; it benefits from features such as
cross-language integration, cross-language exception handling, enhanced security, versioning
and deployment support, a simplified model for component interaction, and debugging and
profiling services.

To enable the runtime to provide services to managed code, language compilers must emit
metadata that describes the types, members, and references in your code. Metadata is stored
with the code; every loadable common language runtime portable executable (PE) file
contains metadata. The runtime uses metadata to locate and load classes, lay out instances in
memory, resolve method invocations, generate native code, enforce security, and set run-time
context boundaries.

The runtime automatically handles object layout and manages references to objects, releasing
them when they are no longer being used. Objects whose lifetimes are managed in this way
are called managed data. Garbage collection eliminates memory leaks as well as some other
common programming errors. If your code is managed, you can use managed data,
unmanaged data, or both managed and unmanaged data in your .NET Framework application.
Because language compilers supply their own types, such as primitive types, you might not
always know (or need to know) whether your data is being managed.
The common language runtime makes it easy to design components and applications whose
objects interact across languages. Objects written in different languages can communicate
with each other, and their behaviors can be tightly integrated. For example, you can define a
class and then use a different language to derive a class from your original class or call a
method on the original class. You can also pass an instance of a class to a method of a class
written in a different language. This cross-language integration is possible because language
compilers and tools that target the runtime use a common type system defined by the runtime,
and they follow the runtime's rules for defining new types, as well as for creating, using,
persisting, and binding to types.
As part of their metadata, all managed components carry information about the components
and resources they were built against. The runtime uses this information to ensure that your
component or application has the specified versions of everything it needs, which makes your
code less likely to break because of some unmet dependency. Registration information and
state data are no longer stored in the registry where they can be difficult to establish and
maintain. Rather, information about the types you define (and their dependencies) is stored
with the code as metadata, making the tasks of component replication and removal much less
complicated.
Language compilers and tools expose the runtime's functionality in ways that are intended to
be useful and intuitive to developers. This means that some features of the runtime might be
more noticeable in one environment than in another. How you experience the runtime
depends on which language compilers or tools you use. For example, if you are a Visual
Basic developer, you might notice that with the common language runtime, the Visual Basic
language has more object-oriented features than before. Following are some benefits of the
runtime:
O Performance improvements.
O The ability to easily use components developed in other languages.
O Extensible types provided by a class library.
O New language features such as inheritance, interfaces, and overloading for object-
oriented programming; support for explicit free threading that allows creation of
multithreaded, scalable applications; support for structured exception handling and custom
attributes.
If you use Microsoft® Visual C++® .NET, you can write managed code using the Managed
Extensions for C++, which provide the benefits of a managed execution environment as well
as access to powerful capabilities and expressive data types that you are familiar with.
Additional runtime features include:
O Cross-language integration, especially cross-language inheritance.
O Garbage collection, which manages object lifetime so that reference counting is
unnecessary.
O Self-describing objects, which make using Interface Definition Language (IDL)
unnecessary.
O The ability to compile once and run on any CPU and operating system that supports
the runtime.
You can also write managed code using the C# language, which provides the following
benefits:
O Complete object-oriented design.
O Very strong type safety.
O A good blend of Visual Basic simplicity and C++ power.
O Garbage collection.
O Syntax and keywords similar to C and C++.
O Use of delegates rather than function pointers for increased type safety and security.
Function pointers are available through the use of the unsafe C# keyword and the /unsafe
option of the C# compiler (Csc.exe) for unmanaged code and data.

4> 7 0   ;) 6 "##9

Microsoft® SQL ServerŒ 2005 extends the performance, reliability, quality, and ease-of-use
of Microsoft SQL Server version 7.0. Microsoft SQL Server 2005 includes several new
features that make it an excellent database platform for large-scale online transactional
processing (OLTP), data warehousing, and e-commerce applications.

The OLAP Services feature available in SQL Server version 7.0 is now called SQL Server
2005 Analysis Services. The term OLAP Services has been replaced with the term Analysis
Services. Analysis Services also includes a new data mining component. For more
information,

The Repository component available in SQL Server version 7.0 is now called Microsoft SQL
Server 2005 Meta Data Services. References to the component now use the term Meta Data
Services. The term repository is used only in reference to the repository engine within Meta
Data Services. For more information, .

The What's New topics contain brief overviews of the new features and links to relevant
conceptual topics that provide more detailed information. These conceptual topics provide
links to topics that describe the commands or statements you use to work with these features.

- %20  == 

Microsoft SQL Server 2005 Enterprise Edition can use the Microsoft Windows 2005
Advanced Windows Extension (AWE) API to support up to 64 GB of physical memory
(RAM) on a computer. For more information, .

-
;    

SQL Server 2005 introduces a new OPENDATASOURCE function, which you can use to
specify ad hoc connection information in a distributed query. SQL Server 2005 also specifies
methods that OLE DB providers can use to report the level of SQL syntax supported by the
provider and statistics on the distribution of key values in the data source. The distributed
query optimizer can then use this information to reduce the amount of data that has to be sent
from the OLE DB data source. SQL Server 2005 delegates more SQL operations to OLE DB
data sources than earlier versions of SQL Server. Distributed queries also support the other
functions introduced in SQL Server 2005, such as multiple instances, mixing columns with
different collations in result sets, and the new 5  and ?@6  data types.

SQL Server 2005 distributed queries add support for the OLE DB Provider for Exchange and
the Microsoft OLE DB Provider for Microsoft Directory Services.

.=
 -
c
  7

SQL Server 2005 introduces enhancements to distributed partitioned views. You can partition
tables horizontally across several servers, and define a distributed partitioned view on each
member server that makes it appear as if a full copy of the original table is stored on each
server. Groups of servers running SQL Server that cooperate in this type of partitioning are
called federations of servers. A database federation built using SQL Server 2005 databases is
capable of supporting the processing requirements of the largest Web sites or enterprise-level
databases. For more information, .

   
 -  5 

SQL Server 2005 uses Kerberos to support mutual authentication between the client and the
server, as well as the ability to pass the security credentials of a client between computers, so
that work on a remote server can proceed using the credentials of the impersonated client.
With Microsoft Windows® 2005, SQL Server 2005 uses Kerberos and delegation to support
both integrated authentication as well as SQL Server logins. For more information,

 :=
,      

SQL Server 2005 introduces a new, more easily understood model for specifying backup and
restore options. The new model makes it clearer that you are balancing increased or
decreased exposure to losing work against the performance and log space requirements of
different plans. SQL Server 2005 introduces support for recovery to specific points of work
using named log marks in the transaction log, and the ability to do partial database restores

Users can define passwords for backup sets and media sets that prevent unauthorized users
from accessing SQL Server backups.

     .*=  

SQL Server 2005 enhancements for utility operations include faster differential backups,
parallel Database Console Command (DBCC) checking, and parallel scanning. Differential
backups can now be completed in a time that is proportional to the amount of data changed
since the last full backup. DBCC can be run without taking shared table locks while scanning
tables, thereby enabling them to be run concurrently with update activity on tables.
Additionally, DBCC now takes advantage of multiple processors, thus enabling near-linear
gain in performance in relation to the number of CPUs (provided that I/O is not a bottleneck).

 A , 7-

SQL Server 2005 supports a new  A  7 table option that specifies that small  A,  A,
and 5 values be placed directly in the data row instead of in a separate page. This
reduces the amount of space used to store small  A,  A, and 5 data values, and
reduces the amount of disk I/O needed to process these values. For more information,


-  +)*4-! 2, 0

-+-
Level 0

CUSTOMER
ADMINISTRATOR Parts and Accessories
Request for order

PACE
Print bill

EMPLOYEE



Level 1

Purchase Products details,


PRODUCT
Employee details
CUSTOMER PURCHASE
ADMINISTRATOR
View status

Print Bill Change status

EMPLOYEE
Level 2

  
ORDER 
EMPLOYEE



Order details

PRODUCTS

Parts details
Print Bill

PARTS
ACCESSORIES
DETAILS

GENERATE
Generate bill regarding jobs PART BILL






/0-!2

!c.-!2
Input design is the process of converting user-oriented input to a computer based
format. Input design is a part of overall system design, which requires very careful attention.
Often the collection of input data is the most expensive part of the system. The main
objectives of the input design are «
1. Produce cost effective method of input
2. Achieve highest possible level of accuracy
3. Ensure that the input is acceptable to and understood by the staff.

Input Data
The goal of designing input data is to make entry easy, logical and free from errors as
possible. The entering data entry operators need to know the allocated space for each field;
field sequence and which must match with that in the source document. The format in which
the data fields are entered should be given in the input form .Here data entry is online; it
makes use of processor that accepts commands and data from the operator through a key
board. The input required is analyzed by the processor. It is then accepted or rejected. Input
stages include the following processes
Data Recording
Data Transcription
Data Conversion
Data Verification
Data Control
Data Transmission
Data Correction

One of the aims of the system analyst must be to select data capture method and
devices, which reduce the number of stages so as to reduce both the changes of errors and
the cost .Input types, can be characterized as.
External
Internal
Operational
Computerized
Interactive
Input files can exist in document form before being input to the computer. Input
design is rather complex since it involves procedures for capturing data as well as inputting it
to the computer.

*.c.-!2
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 these result for latter
consultation .Computer output is the most important and direct source of information to the
users. Designing computer output should proceed in an organized well through out the
manner. The right output must be available for the people who find the system easy o use.
The outputs have been defined during the logical design stage. If not, they should defined at
the beginning of the output designing terms of types of output connect, format, response etc,

Various types of outputs are


External outputs
Internal outputs
Operational outputs
Interactive outputs
Turn around outputs

All screens are informative and interactive in such a way that the user can full fill his
requirements through asking queries.

-   -!2
The general theme behind a database is to handle information as an integrated whole.
A database is a collection of interrelated data stored with minimum redundancy to serve
many users quickly and effectively. After designing input and output, the analyst must
concentrate on database design or how data should be organized around user
requirements. The general objective is to make information access, easy quick,
inexpensive and flexible for other users. During database design the following objectives
are concerned:-
Controlled Redundancy
Data independence
Accurate and integrating
More information at low cost
Recovery from failure
Privacy and security
Performance
Ease of learning and use



/0!0c)0 !*
Implementation is the stage in the project where the theoretical design is turned into
a working system. The implementation phase constructs, installs and operates the new
system. The most crucial stage in achieving a new successful system is that it will work
Efficiently and effectively.

There are several activities involved while implementing a new project. They are
End user training
End user Education
Training on the application software
System Design
Parallel Run and To New System
Post implementation Review


   5
The successful implementation of the new system will purely upon the involvement of the
officers working in that department. The officers will be imparted the necessary training on
the new technology


. 
  
The education of the end user start after the implementation and testing is over.
When the system is found to be more difficult to under stand and complex, more effort is put
to educate the end used to make them aware of the system, giving them lectures about the
new system and providing them necessary documents and materials about how the system
can do this.

  5 ==   7 
After providing the necessary basic training on the computer awareness, the users will
have to be trained upon the new system such as the screen flows and screen design type of
help on the screen, type of errors while entering the data, the corresponding validation check
at each entry and the way to correct the data entered. It should then cover information
needed by the specific user or group to use the system.

c !=     7
The department is planning a method to know the states of t he past implementation
process. For that regular meeting will be arranged by the concerned officers about the
implementation problem and success



*+4 ,!2
Is the menu bar displayed in the appropriate contested some system related features
included either in menus or tools? Do pull ±Down menu operation and Tool-bars work
properly? Are all menu function and pull down sub function properly listed ?; Is it possible to
invoke each menu function using a logical assumptions that if all parts of the system are
correct, the goal will be successfully achieved .? In adequate testing or non-testing will leads
to errors that may appear few months later.

This create two problem


1. Time delay between the cause and appearance of the problem.
2. The effect of the system errors on files and records within the system

The purpose of the system testing is to consider all the likely variations to which it will be
suggested and push the systems to limits.
The testing process focuses on the logical intervals of the software ensuring that all
statements have been tested and on functional interval is conducting tests to uncover errors
and ensure that defined input will produce actual results that agree with the required results.
Program level testing, modules level testing integrated and carried out.

There are two major type of testing they are


1) White Box Testing.
2) Black Box Testing.

4  A  5
White box some times called ³Glass box testing´ is a test case design uses the control
structure of the procedural design to drive test case.
Using white box testing methods, the following tests where made on the system
a) All independent paths within a module have been exercised once. In our system, ensuring
that case was selected and executed checked all case structures. The bugs that were
prevailing in some part of the code where fixed
b) All logical decisions were checked for the truth and falsity of the values.

 : A  5
Black box testing focuses on the functional requirements of the software. This is black box
testing enables the software engineering to derive a set of input conditions that will fully
exercise all functional requirements for a program. Black box testing is not an alternative to
white box testing rather it is complementary approach that is likely to uncover a different
class of errors that white box methods like..
1) Interface errors
2) Performance in data structure
3) Performance errors
4) Initializing and termination errors


   



  



=   




*
-  



c
  5  




c
 -  




, 5 *
 




*
 














*=   
1.HOME PAGE

2.ORDER INFORMATION
3.PARTS/ACCESSORIES ORDERED

4.CUSTOMER INFORMATION
5.SUCCESSFULL INSERTION

6ORDER ID






















$CUSTOMER DETAILS



8.ADMINISTRATOR


9.EMPLOYEE DETAILS


10.ADD EMPLOYEE
11.PRODUCT DETAILS

12.EMPLOYEE



13.CUSTOMER ORDER DETAILS

14.PRINT BILL
*-!2
1.admin.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="admin.aspx.cs"


Inherits="admin" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<center>
<form id="form1">
<div>
<p>
&nbsp;&nbsp;&nbsp; </p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="VIEW ALL EXISTING
EMPLOYEES"
CssClass="button" Width="503px" onclick="Button1_Click" />
</p>
<p>
&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" Text="VIEW CUSTOMER JOB
STATUS"
CssClass="button" Width="503px" onclick="Button2_Click" />
&nbsp;</p>
<p>
&nbsp;&nbsp;
<asp:Button ID="Button3" runat="server" Text="VIEW PRODUCT
DETAILS"
CssClass="button" Width="503px" onclick="Button3_Click"
/>
</p>
</div>

</form>
</center>
</body>
</asp:Content>


2.admin_cust_status.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="admin_cust_status.aspx.cs" Inherits="admin_cust_status"
MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<form id="form1">
<center>
<div>
<asp:Label ID="Label1" runat="server" Text="Customer Job Details"
CssClass="button" Width="520" Font-Size="XX-Large"></ asp:Label>
<br />
<br />
<asp:Repeater ID="Repeater1" runat="server"
onitemcommand ="Repeater1_ItemCommand1">
<HeaderTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server" Text="JOB ID"
BackColor ="#4A3C8C" ForeColor ="#FFFFFF"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Text="CUSTOMER NAME"
BackColor ="#4A3C8C" ForeColor ="#FFFFFF"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" Text="STATUS"
BackColor ="#4A3C8C" ForeColor ="#FFFFFF"></ asp:TextBox>
</td>
<td>
<asp:Label ID="Label2" runat="server" Text="" Width="190"
BackColor ="#4A3C8C" ForeColor ="#FFFFFF"></ asp:Label>
</td>

</tr>
</table>
</HeaderTemplate >
<ItemTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox4" runat="server"
Text='<%#Eval("job_id") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server"
Text='<%#Eval("full_name") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server"
Text='<%#Eval("status") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:Button ID="Button2" runat="server" Text="VIEW CUSTOMER
DETAILS" CommandName ="view_details" />
</td>

</tr>
</table>
</ItemTemplate >
<AlternatingItemTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox4" runat="server"
Text='<%#Eval("job_id") %>' ReadOnly="true" BackColor ="Aqua"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server"
Text='<%#Eval("full_name") %>' ReadOnly="true"
BackColor ="Aqua"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server"
Text='<%#Eval("status") %>' ReadOnly="true" BackColor ="Aqua"></ asp:TextBox>
</td>
<td>
<asp:Button ID="Button2" runat="server" Text="VIEW CUSTOMER
DETAILS" CommandName ="view_details" BackColor ="Aqua" />
</td>
</tr>

</table>
</AlternatingItemTemplate >
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString12 %>"
SelectCommand ="SELECT [job_id], [full_name], [status] FROM
[reg_job] ORDER BY [job_id]">
</asp:SqlDataSource >

</div>
</center>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
</p>
<p>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;</p>
<p>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;
&nbsp;</p>
</form>
</body>
</asp:Content>

3.admin1.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="admin1.aspx.cs"


Inherits="admin1" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID ="head" runat="server">

<title>Untitled Page </title>


<link rel = "Stylesheet" href = "StyleSheet.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID ="ContentPlaceHolder1"
runat="server">
<table style="border: 1px solid #E6E2D8; position:absolute; height: 113px;
width: 246px; background -color: #F7F6F3; font-family: Verdana; font-size:
.8em; color: #333333; top: 137px; left: 335px;" >
<tr>
<td colspan = "2" style="background -color: #4A3C8C; color: #FFFFFF"
><center>Administrator Login </center></td>
</tr>
<tr>
<td >Username</td>
<td> <asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox>

<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ControlToValidate="TextBox1"
ErrorMessage="*"></asp:RequiredFieldValidator> --%>
</td>
</tr>
<tr>
<td>Password</td>
<td> <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"
Height="16px"></ asp:TextBox>
<%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ControlToValidate="TextBox2"
ErrorMessage="*">< /asp:RequiredFieldValidator> --%>
</td>
</tr>
<tr>
<td></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="Login"
onclick="Button1_Click" /> </td>
</tr>
</table>

</asp:Content>
4.chnge_status.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="chnge_status.aspx.cs" Inherits="chnge_status"
MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<form id="form1">
<center>
<div>
<asp:Label ID="Label1" runat="server" Text="Customer Order Details"
CssClass="button" Width="520" Font-Size="XX-Large"></ asp:Label>
<br />
<br />
<asp:Repeater ID="Repeater1" runat="server"
DataSourceID ="SqlDataSource1">
<HeaderTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server" Text="JOB
ID"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"
Text="NAME"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server"
Text="STATUS"></ asp:TextBox>
</td>
</tr>
</table>
</HeaderTemplate >
<ItemTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox4" runat="server"
Text='<%#Eval("job_id") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server"
Text='<%#Eval("full_name") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server"
Text='<%#Eval("status") %>' ReadOnly="true"></ asp:TextBox>
</td>
</tr>
</table>
</ItemTemplate >
</asp:Repeater>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"


ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString5 %>"
SelectCommand ="SELECT [job_id], [full_name], [status] FROM
[reg_job] ORDER BY [job_id]">
</asp:SqlDataSource >

<br />

</div>
</center>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label2" runat="server" Text="ENTER ORDER ID"
Width="300" CssClass="button"></ asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="TextBox7" runat="server"></ asp:TextBox>
</p>
<p>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label3" runat="server" Text="SELECT ORDER STATUS"
Width="300" CssClass="button"></ asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID ="SqlDataSource2" DataTextField ="status"
DataValueField ="status">
</asp:DropDownList >
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString6 %>"
SelectCommand ="SELECT [status] FROM
[status]"></ asp:SqlDataSource >
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="OK..."
CssClass="button"
Font-Size="Small" Height="26px" Width="71px"
onclick="Button1_Click" />
</p>
</form>
</body>
</asp:Content>
5.cust_job_status.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="cust_job_status.aspx.cs" Inherits="cust_job_status"
MasterPageFile ="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID ="head" runat="server">

<title>Untitled Page </title>


<link rel = "Stylesheet" href = "StyleSheet.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID ="ContentPlaceHolder1"
runat="server">

<center>
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="CUSTOMER DETAILS"
CssClass="button" Width="500"></asp:Label>
<br />
<br />
<br />
<asp:DetailsView ID="DetailsView1" runat="server"
AutoGenerateRows ="False"
DataKeyNames ="job_id" DataSourceID ="SqlDataSource1"
Height="50px"
Width="536px" BackColor ="White" BorderColor ="#E7E7FF"
BorderStyle ="None"
BorderWidth ="1px" CellPadding ="3" GridLines ="Horizontal">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<Fields>
<asp:BoundField DataField ="job_id" HeaderText ="ORDER ID"
ReadOnly="True"
SortExpression ="job_id" />
<asp:BoundField DataField ="full_name" HeaderText ="CUSTOMER
FULL NAME"
SortExpression ="full_name" />
<asp:BoundField DataField ="address" HeaderText ="CUSTOMER
ADDRESS"
SortExpression ="address" />
<asp:BoundField DataField ="email" HeaderText ="CUSTOMER
EMAIL ID" SortExpression ="email" />
<asp:BoundField DataField ="cntct" HeaderText ="CUSTOMER
CONTACT NUMBER" SortExpression ="cntct" />
<asp:BoundField DataField ="status" HeaderText ="STATUS"
SortExpression ="status" ItemStyle -ForeColor ="#993300"
ItemStyle -Font-Size="Larger" HeaderStyle -Font-Size="X-Large" />
</Fields>
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<EditRowStyle BackColor ="#738A9C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:DetailsView >
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString18 %>"
SelectCommand ="SELECT * FROM [reg_job] WHERE ([job_id] =
@job_id)">
<SelectParameters >
<asp:QueryStringParameter Name="job_id"
QueryStringField ="job_id"
Type="Int32" />
</SelectParameters >
</asp:SqlDataSource >
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="ORDERED PRODUCT
DETAILS" CssClass="button" Width="500"></ asp:Label>
<br />
<br />
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns ="False"
DataSourceID ="SqlDataSource2" Width="661px"
BackColor ="White"
BorderColor ="#E7E7FF" BorderStyle ="None" BorderWidth ="1px"
CellPadding ="3"
GridLines ="Horizontal">
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<Columns>
<asp:BoundField DataField ="prod_id"
HeaderText ="PART/ACCESSORY ID"
SortExpression ="prod_id" />
<asp:BoundField DataField ="pa_name"
HeaderText ="PART/ACCESSORY NAME"
SortExpression ="pa_name" />
<asp:BoundField DataField ="prod_cost"
HeaderText ="PART/ACCESSORY COST"
SortExpression ="prod_cost" />
<asp:BoundField DataField ="prod_category"
HeaderText ="PRODUCT CATEGORY"
SortExpression ="prod_category" />
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<SelectedRowStyle BackColor ="#738A9C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString26 %>"
SelectCommand ="SELECT order_details.prod_id,
prod_details.pa_name, prod_details.prod_cost, prod_catego ry.prod_category
FROM order_details INNER JOIN prod_details ON order_details.prod_id =
prod_details.prod_id INNER JOIN prod_category ON
prod_details.prod_category_id = prod_category.prod_category_id WHERE
(order_details.job_id = @job_id)">
<SelectParameters >
<asp:QueryStringParameter Name="job_id"
QueryStringField ="job_id" />
</SelectParameters >
</asp:SqlDataSource >
<br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;<br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
<asp:Label ID="Label5" runat="server" Text="BILL DETAILS"
CssClass="button" Width="500"></asp:Label>
<br />
<br />
<asp:DetailsView ID="DetailsView2" runat="server"
AutoGenerateRows ="False"
DataSourceID ="SqlDataSource3" Height="50px" Width="666px"
BackColor ="White" BorderColor ="#E7E7FF" BorderStyle ="None"
BorderWidth ="1px"
CellPadding ="3" GridLines ="Horizontal">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<Fields>
<asp:BoundField DataField ="Expr1" HeaderText ="TOTAL
BILL AMOUNT" ReadOnly="True"
SortExpression ="Expr1" />
</Fields>
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<EditRowStyle BackColor ="#738A9C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:DetailsView >
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString28 %>"
SelectCommand ="SELECT SUM(prod_details.prod_cost) AS Expr1
FROM order_details INNER JOIN prod_details ON order_details.prod_id =
prod_details.prod_id INNER JOIN prod_category ON
prod_details.prod_category_id = prod_category.prod_category_id WHERE
(order_details.job_id = @job_id)">
<SelectParameters >
<asp:QueryStringParameter Name="job_id"
QueryStringField ="job_id" />
</SelectParameters >
</asp:SqlDataSource >
</center>
</asp:Content>

6.default.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Default.aspx.cs"


Inherits="_Default" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="head" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />
</asp:Content>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">

<p>
&nbsp;</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </p>
&nbsp;&nbsp;
<br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button3" runat="server" Text="REGISTER NEW
ORDER" Width="314px"
onclick="Button3_Click" CssClass="button" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<asp:Button ID="Button5" runat="server" onclick="Button5_Click"
Text="ADMINISTRATOR" CssClass="button" Width="314px" />
&nbsp;<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;
<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button4" runat="server" onclick="Button4_Click"
Text="VIEW YOUR ORDER STATUS" CssClass="button"
Width="314px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button6" runat="server" onclick="Button6_Click"
Text="EMPLOYEE"
CssClass="button" Width="314px"/>

</asp:Content>

7.default2.aspx
<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Default2.aspx.cs"
Inherits="Default2" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>

<form id="form1">
<div>

<center>

<br />
<br />
<table width = "624px">
<tr>
<td class ="table_header"> Add Employee </td>
</tr>
</table>
<br />

<table width = "524px" cellpadding = "10" class ="table_body" >


<tr>
<td colspan = "3" class ="table_header" >Employee Information </td>
</tr>

<tr>
<td >Employee ID </td>
<td >
<asp:TextBox ID="Employee_id"
runat="server"></ asp:TextBox></td>
<td>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator4" runat="server"
ControlToValidate ="Employee_id" ErrorMessage ="*"
ValidationExpression ="\d*"></asp:RegularExpressionValidator >
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ErrorMessage ="*"
ControlToValidate ="Employee_id"></asp:RequiredFieldValidator >
</td>

</tr>
<tr>
<td >Employee Password </td>
<td ><asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ErrorMessage ="*"
ControlToValidate ="emp_name"></ asp:RequiredFieldValidator >
</td>
</tr>

<tr>
<td >Employee Name </td>
<td ><asp:TextBox ID="emp_name" runat="server"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ErrorMessage ="*"
ControlToValidate ="emp_name"></ asp:RequiredFieldValidator >
</td>
</tr>
<tr>
<td >Address</td>
<td >
<asp:TextBox ID="address" runat="server" Height="84px"
TextMode="MultiLine" Width="272px"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7"
runat="server"
ErrorMessage ="*"
ControlToValidate ="address"></ asp:RequiredFieldValidator >
</td>
</tr>

<tr>
<td >Contact No. </td>
<td ><asp:TextBox ID="emp_contactno" runat="server"></ asp:TextBox>
</td>
<td>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator5" runat="server"
ControlToValidate ="emp_contactno" ErrorMessage ="*"
ValidationExpression ="\d*"></asp:RegularExpressionValidator >
<asp:RequiredFieldVa lidator ID="RequiredFieldValidator5"
runat="server"
ErrorMessage ="*"
ControlToValidate ="emp_contactno"></ asp:RequiredFieldValidator >
</td>
</tr>
<tr>
<td >Email</td>
<td ><asp:TextBox ID="cus_email" runat="server"
Width="272px"></ asp:TextBox> </td>
<td>
<asp:RegularExpressionValidator ID="RegularExpressionValidator7"
runat="server"
ControlToValidate ="cus_email" ErrorMessage ="*"
ValidationExpression ="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-
.]\w+)*"></asp:RegularExpressionValidator >
<asp:RequiredFieldValidator ID="RequiredFieldValidator9"
runat="server"
ErrorMessage ="*"
ControlToValidate ="cus_email"></ asp:RequiredFieldValidator >
</td>
</tr>

</table>
<br />
<asp:Button ID="Button1" runat="server" Text="SUBMIT"
onclick="Button1_Click" CssClass="button" Height="29px"
Font-Bold="False"
Font-Size="Small" />
<br />
<br />
<br />

</center>
</div>
</form>
</body>
</asp:Content>

8.edit.aspx
<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="edit.aspx.cs"
Inherits="edit" MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />
<body>
<form id="form1">
<div>
<asp:Repeater ID="Repeater1" runat="server"
onitemcommand ="Repeater1_ItemCommand">
<ItemTemplate >

<center>
<br />
<br />
<table width = "624px">
<tr>
<td class ="table_header"> Edit Employee Details </td>
</tr>
</table>
<br />

<table width = "524px" cellpadding = "10" class ="table_body" >


<tr>
<td colspan = "3" class ="table_header" >Employee Information </td>
</tr>

<tr>
<td >Employee ID </td>
<td >
<asp:Label ID="Label1" runat="server"
Text='<%#Eval("e_id") %>'></asp:Label>
</td>

<td></td>

</tr>
<tr>
<td >Employee Password </td>
<td >
<asp:TextBox ID="TextBox1" runat="server"
Text='<%#Eval("e_pass") %>'></asp:TextBox>
</td>

<td></td>

</tr>
<tr>
<td >Employee Name </td>
<td ><asp:TextBox ID="emp_name" runat="server"
Text='<%#Eval("e_name") %>'></asp:TextBox></td>
<td></td>
</tr>
<tr>
<td >Address</td>
<td >
<asp:TextBox ID="address" runat="server" Height="84px"
TextMode="MultiLine" Width="272px"
Text='<%#Eval("address") %>'></asp:TextBox></td>
<td></td>
</tr>
<tr>
<td >Contact No. </td>
<td ><asp:TextBox ID="emp_contactno" runat="server"
Text='<%#Eval("ph_no") %>'></asp:TextBox> </td>

</tr>
<tr>
<td >Email</td>
<td ><asp:TextBox ID="cus_email" runat="server" Width="272px"
Text='<%#Eval("email_id") %>'></asp:TextBox> </td>
<td>
<asp:RegularExpressionValidator ID="RegularExpressionValidator7"
runat="server"
ControlToValidate ="cus_email" ErrorMessage ="*"
ValidationExpression ="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-
.]\w+)*"></asp:RegularExpressionValidator >

</td>
</tr>

</table>

</center>
</ItemTemplate >

<FooterTemplate >
<center>
<asp:Button ID="Button1" runat="server" Text="UPDATE"
CssClass="button" CommandName ="update" />
</center>
</FooterTemplate >

</asp:Repeater>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"


ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString8 %>"
SelectCommand ="SELECT * FROM [emp_info] WHERE ([e_id] =
@e_id)"
DeleteCommand ="DELETE FROM [emp_info] WHERE [e_id] = @e_id"
InsertCommand ="INSERT INTO [emp_info] ( [e_id], [e_name],
[address], [ph_no], [email_id]) VALUES (@e_id, @e_name, @address, @ph_no,
@email_id)"
UpdateCommand ="UPDATE [emp_info] SET [e_name] = @e_name,
[address] = @address, [ph_no] = @ph_no, [email_id] = @email_id WHERE [e_id]
= @e_id">
<SelectParameters >
<asp:QueryStringParameter Name="e_id"
QueryStringField ="emp_id"
Type="Decimal" />
</SelectParameters >
<DeleteParameters >
<asp:Parameter Name="e_id" Type="Decimal" />
</DeleteParameters >
<UpdateParameters >
<asp:Parameter Name="e_name" Type="String" />
<asp:Parameter Name="address" Type="String" />
<asp:Parameter Name="ph_no" Type="Decimal" />
<asp:Parameter Name="email_id" Type="String" />
<asp:Parameter Name="e_id" Type="Decimal" />
</UpdateParameters >
<InsertParameters >
<asp:Parameter Name="e_id" Type="Decimal" />
<asp:Parameter Name="e_name" Type="String" />
<asp:Parameter Name="address" Type="String" />
<asp:Parameter Name="ph_no" Type="Decimal" />
<asp:Parameter Name="email_id" Type="String" />
</InsertParameters >
</asp:SqlDataSource >
<center>
<br />

<br />

</center>

</div>

</form>
</body>
</asp:Content>

9.edit0.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="edit0.aspx.cs"


Inherits="edit0" MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<center>
<form id="form1">
<div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" Text="PLEASE ENTER THE
EMPLOYEE ID" CssClass="button" Width="500"></ asp:Label>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp; <br />
&nbsp;<asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox>
<br />
<br />
<br />
&nbsp;
<asp:Button ID="Button1" runat="server" Text="GO..." Height="24px"
CssClass="button" Font-Size="Small" Width="59px"
onclick="Button1_Click"/>
</div>
</form>
</center>
</body>
</asp:Content>
10.employee.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="employee.aspx.cs"


Inherits="employee" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<center>
<form id="form1">
<div>
<p>
&nbsp;&nbsp;&nbsp; </p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="CHANGE THE STATUS OF
A ORDER"
CssClass="button" Width="503px" onclick="Button1_Click" />
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" Text="PRINT BILL"
CssClass="button" Width="503px" onclick="Button2_Click" />
&nbsp;</p>
</div>
</form>
</center>

</body>
</asp:Content>

11.employee1.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="employee1.aspx.cs"


Inherits="employee1" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1"


runat="server">< body>
<form id="form1">
<div>
<table style="border: 1px solid #E6E2D8; position: absolute; height:
113px; width: 246px; background -color: #F7F6F3; font-family: Verdana; font-
size: .8em; color: #333333; top: 187px; left: 335px;" >
<tr>
<td colspan = "2" style="background -color: #4A3C8C; color: #FFFFFF"
><center>Employee Login </center></td>
</tr>
<tr>
<td >Username</td>
<td> <asp:TextBox ID="TextBox3" runat="server"></ asp:TextBox>

<%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator3"


runat="server"
ControlToValidate="TextBox1"
ErrorMessage="*"></asp:RequiredFieldValidator> --%>
</td>
</tr>
<tr>
<td>Password</td>
<td> <asp:TextBox ID="TextBox4" runat="server"
TextMode="Password"></ asp:TextBox>
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server"
ControlToValidate="TextBox2"
ErrorMessage="*"></asp:RequiredFieldValidator> --%>
</td>
</tr>
<tr>
<td></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" Text="Login"
onclick="Button2_Click"
/> </td>
</tr>
</table>
</div>
</form>
</body>
</asp:Content>

12.exis_employees.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="exis_employees.aspx.cs" Inherits="exis_employees"
MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<center>
<form id="form1">

<div>
<asp:Label ID="Label1" runat="server" Text="Employee Details"
CssClass="button" Width="520" Font-Size="XX-Large"></ asp:Label>
<br />
<br />
<asp:Repeater ID="Repeater1" runat="server"
DataSourceID ="SqlDataSource1">
<HeaderTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox6" runat="server" Text="EMPLOYEE
ID"></asp:TextBox>

</td>

<td>
<asp:TextBox ID="TextBox11" runat="server"
Text="PASSWORD"></ asp:TextBox>
</td>

<td>
<asp:TextBox ID="TextBox7" runat="server" Text="EMPLOYEE
NAME"></asp:TextBox>

</td>
<td>
<asp:TextBox ID="TextBox8" runat="server"
Text="ADDRESS"></ asp:TextBox>

</td>
<td>
<asp:TextBox ID="TextBox9" runat="server" Text="CONTACT
NUMBER"></ asp:TextBox>

</td>
<td>
<asp:TextBox ID="TextBox10" runat="server" Text="EMAIL
ID"></asp:TextBox>
</td>
</tr>
</table>
</HeaderTemplate >
<ItemTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server"
Text='<%#Eval("e_id") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox12" runat="server"
Text='<%#Eval("e_pass") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"
Text='<%#Eval("e_name") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server"
Text='<%#Eval("address") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server"
Text='<%#Eval("ph_no") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server"
Text='<%#Eval("email_id") %>' ReadOnly="true"></ asp:TextBox>
</td>
</tr>
</table>
</ItemTemplate >
</asp:Repeater>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"


ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString4 %>"
SelectCommand ="SELECT * FROM [emp_info] ORDER BY [e_id]">
</asp:SqlDataSource >

</div>

<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>
&nbsp;
<asp:Button ID="Button1" runat="server" Text="Add An Employee"
CssClass="button"
onclick="Button1_Click" Width="436px" />
</p>
<p>
&nbsp;<asp:Button ID="Button2" runat="server" Text="Remove
An Employee"
CssClass="button" Width="436px" onclick="Button2_Click"
/>
</p>
<asp:Button ID="Button3" runat="server" Text="Edit Details Of an
Employee"
CssClass="button" Width="436px" onclick="Button3_Click" />
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;</p>
</form>
</center>
</body>
</asp:Content>

13.jobid.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="jobid.aspx.cs"


Inherits="jobid" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<form id="form1">
<center>
<div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" Text="PLEASE ENTER YOUR ORDER
ID" Width="500" CssClass="button"></ asp:Label>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp; <br />
&nbsp;<asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox>
<br />
<br />
<br />
&nbsp;
<asp:Button ID="Button1" runat="server" Text="GO..." Height="24px"
CssClass="button" Font-Size="Small" Width="59px"
onclick="Button1_Click"/>

</div>
</center>
</form>
</body>
</asp:Content>

14.masterpage.master
<%@ Master Language="C#" AutoEventWireup ="true"
CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1 -transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page </title>
<link rel = "Stylesheet" href = "StyleSheet.css" />
<asp:ContentPlaceHolder id="head" runat="server" >
</asp:ContentPlaceHolder >
</head>
<body>
<center>
<form id="form1" runat="server">
<div>

<asp:ScriptManager ID="ScriptManager1" runat="server" />


<br />
<asp:Image ID="Image1" runat="server" ImageAlign ="Middle"
ImageUrl="~/NewFolder1/Logopace.gif" Width="1325px"
Height="236px" />

</div>
<p>
<asp:Label ID="Label1" runat="server"

Text="PARTS AND ACCESSORIES FOR CONSUMER ELECRONICS"


CssClass="button"
Width="1320px" Font-Bold="False" Font-
Italic="False"></ asp:Label>
</p>
<p align="center" style="width: 1325px">
&nbsp;<asp:Button ID="Button2" runat="server" Text="HOME" CssClass="label"
/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button3" runat="server" Text="PARTS/ACCESSORIES"
CssClass="label" Width="339px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button4" runat="server" Text="CONTACT US"
CssClass="label" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp; &nbsp;&nbsp; <asp:Button ID="Button5" runat="server"
Text="ABOUT US" CssClass="label" />
&nbsp;&nbsp;&nbsp;
</p>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder >
</form>
</center>
</body>

</html>

15.new_category.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="new_category.aspx.cs" Inherits="new_category"
MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<form id="form1">
<div>
<center>

<br />
<br />
<table width = "624px">
<tr>
<td class ="table_header"> Add New Product Category </td>
</tr>
</table>
<br />

<table width = "524px" cellpadding = "10" class ="table_body" >


<tr>
<td colspan = "3" class ="table_header" >Category Information </td>
</tr>

<tr>
<td >Product Category ID </td>
<td >
<asp:TextBox ID="Employee_id"
runat="server"></ asp:TextBox></td>
<td>

<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ErrorMessage ="*"
ControlToValidate ="Employee_id"></ asp:RequiredFieldValidator >
</td>

</tr>
<tr>
<td >Product Category </td>
<td ><asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ErrorMessage ="*"
ControlToValidate ="TextBox1"></ asp:RequiredFieldValidator >
</td>
</tr>

</table>
<br />
<asp:Button ID="Button1" runat="server" Text="SUBMIT"
onclick="Button1_Click" CssClass="button" Height="29px"
Font-Bold="False"
Font-Size="Small" />
<br />
<br />
<br />

</center>
</div>
</form>
</body>
</asp:Content>

16.newpa.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="newpa.aspx.cs"


Inherits="newpa" MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<form id="form1">
<div>
<center>

<br />
<br />
<table width = "624px">
<tr>
<td class ="table_header"> Add New Part/Accessory </td>
</tr>
</table>
<br />

<table width = "524px" cellpadding = "10" class ="table_body" >


<tr>
<td colspan = "3" class ="table_header" >Part/Accessory
Information </td>
</tr>

<tr>
<td >Part/Accessory ID </td>
<td >
<asp:TextBox ID="Employee_id"
runat="server"></ asp:TextBox></td>
<td>

<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ErrorMessage ="*"
ControlToValidate ="Employee_id"></ asp:RequiredFieldValidator >
</td>

</tr>
<tr>
<td >Part/Accessory Name </td>
<td ><asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ErrorMessage ="*"
ControlToValidate ="TextBox1"></ asp:RequiredFieldValidator >
</td>
</tr>

<tr>
<td >Part/Accessory Cost </td>
<td ><asp:TextBox ID="emp_name" runat="server"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ErrorMessage ="*"
ControlToValidate ="emp_name"></ asp:RequiredFieldValidator >
</td>
</tr>
<tr>
<td >Product Category ID </td>
<td >
<asp:TextBox ID="address" runat="server"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7"
runat="server"
ErrorMessage ="*"
ControlToValidate ="address"></ asp:RequiredFieldValidator >
</td>
</tr>

</table>
<br />
<asp:Button ID="Button1" runat="server" Text="SUBMIT"
onclick="Button1_Click" CssClass="button" Height="29px"
Font-Bold="False"
Font-Size="Small" />
<br />
<br />
<br />

</center>
</div>
</form>
</body>
</asp:Content>

17.print_bill.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="print_bill.aspx.cs"


Inherits="print_bill" MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<form id="form1">
<center>
<div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" Text="ENTER THE ORDER ID"
CssClass="button" Width="500"></asp:Label>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp; <br />
&nbsp;<asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox>
<br />
<br />
<br />
&nbsp;
<asp:Button ID="Button1" runat="server" Text="GO..." Height="24px"
CssClass="button" Font-Size="Small" Width="59px"
onclick="Button1_Click"/>
</div>
</center>
</form>
</body>
</asp:Content>

18.printfinal.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="printfinal.aspx.cs"


Inherits="printfinal" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">


<style type="text/css">
.style1
{
width: 751px;
}
.style2
{
width: 1px;
}
</style>
</head>
<body>
<form id="form1">

<center>
<table cellspacing = "0">
<tr style="background -color: #4A3C8C">
<td class="style2"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
<td class="style1"> <h1 style="color: #FFFFFF"> PACE--PARTS AND
ACCESSORIES FOR CONSUMER ELECTRONICS </h1></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
</tr>

<tr>
<td style="background -color: #4A3C8C"
class="style2"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
<td class="style1">

<br />

<asp:FormView ID="FormView1" runat="server" BackColor ="White"


BorderColor ="#E7E7FF" BorderWidth ="1px" CellPadding ="3"
Width="755px" DataKeyNames ="job_id"
DataSourceID ="SqlDataSource1"
BorderStyle ="None" GridLines="Horizontal">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<EditRowStyle BackColor ="#738A9C" ForeColor ="#F7F7F7" Font-
Bold="True" />
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<EditItemTemplate >
full_name:
<asp:TextBox ID="full_nameTextBox" runat="server"
Text='<%# Bind("full_name") %>' />
<br />
cntct:
<asp:TextBox ID="cntctTextBox" runat="server" Text='<%#
Bind("cntct") %>' />
<br />
job_id:
<asp:Label ID="job_idLabel1" runat="server" Text='<%#
Eval("job_id") %>' />
<br />
<asp:LinkButton ID="UpdateButton" runat="server"
CausesValidation ="True"
CommandName ="Update" Text="Update" />
&nbsp;<asp:LinkButton ID="UpdateCancelButton"
runat="server"
CausesValidation ="False" CommandName ="Cancel"
Text="Cancel" />
</EditItemTemplate >
<InsertItemTemplate >
full_name:
<asp:TextBox ID="full_nameTextBox" runat="server"
Text='<%# Bind("full_name") %>' />
<br />
cntct:
<asp:TextBox ID="cntctTextBox" runat="server" Text='<%#
Bind("cntct") %>' />
<br />
job_id:
<asp:TextBox ID="job_idTextBox" runat="server" Text='<%#
Bind("job_id") %>' />
<br />
<asp:LinkButton ID="InsertButton" runat="server"
CausesValidation ="True"
CommandName ="Insert" Text="Insert" />
&nbsp;<asp:LinkButton ID="InsertCancelButton"
runat="server"
CausesValidation ="False" CommandName ="Cancel"
Text="Cancel" />
</InsertItemTemplate >
<ItemTemplate >
<table cellpadding = "5">
<tr>
<td><b>CUSTOMER NAME : </b></td>
<td><%# Eval("full_name" ) %></td>
<td></td>
<td></td>
<td><b>CUSTOMER CONTACT NUMBER : </b></td>
<td><%# Eval("cntct") %></td>
<td></td>
<td></td>
<td><center><b>ORDER ID : </b></center></td>
<td><center><%# Eval("job_id")%></center></td>
</tr>

</table>

</ItemTemplate >
</asp:FormView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString24 %>"
SelectCommand ="SELECT [full_name], [cntct], [job_id] FROM
[reg_job] WHERE ([job_id] = @job_id)">
<SelectParameters >
<asp:QueryStringParameter Name="job_id"
QueryStringField ="job_id"
Type="Int32" />
</SelectParameters >
</asp:SqlDataSource >
<br />
<br />
<center>
<asp:GridView ID="GridView1" runat="server" BackColor ="White"
BorderColor ="#E7E7FF" BorderWidth ="1px" CellPadding ="3"
GridLines ="Horizontal" Width="558px"
AutoGenerateColumns ="False"
DataSourceID ="SqlDataSource2" BorderStyle ="None">
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />

<Columns>
<asp:BoundField DataField ="prod_id"
HeaderText ="PART/ACCESSORY ID"
SortExpression ="prod_id" />
<asp:BoundField DataField ="pa_name"
HeaderText ="PART/ACCESSORY NAME"
SortExpression ="pa_name" />
<asp:BoundField DataField ="prod_cost"
HeaderText ="PART/ACCESSORY COST"
SortExpression ="prod_cost" />
<asp:BoundField DataField ="prod_category"
HeaderText ="PRODUCT CATEGORY"
SortExpression ="prod_category" />
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<SelectedRowStyle BackColor ="#738A9C" ForeColor ="#F7F7F7"
Font-Bold="True" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
</center>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString25 %>"
SelectCommand ="SELECT order_details.prod_id,
prod_details.pa_name, prod_details.prod_cost, prod_category.prod_category
FROM order_details INNER JOIN prod_details ON order_details.prod_id =
prod_details.prod_id INNER JOIN prod_category ON
prod_details.prod_category_id = prod_category.prod_category_id WHERE
(order_details.job_id = @job_id)">
<SelectParameters >
<asp:QueryStringParameter Name="job_id"
QueryStringFi eld="job_id" />
</SelectParameters >
</asp:SqlDataSource >

<br />
<center>
<asp:DetailsView ID="DetailsView1" runat="server"
AutoGenerateRows ="False"
BackColor ="White" BorderColor ="#E7E7FF" BorderWidth ="1px"
CellPadding ="3" DataSourceID ="SqlDataSource3"
GridLines ="Horizontal" Height="50px" Width="549px"
BorderStyle ="None">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<PagerStyle BackColor ="PaleGoldenrod"
ForeColor ="DarkSlateBlue"
HorizontalAlign ="Center" />
<Fields>
<asp:BoundField DataField ="Expr1" HeaderText ="TOTAL BILL
AMOUNT" ReadOnly="True"
SortExpression ="Expr1" />
</Fields>
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<EditRowStyle BackColor ="#738A9C" ForeColor ="#F7F7F7" Font-
Bold="True" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:DetailsView >
</center>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString27 %>"
SelectCommand ="SELECT SUM(prod_details.prod_cost) AS Expr1
FROM order_details INNER JOIN prod_details ON order_details.prod_id =
prod_details.prod_id INNER JOIN prod_cate gory ON
prod_details.prod_category_id = prod_category.prod_category_id WHERE
(order_details.job_id = @job_id)">
<SelectParameters >
<asp:QueryStringParameter Name="job_id"
QueryStringField ="job_id" />
</SelectParameters >
</asp:SqlDataSource >
<br />

<br />
</td>
<td style="background -color: #4A3C8C"
class="style2"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
</tr>

<tr style="background -color: #4A3C8C">


<td class="style2" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
<td class="style1">
<center style="color: #FFFFFF">
<br />

C-2D/13C
JANAK PURI,NEW DELHI -110058<br />
PH.&nbsp; 9582292389 <br /><br />
</center>
</td>
<td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
</tr>

</table>

</center>

</form>
</body>
</asp:Content>

19.prod_detail.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="prod_detail.aspx.cs" Inherits="prod_detail"
MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />
<body>
<center>
<form id="form1">
<div>
<asp:Label ID="Label1" runat="server" Text="Product Category Details"
CssClass="button" Width="520" Font-Size="XX-Large"></ asp:Label>
<br />
<br />
<asp:Repeater ID="Repeater1" runat="server"
onitemcommand ="Repeater1_ItemCommand">

<HeaderTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server" Text="CATEGORY ID"
ReadOnly="true"></ asp:TextBox>

</td>

<td>
<asp:TextBox ID="TextBox2" runat="server" Text="PRODUCT
CATEGORY" ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:Label ID="Label3" runat="server" Text=""
Width="120"></asp:Label>
</td>
<td>

</td>

</tr>
</table>
</HeaderTemplate >
<ItemTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox3" runat="server"
Text='<%#Eval("prod_category_id") %>' ReadOnly="true"></ asp:TextBox>
</td>

<td>
<asp:TextBox ID="TextBox4" runat="server"
Text='<%#Eval("prod_category") %>' ReadOnly="true"></ asp:TextBox>
</td>

<td>
<asp:Button ID="Button2" runat="server" Text="EDIT"
CommandName ="edit" />
</td>
<td>
<asp:Button ID="Button1" runat="server" Text="DELETE"
CommandName ="delete" />
</td>

</tr>
</table>
</ItemTemplate >

</asp:Repeater>
<br />
<asp:Button ID="Button5" runat="server" Text="ADD NEW PRODUCT
CATEGORY"
onclick="Button5_Click" />
<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Product Parts And
Accessories" CssClass="button" Width="520" Font-Size="XX-
Large"></ asp:Label>
<br />
<br />
<asp:Repeater ID="Repeater2" runat="server"
onitemcommand ="Repeater2_ItemCommand"
DataSourceID ="SqlDataSource1">
<HeaderTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox5" runat="server" Text="PART/ACCESSORY
ID"></asp:TextBox>
</td>
<td>

<asp:TextBox ID="TextBox6" runat="server"


Text="NAME"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox7" runat="server"
Text="COST"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox8" runat="server" Text="CATEGORY
ID"></asp:TextBox>
</td>
<td>
<asp:Label ID="Label4" runat="server" Text=""
Width="120"></asp:Label>
</td>
<td>

</td>

</tr>
</table>
</HeaderTemplate >
<ItemTemplate >
<table>
<tr>
<td>
<asp:TextBox ID="TextBox9" runat="server"
Text='<%#Eval("prod_id") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox10" runat="server"
Text='<%#Eval("pa_name") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox11" runat="server"
Text='<%#Eval("prod_cost") %>' ReadOnly="true"></ asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox12" runat="server"
Text='<%#Eval("prod_category_id") %>' ReadOnly="true"></ asp:TextBox>
</td>

<td>
<asp:Button ID="Button3" runat="server" Text="EDIT"
CommandName ="edit1" />
</td>
<td>
<asp:Button ID="Button4" runat="server" Text="DELETE"
CommandName ="delete1" />
</td>

</tr>
</table>
</ItemTemplate >

</asp:Repeater>
<br />
<asp:Button ID="Button6" runat="server" Text="ADD A NEW
PART/ACCESSORY"
onclick="Button6_Click" />

<asp:SqlDataSource ID="SqlDataSource1" runat="server"


ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString9 %>"
SelectCommand ="SELECT [prod_category_id], [prod_category] FROM
[prod_category] ORDER BY [prod_category_id]">
</asp:SqlDataSource >
<br />
</div>
</form>
</center>
</body>
</asp:Content>

20.prod_details1.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="prod_details1.aspx.cs" Inherits="prod_details1"
MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />
</head>
<body>
<center>
<form id="form1">
<div>
<asp:Label ID="Label1" runat="server" Text="Product Category Details"
CssClass="button" Width="520" Font-Size="XX-Large"></ asp:Label>
<br />
<br />
<br />
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns ="False"
BackColor ="White" BorderColor ="#E7E7FF" BorderStyle ="None"
BorderWidth ="1px"
CellPadding ="3" DataKeyNames ="prod_category_id"
DataSourceID ="SqlDataSource1"
GridLines ="Horizontal" Height="194px" Width="662px">
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<Columns>
<asp:BoundField DataField ="prod_category_id"
HeaderText ="PRODUCT CATEGORY ID"
ReadOnly="True" SortExpression ="prod_category_id" />
<asp:BoundField DataField ="prod_category"
HeaderText ="PRODUCT CATEGORY"
SortExpression ="prod_category" />
<asp:CommandField ShowEditButton ="True" />
<asp:CommandField ShowDeleteButton ="True" />
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<SelectedRowStyle BackColor ="#738A9C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString %>"
SelectCommand ="SELECT * FROM [prod_category] ORDER BY
[prod_category_id]"

DeleteCommand ="delete from prod_category where


prod_category_id=@prod_category_id"
UpdateCommand ="UPDATE prod_category SET prod_categ ory =
@prod_category WHERE (prod_category_id = @prod_category_id)"
>
<DeleteParameters >
<asp:Parameter Name="prod_category_id" />
</DeleteParameters >
<UpdateParameters >
<asp:Parameter Name="prod_category" />
<asp:Parameter Name="prod_category_id" />
</UpdateParameters >
</asp:SqlDataSource >
<br />
<br />
<asp:Button ID="Button5" runat="server" Text="ADD NEW PRODUCT
CATEGORY" onclick="Button5_Click"
/>
<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
<br />
&nbsp;
<asp:Label ID="Label3" runat="server" Text="SELECT PRODUCT CATEGORY
"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource1" DataTextField ="prod_category"
DataValueField ="prod_category_id" Height="23px" Width="285px"
AutoPostBack ="True">
</asp:DropDownList >
<br />
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Product Parts And
Accessories" CssClass="button" Width="520" Font-Size="XX-
Large"></ asp:Label>
<br />
<br />
<br />
<br />
<asp:GridView ID="GridView2" runat="server"
AutoGenerateColumns ="False"
DataKeyNames ="prod_id" DataSourceID ="SqlDataSource2"
Height="216px"
Width="783px" BackColor ="White" BorderColor ="#E7E7FF"
BorderStyle ="None"
BorderWidth ="1px" CellPadding ="3" GridLines ="Horizontal">
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<Columns>
<asp:BoundField DataField ="prod_id"
HeaderText ="PART/ACCESSORY ID" ReadOnly="True"
SortExpression ="prod_id" />
<asp:BoundField DataField ="pa_name"
HeaderText ="PART/ACCESSORY NAME"
SortExpression ="pa_name" />
<asp:BoundField DataField ="prod_cost"
HeaderText ="PART/ACCESSORY COST"
SortExpression ="prod_cost" />
<asp:BoundField DataField ="prod_category_id"
HeaderText ="PRODUCT CATEGORY ID"
SortExpression ="prod_category_id" />
<asp:CommandField ShowEditButton ="True" />
<asp:CommandField ShowDeleteButton ="True" />
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<SelectedRowStyle BackColor ="#738A9C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString %>"
SelectCommand ="SELECT * FROM [prod_details] WHERE
([prod_category_id] = @prod_category_id)"
>
<SelectParameters>
<asp:ControlParameter ControlID ="DropDownList1"
Name="prod_category_id"
PropertyName ="SelectedValue" Type="Decimal" />
</SelectParameters >
</asp:SqlDataSource >
<br />
<br />
<asp:Button ID="Button6" runat="server" Text="ADD A NEW
PART/ACCESSORY" onclick="Button6_Click"
/>

<br />

</div>
</form>
</center>
</body>
</asp:Content>

21.reg_job1.aspx
<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="reg_job1.aspx.cs"
Inherits="reg_job1" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="head" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />
</asp:Content>

<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">

<center>
<br />

<br />
<br />
<br />

<asp:Label ID="Label1" runat="server" Text="Order Registration"


CssClass="table_header" Width="798px"></ asp:Label>
<br />
<br />
<br />
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Your Ordered
Parts/Accesssories"
CssClass="table_header" Width="572px">< /asp:Label>

<br />
<br />
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns ="False"
BackColor ="White" BorderColor ="#E7E7FF" BorderStyle ="None"
BorderWidth ="1px"
CellPadding ="3" DataSourceID ="SqlDataSource1"
GridLines ="Horizontal"
Height="178px"
Width="764px" DataKeyNames ="prod_id" >
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<Columns>
<asp:BoundField DataField ="prod_id"
HeaderText ="PART/ACCESSORY ID"
SortExpression ="prod_id" />
<asp:BoundField DataField ="pa_name"
HeaderText ="PART/ACCESSORY NAME"
SortExpression ="pa_name" />
<asp:BoundField DataField ="prod_cost"
HeaderText ="PART/ACCESSORY COST"
SortExpression ="prod_cost" />
<asp:BoundField DataField ="prod_category"
HeaderText ="PRODUCT CATEGORY"
SortExpression ="prod_category" />
<asp:CommandField DeleteText ="CANCEL ORDER"
ShowDeleteButton ="True" />
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<SelectedRowStyle BackColor ="#738A9C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>

<br />
<br />
<br />

<asp:SqlDataSource ID="SqlDataSource1" runat="server"


ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString31 %>"

SelectCommand ="SELECT order_details.prod_id,


prod_details.pa_name, prod_details.prod_cost, prod_category.prod_category
FROM order_details INNER JOIN prod_details ON order_details.prod_id =
prod_details.prod_id INNER JOIN prod_category ON
prod_details.prod_category_id = prod_category.prod_category_id WHERE
(order_details.job_id = @c)"
DeleteCommand ="delete from order_details where prod_id=@prod_id
and job_id=@c">
<SelectParameters >
<asp:QueryStringParameter Name="c"
QueryStringField ="job_id" />
</SelectParameters >
<DeleteParameters >
<asp:QueryStringParameter Name="c"
QueryStringField ="job_id" />
</DeleteParameters >
</asp:SqlDataSource >
<asp:Button ID="Button1" runat="server" Text="NEXT"
CssClass="button"
Font-Size="Medium" Width="89px" onclick="Button1_Click"/>
<br />
</center>

</asp:Content>
22.reg_job2.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="reg_job2.aspx.cs"


Inherits="reg_job2" MasterPageFile ="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID ="head" runat="server">

<title>Untitled Page </title>


<link rel = "Stylesheet" href = "StyleSheet.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID ="ContentPlaceHolder1"
runat="server">

<center>
<asp:Label ID="Label1" runat="server" Text="Order Registration"
CssClass="table_header" Width="798px"></ asp:Label>
<br />
<br />
<br />
<br />
<table width = "524px" cellpadding = "10" class ="table_body">
<tr>
<td colspan = "3" class ="table_header"> Customer Information </td>
</tr>

<tr>
<td >Full Name</td>
<td >
<asp:TextBox ID="TextBox2" runat="server"
Width="271px"></ asp:TextBox>
</td>
<td>
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator6"
runat="server"
ErrorMessage="*"
ControlToValidate="cus_fullname"></asp:RequiredFieldValidator> --%>
</td>

</tr>

<tr>
<td >Address</td>
<td >
<asp:TextBox ID="cus_address" runat="server" Height="84px"
TextMode="MultiLine" Width="272px"></ asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7"
runat="server"
ErrorMessage ="*"
ControlToValidate ="cus_address"></ asp:RequiredFieldValidator >
</td>
</tr>
<tr>
<td >Email</td>
<td ><asp:TextBox ID="cus_email" runat="server"
Width="272px"></ asp:TextBox> </td>
<td>
<asp:RegularExpressionValidator ID="RegularExpressionValidator7"
runat="server"
ControlToValidate ="cus_email" ErrorMessage ="*"
ValidationExpression ="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-
.]\w+)*"></asp:RegularExpressionValidator >
<asp:RequiredFieldValidator ID="RequiredFieldValidator9"
runat="server"
ErrorMessage ="*"
ControlToValidate ="cus_email"></ asp:RequiredFieldValidator >
</td>
</tr>

<tr>
<td >Contact No. </td>
<td ><asp:TextBox ID="cus_contactno" runat="server"></ asp:TextBox>
</td>
<td>
<asp:RegularExpressionValidator ID="RegularExpressionValidator6"
runat="server"
ControlToValidate ="cus_contactno" ErrorMessage ="*"

ValidationExpression ="\d*"></asp:RegularExpressionValidator >


<asp:RequiredFieldValidator ID="RequiredFieldValidator10"
runat="server"
ErrorMessage ="*"
ControlToValidate ="cus_contactno"></ asp:RequiredFieldValidator >
</td>
</tr>

</table>

<br />
<br />

<br />

<asp:Button ID="Button1" runat="server" Text="SUBMIT"


CssClass="button"
Font-Size="Small" Height="29px" Width="100px"
onclick="Button1_Click"/>

</center>
</asp:Content>

23.register_job.aspx

<%@ Page Language="C#" AutoEventWireup ="true"


CodeFile="register_job.aspx.cs" Inherits="register_job"
MasterPageFile ="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID ="head" runat="server">


<link rel = "Stylesheet" href = "StyleSheet.css" />
<style type="text/css">
.style1
{
width: 175px;
}
.style2
{
width: 639px;
}
</style>
</asp:Content>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">

<center>

<br />
<br />
<br />
<br />
<br />
<br />
<br />
<table width = "624px">
<tr>
<td class ="table_header"> Order Registration </td>
</tr>
</table>
<br />

<table width = "524px" cellpadding = "10" class ="table_body" >


<tr>
<td colspan = "3" class ="table_header" >Order Information </td>
</tr>

<tr>
<td class="style1" >Order ID</td>
<td class="style2" >
<br />
<br />
<asp:Label ID="job_id" runat="server" Text="Label"></ asp:Label>
<br />
<br />
</td>
<td></td>

</tr>

<tr>
<td class="style1" >Product Category </td>
<td class="style2" >
<br />
<br />
<br />
<br />
<asp:DropDownList ID="DropDownList2" runat="server"
Width="364px"
DataSourceID ="SqlDataSource1" DataTextField ="prod_category"
DataValueField ="prod_category" AutoPostBack ="True"
Height="25px">
<asp:ListItem Value="-1">Select</asp:ListItem>
<asp:ListItem Value="0">k23</asp:ListItem>
<asp:ListItem Value="1">s04</asp:ListItem>
<asp:ListItem Value="2">a27</asp:ListItem>
<asp:ListItem Value="3">p21</asp:ListItem>
</asp:DropDownList >
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString13 %>"

SelectCommand ="SELECT [prod_category] FROM [prod_category]"


>
</asp:SqlDataSource >
<br />
<br />
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="style1" nowrap="nowrap" >Parts/Accessories Details </td>
<td class="style2">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
<asp:GridView ID="GridView2" runat="server"
AutoGenerateColumns ="False"
DataKeyNames ="prod_id" DataSourceID ="SqlDataSource2"
BackColor ="White" BorderColor ="#E7E7FF" BorderWidth ="1px"
CellPadding ="3" GridLines ="Horizontal" BorderStyle ="None"
Height="262px"
Width="656px"
onselectedindexchanged ="GridView2_SelectedIndexChanged">
<RowStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C" />
<Columns>
<asp:BoundField DataField ="prod_id"
HeaderText ="Part/Accessory ID" ReadOnly="True"
SortExpression ="prod_id" />
<asp:BoundField DataField ="pa_name"
HeaderText ="Part/Accessory Name"
SortExpression ="pa_name" />
<asp:BoundField DataField ="prod_cost"
HeaderText ="Part/Accessory Cost"
SortExpression ="prod_cost" />
<asp:CommandField ShowSelectButton ="True"
SelectText ="ORDER" />
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor ="#E7E7FF" ForeColor ="#4A3C8C"
HorizontalAlign ="Right" />
<SelectedRowStyle BackColor ="#738A9C" ForeColor ="#F7F7F7"
Font-Bold="True" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"
ForeColor ="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString ="<%$
ConnectionStrings:mynewsmdConnectionString14 %>"

SelectCommand ="SELECT prod_details.prod_id,


prod_details.pa_name, prod_details.prod_cost FROM prod_category INNER JOIN
prod_details ON prod_categor y.prod_category_id =
prod_details.prod_category_id WHERE (prod_category.prod_category = @c)">
<SelectParameters >
<asp:ControlParameter ControlID ="DropDownList2"
Name="c"
PropertyName ="SelectedValue" />
</SelectParameters >
</asp:SqlDataSource >
</td>
<%--<td >
<asp:DropDownList ID="emp_role" runat="server" Width="128">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Speaker &nbsp;&nbsp;&nbsp;&nbsp; Rs.800
</asp:ListItem>
<asp:ListItem>Keypad &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Rs.500 </asp:ListItem>
<asp:ListItem>Earphone &nbsp;&nbsp; Rs.200
</asp:ListItem>
<asp:ListItem>Screen &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Rs.1000 </asp:ListItem>
</asp:DropDownList>
</td>--%>
<td>
<br />
<br />
<br />
<br />
<br />
<br />
<br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />
<br />
<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp; <br />
&nbsp;&nbsp;

</td>
</tr>

</table>
<br />
<br />
<br />

<center>

<asp:Button ID="Button2" runat="server" Text="NEXT"


CssClass="button"
Font-Size="Medium" Width="90px"
onclick="Button2_Click1"/>
</center>

<br />
<br />
<br />

<br />

<br />
<br />

<br />

</center>

</asp:Content>

24.remove.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="remove.aspx.cs"


Inherits="remove" MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<center>
<form id="form1">
<div>
<table width = "624px">
<tr>
<td class ="table_header"> Remove Employee </td>
</tr>
</table>
<br />
<table width = "524px" cellpadding = "10" class ="table_body" >
<tr>
<td colspan = "3" class ="table_header" >Employee Information </td>
</tr>

<tr>
<td >Employee ID </td>
<td >
<asp:TextBox ID="TextBox1" runat="server"></ asp:TextBox></td>
<%--<td>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator1" runat="server"
ControlToValidate="Employee_id" ErrorMessage="*"
ValidationExpression=" \d*"></asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="Req uiredFieldValidator3"
runat="server"
ErrorMessage="*"
ControlToValidate="Employee_id"></asp:RequiredFieldValidator>
</td>--%>

</tr>
</table>
<br />
<asp:Button ID="Button2" runat="server" Text="REMOVE"
onclick="Button2_Click" CssClass="button" Height="29px"
Font-Bold="False"
Font-Size="Small" />

<br />
</div>
</form>
</center>
</body>
</asp:Content>

25.stylesheet.css

.table_header
{
border-style: solid;
border-color: #4A3C8C;
border-width: medium 0px 0px 0px;
background -color: #4A3C8C;
color: #FFFFFF;
font-family: Verdana;
font-size: 1.3em;
}

.table_body
{
color: #000000;
font-family: Verdana;
font-size: .8em;
text-align: left;
width: 502px;
margin-right: 41px;
}

.button
{
border-style: solid;
border-color: #4A3C8C;
border-width: medium 0px 0px 0px;
background -color: #4A3C8C;
color: #FFFFFF;
font-family: Verdana;
font-size: 1.3em;
text-align: center;
}

.label
{

text-align: center;
background -color:#B5C7DE;
color: #4A3C8C;
font-family: Verdana;
font-size: 1.3em;
}
26.successmsg.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="successmsg.aspx.cs"


Inherits="successmsg" MasterPageFile ="~/MasterPage.master" %>
<asp:Content ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<link rel = "Stylesheet" href = "StyleSheet.css" />

<body>
<form id="form1">
<div>
<center>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <asp:Button
ID="Button1" runat="server" onclick="Button1_Click" Text="HOME"
CssClass="button"/>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;

<br />

<table width = "324px" cellpadding = "10">


<tr>
<td class = "table_header" >

<asp:Label ID="Label1" runat="server" Text="Record Successfully


Inserted"></ asp:Label>

</td>

</tr>
</table>
<br />

</center>

</div>
</form>
</body>
</asp:Content>








Das könnte Ihnen auch gefallen