+ All Categories
Home > Documents > project transcation

project transcation

Date post: 26-Nov-2014
Category:
Upload: prablpu
View: 110 times
Download: 0 times
Share this document with a friend
Description:
project trancation is sic month industrial training base project,,using ASP.net nd Sql server 2008...it contain coding plus snapshots of project
Popular Tags:
163
1 PROJECT REPORT (Project Semester January- 2011) (PROJECT TRANSACTION SYSTEM) Submitted by Prabjot Singh Registration 3010060036 BCA-MCA(2006-2011) Under the Guidance of Miss. Ramandeep kaur Prashant .k. Shrivastva [Lecturer] Sr. Technology Evangelist Lovely Professional University Appin Technologies Lovely professional University
Transcript
Page 1: project transcation

1

PROJECT REPORT

(Project Semester January- 2011)

(PROJECT TRANSACTION SYSTEM)

Submitted by

Prabjot Singh

Registration 3010060036BCA-MCA(2006-2011)

Under the Guidance of

Miss. Ramandeep kaur Prashant .k. Shrivastva[Lecturer] Sr. Technology EvangelistLovely Professional University Appin Technologies

Department Of Computer Science and Technology

LSTCALovely Professional University, Phagwara

January to June 2011

Lovely professional University

Page 2: project transcation

2

DECLARATION

I hereby declare that the project work entitled “ Project Transaction” is an authentic record of

my own work carried out at Appin Technologies as requirements of Industry Internship

project for the award of degree of MCA, Lovely Professional University, Phagwara, under

the guidance of Miss Ramandeep kaur during January to June, 2011.

Prabjot Singh

3010060036

Date: ___________________

Certified that the above statement made by the student is correct to the best of our knowledge and belief.

Miss. Ramandeep kaur Prashant .k. Shrivastva [Lecturer]

Sr. Technology Evangelist

Lovely professional University

Page 3: project transcation

3

ACKNOWLEDGEMENT

I owe a great many thanks to a great many people who helped and supported me during this project. It is of immense pleasure and profound privilege to express my gratitude and indebtedness along with sincere thanks to Mr. Prashant.k.Shrivastva, Appin Technologies for providing me the opportunity to work for a project on

“PROJECT TRANSACTION”I want to formally acknowledge my sincerest gratitude to all those who assisted and guided me in completing this project report and making my training a memorable and successful experience. I would also thank my University and my faculty members without whom this project would have been a distant reality. I am beholden to my family and friends for their blessings and encouragement.

I would like to thank Mr. Prashant.k.Shrivastva, Appin Technologies for the support, encouragement and valuable suggestion. Prabjot Singh

Lovely professional University

Page 4: project transcation

4

Content:-(PROJECT TRANSACTION SYSTEM)...............................................................................................................1

DECLARATION......................................................................................................................2

ACKNOWLEDGEMENT.......................................................................................................3

Organization overview.............................................................................................................9About Appin.........................................................................................................................................................9

Appin Knowledge Solutions.................................................................................................................................9

Milestones:........................................................................................................................................................10

Profile of the problem:...........................................................................................................11Definition...........................................................................................................................................................11

Statement about the Problem............................................................................................................................11

PROJECT OVERVIEW.......................................................................................................12

STUDY OF THE EXISTING SYSTEM..............................................................................13Disadvantages of Existing System.....................................................................................................................13

Software Requirements Specification..................................................................................14Purpose..............................................................................................................................................................14

System Environment..........................................................................................................................................14

Functional Requirements Specification.............................................................................................................15

Hardware Requirements specification..............................................................................................................18

Software Requirements specification................................................................................................................18

Non-Functional Requirements..........................................................................................................................19

Objectives of the Project...................................................................................................................................19

METHODOLOGY ADOPTED............................................................................................19

DETAILS OF VARIOUS TECHNOLOGIES USED.........................................................20OVERVIEW OF .NET........................................................................................................................................20

VISUAL STUDIO .NET.....................................................................................................................................21

ASP.NET............................................................................................................................................................21

SQL Server........................................................................................................................................................22

Lovely professional University

Page 5: project transcation

5

Database Interconnectivity ADO.NET..............................................................................................................23

FEASIBILITY ANALYSES..................................................................................................24Economical Feasibility......................................................................................................................................24

Technical Feasibility.........................................................................................................................................25

Operational Feasibility.....................................................................................................................................25

BEHAVIORAL FEASIBILITY............................................................................................................................26

Scheduled Feasibility........................................................................................................................................26

Implementation Feasibility................................................................................................................................26

PROJECT PLAN...................................................................................................................27TEAM STRUCTURE.........................................................................................................................................27

DEVELOPMENT SCHEDULE.........................................................................................................................27

PHASES INVOLVED IN THE PROJECT.........................................................................................................27

SYSTEM DESIGN.................................................................................................................27INTRODUCTION..............................................................................................................................................27

The system needs the following information for processing:............................................................................28

CHARACTERISTICS OF WELL DESIGNED SYSTEM...................................................................................28

Modules...................................................................................................................................29Developer..........................................................................................................................................................29

Client.................................................................................................................................................................30

User..........................................................................................................................................30

Data flow diagram..................................................................................................................31User Use Case............................................................................................................................................35Clients Use Cases.......................................................................................................................................36Developer Use Cases.................................................................................................................................37

Admin......................................................................................................................................38

ENTITY RELATIONSHIP DIAGRAM..............................................................................39Use Case Diagram............................................................................................................................................40

Use case Diagram for client..............................................................................................................................43

use case diagram for developer.........................................................................................................................44

Lovely professional University

Page 6: project transcation

6

DATABASE TABLES...........................................................................................................45Client Module....................................................................................................................................................46

Developer Module.............................................................................................................................................48

Admin Module...................................................................................................................................................50

Testing.....................................................................................................................................51Functional testing..............................................................................................................................................51

Structural testing...............................................................................................................................................52

Levels of testing.................................................................................................................................................52

Some test Cases for Testing project transaction:..............................................................................................54

Project status..........................................................................................................................55

User manual............................................................................................................................56

Home page...............................................................................................................................56

Stored procedures..................................................................................................................75

Source code.............................................................................................................................85

Summary...............................................................................................................................133

Future work and References...............................................................................................133

References.............................................................................................................................134

Lovely professional University

Page 7: project transcation

7

Organization overview

About Appin: Appin Technologies is a global Information Security company focused on training, consulting and outsourcing services. The company was formed as a merger of two entities, XIRS Ventures Inc. based in Austin Texas and XIRS Appin incubated inside IIT, Delhi India. Later the name XIRS was dropped from the company and the merged entity is known as Appin Technologies. From USA & India, the company has now expanded its operations to Europe, Africa and South East Asia as well.

Appin Knowledge Solutions:

Appin Knowledge Solutions is a part of Appin Technologies and the premier provider of Hi-technology Certification, courseware as well as online, computer based and instructor led training across the world. Appin Knowledge Solutions is primarily an IIT Alumni company as a majority of Board members, Shareholders, Advisors and Senior Management hail from different IIT’s across the country.

Appin Knowledge Solutions in terms of education & training arm of Appin Technologies, runs over 75 training centers globally focused on imparting instructor led training in Information Security, Ethical hacking, Secured Programming, Embedded systems & related IT domains. It also sells distance learning courses in over 71 countries across 6 continents. It has trained over 83000 candidates via training products and services. The company is among top 5 training providers in India according to the Week magazine.

Lovely professional University

Page 8: project transcation

8

Appin Knowledge Solutions Pvt. Ltd., brain behind Appin School of Niche Technology, is an affiliate of Appin Technologies based in Austin, Texas (US) & known worldwide for Education and Training in Niche Technology Certification Programmers.

Appin Technologies is a MNC in diverse businesses ranging from software development, information security services, technologies training programs (IT Security, Embedded & Robotics, and NANO Technology) and internet based portals among others with physical presence worldwide based out of USA and India. Appin’s flagship job oriented courses Appin Front-Runner Program and which have received significant recognition from industry worldwide.

Appin Technology labs training division of Appin Knowledge solution is imparting Hi-technology training to young professionals in niche areas including

Information Security Embedded systems and Robotics Nanotechnology Networking and Communications Secured Programming in .NET/JAVA

Milestones: Rated as among the top 5 IT professional course offerings in India -The Week Magazine. Approved by the International Association of Distance Learning (IADL), UK Appreciated by the President of India Dr. A.P.J. Abdul Kalam at Rashtrapati Bhawan for

our entrepreneurial spirits and our flagship products on Information Security and Nanotechnology

Symantec( Norton Antivirus) Registered Partner , Affiliated with Grisoft (AVG Anti-Virus )

First one in the world to Launch CBTS certification course in Nanotechnology First one in India to publish book on Nanotechnology along with BPB Publications. Reached over 83000 customers via training programs and products Training programs/products sold in over 84 countries

Lovely professional University

Page 9: project transcation

9

Profile of the problem: Project Transaction is a Web application which can be used to buy various projects online and also to get a project online according to your requirements. This site is to give freedom of the use of the internet.  It is like a software team covering many types of software, including scheduling, cost budget management, communication, quality management and documentation which are used to deal with the complexity of large projects. The purpose of this application is to provide projects online i.e. Outsourcing. This application will save the time of clients who can directly search for the projects and if they have specific requirements that can also be specified. The application provides the service of bidding on the projects.

Definition:Project Transaction is a computerized, online solution to the various problems faced by various users like Buyer, Provider or may be professionals wishing to do online projects bidding and then get the different buyer requirements and providing online business for the provider easily.

Statement about the Problem:There is very difficult job for the user or professional to get project done or fulfill the requirement of client in very short time. It’s a major problem to find a good experienced provider who works well and give a best output.Project transaction is website which provides numerous options to a customer in a time and budget constraints with proper quality. It is the only place where a customer can get quality

project according to user requirements. The overall purpose of this project is to make it user friendly & provide flexible interface. An allied objective is to highlight the best practices inherent within the current process and adapt them to the requirements of the updated Project Transaction.

The document is organized along the following lines: Description of the scope of the current exercise

Documentation of the current workflow practices

Identification of potential enhancements

Templates for future content development

Lovely professional University

Page 10: project transcation

10

PROJECT OVERVIEW

Overview: Project transaction is the site for on-line work where businesses connect with independent professionals to get work done. It delivers an immediate, cost-effective and flexible way to hire, manage and pay independent professionals and contractors’ on-line.

Project Transaction is a market place for project buyers and transaction programmers. In this aspect, we help transaction programmers to get project from project managers. Customers can post their requirements through our site. After making a legal agreement, Project Transaction programmer immediately start working on project. Once the project is done it is handover to project manager and he does a user testing, if all goes well they make a full payment otherwise project return to Project Transaction programmer to make changes.

In this site registration process is there for each of the user connected to this site anyhow. The Administrator of the site verifies the User after his registration and if satisfied, assigns him an ID and password.

STUDY OF THE EXISTING SYSTEM

For a project current system is manual customer had to go to the company for a project. To control, maintain and retrieve the important data and information is a major problem in system. The existing system is of manual type and the manual system includes the maintaining of various registers, ledgers manually.

Lovely professional University

Page 11: project transcation

11

Disadvantages of Existing System:

Problem of Updating:In the existing system, since everything is stored in the registers, Software Requirement Document is prepared and every time the requirements changes we have to change the document manually which is much difficult.

Time and Retrieval Problem: Retrieval of information is time consuming because of large volumes of data and trace particular information a large number of records. Also companies have to arrange meetings with the customers to discuss about the project which is time consuming for customer as well as company.

Storage Problem: The storage is prone to damage with time and due to other environmental and accidental factors. Like SRS and other important documents.

Not Portable: It is difficult to carry information. Paper work is difficult to carry and manage.

Not Secure:Existing system does not secure because any unauthorized person can access and update data.

So there is a need of online project bidding.

Software Requirements Specification

PurposeThe purpose of this document is to present a detailed description of the Project

transaction System. It will explain the purpose and features of the website, the interfaces, what it will do, the constraints under which it must operate and how it will react to external users.

Lovely professional University

Page 12: project transcation

12

System Environment

The project transaction website has four active actors and one cooperating system. The visitors, Clients, or user can access the Online Projects through the Internet. Developer also acts as an actor who develops the projects and bid on them. The Editor accesses the entire system directly.

Functional Requirements Specification

AdminName AdminTrigger Perform admin operations.Precondition Admin have specific username and password.Basic Path Enter username and password on client login page Postcondition Welcome admin.Exception The attempt may be abandoned due to wrong username and

password. Other None

Lovely professional University

Page 13: project transcation

13

Update Site informationName Update site info.Trigger The Admin has the authority to update information of the

site. Precondition Admin must login.Basic Path 1. Login as admin

2. Clicks update site info.3. Add country4. Add language5. Add database6. Add security questions.

Postcondition The database has been updated.

Admin Add/delete projectsName Project add and deleteTrigger The admin add or delete project on the website.Precondition There must be new project to add and must have some project

to delete also.Basic Path 1. Login as admin

2. Click projects3. Add project4. Delete project or5. Edit the project already there in the database.

Postcondition Successfully added, deleted or edited.Exception The admin may abandon the operation at any time.

Admin Add/delete accountsName accounts add and deleteTrigger The admin add or delete accounts of client or developer.Precondition There must be clients/developer whose account is to be

deleted.Basic Path 6. Login as admin

7. Click account8. Delete developer or9. Delete client.

Postcondition Successfully deleted .Exception The admin may abandon the operation at any time.

Lovely professional University

Page 14: project transcation

14

Admin check accounts informationName Accounts info.Trigger The admin check accounts of client or developer.Precondition There must be clients/developer whose account is to be

checked.Basic Path 10. Login as admin

11. Click account12. Click developer or13. Client.

Postcondition Check the accounts detail.Exception The admin may abandon the operation at any time.

User Name userTrigger The user access the website and directly purchase project Precondition The Web is displayed with all the projectsBasic Path 1. The user goes to website.

2. Chooses the technology in which he wants the project.3. Open the category.4. Chose the project.5. Select Purchase.6. Select payment mode.7. Make payment.8. Download the project.

Post condition The selected project is downloaded to the client machine. Exception The user may abandon the purchase.

ClientName ClientTrigger The client operations.Precondition The user registers himself and be a client.Basic Path Enter username and password on Client login page Post condition Client is logged in.Exception The attempt may be abandoned due to wrong username and

password. Other None

Client Add project definitionName Project definition.Trigger The Client sends project specifications.Precondition The Client has access to the client page.Basic Path 14. Login as client

15. Click project definition16. Add description.

Postcondition Description has been added for the new project.Exception The client may abandon the operation at any time.

Lovely professional University

Page 15: project transcation

15

Bid Name bid Trigger The developer selects project to bid Precondition The client has posted projects to make.Basic Path 1. Login as Developer

2. On home page select the project to bid and click on bid option.

3. Enter the bid 4. Enter the time of completion.

Post condition Bid has been made.Exception The developer may abandon the operation at any time.

Client Update ProfileName UpdateTrigger The client has to update some information sometimes. Precondition The client has account and has valid username and password

to login.Basic Path 7. Login as client

8. Click update account9. Enter the information to be updated.

Postcondition The database has been updated.Exception May cause redundancy.

DeveloperName DeveloperTrigger The developers operations.Precondition The developer must registers himself.Basic Path Enter username and password on developer login page Postcondition Developer is logged in.Exception The attempt may be abandoned due to wrong username and

password. Other None

Developer project detailsName Project detailsTrigger The developer wants to see the project developing and

developed.Precondition The developer must have developing or developed some

projects whose detail is there in database.Basic Path 1. Login as developer

2. Click project details3. Click developing projects to see the project on which

the work is going on.4. Otherwise click on completed project.

Postcondition See the description of the projects.

Lovely professional University

Page 16: project transcation

16

Exception The developer may abandon the operation at any time.

Developer Update ProfileName UpdateTrigger The developer has to update some information sometimes. Precondition The developer has account and has valid username and

password to login.Basic Path 10. Login as developer

11. Click update12. Enter the information to be updated.

Post condition The database has been updated.Exception May cause redundancy.

Hardware Requirements specification CPU: INTEL PENTIUM 4 RAM: 256 MB HIRD DISK: 40 GB KEYBOARD & MOUSE 14’’ COLOR MONITOR

Software Requirements specification

OPERATING SYSTEM: WINDOWS XP FRONT END: Microsoft .NET 2008 BACK END: SQL SERVER 2008

Non-Functional RequirementsThe Online Projects will be on a server with high speed Internet capability. The

physical machine to be used will be determined by the Historical Society. The website developed here assumes the use of a tool such as high connection between the Web pages and the database. The speed of the Clients connection will depend on the hardware used rather than characteristics of this system.

The Administrator will contain the Access to the database.

Objectives of the Project

Objective of this project is to provide a complete environment for project buyers and freelance programmers where they meet to each other and discuss all aspects about their

Lovely professional University

Page 17: project transcation

17

needs, and make a complete database containing all the information regarding the projects of freelance programmers and requirement of project buyers. Project transaction offers companies a flexible and cost-effective way to get work done on-line because there are different projects available for designing at different time period with different costs. There are independent professionals, which provide independent service to each user.

The following objectives have been set: Smooth flow of data without any hurdles. Adequate validation checks for data entry. Adequate security of data. Facility to update data from time to time. Prompt and specific retrieval of data. Flexibility in the system according to the changing environment. Controlling redundancy in storing the same data multiple times. Accuracy, timeliness and comprehensiveness of the system output.

METHODOLOGY ADOPTED:

Because of object oriented support in .NET, various concepts are already there but for the efficient management of system components, Component based Software Engineering will also be exercised which will help in a resultant library of components, the benefit of which will be reusability and fast development.

Because of lack of hierarchical structure in object oriented approach, there is no meaning of Bottom-up or Top-down testing. Testing will begin from the most rudimentary levels of the system and will move towards higher level components which will be based on design phase rather than coding phase.

DETAILS OF VARIOUS TECHNOLOGIES USED

OVERVIEW OF .NETThe Microsoft .NET Framework is a software framework that can be installed on computers running Microsoft Windows operating systems. It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework. The .NET Framework is a Microsoft offering and is intended to be used by most new applications created for the Windows platform.

Lovely professional University

Page 18: project transcation

18

The framework's Base Class Library provides a large range of features including user interface, data and data access, database connectivity, cryptography, web application development, numeric algorithms, and network communications. The class library is used by programmers, who combine it with their own code to produce applications.Programs written for the .NET Framework execute in a software environment that manages the program's runtime requirements. Also part of the .NET Framework, this runtime environment is known as the Common Language Runtime (CLR). The CLR provides the appearance of an application virtual machine so that programmers need not consider the capabilities of the specific CPU that will execute the program. The CLR also provides other important services such as security, memory management, and exception handling. The class library and the CLR together constitute the .NET Framework.

Interoperability Common Language Runtime Engine Language Independence Base Class Library Simplified Deployment Security Portability

These are the new features in .net framework 4.0 which help to make an efficient and effective website.

Lovely professional University

Page 19: project transcation

19

VISUAL STUDIO .NET:

VS.NET is just an editor, provided by Microsoft to help developers write .NET programs easily.VS.NET editor automatically generates lot of code, allow developers to drag and drop controls to a form, provide short cuts to compile and build the application etc. Visual Basic 2010 adds many features and tools that make your development experience more productive.

ASP.NET:

ASP.NET is a web application framework developed and marketed 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.

Lovely professional University

Page 20: project transcation

20

The Following Diagrams explains in detail:-

SQL Server:

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. 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.

Other new data types include specialized date and time types and a Spatial data type for location-dependent data. Better support for unstructured and semi-structured data is provided using the new FILESTREAM data type, which can be used to reference any file stored on the file system. Backing up and restoring the database backs up or restores the referenced files as well. SQL Server 2008 also natively supports hierarchical data, and includes T-SQL constructs to directly deal with them, without using recursive queries

Analysis ServicesSQL Server 2008 helps enable organizations to build comprehensive, enterprise-scale analytic solutions that deliver actionable insights through familiar tools.

Application and Multi-Server Management in R2Investments in application and multi-server management will help organizations proactively manage database environments efficiently at scale through centralized visibility into resource utilization and streamlined consolidation and upgrade initiatives across the application lifecycle—all with tools that make it fast and easy.

CompressionUse the built-in Data Compression and Backup Compression features of SQL Server 2008 R2 to reduce data storage costs and help to ensure optimal performance for your mission-critical applications.

Lovely professional University

Page 21: project transcation

21

Data MiningSQL Server 2008 empowers informed decisions with predictive analysis through complete and intuitive data mining, seamlessly integrated throughout the Microsoft BI platform, and extensible into any application.

High Availability—Always OnSQL Server 2008 Always On Technologies provides a full range of options to  minimize downtime and maintain appropriate levels of application availability.

Integration ServicesSQL Server 2008 provides a scalable enterprise data integration platform with exceptional ETL and integration capabilities, enabling organizations to more easily manage data from a wide array of data sources.

ProgrammabilityDiscover how SQL Server 2008 enables developers to build powerful, next-generation database applications with the .NET Framework and Visual Studio Team System.

Security Microsoft SQL Server 2008 offers security feature enhancements that help provide effective management of security feature configuration, strong authentication and access control, powerful encryption and key management capabilities, and enhanced auditing.

Database Interconnectivity ADO.NET

ADO.NET allows you to interact with relational databases and other data sources. Quite simply, ADO.NET is the technology that .NET applications use to communicate with a database, whether they need to add a new customer record, log a purchase, or display a product catalogue. Almost every piece of software ever written works with data. In fact, a typical Internet application is often just a thin user interface shell on top of a sophisticated database program that reads and writes information from a database on the web server. At its simplest, a database program might allow a user to perform simple searches and display results in a formatted table. A more sophisticated .NET application might use a database behind the scenes to retrieve information, which is then processed and displayed in the appropriate format and location in the browser. The user might not even be aware that the displayed information originates from a database. Using a database is an excellent way to start dividing the user interface logic from the content, which allows you to create a site that can work with dynamic, easily updated data. .NET has a few characteristics that make it different from previous data access technologies.

Lovely professional University

Page 22: project transcation

22

The Data Set

Many ADO.NET tasks revolve around a new object called the DataSet. The DataSet is a cache of information that has been queried from your database. The innovative features of the Data Set are that it’s disconnected and can store more than one table.

Disconnected Access Disconnected access is the one of the most important characteristics of ADO.NET and perhaps the single best example of the new .NET philosophy for accessing data. With previous database access technologies, it’s easy to hold open a connection with the database server while your code does some work. This live connection allows you to make immediate updates, and you can even see the changes made by other users in real time.

FEASIBILITY ANALYSES

Feasibility study is done so that an ill-conceived system is recognized early in definition phase. During system engineering, however, we concentrate our attention on four primary areas of interest. This phase is really important as before starting with the real work of building the system it was very important to find out whether the idea thought is possible or not.

Economic Feasibility: An evaluation of development cost weighted against the ulti-mate income or benefit derived from the developed system.

Technical Feasibility: A study of function, performance and constraints that may affect the ability to achieve an acceptable system.

Behavioral feasibility: A study about the reaction of the user staff towards the de-velopments of the computerized system.

Operational Feasibility: A study about the operational aspects of the system.

Economical FeasibilityEconomic feasibility looks at the financial aspects of the project. Economic feasibility concerns with the returns from the investments in a project. It determines whether it is worthwhile to invest the money in the proposed system. It is not worthwhile spending a lot of money on a project for no returns.The tools and technology used for the development of this software are purchased economically.

Lovely professional University

Page 23: project transcation

23

Technical Feasibility

Technical feasibility determines whether the work for the project to be done with the represent equipments, current procedure, existing software technology & available personnel.If new technology is needed, then what alternatives will be needed in the present structure?This will require an examination of the present system.

The following technical feasibility areas were probed during the feasibilityStudy phase:The necessary technology like front end development tool, back end database technology and various other tools namely reporting tool, installation tools etc, are available for developing the system.

The proposed equipments have the technical capacity to hold the data required for the system.The front end & backend technologies provide a way to preserve the accuracy, ease of access & data security.

The system will technically support all of the user activities SQL Server is used as a backend has a capacity to store huge amounts of data. SQL Server is more user Friendly The system is flexible enough to support future enhancements or up gradations.

Operational Feasibility

Operational feasibility states that the system should work under condition for to be operationally feasible or not. Operational feasibility covers two aspects. One is the technical performance aspect and other is the acceptance of the “Project Transaction”. Operational feasibility determines how the proposed system will fit in the current operations and what, if any job restructuring and retraining may be needed to implement the system. In the system operational feasibility checks, whether the user who is going to use the system is able to work with the software’s with which the system is coded and also the mind of the user going to use the system. If the user does not understand or is not able to work on the system further development is of waste.

The system will meet the operational requirements of the organization like:

1. System performance2. Accessibility of information3. User acceptance4. Integration with other systems

Lovely professional University

Page 24: project transcation

24

BEHAVIORAL FEASIBILITYBehavioral feasibility estimates the reaction of the user staff towards the developments of the computerized system. In case of this system, the staff was completely in favor of automating the process of salary generation as it saved their precious time energy and moreover the system when implemented would help remove inconsistencies, redundancy error that might be associated with existing system. So it might be said that the behavioral feasibility analysis yielded positive results. Hence the system is Behavioral feasible.

Scheduled Feasibility

System Analysis

Projects are initiated with specific deadline as time is one of the critical factors in the development of any system. To check whether the project can be completed within the time bounds it is undertaken as part of schedule feasibility study.We were three members working on the project and we had the project duration of four months only. So we have tried our level best to fulfill each and every requirement of our client. Thus the system has schedule feasibility.

Resource Feasibility:

Resource Feasibility study is undertaken to ensure that the organization has the resources to succeed. The system is developed using Microsoft Visual Studio.Net 2005 and Microsoft SQL Server. All these are already present in the company and are readily available to us. So the project is resource feasible.

Implementation Feasibility

The system is developed using Microsoft Visual Studio .Net as front end and Microsoft SQL Server as backend and so doesn’t require installation of any additional software for the implementation. Hence there is no additional cost associated with the implementation. Moreover, the system needs to be installed only on one PC. This ensures implementation feasibility.

Lovely professional University

Page 25: project transcation

25

PROJECT PLAN

TEAM STRUCTURE

We are two team members in this project. My project guide is very able and helpful. Initially, I started with the analyses of the existing system and the problems faced with it. Thereafter, the solution strategy i.e. how to replace the existing manual system with the online system was found out. I did very hard work and spend great deal of my time in learning new things in various technologies that were new for me.

DEVELOPMENT SCHEDULE

The work for the development of the new system commenced after about a month of joining because .Net 4.0 have some new feature from which we were not aware and it take some time to understand and learn about those new features. Thereafter I was in continuous touch with the management staff of appin technologies.

PHASES INVOLVED IN THE PROJECTThe project consists of three main modules.

Admin module

Client module

developer module

SYSTEM DESIGN

INTRODUCTIONSystem design is the process of developing specifications for a candidate system that meet the criteria established in the system analysis. Major step in system design is the preparation of the input forms and the output reports in a form applicable to the user. The main objective of the system design is to make the system user friendly.

System design is the creative act of invention, developing new inputs, a database, offline files, procedures and output for processing business to meet an organization objective. System design builds information gathered during the system analysis.

Lovely professional University

Page 26: project transcation

26

The input design is the link between the information system and the user. It comprises developing specification and procedure for data preparation 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 into the system. The design of inputs focuses on controlling the amount of inputs required, controlling errors, avoiding delay, avoiding extra steps and keeping the process simple.

The system needs the following information for processing:

Information regarding Project Details

Information regarding Project Design Details

Information regarding Category, Location Details

Information Employees Details

In output design, emphasis is given on producing a hard copy of the information required as the output on the CRT screen in some predefined manner. Computer output is the most important and direct source of information to the use.

CHARACTERISTICS OF WELL DESIGNED SYSTEMIn design an efficient and effective system is of great importance to consider the human factor and equipment that these will require to use. System analyst must evaluate the capabilities and limitations of the personal and corresponding factors of the equipment itself.The characteristics associated with effective system operations are:

Accessibility Decision Making Ability Economy Flexibility Reliability Simplicity 

Success is a new system pivots on its acceptance or non-acceptance by the organization. 

Lovely professional University

Page 27: project transcation

27

Modules

Admin administrator has all the authority. This module has functionality like

Delete Clients/Developers Account Add/delete Language/database in the site Update Website data e.g. (country, Security Question etc...) Show the account information of the clients/developers Upload new project Delete projects Whole site under control by Admin

Developer developers are who, who will make the projects and also can bid for the projects specified by the client. This module will have the functionality like:-

Can Upload Requested Project Can bid on the project Show the personal account Can communicate to the clients.

Search projects on the site Bid on a project Employer escrows money Work commences! Get paid!

Lovely professional University

Page 28: project transcation

28

Clients are who will post for the project according to their specification. This module will have the functionality like:-

Client can request the project Client can specify their requirements Client can download the project Client can show personal account detail Clients can communicate to the developers.

Post a project Receive bids on your project immediately Compare quotes and ask questions Select a bidder Create a payment for the first milestone or deliverable Work commences! Once you are completely happy, release payment

User: - are the simple users who will search for the project on the application and buy it directly through the shopping cart.

They can search for the project User can purchase the project using shopping cart

Lovely professional University

Page 29: project transcation

CLIENTS (buyers)

29

Data flow diagram

(Level - 0)

Data Flow Diagram (Level-1)

Lovely professional University

Page 30: project transcation

30

Lovely professional University

Page 31: project transcation

DEVELOPER

9.0 Show developing projects

DEVEPLORER REG

8.0Show all client’s requested Projects 7.0

Login

10.0Bid on the requested project

11.0 Developer Account Detail

PROJECT REQUEST

DEVELOPINGPROJECT

12.0 Update Profile

DEVELOPER ACCOUNT

DEVELOPER REG

BIDMASTER

View Detail

View detail

getdata

Insert data

Show inserted data

View account

Get Data

Update data

Show update data

Match UserName

Match Password

If success

Authentication

Match Data

Get data

BID MASTER

31

Lovely professional University

Page 32: project transcation

ADMIN

7.0 Login

CLIENT REG

SECURITY QUESTION

Match UserName

Match PasswordAuthentication

7.0 Manage the website data(insert, update, delete data)

DEVELOPER REG

DATABASE MASTER

COUNTRY MASTER

LANGUAGE MASTER

32

Lovely professional University

Page 33: project transcation

Visitor

Visit Site and can see site data

33

User:-

User Use Case

Brief DescriptionThe visitor can only see the site data or projects. To purchase them he has to register himself first.

Lovely professional University

Page 34: project transcation

34

Client Module:-

Brief DescriptionThe Client submits their own requirements for the project.

Clients Use CasesThe Editor has the following sets of use cases:

Lovely professional University

Page 35: project transcation

35

Developer Use CasesThe Editor has the following sets of use cases:

The Visitor has to register himself to purchase the project. State-transition diagram summarizes the Process.

Lovely professional University

Page 36: project transcation

36

Admin

ENTITY RELATIONSHIP DIAGRAM

Definition:An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database. ER diagrams often use symbols to represent three different types of information. Boxes are commonly used to represent entities. Diamonds are normally used to represent relationships and ovals are used to represent attributes.Also Known As: ER Diagram, E-R Diagram, entity-relationship model

Lovely professional University

Page 37: project transcation

37

Use Case Diagram

A use case specifies the behaviour of a system or a part of a system and is a description of a set of sequences of actions, including variants that a system performs to yield an observable result of value to an actor. A use case describes a set of sequences, in which each sequence represents the interaction of the things outside the system (its actors) with the system itself (and its key abstractions). These behaviours are in effect system-level functions that you use to visualize, specify, construct, and document the intended behaviour of your system during requirements capture and analysis. A use case represents a functional requirement of your system as a whole.

Lovely professional University

Page 38: project transcation

38

Lovely professional University

Page 39: project transcation

39

Lovely professional University

Page 40: project transcation

40

Use case Diagram for client

Lovely professional University

Page 41: project transcation

41

use case diagram for developer

Lovely professional University

Page 42: project transcation

42

DATABASE TABLES

The overall objective in the development of the database technology has been to treat data as an organizational resource and as an integrated whole. Database management system allows data to be protected and organize separately from other resources. Database is an integrated collection of data. The most significant of data as seen by the programs and data as stored on the direct storage access storage devices. This is the difference between logical and physical data. The organization of data in the database aims to achieve free major objectives: 

Data Integration Data Integrity Data Independence 

The databases are implemented using a DBMS package. Each particular DBMS has unique characteristics and general techniques for Database Design.

The proposed Management Information System stores the information relevant for processing in the Microsoft SQL Server Database. This MS SQL Server contains tables, where each table is called a field or column. A table also contains records which is a set of fields. All records, in a table the same set of fields with different information. Each table contains key fields that establish relationships in a MS SQL server database and how the records are stored. There are primary key fields that uniquely identify a record in a table. There are also fields that contain the primary key from another table called foreign keys.

It is a known fact that the program cannot be written until the data are defined, so the database must be defined. The starting point for this process is data dictionary. The records data structures and elements to be stored in each database are identified and extracted. Next the analyst codes the source statements library. Eventually, the programmer will incorporate the source code into the various programs, thus assuring consistency and simplifying the coding process. The databases have been designed in such a way that there is no duplication of information and loss of information. 

Lovely professional University

Page 43: project transcation

43

Client ModuleTable -1Table Name: Client RegistrationPrimary Key: User Name

Attributes Data Type Size DescriptionClient ID Int Client ID Auto generateFirst Name Varchar 30 Name of the Client’sLast Name Varchar 30 Client’s Last NameAddress Varchar 100 AddressCity Varchar 30 City Name of client Zip code Varchar 8 Zip code of citySate 30 State nameCountryID Int Reference to Country Master

table Gender Char 5 Gender of clientDate of Birth Datetime Birth date of clientUser Name Varchar 50 Clients Login Name Password Varchar 20 Password for login Email-ID Varchar 50 Clients Email_IDMobile Number Varchar 15 Client’s mobile noSecurity QuestionID

Varchar Int Reference to Security Question Master table

Answer Varchar 50 Answer to get Password if Forgot

Table -2Table Name: Project RequestPrimary Key: Request ID Attributes Data Type Size DescriptionRequest ID Int Auto GenerateClient ID Int Reference to client

Registration Project Name Varchar 100 Requested Project NameLong Description

Varchar (Max) Project’s Description

Job Type Varchar (Max) In which technology use for

Lovely professional University

Page 44: project transcation

44

developing Request Date Datetime Date of requested projectBudget Varchar 20 Client’s Budget for Requested

Project

Table -3Table Name: Clients AccountPrimary Key: AccountID Attributes Data Type Size DescriptionAccount ID Int Auto generate Client ID Int Clients ID (Reference to

Project Request table)Project ID Int Project ID (Reference to Project

Request table)Price Bigint Project PricePaid Amount Bigint Advanced Payment of projectRemaining Amount

Bigint Remaining Amount Of Paroject

Table -4Table Name: Clients Message MasterPrimary Key: ClientMsgID

Attributes Data Type Size DescriptionClient MsgID Int Auto Generate Client ID IntSend From Varchar 50 Send message from which

personSubject Varchar 50 Subject of messageMessage Varchar Max Message DescriptionMessage Date Datetime When Message sendProject ID Int Requested Project ID (reference

to Project Requested table )

Lovely professional University

Page 45: project transcation

45

Developer Module

Table -5Table Name: Developer RegistrationPrimary Key: User Name

Attributes Data Type Size DescriptionDeveloper ID Int Developers ID Auto generateFirst Name Varchar 30 Name of the Developer’sLast Name Varchar 30 Developer’s Last NameAddress Varchar 100 AddressCity Varchar 30 City Name of DeveloperZip code Varchar 8 Zip code of citySate 30 State nameCountryID Int Reference to Country Master

table Gender Char 5 Gender of DeveloperDate of Birth Datetime Birth date of DeveloperUser Name Varchar 50 Developer’s Login Name Password Varchar 20 Password for login Security QuestionID

Varchar Int Reference to Security Question Master table

Answer Varchar 50 Answer to get Password if Forgot

Email-ID Varchar 50 Developer’s Email-IDMobile Number Varchar 15 Developer’s mobile no

Table -6Table Name: Bid Master

Primary Key: Bid ID

Attributes Data Type Size DescriptionBidID Int ID of bidProjectID Int Requested ProjectID (reference

to Project Request)DeveloperID IntClientID Int BidDate Datetime Date of bidding Bid Amount Int Bidding Amount

Lovely professional University

Page 46: project transcation

46

Day of Completed Project

Int How many day take developer for project completion

Status Varchar(10) Status of project

Table -7Table Name: Developing Projects

Primary Key: DevelopingProjectID

Attributes Data Type Size DescriptionDeveloping Project ID

Int ID of Project Developing

Requested Project ID

Int Requested Project ID (reference to Project Request)

ClientID IntDeveloperID Int Is Developed Varchar 10 Project is Running or

CompletedStartDate Datetime Project Start DateBidID Int Clients select bid id insert here

Table -8Table Name: Developer Account

Primary Key: Account ID

Attributes Data Type Size DescriptionAccountID Int Auto generate DeveloperID Int DeveloperID Who developed

ProjectClientID Int He/her send Project RequestProjectID Int Developed ProjectIDEarnAmt Bigint Project Price Earn Developer

Lovely professional University

Page 47: project transcation

47

Table -9Table Name: Upload Project

Primary Key: ProjectUploadIDAttributes Data Type Size DescriptionProjectUploadID Int Auto generateClientID Int ClientID who request the

ProjectDeveloperID Int DeveloperID who Upload the

ProjectProjectID Int Project ID (reference to Project

Requested table)UploadDate Datetime Upload dateUploadPath Varchar 50 Uploaded Project Path

Admin Module

Table -10Table Name: Country MasterPrimary Key: CountryID

Attributes Data Type Size DescriptionCountry ID Int Auto generateCountry Name Varchar 30 Country Name

Table -11Table Name: Security Question MasterPrimary Key: QuestionID

Attributes Data Type Size DescriptionQuestionID Int Auto GenerateQuestion Varchar 100 Security Question

Table -12Table Name: Language MasterPrimary Key: LanguageID

Attributes Data Type Size DescriptionLanguageID Int Auto generate Language Name Varchar 50 Language (e.g JAVA,.net)

Table -13

Lovely professional University

Page 48: project transcation

48

Table Name: Databse MasterPrimary Key: DatabseID

Attributes Data Type Size DescriptionDatabseID Int Auto generate Databse Name Varchar 50 Language (e.g JAVA,.net)

Table -14Table Name: Project MasterPrimary Key: ProjectID

Attributes Data Type Size DescriptionProjectID Int Auto generate ProjectName Varchar 100 Name of the ProjectProject Desc Varchar Max Project Description Amount Int Project PriceLanguageID Int In which language project is

developedDatabseID Int Which databse use int the

projectPath Varchar 50 Project path

Testing

Functional testing (black box testing)Black box tests are performed to access how well a program meets its requirements, looking for incorrect or missing functionality. Functional tests typically exercise code with valid or nearly valid input for which the expected output is known. This includes concepts such as ‘boundary values’.Performance tests evaluate response time, memory usage, throughput, device utilization and execution time. Stress tests push the system to or beyond its specified limits to evaluate its robustness and error handling capabilities. Reliability tests monitor system response to representative user input, counting failures over time to measure or certify reliability.

Lovely professional University

Page 49: project transcation

49

Structural testing (white box testing)

White box testing is performed to reveal problems with the internal structure of a program. This requires the tester to have detailed knowledge of the internal structure. A common goal of white box testing is to ensure a test case exercises every path through a program. A fundamental strength that all white box strategies share is that the entire software implementation is taken into account during testing, which facilitates error detection even when software specification is vague or incomplete. The effectiveness or thoroughness of white box testing is commonly expressed in terms of test or code coverage metrics, which measure the fraction of code exercised by test cases.

Levels of testing:

Client Acceptance testing Needs

Requirements System testing

Design Integration testing

Code Unit testing

Lovely professional University

Page 50: project transcation

50

Unit Testing:- This testing is done for each module of the program to ensure the validity of each module. This type of testing is done usually by developers by writing test cases for each scenarios of the module and writing the results occurring in each step for each module.

Intergration Testing:- By making unit testing for each module as explained the process of integrated testing as a whole becomes simpler. This is because by correcting mistakes or bugs in each module the integration of all units as a system and testing process becomes easier. This testing is needed because unit testing does not cover the aspects of how the system would behave or what error would be reported when modules are integrated .This is done in the level of integration testing.

System Testing:-User Acc System testing of software or hardware is testing conducted on a complete, integrated system to evaluate the system's compliance with its specified requirements. System testing falls within the scope of black box testing, and as such, should require no knowledge of the inner design of the code or logic. 

As a rule, system testing takes, as its input, all of the "integrated" software components that have successfully passed integration testing and also the software system itself integrated with any applicable hardware system(s). The purpose of integration testing is to detect any inconsistencies between the software units that are integrated together (called assemblages) or between any of the assemblages and the hardware. System testing is a more limited type of testing; it seeks to detect defects both within the "inter-assemblages" and also within the system as a whole.

User Acceptance Testing:- User acceptance testing (UAT), is the term used when the acceptance tests are performed by the person or persons who will be using the live system once it is delivered. If the system is being built or developed by an external supplier, this is sometimes called customer acceptance testing (CAT). The UAT or CAT acts as a final confirmation that the system is ready for go-live. A successful acceptance test at this stage may be a contractual requirement prior to the system being signed off by the client.

Regression Testing:- We all know that development life cycle is subjected to continuous changes as per the requirements of user. Suppose if there is a change in the existing system

Lovely professional University

Page 51: project transcation

51

which has already been tested then to insure that these changes made to the existing system do not affect the existing functionality regression testing is needed.

We have tested all the validations functionality of the website.

Some test Cases for Testing project transaction:

1) Title: Enter the values in the Textbox of the client and developer name.Test case: Entering valuesStep: Try to give different values or blank textbox etc.Expected result: values should be accepted according to their data type and error msg should be shown for blank textbox.Actual result: On the wrong inputs error message is shown otherwise the values are accepted.

1) Title: Enter the values in the Textbox of the client and developer details.Test case: Entering valuesStep: Try to give different values or blank textbox etc.Expected result: valuec should be accepdted according to their data type.Actual result: On the wrong inputs error message is shown other wise the values are accepted.

2) Title: Enter the wrong username and password.Test case: Entering wrong password valuesStep: Try to give different wrong values.Expected result: Only valid password should be accepted and error msg should be shown for blank textbox.Actual result: Character accepted for valid and error message for wrong entry.

5) Title: Enter the wrong account no.Test case: wrong accountStep: Enter wrong username or password.Expected result: only accurate account numbers should be accepted.Actual result: result was appropriate.

Lovely professional University

Page 52: project transcation

52

6) Title: sql injection crack. Test case: sql injection.Step: enter the sql injection user name and password.Expected result: it should not open any account on that uaername and password.Actual result: it gives a message of user name and password.

7) Title: check for the options for going back.Description:Test case: Options.Step: check if all the pages have link button to go back to the home page or other pages.Expected result: There should be some options given to return to main menu.Actual result: there was a menu options and sigh out button which we can chose different options.

8) Title: GUI interface Test case: screen resolution.Step: Running website on different screen resolution.Expected result: website should be run in almost all resolution.Actual result: it does not have any effect on Screen resolution.

9) Title: Checking the upload file option.Test case: upload fileStep: upload any type of the file to check Expected result: it should only accept the .zar otherwise it should message.Actual Result: a message was shown on the wrong file.

There I s lots more testing we have done on our project.

Project statusThe project is completed.

Lovely professional University

Page 53: project transcation

53

User manual

Home page

First page of the site Home page show the readymade projects If u select java project then show only java project, if u select .net project show .net

project click on purchase button show below screen

Lovely professional University

Page 54: project transcation

54

.Net Projects

Java Projects:

Lovely professional University

Page 55: project transcation

55

PHP Projects:

Lovely professional University

Page 56: project transcation

56

Click the Buy Now button open Pay Pal site and pay the amount of project using credit card

Show the download button after pay the price user can download project

CLIENT:

Lovely professional University

Page 57: project transcation

57

Client Login

Client Home page

Client login page, users may be clients or developers client Client must required registration, click on the registration button Show registration page

Developer:-

Lovely professional University

Page 58: project transcation

58

Developer registration form:-The above page is for developer registration which includes following details to fill:-

Full name of the developer Address of the developer City name Zip code State Country (select from dropdown list) Gender Date of birth Mobile number(for contact) Username Password Confirm password

Lovely professional University

Page 59: project transcation

59

My Project Definition:

In this form Project Definition is store which contains following details:1. Project name2. Description of the project and its details3. Type of project(select the checkbox)4. Budget detail

Project Bid Details:

Lovely professional University

Page 60: project transcation

60

This page contain all the detail of bidding project.which include

project name bid date bid amount days of completion job type.

Update Profile:

Lovely professional University

Page 61: project transcation

61

This page is to update the profile information for developer.

Admin:

Lovely professional University

Page 62: project transcation

62

Home:

This is the home page of admin. Which have all the authorities to update or see the information.

Lovely professional University

Page 63: project transcation

63

Admin can update the site information select “update site”

Add Project:

Lovely professional University

Page 64: project transcation

64

Add/Delete Projects:

Admin can add or delete the projects from the website By click on delete or edit to edit information.

Lovely professional University

Page 65: project transcation

65

Client Account Details:

Developer Acc Details:

Lovely professional University

Page 66: project transcation

66

Delete Developer:

Delete Clients:

Lovely professional University

Page 67: project transcation

67

Individual Client View Details:

Send Mail Service:

Lovely professional University

Page 68: project transcation

68

Developer:

Login:

Home:

Lovely professional University

Page 69: project transcation

69

Developing …..

Lovely professional University

Page 70: project transcation

70

Update Profile:

Account

Information:

Lovely professional University

Page 71: project transcation

71

Project Purchasing:

Download Project:

Lovely professional University

Page 72: project transcation

72

About Us:

Source code:-

Stored procedures

Stored Procedure1: AdminSP

ALTER PROCEDURE AdminSP

@mode as varchar(50)='',@devID as integer=0,@ClientID as integer=0,

/*Add Project*/@projectnm as varchar(100)='',@projectDescr as varchar(MAX)='',@price as integer =0,@langID as integer=0,

Lovely professional University

Page 73: project transcation

73

@databseID as integer=0,@ProjectPath as varchar(MAX)='',

@contry as varchar(30)='',@language as varchar(50)='',@database as varchar(50)='',@securityQue as varchar(100)=''

AS

if @mode='ShowDevloperDate'SELECT FirstName, DevloperID, UserName, EmailID

FROM DevloperReg

if @mode='DeleteDev'DELETE FROM DevloperRegWHERE (DevloperID = @devID)

if @mode='ShowDeveloperInfo'SELECT DR.DevloperID, DR.FirstName, DR.LastName, DR.Address, DR.City,

DR.State, CM.ContryName, DR.Gender, DR.UserName, DR.Password, DR.EmailID, DR.MobileNoFROM DevloperReg AS DR INNER JOIN ContryMaster AS CM ON DR.ContryID = CM.ContryIDWHERE (DR.DevloperID = @devID)

if @mode='ddllanguage'select * from LanguageMaster

if @mode='ddldatabase'select * from DatabaseMaster

if @mode='AddProject'INSERT INTO ProjectMaster

(ProjectName, Projectdesc, Amount, LanguageID, DatabaseID, Path) VALUES (@projectnm,@projectDescr,@price,@langID,@databseID,@ProjectPath) if @mode='ClientA/C' SELECT PR.RequestID, PR.ProjectName, PR.RequestDate, PR.JobType, CA.PaidAmount, CA.RemainingAmount, CA.PriceFROM ClientAccount AS CA INNER JOIN ProjectRequest AS PR ON CA.ProjectID = PR.RequestIDWHERE (CA.ClientID = @ClientID)

if @mode='showProDetail'SELECT PR.ProjectName, DP.Isdevloped, DP.StartDate, PR.JobType

FROM DevloperReg AS DR INNER JOIN

Lovely professional University

Page 74: project transcation

74

DevlopingProject AS DP ON DR.DevloperID = DP.devloperID INNER JOIN ProjectRequest AS PR ON DP.RequestedPeojectID = PR.RequestIDWHERE (DR.DevloperID = @devID)

if @mode='ShowClientDate'SELECT FirstName, ClientId, UserName, EmailID FROM ClientReg if @mode='DeleteClient' DELETE FROM ClientReg

WHERE (ClientID = @ClientID)

if @mode='ShowClientInfo'SELECT CR.ClientId, CR.FirstName, CR.LastName, CR.City, CR.State,

CM.ContryName, CR.Gender, CR.Dateofbirth, CR.UserName, CR.Password,CR.MobileNumber, CR.EmailID

FROM ClientReg AS CR INNER JOIN ContryMaster AS CM ON CR.ContryID = CM.ContryID

WHERE(CR.ClientId = @ClientID) if @mode='showProDetailforClient' SELECT PR.RequestID AS ProjectNo, PR.ProjectName, PR.JobType AS Language, DevlopingProject.Isdevloped AS StatusFROM ProjectRequest AS PR INNER JOIN ClientReg AS CR ON PR.ClientID = CR.ClientId INNER JOIN DevlopingProject ON PR.RequestID = DevlopingProject.RequestedPeojectIDWHERE (CR.ClientId = @ClientID)

if @mode='addcontry'insert into ContryMaster (ContryName) values (@contry)

if @mode='addlanguage'insert into LanguageMaster (LanguageName) values (@language)

if @mode='adddatabase'insert into DatabaseMaster (DatabaseName) values (@database)

if @mode='addquestion'insert into SecurityQuestionMaster (Question) values (@securityQue)

RETURN

Stored Procedure2:StoredProcedure1ALTER PROCEDURE StoredProcedure1

@mode as varchar(50)='', @firstname as varchar(50)='',

@lastname as varchar(50)='',

Lovely professional University

Page 75: project transcation

75

@address as varchar(50)='', @city as varchar(50)='', @zipcode as varchar(50)='', @state as varchar(50)='', @contryid as integer=0, @gender as varchar(50)='', @dateofbirth as varchar(20)='', @username as varchar(50)='', @password as varchar(50)='', @emailid as varchar(50)='', @mobileno as varchar(12)=0, @securityq as integer=0, @answer as varchar(50)='', @contry as varchar(30)='', @language as varchar(30)='', @database as varchar(30)='', @mode1 as varchar(50)='', @username1 as varchar(50)='', @password1 as varchar(50)='', @clientusername as varchar(50)='', /* project Request */

@clientid as integer=0,

@projectname as varchar(50)='', @longdisc as varchar(Max)='', @jobtype as varchar(MAX)='', @requestdate as datetime=0, @budget as varchar(20)='', @getprojectid as integer=0, @devloperusername as varchar(50)='', @requestedprojectid as integer=0, /*inser bid data*/ @projectid as integer =0, @devloperid as varchar(20) ='', @biddate as datetime =0, @lastbid as integer =0, @dayofcomplitedpro as integer =0, /* project running detail */ @requestprojectid as integer=0, @isdevloped as varchar(10)='', /* Client A/C dertail*/

Lovely professional University

Page 76: project transcation

76

@projectamount as integer=0, @paidamt as integer=0, @remamt as integer =0, @sendfrom as varchar(50)='', /* upload project*/ @subject as varchar(50)='', @message as varchar(max)='', @msgdate as datetime=0, @projectpath as varchar(max)='', @clientmsgid as integer=0, @price as integer=0, @projectAmt as bigint=0, @ProjectStatus as varchar(15)='', @Lang as varchar(20)='', @Pur_projectid as integer=0, @bidid as integer=0

AS

if @mode='insertregdata'insert into ClientReg

(FirstName,LastName,Address,City,ZipCode,State,ContryID,Gender,Dateofbirth,UserName,Password,EmailID,MobileNumber,SecurityQuestionID,Answer) values

(@firstname,@lastname,@address,@city,@zipcode,@state,@contryid,@gender,@dateofbirth,@username,@password,@emailid,@mobileno,@securityq,@answer)

if @mode='contry'select * from ContryMaster

if @mode='securityque'select * from SecurityQuestionMaster

if @mode='clientlogin'select count(*) from ClientReg where UserName=@username and

Password=@password if @mode='showrequestedproject'

Lovely professional University

Page 77: project transcation

77

SELECT DATEDIFF(D, GETDATE(), RequestDate + 5) AS LeftDay, RequestDate, RequestID, ProjectName, JobType, ClientID, (SELECT MIN(BidAmount) AS Expr1 FROM BidMaster AS BM WHERE (ProjectID = PR.RequestID)) AS MinBidFROM ProjectRequest AS PRWHERE (DATEDIFF(D, RequestDate, GETDATE()) <= 5) AND (RequestID NOT IN (SELECT RequestedPeojectID FROM DevlopingProject))

if @mode='showselectedproject'SELECT DATEDIFF(D, GETDATE(), RequestDate + 5) AS LeftDay,

RequestDate, RequestID, ProjectName, JobType, ClientID, (SELECT MIN(BidAmount) AS Expr1 FROM BidMaster AS BM WHERE (ProjectID = PR.RequestID)) AS MinBidFROM ProjectRequest AS PRWHERE (DATEDIFF(D, RequestDate, GETDATE()) <= 5) AND (RequestID NOT IN (SELECT RequestedPeojectID FROM DevlopingProject)) AND (PATINDEX('%' + @Lang + '%', JobType) > 0)

if @mode='showselectedproject_Clients'SELECT PM.ProjectID, PM.ProjectName, PM.Amount, LM.LanguageName

FROM ProjectMaster AS PM INNER JOIN LanguageMaster AS LM ON PM.LanguageID = LM.LanguageIDWHERE (PATINDEX('%' + @language + '%', LM.LanguageName) > 0)

if @mode='showallprojects'SELECT PM.ProjectID, PM.ProjectName, PM.Amount, LM.LanguageNameFROM ProjectMaster AS PM INNER JOIN

LanguageMaster AS LM ON PM.LanguageID = LM.LanguageID

if @mode='devloperreg'insert into DevloperReg

(FirstName,LastName,Address,City,ZipCode,State,ContryID,Gender,DateofBirth,UserName,Password,EmailID,MobileNo,SecurityQuestionID,Answer)values

(@firstname,@lastname,@address,@city,@zipcode,@state,@contryid,@gender,@dateofbirth,@username,@password,@emailid,@mobileno,@securityq,@answer)

if @mode='devloperlogin'select count(*) from DevloperReg where UserName=@username and

Password=@password

Lovely professional University

Page 78: project transcation

78

if @mode='getclientid'select ClientID from ClientReg where UserName=@clientusername

if @mode='clientrequest'insert into ProjectRequest(ClientID,ProjectName,LongDiscription,JobType,RequestDate,Budget) values(@clientid,@projectname,@longdisc,@jobtype,@requestdate,@budget)

if @mode='clientinbox'select ClientMsgID,Subject,Message,MsgDate from ClientMsgMaster where

ClientId=@ClientID

if @mode='showprojectdetail'select * from ProjectMaster where ProjectID=@getprojectid

if @mode='getdevlopermsg'select * from DevloperMsgMaster

if @mode='cupdatepro'select * from ClientReg where UserName=@clientusername

if @mode='getdevloperid'select DevloperID from DevloperReg where UserName=@devloperusername

if @mode='showbiddetail'SELECT RequestDate, RequestID, ProjectName, ClientID,

(SELECT MIN(BidAmount) AS Expr1 FROM BidMaster AS BM WHERE(ProjectID = PR.RequestID)) AS MinBid, LongDiscription, Budget

FROM ProjectRequest AS PRWHERE(RequestID = @requestedprojectid)

if @mode='bidonproject'insert into

BidMaster(ProjectID,DevloperID,ClientID,BidAmount,BidDate,DayofComplitedPro) values (@projectid,@devloperid,@clientid,@lastbid,@biddate,@dayofcomplitedpro) if @mode='updateclientprofile'UPDATE ClientReg SET

Lovely professional University

Page 79: project transcation

79

FirstName =@firstname, LastName =@lastname, Address =@address, City =@city, ZipCode =@zipcode, State =@state, ContryID =@contryid, Gender =@gender, Dateofbirth =@dateofbirth, MobileNumber =@mobileno where ClientID=@clientid

if @mode='updatedevloperprofile'UPDATE DevloperReg SETFirstName =@firstname, LastName =@lastname, Address =@address, City =@city,

ZipCode =@zipcode, State =@state, ContryID =@contryid, Gender =@gender, Dateofbirth =@dateofbirth, MobileNo =@mobileno where DevloperID=@devloperid

if @mode='getclientpassword'select Password from ClientReg where UserName=@clientusername

if @mode='matchclientusername'select UserName from ClientReg where UserName=@clientusername

if @mode='matchDevloperusername'select UserName from devloperReg where UserName=@devloperusername

if @mode='dupdatepro'select * from DevloperReg where UserName=@devloperusername

if @mode='ShowClientProjectBidDetail'SELECT ProjectRequest.RequestID, ProjectRequest.ProjectName,

ProjectRequest.JobType, ProjectRequest.RequestDate, ProjectRequest.Budget, BidMaster.BidAmount, BidMaster.DayofcomplitedPro, BidMaster.DevloperID, BidMaster.ProjectID, BidMaster.BidDate, BidMaster.BidIDFROM BidMaster INNER JOIN ProjectRequest ON BidMaster.ProjectID = ProjectRequest.RequestIDWHERE (BidMaster.ProjectID NOT IN (SELECT RequestedPeojectID FROM DevlopingProject AS DevlopingProject_1)) AND (ProjectRequest.ClientID = @clientid)

if @mode='projectrunningdetail'INSERT INTO DevlopingProject

(RequestedPeojectID, ClientID, devloperID, Isdevloped,BidID)VALUES (@requestprojectid,@clientid,@devloperid,@isdevloped,@bidid)

if @mode='clientAccount' INSERT INTO ClientAccount (ClientID, ProjectID, Price, PaidAmount, RemainingAmount)VALUES (@clientid,@requestprojectid,@projectamount,@paidamt,@remamt)

if @mode='devloperprojectlist'SELECT DISTINCT DP.RequestedPeojectID, PR.ProjectName, DATEDIFF(D, GETDATE(), DP.StartDate + BM.DayofcomplitedPro) AS LeftDay, DP.ClientID, DP.devloperID, DP.Isdevloped, BM.DayofcomplitedPro, PR.RequestID

Lovely professional University

Page 80: project transcation

80

FROM DevlopingProject AS DP INNER JOIN ProjectRequest AS PR ON DP.RequestedPeojectID = PR.RequestID INNER JOIN BidMaster AS BM ON PR.RequestID = BM.ProjectID AND DP.BidID = BM.BidIDWHERE (DP.devloperID = @devloperid) AND (DP.Isdevloped = 'Running') if @mode='projectupload'UPDATE DevlopingProjectSET ProjectPath = @projectpath,IsDevloped=@isdevlopedWHERE (RequestedPeojectID = @projectid)

if @mode='getanswer'SELECT SQ.Question, CR.Answer, CR.PasswordFROM ClientReg AS CR INNER JOIN SecurityQuestionMaster AS SQ ON CR.SecurityQuestionID = SQ.QuestionIDWHERE (CR.UserName = @clientusername)

if @mode='getanswerDev'SELECT SQ.Question, CR.Answer, CR.PasswordFROM DevloperReg AS CR INNER JOIN SecurityQuestionMaster AS SQ ON CR.SecurityQuestionID = SQ.QuestionIDWHERE (CR.UserName = @devloperusername)

if @mode='sendprojectmsg'INSERT INTO ClientMsgMaster (ClientID,SendFrom,Subject, Message, MsgDate, PeojectID)VALUES (@clientid,@sendfrom,@subject,@message,@msgdate,@projectid) if @mode='getclientmsg' SELECT CM.ClientMsgID, CM.ClientID, CM.SendFrom, CM.Subject, CM.Message, CM.MsgDate, CM.PeojectID, DP.ProjectPathFROM ClientMsgMaster AS CM INNER JOIN DevlopingProject AS DP ON CM.PeojectID = DP.RequestedPeojectIDWHERE (CM.ClientMsgID = @clientmsgid) if @mode='getprojectpath' SELECT DP1.ProjectPathFROM ClientMsgMaster AS CM1 INNER JOIN DevlopingProject AS DP1 ON CM1.PeojectID = DP1.RequestedPeojectIDWHERE (CM1.ClientMsgID = @clientmsgid) if @mode='get2ndpaydetail' SELECT CA.ProjectID, CA.Price, CMM.SendFrom, PR.ProjectName, CA.PaidAmount, CA.RemainingAmountFROM ClientAccount AS CA INNER JOIN

Lovely professional University

Page 81: project transcation

81

ClientMsgMaster AS CMM ON CA.ProjectID = CMM.PeojectID INNER JOIN ProjectRequest AS PR ON CMM.PeojectID = PR.RequestIDWHERE (CA.ProjectID = @projectid)

if @mode='competedPaid'UPDATE ClientAccountSET Price =@price, PaidAmount =@paidAmt, RemainingAmount =@RemAmt where ProjectID=@projectid

if @mode='AddDeveloperAcc' INSERT INTO DevloperAccount (DevloperID, ClientID, ProjectID, EarnAmt) VALUES (@devloperid,@clientid,@projectid,@projectAmt) if @mode='DevloperCompletedTheProject'

update DevlopingProject set Isdevloped=@ProjectStatus where RequestedPeojectID=@projectid

if @mode='getproinfo'SELECT CA.ProjectID AS ProjectNo, PR.ProjectName, CA.Price, CA.PaidAmount, PR.RequestDateFROM ClientAccount AS CA INNER JOIN ProjectRequest AS PR ON CA.ProjectID = PR.RequestIDWHERE (CA.ProjectID = @projectid)

if @mode='updateprojectpriceintodevloperACC'UPDATE DevloperAccount SET EarnAmt = @ProjectAmtWHERE (ProjectID = @Projectid)

if @mode='ShowComletedProjectForDev'SELECT PR.RequestID AS ProjectNo, PR.ProjectName, DA.EarnAmt, DP.StartDate, PR.JobTypeFROM DevloperAccount AS DA INNER JOIN DevlopingProject AS DP ON DA.ProjectID = DP.RequestedPeojectID INNER JOIN ProjectRequest AS PR ON DP.RequestedPeojectID = PR.RequestIDWHERE (DP.devloperID = @devloperid) AND (DP.Isdevloped = 'Completed')

if @mode='devloperAccountInfo'SELECT PR.RequestID, PR.ProjectName, DA.EarnAmt, PR.JobTypeFROM DevloperAccount AS DA INNER JOIN ProjectRequest AS PR ON DA.ProjectID = PR.RequestIDWHERE (DA.DevloperID = @devloperid)

if @mode ='checkAvalable'

Lovely professional University

Page 82: project transcation

82

select count(*) from ClientReg where UserName=@username

if @mode1='checkAvalableDev'select count(*) from DevloperReg where UserName=@username

if @mode='purchaseProjectDetail'SELECT ProjectName, Projectdesc, Amount, PathFROM ProjectMasterWHERE (ProjectID = @Pur_projectid)

/* SET NOCOUNT ON */

Source code:-

ADMINADDPROJECT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class Admin_AddProject : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { Panel1.Visible = false; BindLang(); BindDatabase(); } } public void BindLang() { s2.Add("@mode", "ddllanguage"); ddllang.DataSource = c1.showdata("AdminSP", s2); ddllang.DataTextField = "LanguageName"; ddllang.DataValueField = "LanguageID"; ddllang.DataBind(); s2.Clear(); } public void BindDatabase()

Lovely professional University

Page 83: project transcation

83

{ s2.Add("@mode", "ddldatabase"); ddldatabase.DataSource = c1.showdata("AdminSP", s2); ddldatabase.DataTextField = "DatabaseName"; ddldatabase.DataValueField = "DatabaseID"; ddldatabase.DataBind(); s2.Clear(); }

protected void btnaddproject_Click(object sender, EventArgs e) { if (ProjectUpload.PostedFile.ContentType == "application/x-zip-compressed") { ProjectUpload.SaveAs("" + Server.MapPath("..//") + "\\SalesProjectsUpload\\" + ProjectUpload.FileName);

s2.Add("@mode", "AddProject"); s2.Add("@projectnm", txtpronm.Text); s2.Add("@projectDescr", txtdesription.Text); s2.Add("@price", txtprice.Text); s2.Add("@langID", ddllang.SelectedItem.Value); s2.Add("@databseID", ddldatabase.SelectedItem.Value); s2.Add("@ProjectPath", ProjectUpload.FileName); c1.insertdata("AdminSP",s2);

UpdatePanel1.Visible = false; Panel1.Visible = true; btnaddproject.Visible = false; } else { lblproupload.Text = "Upload Zipfile Only"; } } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("Home.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("AddProject.aspx"); }}

CLIENTDETAIL.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;

Lovely professional University

Page 84: project transcation

84

using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Admin_ClientDetail : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

public void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) {

ViewDetail(); ProjectDetail(); } } public void ViewDetail() {

s2.Add("@mode", "ShowClientInfo"); s2.Add("@ClientID", Request.QueryString["Clientid"].ToString()); DetailsView1.DataSource = c1.showdata("AdminSP", s2); DetailsView1.DataBind(); s2.Clear();

} public void ProjectDetail() { s2.Add("@mode","showProDetailforClient"); s2.Add("@ClientID", Request.QueryString["Clientid"].ToString()); GridView1.DataSource = c1.showdata("AdminSP", s2); GridView1.DataBind(); }}

DELETECLIENT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Admin_DeleteClient : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

public void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) {

Lovely professional University

Page 85: project transcation

85

showdata(); } }

public void showdata() { s2.Add("@mode", "ShowClientDate"); DataList1.DataSource = c1.showdata("AdminSP", s2); DataList1.DataBind(); s2.Clear(); } public void DL_command(object sender, DataListCommandEventArgs e) { Label ClientID = new Label(); ClientID = (Label)e.Item.FindControl("lblclientid");

if (e.CommandName == "delete") { s3.Add("@mode", "DeleteClient"); s3.Add("@ClientID", ClientID.Text); c1.insertdata("AdminSP", s3); showdata(); s3.Clear();

} if (e.CommandName == "detail") { Response.Redirect("ClientDetail.aspx?Clientid=" + ClientID.Text); } }

}

DELETEDEVELOPER.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Admin_DeleteDeveloper : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { showdata(); }

Lovely professional University

Page 86: project transcation

86

}

public void showdata() { s2.Add("@mode", "ShowDevloperDate"); DataList1.DataSource = c1.showdata("AdminSP", s2); DataList1.DataBind(); s2.Clear(); } public void DL_command(object sender, DataListCommandEventArgs e) { Label devID = new Label(); devID = (Label)e.Item.FindControl("lbldevid");

if (e.CommandName == "delete") { s3.Add("@mode", "DeleteDev"); s3.Add("@devID",devID.Text); c1.insertdata("AdminSP", s3); showdata(); s3.Clear();

} if (e.CommandName == "detail") { Response.Redirect("DevloperDetail.aspx?devid="+devID.Text); } }}

DEVELOPERDETAIL.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Admin_DevloperDetail : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); // string DevID = ""; protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { ViewDetail(); ProjectDetail(); } } public void ViewDetail() {

Lovely professional University

Page 87: project transcation

87

s2.Add("@mode", "ShowDeveloperInfo"); s2.Add("@devID", Request.QueryString["devid"].ToString()); DetailsView1.DataSource = c1.showdata("AdminSP", s2); DetailsView1.DataBind(); s2.Clear();

} public void ProjectDetail() { s2.Add("@mode", "showProDetail"); s2.Add("@devID", Request.QueryString["devid"].ToString()); GridView1.DataSource = c1.showdata("AdminSP", s2); GridView1.DataBind();

} protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("DeleteDeveloper.aspx"); }}

SENDMAIL.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Net.Mail;using System.Windows.Forms;

public partial class Admin_Sendmail : System.Web.UI.Page{ public void Page_Load(object sender, EventArgs e) { }

protected void btnsend_Click(object sender, EventArgs e) { try { SmtpClient sm = new SmtpClient(); sm.Host = "smtp.gmail.com"; sm.Port = 465; sm.Send("[email protected]", txtsendto.Text,txtsubject.Text,txtmsg.Text); Response.Redirect("LoginClient.aspx"); } catch (Exception e1) { MessageBox.Show("Internet connection is not Avalble"); }

Lovely professional University

Page 88: project transcation

88

}}

UPDATEWEBSITE.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Admin_UpdateWebsite : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); protected void Page_Load(object sender, EventArgs e) {

} protected void btnaddcontry_Click(object sender, EventArgs e) { s2.Add("@mode", "addcontry"); s2.Add("@contry", txtaddcontry.Text); c1.insertdata("AdminSP", s2); lblcontymsg.Text = "Successfully Add Contry"; txtaddcontry.Text = ""; s2.Clear(); } protected void btnaddlanguage_Click(object sender, EventArgs e) { s2.Add("@mode", "addlanguage"); s2.Add("@language", txtaddlanguage.Text); c1.insertdata("AdminSP", s2); lbllangmsg.Text = "Successfully Add Contry"; txtaddlanguage.Text = ""; s2.Clear(); } protected void btnadddatabse_Click(object sender, EventArgs e) { s2.Add("@mode", "adddatabase"); s2.Add("@database", txtadddatbase.Text); c1.insertdata("AdminSP", s2); lbldatabsemsg.Text = "Successfully Add Contry"; txtadddatbase.Text = ""; s2.Clear(); } protected void btnaddque_Click(object sender, EventArgs e) { s2.Add("@mode", "addquestion"); s2.Add("@securityQue", txtsecurityque.Text); c1.insertdata("AdminSP", s2); lblquestionmsg.Text = "Successfully Add Contry"; txtsecurityque.Text = ""; s2.Clear(); }

Lovely professional University

Page 89: project transcation

89

}

CLASSFILE.CSusing System;using System.Data;using System.Configuration;//using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;//using System.Xml.Linq;using System.Data.SqlClient;using System.Collections;

/// <summary>/// Summary description for classfile/// </summary>public class classfile{ public int insertdata(string str1, SortedList sortlist) { String constr = System.Configuration.ConfigurationManager.ConnectionStrings["ProjectConnectionString"].ConnectionString; SqlConnection con1 = new SqlConnection(constr); SqlCommand cmd = new SqlCommand(str1, con1); int result = 0; try { cmd.CommandType = CommandType.StoredProcedure; for (int i = 0; i <=sortlist.Count - 1; i++) { cmd.Parameters.AddWithValue((String)sortlist.GetKey(i), sortlist.GetByIndex(i));

} con1.Open(); result = cmd.ExecuteNonQuery(); con1.Close(); } catch (Exception ex) { result = -1; try { if (con1.State == ConnectionState.Open) { con1.Close(); } } catch (Exception ex2) { // } }

Lovely professional University

Page 90: project transcation

90

return result; }

public Object getsingalval1(string str2, SortedList sortlist2) { String constr2 = System.Configuration.ConfigurationManager.ConnectionStrings["ProjectConnectionString"].ConnectionString; SqlConnection con2 = new SqlConnection(constr2); SqlCommand cmd = new SqlCommand(str2, con2); Object result = null;

try { cmd.CommandType = CommandType.StoredProcedure; for (int j = 0; j < sortlist2.Count; j++) { cmd.Parameters.AddWithValue((String)sortlist2.GetKey(j), sortlist2.GetByIndex(j)); } con2.Open(); result = cmd.ExecuteScalar(); } catch (Exception ex) { if (con2.State == ConnectionState.Open) { con2.Close(); } } finally { if (con2.State == ConnectionState.Open) con2.Close(); }

return result;

}

///

public SqlDataReader showdata(String show,SortedList sortlist3) { String str3 = System.Configuration.ConfigurationManager.ConnectionStrings["ProjectConnectionString"].ConnectionString; SqlConnection con3 = new SqlConnection(str3); SqlCommand cmd = new SqlCommand(show, con3); SqlDataReader dr1=null; try { cmd.CommandType = CommandType.StoredProcedure; for (int x = 0; x <= sortlist3.Count - 1; x++) {

Lovely professional University

Page 91: project transcation

91

cmd.Parameters.AddWithValue((String)sortlist3.GetKey(x), sortlist3.GetByIndex(x)); } con3.Open(); dr1 = cmd.ExecuteReader(CommandBehavior.CloseConnection);

} catch (Exception ex) { return null; } return dr1; }

}

CLIENTACCOUNTCLIENT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Client_AccountClient : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { s2.Add("@mode", "ClientA/C"); s2.Add("@ClientID", Session["ClientID"]); GridView1.DataSource=c1.showdata("AdminSp", s2); GridView1.DataBind(); s2.Clear(); }}

CLIENTINBOX.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;

Lovely professional University

Page 92: project transcation

92

using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Client_ClientInbox : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { s2.Add("@mode", "clientinbox"); s2.Add("@ClientID", Convert.ToInt32(Session["ClientID"].ToString())); DataList2.DataSource = c1.showdata("StoredProcedure1", s2); DataList2.DataBind(); } }

public void DL_command(object sender, DataListCommandEventArgs e) { Label lblcmsgid = new Label(); lblcmsgid = (Label)e.Item.FindControl("lblmsgid");

if (e.CommandName == "clientmsg") { Response.Redirect("ClientMsg.aspx?cmsgid=" + lblcmsgid.Text); } }}

CLIENTMSG.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class Client_ClientMsg : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

string DownloadStr,proid; protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { msgdatabind();

Lovely professional University

Page 93: project transcation

93

} } public void msgdatabind() { SqlDataReader dr1 = null; s2.Add("@mode", "getclientmsg"); s2.Add("@clientmsgid", Request.QueryString["cmsgid"].ToString()); dr1 = c1.showdata("StoredProcedure1", s2); while (dr1.Read()) { lblfromdisc.Text = dr1["SendFrom"].ToString(); lblsubdiscr.Text = dr1["Subject"].ToString(); lblmsg.Text = dr1["Message"].ToString(); DownloadStr = dr1["ProjectPath"].ToString(); lblproid1.Text = dr1["PeojectID"].ToString(); proid = lblproid1.Text; } s2.Clear(); Session["CMsgID"] = Request.QueryString["cmsgid"];

s3.Add("@mode", "getprojectpath"); s3.Add("@clientmsgid", Request.QueryString["cmsgid"].ToString()); lblpropath.Text = Convert.ToString(c1.getsingalval1("StoredProcedure1", s3));

if (lblpropath.Text == "") { imbtndownload.Visible = false; } } protected void imbtndownload_Click(object sender, ImageClickEventArgs e) {

Response.Redirect("Paypal2ndPay.aspx?proid=" + lblproid1.Text); //DownloadStr = lblpropath.Text;

//Server.Transfer("../ReuestedProjectupaload/" + DownloadStr); }}

DOWNLOAD.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Client_download : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e)

Lovely professional University

Page 94: project transcation

94

{

} protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string strpath=""; strpath = Session["Path"].ToString();

Server.Transfer("../SalesProjectsUpload/" + strpath); Session["Path"] = null;

}}

DOWNLAODPROJECT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Client_DownloadProject : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

public void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { updatecomletedpaid(); getprojectpath(); bindprojectinfo(); }

} public void bindprojectinfo() { s2.Add("@mode", "getproinfo"); s2.Add("@projectid", Session["projectid"].ToString()); GridView1.DataSource = c1.showdata("StoredProcedure1",s2); GridView1.DataBind(); s2.Clear(); } public void updatecomletedpaid() { s2.Add("@mode", "competedPaid"); s2.Add("@price", 0); s2.Add("@paidAmt", Session["RemAmt"].ToString()); s2.Add("@RemAmt", 0); s2.Add("@projectid", Session["projectid"].ToString());

Lovely professional University

Page 95: project transcation

95

c1.insertdata("StoredProcedure1", s2); s2.Clear();

}

public void getprojectpath() { s3.Add("@mode", "getprojectpath"); s3.Add("@clientmsgid", Session["CMsgID"].ToString()); lblpropath.Text = Convert.ToString(c1.getsingalval1("StoredProcedure1", s3));

if (lblpropath.Text == "") { imgbtndownload.Visible = false; } } public void Button1_Click(object sender, EventArgs e) { } protected void imgbtndownload_Click(object sender, ImageClickEventArgs e) { string DownloadStr = ""; DownloadStr = lblpropath.Text;

Server.Transfer("../ReuestedProjectupaload/" + DownloadStr); Session["CMsgID"] = null;

}}

HOME.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Home : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { showallprojects(); getclientid();

Lovely professional University

Page 96: project transcation

96

} } public void showallprojects() { s2.Add("@mode", "showallprojects"); dlistparchaseproject.DataSource = c1.showdata("StoredProcedure1", s2); dlistparchaseproject.DataBind(); s2.Clear(); }

public void showselectedprojects(string lang) { s2.Add("@mode", "showselectedproject_Clients"); s2.Add("@language", lang); dlistparchaseproject.DataSource = c1.showdata("StoredProcedure1", s2); dlistparchaseproject.DataBind(); s2.Clear(); } public void getclientid() { int clientid; s2.Add("@mode", "getclientid"); s2.Add("@clientusername", Session["ClientUserName"].ToString()); clientid = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s2)); Session["ClientID"] = clientid; //Label1.Text = Convert.ToInt32(clientid).ToString(); s2.Clear(); } public void DL_command(object sender, DataListCommandEventArgs e) { Label lblproject = new Label(); lblproject = (Label)e.Item.FindControl("lblprojectid");

if (e.CommandName == "Purchase") { Response.Redirect("ProjectPurchase.aspx?Pur_Projectid="+lblproject.Text); }

} protected void lbdotnet_Click(object sender, EventArgs e) { //for DotNet project showselectedprojects(".net"); } protected void lbjava_Click(object sender, EventArgs e) { showselectedprojects("java"); } protected void lbphp_Click(object sender, EventArgs e) { showselectedprojects("php"); } protected void lballproject_Click(object sender, EventArgs e) { showallprojects(); }}

MASTERCLENT.CSusing System;

Lovely professional University

Page 97: project transcation

97

using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Xml.Linq;

public partial class Client_MasterPage_for_client : System.Web.UI.MasterPage{ protected void Page_Load(object sender, EventArgs e) { if (Session["ClientUserName"] == null) { Response.Redirect("~/LoginClient.aspx"); } }

protected void lbsign_Click(object sender, EventArgs e) { Session["ClientUserName"] = null; Response.Redirect("Home.aspx"); }}

PAYPAL.ASPX.cSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class Client_Paypal2ndPay : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { int price = 0, websitetex = 0,TotalProjectAmt=0;

SqlDataReader dr1 = null; s2.Add("@mode", "get2ndpaydetail"); s2.Add("@projectid", Request.QueryString["proid"].ToString());

Lovely professional University

Page 98: project transcation

98

dr1 = c1.showdata("StoredProcedure1", s2); while (dr1.Read()) { lblproid.Text = dr1["ProjectID"].ToString(); lbldevid.Text = dr1["SendFrom"].ToString(); txtprice.Text = dr1["Price"].ToString(); lblprojectname.Text = dr1["ProjectName"].ToString(); //now u paying txtremanigpay.Text = dr1["RemainingAmount"].ToString(); lblpayamt.Text = dr1["PaidAmount"].ToString(); } s2.Clear(); // update into devloper acc int amt1 = 0; amt1=Convert.ToInt32(txtprice.Text); if (amt1 == 0) {

} else { s3.Add("@mode", "updateprojectpriceintodevloperACC"); s3.Add("@ProjectAmt", txtprice.Text); s3.Add("@Projectid", lblproid.Text); c1.insertdata("StoredProcedure1", s3); s3.Clear(); }

price = Convert.ToInt32(txtprice.Text); websitetex = (price * 10) / 100; txttex.Text = Convert.ToString(websitetex); if (price == 0) { //total project price Including Tex TotalProjectAmt = Convert.ToInt32(lblpayamt.Text); } else { TotalProjectAmt = price + websitetex; } lbltotal.Text= Convert.ToString(TotalProjectAmt);

Session["devid"] = lbldevid.Text; Session["projectid"] = lblproid.Text;

Session["ProjectPrice"] = txtprice.Text; Session["PaidAmt"] = lblpayamt.Text; //now u paying Session["RemAmt"] = TotalProjectAmt; } } protected void Button1_Click(object sender, EventArgs e)

Lovely professional University

Page 99: project transcation

99

{ Response.Redirect("DownloadProject.aspx"); }}

PAYPALPROJECTPAYMENT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

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

{ protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) {

string devid = "", proid = ""; int price = 0, websitetex = 0, total = 0, PaidAmt = 0, RemAmt = 0;

lbldevid.Text = Request.QueryString["devloperid"].ToString(); devid = Convert.ToString(lbldevid.Text);

proid = Request.QueryString["proid"].ToString();

lblprojectname.Text = Request.QueryString["pronm"].ToString(); txtprice.Text = Request.QueryString["proprice"].ToString();

price = Convert.ToInt32(txtprice.Text); websitetex = (price * 10) / 100;

total = price + websitetex; PaidAmt = (total * 20) / 100; RemAmt = total - PaidAmt;

txttex.Text = Convert.ToString(websitetex); txtfistpay.Text = Convert.ToString(PaidAmt); lbltotal.Text = Convert.ToString(total);

Session["bidid"] = Request.QueryString["bidid"].ToString(); Session["devid"] = devid; Session["projectid"] = proid;

Session["ProjectPrice"] = price; Session["PaidAmt"] = PaidAmt; Session["RemAmt"] = RemAmt;

}

Lovely professional University

Page 100: project transcation

100

} }

PROJECTBIDDETAIL.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Client_ProjectBidDetail : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { s2.Add("@mode","ShowClientProjectBidDetail"); s2.Add("@clientid", Session["ClientID"].ToString()); DataList1.DataSource= c1.showdata("StoredProcedure1", s2); DataList1.DataBind(); s2.Clear(); }

}

public void DL_command(object sender, DataListCommandEventArgs e) { if (e.CommandName == "clickhere") { Label projectnm = new Label(); projectnm = (Label)e.Item.FindControl("lblpronm");

Label projectid = new Label(); projectid = (Label)e.Item.FindControl("lblprojectid");

Label devID = new Label(); devID=(Label)e.Item.FindControl("lbldevid");

Label price = new Label(); price = (Label)e.Item.FindControl("lblbidamt");

Label bidid = new Label(); bidid = (Label)e.Item.FindControl("lblbidid");

Response.Redirect("PayPalFirstProjectPayment.aspx?devloperid=" + devID.Text + "&pronm=" + projectnm.Text + "&proid=" + projectid.Text + "&proprice=" + price.Text+"&bidid="+bidid.Text);

Lovely professional University

Page 101: project transcation

101

} }}

PROJECTPURCHASE.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class Client_ProjectPurchase : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { SqlDataReader dr1 = null;

s2.Add("@mode", "purchaseProjectDetail"); s2.Add("@Pur_projectid", Request.QueryString["Pur_Projectid"].ToString()); dr1 = c1.showdata("StoredProcedure1", s2);

while (dr1.Read()) { lblprojectnm.Text = dr1["ProjectName"].ToString(); lbldesc.Text = dr1["Projectdesc"].ToString(); txtprice.Text = dr1["Amount"].ToString(); lblpath.Text = dr1["Path"].ToString();

} } Session["path"] = lblpath.Text; } protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("download.aspx"); }}

REQUESTPROJECT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;

Lovely professional University

Page 102: project transcation

102

using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Client_RequestProject : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { Panel1.Visible = false;

}

}

public void btnsendrequest_Click(object sender, EventArgs e) { string lang = ""; foreach (ListItem li in cbllanguage.Items) { if (li.Selected) { lang = lang + " " + li.Text; } }

s2.Add("@mode", "clientrequest"); s2.Add("@clientid", Session["ClientID"].ToString()); s2.Add("@projectname", txtprojectname.Text); s2.Add("@longdisc", txtlongdiscr.Text); s2.Add("@jobtype", lang); s2.Add("@requestdate", DateTime.Now); s2.Add("@budget", ddlbudget.SelectedItem.Value); c1.insertdata("StoredProcedure1", s2); upprojectrequest.Visible = false; btnsendrequest.Visible = false; Panel1.Visible = true;

} protected void lbgotohome_Click(object sender, EventArgs e) { Response.Redirect("Home.aspx"); }}

Lovely professional University

Page 103: project transcation

103

TRANSCATIONSUCCESSFULLY.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Client_TransectionSucessfully : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList(); SortedList s4 = new SortedList();

if (Page.IsPostBack == false) { s2.Add("@mode", "projectrunningdetail"); s2.Add("@requestprojectid", Convert.ToInt32(Session["projectid"].ToString())); s2.Add("@clientid", Convert.ToInt32(Session["ClientID"].ToString())); s2.Add("@devloperid", Convert.ToInt32(Session["devid"].ToString())); s2.Add("@isdevloped", "Running"); s2.Add("@bidid", Session["bidid"].ToString()); c1.insertdata("StoredProcedure1", s2); s2.Clear();

s3.Add("@mode", "clientAccount"); s3.Add("@clientid", Convert.ToInt32(Session["ClientID"].ToString())); s3.Add("@requestprojectid", Convert.ToInt32(Session["projectid"].ToString())); s3.Add("@projectamount",Convert.ToInt32(Session["ProjectPrice"].ToString())); s3.Add("@paidamt",Convert.ToInt32(Session["PaidAmt"].ToString())); s3.Add("@remamt",Convert.ToInt32(Session["RemAmt"].ToString())); c1.insertdata("StoredProcedure1", s3); s3.Clear(); //add into devloper A/c

s4.Add("@mode", "AddDeveloperAcc"); s4.Add("@devloperid", Session["devid"]); s4.Add("@clientid", Session["ClientID"].ToString()); s4.Add("@projectid", Session["projectid"].ToString()); s4.Add("@projectAmt", 0); c1.insertdata("StoredProcedure1", s4); //

Session["devid"] = null;

Lovely professional University

Page 104: project transcation

104

Session["projectid"] = null;

Session["ProjectPrice"] = null; Session["PaidAmt"] = null; Session["RemAmt"] = null;

} } protected void lbclick_Click(object sender, EventArgs e) { Response.Redirect("Home.aspx"); }}

UPDATEPROFILE.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;public partial class Client_Updateprofile : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList(); string str = ""; protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { ContryBind(); ClientProfileData();

} }

public void ContryBind() { s3.Add("@mode", "contry"); ddlcontry.DataSource = c1.showdata("StoredProcedure1", s3); ddlcontry.DataTextField = "ContryName"; ddlcontry.DataValueField = "ContryID"; ddlcontry.DataBind(); ddlcontry.Items.Insert(0, "Select Contry");

}

public void ClientProfileData() { SqlDataReader dr1 = null; s2.Add("@mode", "cupdatepro"); s2.Add("@clientusername", Session["ClientUserName"].ToString());

Lovely professional University

Page 105: project transcation

105

dr1 = c1.showdata("StoredProcedure1", s2); while (dr1.Read()) { txtfirstname.Text = dr1["FirstName"].ToString(); txtlastname.Text = dr1["LastName"].ToString(); txtaddress.Text = dr1["Address"].ToString(); txtcity.Text = dr1["City"].ToString(); txtzipcode.Text = dr1["ZipCode"].ToString(); txtstate.Text = dr1["State"].ToString(); ddlcontry.Items.FindByValue(dr1["ContryID"].ToString()).Selected = true; txtdateofbirth.Text = dr1["Dateofbirth"].ToString(); txtmobileno.Text = dr1["MobileNumber"].ToString();

str = dr1["gender"].ToString().Trim(); if (str == "Male") { rdmale.Checked = true; } if (str == "Female") { rdfenale.Checked = true; } }

}

protected void btnupdate_Click1(object sender, EventArgs e) { } protected void imgbtnupdate_Click(object sender, ImageClickEventArgs e) { string Gen; if (rdmale.Checked == true) { Gen = "Male"; } else { Gen = "Female"; }

s2.Add("@mode", "updateclientprofile"); s2.Add("@clientid", Session["ClientID"].ToString()); s2.Add("@firstname", txtfirstname.Text); s2.Add("@lastname", txtlastname.Text); s2.Add("@address", txtaddress.Text); s2.Add("@city", txtcity.Text); s2.Add("@zipcode", txtzipcode.Text); s2.Add("@state", txtstate.Text); s2.Add("@contryid", ddlcontry.SelectedItem.Value); s2.Add("gender", Gen); s2.Add("@dateofbirth",txtdateofbirth.Text); s2.Add("@mobileno", txtmobileno.Text);

c1.insertdata("StoredProcedure1", s2); Response.Redirect("Home.aspx"); }

Lovely professional University

Page 106: project transcation

106

}

STYLESHEET.CSS.watermarktxt{

font-size: small;color: #808080;

}.lblreg{

font-size: large;color: #993399;

} .lblheader{

font-size: medium;font-family: Verdana;font-weight: bold;

}.reglbl{

font-family: Verdana;font-size: medium;font-weight: bold;

}.ff:hover{

background-color: #00FFFF;color: #FF00FF;background-color: #FF0000;

}.contenlbl{

font-family: Verdana;font-size: 10pt;

}.lable{

font-family: Verdana;font-size: 11pt;

}

DEVELOPER

ACCOUNT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

Lovely professional University

Page 107: project transcation

107

public partial class Devloper_Account : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { s2.Add("@mode", "devloperAccountInfo"); s2.Add("@devloperid", Session["DevloperID"].ToString()); GridView1.DataSource = c1.showdata("StoredProcedure1",s2); GridView1.DataBind(); }

}}

BIDONPROJECT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class Devloper_BidonProject : System.Web.UI.Page{ classfile c2 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { clientid.Text = Request.QueryString["clientid"].ToString(); SqlDataReader dr1 = null; s2.Add("@mode", "showbiddetail"); s2.Add("@requestedprojectid", Request.QueryString["lblprojectid"].ToString()); dr1 = c2.showdata("StoredProcedure1", s2); while (dr1.Read()) { lblprojectname.Text = dr1["ProjectName"].ToString(); lbldisc.Text = dr1["LongDiscription"].ToString(); lblpricehere.Text = dr1["MinBid"].ToString(); lblbiddate.Text = dr1["RequestDate"].ToString(); lblbugdetprice.Text = dr1["Budget"].ToString(); } }

Lovely professional University

Page 108: project transcation

108

}

protected void btnbid_Click(object sender, EventArgs e) {

s2.Add("@mode", "bidonproject"); s2.Add("@projectid", Convert.ToInt32(Request.QueryString["lblprojectid"].ToString())); s2.Add("@devloperid", Session["DevloperID"].ToString()); s2.Add("@clientid", Convert.ToInt32(clientid.Text)); s2.Add("@biddate", DateTime.Today); s2.Add("@lastbid", txtbidamt.Text); s2.Add("@dayofcomplitedpro", txtdayforcomleteproject.Text); c2.insertdata("StoredProcedure1", s2); Response.Redirect("Home.aspx"); }}

COMPLETEDPROJECTLIST.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Devloper_RunningAndComleted : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { s2.Add("@mode", "ShowComletedProjectForDev"); s2.Add("devloperid", Session["DevloperID"].ToString()); GridView1.DataSource= c1.showdata("StoredProcedure1",s2); GridView1.DataBind();

} }}

GETPROJECTLIST.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;

Lovely professional University

Page 109: project transcation

109

using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Devloper_GetProjectDetail : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { s2.Add("@mode", "devloperprojectlist"); s2.Add("@devloperid", Session["DevloperID"].ToString()); DataList1.DataSource = c1.showdata("StoredProcedure1", s2); DataList1.DataBind(); }

} public void DL_command(object sender, DataListCommandEventArgs e) { if (e.CommandName == "clickhere") { Label proid = new Label(); proid = (Label)e.Item.FindControl("lblprojectno");

Label clientid = new Label(); clientid = (Label)e.Item.FindControl("lblclientid");

Response.Redirect("UplodProject.aspx?proid="+proid.Text +"&cid="+clientid.Text); } }}

HOME.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Devloper_Home : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { ShowAllprojects(); } }

Lovely professional University

Page 110: project transcation

110

public void ShowAllprojects() { s2.Add("@mode", "showrequestedproject");

DataList1.DataSource = c1.showdata("StoredProcedure1", s2); DataList1.DataBind(); s2.Clear(); } public void DL_command(object sender, DataListCommandEventArgs e) { Label lblprojectid = new Label(); lblprojectid = (Label)e.Item.FindControl("lblprojectid");

Label lblclientid = new Label(); lblclientid = (Label)e.Item.FindControl("lblclientid");

if (e.CommandName == "bid") { Response.Redirect("BidonProject.aspx?lblprojectid=" + lblprojectid.Text + "&clientid=" + lblclientid.Text); } } protected void lbdotnet_Click(object sender, EventArgs e) { selectproject(".net"); } protected void lbjava_Click(object sender, EventArgs e) { selectproject("java"); } public void selectproject(string lang) { s2.Add("@mode", "showselectedproject"); s2.Add("@lang", lang); DataList1.DataSource = c1.showdata("StoredProcedure1", s2); DataList1.DataBind(); s2.Clear(); } protected void lbphp_Click(object sender, EventArgs e) { selectproject("php"); } protected void lballproject_Click(object sender, EventArgs e) { ShowAllprojects(); }}

MASTER.DEVELOPER.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Xml.Linq;

Lovely professional University

Page 111: project transcation

111

public partial class Devloper_MasterPage_for_Devloper : System.Web.UI.MasterPage{ protected void Page_Load(object sender, EventArgs e) { if (Session["DevloperUserName"] == null) { Response.Redirect("~/LoginDevloper.aspx"); } } protected void LinkButton1_Click(object sender, EventArgs e) { Session["DevloperUserName"] = null; }}

UPDATEPROFILE.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;public partial class Devloper_Updateprofiledev : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList(); string str = ""; protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { ContryBind(); DevloperProfileData();

} }

public void ContryBind() { s3.Add("@mode", "contry"); ddlcontry.DataSource = c1.showdata("StoredProcedure1", s3); ddlcontry.DataTextField = "ContryName"; ddlcontry.DataValueField = "ContryID"; ddlcontry.DataBind(); ddlcontry.Items.Insert(0, "Select Contry");

}

public void DevloperProfileData() { SqlDataReader dr1 = null; s2.Add("@mode", "dupdatepro");

Lovely professional University

Page 112: project transcation

112

s2.Add("@devloperusername", Session["DevloperUserName"].ToString()); dr1 = c1.showdata("StoredProcedure1", s2); while (dr1.Read()) { txtfirstname.Text = dr1["FirstName"].ToString(); txtlastname.Text = dr1["LastName"].ToString(); txtaddress.Text = dr1["Address"].ToString(); txtcity.Text = dr1["City"].ToString(); txtzipcode.Text = dr1["ZipCode"].ToString(); txtstate.Text = dr1["State"].ToString(); ddlcontry.Items.FindByValue(dr1["ContryID"].ToString()).Selected = true; txtdateofbirth.Text = dr1["Dateofbirth"].ToString(); txtmobileno.Text = dr1["MobileNo"].ToString();

str = dr1["gender"].ToString().Trim(); if (str == "Male") { rdmale.Checked = true; } if (str == "Female") { rdfenale.Checked = true; } }

}

protected void btnupdate_Click1(object sender, EventArgs e) { string Gen; if (rdmale.Checked == true) { Gen = "Male"; } else { Gen = "Female"; }

s2.Add("@mode", "updatedevloperprofile"); s2.Add("@DevloperID", Session["DevloperID"].ToString()); s2.Add("@firstname", txtfirstname.Text); s2.Add("@lastname", txtlastname.Text); s2.Add("@address", txtaddress.Text); s2.Add("@city", txtcity.Text); s2.Add("@zipcode", txtzipcode.Text); s2.Add("@state", txtstate.Text); s2.Add("@contryid", ddlcontry.SelectedItem.Value); s2.Add("gender", Gen); s2.Add("@dateofbirth",txtdateofbirth.Text); s2.Add("@mobileno", txtmobileno.Text);

c1.insertdata("StoredProcedure1", s2); Response.Redirect("Home.aspx"); }}

UPLOADPRJECT.ASPX.cs

Lovely professional University

Page 113: project transcation

113

using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Devloper_UplodProject : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { } protected void btnuplod_Click(object sender, EventArgs e) { if (projectupload.PostedFile.ContentType == "application/x-zip-compressed") { projectupload.SaveAs("" + Server.MapPath("..//") + "\\ReuestedProjectupaload\\" + projectupload.FileName);

//ProjectUpload.SaveAs("" + Server.MapPath("..//") + "\\SalesProjectsUpload\\" + ProjectUpload.FileName);

s2.Add("@mode", "projectupload"); s2.Add("@projectpath", projectupload.FileName); s2.Add("@isdevloped", "Completed"); s2.Add("@projectid", Request.QueryString["proid"].ToString()); c1.insertdata("StoredProcedure1", s2); s2.Clear(); //======================

s3.Add("@mode", "sendprojectmsg"); s3.Add("@clientid", Request.QueryString["cid"].ToString()); s3.Add("@sendfrom", Session["DevloperID"].ToString()); s3.Add("@subject", lblsub.Text); s3.Add("@message", txtmsg.Text); s3.Add("@msgdate", DateTime.Now); //s3.Add("@projectpath", projectupload.FileName); s3.Add("@projectid", Request.QueryString["proid"].ToString()); c1.insertdata("StoredProcedure1", s3); s3.Clear();

// insert data in Developer Account UpdatePanel1.Visible = false; Panel1.Visible = true; btnuplod.Visible = false;

} else

Lovely professional University

Page 114: project transcation

114

{ Label2.Text = "Upload ZipFile"; }

s2.Add("@mode", "DevloperCompletedTheProject"); s2.Add("@ProjectStatus", "Completed"); s2.Add("@projectid", Request.QueryString["proid"].ToString()); c1.insertdata("StoredProcedure1", s2); s2.Clear(); } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("GetProjectList.aspx"); }}

CLIENTREGISTRATION.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;using System.Collections;

public partial class Client_ClientRegistration : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { // btnsubmit.Attributes.Add("onclick", "Validation();"); if (Page.IsPostBack == false) { ContyBind(); } else { } } public void ContyBind() { if (ddlcontry.SelectedIndex != 0) {

s2.Add("@mode", "contry"); ddlcontry.DataSource = c1.showdata("StoredProcedure1", s2); ddlcontry.DataTextField = "ContryName"; ddlcontry.DataValueField = "contryID"; ddlcontry.DataBind(); ddlcontry.Items.Insert(0, "Select Contry");

Lovely professional University

Page 115: project transcation

115

s2.Clear(); //Security Question

s2.Add("@mode", "securityque"); ddlsecurityquestion.DataSource = c1.showdata("StoredProcedure1", s2); ddlsecurityquestion.DataTextField = "Question"; ddlsecurityquestion.DataValueField = "QuestionID"; ddlsecurityquestion.DataBind(); ddlsecurityquestion.Items.Insert(0, "Select security question"); s2.Clear(); } else { // nothing } }

protected void btnsubmit_Click(object sender, EventArgs e) { int temp = 0; s2.Add("@mode", "checkAvalable"); s2.Add("@username", txtusername.Text); temp = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s2)); s2.Clear();

if (temp == 1) { lblusercheck.Text = "Please Enter other UserName"; lblavalable.Visible = false; lblusercheck.Visible = true; } else { lblavalable.Text = "Avalable"; lblusercheck.Visible = false; lblavalable.Visible = true;

string Gen; if (rdmale.Checked == true) { Gen = "Male"; } else { Gen = "Female"; }

s2.Add("@mode", "insertregdata");

s2.Add("@firstname", txtfirstname.Text); s2.Add("@lastname", txtlastname.Text); s2.Add("@address", txtaddress.Text); s2.Add("@city", txtcity.Text); s2.Add("@zipcode", txtzipcode.Text); s2.Add("@state", txtstate.Text); s2.Add("@contryid", ddlcontry.SelectedItem.Value); s2.Add("gender", Gen);

Lovely professional University

Page 116: project transcation

116

s2.Add("@dateofbirth", txtday.Text + ddlmonth.SelectedItem.Value + txtyear.Text); s2.Add("@username", txtusername.Text); s2.Add("@password", txtpassword.Text); s2.Add("@emailid", txtemailid.Text); s2.Add("@mobileno", txtmobileno.Text); s2.Add("@securityq", ddlsecurityquestion.SelectedItem.Value); s2.Add("@answer", txtanswer.Text); c1.insertdata("StoredProcedure1", s2);

Panel2.Visible = false; Panel1.Visible = true; upclientregistration.Visible = false; btnsubmit.Visible = false; //Panel2.Visible = false; s2.Clear();

}

} protected void lbclickheretologin_Click(object sender, EventArgs e) { Response.Redirect("LoginClient.aspx"); } protected void btncheckAvalable_Click(object sender, EventArgs e) { int temp = 0; s2.Add("@mode", "checkAvalable"); s2.Add("@username", txtusername.Text); temp = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s2));

if (temp == 1) { lblusercheck.Text = "Please Enter other UserName"; lblavalable.Visible = false; lblusercheck.Visible = true; } else { lblavalable.Text = "Avalable"; lblusercheck.Visible = false; lblavalable.Visible = true; } }}

DEVELOPERREGISTRATION.ASPX.cSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;

Lovely professional University

Page 117: project transcation

117

using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;using System.Collections;

public partial class Client_ClientRegistration : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { // btnsubmit.Attributes.Add("onclick", "Validation();"); if (Page.IsPostBack == false) { ContyBind(); } else {

} } public void ContyBind() { if (ddlcontry.SelectedIndex != 0) {

s2.Add("@mode", "contry"); ddlcontry.DataSource = c1.showdata("StoredProcedure1", s2); ddlcontry.DataTextField = "ContryName"; ddlcontry.DataValueField = "contryID"; ddlcontry.DataBind(); ddlcontry.Items.Insert(0, "Select Contry");

s2.Clear(); //Security Question

s2.Add("@mode", "securityque"); ddlsecurityquestion.DataSource = c1.showdata("StoredProcedure1", s2); ddlsecurityquestion.DataTextField = "Question"; ddlsecurityquestion.DataValueField = "QuestionID"; ddlsecurityquestion.DataBind(); ddlsecurityquestion.Items.Insert(0, "Select security question"); } else {

// nothing }

}

protected void btnsubmit_Click(object sender, EventArgs e) { //int temp = 0; //s2.Add("@mode", "checkAvalableDev"); //s2.Add("@username", txtusername.Text); //temp = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s2)); //s2.Clear();

Lovely professional University

Page 118: project transcation

118

//if (temp == 1) //{ // lblusercheck.Text = "Please Enter other UserName"; // lblavalable.Visible = false; // lblusercheck.Visible = true; //} //else //{ //lblavalable.Text = "Avalable"; //lblusercheck.Visible = false; //lblavalable.Visible = true;

string Gen; if (rdmale.Checked == true) { Gen = "Male"; } else { Gen = "Female"; }

s2.Add("@mode", "devloperreg");

s2.Add("@firstname", txtfirstname.Text); s2.Add("@lastname", txtlastname.Text); s2.Add("@address", txtaddress.Text); s2.Add("@city", txtcity.Text); s2.Add("@zipcode", txtzipcode.Text); s2.Add("@state", txtstate.Text);

s2.Add("@contryid", ddlcontry.SelectedItem.Value);

s2.Add("gender", Gen);

s2.Add("@dateofbirth", txtday.Text + ddlmonth.SelectedItem.Value + txtyear.Text);

s2.Add("@username", txtusername.Text); s2.Add("@password", txtpassword.Text); s2.Add("@emailid", txtemailid.Text); s2.Add("@mobileno", txtmobileno.Text); s2.Add("@securityq", ddlsecurityquestion.SelectedItem.Value);

s2.Add("@answer", txtanswer.Text);

c1.insertdata("StoredProcedure1", s2);

Panel1.Visible = true; // upclientregistration.Visible = false; btnsubmit.Visible = false; Panel2.Visible = false; s2.Clear(); // } }

protected void lbclickheretologin_Click(object sender, EventArgs e) {

Lovely professional University

Page 119: project transcation

119

Response.Redirect("~/LoginDevloper.aspx"); } protected void btncheckAvalable_Click(object sender, EventArgs e) { int temp = 0; s3.Add("@mode1", "checkAvalableDev"); s3.Add("@username", txtusername.Text); temp = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s3));

if (temp == 1) {

lblusercheck.Text = "Please Enter other UserName"; lblavalable.Visible = false; lblusercheck.Visible = true; } else { lblavalable.Text = "Avalable"; lblusercheck.Visible = false; lblavalable.Visible = true; } s3.Clear(); }}

DOWNLOAD.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class downloadproject : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {

} protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string strpath = ""; strpath = Session["Path"].ToString(); if (strpath != null) { Server.Transfer("SalesProjectsUpload/" + strpath); Session["Path"] = null; }

}}

Lovely professional University

Page 120: project transcation

120

FORGETPASSWORDCLIENT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;using System.Net.Mail;using System.Windows.Forms;

public partial class Devloper_forgotpasswordDevloper : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { pnlque.Visible = false; } }

protected void btnnext_Click(object sender, EventArgs e) { string username = ""; s2.Add("@mode", "matchclientusername"); s2.Add("@clientusername", txtusername.Text); username = Convert.ToString(c1.getsingalval1("StoredProcedure1", s2));

if (txtusername.Text==username) { pnlque.Visible = true; SqlDataReader dr1 = null;

s3.Add("@mode", "getanswer"); s3.Add("@clientusername", username); dr1 = c1.showdata("StoredProcedure1",s3);

while (dr1.Read()) { lblquestion.Text = dr1["Question"].ToString(); lblanswer.Text = dr1["Answer"].ToString(); lblpassword.Text = dr1["Password"].ToString();

} Panel1.Visible = false;

}

Lovely professional University

Page 121: project transcation

121

else { lblmsg.Text = "Enter Valid User Name"; } } protected void btngetpass_Click(object sender, EventArgs e) { if (lblanswer.Text == txtanswer.Text) { lblpassword.Visible = true; try { SmtpClient sm = new SmtpClient(); sm.Host = "smtp.gmail.com"; sm.Port = 465; sm.Send("[email protected]", txtemailid.Text, "Password", lblpassword.Text); lblpassword.Visible = true; Response.Redirect("LoginClient.aspx"); } catch (Exception e1) { MessageBox.Show("Internet connection is not Avalble"); } } else { lblworn.Text = "Answer is Wrong"; }

}}

FORGETPASSWODDEVELOPER.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class forgotpasswordDevloper : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) {

Lovely professional University

Page 122: project transcation

122

pnlque.Visible = false; } } protected void btnnext_Click(object sender, EventArgs e) { string username = ""; s2.Add("@mode", "matchDevloperusername"); s2.Add("@devloperusername", txtusername.Text); username = Convert.ToString(c1.getsingalval1("StoredProcedure1", s2));

if (txtusername.Text == username) { pnlque.Visible = true; SqlDataReader dr1 = null;

s3.Add("@mode", "getanswerDev"); s3.Add("@devloperusername", username); dr1 = c1.showdata("StoredProcedure1", s3);

while (dr1.Read()) { lblquestion.Text = dr1["Question"].ToString(); lblanswer.Text = dr1["Answer"].ToString(); lblpassword.Text = dr1["Password"].ToString();

} Panel1.Visible = false;

} else { lblmsg.Text = "Enter Valid User Name"; }

} protected void btngetpass_Click(object sender, EventArgs e) { if (lblanswer.Text == txtanswer.Text) { lblpassword.Visible = true; //Response.Redirect("LoginClient.aspx"); } else { lblworn.Text = "Answer is Wrong"; } }}

HOME.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;

Lovely professional University

Page 123: project transcation

123

using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Home : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { showallprojects(); } }

public void showallprojects() { s2.Add("@mode", "showallprojects"); dlistparchaseproject1.DataSource = c1.showdata("StoredProcedure1", s2); dlistparchaseproject1.DataBind(); s2.Clear(); }

public void showselectedprojects(string lang) { s2.Add("@mode", "showselectedproject_Clients"); s2.Add("@language", lang); dlistparchaseproject1.DataSource = c1.showdata("StoredProcedure1", s2); dlistparchaseproject1.DataBind(); s2.Clear(); } public void DL_command(object sender, DataListCommandEventArgs e) { Label lblproject = new Label(); lblproject = (Label)e.Item.FindControl("lblprojectid");

if (e.CommandName == "Purchase") { Response.Redirect("ProjectPurchase.aspx?ProjectID="+lblproject.Text); } } protected void lbdotnet_Click(object sender, EventArgs e) { showselectedprojects(".net"); } protected void lbjava_Click(object sender, EventArgs e) { showselectedprojects("java"); } protected void lbphp_Click(object sender, EventArgs e) { showselectedprojects("php"); } protected void lballprojects_Click(object sender, EventArgs e) { showallprojects();

Lovely professional University

Page 124: project transcation

124

}}

LOGINCLIENT.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class LoginClient : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) {

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

} protected void lbnewuser_Click(object sender, EventArgs e) { Response.Redirect("ClientRegistration.aspx"); } protected void imgbtnsignin_Click(object sender, ImageClickEventArgs e) { if (txtusername.Text == "ARJUN" && txtpassword.Text == "ADMIN") { Response.Redirect("~/Admin/Home.aspx"); } else {

int count = 0;

s2.Add("@mode", "clientlogin"); s2.Add("@username", txtusername.Text); s2.Add("@password", txtpassword.Text);

count = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s2));

if (count == 1) { Session["ClientUserName"] = txtusername.Text; Response.Redirect("~/Client/Home.aspx"); } else { lblusername.Text = "User Name or Password is wrong"; }

Lovely professional University

Page 125: project transcation

125

s2.Clear(); } }}

LOGINDEVELOPER.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;

public partial class Devloper_Devloper : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList(); SortedList s3 = new SortedList();

Object glvar="";

protected void Page_Load(object sender, EventArgs e) {

} protected void lbregister_Click(object sender, EventArgs e) { Response.Redirect("DeveloperRegistration.aspx"); } protected void btnsignin_Click1(object sender, EventArgs e) { } protected void lbforgetpassword_Click(object sender, EventArgs e) {

}

protected void imgbtnsignin_Click(object sender, ImageClickEventArgs e) { if (txtusername.Text == "ARJUN" && txtpassword.Text == "ADMIN") { Response.Redirect("~/Admin/Home.aspx"); } else { int count = 0; string username = ""; s2.Add("@mode", "Devloperlogin"); s2.Add("@username", txtusername.Text); s2.Add("@password", txtpassword.Text);

username = txtusername.Text; count = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s2)); //s2.Clear();

Lovely professional University

Page 126: project transcation

126

if (count == 1) { Session["DevloperUserName"] = username; if (Session["DevloperUserName"] != null) { int devloperid;

s3.Add("@mode", "getdevloperid"); s3.Add("@devloperusername", Session["DevloperUserName"].ToString()); devloperid = Convert.ToInt32(c1.getsingalval1("StoredProcedure1", s3)); Session["DevloperID"] = devloperid;

Response.Redirect("~/Devloper/Home.aspx"); } } else { lblmsg.Text = "UserName OR Passwor wrong"; } } }}

PROJECTPURCHASE.ASPX.CSusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;

public partial class ProjectParchase : System.Web.UI.Page{ classfile c1 = new classfile(); SortedList s2 = new SortedList();

protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { SqlDataReader dr1 = null;

s2.Add("@mode", "purchaseProjectDetail"); s2.Add("@Pur_projectid",Request.QueryString["ProjectID"].ToString()); dr1=c1.showdata("StoredProcedure1", s2);

while (dr1.Read()) { lblprojectnm.Text = dr1["ProjectName"].ToString(); lbldesc.Text = dr1["Projectdesc"].ToString(); txtprice.Text = dr1["Amount"].ToString();

Lovely professional University

Page 127: project transcation

127

lblpath.Text = dr1["Path"].ToString(); } } Session["path"] = lblpath.Text; } protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("downloadproject.aspx"); }}

WEB.CONFIG<?xml version="1.0"?><!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --><configuration>

<configSections><sectionGroup name="system.web.extensions"

type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>

<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"

Lovely professional University

Page 128: project transcation

128

allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections><appSettings/>

<connectionStrings><add name="ProjectConnectionString" connectionString="Data

Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\project.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

</connectionStrings><system.web>

<!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. -->

<compilation debug="true"><assemblies>

<!--<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>-->

<!--<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->

<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>

</compilation><!--

The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. -->

<authentication mode="Windows"/><!--

The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" />

Lovely professional University

Page 129: project transcation

129

</customErrors> -->

<!--<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>-->

<pages><controls>

<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls></pages>

<httpHandlers><remove verb="*" path="*.asmx"/><add verb="*" path="*.asmx" validate="false"

type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpHandlers>

<httpModules><add name="ScriptModule"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpModules></system.web>

<!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS. -->

<system.codedom><compilers>

<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">

<providerOption name="CompilerVersion" value="v3.5"/><providerOption name="WarnAsError"

value="false"/></compiler><compiler language="vb;vbs;visualbasic;vbscript"

extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">

<providerOption name="CompilerVersion" value="v3.5"/><providerOption name="OptionInfer" value="true"/><providerOption name="WarnAsError"

value="false"/></compiler></compilers></system.codedom><system.webServer>

<validation validateIntegratedModeConfiguration="false"/><modules>

<remove name="ScriptModule"/><add name="ScriptModule" preCondition="managedHandler"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules>

<handlers><remove name="WebServiceHandlerFactory-Integrated"/><remove name="ScriptHandlerFactory"/><remove name="ScriptHandlerFactoryAppServices"/>

Lovely professional University

Page 130: project transcation

130

<remove name="ScriptResource"/><add name="ScriptHandlerFactory" verb="*" path="*.asmx"

preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></handlers></system.webServer>

<runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"

appliesTo="v2.0.50727"><dependentAssembly><assemblyIdentity name="System.Web.Extensions"

publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0"

newVersion="3.5.0.0"/></dependentAssembly><dependentAssembly>

<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>

<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>

Summary

Project transaction offers companies a flexible and cost-effective way to get work done online. Flexibility, Results Orientation, Predictable Cost. Independent professionals, freelancers and service firms, Access to Client, Efficiently.It generally enjoy a greater variety of assignments than in regular employment, and—subject to the need to earn a regular income—usually have more freedom to choose their work schedule. The experience can also lead to a broad portfolio of work and the establishment of a network of clients. Project transaction and clients may form a relationship based on mutual needs and the professionalism and competence of both parties. Thus functionalities included in this project are really helpful for the free lancers

Lovely professional University

Page 131: project transcation

131

The major benefits:

• Flexibility - the freedom to choose when, where and how you work, leading to a feeling of independence and control. Having this freedom will also give you an improved quality of life. • A Career - it is recognized as a career in its own right - many people find their expertise is valued more if they work for an organization as a consultant, rather than a permanent member of staff. • Variety - the opportunity to work for a whole range clients and projects - which enables you to utilize and build upon your existing talent. • Work-Life Balance – the freedom to distribute your time between work and leisure, allowing you to exert a stronger control over your quality of life. • Improved income - as a consultant you will usually command a higher rate of income, as you are being employed for specific skills - which means you don't necessarily have to work full-time to reap the benefits.

Future work and References

The further improvements are always possible in every field. In this project the existing functionality can also be enhanced by including more categories of the languages with dynamic changing environment. Thus this feature will further enhance the efficiency and speed of the online work by saving a large amount of time and money.

References:

Books:

Database Management System Vipin C. Desai System analysis and Design Elias M. Awad SQL SERVER Microsoft Press ASP.Net 4.0 Wrox Publications

Lovely professional University

Page 132: project transcation

132

WEBSITES:

http:// www.elance.com

http:// www.aboutus.com

http:// www.guru.com

http:// www.joomlancers.com

http:// www.w3schools.com

http:// www.MSDN.com

Lovely professional University


Recommended