You are on page 1of 118

BUILDING COST ESTIMATOR

A project report submitted to Mahatma Gandhi University, Kottayam in


partial fulfillment of the requirements of the award of degree of

BACHELOR OF COMPUTER APPLICATION


Done by
SARUN.A.K.
(Reg.no:11157312)

Under the guidance of


Mrs. ANJANA VIJAYAN

DEPARTMENT OF COMPUTER SCIENCE

ST.THOMAS ARTS & SCIENCE COLLEGE


(Affiliated to Mahatma Gandhi University, Kottayam)
Puthencruz-682308
March 2014

ST.THOMAS ARTS & SCIENCE COLLEGE


PUTHENCRUZ
(Affiliated to Mahatma Gandhi University, Kottayam)

CERTIFICAT

It is hereby certified that this is a bona fide project work done by Sarun.A.K.
(Reg.No: 11157312) in partial fulfillment of the requirements for the award of the sixth
semester of Bachelor of Computer Application of St. Thomas Arts And Science College
Puthencruz of Mahatma Gandhi University, Kottayam.

Mrs. ANJANA VIJAYAN


KURIAKOSE
(Project Guide)
Department)

Prof. V.K. YOYAKKI


(Principal)

Mrs. RIBY
(Head of the

Submitted for the viva-voce examination held on

INTERNAL EXAMINER

EXTERNAL
EXAMINER

DECLARATION

I hereby declare that the project entitled Building Cost Estimatror


is a bona fide work done by me under the guidance of

Mrs. ANJANA

VIJAYAN, Asst.professor, Dept. of Computer Science, St. Thomas Arts &

Science College, Puthencruz, in partial fulfillment of the requirements for


the award of the degree Bachelor of Computer Applications of St.
Thomas Arts And Science College, Puthencruz of Mahatma Gandhi
University, Kottayam.

SARUN
A.K.

Place: Puthencruz
Date:

ACKNOWLEDGEMENT

First and for most I thank god almighty and to my parents for the success of
this project. I owe a sincere gratitude and heart full thanks to everyone who
shared their precious time and knowledge for the successful completion of
my project.
I record my sincere gratitude to Prof. V.K.Yoyakki, our respected
Principal, for providing all necessary facilities for successfully carrying out
this project.
I express my sincere thanks to Mrs. ANJANA VIJAYAN, my guide and
motivator throughout the work of my project.
I profusely thank other Asst.professors in the department and all other
members of the staff of St. Thomas Arts & Science College, Puthencruz, for
their guidance and inspiration throughout my course of study.
I owe my thanks to my friends and all others who have directly or
indirectly helped me in the successful completion of this project. No words
can express my humble gratitude to my beloved parents and relatives who
have been guiding me in all walks of my journey.

Sarun A.K

SYNOPSIS
Building Cost Estimator is an online service for accurately forecasting the scope,
cost, and duration of a building to be constructed. It develops the cost
information that customer needs to make a bid for a contract in construction.
Modules in this project:

1. Manipulation of Product Details


Administrator can add the details of the product. He can also update the
existing
entry and delete the details.
2. Manipulation of Building Area Details
Administrator can add the details of building area .He can also update the
existing entry and delete the details.
3. Manipulation of Home Plans Details
Administrator can add home plans details. He can also update the existing
entry
and delete the details.
4. View Item Details
Administrator can view item details. He can view the items which are more
frequently used for selection.

5. Selection of building Products


He can select from the various building product models available. It develops the cost
information that customer need to make a bid for a contract in construction. The user
can forecast the construction cost and change the selections accordingly to reach at a
rate at which the user expects.

6. Searching Home Plans


He can search home plans using an interactive search method. Searching is based on no.
of bedrooms, bathrooms, total square feet etc.

7. View Construction Cost


He can view the total cost of construction. It helps in estimating the Basic Material
Costs, Construction Activities, Labour Charges and period of construction which are
necessary for the construction activity.

8. Send Feedback
He can send feedback regarding product models or home plans to the administrator.

CONTENTS

CONTENTS
PAGE NO

1. INTRODUCTION

1.1. About the organization

1.2. About the project

2. SYSTEM ANALYSIS AND DESIGN


2.1. System study

2.1.1. Existing system

2.1.2. Proposed system

2.1.3. Feasibility study

10

3. SOFTWARE AND HARDWARE SPECIFICATION


3.1. Operating system

13

3.2. Front end

15

3.3. Back end

17

4. SYSTEM DESIGN

20

4.1. Output design

20

4.2. Input design

21

4.3. Process design

22

4.3.1. Data flow diagram


4.4. Table design

23
31

5. SYSTEM TESTING AND IMPLEMENTATION


5.1. System testing

42

5.2. System Implementation

44

5.3. Maintenance

45

6. FUTURE ENHANCEMENT

47

7. CONCLUSION

49

8. BIBLIOGRAPHY

51

9. APPENDIX
9.1. Screen shots

53

9.2. Source code

73

Bachelor of Computer Application

INTRODUCTION

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

1. INTRODUCTION
Building cost estimator is an online service for accurately forecasting the scope,
cost, and duration of a building to be constructed. It develops the cost
information that customer needs to make a bid for a contract in construction.

It helps in estimating the Basic Material Costs, Construction Activities, Labor


Charges and period of construction which are necessary for the construction
activity. It contains an interactive search option using which users can search for
the required home plans which helps the user to view home plans of his/her
choice. It also allows the administrator to add new home plans into it.

Building cost estimator banks on the simplicity and effectiveness. The user can
fix a contract after the estimation of the cost of construction. The site hosts
information about the building products stored in its database. It provides
information regarding the building material cost, image etc of the corresponding
product and also has the provision for the selection of variety of building product
models available. Thereby the user can forecast the construction cost and change
the selections accordingly to reach at a rate at which the user expects. The
progress of the work is also updated and modification can also be made with
respect to users need.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

1.1 ABOUT THE ORGANIZATION

Building cost estimator banks on the simplicity and effectiveness. The user can fix a
contract after the estimation of the cost of construction. The site hosts information about
the building products stored in its database. It provides information regarding the
building material cost, image etc of the corresponding product and also has the provision
for the selection of variety of building product models available. Thereby the user can
forecast the construction cost and change the selections accordingly to reach at a rate at
which the user expects. The progress of the work is also updated and modification can
also be made with respect to users need.
It facilitates in tracking actual costs as the project develops. The web page
contains an option which helps users to communicate with the administrator about any
complaints or any other feedbacks. Building cost estimator is flexible enough to make
changes as per your requirements, thus creating software customized for your individual
needs.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

1.2 ABOUT THE PROJECT


This age is the era of computer evolution. The widespread availability of computers has
made all persons, even a layman a computer literate. Computers are affecting every
sphere of human activities and bring about many changes in traditional style of personal
life and office works. In highly developed information society in the 21st century, it may
be expected that any one access and use easily information on the global scale because
of the emergence and dissemination of computerized Information Technologies.
Information Technology has created an interactive and expensive quality to information
thus contributing to information becoming a primary commodity. The impact of
information technology in communication process and connections has challenged basic
assumptions about organization structure, working relationship and the nature and
quality of service.

Building cost estimator is an online service for accurately forecasting the scope, cost,
and duration of a building to be constructed. It develops the cost information that
customer needs to make a bid for a contract in construction.
It helps in estimating the Basic Material Costs, Construction Activities, Labour Charges
and period of construction which are necessary for the construction activity. It contains
an interactive search option using which users can search for the required home plans
which helps the user to view home plans of his/her choice. It also allows the
administrator to add new home plans into it.

Building cost estimator banks on the simplicity and effectiveness. The user can fix a
contract after the estimation of the cost of construction. The site hosts information about
the building products stored in its database. It provides information regarding the
building material cost, image etc of the corresponding product and also has the provision
for the selection of variety of building product models available. Thereby the user can
forecast the construction cost and change the selections accordingly to reach at a rate at
which the user expects. The progress of the work is also updated and modification can
also be made with respect to users need.It facilitates in tracking actual costs as the
project develops. The web page contains an option which helps users to communicate
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

with the administrator about any complaints or any other feedbacks Building cost

estimator is flexible enough to make changes as per your requirements, thus creating
software customized for your individual needs.

OBJECTIVES OF THE SYSTEM


The main objectives of the proposed system are
It should be able to convey its purpose very clearly to the user.
The navigation through various parts of the web document should be easy and
follows standard web practices.
Faster information retrieval and storage.
The system should be user friendly.
It should facilitate all type of transactions. It should be highly reliable and secure.
The system must be easy to enhance. The system should possess high operational
speed.
The system should be able to reach each and every individual on the network
providing necessary information about the building products.
The system must be less error prone.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

SYSTEM ANALYSIS
AND DESIGN

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

2. SYSTEM ANALYSIS AND DESIGN


2.1 SYSTEM STUDY
Analysis is a detailed study of the various operations performed by a system and
their relationships within and outside the system. One aspect of analysis defining the
boundaries of the system and determining whether or not a candidate should consider
other related systems. During analysis, data is collected from the available files, decision
points, and transactions handled by the present system

2.1.1 Existing System


During the analysis phase the existing system was studied. As part of the analysis, the
documents of building products, paint companies, building materials were collected.
These were used in later stages to design the computerized forms using the existing
system and the scope of the new system was determined. The deliverable from this stage
was documentation on the existing system.
The existing system does not allow the users to register online and they have to directly
contact different companies to enquire about the details of different building products.
The existing system does not allow the users to accurately forecast the cost of building
to be constructed. There is no option to calculate the total building material costs. The
existing system involves the following activities:

The person must be physically present.


The existing system has no chance to give an estimate about the building
materials for providing better service to the clients.
There is no option to view home plans of their choice.
There is no option to communicate with the administrator about any complaints or
any other feedbacks.
Since records are kept on paper registers, ageing is also a problem.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

Lack of accuracy
Lot of time consumption
The greatest limitation to existing system is that the service to the customers is
limited.
System is complicated.

Limitations of Existing system:


The person must be physically present.
The existing system has no chance to give an estimate about the building
materials for providing better service to the clients.
There is no option to view home plans of their choice.
There is no option to communicate with the administrator about any complaints or
any other feedbacks.
Since records are kept on paper registers, ageing is also a problem.
Lack of accuracy
Lot of time consumption
The greatest limitation to existing system is that the service to the Lcustomers is
limited.
System is complicated.

2.1.2 Proposed system


Site Estimator is an online service for accurately forecasting the scope, cost, and
duration of a building to be constructed. It develops the cost information that customer
needs to make a bid for a contract in construction.
The primary aid of new system is to speed up the data handling process. The preparation
of all documentations and registration process takes less time since it is done
automatically. The system helps to register the users online and the administrator to
view their details.
Reports are generated by the system that can be used by the administrator to plan the
enhancements of the system. Since the proposed system is developed in the latest
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

platform .net it is flexible enough to undergo future extensions. The system is user
friendly, and has online validations, look-up information and display of appropriate
error message. Since the system is available online it is accessible from anywhere.

It helps in estimating the Basic Material Costs, Construction Activities, Labor Charges
and period of construction which are necessary for the construction activity. It contains
an interactive search option using which users can search for the required home plans
which helps the user to view home plans of his/her choice. It also allows the
administrator to add new home plans into it.
Site Estimator banks on the simplicity and effectiveness. The user can fix a
contract after the estimation of the cost of construction. The site hosts information about
the building products stored in its database. It has the provision for the selection of
variety of building product models available. Thereby the user can forecast the
construction cost and change the selections accordingly to reach at a rate at which the
user expects. The progress of the work is also updated and modification can also be
made with respect to users need.
It facilitates in tracking actual costs as the project develops. The web page
contains an option which helps users to communicate with the administrator about any
complaints or any other feedbacks. Site Estimator is flexible enough to make changes
as per your requirements, thus creating software customized for your individual needs.
Site Estimator will make client interaction significantly more insightful.
In order to overcome the drawbacks in the existing system, database is created
which is integrated, reliable, consistent, flexible and secure. The features of the
proposed database are:
Menu driven and user friendly.
It assists in quick deletion of errors by issuing appropriate error messages.
Validity of input data is automatically checked and errors will be immediately
signaled.
Efficient utilization of resources.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

Transaction easier than within shops.


Less human effort.
Greater customer satisfaction.
Faster information retrieval and storage.
It is highly reliable and secure.

2.1.3 Feasibility Study


After the problem is clearly understood and the solutions are proposed, the next step is
to conduct the feasibility study, which is a part of system analyses well as system design
process. The main objective of the study is to determine whether the proposed system is
feasible or not. Manley there are three types of feasibility study to which the proposed
system subjected as described below. Three key considerations are involved in the
feasibility.

Economic feasibility
Technical feasibility
Behavioral feasibility

The proposed system must be evaluated from a technical view point first and of
technical feasibility, their impact on the organization must be accessed. If compatible,
behavioral system can be devised. Then they must be tested for economical feasibility.

Economic feasibility:
Justification of any capital outlay is that it will reduce expenditure, improve the quality
of service of goods, which in turn may be expected to provide increased profits. The
technique of cost benefit analysis is often used as a basis for accessing economic
feasibility.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

Technical feasibility:
The assessment of technical feasibility must be based on an outline design of systems
requirements in terms of inputs, output, files, programs and procedures this can be
qualified in terms of volumes of data, trends, frequency of update, cycles of activity etc,
in order to give an introduction of technical system.

Behavioral feasibility:
People are inherently resisted to change and computers have been known to facilitate
change. Since the new proposed system is nothing to do with the ordinary customers,
the worker resistance to the system is very much less. The users might be scared of job
losses and other problems when a new system is introduced.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

SOFTWARE AND HARDWARE


SPECIFICATION

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

3.1 ABOUT THE OPERATING SYSTEM


OperatingSystem(Windows7)
Windows 7 provides reliability and scalability. Lower your cost of computing with
powerful, flexible management services, and provides the best foundation for running
business applications. The system information is broken into several main categories
and subcategories.
The components category contains information about the Windows 7 system
configuration including multimedia, display, infrared, input, modems, network, ports,
storage, printing, problem devices, drivers, running tasks and software environment.
These options can be used to troubleshoot display, printing, speed and storage issues and
other Windows related issues such as running out of memory or running tasks that are
causing system problems.
The software environment category is used to display the software that is loaded in
your computers memory. This includes any drivers, print jobs, running tasks, loaded
modules, program groups and startup programs. This information is useful for determine
what is being loaded into, and possibly using too much, memory.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

Software specification
Operating System

: Windows 7

Platform

: Visual Studio .NET 2010

Front End

: ASP.NET

Language

: C#

Back End

: MS SQL Server 2008

Hardware specification
Microprocessor

Pentium 4

RAM

256 MB or more

Speed

1.6 GHz

Hard Disk

40 GB

Monitor

15 Color

Key Board

114 Keys

CD Drive

52

Mouse

: Logitech Scroll Mouse

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

3.2 FRONT END


ASP.NET

ASP.NET is a server-side Web application framework designed for Web development to


produce dynamic Web pages. It was developed by Microsoft to allow programmers to
build dynamic web sites, web applications and web services. It was first released in
January 2002 with version 1.0 of the .NET Framework, and is the successor to
Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common
Language Runtime (CLR), allowing programmers to write ASP.NET code using any
supported .NET language. The ASP.NET SOAP extension framework allows ASP.NET
components to process SOAP messages.
ASP.NET Web pages, known officially as Web Forms, are the main building blocks
for application development. Web forms are contained in files with an ".aspx"
extension; these files typically contain static (X) HTML markup, as well as markup
defining server-side Web Controls and User Controls where the developers place all the
rc content for the Web page. Additionally, dynamic code which runs on the server can be
placed in a page within a block <% -- dynamic code -- %>, which is similar to other
Web development technologies such as PHP, JSP, and ASP. With ASP.NET Framework
2.0, Microsoft introduced a new code-behind model which allows static text to remain
on the .aspx page, while dynamic code remains in an aspx.vb or .aspx.cs or .aspx.fs file
(depending on the programming language used).
ASP.NET aims for performance benefits over other script-based technologies
(including classic ASP) by compiling the server-side code to one or more DLL files on
the Web server. This compilation happens automatically the first time a page is
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

requested (which means the developer need not perform a separate compilation step for
pages). This feature provides the ease of development offered by scripting languages
with the performance benefits of a compiled binary. However, the compilation might
cause a noticeable but short delay to the Web user when the newly edited page is first
requested from the Web server, but will not again unless the page requested is updated
further.

The ASPX and other resource files are placed in a virtual host on an Internet
Information Services server (or other compatible ASP.NET servers; see Other
implementations, below). The first time a client requests a page, the .NET Framework
parses and compiles the file(s) into a .NET assembly and sends the response; subsequent
requests are served from the DLL files. By default ASP.NET will compile the entire site
in batches of 1000 files upon first request. If the compilation delay is causing problems,
the batch size or the compilation strategy may be tweaked.
Developers can also choose to pre-compile their "code behind" files before deployment,
using Microsoft Visual Studio, eliminating the need for just-in-time compilation in a
production environment.[citation needed] This also eliminates the need of having the
source code on the Web server. It also supports pre-compile text.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

3.3 BACK END


The system has been developed in Microsoft SQL Server 2008 as back end.

MS SQL Server 2008:


SQL Server 2008 was released on August 6, 2008 and aims to make data
management self-tuning, self organizing, and self maintaining with the development of
SQL Server Always On technologies, to provide near-zero downtime. SQL Server 2008
also includes support for structured and semi-structured data, including digital media
formats for pictures, audio, video and other multimedia data. In current versions, such
multimedia data can be stored as BLOBs (binary large objects), but they are generic bit
streams.Intrinsic awareness of multimedia data will allow specialized functions to be
performed on them. According to Paul Flessner, senior Vice President, Server
Applications, Microsoft Corp., SQL Server 2008 can be a data storage backend for
different varieties of data: XML, email, time/calendar, file, document, spatial, etc as
well as perform search, query, analysis, sharing, and synchronization across all data
types.
Relational database systems are the most important database used in the software
industry today. One of the most outstanding systems is Microsoft SQL Server. SQL
Server is a database management system developed and marked by Microsoft. It runs
exclusively under Windows NT and Windows 95/98.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

The most important aspects of SQL Server are:


SQL Server is easy to use
SQL Server scales from a mobile laptop to symmetric multiprocessor systems
SQL Server provides data warehousing features that until now have only been
available in Oracle and other more expensive DBMS.

A database system is an overall collection of different database software components


and database containing the part viz. Database application programs, front-end
components, Database management systems and Database.
A database system must provide the following features:
A variety of user interfaces
Physical data independence
Logical data independence
Query optimization
Data integrity
Concurrency control
Backup and recovery
Security and authentication

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

When creating a database, the main concept is to know how the database is structured
in SQL.SQL stands for Structured Query Language. It is a language that enables us to
create and operate on relational database, which are sets of related information stored
in tables. Because of its elegance and independence from machine specific, as well as
its supports by the industry leaders in relational database technology, SQL has become
the standard language and will remains as it is for the foreseeable future.
There are two types of SQLs-interactive and embedded. Interactive SQL is used to
operate

directly on a database to produce output for human consumption. Embedded

SQL consists of SQL commands put inside of programs that are mostly written in some
other languages such as COBOL, Pascal, and C etc.

SYSTEM DESIGN
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

4. SYSTEM DESIGN
System designs main aim is to identify the modules that should be in the
system, and the specifications of these modules and how they interact with each
other to produce the desired results. At the end of the system design all the
major data structures, file formats and the major modules in the system and their
specification are decided.

4.1 OUTPUT DESIGN


Efficient and transport output design improves the system relationship with the user and
help him to understand faster. A complicated output design contributes nothing to the
system but leave the user confused. For a successful system it is a must that it maintains
a clear output design. The users of the output its purpose and sequence of details to be
printed are all considered. The output form is system is the justification for its existence.
If the outputs are inadequate in any way the system itself is inadequate. The basic
requirements of content medium and layout for its intended purpose. Hence it is
necessary to design output so that the objectives of system are met in the best possible
manner. The output is in the form of reports.
Output design is a process that in valves designing necessary output in the form of
reports that should be given to the users according to the requirements. While designing
the output, the following steps are to be considered:

Determine what information to be presented to the user.

Arrange the presentation of information in an acceptable format.

Decide how to distribute the output to the intended recipients.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

4.2 INPUT DESIGN


In accurate input data is the most cause of errors in data processing. Errors by
data entry operators can be controlled by input validation. Input design is the process of
converting user-oriented inputs to a computer-based format. Input design is a part of an
overall system design, which makes the system user friendly. The input design is the
link between the information system and users. It comprises developing specifications
and those steps that are necessary to put transaction data into a usable form for
processing data entry. The activity of putting data into the computer for processing can
be achieved by instructing the computer to read data from a written or printed document
or it can occur by having people key data directly in to the system. The design of input
focuses on controlling the amount of inputs required , controlling errors, avoiding delay,
avoiding extra steps and keeping the process simple.
System analyst decides the following input design details:

What data to input.

What medium to use.

How the data should be arranged or coded.

The dialogue to guide the users in providing input.

Methods for performing input validations and steps to follow when error occur. The
input screens are displayed in a way that the user can understand entries very easily.
Proper validation and controlling of input data will reduce the chance of errors. All
major operations are done only after checking the results of confirmation messages.
This makes the system more reliable and user friendly

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

4.3 PROCESS DESIGN

Database Management System


Database Management system consists of a collection of interrelated data and a set of
programs to access that data is referred to as database. The database management
system has different goals.

Goals of Database Management System

The Primary goal of data base management system is to provide an environment that is
both conventional and efficient to use in retrieving information from and storing
information into database.

Data Model
A model is an abstraction process that hides superfluous details while highlighting
details pertinent to application at hand. A data models is a mechanism that provides this
abstraction for the storage of this data. There are many data models that are available for
the storage of data.
Most models provide mechanisms to structure data for the entities being modeled and
allows asset of operations to be defined on them. The models can also enforce a set of
constraints to maintain the high integrity of data. Some models are mentioned below.

Entity Relationship Models


The entity relationship models (E-R model) is based on perception of real world, which
consists of a set of basic objects called entities and relationships among these objects . It
was developed in order to facilitate database design by allowing then specification of an
enterprise scheme. Such a scheme represents the overall logical structure of database.
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

4.3.1 Data Flow Diagram (DFD)


A Data Flow Diagram (DFD) or a bubble chart is a graphical tool for structured analysis.
It was De Macro in 1978 and Gene and Carson in 1979 who introducedDFD.DFD
models a system transforms the data and creates, output data-flows which go by suing
external entities from which data flows to a process which to other processes or external
entities or files. Data in files many also flow to processes as inputs.
There are various symbols used in DFD. Bubbles represent the process. Named arrows
indicate the dataflow. External entities are represented by rectangles and are outside the
system such as venders or customers with whom the system interacts. They either
supply or consume data. Entities supplying data are known as sources and those that
consume data are called sinks. Data are stored in a data store by a process in the system.
Each component in a DFD is labeled in with a descriptive name. Process names are
further identified with a number.
DFD can be hierarchically organized, which help in partitioning and analyzing large
systems. As a first step, one Data Flow Diagram can depict an entire system. Which
gives the system overview? It is called Context Diagram of level 0 DFD. The context
diagram can be further expanded. The successive expansion of DFD from the context
diagram that giving more details is known as leveling of DFD. Thus of top down
approach is used, starting with an overview and then working out the details.
The main merit of DFD is that it can provide an overview of what data a system would
process, what transformation of data are done, what files are used, and where the result
flow. The data flow diagram of online manager has been represented as a hierarchical
DFD context level DFD was drawn first.
Then the processes were decomposed into several elementary levels and are represented
in the order of importance.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

Basic DFD Symbols


Square:

A source or sink is a person or part of an organization, which enters or receives


information from the system, but is considered to be outside the context of data flow
model

Arrow:

A data flow is a route, which enables packets of data to travel from one point to another.
Data may flow from a source to a processor and from data store or process. An arrow
lines depicts the flow, with arrowhead pointing in the direction of flow

Circle:

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

A Process represents transformation where incoming data flows are changed into
outgoing data flows.

Open rectangle:

A data is a repository of data that is to be stored for use by one or more process may be
as simple as buffer or queue or sophisticated as relational database. They should have
clear names. If a process merely uses the content of store and doesnt alter it, the
arrowhead goes only from the store to the process. If process alters the details in the
store then a double-headed arrow is used.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Level 0: Context Level

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Level 1: ADMIN

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Level 2 : USER CUSTOMIZATION


St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Level 1: USER

LEVEL2: ADMIN
St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

LEVEL2: USER VIEW COST

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

4.4 TABLE DESIGN

The general theme behind a database is to handle information as an integrated whole. A


database is a collection if inter related data stored with minimum redundancy to serve
many quickly and effectively. It is a collection of stored data organized in such a way
that all the data requirements are satisfied by the database. The aim of database design is
to improve the existing system situation. A number of database files were designed to
hold the data requirements for running their systems.The following tables are used:
1. Table Name : administrator
Primary Key: adminmaster
Description: it is used to admin login
Field

Data type

Description

adminmaster

Int(10)

Administrator Id

username

nvarchar(50)

User Name

password

nvarchar(50)

Password

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

2. Table Name : roof


Primary key : roofid
Description: it is used to store roof details.

Field

Data Type

Description

roofid

Int(10)

Roof Id

type

nvarchar(50)

Type of roof

cost

Int(10)

Cost

description

nvarchar(50)

Description about roof

img

nvarchar(50)

Image of roof

3. Table Name : Window


Primary key : Windowid
Description: it is used to store window details.
Field

Data Type

Description

windowid

Int(10)

Window Id

type

nvarchar(50)

Type

cost

Int(10)

Cost

img

nvarchar(50)

Image of window

description

nvarchar(50)

Description
window

St. Thomas Arts And Science College, Puthencruz

about

Bachelor of Computer Application

Building Cost Estimator

4. Table name : column


Primary key : columnid
Description: it is used column details
Field

Data Type

Description

columnid

Int(10)

Column Id

type

nvarchar(50)

Type of Column

cost

Int(10)

Cost

image

nvarchar(50)

Image of Column

description

nvarchar(50)

Description about column

5. Table name :arch


Primary key : archid
Description: it is used to store arch files.

Field

Data Type

Description

archid

Int(10)

Arch Id

type

nvarchar(50)

Type of Arch

cost

Int(10)

Cost

image

nvarchar(50)

Image of Arch

description

nvarchar(50)

Description about Arch

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

6. Table name: classicmoulding


Primary key : mouldingid
Description: it is used for moulding.
Field

Data Type

Description

mouldingid

Int(10)

Classic Moulding Id

type

nvarchar(50)

Type of Classic Moulding

cost

Int(10)

Cost

image

nvarchar(50)

description

nvarchar(50)

Image
of
Moulding
Description
moulding

Classic
about

7. Table name: door


Primary key : doorid
Description: it is used to store door details.
Field

Data Type

Description

doorid

Int(10)

Door Id

type

nvarchar(50)

Type of Door

cost

Int(10)

Cost

image

nvarchar(50)

Image of Door

description

nvarchar(50)

Desription about door

8. Table name: floor


Primary key : floorid
Description: it is used to store floor details.
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Field

Building Cost Estimator

Data Type

Description

floorid

Int(10)

Floor Id

type

nvarchar(50)

Type

cost

Int(10)

Cost

img

nvarchar(50)

Image of Floor

description

nvarchar(50)

Description about Floor

9.

Table

name: paintcompany
Primary key: paintid
Description: it is used to store paint details.
Field

Data Type

Description

paintid

Int(10)

Paint Id

name

nvarchar(50)

Name of PaintCompany

description

nvarchar(50)

Description about
company

10. Table name: colors


Primary key : colors_id
Description: it is used to notice details.
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Field

Building Cost Estimator

Data Type

Description

color_id

Int(10)

Colour Id

company_Id

nvarchar(50)

Paint Company Id

color

nvarchar(50)

Colour

cost

Int(10)

Cost

img

nvarchar(50)

Image of Colour

11. Table name: buildingarea


Primary key : Id
Description: it is used for calculating building area.
Field

Data Type

Description

Id

Int(10)

Area Id

district

nvarchar(50)

District

cost

Int(10)

Rate per Squarefeet

place

nvarchar(50)

Place

12. Table name: buildingplan


Primary key : plan_id
Description: it is used to store building plan details
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Field

Building Cost Estimator

Data Type

Description

plan_id

Int(10)

Building Plan Id

sqft

Int(10)

Square Feet of Building

bedrooms

Int(10)

No. of Bedrooms

bathrooms

Int(10)

No. of Bathrooms

img

nvarchar(50)

Image of Plan

p_img

nvarchar(50)

Descriptive Image

13. Table name: material


Primary key : m_id
Description: it is used to store building plan details
Field

Data Type

Description

M_id

Int(10)

Material Id

name

nvarchar(50)

Material Name

cost

Int(10)

Cost

14. Table name: floor_cal


Primary key : floor_id
Description: it is used to calculating floor details
Field

Data Type

Description

floor_id

Int(10)

Floor Id

consumer_id

Int(10)

Consumer Id

exteriorwalls

Int(10)

Total Length of exterior


walls

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

height

Int(10)

Height of floor

roompartitions

Int(10)

Total Length of rooms

roof

Int(10)

Square Feet of Roof

totarea

Int(10)

Total Area for walls

15. Table name: userestimation


Primary key : estimationid
Description: it is used to store estimation details
Field

Data Type

Description

estimationid

Int(10)

Estimation Id

consumer_id

Int(10)

Consumer Id

builtarea

Int(10)

Total Building Area cost

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

wcost

Int(10)

Total window cost

ccost

Int(10)

Total moulding cost

acost

Int(10)

Total arch cost

rcost

Int(10)

Total roof cost

fcost

Int(10)

Total floor cost

pcost

Int(10)

Total paint cost

clcost

Int(10)

Total moulding cost

dcost

Int(10)

Total door cost

total

Int(10)

TotalCost

16. Table name: feedback


Primary key : feedback_id
Description: it is used to store feedback details
Field

Data Type

Description

feedbackid

Int(10)

Feedback Id

consumerid

Int(10)

Consumer Id

subject

nvarchar(50)

Subject of Message

message

nvarchar(50)

Message

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

dateofmessage

Building Cost Estimator

dateTime

Date of Message

17. Table name: items


Primary key : items_id
Description: it is used to store item details
Field

Data Type

Description

Item_id

Int(10)

Id

consumer_id

Int(10)

Consumer Id

itmid

Int(10)

Item Id

type

nvarchar(50)

Type Of Item

noofitm

Int(10)

No. of Items

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

SYSTEM TESTING
AND
IMPLEMENTATION

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

5.1 SYSTEM TESTING


System testing is the stage of implementation, which is aimed at ensuring that the
system works accurately and efficiently before live operation commence. Testing is vital
to the success of the system. An elaborate testing of data is prepared and the system is
tested using this test data. While testing errors are noted and corrections are made. The
users are trained to operate the developed system. Both hardware and software securities
are made to run the developed system successfully in future.

Types of testing:
1. Unit Testing
2. Integration Testing
3. Validation Testing
4. Output Testing
5. User Acceptance Testing

Unit Testing
Unit testing focuses verification efforts on the smallest unit of software design, the
module. This is also known as Module Testing. The modules are separately. This
testing is carried out during programming stage itself. In this testing step each module is
found to be working satisfactorily as regard to the expected output from the module.

Integration Testing
Integration testing is a systematic technique for constructing tests to uncover errors
associated interface. In this project, all the modules combined. And then entire program
is tested as a whole, thus in the integration testing step, all the errors uncovered for the
next testing steps.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

Validation Testing
Validation testing is where requirements established as a part of software requirement
analysis is validated against the software that has been constructed. This test provides
the final assurance that the software meets all functional, behavioral and performance
requirements. The errors, which are uncovered during integration testing, are corrected
during this phase.

Output Testing
After performing the validation testing, the next step is output testing of the proposed
system since no system could be useful if it does not produce the required output in the
specific format. The output generated or displayed by the system under consideration is
tested asking the users about the format required by them. Here, the output is considered
in two ways: one is on the screen and the other is printed format.
The output format on the screen is found to be correct as the format designed according
to the user needs. For the hard copy also, the output comes out as specified by the user.
Hence output testing doesnt result in any connection in the system.

User Acceptance Testing


User acceptance of a system is the key factor for the success of any system. The under
consideration is tested for user acceptance by constantly keeping in touch with the
prospective system users at a time of developing and making for BUILDING COST
ESTIMATOR. The testing of the software began along with coding. Since the design
was fully object oriented, first the interfaces were developed and tested. Then unit
testing was done for every module in the software for various inputs, such that each line
of code is once executed. After all modules were coded the integration test were carried
out. Some minor errors were found in the output at the earlier stage and each of them
was corrected. In the implementation of user interface part no major errors were found.
After the software was
completely developed, the testing was done. The output of the software were correct and
accurate during the time of demonstration, after that no errors were reported
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

5.2 SYSTEM IMPLEMENTATION


Implementation is the stage in the project where theoretical is design is turned into a
working system and is giving confidence on the new system for the users, which will
work efficiently and effectively. It involves careful planning, investigation of the current
system and its constraints on implementations, design of methods to achieve the change
over, an evaluation, of change over methods. Apart from planning major task of
preparing the implementation are education and training of users. The major complex
system being implemented the more evolved will be the system analysis and the design
effort required just for implementation. An implementation coordinating committee
based on policies of individual organization has been appointed. The implementation
process begins with preparing a plan for the implementation of the system. According to
this plan, the activities are to be carried out discussions made regarding the equipment
and resources and the additional equipment has to be acquired to implement the new
system.
Implementation is the final and important phase. The most critical stage in achieving a
successful new system and in giving the users confidence that the new system will work
and be effective. The system can be implemented only after thorough testing is done and
if it found to working according to the specification. This method also offers the greatest
security since the old system can take over if the errors are found or inability to handle
certain type of transaction while using the new system.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

5.3 MAINTENANCE
Maintenance is the enigma of software development. It holds the software industry
captive, typing up programming resources. It is perceived as requiring neither skill nor
experience. Maintenance covers wide range of activities, including correcting, coding
and design errors, updating documentation and test data and upgrading user support.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

FUTURE ENHANCEMENT

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

6. FUTURE ENHANCEMENT

The system is developed and designed such a way that further expansion or
modification can be made to permit the evaluation. The focus of the system is to inherit
the requirements and update the system as per the needs. This project is so perfectly
designed that it satisfies the requirements.
This involves provided new future such as
More number item details can be inserted into the database.
E-payment
Upgrading the performance.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

CONCLUSION

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

7. CONCLUSION

In this dissertation we have studied different management systems used during


evaluation and presented a low cost office management system application with the
help of that study. Building cost estimator is a web based office software which can
be accessed by any person from anywhere in the World. The objective of this
software is to establish an user-admin relationship easy by systematic digital
communication procedures. There are mainly 2 end users to this application, (1)
Employees (also called Users), (2) Employers (also called Admin). Users are given
manuals on how to make use of the Online Manager. User should have knowledge in
using computers and need to have knowledge of English language. The system
interfaces with the Administrator and employees of the organization. Employees need
to register to interact with the system. Administrator controls the entire system.
To conclude this, I thank all people who help us to complete this project work
successfully.

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

BIBLIOGRAPHY

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

8. BIBLIOGRAPHY

SOFTWARE ENGINEERING- Rogers. Pressman

COMPLETE HTML- Steven Holzner

UNIFIED MODELING LANGUAGE- Grady Booch, Ranbaugh, Jacobson

SQL FOR PROFESSIONALS- Jain

C#.NET Black Book- Evangeleous Petersons

MANAGING PROJECTS - Gwen Lowery

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

APPENDIX

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

9.1 SCREEN SHOTS


ADMIN
Login

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

View feedback

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

admin add mouldings

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Admin add door

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Arches Selection

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building materials selection

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Columns Selection

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

contact us

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Customization

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Customization menu

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Doors Selection

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Enter area details

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Estimation result

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Feedback Submit

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Floor details

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Flooring materials

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Login

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Moulding Selection

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

New registration

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Show plans

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

9.2 SOURCE CODE


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;
public partial class Default2 : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataReader mread;
int logid;
string uname;
protected void Page_Load(object sender, EventArgs e)
{
DBclass.connection();
Label3.Visible = false;
}

protected void LinkButton1_Click1(object sender, EventArgs e)


{
Response.Redirect("~/Login/Registration.aspx");
}

protected void btnlogin_Click(object sender, EventArgs e)


{

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

cmd = new SqlCommand("select loginid,status,username,pwd from login where


username='" + txtuname.Text + "'and pwd='" + txtpwd.Text + "'", DBclass.con);
mread = cmd.ExecuteReader();
if (mread.Read())
{
int sts = Convert.ToInt32(mread.GetValue(1).ToString());
if (sts == 0)
{
logid = Convert.ToInt32(mread.GetValue(0).ToString());
Session.Add("loginid", logid);
uname = mread.GetValue(2).ToString();
Session.Add("username", uname);
string pass = mread.GetValue(3).ToString();
Session.Add("password", pass);
string userid = mread.GetValue(0).ToString();
mread.Close();
cmd = new SqlCommand("delete from Estimation where user_id=" + userid,
DBclass.con);
cmd.ExecuteNonQuery();
cmd = new SqlCommand("delete from Item_selection where user_id=" +
userid, DBclass.con);
cmd.ExecuteNonQuery();
cmd = new SqlCommand("delete from NoofFloors where user_id=" + userid,
DBclass.con);
cmd.ExecuteNonQuery();
Response.Redirect("~/users/AreaDetails.aspx");
}
else
{
int admid = Convert.ToInt32(mread.GetValue(0).ToString());
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Session.Add("adminid", admid);
string adname = mread.GetValue(0).ToString();
Session.Add("adminname", adname);
mread.Close();
Response.Redirect("~/Admin/WelcomeAdmin.aspx");

}
mread.Close();
}
Label3.Visible = true;
txtpwd.Text = "";
txtuname.Text = "";
}
protected void btncancel_Click(object sender, EventArgs e)
{
Response.Redirect("~/Login/Registration.aspx");
}
}

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Registration
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;
public partial class Login_Default : System.Web.UI.Page
{
SqlCommand cmd;
SqlCommand cmd2;
protected void Page_Load(object sender, EventArgs e)
{
DBclass.connection();
if (!IsPostBack)
{
Label15.Visible = false;
for(int i=1;i<=31;i++)
{
dpdday.Items.Add(i.ToString());
}
for (int i = 1901; i <= DateTime.Today.Year; i++)
{
dpdyear.Items.Add(i.ToString());
}

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

//DateTime dt1, dt2;


//string dob = dpdday.Text + "/" + dpdmonth.Text + "/" + dpdyear.Text;
//dt1 = DateTime.Parse(dob,
System.Globalization.CultureInfo.CreateSpecificCulture("en-Au").DateTimeFormat);
//string cdate = System.DateTime.Now.ToShortDateString();
//dt2 = DateTime.Parse(cdate,
System.Globalization.CultureInfo.CreateSpecificCulture("en-Au").DateTimeFormat);
//TimeSpan ts = dt1 - dt2;
//int day = ts.Days;
}
protected void btnsubmit_Click1(object sender, EventArgs e)
{
string dob = dpdday.Text + "-" + dpdmonth.Text + "-" + dpdyear.Text;
cmd = new SqlCommand("insert into Registration values('" + txtfname.Text + "','" +
txtlname.Text + "','" + txtuname.Text + "','" + rbrtngender.Text + "','" + dob + "','" +
txtage.Text + "','" + txtaddress.Text + "','" + txtcity.Text + "','" + txtdist.Text + "','" +
txtpin.Text + "','" + txtmailid.Text + "','" + txtpin.Text + "')", DBclass.con);
cmd.ExecuteNonQuery();
cmd2 = new SqlCommand("insert into Login values(0,'" + txtuname.Text + "','" +
txtpwd.Text + "')", DBclass.con);
cmd2.ExecuteNonQuery();
Label15.Visible = true;
Label15.Text = "Successfully Registrered!!!!!!";
Response.Redirect("UserLogin.aspx");
}
protected void btnreset_Click(object sender, EventArgs e)
{
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

txtaddress.Text = "";
txtage.Text = "";

txtcity.Text = "";
txtcompwd.Text = "";
txtdist.Text = "";
txtfname.Text = "";
txtlname.Text = "";
txtmailid.Text = "";
txtph.Text = "";
txtpin.Text = "";
txtpwd.Text = "";
txtuname.Text = "";
}
}

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Addmouldings
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.Data;
public partial class Admin_Default2 : System.Web.UI.Page
{
SqlCommand cmd;
SqlCommand cmd1;
public static string path;
SqlDataAdapter adptr;
DataSet dset = new DataSet();
static int flag = 0;
SqlDataReader mread;
protected void Page_Load(object sender, EventArgs e)
{
DBclass.connection();
if (!IsPostBack)
{
Label1.Visible = false;
dpdtype.Visible = false;
Label6.Visible = false;
gridfill();
St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

}
}
protected void btnsubmit_Click(object sender, EventArgs e)
{

if (flag == 1)
{
string m = imgmouldings.ImageUrl;
cmd1 = new SqlCommand("select mouldingid from ClassicMouldings where
type='" + dpdtype.SelectedValue + "'", DBclass.con);
string mould_id = cmd1.ExecuteScalar().ToString();
cmd = new SqlCommand("update ClassicMouldings set type='" + txttype.Text +
"',image='" + m + "',cost='" + txtcost.Text + "',description='" + txtdescription.Text + "'
where mouldingid='" + mould_id + "'", DBclass.con);
cmd.ExecuteNonQuery();
Label6.Visible = true;
txttype.Text = "";
txtcost.Text = "";
txtdescription.Text = "";
imgmouldings.ImageUrl = "";
Label1.Visible = false;
dpdtype.Visible = false;
gridfill();
btnedit.Enabled = true;
}
else
{
cmd = new SqlCommand("insert into ClassicMouldings values('" + txttype.Text +
"','" + path + "','" + txtcost.Text + "','" + txtdescription.Text + "')", DBclass.con);
cmd.ExecuteNonQuery();
gridfill();
Label6.Visible = true;
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

txttype.Text = "";
txtcost.Text = "";
txtdescription.Text = "";
imgmouldings.ImageUrl = "";
btnedit.Enabled = true;
}

flag = 0;
}
protected void btnedit_Click(object sender, EventArgs e)
{
flag = 1;
Label1.Visible = true;
dpdtype.Visible = true;
dpdtype.Items.Clear();
dpdtype.Items.Add("select...");
btnedit.Enabled = false;
cmd = new SqlCommand("select * from ClassicMouldings", DBclass.con);
mread = cmd.ExecuteReader();
while (mread.Read())
{
dpdtype.Items.Add(mread.GetValue(1).ToString());
}
mread.Close();
}
void gridfill()
{
adptr = new SqlDataAdapter("select * from ClassicMouldings", DBclass.con);
adptr.Fill(dset);
GridView1.DataSource = dset;
GridView1.DataBind();

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

}
protected void btnupload_Click(object sender, EventArgs e)
{
path = "~/images/Classicmouldings/" + fudmouldings.FileName;
fudmouldings.SaveAs(MapPath(path));
imgmouldings.ImageUrl = path;

}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int rowindex = e.RowIndex;
int rowid = Convert.ToInt32(GridView1.DataKeys[rowindex].Value.ToString());
cmd = new SqlCommand("delete from ClassicMouldings where mouldingid='"
+rowid + "'", DBclass.con);
cmd.ExecuteNonQuery();
gridfill();
}
protected void dpdtype_SelectedIndexChanged1(object sender, EventArgs e)
{
cmd1 = new SqlCommand("select mouldingid from ClassicMouldings where type='"
+ dpdtype.SelectedValue + "'", DBclass.con);
string mouldid = cmd1.ExecuteScalar().ToString();
cmd = new SqlCommand("select * from ClassicMouldings where
mouldingid='"+mouldid+"'",DBclass.con);
mread = cmd.ExecuteReader();
while (mread.Read())
{
txttype.Focus();
txttype.Text = mread.GetValue(1).ToString();
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

imgmouldings.ImageUrl = mread.GetValue(2).ToString();
txtcost.Text = mread.GetValue(3).ToString();
txtdescription.Text = mread.GetValue(4).ToString();
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{

Response.Redirect("~/Admin/WelcomeAdmin.aspx");
}
protected void btncancel_Click(object sender, EventArgs e)
{
btnedit.Enabled = true;
Response.Redirect("~/Admin/AddClassicmouldings.aspx");
}
}

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Addarch
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.Data;
public partial class Admin_Default : System.Web.UI.Page
{
SqlCommand cmd;
SqlCommand cmd1;
SqlCommand cmd2;
public static string path;
SqlDataAdapter adptr;
DataSet dset = new DataSet();
static int flag = 0;
SqlDataReader mread;
public static string arch_id = "";
protected void Page_Load(object sender, EventArgs e)
{
St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

DBclass.connection();
if (!IsPostBack)
{
lbltype.Visible = false;
dpdtype.Visible = false;
Label7.Visible = false;
gridfill();
}
}
protected void txttype_TextChanged(object sender, EventArgs e)

{
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
if(flag==1)
{
string m=imgarch.ImageUrl;
cmd1=new SqlCommand("select archid from Arches where
type='"+dpdtype.SelectedValue+"'",DBclass.con);
arch_id=cmd1.ExecuteScalar().ToString();
cmd2=new SqlCommand("update Arches set
type='"+txttype.Text+"',image='"+m+"',cost='"+txtcost.Text+"',description='"+txtdescript
ion.Text+"' where archid='"+arch_id+"'",DBclass.con);
cmd2.ExecuteNonQuery();
Label7.Visible=true;
txttype.Text="";
txtcost.Text="";
txtdescription.Text="";
imgarch.ImageUrl="";
lbltype.Visible=false;
dpdtype.Visible=false;
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

gridfill();
btnedit.Enabled = true;
}
else
{
cmd =new SqlCommand ("insert into Arches
values('"+txttype.Text+"','"+path+"','"+txtcost.Text+"','"+txtdescription.Text+"')",DBclass
.con);
cmd.ExecuteNonQuery();
Label7.Visible = true;

gridfill();
txttype.Text="";
txtcost.Text="";
txtdescription.Text="";
imgarch.ImageUrl="";
btnedit.Enabled = true;
}
flag=0;
}

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)


{
}
void gridfill()
{
adptr=new SqlDataAdapter ("select * from Arches",DBclass.con);
adptr.Fill (dset);
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

GridView1.DataSource=dset;
GridView1.DataBind();
}

protected void btnupload_Click(object sender, EventArgs e)


{
path="~/images/Arches/"+fudarch.FileName;
fudarch.SaveAs(MapPath(path));
imgarch.ImageUrl=path;
}

protected void dpdtype_SelectedIndexChanged(object sender, EventArgs e)


{
cmd1=new SqlCommand("select archid from Arches where
type='"+dpdtype.SelectedValue+"'",DBclass.con);
string arch_id=cmd1.ExecuteScalar().ToString();
cmd=new SqlCommand("select * from Arches where
archid='"+arch_id+"'",DBclass.con);
mread=cmd.ExecuteReader();
while(mread.Read())
{
txttype.Focus();
txttype.Text=mread.GetValue(1).ToString ();
imgarch.ImageUrl=mread.GetValue(2).ToString();
txtcost.Text=mread.GetValue(3).ToString();
txtdescription.Text=mread.GetValue(4).ToString();
}
}
protected void btnedit_Click(object sender, EventArgs e)
{
flag=1;
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

lbltype.Visible=true;
dpdtype.Visible=true;
Label7.Visible = false;
dpdtype.Items.Clear();
dpdtype.Items.Add("select...");
btnedit.Enabled = false;
cmd=new SqlCommand ("select * from Arches",DBclass.con);
mread=cmd.ExecuteReader();
while (mread.Read())
{
dpdtype.Items.Add (mread.GetValue(1).ToString());
}
mread.Close();
}

protected void btncancel_Click(object sender, EventArgs e)


{
btnedit.Enabled = true;
Response.Redirect("~/Admin/AddArches.aspx");

}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int rowindex = e.RowIndex;
int rowid = Convert.ToInt32(GridView1.DataKeys[rowindex].Value.ToString());
cmd=new SqlCommand("delete from Arches where
archid='"+rowid+"'",DBclass.con);
cmd.ExecuteNonQuery();
gridfill();
}
protected void LinkButton1_Click(object sender, EventArgs e)
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

{
Response.Redirect("~/Admin/WelcomeAdmin.aspx");
}
}

Arches selection
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.Data;

public partial class users_Default : System.Web.UI.Page

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

{
SqlCommand cmd;
DataSet dset = new DataSet();
SqlDataAdapter adp;
SqlDataReader mread;
string arcid;
string noofitems;
protected void Page_Load(object sender, EventArgs e)
{
DBclass.connection();
if (!IsPostBack)
{

adp = new SqlDataAdapter("select * from arches", DBclass.con);


adp.Fill(dset);
DataList1.DataSource = dset;
DataList1.DataBind();

}
}

protected void txtadd_Click(object sender, EventArgs e)

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

{
for (int i = 0; i <= DataList1.Items.Count; i++)
{
if (i < DataList1.Items.Count)
{
CheckBox ch = (CheckBox)DataList1.Items[i].FindControl("CheckBox1");
TextBox tx = (TextBox)DataList1.Items[i].FindControl("txtnoofitems");
if (ch.Checked == true)
{
cmd = new SqlCommand("select archid from Arches where archid='" +
ch.Text.ToString() + "'", DBclass.con);
mread = cmd.ExecuteReader();
if (mread.Read())

{
arcid += mread.GetValue(0).ToString() + ",";

}
mread.Close();
noofitems += tx.Text + ",";

}
}

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

}
Response.Redirect("~/users/Webcart.aspx?type=arches&arc=" + arcid +
"&noitemsarch=" + noofitems);
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("~/users/UserItemSelection.aspx");
}
}

Cost estimation
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;

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

using System.Data;

public partial class users_Default : System.Web.UI.Page


{
SqlCommand cmd;
SqlDataReader mRead;
SqlDataAdapter adp;
DataSet ds = new DataSet();
int windcost = 0;
int columcost=0;
int archcost = 0;
int cmdingcost = 0;
int flcost = 0;
int rfcost = 0;
int paintcost = 0;

int doorcost = 0;
int brcost = 0;
int cmtcost = 0;
int rodcost = 0;
int noofworkers, builtarea, duration;
int totalcost;
string s;

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

int labourcharges;
int builtareacost;
int tcost;
protected void Page_Load(object sender, EventArgs e)
{
DBclass.connection();
ds.Clear();
adp = new SqlDataAdapter("select * from Item_selection where user_id='" +
Session["loginid"].ToString() + "'", DBclass.con);
adp.Fill(ds);
DataTable item_tab;
item_tab = ds.Tables[0];
string itemcost;

foreach (DataRow itemrow in item_tab.Rows)


{

if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "WINDOWS")
{
cmd = new SqlCommand("select cost from Window where windowid='" +
itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
windcost
Convert.ToInt32(itemrow.ItemArray[5].ToString());

St. Thomas Arts And Science College, Puthencruz

+=

Convert.ToInt32(itemcost)

Bachelor of Computer Application

Building Cost Estimator

}
if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "ARCHES")
{
cmd = new SqlCommand("select cost from Arches where archid='" +
itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
archcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}
if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "BRICKS")
{
cmd = new SqlCommand("select cost from Brick where brickid='" +
itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
brcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}

if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "CEMENT")
{

cmd = new SqlCommand("select cost from cement where cemcompanyid='" +


itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

cmtcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}
if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "COLORS")
{
cmd = new SqlCommand("select cost from color where colorid='" +
itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
paintcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}

if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "COLUMNS")
{
cmd = new SqlCommand("select cost from Columns where columnid='" +
itemrow.ItemArray[2].ToString() + "'",DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();

columcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}
if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "DOORS")
{

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

cmd = new SqlCommand("select cost from Door where doorid='" +


itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
doorcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}
if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "FLOORS")
{
cmd = new SqlCommand("select cost from Tiles where tileid='" +
itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
flcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}
if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "IRONROD")
{

cmd = new SqlCommand("select cost from Ironrods where rodid='" +


itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
rodcost
Convert.ToInt32(itemrow.ItemArray[5].ToString());
}

St. Thomas Arts And Science College, Puthencruz

+=

Convert.ToInt32(itemcost)

Bachelor of Computer Application

Building Cost Estimator

if (itemrow.ItemArray[4].ToString().ToUpper().Trim() ==
"CLASSICMOULDINGS")
{

cmd = new SqlCommand("select cost from ClassicMouldings where


mouldingid='" + itemrow.ItemArray[2].ToString() + "'", DBclass.con);
itemcost = cmd.ExecuteScalar().ToString();
cmdingcost +=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}

if (itemrow.ItemArray[4].ToString().ToUpper().Trim() == "ROOFS")
{
cmd = new SqlCommand("select cost from Roof where roofid='" +
itemrow.ItemArray[2].ToString() + "'", DBclass.con);

itemcost = cmd.ExecuteScalar().ToString();
rfcost

+=

Convert.ToInt32(itemcost)

Convert.ToInt32(itemrow.ItemArray[5].ToString());
}
}
}
protected void btnestimate_Click(object sender, EventArgs e)
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

noofworkers = Convert.ToInt32(Session["w"].ToString());
builtarea = Convert.ToInt32(Session["builtarea"].ToString());
duration = (builtarea * 5) / noofworkers;
s = duration + "days (noofworkers " + noofworkers + ")";

totalcost = archcost + windcost + columcost + doorcost + cmdingcost + flcost + rfcost +


paintcost + brcost + cmtcost + rodcost;
cmd = new SqlCommand("select builtarea from Estimation where user_id='" +
Session["loginid"].ToString() + "'",DBclass.con);
mRead = cmd.ExecuteReader();
if (mRead.Read())
{
builtareacost = Convert.ToInt32(mRead.GetValue(0).ToString());

}
labourcharges = (((builtareacost + totalcost) * 40) / 100);
tcost = builtareacost + totalcost + labourcharges;
mRead.Close();
cmd = new SqlCommand("update Estimation set archcost='" + archcost +
"',windcost='" + windcost + "',columcost='" + columcost + "',doorcost='" + doorcost +
"',cmdingcost='" + cmdingcost + "',flcost='" + flcost + "',rfcost='" + rfcost +

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

"',paintcost='" + paintcost + "',materialcost='" + (brcost + cmtcost + rodcost) + "',total='"


+ totalcost + "'", DBclass.con);
cmd.ExecuteNonQuery();

cmd = new SqlCommand("select * from Estimation where user_id='" +


Session["loginid"].ToString() + "'", DBclass.con);
mRead = cmd.ExecuteReader();
if (mRead.Read())
{
Response.Redirect("~/users/ShowEstimatedCost.aspx?duration=" + s +
"&labourchg=" + labourcharges + "&totalcost=" + tcost);

mRead.Close();
}
mRead.Close();
}
private int noofdays(object p)
{

throw new Exception("The method or operation is not implemented.");


}

protected void LinkButton1_Click(object sender, EventArgs e)


{

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Response.Redirect("UserItemSelection.aspx");
}
}
Area details
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;

public partial class users_Default : System.Web.UI.Page


{
SqlCommand cmd;
SqlCommand cmd1;
SqlDataReader mread;

string a;
string str;
int total;
protected void Page_Load(object sender, EventArgs e)

St. Thomas Arts And Science College, Puthencruz

Building Cost Estimator

Bachelor of Computer Application

Building Cost Estimator

{
DBclass.connection();
if (!IsPostBack)
{

Label6.Visible = false;
txtbuildarea.Focus();
cmd = new SqlCommand("select distinct dist from AreaDetails", DBclass.con);
mread = cmd.ExecuteReader();
dpddistrict.Items.Add("Select......");
while (mread.Read())
{
dpddistrict.Items.Add(mread.GetValue(0).ToString());
}
mread.Close();
}
}

protected void btnsubmit_Click(object sender, EventArgs e)


{

St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

if ((txtbuildarea.Text == "") || (rbtnrural.Checked == false) && (rbtnmetro.Checked


== false || dpddistrict.SelectedItem.ToString() == "Select......"))
{
Label6.Visible = true;
Label6.Text="Can't submit without data!!!!";
}
else
{
if (rbtnrural.Checked == true)

a = "Rural";
}
else if (rbtnmetro.Checked == true)
{
a = "Metropolitan";
}
Session.Add("builtarea", txtbuildarea.Text.Trim());
cmd1 = new SqlCommand("select cost from AreaDetails where dist='" +
dpddistrict.SelectedValue.ToString() + "' and area='" + a.ToString() + "'", DBclass.con);

str = cmd1.ExecuteScalar().ToString();
total = Convert.ToInt32(str) * Convert.ToInt32(txtbuildarea.Text);
St. Thomas Arts And Science College, Puthencruz

Bachelor of Computer Application

Building Cost Estimator

cmd = new SqlCommand("insert into Estimation values('" +


Session["loginid"].ToString() + "','" + total + "' ," + 0 + "," + 0 + "," + 0 + "," + 0 + "," +
0 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + ")", DBclass.con);
cmd.ExecuteNonQuery();
Response.Redirect("~/users/NoOfFloorDetails.aspx");
}}
protected void btncancel_Click(object sender, EventArgs e)
{
Response.Redirect("~/users/AreaDetails.aspx");
}

St. Thomas Arts And Science College, Puthencruz

You might also like