Online Tax Management System Project Report
Online Tax Management System Project Report
1. Introduction:
Abstract
Company Profile
2. Synopsis
3. Requirement Analysis Document(RAD)
3.1 Introduction
3.1.1 Purpose Of The System
3.1.2 Scope Of The System
3.1.3 Acronyms And Abbreviations
3.2 Current
3.3 Proposed System
3.3.1 Overview
3.3.2 Functional Requirements
3.3.3 Nonfunctional Requirements
3.3.4 Pseudo Requirements
3.4 Functional Model
3.4.1 Scenarios
3.4.2 Use case Model
3.5 Object Model
3.5.1 Data Dictionary
3.5.2 Class Diagrams
3.6 Dynamic Model
3.6.1 Sequence Diagrams
4. System Design Documentation(SDD)
4.1 Subsystem Decomposition
4.2 Persistent Data Management
5. Forms
5.1 Input Forms
5.2 Output Forms
6. Coding
7. Testing
7.1 Module Testing
8. Conclusion
9. Bibliography
ABSTRACT
The main aim of our project is to prepare a Tax summary or Tax Returns of a
client. In Tax Information system System, a client registers himself enters all the
details and uploads various Documents that are necessary for preparation of Tax
Summary and Schedules for an interview after successful submission of all the
documents. After all the procedures are completed Tax Returns or Tax summary
is prepared for all the clients by the admin who calls the clients and arranges an
interview for discussing various issues regarding Tax summary .
Once the client pays the amount for preparation of Tax Summary he can download
the PDF format of his Tax Summary.
This project is composed of two main modules which also includes many sub
modules.
1. Client module
2. Admin module
Client Panel :
Register
Create client profile
Upload documents
Schedule interview
Tax Summary
Payment
PDF/Review/Correction
Authorization
E-File Acknowledgement
Refund Status
Admin Panel :
The project has been planned to be having the view of distributed architecture ,with
centralized storage of the database. The application for the storage of the data has
been planned .Using the construct of
MS-SQL Server 2005 and all the users interfaces have been designed using the
ASP.Net technologies .The database connectivity is planned using the ‘SQL
Connection’ methodology. The statement of security and data protective
mechanism have been given a big choice for proper usage. The application takes
care of different modules and their associated reports, which are their associated
reported ,which are produced as per the applicable strategies and standards that are
put forwarded by the administrative staff.
Company Profile
Mission
Vision
To develop a strong client base with an equally effective support structure which
acts as a catalyst for effective deployment of futuristically complete and credible IT
solutions. We strive to achieve this by focusing individually on each project and
build a healthy relationship with our customers.
Quality
After having brought the company from the conceptualization stage onward, the
management is confident that technologies, work force and determination are
poised for growth and wide acceptance. The management is continually identifying
some more niche segments, is desirable to ensure globalization of the
organization’s where the presence is desirable to ensure globalization of the
organization’s presence.
Corporate training
From more than past 4 years corporate training has been our domain. We provide
quality computer education for all type of computer related courses, at the client’s
as well as our own premises. We manage whole if the training process that begins
with the selection of the place of training ,and continues till course delivery and
final certificate (and this includes industry level certification like .Net
Certification.)
Technical Strength
So far have 40 employee working on various projects and also handles corporate
batches.
Clientele
E_Mail: enquiries@visualmindindinfo.net
www.visualmindinfo.net
REQUIREMENT ANALYSIS
3.1 INTRODUCTION
The software allocation and build models of processes, date and behavioural
domains that will be treated by software designer with a representation of
information and function that can be translated to data, architectural and procedural
design. Finally, the requirement specification the developer and customer with the
means to access quality once the software is built.
3.1.1 PURPOSE OF THE SYSTEM:
The main aim of our project is to prepare a Tax summary or Tax Returns of a
client. In Tax Information system System, a client registers himself enters all the
details and uploads various Documents that are necessary for preparation of Tax
Summary and Schedules for an interview after successful submission of all the
documents. After all the procedures are completed Tax Returns or Tax summary
is prepared for all the clients by the admin who calls the clients and arranges an
interview for discussing various issues regarding Tax summary .Once the client
pays the amount for preparation of Tax Summary he can download the PDF format
of his Tax Summary.
Our system mainly focus on the Tax that need to be paid by the people who
are migrated from India to foreign countries. The scope of the system is restricted
to Indians. Our system is capable of including future advancements.
Tax information system is providing single window tax service to the Indian
software consultants having income from both India and USA by minimizing the
overall tax burden claiming foreign tax credits and other tax planning strategies
according to the US internal revenue code and India income tax Act,1961
3.3.1 OVERVIEW
With the new system the following activities get more moment.
1. Login/Register
2. Documents
Upload / Fax your W2s, 1099 s or any other statement relating the interest,
divide or stocks.
3. Tax Interview
4. Tax Summary
Tax Summary will be ready within 24 – 48 hrs after Tax Interview.
Login and check the Tax Summary.
5. Make Payment
Pay the Tax Preparation Fees at our website using pay pal Account or credit
card
7. E-File
Module description:
1. Client module
2. Admin module
Client Panel :
Register
Create client profile
Upload documents
Schedule interview
Tax Summary
Payment
PDF/Review/Correction
Authorization
E-File Acknowledgement
Refund Status
Admin Panel :
The project has been planned to be having the view of distributed architecture ,with
centralized storage of the database. The application for the storage of the data has
been planned .Using the construct of
MS-SQL Server 2005 and all the users interfaces have been designed using the
ASP.Net technologies .The database connectivity is planned using the ‘SQL
Connection’ methodology. The statement of security and data protective
mechanism have been given a big choice for proper usage. The application takes
care of different modules and their associated reports, which are their associated
reported ,which are produced as per the applicable strategies and standards that are
put forwarded by the administrative staff
3.3.3.2 DOCUMENTATION
Requirement Analysis Document (RAD)
System Design Document
Coding
Testing
The .NET Framework has two main components; the common language runtime
and the .NET Framework class library. The common language runtime is the
foundation of the .NET Framework. You can think of the runtime as an agent that
manages code at execution time, providing core services such as memory
management, thread management, and remoting,
while also enforcing strict type safety and other forms of code accuracy that ensure
security and robustness. In fact, the concept of code management is a fundamental
principle of the runtime. Code that targets the runtime is known as managed code,
while code that does not target the runtime is known as unmanaged code.
The class library, the other main component of the .NET Framework, is a
comprehensive, object-oriented collection of reusable types that you can use to
develop applications ranging from traditional command-line or graphical user
interface (GUI) applications to applications based on the latest innovations
provided by ASP.NET, such as Web Forms and XML Web services.
The .NET Framework can be hosted by unmanaged components that load the
common language runtime into their processes and initiate the execution of
managed code, thereby creating a software environment that can exploit both
managed and unmanaged features. The .NET Framework not only provides several
runtime hosts, but also supports the development of third-party runtime hosts.
The runtime enforces code access security. For example, users can trust that an
executable embedded in a Web page can play an animation on screen or sing a
song, but cannot access their personal data, file system, or network. The security
features of the runtime thus enable legitimate Internet-deployed software to be
exceptionally feature rich.
The runtime also enforces code robustness by implementing a strict type- and code-
verification infrastructure called the common type system (CTS). The CTS ensures
that all managed code is self-describing. The various Microsoft and third-party
language compilers generate managed code that conforms to the CTS. This means
that managed code can consume other managed types and instances, while strictly
enforcing type fidelity and type safety.
While the runtime is designed for the software of the future, it also supports
software of today and yesterday. Interoperability between managed and unmanaged
code enables developers to continue to use necessary COM components and DLLs.
The common type system defines how types are declared, used, and managed in
the runtime, and is also an important part of the runtime's support for cross-
language integration. The common type system performs the following functions:
Type Definitions
Type Members
Describes events, fields, nested types, methods, and properties, and concepts such
as member overloading, overriding, and inheritance.
Value Types
Classes
Delegates
Arrays
Describes common language runtime array types.
Interfaces
Pointers
Related Sections
Provides a reference to the classes, interfaces, and value types included in the
Microsoft .NET Framework SDK.
Describes the run-time environment that manages the execution of code and
provides application development services.
Cross-Language Interoperability
This section describes the common language runtime's built-in support for
language interoperability and explains the role that the CLS plays in enabling
guaranteed cross-language interoperability. CLS features and rules are identified
and CLS compliance is discussed.
In This Section
Language Interoperability
Explains the need for a set of features common to all languages and identifies CLS
rules and features.
Discusses the meaning of CLS compliance for components and identifies levels of
CLS compliance for tools.
Describes how types are declared, used, and managed by the common language
runtime.
Explains the common language runtime's mechanism for describing a type and
storing that information with the type itself.
The .NET Framework class library is a collection of reusable types that tightly
integrate with the common language runtime. The class library is object oriented,
providing types from which your own managed code can derive functionality. This
not only makes the .NET Framework types easy to use, but also reduces the time
associated with learning new features of the .NET Framework. In addition, third-
party components can integrate seamlessly with classes in the .NET Framework.
For example, the .NET Framework collection classes implement a set of interfaces
that you can use to develop your own collection classes. Your collection classes
will blend seamlessly with the classes in the .NET Framework.
As you would expect from an object-oriented class library, the .NET Framework
types enable you to accomplish a range of common programming tasks, including
tasks such as string management, data collection, database connectivity, and file
access. In addition to these common tasks, the class library includes types that
support a variety of specialized development scenarios. For example, you can use
the .NET Framework to develop the following types of applications and services:
Console applications.
Scripted or hosted applications.
Windows GUI applications (Windows Forms).
ASP.NET applications.
XML Web services.
Windows services.
For example, the Windows Forms classes are a comprehensive set of reusable
types that vastly simplify Windows GUI development. If you write an ASP.NET
Web Form application, you can use the Web Forms classes.
In the past, developers created such applications using C/C++ in conjunction with
the Microsoft Foundation Classes (MFC) or with a rapid application development
(RAD) environment such as Microsoft® Visual Basic®. The .NET Framework
incorporates aspects of these existing products into a single, consistent
development environment that drastically simplifies the development of client
applications.
The Windows Forms classes contained in the .NET Framework are designed to be
used for GUI development. You can easily create command windows, buttons,
menus, toolbars, and other screen elements with the flexibility necessary to
accommodate shifting business needs.
For example, the .NET Framework provides simple properties to adjust visual
attributes associated with forms. In some cases the underlying operating system
does not support changing these attributes directly, and in these cases the .NET
Framework automatically recreates the forms. This is one of many ways in which
the .NET Framework integrates the developer interface, making coding simpler and
more consistent.
Choosing a Complier
To obtain the benefits provided by the common language runtime, you must use
one or more language compilers that target the runtime.
Compiling your code to Microsoft Intermediate Language (MSIL)
Compiling translates your source code into MSIL and generates the required
metadata.
At execution time, a just-in-time (JIT) compiler translates the MSIL into native
code. During this compilation, code must pass a verification process that examines
the MSIL and metadata to find out whether the code can be determined to be type
safe.
Executing your code
The common language runtime provides the infrastructure that enables execution to
take place as well as a variety of services that can be used during execution.
Assemblies Overview
It forms a version boundary. The assembly is the smallest versionable unit in the
common language runtime; all types and resources in the same assembly are
versioned as a unit. The assembly's manifest describes the version dependencies
you specify for any dependent assemblies. For more information about versioning,
see Assembly Versioning
It forms a deployment unit. When an application starts, only the assemblies that the
application initially calls must be present. Other assemblies, such as localization
resources or assemblies containing utility classes, can be retrieved on demand. This
allows applications to be kept simple and thin when first downloaded. For more
information about deploying assemblies, see Deploying Applications
It is the unit at which side-by-side execution is supported. For more information
about running multiple versions of the same assembly, see Side-by-Side Execution
There are several ways to create assemblies. You can use development tools, such
as Visual Studio .NET, that you have used in the past to create .dll or .exe files.
You can use tools provided in the .NET Framework SDK to create assemblies with
modules created in other development environments. You can also use common
language runtime APIs, such as Reflection. Emit, to create dynamic assemblies.
ASP.NET
The following illustration shows a basic network schema with managed code
running in different server environments. Servers such as IIS and SQL Server can
perform standard operations while your application logic executes through the
managed code.
ASP.NET is the hosting environment that enables developers to use the .NET
Framework to target Web-based applications. However, ASP.NET is more than
just a runtime host; it is a complete architecture for developing Web sites and
Internet-distributed objects using managed code. Both Web Forms and XML Web
services use IIS and ASP.NET as the publishing mechanism for applications, and
both have a collection of supporting classes in the .NET Framework.
If you have used earlier versions of ASP technology, you will immediately notice
the improvements that ASP.NET and Web Forms offers. For example, you can
develop Web Forms pages in any language that supports the .NET Framework. In
addition, your code no longer needs to share the same file with your HTTP text
(although it can continue to do so if you prefer). Web Forms pages execute in
native machine language because, like any other managed application, they take
full advantage of the runtime. In contrast, unmanaged ASP pages are always
scripted and interpreted. ASP.NET pages are faster, more functional, and easier to
develop than unmanaged ASP pages because they interact with the runtime like
any managed application.
The .NET Framework also provides a collection of classes and tools to aid in
development and consumption of XML Web services applications. XML Web
services are built on standards such as SOAP (a remote procedure-call protocol),
XML (an extensible data format), and WSDL (the Web Services Description
Language). The .NET Framework is built on these standards to promote
interoperability with non-Microsoft solutions.
For example, the Web Services Description Language tool included with the .NET
Framework SDK can query an XML Web service published on the Web, parse its
WSDL description, and produce C# or Visual Basic source code that your
application can use to become a client of the XML Web service. The source code
can create classes derived from classes in the class library that handle all the
underlying communication using SOAP and XML parsing. Although you can use
the class library to consume XML Web services directly, the Web Services
Description Language tool and the other tools contained in the SDK facilitate your
development efforts with the .NET Framework.
If you develop and publish your own XML Web service, the .NET Framework
provides a set of classes that conform to all the underlying communication
standards, such as SOAP, WSDL, and XML. Using those classes enables you to
focus on the logic of your service, without concerning yourself with the
communications infrastructure required by distributed software development.
Finally, like Web Forms pages in the managed environment, your XML Web
service will run with the speed of native machine language using the scalable
communication of IIS.
This section describes the programming essentials you need to build .NET
applications, from creating assemblies from your code to securing your application.
Many of the fundamentals covered in this section are used to create any application
using the .NET Framework. This section provides conceptual information about
key programming concepts, as well as code samples and detailed explanations.
Describes the ADO.NET architecture and how to use the ADO.NET classes to
manage application data and interact with data sources including Microsoft SQL
Server, OLE DB data sources, and XML.
Accessing Objects in Other Application Domains using .NET Remoting
Describes the various communications methods available in the .NET Framework
for remote communications.
Shows how to use Internet access classes to implement both Web- and Internet-
based applications.
Creating Active Directory Components
Developing Components
Explains the extensive support the .NET Framework provides for developing
international applications.
Explains how to get access to type information at run time by using reflection.
Discusses the various collection types available in the .NET Framework, including
stacks, queues, lists, arrays, and structs.
Describes error handling provided by the .NET Framework and the fundamentals
of handling exceptions.
Introduction
Overview
M e c hani sms that store data in files and find pages, files,
and e xte nts.
Re c or d manage ment for accessing the records on pages.
Ac c e ss me thods using b-trees that are used to quickly find
r e c or ds usi ng r e c ord identifiers.
Conc ur r e nc y c ontrol for locking,used to implement the
physi c al l oc k manager and locking protocols for page- or
r e c or d-l e ve l l oc ki ng.
I/ O buffe r management.
L oggi ng and r e c overy.
Uti l i ti e s for bac kup and restore, consistency checking, and
bul k data l oadi ng.
Overview
Files
F i l e gr oups
Spac e M anage me nt
F i l e Shr i nk
SQL Se rve r shri nks fi l e s by moving rows from pages at the end of
t he fi l e t o pa ge s a l l oc a t ed earlier in the file. In an index, nodes are
m ove d from t he e nd of the file to pages at the beginning of the
fi l e . In bot h c a se s pa ge s are freed at the end of files and then
re t urne d t o t he fi l e syst em. Databases can only be shrunk to the
poi nt t ha t no fre e spa c e is remaining; there is no data compression.
File Grow
T or n P age De te c ti on
L oc ki ng E nhanc e me nts
Row-L e ve l L oc ki ng
Dynami c L oc ki ng
L oc k M ode s
O ve r vi e w
Funda m e nt a l c ha nge s were made in table organization. This new
orga ni z a t i on a l l ows t he query processor to make use of more
nonc lust e re d i nde xe s, greatly improving performance for decision
support a ppl i c a t i ons. T he query optimizer has a wide set of
e xe c ut i on st ra t e gi e s a nd many of the optimization limitations of
e a rl i e r ve rsi ons of SQL Server have been removed. In particular,
SQL Se rve r 7.0 i s l e ss sensitive to index-selection issues, resulting
i n l e ss t uni ng work.
T abl e Inde xe s
Se c ond nor mal for m: Involves taking out data that is only
de pe nde nt on pa rt of ke y.
SQ L
SQL *pl us Is a supe rse t of the standard SQL .it conforms to the
st a nda rds of a n SQL – c ompliant language and it has some specific
ora c l e a dd – one s, l e a di ng to its name SQL and plus. SQL *plus
wa s a l wa ys c a l l e d UFI (user –friendly interface). The oracle server
onl y unde rst a nds st a t e ments worded using SQL. Other front-end
t ool s i nt e ra c t wi t h t he oracle database using the SQL statements.
Ora c le ’s i m pl e m e nt a t i on of SQL through SQL *plus is compliant
wi t h ANSI (Am e ri c a n national standard institute) and the ISO
(i nt e rna t i ona l st a nda rds organization) standards. Almost all oracle
t ool s support i de nt i c a l SQL syntax
3.4.1 SCENARIOS:
1. Scenario for the usecase ‘Myprofile’ :
Flow of events :
1) After successful login , Likit
goes to the Home page
Fmane : Venkata
Mname : Sai
Lname : Likit
Gender Male Female
SSN 558794
City Hyderabad
Andhra Pradesh
State
Zip 500013
Email likit@gmail.com
Flow of events :
1) After successful login , Mr. Rao
goes to the Home page
ClientScheduleDate : 05/21/2008
Assign to : Sudha
TIS
TAX
PREPARER
TIS
Login
Register
Assign interview
ADMIN
Myprofile CLIENT
Documents
Acknowledgement
Schedule Interview
Change Password
INCLUDE RELATIONSHIP
MYPROFILE
REISTER
CHANGE
PASSWORD
EXTEND RELATIONSHIP
DOCUMENT
CONNUCTION DOWN
TAX SUMMARY
Flow of events :
1) Tax preparer invokes the
TaxCalculation use case
Documenttype : varchar
* Documentfile : varchar
ADMIN SUBMIT()
1 *
Userid : varchar
Password:varchar 1
1
TAXSUMMARY
SCHEDULEINTERVIEW
1
Selectdate : datetime
SUBMIT()
MYPROFILE
Fname : varchar
Mname : varchar
lname : varchar
gender : varchar
1 dob : varchar
ssn : varchar
address : varchar
city :varchar
state : varchar
zip : int
email : varchar
ocupation : varchar
SUBMIT()
1
CLIENT
1
1
Userid : varchar DOCUMENT
Password:varchar 1 1
SUBMIT()
1 CHANGE PASSWORD
oldpwd : varchar
newpwd : varchar
confirmpwd : varchar
SUBMIT()
Submittaxdetails()
Pressbutton()
Updatedetails()
ADMIN
Pressbutton()
Accept()
Displatdata()
Insertpersonaldetails()
Pressbutton()
Submittax
details()
Pressbutton()
Updatedetails()
Updateforms()
Filldetails()
Presssubmit()
Submitupdatedetails()
Collabration Diagrams
Admin
2: Accept 3: DisplayData
:Admin :Admin :Register
Button Control
5: submitTaxdetails
7: UpdateDetails
1: PressButton
4: CalculateSummary
1: PressButton 2: Accept
:Admin :Client :Client
Button Control
4: InsertPersonalDetails
6: Submittaxdetails
5: PressButton
12: UpdateDetails
10: FillDetails
7: PressButton
8: UpdateDetails
11: PressSubmitbutton
3: DisplayData
9: UpdateForms
:My :Save
Profile Changes
ER-Diagram
DFDs
Client Client
Tax information
Admin Admin
system
Create profile
Upload
CLIENT documents CLIENT
Schedule
interview
Tax summary
Payment
Registration
Documents
ADMINISTRATOR ADMINISTRATOR
Assign
interviews
Check interview
Project related
expenses
Job related
expenses
Other expenses
INTERVIEWER INTERVIEWER
Independent
expenses
Traveling expenses
Moving expenses
Login
Validation Registration
Check validation
Documents
Login Authorized
Login Assign interview
Administrator Proces
s Administrator Check schedule
Login
Register
Valid data
Create profile
Check validation
Upload document
Login Authorize
Schedule
Login interview
Administrator
Proces
Recruiter
s Tax summary
Payment
Login
Project expenses
Other expenses
login Authorized
Login Dependent
proces expenses
administrate
s Administrator
Travel expenses
Moving expenses
Register
Create
profile
Upload
CLIENT documents
PROCES CLIENT
S DETAILS
Schedule
Tax
summary
Payment
New registration
CLIENT CLIENT
PROCESS
Old registration
Tax
Payer
info
Spouse
Info
Depend
ent
Vehicle
W2S
1099MISC
UPLOA
D DOCUMENT
DETAILS
DOCUM
ENT Overseas
Salary
certificate
other
Comple
te
profile
Submitted
Outman
INTERVIEW
DETAILS
INTERVIEW
Available
Assign
Interview
TAX Prepare
SUMMARY tax SUMMARY DETAILS
Recruiter Login
process
Display
Assign
Date and
DOCUME time
NTS DOCUMENT DETAILS
Documen
t
Upload
Un
schedule
Schedule
CHECKING INTERVIEW
INTERVIEWS SCHEDULE
DETAILS
Update
Assign
DEFINITION:
Design is the first step in the development phase for any engineered
product/system. It may be defined as “The process of applying various
techniques and principles for the purpose of defining a device, a process/a
system in sufficient detail to permit its physical realization.
Once the software requirements have been analyzed and specified, the
software design involves three technical activities—Design, Code
generation and testing, that are required to build and verify the software.
The design activities are of main importance in this phase, because in this
activity decisions ultimately affecting the success of the software
implementation and its ease of maintenance are made. These decisions
have the final bearing upon reliability and maintainability of the system.
Design is the only way to accurately translate the customer’s requirements
into finished software/
a system.
4.1SUBSYSTEM DECOMPOSITION
TIS
Admin
Client
TIS
ADMIN
CLIENT
TIS
MYPROFILE DOCUMENT
CHANGE PASSWORD
TIS
SCHEDULE INTERVIEW
4.1.2 PRESISTANT DATA MANAGEMENT
ADMIN CLIENT
TIS
Taxregistration
myprofile
document
bank
itindepende
vehicle
itinspouse
compose
spouse
payment
dependent
schedu interviewer
adminmail
Input forms
acknowledgement
Details of interview sent to mail
payment
ADMIN
ADMINMODULE
Check.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
checkdocument.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
}
}
CheckProfile.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class admin_MyProfile : System.Web.UI.Page
{
SqlConnection cn = new
SqlConnection(ConfigurationManager.AppSettings["con"]);
string sql,str;
protected void Page_Load(object sender, EventArgs e)
{
cn.Open();
str = Request.QueryString["taxid"].ToString();
if (!IsPostBack)
{
FillData();
}
}
New.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
Schedule.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
// Calendar1.Visible = false;
//Label1.Visible = false;
//Label2.Visible = false;
//Label3.Visible = false;
//Label4.Visible = false;
//Label5.Visible = false;
//Label6.Visible = false;
//Label7.Visible = false;
//TextBox2.Visible = false;
//DropDownList2.Visible = false;
//Button1.Visible = false;
//Button2.Visible = false;
if (!IsPostBack)
{
FillData();
FillData1();
}
}
public void FillData()
{
sql = "select distinct m.taxid, m.fname,s.sdate,s.confimdate from myprofile
m,schedule s where m.taxid=s.taxid ";
SqlDataAdapter da = new SqlDataAdapter(sql, cn);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
Login.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
else
{
sql1 = "select userid from interviewer where userid='" + txtuserid.Text +
"' and pwd='" + txtpwd.Text + "'";
SqlCommand cmd1 = new SqlCommand(sql1, cn);
SqlDataReader dr1 = cmd1.ExecuteReader();
if (dr1.Read())
{
Session["userid"] = dr1[0].ToString();
Response.Redirect("~/Interviewer/Interview.aspx");
}
else
{
lblmsg.Text = "Invalid UserID and Password";
}
dr1.Close();
}
dr.Close();
}
}
}
Myprofile.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
lbltaxid.Text = Session["taxid"].ToString();
cn.Open();
if (!IsPostBack)
{
FillData();
}
}
//lbltaxid.Text = Session["taxid"].ToString();
sql = "select taxid from myprofile where taxid=" + "'" + Session["taxid"] + "'";
SqlCommand cmd = new SqlCommand(sql, cn);
SqlDataReader dr=cmd.ExecuteReader();
if (dr.Read())
{
sql1 = "update myprofile set fname='" + txtfname.Text + "',mname='" +
txtmname.Text + "',lname='" + txtlname.Text + "',gender='" +
radiogender.SelectedItem.Text + "',dob='" + txtdob.Text + "',ssnitin='" +
txtssn.Text + "',address='" + txtaddress.Text + "',city='" + txtcity.Text + "',state='"
+ txtstate.Text + "',zip='" + txtzip.Text + "',email='" + txtemail.Text + "',occuiption
='" + listoccuiption.SelectedItem.Text + "',mstatus='" +
radiomaritalstatus.SelectedItem.Text + "',dependency='" +
radiodependency.SelectedItem.Text + "' where taxid=" + "'" + Session["taxid"] +
"'";
SqlCommand cmd1 = new SqlCommand(sql1, cn);
cmd1.ExecuteNonQuery();
}
else if (txtssn.Text == "")
{
sql2 = "insert
myprofile(taxid,fname,mname,lname,gender,dob,address,city,state,zip,email,occui
ption,mstatus,dependency,ctype) values('" + Session["taxid"].ToString() + "','" +
txtfname.Text + "','" + txtmname.Text + "','" + txtlname.Text + "','" +
radiogender.SelectedItem.Text + "','" + txtdob.Text + "','" + txtaddress.Text + "','"
+ txtcity.Text + "','" + txtstate.Text + "','" + txtzip.Text + "','" + txtemail.Text + "','"
+ listoccuiption.SelectedItem.Text + "','" + radiomaritalstatus.SelectedItem.Text +
"','" + radiodependency.SelectedItem.Text + "','" + str + "')";
//Label2.Text = sql2;
SqlCommand cmd2 = new SqlCommand(sql2, cn);
cmd2.ExecuteNonQuery();
//Clear();
}
else
{
sql3 = "insert
myprofile(taxid,fname,mname,lname,gender,dob,ssnitin,address,city,state,zip,emai
l,occuiption,mstatus,dependency,ctype) values('" + Session["taxid"].ToString() +
"','" + txtfname.Text + "','" + txtmname.Text + "','" + txtlname.Text + "','" +
radiogender.SelectedItem.Text + "','" + txtdob.Text + "','" + txtssn.Text + "','" +
txtaddress.Text + "','" + txtcity.Text + "','" + txtstate.Text + "','" + txtzip.Text + "','"
+ txtemail.Text + "','" + listoccuiption.SelectedItem.Text + "','" +
radiomaritalstatus.SelectedItem.Text + "','" + radiodependency.SelectedItem.Text +
"','" + str + "')";
//Label2.Text = sql2;
SqlCommand cmd3 = new SqlCommand(sql3, cn);
cmd3.ExecuteNonQuery();
}
dr.Close();
}
public void Clear()
{
txtfname.Text = "";
txtmname.Text = "";
txtlname.Text = "";
foreach (ListItem li in radiogender.Items)
{
li.Selected = false;
}
txtdob.Text = "";
txtssn.Text = "";
txtaddress.Text = "";
txtcity.Text = "";
txtstate.Text = "";
txtzip.Text = "";
txtemail.Text = "";
foreach (ListItem li1 in listoccuiption.Items)
{
li1.Selected = false;
}
foreach (ListItem li2 in radiomaritalstatus.Items)
{
li2.Selected = false;
}
foreach (ListItem li3 in radiodependency.Items)
{
li3.Selected = false;
}
}
protected void radiomaritalstatus_SelectedIndexChanged(object sender,
EventArgs e)
{
if (radiomaritalstatus.SelectedItem.Text == "Marrried")
{
Response.Write("<script type='text/javascript'>");
Response.Write("window.open('Spouse.aspx')");
Response.Write("</script>");
}
}
protected void radiodependency_SelectedIndexChanged(object sender,
EventArgs e)
{
if (radiodependency.SelectedItem.Text == "Yes")
{
Response.Write("<script type='text/javascript'>");
Response.Write("window.open('Dependent.aspx')");
Response.Write("</script>");
}
}
}
Spouse.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
SqlConnection cn = new
SqlConnection(ConfigurationManager.AppSettings["con"]);
string sql;
string str;
protected void Page_Load(object sender, EventArgs e)
{
cn.Open();
if (!IsPostBack)
{
FillData();
}
}
public void FillData()
{
sql = "select * from spouse where taxid=" + "'" + Session["taxid"] + "'";
SqlCommand cmd = new SqlCommand(sql, cn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
txtfname.Text = dr[1].ToString();
txtmname.Text = dr[2].ToString();
txtlname.Text = dr[3].ToString();
txtdob.Text = dr[4].ToString();
occupationdropdownlist.Text = dr[5].ToString();
string str = dr[6].ToString();
if (str == "Yes")
{
checkssntax.Checked = true;
}
else
checkssntax.Checked = false;
}
str = "No";
Response.Write("<script type='text/javascript'>");
Response.Write("window.close('Spouse.aspx')");
Response.Write("</script>");
}
protected void checkssntax_CheckedChanged(object sender, EventArgs e)
{
if (checkssntax.Checked == true)
{
Response.Write("<script type='text/javascript'>");
Response.Write("window.open('ITINSpouse.aspx')");
Response.Write("</script>");
Session["fname"] = txtfname.Text;
Session["mname"] = txtmname.Text;
Session["lname"] = txtlname.Text;
}
}
protected void txtfname_TextChanged(object sender, EventArgs e)
{
}
}
ITINSpouse.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
cn.Open();
if (!IsPostBack)
{
FillData();
}
}
public void FillData()
{
sql = "select * from itinspouse where taxid=" + "'" + Session["taxid"] + "'";
SqlCommand cmd = new SqlCommand(sql, cn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
txtfname.Text = dr[1].ToString();
txtmname.Text = dr[2].ToString();
txtlname.Text = dr[3].ToString();
txtpassportno.Text = dr[4].ToString();
txtpassportedate.Text = dr[5].ToString();
txtvisano.Text = dr[6].ToString();
txtvisaedate.Text = dr[7].ToString();
txtplaceofbirth.Text = dr[8].ToString();
txtaddressinthepassport.Text = dr[9].ToString();
txtdateofentryusa.Text = dr[10].ToString();
}
else
{
txtfname.Text = Session["fname"].ToString();
txtmname.Text = Session["mname"].ToString();
txtlname.Text = Session["lname"].ToString();
}
dr.Close();
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
sql = "insert into itinspouse values('" + Session["taxid"] + "','" + txtfname.Text
+ "','" + txtmname.Text + "','" + txtlname.Text + "','" + txtpassportno.Text + "','" +
txtpassportedate.Text + "','" + txtvisano.Text + "','" + txtvisaedate.Text + "','" +
txtplaceofbirth.Text + "','" + txtaddressinthepassport.Text + "','" +
txtdateofentryusa.Text + "')";
SqlCommand cmd = new SqlCommand(sql, cn);
cmd.ExecuteNonQuery();
Response.Write("<script type='text/javascript'>");
Response.Write("window.close('ITINSpouse.aspx')");
Response.Write("</script>");
}
}
Dependent.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
if (droprelation.SelectedItem.Text == "Other")
{
sql = "insert into dependent values('" + Session["taxid"] + "','" +
txtfname.Text + "','" + txtmname.Text + "','" + txtlname.Text + "','" +
droprelation.SelectedItem.Text + "','" + txtother.Text + "','" + txtdob.Text + "','" +
str + "','" + txtnoofyear.Text + "')";
SqlCommand cmd = new SqlCommand(sql, cn);
cmd.ExecuteNonQuery();
}
else
{
sql1 = "insert into
dependent(taxid,fname,mname,lname,relation,dob,ssnitin,noofyearsinusa) values('"
+ Session["taxid"] + "','" + txtfname.Text + "','" + txtmname.Text + "','" +
txtlname.Text + "','" + droprelation.SelectedItem.Text + "','" + txtdob.Text + "','" +
str + "','" + txtnoofyear.Text + "')";
SqlCommand cmd1 = new SqlCommand(sql1, cn);
cmd1.ExecuteNonQuery();
}
Response.Write("<script type='text/javascript'>");
Response.Write("window.close('Dependent.aspx')");
Response.Write("</script>");
}
protected void droprelation_SelectedIndexChanged(object sender, EventArgs e)
{
if (droprelation.SelectedItem.Text == "Other")
{
lblother.Visible = true;
txtother.Visible = true;
}
}
protected void checkssntax_CheckedChanged(object sender, EventArgs e)
{
if (checkssntax.Checked == true)
{
Response.Write("<script type='text/javascript'>");
Response.Write("window.open('ITINDependent.aspx')");
Response.Write("</script>");
//Session["fname"] = txtfname.Text;
//Session["mname"] = txtmname.Text;
//Session["lname"] = txtlname.Text;
}
}
protected void btnnext_Click(object sender, EventArgs e)
{
if (n < ds.Tables[0].Rows.Count - 1)
{
n += 1;
GetRecord(n);
}
else
{
lblmsg3.Visible = true;
lblmsg3.Text = "This is Last Record";
}
}
protected void btnprevious_Click(object sender, EventArgs e)
{
if (n > 0)
{
n -= 1;
GetRecord(n);
}
else
{
lblmsg3.Visible = true;
lblmsg3.Text = "This is First Record";
}
}
}
ITINDependent.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
cn.Open();
if (!IsPostBack)
{
FillData();
}
}
public void FillData()
{
sql = "select * from itindependent where taxid=" + "'" +
Session["taxid"].ToString()+ "'";
SqlCommand cmd = new SqlCommand(sql, cn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
txtfname.Text = dr[1].ToString();
txtmname.Text = dr[2].ToString();
txtlname.Text = dr[3].ToString();
txtpassportno.Text = dr[4].ToString();
txtpassportedate.Text = dr[5].ToString();
txtvisano.Text = dr[6].ToString();
txtvisaedate.Text = dr[7].ToString();
txtplaceofbirth.Text = dr[8].ToString();
txtaddressinthepassport.Text = dr[9].ToString();
txtdateofentryusa.Text = dr[10].ToString();
}
//else
//{
// //if(Session["fname"].ToString()!= "")
// //{
// txtfname.Text = Session["fname"].ToString();
// txtmname.Text = Session["mname"].ToString();
// txtlname.Text = Session["lname"].ToString();
// //}
//}
dr.Close();
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
sql = "insert into itindependent values('" + Session["taxid"] + "','" +
txtfname.Text + "','" + txtmname.Text + "','" + txtlname.Text + "','" +
txtpassportno.Text + "','" + txtpassportedate.Text + "','" + txtvisano.Text + "','" +
txtvisaedate.Text + "','" + txtplaceofbirth.Text + "','" + txtaddressinthepassport.Text
+ "','" + txtdateofentryusa.Text + "')";
SqlCommand cmd = new SqlCommand(sql, cn);
cmd.ExecuteNonQuery();
Response.Write("<script type='text/javascript'>");
Response.Write("window.close('ITINDependent.aspx')");
Response.Write("</script>");
}
}
TEST CASE NAME : ADMIN LOGIN
Ending
mileage date 12/05/2008 Control passes to Control passes pass
next field to next field
SQL Server
Publications
C# .NET