Web Based Claim Processing System
Web Based Claim Processing System
A
PRACTICAL TRAINING REPORT ON
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.)
1/100
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. : 1006514003
2/100
DECLARATION
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.
3/100
CERTIFICATE 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:
4/100
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.
5/100
TABLE OF CONTENTS
1. PROBLEM DEFINITION AND SCOPE OF PROJECT..........................................................................................8
1.1 Purpose.......................................................................................................................................8 1.2 Objective....................................................................................................................................9 1.3 Project Scope...........................................................................................................................10 1.4 Technologies............................................................................................................................10 1.4.1 Operating Environment....................................................................................................10 ...................................................................................................................................................10 1.4.2 Deployment Environment.................................................................................................11 1.4.3 Development Tools and Technologies..............................................................................12 1.4.4 Development Environment...............................................................................................15
2. OVERALL DESCRIPTION.......................................................................................................................................16
2.1 User Characteristics.................................................................................................................16 2.1.1 Employee..........................................................................................................................16 2.1.2 CPD - Claims Processing Department .............................................................................16 2. 2.Assumptions............................................................................................................................16
3. SYSTEM FEATURES.................................................................................................................................................17
4.1 Use Case.................................................................................................................................18 4.2 Specification of actors..............................................................................................................19 4.2.1 Employee..........................................................................................................................19 4.2.2 CPD - Claims Processing Department..............................................................................19 4.3 Specification of Use Cases.......................................................................................................20 4.3.1 Use Case Manage Employee..........................................................................................20 4.3.2 Use Case. Apply Claim...................................................................................................23 4.3.3 Use Case. Approve Claim...............................................................................................25 4.3.4 Use Case. System Login.................................................................................................27 4.4 Process Flow Chart ........................................................................................................................................................29
4.5 ENTITY DATA MODEL DIAGRAM 1..................................................................................................................30 ............................................................................................................................................................................................30 4.7 DATA DICTIONARY...............................................................................................................................................31
5. Future Enhancement..............................................................................................................32
6. BIBLIOGRAPHY........................................................................................................................................................34
6/100
7/100
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.
8/100
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.
9/100
1.4 Technologies
1.4.1 Operating Environment
OE-1: OE-2: The WCPS web application will operate with the following Web Browsers: Microsoft Internet Explorer version 5.0, 6.0. 7.0 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.
10/100
DE-2:
DE-3:
11/100
12/100
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 2008 WCPS 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
13/100
14/100
15/100
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 Employee
Able to login, apply for new claim, view claim status, change password.
2. 2.Assumptions
1) CPD and Employees communicate with each other via emails.
16/100
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.
17/100
4. Preliminary Design
4.1 Use Case
Web 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
scenario
Syemst Login
Manage Employee
Approve Claim
Employee
CPD
Reports
[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 level describing the critical business actions but not the indicating how theyre performed. ]
4.2.1 Employee
Employee Element Details
Description Examples
An employee is a user of the Web Based Claims Processing System (WCPS) system. An Employee apply for new claim and view the status of his/her own claim.
Description Examples
The CPD is the person who can approve / reject claim applied by the employee. CPD updates the claim status and his/her remark for a claim.
19/100
Manage Employee
Manage Employee Details
CPD Employee is not registered in the System and the CPD wish to Add new employee into the WCPS. Employee no is not listed in the system. CPD opens the new employee page, and the new employee page is displayed. Employee is registered in the system, new employee no is generated. 1. 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 3a. Not all mandatory data fields are filled 3a1.Employee fills in the missing data fields
Alternative courses
20/100
Employee Registration
Employee List
21/100
[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. ]
22/100
Apply Claim
Mange Question Banks
Element
Details
Employee Apply for new claim Employee wish to apply for new claim and having login rights to WCPS. New claim is saved, and details are listed in pending claim details. 1. The employee open the new claim page 2. 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. 3a. 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.
Variations
23/100
New Claim
Employee
Validation
Add to Catalog
[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. ]
24/100
Approve Claim
Approve Claim
Element
Details
CPD CPD staff wants to approve claim The 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. Claim status is updated and Employee can view the status of his / her claim. 1. 2. 3. 4. CPD logged in. System displays all pending claim details. CPD selects the claim, view the details CPD updated the claim status, like approved / reject, enters remarks. 5. CPD logged out from the system. NA
Post Conditions
Variations
25/100
CPD
[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. ]
26/100
System Login
System Login Details
Employee, CPD The user wish to start using the system. The user is not logged into the system. The user is logged into the system, and the system menu is displayed. 1. 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. 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.
Alternative courses
27/100
Employee
Employee Master
Login to System
CPD
[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. ]
28/100
Login
CPD
Modul e Selecti on
Employee
View Status
Manage Employee
Stop
29/100
30/100
Column Name
Empid Empname Department Designation Emailid Dob Address City State Mobile acno bank password utype
Data Type
int varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar
Field Length
4 50 20 20 50 10 50 20 20 11 20 50 20 50
31/100
Table: emp_claims
Column Name
appid empid pname hospital realtion apptype discription claimamount cdate status apamount apdate apdiscription apseen
Data Type
int int varchar varchar varchar varchar varchar int varchar varchar int varchar varchar bit
Field Length
4 4 50 50 50 50 50 4 20 50 4 20 50 1
5. Future Enhancement
32/100
This 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.
33/100
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
34/100
Main.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <marquee direction="left" >B.S.A College Of Engineerinf & Technology , Mathura </marquee> <title></title> <style type="text/css"> .style1 { width: 26%; } .style2 { width: 157px; } .style3 { width: 1291px; height: 159px; } </style> </head> <body> <form id="form1" runat="server"> <div> <img alt="" class="style3" src="image/Bsa%20Image.jpg" /><table width="100%"> <tr> <td> </td>
35/100
</tr> </table> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976"> Welcome To B.S.A.C.E.T, Mathura</font></h2><br /><center> <asp:Label ID="Label1" runat="server" Text="Wrong User ID Or Password" Font-Bold="True" Font-Italic="True" ForeColor="#FF3300" Font-Size="Medium" Visible="False"></asp:Label>
<table width="100%"> <tr> <td style="width:15%"></td> <td style="width:20%"><img src="image/user_login.jpg" width="100%" /></td> <td class="style1"> <fieldset style="width: 331px"> <legend>Login</legend> <table cellspacing="5px" style="color: #0000FF; font-family: 'Times New Roman', Times, serif; width: 334px; height: 92px; vertical-align:top; vertical-align:text-top"> <tr> <td class="style2" valign="top">Enter The Employee/Admin ID</td> <td> <asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter The Id" ControlToValidate="TextBox1" ForeColor="#FF0066"></asp:RequiredFieldValidator></td> </tr> <tr> <td class="style2" valign="top">Enter The PassWord</td> <td> <asp:TextBox ID="TextBox2" runat="server" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True" TextMode="Password"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please Enter PassWord" ControlToValidate="TextBox2" ForeColor="#FF0066"></asp:RequiredFieldValidator></td> </tr> <tr> <td class="style2" > </td> <td> <asp:Button ID="Button1" runat="server" Text="LogIn" Width="124px" BackColor="#A52B5E" BorderColor="#FFFF99" Font-Bold="True" Font-Italic="True" Font-Size="Medium" ForeColor="#FBFCFB" onclick="Button1_Click" /> </td> </tr> </table> </fieldset> </td>
36/100
</asp:Panel> <p style="text-align:justify"> 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. </p> <marquee direction= "left" >Amit Gautam, Mca 2013</marquee> </div>
</form> </body> </html> 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();
37/100
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"; }
38/100
Home.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976"> Welcome To B.S.A.C.E.T, Mathura</font></h2> <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="#FF6600" Visible="False" PostBackUrl="~/aprove.aspx">LinkButton</asp:LinkButton><br /> <fieldset style="width:90%"> <legend>Control Panel</legend> <table width="100%" > <tr> <td width="30%"> <a href="Reg.aspx"> <asp:Image ID="Image1" runat="server" Height="205px" ImageUrl="~/image/logo-registration-services-250x250.jpg" ToolTip="Registration" Width="180px" /> </a> </td> <td width="30%"> <a href="sendmail.aspx"> <asp:Image ID="Image2" runat="server" Height="205px" ImageUrl="~/image/super-gmail-logo.jpg" ToolTip="Send Mail" Width="180px" /> </a> </td>
39/100
<td width="30%"> <a href="Changepass.aspx"> <asp:Image ID="Image3" runat="server" Height="205px" ImageUrl="~/image/lim.png" ToolTip="Change Password" Width="180px" /> </a> </td> </tr> <tr> <td width="30%"> <a href="empdetail.aspx"> <asp:Image ID="Image4" runat="server" Height="205px" ImageUrl="~/image/stock-vector-user-login-vector-icon-isolated-96506144.jpg" ToolTip="View Employee Detail" Width="180px" /> </a></td> <td width="30%"> <a href="aprove.aspx"> <asp:Image ID="Image5" runat="server" Height="205px" ImageUrl="~/image/FreelancerMarketplace-1577.jpg" ToolTip="View Employee Claim" Width="180px" /> </a></td> <td width="30%"> <a href="Reg.aspx"> <asp:Image ID="Image6" runat="server" Height="205px" ImageUrl="~/image/FreelancerMarketplace-1577.jpg" ToolTip="View Employee Claim" Width="180px" /> </a></td> </tr> </table> </fieldset> </asp:Content>
home.aspx.cs
using using using using using using using using System; System.Collections.Generic; System.Linq; System.Web; System.Web.UI; System.Web.UI.WebControls; System.Data; 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();
40/100
int i = (int)cmd.ExecuteScalar(); con.Close(); if (i > 0) { LinkButton2.Visible = true; LinkButton2.Text = "You Have " + i.ToString() + " More Pending Claim"; } } }
41/100
Reg.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Reg.aspx.cs" Inherits="Reg" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .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;
42/100
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;
43/100
} .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; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976"> Employee Registration</font></h2> <center> <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" Text="You Have Successfully Added A New Record" Visible="False"></asp:Label></center> <br /> <fieldset style="width:350px; vertical-align:middle; margin-left:100px "> <legend> New Registration </legend> <table class="style2"> <tr> <td class="style29"> Name</td> <td class="style30"> <asp:TextBox ID="TextBox2" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td class="style31"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="RequiredFieldValidator"
44/100
SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style5"> Department</td> <td class="style4"> <asp:DropDownList ID="DropDownList1" runat="server" Height="25px" Width="160px"> <asp:ListItem>Select Department</asp:ListItem> <asp:ListItem>IT</asp:ListItem> <asp:ListItem>CS</asp:ListItem> <asp:ListItem>EC</asp:ListItem> <asp:ListItem>Sales</asp:ListItem> <asp:ListItem>MCA</asp:ListItem> </asp:DropDownList> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DropDownList1" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style26"> Designation</td> <td class="style27"> <asp:DropDownList ID="DropDownList2" runat="server" Height="25px" Width="160px"> <asp:ListItem>Select Designation</asp:ListItem> <asp:ListItem>Developer</asp:ListItem> <asp:ListItem>Tester</asp:ListItem> <asp:ListItem>Designer</asp:ListItem> <asp:ListItem>Team Leader</asp:ListItem> <asp:ListItem>Project Manager</asp:ListItem> <asp:ListItem>Trainer</asp:ListItem> <asp:ListItem>Admin</asp:ListItem> </asp:DropDownList> </td> <td class="style28"> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="DropDownList2" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style17"> User Type</td> <td class="style18"> <asp:DropDownList ID="DropDownList7" runat="server" Height="25px" Width="160px"> <asp:ListItem>Select User Type</asp:ListItem> <asp:ListItem>Admin</asp:ListItem> <asp:ListItem>Employee</asp:ListItem> </asp:DropDownList> </td> <td class="style19"> </td> </tr>
45/100
<tr> <td class="style23"> Email Id</td> <td class="style24"> <asp:TextBox ID="TextBox3" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td class="style25"> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox3" ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+ ([-.]\w+)*"></asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style16"> Date Of Birth</td> <td class="style4"> <asp:DropDownList ID="DropDownList3" runat="server" Height="25px"> <asp:ListItem>DD</asp:ListItem> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2</asp:ListItem> <asp:ListItem>3</asp:ListItem> <asp:ListItem>4</asp:ListItem> <asp:ListItem>5</asp:ListItem> <asp:ListItem>6</asp:ListItem> <asp:ListItem>7</asp:ListItem> <asp:ListItem>8</asp:ListItem> <asp:ListItem>9</asp:ListItem> <asp:ListItem>10</asp:ListItem> <asp:ListItem>11</asp:ListItem> <asp:ListItem>12</asp:ListItem> <asp:ListItem>13</asp:ListItem> <asp:ListItem>14</asp:ListItem> <asp:ListItem>15</asp:ListItem> <asp:ListItem>16</asp:ListItem> <asp:ListItem>17</asp:ListItem> <asp:ListItem>18</asp:ListItem> <asp:ListItem>19</asp:ListItem> <asp:ListItem>20</asp:ListItem> <asp:ListItem>21</asp:ListItem> <asp:ListItem>22</asp:ListItem> <asp:ListItem>23</asp:ListItem> <asp:ListItem>24</asp:ListItem> <asp:ListItem>25</asp:ListItem> <asp:ListItem>26</asp:ListItem> <asp:ListItem>27</asp:ListItem> <asp:ListItem>28</asp:ListItem> <asp:ListItem>29</asp:ListItem> <asp:ListItem>30</asp:ListItem> <asp:ListItem>31</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="DropDownList4" runat="server" Height="25px"> <asp:ListItem>MM</asp:ListItem> <asp:ListItem>01</asp:ListItem> <asp:ListItem>02</asp:ListItem> <asp:ListItem>03</asp:ListItem> <asp:ListItem>04</asp:ListItem> <asp:ListItem>05</asp:ListItem>
46/100
<asp:ListItem>06</asp:ListItem> <asp:ListItem>07</asp:ListItem> <asp:ListItem>08</asp:ListItem> <asp:ListItem>09</asp:ListItem> <asp:ListItem>10</asp:ListItem> <asp:ListItem>11</asp:ListItem> <asp:ListItem>12</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="DropDownList5" runat="server" style="height: 25px; width: 55px"> <asp:ListItem>YYYY</asp:ListItem> </asp:DropDownList> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="DropDownList5" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style20"> Address</td> <td class="style21"> <asp:TextBox ID="TextBox4" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td class="style22"> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox4" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style16"> City</td> <td class="style4"> <asp:TextBox ID="TextBox5" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox5" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style16"> State</td> <td class="style4"> <asp:DropDownList ID="DropDownList6" runat="server" Height="25px" Width="160px"> <asp:ListItem>Select State</asp:ListItem> <asp:ListItem>Andhra Pradesh</asp:ListItem> <asp:ListItem>Arunachal Pradesh</asp:ListItem> <asp:ListItem>Assam</asp:ListItem> <asp:ListItem>Bihar</asp:ListItem> <asp:ListItem>Chhattisgarh</asp:ListItem> <asp:ListItem>Goa</asp:ListItem> <asp:ListItem>Gujarat</asp:ListItem>
47/100
<asp:ListItem>Haryana</asp:ListItem> <asp:ListItem>Himachal Pradesh</asp:ListItem> <asp:ListItem>Jammu and Kashmir</asp:ListItem> <asp:ListItem>Jharkhand</asp:ListItem> <asp:ListItem>Karnataka</asp:ListItem> <asp:ListItem>Kerala</asp:ListItem> <asp:ListItem>Madhya Pradesh</asp:ListItem> <asp:ListItem>Maharashtra</asp:ListItem> <asp:ListItem>Manipur</asp:ListItem> <asp:ListItem>Meghalaya</asp:ListItem> <asp:ListItem>Mizoram</asp:ListItem> <asp:ListItem>Nagaland</asp:ListItem> <asp:ListItem>Orissa</asp:ListItem> <asp:ListItem>Punjab</asp:ListItem> <asp:ListItem>Rajasthan</asp:ListItem> <asp:ListItem>Sikkim</asp:ListItem> <asp:ListItem>Tamil Nadu</asp:ListItem> <asp:ListItem>Tripura</asp:ListItem> <asp:ListItem>Uttarakhand</asp:ListItem> <asp:ListItem>Uttar Pradesh</asp:ListItem> <asp:ListItem>West Bengal</asp:ListItem> </asp:DropDownList> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="DropDownList6" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style16"> Mobile No.</td> <td class="style4"> <asp:TextBox ID="TextBox6" runat="server" Height="19px" Width="156px" MaxLength="11"></asp:TextBox> </td> <td> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox6" ErrorMessage="Wrong Mobile No" ValidationExpression="\d\d\d\d\d\d\d\d\d\d"></asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style17"> Account No.</td> <td class="style18"> <asp:TextBox ID="TextBox7" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td class="style19"> </td> </tr> <tr> <td class="style16"> Bank Name</td> <td class="style4"> <asp:TextBox ID="TextBox8" runat="server" Height="19px" Width="156px"></asp:TextBox> </td>
48/100
<td> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBox8" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style10"> PassWord</td> <td class="style11"> <asp:TextBox ID="TextBox9" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td class="style12"> </td> </tr> <tr> <td class="style9"> <input id="Reset1" type="reset" value="Clear" style="background-color: #A52B5E; color: #FBFCFB;" /></td> <td class="style7"> <asp:Button ID="Button1" runat="server" Text="Save" Width="109px" onclick="Button1_Click" Height="27px" BackColor="#A52B5E" ForeColor="#FBFCFB" /> </td> <td class="style8"> </td> </tr> </table> </fieldset> </asp:Content>
Reg.aspx.cs
using using using using using using using using
public partial class Reg : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { for (int i = 0; i <= 100; i++) { DropDownList5.Items.Add((1950 + i).ToString()); } }
49/100
SqlConnection con =new SqlConnection(db.connection); // SqlCommandBuilder cb; //DataSet ds = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(); protected void Button1_Click(object sender, EventArgs e) { da.InsertCommand = new SqlCommand("regiemp", con); // cb = new SqlCommandBuilder(da); con.Open(); da.InsertCommand.CommandType = CommandType.StoredProcedure; da.InsertCommand.Parameters.AddWithValue("@ename", TextBox2.Text); da.InsertCommand.Parameters.AddWithValue("@dep", DropDownList1.Text); da.InsertCommand.Parameters.AddWithValue("@desig", DropDownList2.Text); da.InsertCommand.Parameters.AddWithValue("@email", TextBox3.Text); //string s = DropDownList3.Text + "/" + DropDownList4.Text + "/" + DropDownList5.Text; da.InsertCommand.Parameters.AddWithValue("@dob", DropDownList3.Text + "/" + DropDownList4.Text + "/" + DropDownList5.Text); da.InsertCommand.Parameters.AddWithValue("@add", TextBox4.Text); da.InsertCommand.Parameters.AddWithValue("@city", TextBox5.Text); da.InsertCommand.Parameters.AddWithValue("@state", DropDownList6.Text); da.InsertCommand.Parameters.AddWithValue("@mobile", TextBox6.Text); da.InsertCommand.Parameters.AddWithValue("@acno", TextBox7.Text); da.InsertCommand.Parameters.AddWithValue("@bank", TextBox8.Text); da.InsertCommand.Parameters.AddWithValue("@pass", TextBox9.Text); da.InsertCommand.Parameters.AddWithValue("@utype", DropDownList7.Text); int i = da.InsertCommand.ExecuteNonQuery(); if (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(); }
50/100
empdetail.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="empdetail.aspx.cs" Inherits="Default3" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976">Claim Detail</font></h2> <asp:Panel ID="Panel1" runat="server" ScrollBars="Vertical" Width="800px" > <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateSelectButton="True" Width="123px" EnableTheming="False" Height="225px" AllowSorting="True" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" GridLines="Vertical" PageSize="5" onrowcancelingedit="GridView1_RowCancelingEdit" onrowupdated="GridView1_RowUpdated" onrowupdating="GridView1_RowUpdating" onselectedindexchanged="GridView1_SelectedIndexChanged" DataKeyNames="empid" DataMember="empid" onpageindexchanging="GridView1_PageIndexChanging" onrowediting="GridView1_RowEditing" onsorting="GridView1_Sorting" onrowdeleted="GridView1_RowDeleted" onrowdeleting="GridView1_RowDeleting" EnablePersistedSelection="True"> <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" /> <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" /> <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" /> <RowStyle BackColor="White" ForeColor="#330099" /> <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" /> <SortedAscendingCellStyle BackColor="#FEFCEB" /> <SortedAscendingHeaderStyle BackColor="#AF0101" /> <SortedDescendingCellStyle BackColor="#F6F0C0" /> <SortedDescendingHeaderStyle BackColor="#7E0000" /> </asp:GridView> </asp:Panel> <br /> </asp:Content>
empdetail.aspx.cs
using System;
51/100
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+"',
52/100
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(); } }
53/100
Uhome.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/userMaster.master" AutoEventWireup="true" CodeFile="uhome.aspx.cs" Inherits="uhome" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976"> Welcome To B.S.A.C.E.T, Mathura</font></h2> <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="#FF5050" Visible="False" PostBackUrl="~/ustatus.aspx">LinkButton</asp:LinkButton> <br /> <fieldset style="width:90%"> <legend>Control Panel</legend> <table class="style1"> <tr> <td> <a href="uclaim.aspx"> <asp:Image ID="Image1" runat="server" ImageUrl="~/image/serviceprovider_icon.jpg" ToolTip="Application" /> </a> </td> <td> <a href="ustatus.aspx"> <asp:Image ID="Image2" runat="server" ImageUrl="~/image/images (2).jpg" ToolTip="View Status" /> </a> </td> <td> <a href="Uchangepass.aspx> <asp:Image ID="Image3" runat="server" ImageUrl="~/image/images (8).jpg" ToolTip="Change Password" Width="134px" /> </a> </td </tr> <tr><td> </td> <td> <td> </table></asp:Content
54/100
aboutus.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/userMaster.master" AutoEventWireup="true" CodeFile="aboutus.aspx.cs" Inherits="aboutus" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 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.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. </asp:Content>
aboutus.aspx.cs
using using using using using using
public partial class aboutus : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { }
55/100
Uclaim.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/userMaster.master" AutoEventWireup="true" CodeFile="uclaim.aspx.cs" Inherits="uclaim" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style2 { width: 1333px; } .style5 { width: 153px; height: 23px; font-size: smaller; .style6 { width: 186px; margin-left: 80px; height: 23px; } .style7 { height: 23px; } .style3 { width: 153px; } .style4 { width: 186px; margin-left: 80px; } #Reset1 { width: 85px; }
56/100
</style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976"> Application For Medical Facility</font></h2> <p> <br /> <fieldset style="width:320px; vertical-align:middle; margin-left:100px "> <legend>Application </legend> <table class="style2"> <tr> <td class="style5"> Empid</td> <td class="style6"> <asp:TextBox ID="TextBox1" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> <td class="style7"> </td> </tr> <tr> <td class="style3"> Name</td> <td class="style4"> <asp:TextBox ID="TextBox2" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> <td> </td> </tr> <tr> <td class="style3"> Department</td> <td class="style4"> <asp:TextBox ID="TextBox8" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> <td> </td> </tr> <tr> <td class="style3"> Designation</td> <td class="style4"> <asp:TextBox ID="TextBox9" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> <td> </td> </tr> <tr> <td class="style3"> Claim For(Name)</td> <td class="style4"> <asp:TextBox ID="TextBox3" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"
57/100
ControlToValidate="TextBox3" ErrorMessage="Enter The Patient Name" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3"> Claim Date</td> <td class="style4"> <asp:DropDownList ID="DropDownList3" runat="server" Height="25px"> <asp:ListItem>DD</asp:ListItem> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2</asp:ListItem> <asp:ListItem>3</asp:ListItem> <asp:ListItem>4</asp:ListItem> <asp:ListItem>5</asp:ListItem> <asp:ListItem>6</asp:ListItem> <asp:ListItem>7</asp:ListItem> <asp:ListItem>8</asp:ListItem> <asp:ListItem>9</asp:ListItem> <asp:ListItem>10</asp:ListItem> <asp:ListItem>11</asp:ListItem> <asp:ListItem>12</asp:ListItem> <asp:ListItem>13</asp:ListItem> <asp:ListItem>14</asp:ListItem> <asp:ListItem>15</asp:ListItem> <asp:ListItem>16</asp:ListItem> <asp:ListItem>17</asp:ListItem> <asp:ListItem>18</asp:ListItem> <asp:ListItem>19</asp:ListItem> <asp:ListItem>20</asp:ListItem> <asp:ListItem>21</asp:ListItem> <asp:ListItem>22</asp:ListItem> <asp:ListItem>23</asp:ListItem> <asp:ListItem>24</asp:ListItem> <asp:ListItem>25</asp:ListItem> <asp:ListItem>26</asp:ListItem> <asp:ListItem>27</asp:ListItem> <asp:ListItem>28</asp:ListItem> <asp:ListItem>29</asp:ListItem> <asp:ListItem>30</asp:ListItem> <asp:ListItem>31</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="DropDownList4" runat="server" Height="25px"> <asp:ListItem>MM</asp:ListItem> <asp:ListItem>01</asp:ListItem> <asp:ListItem>02</asp:ListItem> <asp:ListItem>03</asp:ListItem> <asp:ListItem>04</asp:ListItem> <asp:ListItem>05</asp:ListItem> <asp:ListItem>06</asp:ListItem> <asp:ListItem>07</asp:ListItem> <asp:ListItem>08</asp:ListItem> <asp:ListItem>09</asp:ListItem> <asp:ListItem>10</asp:ListItem> <asp:ListItem>11</asp:ListItem> <asp:ListItem>12</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="DropDownList5" runat="server" style="height: 25px; width: 55px">
58/100
<asp:ListItem>YYYY</asp:ListItem> </asp:DropDownList> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="DropDownList5" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3"> Relation</td> <td class="style4"> <asp:TextBox ID="TextBox4" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox4" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3"> Hospital Name</td> <td class="style4"> <asp:TextBox ID="TextBox5" runat="server" Height="19px" Width="156px"></asp:TextBox> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox5" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3"> Type</td> <td class="style4"> <asp:DropDownList ID="DropDownList6" runat="server" Height="25px" Width="160px"> <asp:ListItem>Select Type</asp:ListItem> <asp:ListItem>Surgery</asp:ListItem> <asp:ListItem>Medicine</asp:ListItem> <asp:ListItem>Fracture</asp:ListItem> </asp:DropDownList> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="DropDownList6" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3"> Amount</td> <td class="style4"> <asp:TextBox ID="TextBox6" runat="server" Height="19px" Width="156px"></asp:TextBox>
59/100
</td> <td> <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TextBox6" ErrorMessage="Enter The Numeric Value" MaximumValue="999999" MinimumValue="0"></asp:RangeValidator> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TextBox6" ErrorMessage="Can Not Be Blank"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3"> Description</td> <td class="style4"> <asp:TextBox ID="TextBox7" runat="server" Height="67px" Width="156px" TextMode="MultiLine"></asp:TextBox> </td> <td> </td> </tr> <tr> <td class="style3"> <input id="Reset1" type="reset" value="Clear" style="background-color: #A52B5E; color: #FBFCFB;" /></td> <td class="style4"> <asp:Button ID="Button1" runat="server" Text="Submit" Width="92px" onclick="Button1_Click" BackColor="#A52B5E" ForeColor="#FBFCFB" /> </td> <td> </td> </tr> </table> </fieldset></p> </asp:Content>
Uclaim.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; using System.Data.SqlClient; public partial class uclaim : System.Web.UI.Page { SqlConnection con; SqlDataAdapter cmd = new SqlDataAdapter(); limit l = new limit(); int u; protected void Page_Load(object sender, EventArgs e) { con = con = new SqlConnection(db.connection); if(Session["empid"]!=null) { TextBox1.Text = Session["empid"].ToString(); TextBox2.Text = Session["uname"].ToString(); TextBox8.Text = Session["dept"].ToString();
60/100
TextBox9.Text = Session["desig"].ToString(); u = l.mylimit(TextBox9.Text); for (int i = 1950; i <=2050; i++) { DropDownList5.Items.Add(i.ToString()); } } } protected void Button1_Click(object sender, EventArgs e) { if (Convert.ToInt32(TextBox6.Text) < u) { con.Open(); cmd.InsertCommand = new SqlCommand("uapp", con); cmd.InsertCommand.CommandType = CommandType.StoredProcedure; cmd.InsertCommand.Parameters.AddWithValue("@empid", TextBox1.Text); cmd.InsertCommand.Parameters.AddWithValue("@pname", TextBox3.Text); cmd.InsertCommand.Parameters.AddWithValue("@relation", TextBox4.Text); cmd.InsertCommand.Parameters.AddWithValue("@hospital", TextBox5.Text); cmd.InsertCommand.Parameters.AddWithValue("@apptype", DropDownList6.Text); cmd.InsertCommand.Parameters.AddWithValue("@description", TextBox7.Text); cmd.InsertCommand.Parameters.AddWithValue("@camount", TextBox6.Text); cmd.InsertCommand.Parameters.AddWithValue("@cdate", DropDownList3.Text + "/" + DropDownList4.Text + "/" + DropDownList5.Text); cmd.InsertCommand.Parameters.AddWithValue("@status", "Pending"); // cmd.InsertCommand.Parameters.AddWithValue("@seen", ""); // cmd.InsertCommand.Parameters.AddWithValue("@aprove", ""); cmd.InsertCommand.Parameters.AddWithValue("@amount", ""); cmd.InsertCommand.Parameters.AddWithValue("@adate", ""); cmd.InsertCommand.Parameters.AddWithValue("@apdescriptiont", ""); cmd.InsertCommand.Parameters.AddWithValue("@apseen", ""); cmd.InsertCommand.ExecuteNonQuery(); con.Close(); Response.Write("<script>javascript:alert('Your Claim Is Successfully Submited')</script>"); Server.Transfer("uhome.aspx"); } else { Response.Write("<script>javascript:alert('Your Maximum Limit Is '+"+ u +")</script>");}
61/100
Uchangepass.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/userMaster.master" AutoEventWireup="true" CodeFile="Uchangepass.aspx.cs" Inherits="Default2" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style2 { width: 157px; } .style3 { width: 1291px; } .style4 { width: 1291px; height: 1px; } .style5 { height: 1px; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976">Change Password</font></h2> <center> <asp:Label ID="Label1" runat="server" Text="Password Is Successfully!" Font-Bold="True" Font-Italic="True" ForeColor="#FF3300" Font-Size="Medium" Visible="False"></asp:Label> <table width="100%"> <tr> <td style="width:35%">
62/100
<img src="image/LoginRed.jpg" width="100%" /></td> <td class="style1"> <fieldset style="width: 331px"> <legend>Change Password</legend> <table cellspacing="5px" style="color: #0000FF; font-family: 'Times New Roman', Times, serif; width: 334px; height: 92px; vertical-align:top; vertical-align:text-top"> <tr> <td class="style4" valign="top"> Enter Old Password</td> <td class="style5"> <asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter The OId" ControlToValidate="TextBox1" ForeColor="#FF0066"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3" valign="top"> Enter New PassWord</td> <td> <asp:TextBox ID="TextBox2" runat="server" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True" TextMode="Password"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please Enter PassWord" ControlToValidate="TextBox2" ForeColor="#FF0066"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3" valign="top"> Re-Enter Password</td> <td> <asp:TextBox ID="TextBox3" runat="server" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True" TextMode="Password"></asp:TextBox> <br /> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2" ControlToValidate="TextBox3" ErrorMessage="No Mached" ForeColor="#FF0066"></asp:CompareValidator> </td> </tr> <tr> <td class="style3" > </td> <td> <asp:Button ID="Button1" runat="server" Text="Change" Width="124px" BackColor="#A52B5E" BorderColor="#FFFF99" Font-Bold="True" Font-Italic="True" Font-Size="Medium" ForeColor="#FBFCFB" onclick="Button1_Click" /> </td>
63/100
</tr> </table> </fieldset> </td> <td style="width:15%"> </td> </tr> </table> </center> </asp:Content>
Uchangepass.aspx.cs
using using using using using using using using System; System.Collections.Generic; System.Linq; System.Web; System.Web.UI; System.Web.UI.WebControls; System.Data; System.Data.SqlClient;
public partial class Default2 : System.Web.UI.Page { SqlConnection con; SqlCommand cmd; int id; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(db.connection); if (Session["empid"] != null) { id = Convert.ToInt32(Session["empid"].ToString()); } } protected void Button1_Click(object sender, EventArgs e) { con.Open(); cmd = new SqlCommand("UPDATE REGISTRATION SET PASSWORD='" + TextBox2.Text + "' WHERE EMPID=" + id + " AND PASSWORD='" + TextBox1.Text + "'", con); int j = cmd.ExecuteNonQuery(); con.Close(); Label1.Visible = true; if (j > 0) { Label1.Text = "Password Has Successfully Changed"; } else { Label1.Text = "Worng Password"; }
64/100
65/100
Default.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style2 { width: 600px; } .style5 { width: 153px; height: 23px; } .style6 { width: 186px; margin-left: 80px; height: 23px; } .style7 { } .style3 { width: 153px; } .style4 { width: 186px; margin-left: 80px; } </style>
66/100
</asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976"> Aprove/Reject Apllication</font></h2> <fieldset style="width:320px; vertical-align:middle; margin-left:100px "> <legend> Aprove/Reject Claim </legend> <table class="style2"> <tr> <td class="style5"> Empid</td> <td class="style6"> <asp:TextBox ID="TextBox1" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> <td class="style7" rowspan="9" style=" vertical-align:top"><font color="#9b528a" size="5px" > Claim Limit</font> <%-- <center> <h3 >Claim Limit</h3></center>--%> <asp:ListBox ID="ListBox1" runat="server" Height="167px" Width="212px"> </asp:ListBox> </td> </tr> <tr> <td class="style3"> Name</td> <td class="style4"> <asp:TextBox ID="TextBox2" runat="server" Enabled="False"></asp:TextBox> </td> </tr> <tr> <td class="style3"> Department</td> <td class="style4"> <asp:TextBox ID="TextBox8" runat="server" Enabled="False"></asp:TextBox> </td> </tr> <tr> <td class="style3"> Designation</td> <td class="style4"> <asp:TextBox ID="TextBox9" runat="server" Enabled="False"></asp:TextBox> </td> </tr> <tr> <td class="style3"> Claim For(Name)</td> <td class="style4"> <asp:TextBox ID="TextBox3" runat="server" Enabled="False"></asp:TextBox> </td> </tr> <tr> <td class="style3">
Height="19px" Width="156px"
Height="19px" Width="156px"
Height="19px" Width="156px"
Height="19px" Width="156px"
67/100
Claim Date</td> <td class="style4"> <asp:TextBox ID="TextBox10" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> </tr> <tr> <td class="style3"> Relation</td> <td class="style4"> <asp:TextBox ID="TextBox4" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> </tr> <tr> <td class="style3"> Hospital Name</td> <td class="style4"> <asp:TextBox ID="TextBox5" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> </tr> <tr> <td class="style3"> Type</td> <td class="style4"> <asp:DropDownList ID="DropDownList6" runat="server" Height="25px" Width="160px" Enabled="False"> <asp:ListItem>Select Type</asp:ListItem> <asp:ListItem>Surgery</asp:ListItem> <asp:ListItem>Medicine</asp:ListItem> <asp:ListItem>Fracture</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td class="style3"> Claim Amount</td> <td class="style4"> <asp:TextBox ID="TextBox11" runat="server" Height="19px" Width="156px" Enabled="False"></asp:TextBox> </td> <td> </td> </tr> <tr> <td class="style3"> Aprove Amount</td> <td class="style4"> <asp:RadioButton ID="RadioButton1" runat="server" GroupName="r1" oncheckedchanged="RadioButton1_CheckedChanged" Text="Aprove" /><asp:RadioButton ID="RadioButton2" runat="server" GroupName="r1" oncheckedchanged="RadioButton2_CheckedChanged" Text="Reject" /> <asp:TextBox ID="TextBox6" runat="server" Height="19px" Width="156px"></asp:TextBox> </td>
68/100
<td> <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TextBox6" ErrorMessage="Enter The Numeric Value" MaximumValue="999999" MinimumValue="0"></asp:RangeValidator> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TextBox6" ErrorMessage="Can Not Be Blank"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style3"> Description</td> <td class="style4"> <asp:TextBox ID="TextBox7" runat="server" Height="67px" Width="156px" TextMode="MultiLine"></asp:TextBox> </td> <td> </td> </tr> <tr> <td class="style3"> </td> <td class="style4"> <asp:Button ID="Button1" runat="server" Text="Save" Width="84px" onclick="Button1_Click" BackColor="#A52B5E" ForeColor="#FBFCFB" /> </td> <td> </td> </tr> </table> </fieldset> </asp:Content>
Default.aspx.cs
using using using using using using using using
public partial class _Default : System.Web.UI.Page { SqlConnection con; SqlCommand cmd; limit l = new limit(); protected void Page_Load(object sender, EventArgs e) { try { con = new SqlConnection(db.connection); con.Open();
69/100
cmd = new SqlCommand("SELECT REGISTRATION.EMPNAME,REGISTRATION.DEPARTMENT,REGISTRATION.DESIGNATION, CLAIM.EMPID, CLAIM.PNAME,CLAIM.RELATION,CLAIM.HOSPITAL,CLAIM.APPTYPE,CLAIM.CLAIMAMOUNT,CLAIM.CDAT E FROM REGISTRATION,CLAIM WHERE REGISTRATION.EMPID=CLAIM.EMPID AND CLAIM.APPID=" + Session["appid"].ToString() + "", con); SqlDataReader dr = cmd.ExecuteReader(); dr.Read(); TextBox1.Text = dr[3].ToString(); TextBox2.Text = dr[0].ToString(); TextBox8.Text = dr[1].ToString(); TextBox9.Text = dr[2].ToString(); TextBox3.Text = dr[4].ToString(); TextBox10.Text = dr[9].ToString(); TextBox4.Text = dr[5].ToString(); TextBox5.Text = dr[6].ToString(); DropDownList6.Text = dr[7].ToString(); TextBox11.Text = dr[8].ToString(); //int i = Convert.ToInt32( Session["appid"].ToString()); //Response.Write(i.ToString()); con.Close(); } catch { Server.Transfer("aprove.aspx"); } Dictionary<string,int> lm=l.climit(); ListBox1.Items.Add("Designation"+" "+ "Upto"); foreach(KeyValuePair<string,int> kv in lm) { ListBox1.Items.Add(kv.Key + " } } protected void Button1_Click(object sender, EventArgs e) { if (s == null) { Response.Write(" <script>javascript:alert('Please Cheack The RadioButton') </script> "); } else { cmd = new SqlCommand("UPDATE CLAIM SET STATUS='"+s +"',APAMOUNT="+TextBox6.Text +",APDATE='"+DateTime.Now.ToShortDateString() +"',apdiscription='"+TextBox7.Text +"',APSEEN='TRUE' where appid="+Session["appid"].ToString()+"", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); Response.Redirect("aprove.aspx"); } } string s; protected void RadioButton1_CheckedChanged(object sender, EventArgs e) { " + kv.Value);
70/100
s = RadioButton1.Text; } protected void RadioButton2_CheckedChanged(object sender, EventArgs e) { s = RadioButton2.Text; TextBox6.Text = "0"; TextBox6.Enabled = false; } }
71/100
ustatus.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/userMaster.master" AutoEventWireup="true" CodeFile="ustatus.aspx.cs" Inherits="Default2" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976">Claim Detail</font></h2> <asp:DropDownList ID="DropDownList1" runat="server" Height="28px" Width="169px" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> <asp:ListItem>All</asp:ListItem> <asp:ListItem>Pending</asp:ListItem> <asp:ListItem>Aproved</asp:ListItem> <asp:ListItem>Reject</asp:ListItem> </asp:DropDownList> <br /> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> <br /> </asp:Content>
ustatus.aspx.cs
using using using using using using using using System; System.Collections.Generic; System.Linq; System.Web; System.Web.UI; System.Web.UI.WebControls; System.Data; System.Data.SqlClient;
public partial class Default2 : System.Web.UI.Page { SqlConnection con; SqlDataAdapter da; protected void Page_Load(object sender, EventArgs e) {
72/100
con = new SqlConnection(db.connection); DataSet ds = new DataSet(); da = new SqlDataAdapter("SELECT * FROM CLAIM ", con); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { string s = DropDownList1.Text; // int x = 0; switch (s) { case "All": { DataSet ds = new DataSet(); da = new SqlDataAdapter("SELECT * FROM CLAIM ", con); da.Fill(ds); GridView1.Dispose(); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); break; } case "Pending": { da = new SqlDataAdapter("SELECT * FROM CLAIM WHERE STATUS='Pending'", con); DataSet ds = new DataSet(); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); // Session["appid"] = GridView1.Rows[e.NewEditIndex].Cells[1].Text; Response.Write(DropDownList1.Text); break; } case "Aproved": { da = new SqlDataAdapter("SELECT * FROM CLAIM WHERE STATUS='Aproved'", con); DataSet ds = new DataSet(); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); Response.Write(DropDownList1.Text); break; } case "Reject": { da = new SqlDataAdapter("SELECT * FROM CLAIM WHERE STATUS='Reject'", con); DataSet ds = new DataSet(); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind();
73/100
} } }
Response.Write(DropDownList1.Text); break;
74/100
contactus.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/userMaster.master" AutoEventWireup="true" CodeFile="contactus.aspx.cs" Inherits="contactus" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<Center> <p> Project Team Member</center></p> <p> Name: Amit Kumar Gautam</p> <p> EmailId: <a href="mailto:[email protected]">[email protected]</a></p> <p> Venue: Near Railway Crossing, BARHAN, Distt-AGRA</p> <p> Mob_No- 7417853858</p> </asp:Content>
75/100
aprove.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="aprove.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976">Employee Detail</font></h2> <asp:DropDownList ID="DropDownList1" runat="server" Height="28px" Width="169px" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> <asp:ListItem>All</asp:ListItem> <asp:ListItem>Pending</asp:ListItem> <asp:ListItem Value="Approved">Aproved</asp:ListItem> <asp:ListItem>Reject</asp:ListItem> </asp:DropDownList> <asp:GridView ID="GridView1" runat="server" AutoGenerateEditButton="True" DataKeyNames="appid" DataMember="appid" onrowediting="GridView1_RowEditing"> </asp:GridView> <br /> </asp:Content>
aprove.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; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlConnection con; SqlDataAdapter da;
76/100
protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(db.connection); if (Session["appid"] == null) { DataSet ds = new DataSet(); da = new SqlDataAdapter("SELECT * FROM CLAIM", con); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } } protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { Session["appid"] = GridView1.Rows[e.NewEditIndex].Cells[1].Text; Server.Transfer("Default.aspx"); } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { string s = DropDownList1.Text; // int x = 0; switch (s) { case "All": { DataSet ds = new DataSet(); da = new SqlDataAdapter("SELECT * FROM CLAIM ", con); da.Fill(ds); GridView1.Dispose(); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); break; } case "Pending": { da = new SqlDataAdapter("SELECT * FROM CLAIM WHERE STATUS='Pending'", con); DataSet ds = new DataSet(); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); // Session["appid"] = GridView1.Rows[e.NewEditIndex].Cells[1].Text; Response.Write(DropDownList1.Text); break; } case "Aproved": { da = new SqlDataAdapter("SELECT * FROM CLAIM WHERE STATUS='Approve'", con); DataSet ds = new DataSet(); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); Response.Write(DropDownList1.Text);
77/100
break; } case "Reject": { da = new SqlDataAdapter("SELECT * FROM CLAIM WHERE STATUS='Reject'", con); DataSet ds = new DataSet(); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); Response.Write(DropDownList1.Text); break; } }
} }
Changepass.aspx
78/100
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Changepass.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style2 { width: 157px; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976">Change Password</font></h2> <center> <asp:Label ID="Label1" runat="server" Text="Wrong Password" Font-Bold="True" Font-Italic="True" ForeColor="#FF3300" Font-Size="Medium" Visible="False"></asp:Label> <table width="100%"> <tr> <td style="width:35%"> <img src="image/LoginRed.jpg" width="100%" /></td> <td class="style1"> <fieldset style="width: 331px"> <legend>Change Password</legend> <table cellspacing="5px" style="color: #0000FF; font-family: 'Times New Roman', Times, serif; width: 334px; height: 92px; vertical-align:top; vertical-align:text-top"> <tr> <td class="style2" valign="top>Enter Old Password</td> <td> <asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter The OId" ControlToValidate="TextBox1 ForeColor="#FF0066"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style2" valign="top"> Enter New PassWord</td> <td> <asp:TextBox ID="TextBox2" runat="server" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True" TextMode="Password"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please Enter PassWord" ControlToValidate="TextBox2" ForeColor="#FF0066"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style2" valign="top"> Re-Enter Password</td> <td> <asp:TextBox ID="TextBox3" runat="server" BackColor="#FBFCFB" BorderColor="#FFFF99" ForeColor="#0000FF" Font-Bold="True"
79/100
TextMode="Password"></asp:TextBox> <br /> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2" ControlToValidate="TextBox3" ErrorMessage="No Mached" ForeColor="#FF0066"></asp:CompareValidator> </td> </tr> <tr> <td class="style2" > </td> <td> <asp:Button ID="Button1" runat="server" Text="Change" Width="124px" BackColor="#A52B5E" BorderColor="#FFFF99" Font-Bold="True" Font-Italic="True" Font-Size="Medium" ForeColor="#FBFCFB" onclick="Button1_Click" /> </td> </tr> </table> </fieldset> </td> <td style="width:15%"> </td> </tr> </table> </center> </asp:Content>
Changepass.aspx.cs
using using using using using using using using System; System.Collections.Generic; System.Linq; System.Web; System.Web.UI; System.Web.UI.WebControls; System.Data; System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page { SqlConnection con; SqlCommand cmd; int id; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(db.connection); if (Session["empid"] != null) { id = Convert.ToInt32( Session["empid"].ToString()); } } protected void Button1_Click(object sender, EventArgs e) { con.Open(); cmd=new SqlCommand("UPDATE REGISTRATION SET PASSWORD='"+TextBox2.Text +"' WHERE EMPID="+ id+" AND PASSWORD='"+TextBox1.Text +"'",con); int j = cmd.ExecuteNonQuery(); con.Close();
80/100
Label1.Visible = true; if (j > 0) { Label1.Text = "Password Has Successfully Changed"; } else { Label1.Text = "Worng Password"; }
sendmail.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="sendmail.aspx.cs" Inherits="Default2" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style4 { height: 26px; } #Reset1 { width: 79px; height: 23px; }
81/100
</style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <center> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> </asp:UpdateProgress> <asp:UpdateProgress ID="UpdateProgress2" runat="server"> </asp:UpdateProgress> <asp:UpdateProgress ID="UpdateProgress3" runat="server"> </asp:UpdateProgress> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress4" runat="server"> </asp:UpdateProgress> <table class="style1" style="width: 99%; vertical-align:middle"> <tr> <td class="style4"> To</td> <td class="style4"> <asp:TextBox ID="TextBox1" runat="server" Width="299px" ontextchanged="TextBox1_TextChanged"></asp:TextBox> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" EnableViewState="False" ErrorMessage="**" ForeColor="#FF3300" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+ ([-.]\w+)*"></asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1" ErrorMessage="**" ForeColor="Red"></asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style2"> Subject</td> <td> <asp:TextBox ID="TextBox2" runat="server" Width="299px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox2" ErrorMessage="**" ForeColor="#FF3300"></asp:RequiredFieldValidator> <br /> <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="Your Mail Is successfully Send" Visible="False"></asp:Label> </td> </tr> <tr> <td class="style2" colspan="2"> <asp:TextBox ID="TextBox3" runat="server" Height="172px" TextMode="MultiLine" Width="405px"></asp:TextBox> </td> </tr> <tr> <td class="style2"> </td> <td> <input id="Reset1" title="Reset" type="reset" value="Clear" style="background-color: #A52B5E; color: #FBFCFB;" /><asp:Button ID="Button1" runat="server" Height="23px" Text="Send" Width="94px" onclick="Button1_Click" BackColor="#A52B5E"
82/100
sendmail.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.Net.Mail; //using System.Web.Mail; public partial class Default2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { MailMessage mail = new MailMessage(); try { mail.From = new MailAddress("[email protected]"); mail.To.Add(TextBox1.Text); mail.Subject = TextBox2.Text; string Body = TextBox3.Text; mail.Body = Body; SmtpClient smtp = new SmtpClient(); smtp.Host = "smtp.gmail.com"; smtp.Credentials = new System.Net.NetworkCredential("[email protected]", "amit"); smtp.EnableSsl = true; smtp.Send(mail); Label2.Visible = true; } catch { Response.Write("<script>javascript:alert('Please Check Network Connection')</script>"); } } protected void TextBox1_TextChanged(object sender, EventArgs e) { } }
83/100
updateinfo.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="updateinfo.aspx.cs" Inherits="Default3" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h2 style="border: thin solid #800080; width:100%; text-align:center"> <font color="#a44976">Update Employee Detail</font></h2> <fieldset> <legend>Update Employee Information</legend> <asp:GridView ID="gv2" runat="server" AutoGenerateColumns="False" AllowSorting="True" DataKeyNames="empid" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" AutoGenerateSelectButton="True" CellPadding="4" onrowcancelingedit="gv2_RowCancelingEdit" onrowdeleting="gv2_RowDeleting" onrowediting="gv2_RowEditing" onrowupdated="gv2_RowUpdated" onrowupdating="gv2_RowUpdating" onselectedindexchanged="gv2_SelectedIndexChanged" Width="298px" ForeColor="#333333" GridLines="None" onselectedindexchanging="gv2_SelectedIndexChanging" AllowPaging="True" onpageindexchanging="gv2_PageIndexChanging" onsorting="gv2_Sorting" PageSize="5"> <AlternatingRowStyle BackColor="White" /> <Columns> <asp:BoundField HeaderText="ID" DataField="empid" ReadOnly="true" SortExpression="empid" /> <asp:BoundField HeaderText="Name" DataField="empname" ReadOnly="false" SortExpression="empname" /> <asp:BoundField HeaderText="Dept" DataField="department" ReadOnly="false" SortExpression="department" />
84/100
<asp:BoundField HeaderText="Desig" DataField="designation" ReadOnly="false" SortExpression="designation" /> <asp:BoundField HeaderText="E-mail" DataField="emailid" ReadOnly="false" SortExpression="emailid" /> <asp:BoundField HeaderText="Mobile" DataField="mobile" ReadOnly="false" SortExpression="mobile" /> <asp:BoundField HeaderText="Password" DataField="password" ReadOnly="false" SortExpression="password" /> </Columns> <EditRowStyle BackColor="#7C6F57" /> <FooterStyle BackColor="#1C5E55" ForeColor="White" Font-Bold="True" /> <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#E3EAEB" /> <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#F8FAFA" /> <SortedAscendingHeaderStyle BackColor="#246B61" /> <SortedDescendingCellStyle BackColor="#D4DFE1" /> <SortedDescendingHeaderStyle BackColor="#15524A" /> </asp:GridView> </fieldset> </asp:Content>
updateinfo.aspx.cs
using using using using using using using using
public partial class Default3 : System.Web.UI.Page { SqlConnection con;// = new SqlConnection("Data Source=MAHENDRARAI-PC;Initial Catalog=Helpmates;Integrated Security=True"); SqlDataAdapter da; DataSet ds = new DataSet(); SqlCommand cmd; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(db.connection); if (!Page.IsPostBack) { showgrid(); } } protected void gv2_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e) { gv2.EditIndex = -1; showgrid(); } protected void gv2_RowUpdating(object sender, GridViewUpdateEventArgs e) { int id = Convert.ToInt32(gv2.Rows[e.RowIndex].Cells[1].Text); string name = ((TextBox)(gv2.Rows[e.RowIndex].Cells[2].Controls[0])).Text; string dept = ((TextBox)(gv2.Rows[e.RowIndex].Cells[3].Controls[0])).Text;
85/100
string desig = ((TextBox)(gv2.Rows[e.RowIndex].Cells[4].Controls[0])).Text; string email = ((TextBox)(gv2.Rows[e.RowIndex].Cells[5].Controls[0])).Text; string mobile = ((TextBox)(gv2.Rows[e.RowIndex].Cells[6].Controls[0])).Text; string pass = ((TextBox)(gv2.Rows[e.RowIndex].Cells[7].Controls[0])).Text; con.Open(); cmd = new SqlCommand("UPDATE REGISTRATION SET EMPNAME='" + name + "', DEPARTMENT='"+ dept+"',DESIGNATION='"+ desig+"', EMAILID='"+ email+"', MOBILE='"+ mobile +"', PASSWORD='"+ pass+"' WHERE EMPID=" + id + "", con); cmd.ExecuteNonQuery(); con.Close(); gv2.EditIndex = -1; showgrid(); } protected void gv2_RowEditing(object sender, GridViewEditEventArgs e) { gv2.EditIndex = e.NewEditIndex; showgrid(); } public void showgrid() { da = new SqlDataAdapter("select * from registration", con); da.Fill(ds); gv2.DataSource = ds.Tables[0]; gv2.DataBind(); } protected void gv2_RowDeleting(object sender, GridViewDeleteEventArgs e) { cmd = new SqlCommand("DELETE FROM REGISTRATION WHERE EMPID=" + gv2.Rows[e.RowIndex].Cells[1].Text + "", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); da = new SqlDataAdapter("SELECT * FROM REGISTRATION", con); da.Fill(ds); showgrid(); } protected void gv2_RowUpdated(object sender, GridViewUpdatedEventArgs e) { } protected void gv2_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { } protected void gv2_SelectedIndexChanged(object sender, EventArgs e) { } protected void gv2_PageIndexChanging(object sender, GridViewPageEventArgs e) { gv2.PageIndex = e.NewPageIndex; showgrid(); } protected void gv2_Sorting(object sender, GridViewSortEventArgs e) { showgrid(); DataView dv = new DataView(ds.Tables[0]);
86/100
userMaster.master
<marquee direction="left">B.S.A College Of Engineering & Technology, Mathura</marquee> <style> /* CSS for custom nav controls of Cube Slider 2. Remove if desired */ ul.cubeslider2-navarea{ list-style: none; overflow: hidden; } ul.cubeslider2-navarea li{ display: block; float: left; cursor: pointer; padding: 7px; margin:right: 5px; } ul.cubeslider2-navarea li:hover{ background: lightyellow; } </style> <%--<script type="text/javascript" src="webcontrol/js/min.js"></script>--%> <script type="text/javascript" src="webcontrol/js/min.js"></script> <script type="text/javascript" src="webcontrol/js/modernizr.custom.13303.js"></script> <script type="text/javascript" src="webcontrol/js/jquery.shockwave.js"> /*********************************************** * Shockwave 3D slideshow script- Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use
87/100
* Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ </script> <script type="text/javascript" src="webcontrol/js/jquery.shockwave.effects.js"></script> <script> var imagesDataArray = [ //For demos, define a single set of images to be used in all of the demos below { src: 'webcontrol/images/bonsai.jpg', url: 'http://en.wikipedia.org/wiki/Bonsai', target: '_blank', // default is _self, which opens in the same window (_blank in new window) description: 'Bonsai is a Japanese art form using miniature trees grown in containers.' }, { src: 'webcontrol/images/1.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/2.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/3.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/4.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight }, { src: 'webcontrol/images/5.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight }, { src: 'webcontrol/images/6.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight }, { src: 'webcontrol/images/7.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight }, { src: 'webcontrol/images/forrest.jpg', description: '', }, { src: 'webcontrol/images/leaves.jpg',
88/100
url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/8.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/9.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/10.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/11.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' },
{ src: 'webcontrol/images/Bsa Logo.jpg', //url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into winter, in September (Northern Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/12.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into winter, in September (Northern Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/13.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into winter, in September (Northern Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/14.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into winter, in September (Northern Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/15.jpg', url: 'http://en.wikipedia.org/wiki/Autumn',
89/100
description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/16.gif', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/17.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/18.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/19.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/village.jpg', description: '', } ]; jQuery(function(){ $('#unhookshow').shockwave(imagesDataArray, { 'slider-type': 'UnhookedSlider', 'random-time-to-unhook': 1500, // in ms 'free-fall-time': 150, // ms 'autostart-slideshow': true, 'maximum-slideshow-cycles': 2, 'slideshow-delay': 2000, 'duration': 100, 'tiles-in-x': 5, 'tiles-in-y': 5, 'show-permanent-description': false, 'standard-control-buttons-area': $('#unhookbuttons'), 'viewport-dimension': {width: 350, height: 262} });
90/100
'controller-default-wave-origin': ['50%', '50%'], 'autostart-slideshow': true }); $('#cubeslider').shockwave(imagesDataArray, { 'slider-type': 'CubeSlider', 'rotation-duration': 600, // in ms 'tiles-in-x': 1, 'tiles-in-y': 1, 'rotation-axis': 'x', 'show-description-onimage': false, 'autostart-slideshow': true }); $('#cubeslider2').shockwave(imagesDataArray, { 'slider-type': 'CubeSlider', 'rotation-duration': 600, // in ms 'tiles-in-x': 5, 'tiles-in-y': 1, 'wave-fixed-origin': [0, 0], 'standard-control-buttons-area': null, 'next-slide-button': $('#cubeslider2next'), 'previous-slide-button': $('#cubeslider2prev'), 'play-pause-slideshow-buttons': $('#cubeslider2playpause') }); }) </script>
<title> </title> <script src="menu1/min.js" type="text/javascript"></script> <link href="menu1/gooeymenu.css" rel="stylesheet" type="text/css" /> <script src="menu1/gooeymenu.js" type="text/javascript"></script> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> <style type="text/css"> .style1 { width: 100%; } .style2 { width: 1291px; height: 183px; } </style> </head> <body > <form id="form1" runat="server"> <img alt="" class="style2" src="image/Bsa%20Image.jpg" /><table class="style1"> <tr>
91/100
</tr> </table> <table width="100%" frame="box"> <tr> <td style="border:2px"> <br /> <ul id="gooeymenu1" class="gelbuttonmenu"> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <li> <a href="uhome.aspx">Home</a></li> <li><a href="uclaim.aspx">Application</a></li> <li><a href="ustatus.aspx">Viw Status</a></li> <li><a href="Uchangepass.aspx">Change PassWord</a><asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" ValidationGroup="2">LogOut</asp:LinkButton> </li> </ul> <script> gooeymenu.setup({ id: 'gooeymenu1', selectitem: 1 }) </script> </td></tr></table> <div id="main-containt"> <table width="100%" cellpadding="10px" cellspacing="10px" style="vertical-align:texttop"> <tr > <td style="width:20%; vertical-align:text-top; text-align:center"> <h2 style="border: thin solid #800080"> <font color="#a44976">News And Events </font></h2><br /> <br /> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> <td style="width:60%; vertical-align:text-top"> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </td> <td style="width:20%; vertical-align:text-top"> <center><h2 style="border: thin solid #800080"> <font color="#a44976">Health Tips</font></h2><br /></center> <div id='cubeslider'></div> </td> </tr> </table> <!footer> <marquee direction="left">Amit Gautam, Mca 2013</marquee> <ul id="gooeymenu3" class="underlinemenu"> <li><a href="uhome.aspx">Home</a></li> <li><a href="uclaim.aspx">Application</a></li> <li><a href="ustatus.aspx">View Status</a></li> <li><a href="Uchangepass.aspx">Change PassWord</a></li> <li></li>
92/100
</ul>
useMaster.master.aspx.cs
using using using using using using
public partial class userMaster : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (Session["uname"] != null && Session["user"] != null) { Label1.Text = "Wlcome Mr. " + Session["uname"]; } else { Response.Redirect("Main.aspx"); } } protected void LinkButton1_Click(object sender, EventArgs e) { Session.RemoveAll(); Response.Redirect("main.aspx"); }
Site.master
93/100
<marquee direction="left">B.S.A College Of Engineering & Technology, Mathura </marquee> <link href="Styles/StyleSheet.css" rel="stylesheet" type="text/css" /> <style> /* CSS for custom nav controls of Cube Slider 2. Remove if desired */ ul.cubeslider2-navarea{ list-style: none; overflow: hidden; } ul.cubeslider2-navarea li{ display: block; float: left; cursor: pointer; padding: 7px; margin:right: 5px; } ul.cubeslider2-navarea li:hover{ background: lightyellow; } </style> <%--<script type="text/javascript" src="webcontrol/js/min.js"></script>--%> <script type="text/javascript" src="webcontrol/js/min.js"></script> <script type="text/javascript" src="webcontrol/js/modernizr.custom.13303.js"></script> <script type="text/javascript" src="webcontrol/js/jquery.shockwave.js"> /*********************************************** * Shockwave 3D slideshow script- Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ </script> <script type="text/javascript" src="webcontrol/js/jquery.shockwave.effects.js"></script>
94/100
<script> var imagesDataArray = [ //For demos, define a single set of images to be used in all of the demos below { src: 'webcontrol/images/bonsai.jpg', url: 'http://en.wikipedia.org/wiki/Bonsai', target: '_blank', // default is _self, which opens in the same window (_blank in new window) description: 'Bonsai is a Japanese art form using miniature trees grown in containers.' }, { src: 'webcontrol/images/1.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/2.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/3.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/4.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/5.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/6.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/7.jpg', url: 'http://en.wikipedia.org/wiki/Red_telephone_box', description: 'The red telephone box is a familiar sight on the streets of the United Kingdom.' }, { src: 'webcontrol/images/forrest.jpg', description: '', }, { src: 'webcontrol/images/leaves.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into winter, in September (Northern Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/8.jpg', url: 'http://en.wikipedia.org/wiki/Autumn',
95/100
description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/9.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/10.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/11.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, {
src: 'webcontrol/images/'Bsa Logo.jpg, //url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into winter, in September (Northern Hemisphere) or March (Southern Hemisphere).' },
{ src: 'webcontrol/images/12.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/13.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/14.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/15.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/16.gif', url: 'http://en.wikipedia.org/wiki/Autumn',
96/100
description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/17.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/18.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/19.jpg', url: 'http://en.wikipedia.org/wiki/Autumn', description: 'Autumn marks the transition from summer into Hemisphere) or March (Southern Hemisphere).' }, { src: 'webcontrol/images/village.jpg', description: '', } ]; jQuery(function(){ $('#unhookshow').shockwave(imagesDataArray, { 'slider-type': 'UnhookedSlider', 'random-time-to-unhook': 1500, // in ms 'free-fall-time': 150, // ms 'autostart-slideshow': true, 'maximum-slideshow-cycles': 2, 'slideshow-delay': 2000, 'duration': 100, 'tiles-in-x': 5, 'tiles-in-y': 5, 'show-permanent-description': false, 'standard-control-buttons-area': $('#unhookbuttons'), 'viewport-dimension': {width: 350, height: 262} });
$('#flipedge').shockwave(imagesDataArray, { 'slider-type': 'FlipEdgeSlider', 'tiles-in-x': 7, 'tiles-in-y': 1, 'fixed-rotation-axis': [1, 0, 0], 'controller-default-wave-origin': ['50%', '50%'], 'autostart-slideshow': true }); $('#cubeslider').shockwave(imagesDataArray, { 'slider-type': 'CubeSlider', 'rotation-duration': 600, // in ms
97/100
'tiles-in-x': 1, 'tiles-in-y': 1, 'rotation-axis': 'x', 'show-description-onimage': false, 'autostart-slideshow': true }); $('#cubeslider2').shockwave(imagesDataArray, { 'slider-type': 'CubeSlider', 'rotation-duration': 600, // in ms 'tiles-in-x': 5, 'tiles-in-y': 1, 'wave-fixed-origin': [0, 0], 'standard-control-buttons-area': null, 'next-slide-button': $('#cubeslider2next'), 'previous-slide-button': $('#cubeslider2prev'), 'play-pause-slideshow-buttons': $('#cubeslider2playpause') }); }) </script>
<title> </title> <script src="menu1/min.js" type="text/javascript"></script> <link href="menu1/gooeymenu.css" rel="stylesheet" type="text/css" /> <script src="menu1/gooeymenu.js" type="text/javascript"></script> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> <style type="text/css"> .style1 { width: 100%; } </style> </head> <body > <form id="form1" runat="server"> <table class="style1"> <tr> <td style="width:100%"> <img src="image/Bsa%20Image.jpg" style="width: 1247px; height: 121px" /></td> </tr> </table> <table width="100%" frame="box"> <tr> <td style="border:2px"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <br /> <ul id="gooeymenu1" class="gelbuttonmenu">
98/100
<li> <asp:Label ID="Label1" runat="server"></asp:Label>   ; <a href="home.aspx">Home</li> <li><a href="Reg.aspx">New Employee</a></li> <li><a href="aprove.aspx">Aprove Claim</a></li> <li><a href="empdetail.aspx">View Employee</a></li> <li><a href="updateinfo.aspx">Edit Emp Info</a></li> <li><a href="Changepass.aspx" class="selected">Change PassWord</a><asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" ValidationGroup="2">LogOut</asp:LinkButton> </li> </ul> <script> gooeymenu.setup({ id: 'gooeymenu1', selectitem: 1 }) </script> </td></tr></table> <div id="main-containt"> <table width="100%" cellpadding="10px" cellspacing="10px" style="vertical-align:texttop"> <tr > <td style="width:20%; vertical-align:text-top; text-align:center"> <h2 style="border: thin solid #800080"> <font color="#a44976">News And Events</font></h2><br /> <br /> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> <td style="width:60%; vertical-align:text-top"> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> <p> </p> </asp:ContentPlaceHolder> </td> <td style="width:20%; vertical-align:text-top"> <center><h2 style="border: thin solid #800080"> <font color="#a44976">Health Tips</font></h2><br /></center> <div id='cubeslider'></div> </td> </tr> </table> <!footer> <marquee direction="left">Amit Gautam, Mca 2013</marquee> <ul id="gooeymenu3" class="underlinemenu"> <li><a href="home.aspx">Home</a></li> <li><a href="Reg.aspx">Employee</a></li> <li><a href="aprove.aspx">Aprove Claim</a></li> <li><a href="updateinfo.aspx">Update Info</a></li> <li><a href="Changepass.aspx" class="selected">Change PassWord</a></li> </ul>
99/100
Site.master.aspx.cs
using using using using using using
public partial class SiteMaster : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (Session["uname"] != null && Session["admin"] != null) { Label1.Text = "Wlcome Mr. " + Session["uname"]; } else { Response.Redirect("Main.aspx"); } } [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()] public static string GetDynamicContent(string contextKey) { return default(string); } protected void LinkButton1_Click(object sender, EventArgs e) { Session.RemoveAll(); Session.Abandon(); Session.Clear(); Response.Redirect("Main.aspx"); } }
100/100