Web Based Claim Processing System

download Web Based Claim Processing System

of 100

description

Project

Transcript of Web Based Claim Processing System

Synopsis: Web Based Claims Processing System (WCPS)

A

PRACTICAL TRAINING REPORT

ON

Web Claim Processing System

SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENT FOR

COMPLETION OF DEGREE

MASTER OF COMPUTER APPLICATION

BY Name: Amit Kumar Gautam

Roll No-1006514003 Course: MCA(VI Sem)SUBMITTED TO B.S.A COLLEGE OF ENGINEERING ANDTECHNOLOGY

Mathura-281004(U.P.) ACKNOWLEDGEMENT

Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you too, can become great.

I take this opportunity to express my sincere thanks and deep gratitude to all those people who extended their wholehearted co-operation and have helped me in completing this project successfully.

First of all, I would like to thank Mr. Nitin, Director (ZXXXX) for creating opportunities to undertake me in the esteemed organization.

Special thanks to Mr.Ranjan Project Manager for all the help and guidance extended to me by him in every stage during my training. His inspiring suggestions and timely guidance enabled me to perceive the various aspects of the project in a new light.

I am highly indebted and graceful to xxxx(Project Leader) and xxxx (Team Leader) for Their strict supervision, constant encouragement, inspiration and guidance, which ensure the worthiness of my work. Working under them was an enrich experience. I express my sincere thanks to my senior of software development department for their encouragement and valuable suggestion

I would also thank to my Mr.-Pradeep Maheswari, HOD (MCA Dept.) & my internal project guide Mr. Ranjan who guided me a lot in completing this project.I would also like to thank my parents & project mate for guiding and encouraging me throughout the duration of the project.

In all I found a congenial work environment in XXXXXX and this completion of the project will mark a new beginning for me in the coming days.

Name: Amit Kumar Gautam MCA -vith Sem

Roll No. : 1006514003DECLARATION

I, Amit Kumar Gautam-, hereby declare that the report of the project entitled XXXXXX has not presented as a part of any other academic work to get my degree or certificate except B.S.A COLEEGE OF ENGINEERING AND TECHNOLOGY,MATHURA for the fulfillment of the requirements for the degree of Master of Computer Application.

Name: Amit Kumar GautamCERTIFICATE OF ORIGINALITY

This is to certify that the project entitled xxxx being submitted for the partial fulfillment of degree of MCA, session 2010-2013, is a record of work carried out by Name under my guidance and supervision.

This is to further certify that the student has attended the Multisoft Systems, NOIDA for the 6 months after the fifth semester theory exams. His work has been satisfactory and commendable.

I wish him success in his life.

Date:

Place:

CERTIFICATE

This is to certify that Name, a bonefide student of MCA of batch 2010has completed the Project titled Web Claim Processing System being submitted for the partial fulfillment of degree of MCA.

This is to further certify that the student has attended the College name . and XXXXXXX, NOIDA for the 6 months after the fifth semester theory exams. His work has been satisfactory and commendable.

Date:

Mr. -----------

HOD MCA Department

Place:

College name

TABLE OF CONTENTS81. Problem Definition and scope of project

81.1 Purpose

91.2 Objective

101.3 Project Scope

101.4 Technologies

101.4.1 Operating Environment

111.4.2 Deployment Environment

121.4.3 Development Tools and Technologies

151.4.4 Development Environment

162. Overall Description

162.1 User Characteristics

162.1.1 Employee

162.1.2 CPD - Claims Processing Department

162. 2.Assumptions

173. System Features

173. 1.Systern features

173.1.1 .Description:

173.1 .2.Constraints

184. Preliminary Design

184.1 Use Case

194.2 Specification of actors

194.2.1 Employee

194.2.2 CPD - Claims Processing Department

204.3 Specification of Use Cases

204.3.1 Use Case Manage Employee

224.3.2 Use Case. Apply Claim

244.3.3 Use Case. Approve Claim

264.3.4 Use Case. System Login

284.4 Process Flow Chart

294.5 Entity Data model Diagram

4.7 Data Dictionary274.7.1 Table: emp_master274.7.2 Table: emp_claims285. Future Enhancement296. Bibliography306.1 Websites306.2 Books30

1. Problem Definition and scope of project1.1 Purpose

ABC is a company which is having employee strength of at least 1000. All the employees are provided medical reimbursement facility which means that the expenditure incurred by the employee for treatment is reimbursed by the company. For reimbursement, the employee needs to fill in a form detailing the treatment undertaken which includes the name & cost of medicines, laboratory tests, surgery. The form is duly signed by the employee and it will be sent to the concerned Claims Processing Department (CPD) by messenger for processing. CPD will process it and the order regarding the reimbursement is sent to the Cash counter (CC) where in the employee can come and receive the reimbursement amount.

Some of the problems associated with the above mentioned process are listed below:

The form may miss during transit

The form is prone to weariness due to which the company may not be able to read data in it after some years.

The employees who claimed for medical reimbursement need to visit the CC from time to time enquiring about the status of their application. This results in enormous wastage of time of the employee.

To overcome these problems, it is proposed to develop a software titled Web Based Claims Processing System (WCPS) which is web based so that the employee can fill the form online and submit it so that the form is sent to CPD through Internet. At CPD, the form needs to be checked automatically by a program which will compute the amount that needs to be reimbursed to the employee for the treatment undertaken. Any excess amount claimed by the employee is ignored by the software. The amount computed will be routed to the e-mail account of the employee as well as to the Bank which holds the accounts of all the employees of the company. The bank will credit the amount to the account of the employee based on the mail.This project report describes the software functional and nonfunctional requirements for release 1.0 of the Web Based Claim Processing System. This document is intended to be used by the members of the project team that will implement and verify the correct functioning of the system. Unless otherwise noted, all requirements specified here is high priority and committed for release 1.0.1.2 Objective

Web Based Claims Processing System (WCPS) is complete end to end solution to cover all aspects of online claim and reimbursement system.

The basic objective of developing this project is:

Provides complete web site solution, including employee registration, enter new claim, approve/ reject claim. Complete web based administration. The Web Based Claims Processing System can automatically display pending claim count in the main page of employee of Claims Processing Department (CPD). Employee can view their claim status online and all claims can be treated as Pending, Approved and Rejected. Employee of CPD can add, edit employee details, all employees are identified by the employee no. Employee no will be unique throughout the system.

System must store audit trail of all DML transaction, like it stores employee no, time stamp in the database for add, edit, delete operation.

System should capture lat login time for all the employees.

Complete web based system no installation required to run the application in client system.

Employee must able to view his/her previous claim details.1.3 Project Scope

The Web Based Claims Processing System (WCPS) will permit to enter new claim, track the claim status and maintaining master information. The main users of the project are Employee of all departments and Employee of CPD Claim Processing Department.From an end-user perspective, the Web Based Claims Processing System Project consists of two functional elements: enhanced Employee modules for Login, Apply for new claim, view status of already applied claim. And CPD module for approve/reject claim, view pending status, Add/Edit employee details.

1.4 Technologies

1.4.1 Operating EnvironmentOE-1: The WCPS web application will operate with the following Web Browsers: Microsoft Internet Explorer version 5.0, 6.0. 7.0OE-2: The WCPS web application shall operate on a server running the latest versions of IIS (Internet Information Server).

OE-3:The WCPS web application shall permit user access from Internet connection OE-4:Operating System: Windows 2000. XP

OE-5:Software requirements: SQL Server 2008, .net framework 2.0.OE-6:Languages used are asp.net using c# and scripting is done using JavaScript.

OE-7:Hardware Requirements: 256(minimum)/512(recommended) MB RAM

OE-8:Hard disc- nGB depending upon the requirement to store data minimum of 25GB.

1.4.2 Deployment Environment

DE-1: Database Server

OS Win 2003 Enterprise Server

SQL Server 2005

HDD Min 10 GB, Recommended 25 GB

RAM Min 2 GB, Recommended 4 GB

Processor - Pentium Dual Xenon ProcessorDE-2: Application Server

OS Win 2003 Enterprise Server

IIS Internet Information Server

HDD Min 5 GB, Recommended 10 GB

RAM Min 2 GB, Recommended 4 GB

Processor - Pentium Dual Xenon Processor

DE-3: The WCPS web application will operate with the following Web Browsers: Microsoft Internet Explorer version 5.0, 6.0. 7.0.

[Web Based Claims Processing System (WCPS) System Architecture]1.4.3 Development Tools and TechnologiesDT-1:ASP.NetAs we need to develop Web Application for Web Based Claims Processing System (WCPS). We will use ASP.Net as it is the new Microsoft technology to develop any application which support and integrate other server product for the internet. By ASP.Net we can develop in web application by .NET framework and manage environment with any .NET support language like VB.Net and C#.

DT-2: C#

.NET is built on the Windows Server System to take major advantage of the OS and which comes with a host of different servers which allows for building, deploying, managing and maintaining Web-based solutions. The Windows Server System is designed with performance as priority and it provides scalability, reliability, and manageability for the global, Web-enabled enterprise. The Windows Server System integrated software products are built for interoperability using open Web standards such as XML and SOAP.

.NET is a "Software Platform". It is a language-neutral environment for developing rich .NET experiences and building applications that can easily and securely operate within it. When developed applications are deployed, those applications will target .NET and will execute wherever .NET is implemented instead of targeting a particular Hardware/OS combination. The components that make up the .NET platform are collectively called the .NET Framework.

The .NET Framework is a managed, type-safe environment for developing and executing applications. The .NET Framework manages all aspects of program execution, like, allocation of memory for the storage of data and instructions, granting and denying permissions to the application, managing execution of the application and reallocation of memory for resources that are not needed.

The .NET Framework is designed for cross-language compatibility. Cross-language compatibility means, an application written in Visual Basic .NET may reference a DLL file written in C# (C-Sharp). A Visual Basic .NET class might be derived from a C# class or vice versa.

The .NET Framework consists of two main components:

Common Language Runtime (CLR)

Class Libraries

The advantage of C# includes

Powerful Windows-based Applications

Building Web-based Applications

Simplified Deployment

Powerful, Flexible, Simplified Data Access

Improved Coding

Direct Access to the Platform

Full Object-Oriented Constructs

XML Web Services

COM Interoperability

DT-3: SQL Server 2008WCPS Application uses SQL Server 2008 as storing the data. Microsoft SQL Server 2008 as our database and it has so many features which is ideal for our dot net based application. Features Includes

Support for Multiple Platforms

Integration with Windows Back office servers Integration with Microsoft .NET Enterprise Servers

Scalability

Replication

Centralized Management

Reliability

Automating Tasks

1.4.4 Development EnvironmentDE-1:1.Visual Studio 2010 IDEMost advanced integrated development environment for developing .NET application. Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It can be used to develop console and graphical user interface applications along with Windows Forms applications, web sites, web applications, and web services in both native code together with managed code for all platforms supported by Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework and Microsoft Silverlight.

Visual Studio includes a code editor supporting IntelliSense as well as code refactoring. The integrated debugger works both as a source-level debugger and a machine-level debugger. Other built-in tools include a forms designer for building GUI applications, web designer, class designer, and database schema designer. It allows plug-ins to be added that enhance the functionality at almost every level - including adding support for source control systems (like Subversion and Visual SourceSafe) to adding new toolsets like editors and visual designers for domain-specific languages or toolsets for other aspects of the software development lifecycle (like the Team Foundation Server client: Team Explorer).

Visual Studio supports languages by means of language services, which allow any programming language to be supported (to varying degrees) by the code editor and debugger, provided a language-specific service has been authored. Built-in languages include C/C++ (via Visual C++), VB.NET (via Visual Basic .NET), and C# (via Visual C#). Support for other languages such as Chrome, F#, Python, and Ruby among others has been made available via language services which are to be installed separately. It also supports XML/XSLT, HTML/XHTML, JavaScript and CSS. Language-specific versions of Visual Studio also exist which provide more limited language services to the user. These individual packages are called Microsoft Visual Basic, Visual J#, Visual C#, and Visual C++.2. Overall Description

2.1 User Characteristics

2.1.1 EmployeeAble to login, apply for new claim, view claim status, change password.2.1.2 CPD - Claims Processing Department

CPD Employee can add new employee, edit employee details, approve / reject claim, view status, change his/her own password.2. 2.Assumptions

1) CPD and Employees communicate with each other via emails.3. System Features

3. 1.Systern features

3.1.1 .Description:

Proposed to develop a software titled Web Based Claims Processing System (WCPS) which is web based so that the employee can fill the form online and submit it so that the form is sent to CPD through Internet. At CPD, the form needs to be checked automatically by a program which will compute the amount that needs to be reimbursed to the employee for the treatment undertaken. Any excess amount claimed by the employee is ignored by the software. The amount computed will be routed to the e-mail account of the employee as well as to the Bank which holds the accounts of all the employees of the company. The bank will credit the amount to the account of the employee based on the mail.3.1 .2.Constraints

Linking and integration with other legacy system for data sharing. Connecting to third-party OLAP applications for generating reports. Etc.4. Preliminary Design

4.1 Use CaseWeb Based Claims Processing System (WCPS) 1.0 will address the following use cases. The complete usage scenarios will be completed during the information-gathering process. Use cases will be created and prioritized. Selected use cases will be expanded into usage scenarios and features that are derived from both use cases and the usage scenarios, as represented in the following diagram:

[Web Based Claims Processing System (WCPS) Usage Scenario This usage scenario, or scenario for short, describes a real-world example of how one or more people or organizations interact with Web Based Claims Processing System (WCPS). It describes the steps, events, and/or actions which occur during the interaction. This Usage scenarios indicating exactly how someone works with the user interface, or reasonably high leveldescribing the critical business actions but not the indicating how theyre performed. ]4.2 Specification of actors

The following actors are defined so far in the analysis phase of the Web Based Claims Processing System (WCPS) development process.

4.2.1 EmployeeEmployee

ElementDetails

DescriptionAn employee is a user of the Web Based Claims Processing System (WCPS) system.

ExamplesAn Employee apply for new claim and view the status of his/her own claim.

4.2.2 CPD - Claims Processing DepartmentCPD - Claims Processing Department

ElementDetails

DescriptionThe CPD is the person who can approve / reject claim applied by the employee.

ExamplesCPD updates the claim status and his/her remark for a claim.

4.3 Specification of Use Cases

4.3.1 Use Case

Manage EmployeeManage Employee

ElementDetails

ActorCPD

TriggerEmployee is not registered in the System and the CPD wish to Add new employee into the WCPS.

Pre ConditionsEmployee no is not listed in the system. CPD opens the new employee page, and the new employee page is displayed.

Post ConditionsEmployee is registered in the system, new employee no is generated.

Normal course1. New Employee page appears on the screen

2. System increment the last registered Employee No by 1 to get the No for the new employee.

3. CPD fill in the Employees information including Name, Department, Designation, Date of Birth, Email ID, Adress(es), Phone number(s),

4. System update

Alternative courses3a. Not all mandatory data fields are filled

3a1.Employee fills in the missing data fields

Use Case Diagram : Manage Employee

[Use Case: Manage Employee This use case scenario, or scenario for short, describes how CPD will add new employee into Web Based Claims Processing System (WCPS). It describes the steps, events, and/or actions which occur during the interaction. This Usage scenarios indicating exactly how someone works with the employee registration interface. ]

4.3.2 Use Case.

Apply ClaimMange Question Banks

ElementDetails

ActorEmployee

TriggerApply for new claim

Pre ConditionsEmployee wish to apply for new claim and having login rights to WCPS.

Post ConditionsNew claim is saved, and details are listed in pending claim details.

Normal Event Flow1. The employee open the new claim page2. Employee select claim type. Enter amount, and remark.

3. Employee update the System by confirming the data entered into the new claim form.4. System saved the claim and display claim details in pending lists.

Variations3a. Mandatory fields in the claim form are missing

3a1. The system reject the entry and system update with an error message about missing mandatory fields.

Use Case Diagram: Apply Claim

[Use Case: Apply Claim This use case scenario, or scenario for short, describes how employee will apply new claim into Web Based Claims Processing System (WCPS). It describes the steps, events, and/or actions which occur during the interaction. ]

4.3.3 Use Case.

Approve ClaimApprove Claim

ElementDetails

ActorCPD

TriggerCPD staff wants to approve claim

Pre ConditionsThe CPD staff must register into the system, the CPD is logged into the system, and the system display pending list for claim need to approve.

Post ConditionsClaim status is updated and Employee can view the status of his / her claim.

Normal event flow1. CPD logged in.2. System displays all pending claim details.

3. CPD selects the claim, view the details4. CPD updated the claim status, like approved / reject, enters remarks.5. CPD logged out from the system.

VariationsNA

Use Case Diagram: Approve Claim

[Use Case: Approve Claim This use case scenario, or scenario for short, describes how CPD staff approved claim in Web Based Claims Processing System (WCPS). It describes the steps, events, and/or actions which occur during the interaction. ]

4.3.4 Use Case.

System Login

System Login

ElementDetails

ActorEmployee, CPD

TriggerThe user wish to start using the system.

Pre ConditionsThe user is not logged into the system.

Post ConditionsThe user is logged into the system, and the system menu is displayed.

Normal course1. The user click the link for theWCPS and a login page appear on the screen.

2. The user types his username and password into the form and press the login button.

3. The system confirms that the user is logged on.

Alternative courses 2a. The user is not a valid user or the user name or the password is

mistyped.

2a1. The system reject login with an error message that express wrong

login name or password.

Use Case Diagram: System Login

[Use Case: System Login This use case scenario, or scenario for short, describes how actors will perform login Web Based Claims Processing System (WCPS). It describes the steps, events, and/or actions which occur during the interaction. ]

4.4 Process Flow Chart

4.5 Entity Data Model Diagram 1

4.7 Data Dictionary

Table: emp_masterColumn NameData TypeField Length

Empidint4

Empnamevarchar50

Departmentvarchar20

Designationvarchar20

Emailidvarchar50

Dobvarchar10

Addressvarchar50

Cityvarchar20

Statevarchar20

Mobilevarchar11

acnovarchar20

bankvarchar50

passwordvarchar20

utypevarchar50

[emp_master table is used to store employee details ]Table: emp_claimsColumn NameData TypeField Length

appidint4

empidint4

pnamevarchar50

hospitalvarchar50

realtionvarchar50

apptypevarchar50

discriptionvarchar50

claimamountint4

cdatevarchar20

statusvarchar50

apamountint4

apdatevarchar20

apdiscriptionvarchar50

apseenbit1

[emp_claims table is used to store claim details]

5. Future EnhancementThis project was developed to fulfill user requirement; however there are lots of scope to improve the performance of the Web Based Claims Processing System (WCPS) in the area of user interface, database performance, and query processing time. Etc.

So there are many things for future enhancement of this project. The future enhancements that are possible in the project are as follows.

Linking and integration of other online web sites.

Integration with other legacy accounting database through Web Services

Connection to third-party OLAP applications

In the area of data security and system security.

Provide more online tips and help.

To optimize the query which is embedded in the system.

6. Bibliography

6.1 Websites

Following websites are referring to create this project reports. http://www.google.com http://www.microsoft.com http://www.programmer2programmer.net http://www.codeproject.com http://www.asp.net http://www.asp123.com http://www.wikipedia.org 6.2 Books

Following books and ebook are used to complete this project reports. Mastering C# (Paperback)

SQL Server Bible (Paperback)

.NET Black Book (Paperback)

Professional C#, 2nd Edition (Paperback)

Professional ASP.NET (Paperback)

MCAD/MCSD Self-Paced Training Kit: Developing Web Applications with Microsoft Visual Basic .NET and Microsoft Visual C# .NET, Second Edition

MCAD/MCSE/MCDBA Self-Paced Training Kit: Microsoft SQL Server 2000 Database Design and Implementation, Exam 70-229, Second Edition

Main.aspx

B.S.A College Of Engineerinf & Technology , Mathura .style1 {

width: 26%;

}

.style2 {

width: 157px;

}

.style3 {

width: 1291px;

height: 159px;

}

Welcome To B.S.A.C.E.T, Mathura
Login Enter The Employee/Admin ID
Enter The PassWord

I have done Training in Multisoft Systems,Noida. At MultiSoft Systems we go beyond

traditional staffing methods to bring you the results you need. We have the experience and knowledge to design custom recruiting programs and strategies that will provide the precise solution to your unique situation.

Amit Gautam, Mca 2013

Main.aspx.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data.SqlClient;

public partial class Main : System.Web.UI.Page{

protected void Page_Load(object sender, EventArgs e)

{

}

protected void TextBox1_TextChanged(object sender, EventArgs e)

{

}

SqlConnection con;

SqlCommand cmd;

SqlDataReader dr;

protected void Button1_Click(object sender, EventArgs e)

{

con = new SqlConnection(db.connection);

cmd=new SqlCommand("SELECT EMPID,UTYPE,EMPNAME,DEPARTMENT,DESIGNATION FROM REGISTRATION WHERE EMPID="+TextBox1.Text+" AND PASSWORD='"+TextBox2.Text+"'",con);

con.Open();

try {

dr = cmd.ExecuteReader();

if (dr.Read())

{

string utype = dr[1].ToString();

if (utype == "Admin")

{

Session["uname"] = dr[2].ToString();

Session["admin"] = dr[1].ToString();

Session["empid"] = dr[0].ToString();

Session["dept"] = dr[3].ToString();

Session["desig"] = dr[4].ToString();

Response.Redirect("Home.aspx");

}

else if (utype == "User" || utype == "Employee")

{

Session["uname"] = dr[2].ToString();

Session["user"] = dr[1].ToString();

Session["empid"] = dr[0].ToString();

Session["dept"] = dr[3].ToString();

Session["desig"] = dr[4].ToString();

Response.Redirect("Uhome.aspx");

}

else {

Label1.Visible = true;

Label1.Text = "Not A Vailid User";

}

}

else {

Label1.Visible = true;

Label1.Text = "Wrong User ID Or Password";

}

}

catch {

Label1.Visible = true;

Label1.Text = "Please Enter The Employe ID Provided By Company";

}

}

}

Home.aspx

Welcome To B.S.A.C.E.T, Mathura LinkButton
Control Panel

home.aspx.csusing System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page{

SqlConnection con;

SqlCommand cmd;

protected void Page_Load(object sender, EventArgs e)

{

con = new SqlConnection(db.connection);

cmd = new SqlCommand("SELECT count(APSEEN) FROM CLAIM WHERE APSEEN='FALSE'", con);

con.Open();

int i = (int)cmd.ExecuteScalar();

con.Close();

if (i > 0)

{

LinkButton2.Visible = true;

LinkButton2.Text = "You Have " + i.ToString() + " More Pending Claim";

}

}

}

Reg.aspx

.style2 {

width: 600px;

height:500px;

}

.style4 {

width: 276px;

margin-left: 80px;

}

.style5 {

width: 1284px;

height: 24px;

}

.style7 {

width: 276px;

margin-left: 80px;

height: 9px;

}

.style8 {

height: 9px;

}

.style9 {

width: 1284px;

height: 9px;

}

.style10 {

width: 1284px;

height: 2px;

}

.style11 {

width: 276px;

margin-left: 80px;

height: 2px;

}

.style12 {

height: 2px;

}

.style16 {

width: 1284px;

}

.style17 {

width: 1284px;

height: 18px;

}

.style18 {

width: 276px;

margin-left: 80px;

height: 18px;

}

.style19 {

height: 18px;

}

.style20 {

width: 1284px;

height: 13px;

}

.style21 {

width: 276px;

margin-left: 80px;

height: 13px;

}

.style22 {

height: 13px;

}

.style23 {

width: 1284px;

height: 20px;

}

.style24 {

width: 276px;

margin-left: 80px;

height: 20px;

}

.style25 {

height: 20px;

}

.style26 {

width: 1284px;

height: 19px;

}

.style27 {

width: 276px;

margin-left: 80px;

height: 19px;

}

.style28 {

height: 19px;

}

.style29 {

width: 1284px;

height: 30px;

}

.style30 {

width: 276px;

margin-left: 80px;

height: 30px;

}

.style31 {

height: 30px;

}

Employee Registration

New Registration Name Department Select Department IT CS EC Sales MCA Designation Select Designation Developer Tester Designer Team Leader Project Manager Trainer Admin User Type Select User Type Admin Employee Email Id Date Of Birth

DD 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 MM 01 02 03 04 05 06 07 08 09 10 11 12 YYYY Address City State Select State Andhra Pradesh Arunachal Pradesh Assam Bihar Chhattisgarh Goa Gujarat Haryana Himachal Pradesh Jammu and Kashmir Jharkhand Karnataka Kerala Madhya Pradesh Maharashtra Manipur Meghalaya Mizoram Nagaland Orissa Punjab Rajasthan Sikkim Tamil Nadu Tripura Uttarakhand Uttar Pradesh West Bengal Mobile No. Account No. Bank Name PassWord

Reg.aspx.csusing System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

public partial class Reg : System.Web.UI.Page{

protected void Page_Load(object sender, EventArgs e)

{

for (int i = 0; i 0)

{

Label1.Visible = true;

TextBox2.Text = "";

TextBox3.Text = "";

TextBox4.Text = "";

TextBox5.Text = "";

TextBox6.Text = "";

TextBox7.Text = "";

TextBox8.Text = "";

TextBox9.Text = "";

}

else {

Label1.Visible = false;

}

con.Close();

}

empdetail.aspx

Claim Detail


empdetail.aspx.csusing System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

public partial class Default3 : System.Web.UI.Page{

SqlConnection con;

SqlDataAdapter da;

DataSet ds=new DataSet();

protected void Page_Load(object sender, EventArgs e)

{

con = new SqlConnection(db.connection);

da = new SqlDataAdapter("SELECT * FROM REGISTRATION", con);

da.Fill(ds);

GridView1.DataSource = ds.Tables[0];

GridView1.DataBind();

}

protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)

{

GridView1.EditIndex = -1;

GridView1.DataBind();

}

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)

{

}

protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)

{

}

protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)

{

int id = Convert.ToInt32( GridView1.Rows[e.RowIndex].Cells[1].Text);

string name = ((TextBox)GridView1.Rows[e.RowIndex].Cells[2].Controls[0]).Text;

string dept = ((TextBox)GridView1.Rows[e.RowIndex].Cells[3].Controls[0]).Text;

string desig = ((TextBox)GridView1.Rows[e.RowIndex].Cells[4].Controls[0]).Text;

string Emailid = ((TextBox)GridView1.Rows[e.RowIndex].Cells[5].Controls[0]).Text;

string dob = ((TextBox)GridView1.Rows[e.RowIndex].Cells[6].Controls[0]).Text;

string address = ((TextBox)GridView1.Rows[e.RowIndex].Cells[7].Controls[0]).Text;

string city = ((TextBox)GridView1.Rows[e.RowIndex].Cells[8].Controls[0]).Text;

string state = ((TextBox)GridView1.Rows[e.RowIndex].Cells[9].Controls[0]).Text;

string mobile = ((TextBox)GridView1.Rows[e.RowIndex].Cells[10].Controls[0]).Text;

string acno = ((TextBox)GridView1.Rows[e.RowIndex].Cells[11].Controls[0]).Text;

string bank = ((TextBox)GridView1.Rows[e.RowIndex].Cells[12].Controls[0]).Text;

string jdate = ((TextBox)GridView1.Rows[e.RowIndex].Cells[13].Controls[0]).Text;

string passwored = ((TextBox)GridView1.Rows[e.RowIndex].Cells[14].Controls[0]).Text;

string utype = ((TextBox)GridView1.Rows[e.RowIndex].Cells[15].Controls[0]).Text;

con.Open();

SqlCommand cmd = new SqlCommand("UPDATE REGISTRATION SET EMPNAME='"+ name+"', DEPARTMENT='"+ dept+"', DESIGNATION='"+ desig+"', EMAILID='"+ Emailid+"',DOB='"+ dob+"', ADDRESS='"+ address+"', CITY='"+ city +"', STATE='"+ state+"', MOBILE='"+ mobile+"', ACNO='"+ acno +"',BANK='"+bank +"', JDATE='"+ jdate+"', PASSWORD='"+ passwored +"', UTYPE='"+ utype+"' WHERE EMPID='"+ id+"' ",con);

int j= cmd.ExecuteNonQuery();

Response.Write(id.ToString()+name);

// GridView1.EditIndex = -1; con.Close();

GridView1.EditIndex = -1;

GridView1.DataBind();

}

protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)

{

DataView dv = new DataView(ds.Tables[0]);

dv.Sort = e.SortExpression;

GridView1.DataSource = dv;

GridView1.DataBind();

}

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)

{

GridView1.PageIndex = e.NewPageIndex;

GridView1.DataBind();

}

protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)

{

}

protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)

{

SqlCommand cmd = new SqlCommand("DELETE FROM REGISTRATION WHERE EMPID=" + GridView1.Rows[e.RowIndex].Cells[1].Text + "", con);

con.Open();

cmd.ExecuteNonQuery();

con.Close();

da = new SqlDataAdapter("SELECT * FROM REGISTRATION", con);

da.Fill(ds);

GridView1.DataSource = ds.Tables[0];

GridView1.DataBind();

}

protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)

{

GridView1.DeleteRow(1);

GridView1.DataBind();

}

}

Uhome.aspx

Welcome To B.S.A.C.E.T, Mathura LinkButton
Control Panel

Enter Old Password