Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
ABSTRACT
2
SYSTEM ANALYSIS.
EXISTING SYSTEM:
Existing approaches that manage cloud service evolution focus on requirements such as
process structure fairness , and preserving elasticity and multi-tenancy . To the best of
our knowledge, complex properties such as transactional requirements are yet to
receive attention in this area. The work presented in this article will hopefully provide
avenues for addressing a host of opportunities present in the early stages of BPaaS
research.
PROPOSED SYSTEM:
3
SYSTEM SPECIFICATION
HARDWARE REQUIREMENTS:
Processor : II Gen Processor
Mother Board : 61 Chipset Mother Board
Hard Disk : 160 GB.
Monitor : 15inch Monitor.
Keyboard : PS/2 or USB Keyboard
Mouse : Optical Mouse.
Ram : 2 GB DDR 2 .
SOFTWARE REQUIREMENTS:
Operating system : Windows 7 Ultimate.
Coding Language : ASP.Net with C#
Front-End : Visual Studio 2010 Professional.
Data Base : SQL Server 2008.
4
SOFTWARE DESCRIPTION
MICROSOFT .NET
Microsoft .NET is a set of Microsoft software technologies for rapidly building
and integrating XML Web services, Microsoft Windows-based applications, and Web
solutions. The .NET Framework is a language-neutral platform for writing programs
that can easily and securely interoperate. There’s no language barrier with .NET: there
are numerous languages available to the developer including Managed C++, C#, Visual
Basic and Java Script. The .NET framework provides the foundation for components to
interact seamlessly, whether locally or remotely on different platforms. It standardizes
common data types and communications protocols so that components created in
different languages can easily interoperate.
“.NET” is also the collective name given to various software components built
upon the .NET platform. These will be both products (Visual Studio.NET and
Windows.NET Server, for instance) and services (like Passport, .NET My Services,
and so on).
5
THE .NET FRAMEWORK ARCHITECTURE
6
3. ADO.NET is Microsoft’s ActiveX Data Object (ADO) model for the .NET
Framework. ADO.NET is not simply the migration of the popular ADO model
to the managed environment but a completely new paradigm for data access and
manipulation. ADO.NET is intended specifically for developing web
applications. This is evident from its two major design principles:
4. The 4th layer of the framework consists of the Windows application model
and, in parallel, the Web application model. The Web application model-in the
slide presented as ASP.NET-includes Web Forms and Web Services. ASP.NET
comes with built-in Web Forms controls, which are responsible for generating
the user interface. They mirror typical HTML widgets like text boxes or
buttons. If these controls do not fit your needs, you are free to create your own
user controls. Web Services brings you a model to bind different applications
over the Internet. This model is based on existing infrastructure and applications
and is therefore standard-based, simple, and adaptable. Web Services are
software solutions delivered via Internet to any device. Today, that means Web
browsers on computers, for the most part, but the device-agnostic design of
.NET will eliminate this limitation.
6. The CLR and the .NET Frameworks in general, however, are designed in such a
way that code written in one language can not only seamlessly be used by
7
another language. Hence ASP.NET can be programmed in any of the .NET
compatible language whether it is VB.NET, C#, Managed C++ or JScript.NET.
Managed Code
The code that targets .NET, and which contains certain extra Information -
“metadata” - to describe itself. Whilst both managed and unmanaged code can run in
the runtime, only managed code contains the information that allows the CLR to
guarantee, for instance, safe execution and interoperability.
Managed Data
With Managed Code comes Managed Data. CLR provides memory allocation
and Deal location facilities, and garbage collection. Some .NET languages use
Managed Data by default, such as C#, Visual Basic.NET and JScript.NET, whereas
others, namely C++, do not. Targeting CLR can, depending on the language you’re
using, impose certain constraints on the features available. As with managed and
unmanaged code, one can have both managed and unmanaged data in .NET
applications - data that doesn’t get garbage collected but instead is looked after by
unmanaged code.
8
Common Language Specification
The CLR provides built-in support for language interoperability. To ensure that
you can develop managed code that can be fully used by developers using any
programming language, a set of language features and rules for using them called the
Common Language Specification (CLS) has been defined. Components that follow
these rules and expose only CLS features are considered CLS-compliant.
Visual Basic .NET has been updated to include many new and improved
language features that make it a powerful object-oriented programming language.
These features include inheritance, interfaces, and overloading, among others. Visual
Basic also now supports structured exception handling, custom attributes and also
supports multi-threading.
9
Visual Basic .NET is also CLS compliant, which means that any CLS-
compliant language can use the classes, objects, and components you create in Visual
Basic .NET.
Managed Extensions for C++ and attributed programming are just some of the
enhancements made to the C++ language. Managed Extensions simplify the task of
migrating existing C++ applications to the new .NET Framework.
Active State has created Visual Perl and Visual Python, which enable .NET-
aware applications to be built in either Perl or Python. Both products can be integrated
into the Visual Studio .NET environment. Visual Perl includes support for Active
State’s Perl Dev Kit.
FORTRAN
COBOL
Eiffel
10
can use objects, classes, and components created in other CLS-compliant languages in
C#.NET .The use of CLS ensures complete interoperability among applications,
regardless of the languages used to create the application.
Garbage Collection
Garbage Collection is another new feature in C#.NET. The .NET Framework
monitors allocated resources, such as objects and variables. In addition, the .NET
Framework automatically releases memory for reuse by destroying objects that are no
longer in use. In C#.NET, the garbage collector checks for the objects that are not
currently in use by applications. When the garbage collector comes across an object
that is marked for garbage collection, it releases the memory occupied by the object.
Overloading
Overloading is another feature in C#. Overloading enables us to define multiple
procedures with the same name, where each procedure has a different set of arguments.
Besides using overloading for procedures, we can use it for constructors and properties
in a class.
Multithreading
C#.NET also supports multithreading. An application that supports
multithreading can handle multiple tasks simultaneously, we can use multithreading to
decrease the time taken by an application to respond to user interaction.
11
Structured Exception Handling
C#.NET supports structured handling, which enables us to detect and remove
errors at runtime. In C#.NET, we need to use Try…Catch…Finally statements to create
exception handlers. Using Try…Catch…Finally statements, we can create robust and
effective exception handlers to improve the performance of our application.
ASP.NET
12
This separation helps designers and developers. Designers don't have to worry
about business logic to make user interface changes, and developers don't have to
worry about to update code.
13
All the code related to database is written in this layer. It contains methods to
connect with database. It also contains the methods to perform insert, update, delete,
select data according to the SQL query.
Advantages of ASP.NET
14
State Management
To refer to the problems mentioned before, ASP.NET provides solutions for
session and application state management. State information can, for example, be kept
in memory or stored in a database. It can be shared across Web farms, and state
information can be recovered, even if the server fails or the connection breaks down.
Request - Represents the incoming request from the client to the Web Server
(for example, the data posted on a form).
Response - Represents the response sent back to the client from the Web Server
(for example, allowing writing text output).
Application - Takes over the processing of an incoming request. It can handle
one request at a time.
Server - Is used to access properties and methods on the server.
Session State - Stores information about, or change settings for, a user session.
HttpContext - Encapsulates all HTTP-specific information about an individual
HTTP request.
15
ASP.NET Web Forms
ASP.NET Web Forms is a part of the ASP.NET web application framework and
is included with Visual Studio. It is one of the four programming models we can use to
create ASP.NET web applications; the others are ASP.NET MVC, ASP.NET Web
Pages, and ASP.NET Single Page Applications.
Web Forms are pages that let the users request using their browser. These pages
can be written using a combination of HTML, client-script, server controls, and server
code. When users request a page, it is compiled and executed on the server by the
framework, and then the framework generates the HTML markup that the browser can
render. An ASP.NET Web Forms page presents information to the user in any browser
or client device.
Using Visual Studio, we can create ASP.NET Web Forms. The Visual Studio
Integrated Development Environment (IDE) lets to drag and drop server controls to lay
out the Web Forms page. We can then easily set properties, methods, and events for
controls on the page or for the page itself. These properties, methods, and events are
used to define the web page's behavior, look and feel, and so on. To write server code
to handle the logic for the page, we can use a .NET language like Visual Basic or C#.
16
ASP.NET Web Forms offer:
Separation of HTML and other UI code from application logic.
A rich suite of server controls for common tasks, including data access.
Powerful data binding, with great tool support.
Support for client-side scripting that executes in the browser.
Support for a variety of other capabilities, including routing, security,
performance, internationalization, testing, debugging, error handling and state
management.
Server Controls
ASP.NET Web server controls are objects on ASP.NET Web pages that run
when the page is requested and that render markup to the browser. Many Web server
controls are similar to familiar HTML elements, such as buttons and text boxes. Other
controls encompass complex behavior, such as a calendar controls, and controls that
you can use to connect to data sources and display data.
Master Pages
ASP.NET master pages allow you to create a consistent layout for the pages in
your application. A single master page defines the look and feel and standard behavior
that you want for all of the pages (or a group of pages) in your application. You can
then create individual content pages that contain the content you want to display. When
users request the content pages, they merge with the master page to produce output that
combines the layout of the master page with the content from the content page.
Membership
ASP.NET Identity stores your users' credentials in a database created by the
application. When your users log in, the application validates their credentials by
17
reading the database. Your project's Account folder contains the files that implement
the various parts of membership: registering, logging in, changing a password, and
authorizing access. Additionally, ASP.NET Web Forms supports OAuth and OpenID.
These authentication enhancements allow users to log into your site using existing
credentials, from such accounts as Facebook, Twitter, Windows Live, and Google. By
default, the template creates a membership database using a default database name on
an instance of SQL Server Express LocalDB, the development database server that
comes with Visual Studio Express 2013 for Web.
Routing
URL routing allows you to configure an application to accept request URLs that
do not map to physical files. A request URL is simply the URL a user enters into their
browser to find a page on your web site. You use routing to define URLs that are
semantically meaningful to users and that can help with search-engine optimization
(SEO).
State Management
ASP.NET Web Forms includes several options that help you preserve data on
both a per-page basis and an application-wide basis.
Security
An important part of developing a more secure application is to understand the
threats to it. Microsoft has developed a way to categorize threats: Spoofing, Tampering,
Repudiation, Information disclosure, Denial of service, Elevation of privilege
(STRIDE). In ASP.NET Web Forms, you can add extensibility points and
configuration options that enable you to customize various security behaviors in
ASP.NET Web Forms.
Performance
18
Performance can be a key factor in a successful Web site or project. ASP.NET
Web Forms allows you to modify performance related to page and server control
processing, state management, data access, application configuration and loading, and
efficient coding practices.
Internationalization
ASP.NET Web Forms enables you to create web pages that can obtain content
and other data based on the preferred language setting for the browser or based on the
user's explicit choice of language. Content and other data is referred to as resources and
such data can be stored in resource files or other sources. In an ASP.NET Web Forms
page, you configure controls to get their property values from resources. At run time,
the resource expressions are replaced by resources from the appropriate localized
resource file.
ASP.NET Overview
Here is some point that gives the quick overview of ASP.NET.
ASP.NET provides services to allow the creation, deployment, and
execution of Web Applications and Web Services
Like ASP, ASP.NET is a server-side technology
Web Applications are built using Web Forms. ASP.NET comes with built-
in Web Forms controls, which are responsible for generating the user
interface. They mirror typical HTML widgets like text boxes or buttons. If
these controls do not fit your needs, you are free to create your own user
controls.
Web Forms are designed to make building web-based applications as easy
as building Visual Basic application
19
Introduction to C#.NET
C# was developed by Anders Hejlsberg and his team during the development of
.Net Framework.
For example, let us consider a Rectangle object. It has attributes such as length
and width. Depending upon the design, it may need ways for accepting the values of
these attributes, calculating the area, and displaying details.
20
The following is an implementation of Rectangle Class
using System;
namespace RectangleApplication
{
class Rectangle
{
// member variables
double length;
double width;
public void Acceptdetails()
{
length = 4.5;
width = 3.5;
}
class ExecuteRectangle
{
static void Main(string[] args)
{
Rectangle r = new Rectangle();
r.Acceptdetails();
21
r.Display();
Console.ReadLine();
}
}
}
When the above code is compiled and executed, it produces the following result:
Length : 4.5
Width : 3.5
Area : 15.75
Member Variables
Variables are attributes or data members of a class, used for storing data. In the
preceding program, the Rectangle class has two member variables named length and
width.
Member Functions
Functions are set of statements that perform a specific task. The member
functions of a class are declared within the class. Our sample class Rectangle contains
three member functions: AcceptDetails, GetArea and Display.
Instantiating a Class
In the preceding program, the class ExecuteRectangle contains the Main()
method and instantiates the Rectangle class.
22
C# Keywords
Keywords are reserved words predefined to the C# compiler. These keywords
cannot be used as identifiers. However, if you want to use these keywords as
identifiers, you may prefix the keyword with the @ character.
Ex: int, char, bool, break
C# Variables
A variable is nothing but a name given to a storage area that our programs can
manipulate. Each variable in C# has a specific type, which determines the size and
layout of the variable's memory the range of values that can be stored within that
memory and the set of operations that can be applied to the variable.
Ex: int i; // here i is a variable
C# Data Types
C# is a strongly-typed language. Before a value can be stored in a variable, the
type of the variable must be specified. In C# the data types may have value types,
reference types or pointer types.
Ex: int, char, byte, long
C# Constants
The constants refer to fixed values that the program may not alter during its
execution. These fixed values are also called literals.
Ex: 100, 3.14, ‘\n’
C# Operators
An operator is a symbol that tells the compiler to perform specific mathematical
or logical manipulations. C# has rich set of built-in operators as follows,
Arithmetic Operators ( +, -, *, /, %, ++, -- )
Relational Operators ( >, <, >=, <=, ==, != )
Logical Operators ( &&, ||, ! )
Bitwise Operators ( &, |, ^, ~, >>, << )
Assignment Operators ( +, +=, =-, *=, /=, %=, &=, |=, ^=, <<=, >>= )
23
C# Decision Making
Decision making structures requires the programmer to specify one or more
conditions to be evaluated or tested by the program, along with a statement or
statements to be executed if the condition is determined to be true, and optionally, other
statements to be executed if the condition is determined to be false.
Statement Description
C# Loops
There may be a situation, when you need to execute a block of code several
numbers of times. In general, the statements are executed sequentially: The first
statement in a function is executed first, followed by the second, and so on.
Programming languages provide various control structures that allow for more
complicated execution paths. A loop statement allows us to execute a statement or a
group of statements multiple times.
24
Loop Type Description
do...while loop It is similar to a while statement, except that it tests the condition
at the end of the loop body
nested loops We can use one or more loop inside any another while, for or
do..while loop.
C# Methods
A method is a group of statements that together perform a task. Every C#
program has at least one class with a method named Main.
To use a method, we need to:
Define the method
Call the method
INTRODUCTION TO SQL
SQL (Structured Query Language) is a database computer language designed
for managing data in relational database management systems (RDBMS).
25
SELECT * FROM SCHOOL WHERE SchoolId>100
SQL SERVER
SQL Server is a relational database management system (RDBMS)
from Microsoft that's designed for the enterprise environment. SQL Server runs on T-
SQL (Transact -SQL), a set of programming extensions from Sybase and Microsoft that
add several features to standard SQL, including transaction control, exception and error
handling, row processing, and declared variables. As a database server, it is a software
product with the primary function of storing and retrieving data as requested by
other software applications - which may run either on the same computer or on another
computer across a network (including the Internet).
26
Fig 3. SQL Server Environment
Architecture
The protocol layer implements the external interface to SQL Server. All
operations that can be invoked on SQL Server are communicated to it via a Microsoft-
defined format, called Tabular Data Stream (TDS). TDS is an application layer
protocol, used to transfer data between a database server and a client. Initially designed
and developed by Sybase Inc. for their Sybase SQL Server relational database engine in
1984, and later by Microsoft in Microsoft SQL Server, TDS packets can be encased in
other physical transport dependent protocols, including TCP/IP, named pipes,
and shared memory. Consequently, access to SQL Server is available over these
protocols. In addition, the SQL Server API is also exposed over web services.
Data Storage
Data storage is a database, which is a collection of tables with typed columns.
SQL Server supports different data types including primary types such as Integer,
27
Float, Decimal, Char (including character strings), Varchar (variable length character
strings), Binary (for unstructured blobs of data), Text (for textual data) among others.
The rounding of floats to integers uses either Symmetric Arithmetic Rounding or
Symmetric Round Down (fix) depending on arguments: SELECT Round(2.5,
0) gives 3.
Data Retrieval
The main mode of retrieving data from a SQL Server database is querying for it.
The query is expressed using a variant of SQL called T-SQL, a dialect Microsoft SQL
Server shares with Sybase SQL Server due to its legacy. The
query declaratively specifies what is to be retrieved. It is processed by the query
processor, which figures out the sequence of steps that will be necessary to retrieve the
requested data.
28
Query Designer and Editor
When creating SQL commands and queries, the “Query Editor” (select “New
Query” from the Toolbar) is used. With SQL and the “Query Editor” we can do almost
everything with code, but sometimes it is also a good idea to use the different Designer
tools in SQL to help us do the work without coding so much. Writing script through
design form is known as Query designer that work as graphical user interface. We can
use Tables, Views, and Functions columns to perform a combine query for desired
output.
DATABASES
Database is a collection of objects such as table, view, stored procedure,
function, trigger, etc.
User Databases
System Databases
System databases are created automatically when we install MS SQL Server.
Following is a list of system databases −
Master
Model
MSDB
Tempdb
User Databases
User databases are created by users (Administrators, developers, and testers
who have access to create databases).
29
Query to create a Sample Database
USE master;
CREATE DATABASE sample;
TABLES
30
SYSTEM STUDY
FEASIBILITY STUDY
The feasibility of the project is analyzed in this phase and business proposal
is put forth with a very general plan for the project and some cost estimates.
During system analysis the feasibility study of the proposed system is to be carried
out. This is to ensure that the proposed system is not a burden to the company.
For feasibility analysis, some understanding of the major requirements for the
system is essential.
Three key considerations involved in the feasibility analysis are
Economical Feasibility
Technical Feasibility
Social Feasibility
ECONOMICAL FEASIBILITY
This study is carried out to check the economic impact that the system will
have on the organization. The amount of fund that the company can pour into the
research and development of the system is limited. The expenditures must be justified.
Thus the developed system as well within the budget and this was achieved because
most of the technologies used are freely available. Only the customized products had to
be purchased.
TECHNICAL FEASIBILITY
This study is carried out to check the technical feasibility, that is, the technical
requirements of the system. Any system developed must not have a high demand on the
available technical resources. This will lead to high demands on the available technical
resources.
This will lead to high demands being placed on the client. The developed
system must have a modest requirement, as only minimal or null changes are required
for implementing this system.
31
SOCIAL FEASIBILITY
The aspect of study is to check the level of acceptance of the system by the user.
This includes the process of training the user to use the system efficiently. The user
must not feel threatened by the system, instead must accept it as a necessity. The level
of acceptance by the users solely depends on the methods that are employed to educate
the user about the system and to make him familiar with it. His level of confidence
must be raised so that he is also able to make some constructive criticism, which is
welcomed, as he is the final user of the system.
32
MODULE DESCRIPTION:
1. User module
2. Service module.
3. Transaction module.
4. Cloud module
4. Admin module:
User module:
In this module the user will search the cloud services that are available and buy the
service that the user is interested the user will redirect to the online transaction page
after selecting the service then if the user have the transactional id and password they
can login and pay the amount to the service provider account by online transfer method.
Service module:
In this module the admin will add the new services to view for the user .Then
the user will search the services that are available and select the required service and
then move to the transaction page to pay the money for activation of the service
Transaction module:
In transaction module the user will get redirect to this page after the selection of
the service that they want for online payment. In this transaction module first the user
will apply for the loan for buying the service and the bank admin should approve the
loan after successfully verifying the details of the user once the bank approved the loan
the amount will automatically credit to the user account in his account number. Then
the user can directly transfer the amount to the service provider account.
Cloud module:
33
In this module if once the user transfer the amount then the user will get
redirect to the cloud service creation page .here in cloud service creation page we have
to create our username and give the email id to get the activation code once you get the
activation code it will redirect to cloud login page. In this cloud login we can save all
the files necessary and download the files that are uploaded by
username.
Admin module:
In admin module the admin will add the services that are launched
newly to view in the user side. admin can check directly his bank account details after
login. In admin module we will have all the user details .
34
TABLE DESIGN
Admin Menu:
35
36
37
38
Rgister:
39
40
Service Provider:
41
42
Servie provider Register:
43
DATA FLOW DIAGRAM
44
SAMPLE CODING
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>TRANSACTION BEHAVIOUR VERIFICATION IN BUSINESS PROCESS
AS A SERVICE CONFIGURATION</title>
<meta name="description" content="website description" />
<meta name="keywords" content="website keywords, website keywords" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!-- modernizr enables HTML5 elements and feature detects -->
<script type="text/javascript" src="js/modernizr-1.5.min.js"></script>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="main">
<header>
<div id="logo"><h1>_<a href="#"></a></h1></div>
<nav>
<ul class="lavaLampWithImage" id="lava_menu">
<li class="current"><a href="home.aspx">Home</a></li>
<li><a href="admin.aspx">Admin</a></li>
<li><a href="btbv.aspx">BTBV</a></li>
<li><a href="user.aspx">User</a></li>
<li><a href="servicepro.aspx">Service Provider</a></li>
</ul>
</nav>
</header>
<div id="site_content">
<div id="sidebar_container">
<div class="gallery">
<ul class="images">
<li class="show"><img width="450" height="450" src="images/aa.jpg"
alt="photo_one" /></li>
<!-- <li><img width="450" height="450" src="aa.jpg" alt="photo_two" /></li>--
>
</ul>
</div>
45
</div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<p>
<br />
</p>
<p>
<asp:Label ID="Label1" runat="server" Font-Size="X-Large"
Text="TRANSACTION BEHAVIOUR VERIFICATION IN BUSINESS
PROCESS AS A SERVICE CONFIGURATION"></asp:Label>
</p>
<p>
</p>
<p>
</p>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
}
protected void Button1_Click(object sender, EventArgs e)
{
}
else
{
46
Response.Write("<script>alert('enter correct username and
password')</script>");
}
}
Admin Menu:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
47
Side Menu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
48
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox9.Text = "";
TextBox10.Text = "";
TextBox11.Text = "";
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.IO;
49
+ TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" +
DropDownList1.Text + "','" + TextBox8.Text + "','" + TextBox9.Text + "')", con);
cmd.ExecuteNonQuery();
con.Close();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("adminmenu.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox2.Text = "";
TextBox4.Text = "";
TextBox5.Text="";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";
TextBox11.Text = "";
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.IO;
public partial class ad3 : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(@"Data
Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\we\Documents\Visual Studio
2010\WebSites\WebSite5\App_Data\Database.mdf;Integrated Security=True;User
Instance=True");
protected void Page_Load(object sender, EventArgs e)
{
con.Open();
SqlCommand com = new SqlCommand("select max(id)from ad1",con);
string a = com.ExecuteScalar().ToString();
int b = Convert.ToInt32(a) + 1;
TextBox2.Text = b.ToString();
con.Close();
50
}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
string fn = Path.GetFileName(FileUpload1.PostedFile.FileName);
FileUpload1.SaveAs(Server.MapPath("upload//" + fn));
SqlCommand cmd = new SqlCommand("insert in to ad3(
productname,productimage,productprice,productmanufacture,productuploder,rank)valu
es('" + TextBox2.Text + "','upload/" + fn +
"','"+TextBox4.Text+"','"+TextBox5.Text+"','"+TextBox6.Text+"','"+TextBox7.Text+"'
)", con);
cmd.ExecuteNonQuery();
con.Close();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("adminmenu.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
51
protected void Page_Load(object sender, EventArgs e)
{
con.Open();
SqlCommand com = new SqlCommand("select max(id)from ad1",con);
string a = com.ExecuteScalar().ToString();
int b = Convert.ToInt32(a) + 1;
TextBox1.Text = b.ToString();
con.Close();
}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd=new SqlCommand("insert into
(username,productname,requestdate,responsedate,responsestatus)values('"+TextBox2.T
ext+"','"+TextBox3.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"','"+TextBox6.Te
xt+"')",con);
cmd.ExecuteNonQuery();
con.Close();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("adminmenu.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
}
}
BTBV Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
52
}
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "btbv" && TextBox2.Text == "btbv")
{
Response.Redirect("btbvmenu.aspx");
}
else
{
Response.Write("<script>alert('Enter Correct Username Password')</script>)");
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System;
53
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd=new SqlCommand("insert into
(username,productname,requestdate,responsedate,responsestatus)values('"+TextBox2.T
ext+"','"+TextBox3.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"','"+TextBox6.Te
xt+"')",con);
cmd.ExecuteNonQuery();
con.Close();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("adminmenu.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
}
}
54
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd=new SqlCommand("insert into
(username,productname,requestdate,responsedate,responsestatus)values('"+TextBox2.T
ext+"','"+TextBox3.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"','"+TextBox6.Te
xt+"')",con);
cmd.ExecuteNonQuery();
con.Close();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("adminmenu.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
55
}
}
User Login
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("regiser.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("usermenu.aspx");
con.Open();
SqlCommand cmd = new SqlCommand("select username,password from reg
where username='" + TextBox1.Text + "' and password='" + TextBox2.Text + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Response.Write("<script>alert (' ok')</script>");
}
else
{
// Response.Write("<script>alert ('Enter Correct
Username&password')</script>");
Label4.Text = "Incorrect Username password";
}
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
56
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
}
}
User Menu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
}
protected void Button1_Click(object sender, EventArgs e)
{
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
}
protected void LinkButton3_Click(object sender, EventArgs e)
{
Response.Redirect("u2.aspx");
}
protected void LinkButton6_Click(object sender, EventArgs e)
{
Response.Redirect("u3.aspx");
}
protected void LinkButton8_Click(object sender, EventArgs e)
{
Response.Redirect("user.aspx");
57
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
}
protected void LinkButton7_Click(object sender, EventArgs e)
{
Response.Redirect("onlineac.aspx");
}
protected void LinkButton8_Click(object sender, EventArgs e)
{
Response.Redirect("viewac.aspx");
}
protected void LinkButton9_Click(object sender, EventArgs e)
{
Response.Redirect("Deposite.aspx");
}
protected void LinkButton10_Click(object sender, EventArgs e)
{
Response.Redirect("user.aspx");
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.IO;
58
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("servicepro.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
string fn = Path.GetFileName(FileUpload1.PostedFile.FileName);
FileUpload1.SaveAs(Server.MapPath("upload//" + fn));
//string filepath = Request.PhysicalApplicationPath + "upload//" +
System.IO.Path.GetFileName(FileUpload1.FileName);
con.Open();
SqlCommand cmd = new SqlCommand("insert into
reg(username,password,emailid,mobileno,address,dob,gender,pincode,location,choos
efile)values('" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text
+ "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','"
+ DropDownList1.Text + "','" + TextBox9.Text + "','" + TextBox10.Text +
"','upload/"+fn+"')", con);
cmd.ExecuteNonQuery();
con.Close();
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
DropDownList1.Text = "";
TextBox9.Text = "";
TextBox10.Text = "";
}
}
59
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("regiser.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("btbvmenu.aspx");
con.Open();
SqlCommand cmd = new SqlCommand("select username,password from reg
where username='" + TextBox1.Text + "' and password='" + TextBox2.Text + "'", con);
// string ss = cmd.ExecuteScalar().ToString();
// if (ss != "0")
// {
// Response.Write("<script>alert (' ok')</script>");
// }
// else
// Response.Write("<script>alert ('Enter Correct
Username&password')</script>");
//}
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Response.Write("<script>alert (' ok')</script>");
}
else
{
// Response.Write("<script>alert ('Enter Correct
Username&password')</script>");
Label4.Text = "Incorrect Username password";
}
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text= "";
}
}
using System.Collections.Generic;
60
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.IO;
}
protected void Button1_Click(object sender, EventArgs e)
{
//con.Open();
//string fn = Path.GetFileName(FileUpload1.PostedFile.FileName);
//FileUpload1.SaveAs(Server.MapPath("upload//" + fn));
}
protected void Button1_Click1(object sender, EventArgs e)
{
con.Open();
string fn = Path.GetFileName(FileUpload1.PostedFile.FileName);
FileUpload1.SaveAs(Server.MapPath("upload//" + fn));
}
}
61
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("servicepro.aspx");
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
62
cmd.ExecuteNonQuery();
con.Close();
}
}
Master Page 2:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs"
Inherits="MasterPage2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>TRANSACTION BEHAVIOUR VERIFICATION IN BUSINESS PROCESS AS A SERVICE
CONFIGURATION</title>
<meta name="description" content="website description" />
<meta name="keywords" content="website keywords, website keywords" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!-- modernizr enables HTML5 elements and feature detects -->
<script type="text/javascript" src="js/modernizr-1.5.min.js"></script>
</head>
<p>
<br />
<asp:Label ID="Label2" runat="server"
63
Text="TRANSACTION BEHAVIOUR VERIFICATION IN BUSINESS PROCESS
AS A SERVICE CONFIGURATION"></asp:Label>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
64
Screen Shot:
Home Page
65
Admin Login:
66
Admin Menu:
67
BTBV:
68
BTBV Menu:
69
User Login:
70
Service Provider:
71
Service Provider:
72
Service Provider Register :
73
CONCLUSION
The increase in cloud computing adaptations in recent years has produced the concept
of Business Process as a Service (BPaaS), whereby service providers are able to offer
common or proven business processes to clients looking to automate and/or outsource
parts of their operations. We address the problem of managing BPaaS configuration in
a way to ensure that the resulting service i) is valid with respect to configuration
constraints of the provider, and ii) satisfies transactional requirements drawn from the
business rules of the client. Our approach utilizes several modeling techniques,
including BPMN for business process structure, state charts for transactional state, and
feature models for configuration constraints. models, we develop a BPaaS
configuration process that applies Binary Decision Diagram (BDD) analysis and model
checking. BDD analysis ensures that BPaaS features selected during configuration do
not violate the domain constraints of the service provider, while model checking
verifies the configured BPaaS against transactional requirements provided by the client.
74
BIBLIOGRAPHY
Good Teachers are worth more than thousand books, we have them in Our Department.
3. Practical .Net2 and C#2: Harness the Platform, the Language, and the
Framework by Patrick Smacchia.
15. K. C.-C. Chang, B. He, C. Li, M. Patil, and Z. Zhang. Structured databases
on the web: Observations and implications. SIGMOD Record, 33(3):61–70,
2004.
SITES REFERRED:
http://www.sourcefordgde.com
http://www.networkcomputing.com/
http://www.ieee.org
http://www.emule-project.net/
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91