Trade Tax Sandeep 549
Trade Tax Sandeep 549
Trade Tax Sandeep 549
Department
Of
Computer Science and Engineering
1
A Case Study on
Computerized Information System for Trade Tax
A Dissertation submitted in partial fulfillment for the award of the degree
of
Bachelor in Technology
In
M.R. Sandeep(08UT1A0549)
S.Naveen Kumar(08UT1A0551)
2
Certificate
This is to certify that the project report entitled ………… being submitted by Mr./Mrs.
…….. In partial fulfillment for the award of the Degree of Bachelor of Technology in
CSE to the Jawaharlal Nehru Technological University is a record of bonafide work
carried out by him under my guidance and supervision.
The results embodied in this project report have not been submitted to any other
University or Institute for the award of any Degree or Diploma.
Designation
3
ABSTRACT
4
CONTENTS
i. Introduction 6
v. Coding Templates 21
Code for Updating Dealer’s Profile
Data Base Design for Updating Dealers Profile
Code For Entering Dealer’s Information
Data Base Design for Entering Dealer’s Profile
Code for Deleting Users Profile
vi. Testing 29
Test Approach
Test Plan
vii. Output Screens 34
viii. Conclusion 39
ix. Bibliography 40
5
1. INTRODUCTION
6
1. INTRODUCTION
1.1 INTRODUCTION TO TAX INFORMATION SYSTEM
1.1.1 DEALER INFORMATION SYSTEM
Handles the registration of dealers under commercial tax and central sales tax:
It registers dealers under commercial tax and central sales tax, effectively checks the
mandatory enclosures, and displays warnings Effectively tracks amendments in the
business details of dealers Issues duplicate registration certificates Monitors
cancellation of dealer registration Efficiently tracks transfer of dealers Keeps track of
unregistered dealers liable to pay tax Effectively maintains records of stocks of forms at
various offices, issues forms to dealers, and monitors forms lost and used. Issues show-
cause notices Generates an application status report for the monitoring of various
applications.
7
1.1.4 LUXURY TAX SYSTEM
This module controls the registration of hoteliers under luxury tax:
Registers hoteliers under the law and issues registration certificates Generates penalty
notices in case of late registration Amends the registration details of the hotelier.Issues
duplicate certificates when hoteliers lose permanent certificates Transfer of hoteliers
Cancels registration when sought by hoteliers Cancels registration when sought by
various authorities Captures details of unregistered hoteliers Processes returns along
with challans Processes assessments and issues assessment orders and demand notices
Processes refund amounts in case of refunds Provides for appeals / revisions.
8
INTRODUCTION TO MODULES
Administrator Module
Dealer Module.
Supervisor Module
We have front end communicating with back end which has a driver interface
between them and GUI components to interface with the user. For designing here we
use HTML and J2SE as front end and Orcal9i or higher as back end. The system works
by comparing the dates in the database with the current date of the server.
9
2. SYSTEM ANALYSIS
10
2. SYSTEM ANALYSIS
2.1 PROPOSED SYSTEM
Information System for Trade Tax is specially designed for
organization to keep track of employee leave –tracking. This system aims to reduce
the paper-work to track-down employee leave with accuracy and minimal fuss, thus
saving time and money.
Our Trade Tax can retrieve the latest information for employees leave application,
leave cancellation, entitlement updating and leave approval which are automated and
user-friendly with the information displayed for preparing reports, enquiries or
updating relevant details.
By using this system the employee can apply, approve, cancel, postpone and view
leave records at their finger tips at anytime, anywhere.
Technical Feasibility
Operational Feasibility
Economical Feasibility
11
2.3.1 TECHNICAL FEASIBILITY
Evaluating the technical feasibility is the trickiest part of a feasibility study. This is
because, at this point in time, not too many detailed design of the system, making it
difficult to access issues like performance, costs on (on account of the kind of
technology to be deployed) etc. A number of issues have to be considered while doing a
technical analysis.
1.Understand the different technologies involved in the proposed system before
commencing the project, we have to be very clear about what are the technologies those
are required for the development of new system.
2. Find out whether the organization currently possesses the required technologies is the
required technology available with the organization? If so is the capacity sufficient?
For instance – “Will the current printer be able to handle the new reports and forms
required for the new system?”
12
Since the proposed system was to help reduce the hardships encountered in the existing
manual system, the new system was considered to be operational feasible.
13
3. SYSTEM REQUIREMENTS
14
3. SYSTEM REQUIREMENTS
15
4. SOFTWARE DESCRIPTION
16
4. SOFTWARE DESCRIPTION
INTRODUCTION TO JAVA
FEATURES OF JAVA
The inventors of java wanted to design a language which could offer
solution to some of the problems encountered in modern programming. They wanted
the language to be not only reliable, portable and distributed but also simple, compact
and interactive.
Although the above appears to be a list of buzzwords, they aptly describe the full
potential of the language. These features have made Java the first application
language of the World Wide Web. Java will also become the premier language for
general purpose stand_ alone applications.
17
Compiled and Interpreted
The most significant contribution of Java over other language is its portability. Java
programs can be easily moved from one computer system to another, anywhere and
anytime. Changes and upgrades in operating systems, processors and system resources
will not force any changes in Java programs. This is the reason why Java has become a
popular language for programming on Internet which interconnects different kinds of
systems worldwide.
Object Oriented
Java is a true object _ oriented language. Almost everything in Java is an object. All
program code and data reside within objects and classes. Java comes with an extensive
set of classes, arranged in packages, which we can use in our programs by inheritance.
The object model in Java is simple and easy to extend.
Java is a robust language. It provides many safeguards to ensure reliable code. It has
strict compile time and run time checking for data types. It is designed as a garbage
collected language relieving the programmers virtually memory management problems.
Java also incorporates the concept of exception handling which captures series errors
and eliminates any risk of crashing the system.
Distributed
18
multiple programmers at multiple remote locations to collaborate and work together on
single project.
Java is a small and simple language. Many features of C and C++ that are either
redundant and source of unreliable code are not part of Java. For example, Java does not
use pointers preprocessor header files; go to statement and many others. It also
eliminates operator overloading and multiple inheritance. Familiarity is another striking
feature of Java. To make the language look familiar to the existing programmers, it was
modeled on C and C++ languages.
High Performance
Java is dynamic language. Java is capable of dynamically linking in new class libraries,
methods, and objects. Java can also determine the type of class through a query,
making it possible to either dynamically link or abort the program, depending on the
response. Java programs support functions written in other language such as C and C++.
These functions are known as native methods. This facility enables the programmers to
19
use the efficient functions available in these languages. Native methods are linked
dynamically at runtime.
4.2. HTML
Hypertext Markup Language (HTML), the languages of the World Wide Web
(WWW), allows users to produces Web pages that include text, graphics and pointer to
other Web pages (Hyperlinks).
HTML can be used to display any type of document on the host computer, which
can be geographically at a different location. It is a versatile language and can be used
on any platform or desktop.
HTML provides tags (special codes) to make the document look attractive.
HTML tags are not case-sensitive. Using graphics, fonts, different sizes, color, etc., can
enhance the presentation of the document. Anything that is not a tag is part of the
document itself.
4.3. JAVASCRIPT
Even though JavaScript supports both client and server Web programming, we prefer
JavaScript at Client side programming since most of the browsers supports it.
JavaScript is almost as easy to learn as HTML, and JavaScript statements can be
included in HTML documents by enclosing the statements between a pair of scripting
tags
<SCRIPTS>... </SCRIPT>.
JavaScript statements
</SCRIPT>
Animate images or rotate images that change when we move the mouse over them.
Detect the browser in use and display different content for different browsers.
4.4. JDBC
Java Database Connectivity or in short JDBC is a technology that enables
the java program to manipulate data stored into the database. Here is the complete
tutorial on JDBC technology.
1. What is JDBC?
JDBC is Java application programming interface that allows the Java programmers to
access database management system from Java code. It was developed by Java Soft, a
subsidiary of Sun Microsystems.
21
JDBC has four Components:
Due to JDBC API technology, user can also access other tabular data sources like
spreadsheets or flat files even in the a heterogeneous environment. JDBC application
programming interface is a part of the Java platform that has included Java Standard
Edition (Java SE) and the Java Enterprise Edition (Java EE) in itself.
The latest version of JDBC 4.0 application programming interface is divided into two
packages
i java.sql
ii javax.sql.
22
with minimal concern about impacting each other’s work.
Features of JSP:
Portability
Components
Processing
Access Models
The client sends a request to the web server for a JSP file by giving the name of the JSP
file within the form tag of a HTML page.
JSP engine is program which can understand the tags of the jsp and then it converts
those tags into a Servlet program and it is stored at the server side. This Servlet is
loaded in the memory and then it is executed and the result is given back to the
JavaWebServer and then it is transferred back to the result is given back to the
JavaWebServer and then it is transferred back to the client.
23
5. SYSTEM DESIGN
24
5. PROJECT DESCRIPTION
The main purpose of a use case diagram is to show what system functions are
performed for which actor. Roles of the actors in the system can be depicted.
Use cases
A use case describes a sequence of actions that provide something of measurable value
to an actor and is drawn as a horizontal ellipse.
Actors
An actor is a person, organization, or external system that plays a role in one or more
interactions with the system.
25
5.2.1 USE CASE DIAGRAM FOR ADMINISTRATOR
Login
Add,Del,up
dealer
Add,Del,up
Sup
View Report
Administrator
Payment
Generate
26
5.2.1 USE CASE DIAGRAM FOR DEALER
2.Dealer
Register
Approval
Log in
Goods Shipper
Dealer
Submit
Complaint
3.Supervisor
Login
Tax Payment
Supervisor
Get Emp det
Submit
27
5.3 CLASS DIAGRAM
Class diagrams are widely used to describe the types of objects in a system and their
relationships. Class diagrams model class structure and contents using design elements
such as classes, packages and objects. Class diagrams describe three different
perspectives when designing a system, conceptual, specification, and implementation.
These perspectives become evident as the diagram is created and help solidify the
design. This example is only meant as an introduction to the UML and class diagrams.
If you would like to learn more see the Resources page for more detailed resources on
UML.
Classes are composed of three things: a name, attributes, and operations. Below is an
example of a class.
5.3.1 SIMPLE CLASS DIAGRAM
Administrator Dealer
1…………*
- Logid - Logid
- password - password
+ Name
-CreateDealer()
- CreateSupervisor()
-AddDealer()
-DeleteDealer()
-AddSupervisor() Supervisor -ReqForAdmi()
-DeleteSupervisor()
-Report() - Logid -GiveTheList()
- password
-payment() -TaxPayment()
-Generator()
-GetEmpDetails()
-SubmitEmpSal()
- Register()
- Approval()
- reqforgoods()
- GoodsShipper()
- Submit()
- Complaint
28
5.4 SEQUENCE DIAGRAM
UML sequence diagrams are used to represent or model the flow of messages,
events and actions between the objects or components of a system. Time is represented
in the vertical direction showing the sequence of interactions of the header elements,
which are displayed horizontally at the top of the diagram.
Sequence Diagrams are used primarily to design, document and validate the
architecture, interfaces and logic of the system by describing the sequence of actions
that need to be performed to complete a task or scenario. UML sequence diagrams are
useful design tools because they provide a dynamic view of the system behavior, which
can be difficult to extract from static diagrams or specifications.
Although UML sequence diagrams are typically used to describe object-oriented
software systems, they are also extremely useful as system engineering tools to design
system architectures, in business process engineering as process flow diagrams, as
message sequence charts and call flows for telecom/wireless system design, and for
protocol stack design and analysis.
Sequence
Log in Dealer Supervisor Report Payment Generate
Log in Add,
Update
Dealer
Add,del
Administrator Supervisor
View
Report
Payment
Generate
29
Register Approval Log in For Goods Goods & Sup Submit
Register
Approv
Dealer Log in
For Goods
Goods
And Sup
Submit
5.5 ER DIAGRAMS
The entity Relationship Diagram (ERD) depicts the relationship between the data
objects. The ERD is the notation that is used to conduct the date modeling activity the
attributes of each data object noted is the ERD can be described resign a data object
descriptions.
The set of primary components that are identified by the ERD are
Data object
Relationships
Attributes
Various types of indicators.
The primary purpose of the ERD is to represent data objects and their relationships.
30
5.5.1 ER DIAGRAM FOR ADMINISTRATOR
E R Diagram :
1.Administrator Tax-name
Assigned By
Invoice Tax
Amount
Super-id Super-name
Submit Payment Tax
Complaints
Payment
Dealer Payment
Report Dealer-id
2.Dealer Tax-name
Tax-id
Tax
Assigned by
Amount Product-name
Payment Report Requests
payment
Super-id
supervisor
Tax
Super-name
31
5.5.3 ER DIAGRAM FOR SUPERVISOR
3.supervisor
32
6. SOURCE CODE
33
6. CODING TEMPLATES
6.1 CODE FOR UPDATING DEALERS PROFILE
<%--
Document : update
Created on: May 20, 2011, 10:39:49 PM
Author : MySyS
--%>
<%@page import="java.util.*" %>
<%@page import="java.sql.*" %>
<%@page content Type="text/html" page Encoding="UTF-8"%>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Update</title>
</head> <body>
<% String s1=request.getParameter("fname");
String s2=request.getParameter("lname");
String s3=request.getParameter("uname");
String s4=request.getParameter("pass");
String s5=request.getParameter("rpass");
String s6=request.getParameter("phone");
String s7=request.getParameter("mobile");
String s8=request.getParameter("email");
String s9=request.getParameter("address");
String s10=request.getParameter("city");
String s11=request.getParameter("state");
String s12=request.getParameter("count");
String s13=request.getParameter("bname");
String s14=request.getParameter("bloc");
34
String s15=request.getParameter("bphone");
String s16=request.getParameter("bmail");
String s17=request.getParameter("badd");
RequestDispatcher rd=request.getRequestDispatcher("home.jsp");
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","ai
shu");
Statement stm=con.createStatement();
PreparedStatement pt=con.prepareStatement("update tradetax4 set
lname='"+s2+"',uname='"+s3+"',
pass='"+s4+"',rpass='"+s5+"',phone='"+s6+"',mobile='"+s7+"', email='"+s8+"',
address='"+s9+"' ,city='"+s10+"' ,state='"+s11+"' ,count='"+s12+"' ,bname='"+s13+"'
,bloc='"+s14+"' ,bphone='"+s15+"' ,bmail='"+s16+"' ,badd='"+s17+"' where
fname='"+s1+"'");
// PreparedStatement pt=con.prepareStatement("update tradetax4 set
email='"+s8+"' where fname='"+s1+"'");
int n=pt.executeUpdate();
if(n!=0)
out.println("<h1>insert success</h1>");
else
out.println("<h1>insert failure</h1>");
}
catch(Exception e)
{
out.println("<h1>error has occured"+e+"</h1>");
} %> </body> </html>
35
6.1.1 DATA BASE TABLE FOR UPDATING DEALER’S PROFILE
Field Type Size Constraint Description
Fname Varchar 20 Primary key First name
Lname Varchar 20 Not null Last name
Uname Varchar 20 Not null User name
Pass Varchar 20 Not null password
Rpass Varchar 20 Not null Repeat
password
Phone Number 20 Not null Phone num
Mobile Number 20 Not null Mobile
Email Varchar 30 Not null Email id
Address Varchar 30 Not null Address
City Varchar 20 Not null City
State Varchar 20 Not null State
Count Varchar 20 Not null Country
Bname Varchar 20 Not null Business n
Bloc Varchar 20 Not null Business
location
Bphone Number 20 Not null Business phone
Bmail Varchar 30 Not null Business mail
Badd Varchar 30 Not null Business
address
36
--%>
<%@page import="java.util.*" %>
<%@page import="java.sql.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Register</title>
</head>
<body background="blackboard-1024-x-768.jpg">
<%
String fname=request.getParameter("fname");
String lname=request.getParameter("lname");
String uname=request.getParameter("uname");
String pass=request.getParameter("pass");
String rpass=request.getParameter("rpass");
String phone=request.getParameter("phone");
String mobile=request.getParameter("mobile");
String email=request.getParameter("email");
String address=request.getParameter("address");
String city=request.getParameter("city");
String state=request.getParameter("state");
String count=request.getParameter("count");
String bname=request.getParameter("bname");
String bloc=request.getParameter("bloc");
String bphone=request.getParameter("bphone");
String bmail=request.getParameter("bmail");
String badd=request.getParameter("badd");
try
37
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","ai
shu");
PreparedStatement pt=con.prepareStatement("insert into dealog
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
PreparedStatement pt1=con.prepareStatement("insert into deareg values(?,?)");
pt.setString(1,fname);
pt.setString(2,lname);
pt.setString(3,uname);
pt.setString(4,pass);
pt.setString(5,rpass);
pt.setString(6,phone);
pt.setString(7,mobile);
pt.setString(8,email);
pt.setString(9,address);
pt.setString(10,city);
pt.setString(11,state);
pt.setString(12,count);
pt.setString(13,bname);
pt.setString(14,bloc);
pt.setString(15,bphone);
pt.setString(16,bmail);
pt.setString(17,badd);
pt1.setString(1,uname);
pt1.setString(2,pass);
int m=pt1.executeUpdate();
int n=pt.executeUpdate();
if(n>0&&m>0)
{
out.println("<h1 color='white' align='center'> success</h1>");
38
RequestDispatcher rd=request.getRequestDispatcher("show.jsp");
rd.include(request,response);
}
Else
out.println("<h1>insert failure</h1>");
}
catch(Exception e)
{
out.println("<h1>error has occured"+e+"</h1>");
}
%>
</body>
</html>
39
6.3 CODE FOR DELETING USER FROM DATA BASE
<%--
Document : delete
Created on : May 21, 2011, 11:51:47 AM
Author : My SyS
--%>
<%@page import="java.util.*" %>
<%@page import="java.sql.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>delete</title>
</head>
<body>
<%
String Value = request.getParameter("uname");
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","ai
shu");
Statement stm=con.createStatement();
String Query = "Delete from supereg where uname='"+Value+"'";
int result = stm. executeUpdate(Query);
if( result > 0)
{
out.println("Deleted from the database sucessfully");
40
RequestDispatcher rd=request.getRequestDispatcher("delsuper.jsp");
rd.include(request,response);
}
else
{
out.println("Deletion not done..please try again");
RequestDispatcher
rd=request.getRequestDispatcher("showsuper.jsp");
rd.include(request,response);
}
}
catch(Exception e)
out.println("Error"+e+" please try again");
}
%>
</body>
</html>
41
8. SYSTEM TESTING
7. TESTING
Testing is a process of executing a program to find out errors. If testing is
conducted successfully, it will uncover all the errors in the software. Any testing
can be done basing on two ways:
7.1.1 WHITE BOX TESSTING
It is a test case design method that uses the control structures of the
procedural design to derive test cases. using this testing a software Engineer can
derive the following test cases:
42
Exercise all the logical decisions on either true or false sides. Execute all
loops at their boundaries and within their operational boundaries. Exercise the
Internal data structures to assure their validity.
By black box testing we derive a set of test cases that satisfy the following criteria:
Test cases that reduce by a count that is greater than one, the number of additional test
cases that must be designed to achieve reasonable testing.
Test cases that tell us something about the presence or absence of classes of errors
rather than errors associated only with a specific test at hand.
43
admin
RS2 The system should ‘lock’ Desirable This feature will Since the
the login id if wrong improve the robustness application is
password is entered 3 of the application going to be
times in a row used only by
the employees
of the
organization,
this feature is
not essential.
45
46
7. OUTPUT SCREENS
47
7.3 DEALER REGISTRATION PAGE
48
7.5 PRODUCT LIST PAGE
49
7.6 ADD PRODUCT PAGE
50
7.8 ADMIN PAGE
51
7.10 SUPERVISOR PAGE
52
8. CONCLUSION
53
8. Conclusion
The Information System For trade Tax is an intranet based application that can be
accessed throughout the organization or a specified group or department. This system
can be used to automate the work flow of leave applications and their approvals. There
are features like e-mail notifications, cancellation of leave ,automatic approval of leave,
report generators etc in this system. This system is important to any kind of an
organization .
54
9. BIBILIOGRAPHY
9. Bibiliography
55
Books
Software Engineering
-Pressmen
Web programming
-Chris Bates
SITES
· www.javadevelopers.com
· www.w3schools.com
· www-128.ibm.com/developerworks/web/library/wa-dbdsgn1.html
· www-128.ibm.com/developerworks/webservices/library/co-
design6.html
56