Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 23

INTRODUCTION

About Tripura Institute Of Technology


Tripura Institute of Technology(TIT), Since its establishment, the Institute has played a vital role in providing the technical manpower The journey in the field of Science and Technology started in the decades of sixties eventually fathomed through the exultation of upgrading Polytechnic Institute, Narsingarh into a degree Institute named Tripura Institute of Technology from 1st June 2007. The Institute offers Bachelor's Diploma courses in 8 disciplines and Degree courses in 5 disciplines of Engineering. The Institute admits students to B.E. courses through the Tripura Board of Joint Entrance Examination (TBJEE) conducted at various centers at Tripura

Institute-Industry Interaction:
Human resources Development and Training: The TIT attempts to develop skills, entrepreneurial capabilities and the awareness and help in upgrading of technology and expertise. The dissemination of knowledge emerging and expertise in the area of high and futuristic technology areas is attained by arranging Seminars, Workshops, Conference and Short Terms Intensive Courses. Specific area or industry related courses & training programmers are also organized on request

Scope Of The Project


The advance smart city project is useful for the people who want to know about a particular smart city.The real benefit for the user is to discuss how their
technological skills and solutions could be welded into a city asset. The advantage of 1

this project is that the user can view the details of the city,the smart way of every day life,transportation,education,social life etc. The whole process of knowing each part of the smart city,its activity is very easy. The main advantage of this project is that it is very much user friendly. In the sign in mode of the project the user can store his/her details.

DESCRIPTION
What is ADVANCE SMART CITY?
Advance smart city software attempts to integrate all parts and functions across a city onto a single computer system that can serve all those different parts' particular needs. Urban tendencies to develop lasting and sustainable urban structures that offer residents a high quality of life, greater protection of the environment and maintain constant and welfare reliable supply for the city needs. Smart City Agartala is a planned township in Tripura in
India. Smart City seeks to build a large network of knowledge-based industry townships across the world. SmartCity hopes to bring number of opportunities for investors, businessmen and job seekers in India, especially in Tripura. Urban performance currently depends not only on the

city's endowment of hard infrastructure ('physical capital'), but also, and increasingly so, on the availability and quality of knowledge communication and social infrastructure ('intellectual and social capital'). The latter form of capital is decisive for urban competitiveness. It is against this background that the concept of the "smart city" has been introduced as a strategic device to encompass modern urban production factors in a common framework and to highlight the growing importance of ICT environmental capital in profiling the competitiveness of cities. The significance of these two assets -

social and environmental capital - itself goes a long way to distinguish smart cities from their more technology-laden counterparts, drawing a clear line between them and what goes under the name of either digital or intelligent cities. Smart cities has also been used as a marketing concept by companies and by cities.

OVERVIEW

Smart cities can be identified (and ranked) along six main axes or dimensions.These axes are: a smart economy; smart mobility; a smart environment; smart people; smart living; and, finally, smart governance. These six axes connect with traditional regional and neoclassical theories of urban growth and development. In particular, the axes are based respectively - on theories of regional competitiveness, transport and ICT economics, natural resources, human and social capital, quality of life, and participation of citizens in the governance of cities. A city can be defined as smart when investments in human and social capital and traditional (transport) and modern (ICT) communication infrastructure fuel sustainable economic development and a high quality of life, with a wise management of natural resources, through participatory governance.

TECHNOLOGY USED:
The strength of any project depends upon the technology on which the project is based J2EE is the latest technology, which is in use nowadays

and has proved to be the most reliable development framework. The technologies we have used in the development of the project are: * J2EE * ASP.NET * SQL Server

Why to use .NET?


The .NET Framework is a new computing platform that simplifies application development in the highly distributed environment of the Internet. The .NET Framework is designed to fulfill the following objectives: * To provide a consistent object-oriented programming environment

whether objects code is stored and executed locally, executed locally but Internet-distributed, or executed remotely. * To provide a code-execution environment that the performance

problems of scripted or interpreted environments * To make the developer experience consistent across widely varying

types of applications, such as windows-based applications and Web-based applications. * To build all communication on industry standards to ensure that code

based on the .NET Framework can integrate with any other code.

The .NET Framework has two main components: The common language runtime and the .NET Framework class library
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: * Console applications. * Scripted or hosted applications.
4

* Windows GUI applications. * ASP.NET applications. * XML Web services. * Windows services.

OTHER TECHNOLOGIES
SQL SERVER: Microsoft SQL Server 2000 is a family of products that meet the data storage requirements of the largest processing systems and commercial Web sites, yet at the same time can provide easy-to-data storage services to an individual or small business. Microsoft SQL Server TM 2000 features include: Internet Integration. Scalability and Availability. Enterprise-Level Database Features. The SQL Server 2000 relational database engine supports the features required to support demanding data processing environments. Replication allows you to also maintain multiple copies of data, while ensuring that the separate copies remain synchronized.

SQL Query Analyzer


SQL Query Analyzer is a Microsoft Win32 application that is an excellent tool for the ad hoc, interactive execution of Transact-SQL statements and scripts. To use SQL Query Analyzer, users must understand Transact-SQL.

Advantages Advantages of .NET

ASP.NET is the latest Microsoft programming framework that allows for the rapid development of powerful web applications: Faster web applications, No need of third party tool, Deployment is Easy, Memory leaks and crashes protection, multiple language support b) Advantages of SQL Server SQL is widely used and accepted in the high-performance database industry. Its current version has recently been compared to Oracle, the database leader, in terms of overall market acceptance Microsoft supports SQL. Clients can expect world-class technical support and the largest single collection of product literature and support documentation on the Internet. SQL is extendible, expandable and multiprocessor compliant. Data Integrity; Performance; Network Traffic; Scalability

Software and Hardware Requirements


Software requirements:
* Operating System: Windows 2000 and above * Development Environment: Microsoft Development Environment -2002 version 7.0.9466, Microsoft .NET Framework 1.0 version 1.0.3705 * Database Server: Microsoft SQL Server Service Manager version 8.,SQL Query Analyzer * Languages used: C#.NET;ASP.NET * Word Processor: Microsoft Word 2007

* Image Processing Tool: Adobe Photoshop CS4

* Web Browser: Microsoft Internet Explorer version 6.0 Hardware Requirements * Microprocessor: X86 Family 6 Model 8 Stepping 6 GenuineIntel~930 MHZ * RAM :128 MB * Hard Disk Space Required: 100 MB * Hard Disk Drive: 40 GB * Visual Display Unit: HCL-56V * CD ROM: Samsung CD ROM sc-152c

SDLC
INTRODUCTION: Information is the requirement of every organization. A system is a set of interrelated elements that operate together to achieve an objective. The general model of system has an inputs, process and output. A system can have many inputs and many outputs. Most talk about system is information system. It receives the data and collects the information and instructions, process the data according to the instructions and outputs the result which itself has some information. Requirement Analysis: System analysis is conducted with the following objectives in mind: . Identify the customers need, . Perform economic and technical analysis,

. Evaluate the system concept for feasibility, Feasibility study: Feasibility and risk analysis are related to each other. If project risk is great, the feasibility of producing quality software is reduced. However, we confine our attention to: Technical Feasibility. * Economical Feasibility. * Operational feasibility.

SOFTWARE REQUIREMENT SPECIFICATION An SRS document specifies the required behavior the system in terms of input data, required processing, output data, operational scenarios and interfaces and the attributes of a system including performance, security, maintainability, reliability, audit ability, availability and safety requirements and design constraints. Alias: user requirement specification, functional specification. Risk Analysis: These steps are performed in risk analysis for designing the system because: The future of the system is our concern. We identifying what risks might create problem in the life of the system. We also identified that what change in the user requirements, technologies, hardware and all other entries connected to the system will effects the system. Several activities were carried out during Design. They were:
Database design and Program design

10

Login Form

Codes
using using using using using using using using using using using System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

public partial class login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Login1_Authenticate1(object sender, AuthenticateEventArgs e) { SqlConnection con = new SqlConnection("DataSource=.\\SQLEXPRESS; AttachDbFilename=" + Server.MapPath(" App_Data\\Database.mdf") + ";Integrated Security=True;Connect Timeout=30;User Instance=True"); DataSet ds = new DataSet();

11

string s; s = "SELECT email,type,name ,pass FROM account WHERE email='" + Login1.UserName + "'"; SqlDataAdapter da = new SqlDataAdapter(s, con); da.Fill(ds); if (ds.Tables[0].Rows.Count > 0) { if (Convert.ToString(ds.Tables[0].Rows[0].ItemArray[3]) == Convert.ToString(Login1.Password)) { Session.Add("username", Convert.ToString(ds.Tables[0].Rows[0].ItemArray[0])); Session.Add("usertype", Convert.ToString(ds.Tables[0].Rows[0].ItemArray[1])); if (Convert.ToString(ds.Tables[0].Rows[0].ItemArray[1])== "1") { Response.Redirect("~/administrator.aspx"); } else if (Convert.ToString(ds.Tables[0].Rows[0].ItemArray[1]) == "2") { Response.Redirect("~/index.aspx"); }// } else { Login1.FailureText = "loginfailed"; } } } protected void LinkButton1_Click1(object sender, EventArgs e) { Response.Redirect("createaccount.aspx"); } }

Create account Form

12

using using using using using using using using using using using

System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

Codes

public partial class createaccount : System.Web.UI.Page { SqlConnection con; DataSet ds; SqlDataAdapter da; string s; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=" + Server.MapPath(" App_Data\\Database.mdf") + ";Integrated Security=True;Connect Timeout=30;User Instance=True"); } protected void Button2_Click(object sender, EventArgs e) { xx.Text = ""; s = ""; if (TextBox1.Text == "") { s = s + "enter name, "; } if (Textemail.Text == "") { s = s + "enter email, "; }

13

if (Textpass.Text == "") { s = s + "enter Password, "; } if (Textrepass.Text == "") { s = s + "re-enter Password, "; } if (Textpass.Text != Textrepass.Text) { s = s + "Miss-match Passwords, "; } if (Textaddr.Text == " ") { s = s + "enter address, "; } if (Textaddr.Text == " ") { s = s + "enter address, "; } if (DropDownList1.SelectedValue == "0") { s = s + "enter location, "; } if (Textph.Text == " ") { s = s + "enter phone no, "; } if (s == "") { ds = new DataSet(); s = "SELECT * FROM account WHERE email='" + Textemail.Text da = new SqlDataAdapter(s, con); da.Fill(ds); if (ds.Tables[0].Rows.Count > 0) { xx.Text = "NAME is not avail....."; } else { s = "INSERT INTO account(name,email,pass,address,location,ph_no,type,re_pass) VALUES ('" + TextBox1.Text + "','" + Textemail.Text + "','" + Textpass.Text + "','" + Textaddr.Text + "','" + DropDownList1.Text + "','" + Textph.Text + "','2','" + Textrepass.Text + "')"; con.Open(); SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); con.Close(); Session.Add("username", TextBox1.Text); Session.Add("usertype", "2");// Response.Redirect("~/login.aspx");// } } else { xx.Text = s; }

+ "'";

} protected void Button1_Click(object sender, EventArgs e) { if (Textemail.Text == "") { kk.Text = "Enter user id."; } else { ds = new DataSet(); s = "SELECT * FROM account WHERE email='" + Textemail.Text da = new SqlDataAdapter(s, con);

+ "'";

14

da.Fill(ds); if (ds.Tables[0].Rows.Count > 0) { kk.Text = "email not avail....."; } else { kk.Text = "email avail....."; } } } }

15

Home Form

Camera list form

16

Camera Details Forms

Shopping Cart form


17

using using using using using using using using using using using

System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

Codes

public partial class shoppingcart : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["username"] != null) { String s; s = Convert.ToString(Session["username"]); if (s != "") { SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=" + Server.MapPath("App_Data\\Database.mdf") + ";Integrated Security=True;Connect Timeout=30;User Instance=True"); DataSet ds = new DataSet(); string q; q = "SELECT * FROM [user] WHERE (userid = '" + s + "')"; SqlDataAdapter da = new SqlDataAdapter(q, con); da.Fill(ds);

18

GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } } protected void Button1_Click1(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=" + Server.MapPath("App_Data\\Database.mdf") + ";Integrated Security=True;Connect Timeout=30;User Instance=True"); string q = "update [user] set orderstatus = 1 where userid = '" + Convert.ToString(Session["username"]) + "'"; SqlCommand cmd = new SqlCommand(q, con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); Response.Redirect("~/shoppinglist.aspx"); } protected void GridView1_SelectedIndexChanged1(object sender, EventArgs e) { } protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { } protected void Logout_Click(object sender, EventArgs e) { Response.Redirect("logout.aspx"); } } }

Shopping list Form

19

Codes
using using using using using using using using using using using System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

public partial class shoppinglist : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string q; q = "SELECT camera.name, [user].qty, camera.price, CONVERT(int, camera.price) * CONVERT(int, [user].qty) AS Total FROM [user] INNER JOIN camera ON [user].id = camera.id WHERE ([user].orderstatus = 1) AND ([user].userid = '" + Convert.ToString(Session["username"]) + "')"; SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=" + Server.MapPath("App_Data\\Database.mdf") + ";Integrated Security=True;Connect Timeout=30;User Instance=True"); DataSet ds = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(q, con); da.Fill(ds); if (ds.Tables[0].Rows.Count > 0)

20

} q = "SELECT sum(CONVERT(int, camera.price) * CONVERT(int, [user].qty)) AS GTotal FROM [user] INNER JOIN camera ON [user].id = camera.id WHERE ([user].orderstatus = 1) AND ([user].userid = '" + Convert.ToString(Session["username"]) + "')"; da.Dispose(); da = new SqlDataAdapter(q, con); da.Fill(ds,"a"); if (ds.Tables["a"].Rows.Count > 0) { Label1.Text = "TOTAL AMOUNT: " + Convert.ToString(ds.Tables["a"].Rows[0].ItemArray[0]); } } }

GridView1.DataSource = ds.Tables[0]; GridView1.DataBind();

Thanks Form

21

Contact us Form

Logout Form

22

System Testing
System Testing is very important issue in system development. During system testing the system is used experimentally to ensure that the system does not fail and will run according to its specification producing desired outputs as per the user expected from it. In many organization persons other than those who have written it perform testing, so that the software will be more reliable. Following tests can carry out the testing of system: . White Box Testing. . Black Box Testing.

System Implementation And Maintenance


Implementation: After the system has been coded and tested the next our next aim and phase was to successfully implement it at the organization. Special care has to be taken for implementation for the software. To implement the Project Online Shopping System first it only requires softwares installed on system mentions in software requirement specification. Implementation means install the software to the destination and make it to work there. Implementation is an ongoing process and can be achieved by one of the following methods:

Maintenance: Maintenance is the process of eliminating errors in the working system during its working life and to tune the system to any variation in working environment. By proper maintenance we can continue to bring the system to new standards. As our project is error free and produce no bugs for valid data, but I use feature to detect the errors and produce error messages understand by the experienced user and nonprogrammer user.
23

You might also like