Sie sind auf Seite 1von 65

Information System for Trade tax

Chapter 1: Introduction 1.1 Purpose of the Project


Software Requirement Specification will assist the potential users to determine if the software specified meets their needs or how the software must be modified to meet their needs. And the complete descriptions of the functions which are being carried out in the present system are to be performed by the software specified in the SRS.

1.2 Overview of the Project


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 Returns Process System: Takes on the task of returns filing and monitoring of defaulters: Periodicity of returns filing can be fixed / changed at any time with a minimum of effort Monitors filing of returns under different acts (VAT, SAT, ET, CST) Effectively generates a defaulter list for monitoring dealers who have not filed returns Displays the list of defaulters for reminders / advance tax notices Issues revenue recovery certificates (RRC) Dealer Auditing System: Controls the assessment of the dealers registered for trade tax and central sales tax: Automatically generates and displays a list of dealers who are to be assessed Generates hearing notices for assessment Assesses dealers on the basis of the returns filed Effectively generates demand notices Monitors demand notices for compliance and generates RRCs in case of non-compliance Effectively generates refund orders Adjusts payments against any other demands or payment of refunds after adjustment Reassesses dealers (on a request by the dealer or the authority)

Information System for Trade tax Arrears Recovery System: Handles the collection of arrears from dealers and non-dealers: Institutionalizes recoveries Issues demand notices under the Land and Revenue Act Issues warrants for the attachment of movable / immovable assets Maintains a record of attached dealer assets.Generates announcement notices for the auction of attached assets. Keeps records of auctions Automatically adjusts amounts in case a payment is made at any point in time Automatically de-attaches assets in case a payment is made or a case is decided in favor of the dealer Keeps a record of write-off cases 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 Professional Tax System: Caters to the registration and monitoring of dealers under the Professional Tax Act: Registers dealers under the Professional Tax Act (both as employers and persons) Generates penalty notices in case of late registration or furnishing of false information Issues amended registration certificates to dealers in cases of amendments Issues duplicate registration certificates Cancels registration when sought by an employer or person Efficiently detects unregistered employers or persons Effectively tracks dealers shifting their place of work Efficiently tracks returns filed by dealers Assesses dealers and issues demand notices or refund orders Industrial Exemption System: Deals with the exemptions given to dealers for starting new businesses: Records and updates application details Identifies dealers eligible for exemptions Provides an efficient method for verification of capping amounts and exemption periods at the time of filing returns Issues provisional / permanent certificates for exemption / deferment Monitors cases under appeal / revision

Information System for Trade tax

Chapter 2: System Analysis 2.1 Study of the system


2.1.1 Existing System and its Limitations: In early days we maintain several sets of registers. It was very time consuming and lengthy process .We needs to perform manual upgrade whenever new features are added. It may lead to waste of time and money. Limitations in Existing System : The current system is not completely complete computerized and manual system in entering Customers and faculty data and handling it. There is no centralized database maintenance There is no easy access to the particular Customers records and articles The customers cannot easily navigate through the database Information of an employee in the form of registers. If we want to retrieve information regarding their leaves and dates we have to refer to

2.1.2 Proposed System and its Advantages: 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 automated and user-friendly with the 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. Advantages over Existing System : It is completely automated system in handling the central database This system provides centralized database maintenance This system provides easy access to the particular customer account or his complete details This system provides customers to easily navigate through the application for updating and leave approval which are information displayed for preparing reports,

Information System for Trade tax more information in a most secure manner. 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. Functionality 1. The administrator Functionalities: Approve Dealer Supervisor Management View Products Reports

2. Dealer Functionalities Edit Personal Information Product Management Order Details

3. Supervisor Functionalities Product Management Personal Information Tax Management Order Management

Information System for Trade tax

2.2 Feasibility Study


Feasibility Study is a compressed capsule version of scope and objectives is confirmed and corrected and any constraint imposed on the systems are identified. Heuristics are searched as analyzed for feasibility. To yield a successful to the organization that can be obtained through efficient feasibility study. These are a number of feasibility studies to be conducted by the three equally important tests of feasibility studies are: Technical Feasibility Operational Feasibility Economical Feasibility

2.2.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. Understand the different technologies involved in the proposed system Before commencing the project, we have to be very clear about what are the technologies that are required for the development of new system. 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? 2.2.2 Operational Feasibility: Proposed projects are beneficial only if they can be turned into information systems that will meet the organizations operating requirements. Simply stated, this test of feasibility asks if the system will work when it is developed and installed. Are there major barriers to Implementation? Here are questions that will help test the operational feasibility of a project:

Information System for Trade tax Is there sufficient support for the project from management from users? If the current system is well liked and used to the extent that persons will not be able to see reasons for change, there may be resistance. Are the current business methods acceptable to the user? If they are not, users may welcome a change that will bring about a more operational and useful systems. Have the user been involved in the planning and development of the project? Early involvement reduces the chances of resistance to the system and in General and increases the likelihood of successful project. 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. 2.2.3 Economic Feasibility: Economic feasibility attempts 2 weigh the costs of developing and implementing a new system, against the benefits that would accrue from having the new system in place. This feasibility study gives the top management the economic justification for the new system. A simple economic analysis which gives the actual comparison of costs and benefits are much more meaningful in this case. In addition, this proves to be a useful point of reference to compare actual costs as the project progresses. There could be various types of intangible benefits on account of automation. These could include increased customer satisfaction, improvement in product quality better decision making timeliness of information, expediting activities, improved accuracy of operations, better documentation and record keeping, faster retrieval of information, better employee morale.

2.3 Software Requirement Specification


2.3.1 Functional Requirements: A feasibility study is a high level capsule version of the entire system analysis and design process. The study begins by classifying the problem definition. Feasibility is to determine if its worth doing. Once an acceptance problem definition has been generated, the analyst develops a logical model of the system. The system developed and installed will be of good benefit to the organization. The system can be developed and operated in the existing hardware and software infrastructure. So there is no need of additional hardware or software for the system. The system developed can reduce the cost overheads of the organization and works in very
6

Information System for Trade tax effective manner. 2.3.2 Performance Requirements: Performance is measured in terms of reports generated according to the requirements. 2.3.3 Software Requirements: Operating System Framework Langages Data Base WEB Server Tools Intel Pentium RAM (SD/DDR) Hard Disc : : : : : : : : : Windows XP/2003 Server MVC Architecture Core Java, Servlets, JSPs, JDBC, HTML etc.., Oracle 9i Tomcat 5.5v Eclipse, My Eclipse, AJAX 600 MHz or above. 1GB 30GB

2.3.4 Hardware Requirements:

Information System for Trade tax

Chapter 3: System Design


Data Flow Diagrams: Data flows are data structures in motion, while data stores are data structures. Data flows are paths or pipe lines, along which data structures travel, where as the data stores are place where data structures are kept until needed. Data flows are data structures in motion, while data stores are data structures at rest. Hence it is possible that the data flow and the data store would be made up of the same data structure. Data flow diagrams is a very handy tool for the system analyst because it gives the analyst the overall picture of the system, it is a diagrammatic approach. A DFD is a pictorial representation of the path which data takes from its initial interaction with the existing system until it completes any interaction. The diagram will describe the logical data flows dealing the movements of any physical items. The DFD also gives the insight into the data that is used in the system i.e., who actually uses it is temporarily stored. A DFD does not show a sequence of steps. A DFD only shows what the different process in a system is and what data flows between them. The following are some DFD symbols used in the project:

External entities

Process: A transaction of information that resides

within the bounds of the system to be module.

Data Flow Process Data Store: A repository of data that is to be stored for use by one or more processes may be
8 relational as simple as buffer of queue or as a

database.

Information System for Trade tax

Data Flow Diagram for Information System for Trade Tax:

Level - 0
Login
Add Del update Dealer Add Del Update Sup

Register
Approual

Administrator

Report Supervisor Payment From Dealer Generate Invoice Tax

Information System For TradeTax


Req for Admin

Log in Reg For Goods Goods and Sup Submit & Payment complaint

Dealer

Get emp Details

Supervisor

Submit emp Sal

login

Give The list

Payment, tax

Information System for Trade tax

Data Flow Diagram for Administrator:

Level - 1 Administrator
Administrator Login LogInDB DealerDB

Add, Del, Dealer

Add, del, Superviser

PaymentDB

ComplaintDB

Payment

Complaint

Administrator

10

Information System for Trade tax

Data Flow Diagram for Dealer:

Dealer
Dealer Register

RegisterDB

ApprovalDB

APProval

login

LogInDB

GoodsDB

ShippingDB Submit And Payment 2

Req From Goods

Goods Shipping

PaymentDB

ComplaintDB

Complaint

Dealer

11

Information System for Trade tax

Data Flow Diagram for Supervisors:

Supervisors
Supervisor Login

LoginDB

AdminDB

Req From Admin

Give The List

ListDB

PaymentDB

DetailsDB Submit And Emp sal

Tax Payment

Get Employee Details

SalDB

Supervisor

12

Information System for Trade tax

3.2 UML Diagrams:


3.2.1 Use Case Diagrams: Use Case Diagram for Administrator:

Use Case Diagrams


1.Administrator
Login Add,Del,up dealer Add,Del,up Sup View Report

Administrator
Payment

Generate

13

Information System for Trade tax

Use Diagram for Dealer:

2.Dealer
Register Approval Log in Req For goods Goods Shipper Submit

Dealer

Complaint

14

Information System for Trade tax

Use Case Diagram for Supervisor:

3.Supervisor

Login Req For Admin

Give The List

Tax Payment

Supervisor
Get Emp det

Submit

15

Information System for Trade tax

3.2.2 Activity Diagrams: Activity Diagram for Administrator:

Activity Diagram 1.Administrator


No Log in

Start

Yes

Add, Delete, Update Dealer

Add, Delete, Update Supervisor

Report Supervisor

Payment Dealer

Log Out

Stop

16

Information System for Trade tax Activity Diagram for Dealer:

2.Dealer

Start

No Log in Yes Register Request For Goods Approval Shipping Details Payment Submission Complaint And Suggestions

Log Out

Stop

Activity Diagram for Supervisor:


17

Information System for Trade tax

3.Supervisor

Start

No Login Yes

Request From Administrator

Give The List

Tax Payment

Get Employee Details

Submit Employee Details

LogOut

Stop

3.2.3 Sequence Diagrams

18

Information System for Trade tax Sequence Diagrams for Administrator:

Sequence
Log in Dealer Supervisor Report Payment Generate

Log in

Add, Update Dealer Add,del Supervisor

Administrator

View Report Payment

Generate

Sequence Diagrams for Dealer:

19

Information System for Trade tax

Register Approval

Log in

For Goods Goods & Sup Submit

Register Approv

Dealer

Log in

For Goods Goods And Sup

Submit

Sequence Diagrams for Supervisor:

20

Information System for Trade tax

Log in Administrator Give The List Payment Emp Details Submit

Login Admin Give The List

Supervisor

Payment

Emp Details

Submit

3.2.4 Class Diagram:

21

Information System for Trade tax

Class Diagram Administrator


- Logid - password + Name 1*

Dealer
- Logid - password

-CreateDealer() - CreateSupervisor() -AddDealer() -DeleteDealer() -AddSupervisor() -DeleteSupervisor() -Report() -payment() -Generator()

*
*

Supervisor
- Logid - password

-ReqForAdmi() -GiveTheList() -TaxPayment() -GetEmpDetails() -SubmitEmpSal()

- Register() - Approval() - reqforgoods() - GoodsShipper() - Submit() - Complaint

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

Information System for Trade tax 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. E-R Diagram for Administrator:

E R Diagram : 1.Administrator
Invoice Tax Amount

Tax-name
Assigned By

Super-id

Super-name

Submit

Payment

Tax

Administrator

Response

Supervisor

Dealer-Id

Dealer-name

maintains

Super-id

Super-name

Complaints Payment Dealer Payment Dealer-id

Report

E-R Diagram for Dealer:

23

Information System for Trade tax

2.Dealer

Tax-name

Tax-id
Tax

Assigned by

Dealer-name

Dealer-id view

Product-id

Dealer

Order

products

Payment

Report

Requests

Amount

Product-name

payment
supervisor

Super-id

Tax

Super-name

E-R Diagram for Supervisor:

24

Information System for Trade tax

3.supervisor

Super-name

Super-id

Tax-id

Tax-name

Supervisor

creates

tax

payment

Tax

assigned by

Chapter 4: Coding and Implementation


4.1 Technologies Used:
4.1.1 HTML(Hyper Text Markup Language):

25

Information System for Trade tax HTML, an initialism of Hypertext Markup Language, is the predominant markup language for web pages. It provides a means to describe the structure of text-based information in a document by denoting certain text as headings, paragraphs, lists, and so on and to supplement that text with interactive forms, embedded images, and other objects. HTML is written in the form of labels (known as tags), surrounded by angle brackets. Basic HTML Tags: <! ---> Specifies comments Creates hypertext links Formats text as bold Formats text in large font. Contains all tags and text in the HTML document

<A>.</A> <B>.</B>

<BIG>.</BIG> <BODY></BODY> <DD></DD> <DL>...</DL> <FONT></FONT> <FRAME>...</FRAME> <HEAD>...</HEAD> <HR>...</HR>

<CENTER>...</CENTER> Creates text Definition of a term Creates definition list Formats text with a particular font Defines a particular frame in a set of frames

<FORM>...</FORM>Encloses a fill-out form <H#></H#>Creates headings of different levels( 1 6 ) Contains tags that specify information about a document Creates a horizontal rule

<HTML></HTML> Contains all other HTML tags <META>...</META> Provides meta-information about a document <SCRIPT></SCRIPT> <TABLE></TABLE> <TD></TD> <TR></TR> <TH></TH> Advantages: A HTML document is small and hence easy to send over the net. It is small because it does not include formatted information. HTML is platform independent. Contains client-side or server-side script Creates a table

Indicates table data in a table Designates a table row Creates a heading in a table

26

Information System for Trade tax HTML tags are not case-sensitive.

4.1.2 JavaScript: JavaScript is a script-based programming language that was developed by Netscape Communication Corporation. JavaScript was originally called Live Script and renamed as JavaScript to indicate its relationship with Java. JavaScript supports the development of both client and server components of Web-based applications. On the client side, it can be used to write programs that are executed by a Web browser within the context of a Web page. On the server side, it can be used to write Web server programs that can process information submitted by a Web browser and then update the browsers display accordingly 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>. <SCRIPT LANGUAGE = JavaScript> JavaScript statements </SCRIPT> Here are a few things we can do with JavaScript: Validate the contents of a form and make calculations. Add scrolling or changing messages to the Browsers status line. 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. Detect installed plug-ins and notify the user if a plug-in is required. We can do much more with JavaScript, including creating entire application.

Advantages JavaScript can be used for Sever-side and Client-side scripting.

27

Information System for Trade tax It is more flexible than VBScript. JavaScript is the default scripting languages at Client-side since all the browsers supports it. XML eXtensible Markup Language: XML is a markup language for documents containing structured information. Structured information contains both content (words, pictures, etc.) and some indication of what role that content plays (for example, content in a section heading has a different meaning from content in a footnote, which means something different than content in a figure caption or content in a database table, etc.). Almost all documents have some structure. A markup language is a mechanism to identify structures in a document. The XML specification defines a standard way to add markup to documents. The Extensible Markup Language (XML) is a general-purpose markup language. It is classified as an extensible language because it allows its users to define their own tags. Its primary purpose is to facilitate the sharing of structured data across different information systems, particularly via the Internet. It is used both to encode documents and serialize data. The following is a well-formed XML document: <book>This is a book.... </book> The root element can be preceded by an optional XML declaration. This element states what version of XML is in use (normally 1.0); it may also contain information about character encoding and external dependencies. <?xml version="1.0" encoding="UTF-8"?> The specification requires that processors of XML support the pan-Unicode character encodings UTF-8 and UTF-16 (UTF-32 is not mandatory). The use of more limited encodings, such as those based on ISO/IEC 8859, is acknowledged and is widely used and supported. Comments can be placed anywhere in the tree, including in the text if the content of the element is text or #PCDATA. XML comments start with <!-- and end with -->. Two dashes (--) may not appear anywhere in the text of the comment. 4.1.3 Java Technology: Initially the language was called as oak but it was renamed as Java in 1995.

28

Information System for Trade tax The primary motivation of this language was the need for a platform-independent (i.e., architecture neutral) language that could be used to create software to be embedded in various consumer electronic devices. Java is a programmers language. Java is cohesive and consistent. Except for those constraints imposed by the Internet environment, Java gives the programmer, full control. Finally, Java is to Internet programming where C was to system programming.

Importance of Java to the Internet: Java has had a profound effect on the Internet. This is because; Java expands the Universe of objects that can move about freely in Cyberspace. In a network, two categories of objects are transmitted between the Server and the Personal computer. They are: Passive information and Dynamic active programs. The Dynamic, Selfexecuting programs cause serious problems in the areas of Security and probability. But, Java addresses those concerns and by doing so, has opened the door to an exciting new form of program called the Applet. Java can be used to create two types of programs: Applications and Applets : An application is a program that runs on our Computer under the operating system of that computer. It is more or less like one creating using C or C++. Javas ability to create Applets makes it important. An Applet is an application designed to be transmitted over the Internet and executed by a Java compatible web browser. An applet is actually a tiny Java program, dynamically downloaded across the network, just like an image. But the difference is, it is an intelligent program, not just a media file. It can react to the user input and dynamically change. Features of Java Security: Every time you that you download a normal program, you are risking a viral infection. Prior to Java, most users did not download executable programs frequently, and those who did scan them for viruses prior to execution. Most users still worried about the possibility of infecting their systems with a virus. In addition, another type of malicious program exists that must be guarded against. This type of program can gather private information, such as credit card numbers, bank account balances, and passwords. Java
29

Information System for Trade tax answers both these concerns by providing a firewall between a network application and your computer. Portability: For programs to be dynamically downloaded to all the various types of platforms connected to the Internet, some means of generating portable executable code is needed .As you will see, the same mechanism that helps ensure security also helps create portability. Indeed, Javas solution to these two problems is both elegant and efficient. The Byte code: The key that allows the Java to solve the security and portability problems is that the output of Java compiler is Byte code. Byte code is a highly optimized set of instructions designed to be executed by the Java run-time system, which is called the Java Virtual Machine (JVM). That is, in its standard form, the JVM is an interpreter for byte code. Translating a Java program into byte code helps makes it much easier to run a program in a wide variety of environments. The reason is, once the run-time package exists for a given system, any Java program can run on it. Although Java was designed for interpretation, there is technically nothing about Java that prevents on-the-fly compilation of byte code into native code. Sun has just completed its Just In Time (JIT) compiler for byte code. When the JIT compiler is a part of JVM, it compiles byte code into executable code in real time, on a piece-by-piece, demand basis. It is not possible to compile an entire Java program into executable code all at once, because Java performs various run-time checks that can be done only at run time. The JIT compiles code, as it is needed, during execution. Java Virtual Machine (JVM): Beyond the language, there is the Java virtual machine. The Java virtual machine is an important element of the Java technology. The virtual machine can be embedded within a web browser or an operating system. Once a piece of Java code is loaded onto a machine, it is verified. As part of the loading process, a class loader is invoked and does byte code verification makes sure that the code thats has been generated by the compiler will not corrupt the machine that its loaded on. Byte code verification takes place at the end of the compilation process to make sure that is all accurate and correct. So byte code

30

Information System for Trade tax verification is integral to the compiling and executing of Java code. Overall Description:

Java Source

Java byte code

JavaVM

Java

.Class

Picture showing the development process of JAVA Program Java programming uses to produce byte codes and executes them. The first box indicates that the Java source code is located in a. Java file that is processed with a Java compiler called javac. The Java compiler produces a file called a. class file, which contains the byte code. The .Class file is then loaded across the network or loaded locally on your machine into the execution environment is the Java virtual machine, which interprets and executes the byte code. Java Architecture: Java architecture provides a portable, robust, high performing environment for development. Java provides portability by compiling the byte codes for the Java Virtual Machine, which is then interpreted on each platform by the run-time environment. Java is a dynamic system, able to load code when needed from a machine in the same room or across the planet. Compilation of code: When you compile the code, the Java compiler creates machine code (called byte code) for a hypothetical machine called Java Virtual Machine (JVM). The JVM is supposed to execute the byte code. The JVM is created for overcoming the issue of portability. The code is written and compiled for one machine and interpreted on all machines. This machine is called Java Virtual Machine.

31

Information System for Trade tax

Compiling and interpreting Java Source Code: Simple Java was designed to be easy for the Professional programmer to learn and to use effectively. If you are an experienced C++ programmer, learning Java will be even easier. Because Java inherits the C/C++ syntax and many of the object oriented features of C++. Most of the confusing concepts from C++ are either left out of Java or implemented in a cleaner, more approachable manner. In Java there are a small number of clearly defined ways to accomplish a given task. Object-Oriented Java was not designed to be source-code compatible with any other language. This allowed the Java team the freedom to design with a blank slate. One outcome of this was a clean usable, pragmatic approach to objects. The object model in Java is simple and easy to extend, while simple types, such as integers, are kept as high-performance nonobjects. Robust The multi-platform environment of the Web places extraordinary demands on a program, because the program must execute reliably in a variety of systems. The ability to create robust programs was given a high priority in the design of Java. It checks your code at compile time and run time.Java virtually eliminates the problems of memory management and de-allocation, which is completely automatic. In a well-written Java program, all run time errors can and should be managed by your program.

32

Information System for Trade tax

Source Code .. .. ..

PC Compiler
Macintosh Compiler

Java Byte code (Platform Independen t)

Java Interpreter (PC)

Java Interpreter (Macintosh)

SPARC Compiler

Java Interpreter (Spare)

During run-time the Java interpreter tricks the byte code file into thinking that it is running on a Java Virtual Machine. In reality this could be a Intel Pentium Windows 95 or SunSARC station running Solaris or Apple Macintosh running system and all could receive code from any computer through Internet and run the Applets. Java Collections: A collection sometimes called a container is simply an object that groups multiple elements into a single unit. Collections are used to store, retrieve, manipulate, and communicate aggregate data. Typically, they represent data items that form a natural group, such as a poker hand (a collection of cards), a mail folder (a collection of letters), or a telephone directory (a mapping of names to phone numbers). If you've used the Java programming language or just about any other programming language you're already familiar with collections. Collection implementations in earlier (pre-1.2) versions of the Java platform included Vector, Hashtable, and array. However, those earlier versions did not contain a collections framework. A collections framework is a unified architecture for representing and manipulating collections. All collections frameworks contain the following:
33

Information System for Trade tax Interfaces: These are abstract data types that represent collections. Interfaces allow collections to be manipulated independently of the details of their representation. In object-oriented languages, interfaces generally form a hierarchy. Implementations: These are the concrete implementations of the collection interfaces. In essence, they are reusable data structures. Algorithms: These are the methods that perform useful computations, such as searching and sorting, on objects that implement collection interfaces. The algorithms are said to be polymorphic: that is, the same method can be used on many different implementations of the appropriate collection interface. In essence, algorithms are reusable functionality. Benefits of the Java Collections Framework: The Java Collections Framework provides the following benefits: Reduces programming effort: By providing useful data structures and algorithms, the Collections Framework frees you to concentrate on the important parts of your program rather than on the lowlevel "plumbing" required to make it work. By facilitating interoperability among unrelated APIs, the Java Collections Framework frees you from writing adapter objects or conversion code to connect APIs. Increases program speed and quality: This Collections Framework provides high performance, high-quality implementations of useful data structures and algorithms. The various implementations of each interface are interchangeable, so programs can be easily tuned by switching collection implementations. Because you're freed from the drudgery of writing your own data structures, you'll have more time to devote to improving programs' quality and performance. Allows interoperability among unrelated APIs: The collection interfaces are the vernacular by which APIs pass collections back and forth. If my network administration API furnishes a collection of node names and if your GUI toolkit expects a collection of column headings, our APIs will interoperate seamlessly, even though they were written independently. Reduces effort to learn and to use new APIs: Many APIs naturally take collections on input and furnish them as output. In the past, each such API had a small sub-API devoted to manipulating its collections. There
34

Information System for Trade tax was little consistency among these ad hoc collections sub-APIs, so you had to learn each one from scratch, and it was easy to make mistakes when using them. With the advent of standard collection interfaces, the problem went away. Reduces effort to design new APIs: This is the flip side of the previous advantage. Designers and implementers don't have to reinvent the wheel each time they create an API that relies on collections; instead, they can use standard collection interfaces. Fosters software reuse: New data structures that conform to the standard collection interfaces are by nature reusable. The same goes for new algorithms that operate on objects that implement these interfaces. The core collection interfaces: A Set is a special kind of Collection, a SortedSet is a special kind of Set, and so forth. Note also that the hierarchy consists of two distinct trees a Map is not a true Collection.

Note that all the core collection interfaces are generic. For example, this is the declaration of the Collection interface. public interface Collection<E>... 4.1.4 JDBC JDBC is a front-end tool for connecting to a server and is similar to ODBC however, JDBC can connect only Java client and it uses ODBC for the connectivity. JDBC is essentially a low level application programming interface. It is called a low level API since any data manipulation, storage and retrieval has to be done by the program itself. Some tools that Provide a higher level of abstraction is expected shortly. The next question is why we need JDBC, once we have ODBC on hand. We can use the ODBC to connect to all the databases and ODBC is a proven technology. Problem for doing this is ODBC gives a C language API, which uses pointer extensively, since Java open JDBC to suit its needs.

35

Information System for Trade tax Jdbc Driver Types: There are various types of driver, identified the sun such that each one has some unique features and facilitates a connection to the database. JDBC drivers fit into of four categories: The JDBC-ODBC bridge provides JDBC access via most ODBC drivers. Note that some ODBC binary code and in may cases database client code must be loaded on each client machine that uses this diver so this kind of driver is most application on a corporate network or for application server code written in Java in a 3-tier architecture. A native-API partly-Java driver converts JDBC calls into on the client API for Oracle Sybase Informix DB2 or other DBMS. Note that, like the bridge driver this style of driver requires that some binary code be loaded on each client machine. A net-protocol all-Java driver translates JDBC calls into a DBMS-independent net protocol which is then translated, to a DBMS protocol by a server. This net server middle aware is able to connect its all Java client to many different databases. The specific protocol used depends on the vendor. In general this is the most flexible JDBC alternative. It is likely that all vendors of this solution will provide suitable for intranet requirements for security, access through firewalls, etc. that the web imposes several vendors are adding JDBC drivers to their existing database middle aware products. A native protocol driver

Jdbc Architecture: JDBC architecture is as follows 1. JDBC Driver Manager 2. JDBC Diver 3. JDBC-ODBC Bridge 4. Application JDBC Driver Manager Function of the driver manager is to find out available driver in the system and connect the application to the appropriate database, whenever a connection is requested. However, to help the driver manager identify different types of drivers, each driver should be registered with the driver manager.

36

Information System for Trade tax

JDBC Driver: Function of the JDBC driver is to accept the SQL calls from the application and convert them into native calls to the database,. However, in this process it may take help from some other drivers or even servers, which depends on the type of JDBC driver we are using. It also is possible that the total functionally of the database server could be built into the driver itself. JDBC - ODBC Bridge: Sun soft provides a special JDBC Driver called JDBC-ODBC bridge which can be used to connect any existing database, that is ODBC complaint. Servlet and JSP technology has become the technology of choice for developing online stores, interactive Web applications, and other dynamic Web sites. Why? This chapter gives a high-level overview of the reasons for its popularity. Later chapters specific details on programming techniques. A Servlets Job: Servlet are Java programs that run on applications servers. Acting as a middle layer between requests coming from web browsers or other HTTP clients and databases or applications on the HTTP server. Their job is to perform the following tasks. Read the explicit data sent by the client: The end user normally enters this data in an HTTP from on a web page. However the data could also come from an applet or a custom HTTP client program. Chapter 4 discusses how servlet read this data. Read the implicit HTTP request data sent by the browser: The shows a single arrow going from the client to the web server (the layer where servlets and JSP execute), but there are really two varieties of data: the explicit data that the end user enters in a from and the behind-the scenes HTTP information. Both varieties are critical. The HTTP information includes cookies, information about media types and compression schemes the browser understands and so forth it is discussed in chapter 5. Generate the results: This process may require talking to a database, executing an RMI or EJB call, invoking a web service, or computing the response directly your real data may be in a relational database. Fine. But your database probably doesnt speak HTTP or return results in HTML, so the web browser cant talk directly to the database. Even if it could, for security reasons, you probably would not want it to.
37

Information System for Trade tax

The same argument applies to most other applications. You need the web middle layer to extract the incoming data from the HTTP stream, talk to the application, and embed the result inside a document. Send the explicit data (i.e., the document )to the client. This document can be sent in a variety of formats including text (HTML or XML), binary (GIF images), or even a compressed format like zip that is layered on top of some other underlying format. But, HTML is by far the most common format, so an important, servlet / JSP task is to wrap the results inside of HTML. Send the implicit HTTP response data: The shows a single arrow going from the web middle layer (the servlet or JSP page) to the client. But there are really two varieties of data sent: the document itself and the behind-the scenes HTTP information. Again both varieties are critical to effective development. Sending HTTP response data involves telling the browser or other client what type of document is being returned (e.g., HTTP), setting cookies and caching parameters, and other such tasks. Features of JSP JSP provides an attractive alternative to other dynamic scripting language by offering the following features: Platform independence: The use of adds versatility to a web application by enabling its execution on any computer. Enhanced performance: The compilation process in JSP produces faster results or output. Separation of logic from display: The use of JSP permits the HTML-specific static content and a mixture of HTML, Java, and JSP-specific dynamic content to be placed in separate fillies. Ease of administration: The use of JSP eliminates the need for high-level technical expertise, thereby helping web developers, content creators, and content managers to work together and develop Java-based applications in less time and with less effort.

38

Information System for Trade tax

Ease of use: All JSP applications run on major web server and operating systems, including Microsoft IIS, Netscape enterprise server, I Planet web server, and apache web server. These applications are available on Windows NT, windows 2000, and solaris7. Competing Products across Platforms: Competing products include active server pages (ASP), hypertext pre processor(PKP) and Java script. JSP versus ASP: ASP is the immediate competing technology from Microsoft. The dynamic content of JSP is written in Java, in contrast to that of ASP, which is written using an ASP-specific language, such as VBScript. As a result, complex applications can use the power of Java to result and embed Java components in JSP applications, second, JSP is portable to other operating systems and servers in contrast to the allegiance of ASP to windows NT/2000and IIS. JSP versus PHP: PHP is similar to ASP and JSP to a certain extent. PHP is a free, open-source, HTML-embedded, server-side scripting language, with basic HTML knowledge, however, a VBScript programmer can write ASP applications and a Java programmer can create JSP applications, whereas PHP requires learning an entirely new language, second by virtue if the power of Java, JSP has access to an extensive API for networking, database access, and objects distribution. JSP Objects & its Scopes: In JSP there are two types of objects. Implicit objects Explicit objects Implicit objects are automatically created. Explicit objects are created using actions.

Whenever a request has been made for a JSP PAGE, JSP page will create two types of objects. They are: Implicit objects Explicit objects

39

Information System for Trade tax Implicit objects are automatically created by the JSP web developers can use this objects for their processing. Explicit objects are created thought actions. Scripting code is used to create these explicit objects. Every explicit object has some visible attribute. Scripting elements can access the explicit objects thought scripting-level variables. JSP defines several scopes for JSP objects. Objects Scopes: JSP defines several scopes for objects. Scopes are used to indicate the context in which the bean should be made available. Four types of scopes. They are: Page Request Application Session

While process the request, the JSP page can create and /or the some Java objects. Scopes are used to indicate the context in which the dean should be made available in JSP there are four scopes are available. They are: Page: It is the default scopes for all the Java objects. It is used to indicate that the objects are only available on the current page. Once the response is sent back or the request is forwarded somewhere else all the object reference, which has the page scope, will be released object that contains Page scope is stored in the page Content object of the current page. Request: The request scope is used to indicate that the objects are only available for the current client request. If the request is forwarded to a resource in the same runtime, the Object is still available. Once the request is processed, all the object reference, which has the request scope, will be released. Objects that contain request scope will be released. Object references that contain request scope are stored in the request Object. Session: The session scope indicates that the available to all pages during the life of the current session. All references to the objects shall be released after the associated session ends. References to objects with session scope are stored in the session objects associated

40

Information System for Trade tax with the page activation. Application: The application scope indicates that it is available to all pages that share the same context object references which contain the application scope will be released when the runtime environment reclaims the servlet context objects references that contain the application scope are stored are stored in the application objects associated with the page activation. Directives and Actions: JSP elements can be directives or actions. Directives elements provide global information for the translation phase. Actions elements provide for the request-processing phase. New action can be created from the tag extension mechanism. JSP: Elements can be directives or actions. Directive elements are used to provide global information, which is not dependent for any specific received by the JSP page. For example directive elements can be used to include the external file inside the JSP PAGE. Action elements provide information, which is dependent on the details of the specific request received by the JSP page. Directive elements provide information for the compilation/translation phase. Action can create some objects and may make available to the scripting element. Action elements follow the syntax of XML elements. JSP contains a tag extension mechanism that enables the addition of new actions. Because of the mechanism JSP can b easily portable. Actions can be customized to provide access to the attribute values and to their body. Custom action be nested and their bodies can include scripting elements. ODBC: Two distinct ways to access ODBC data sources with DAO the Microsoft Jet database engine DBC direct Microsoft jet provides a broad range of functionality. It handles many of the details of establishing and managing connection, translating queries into a form acceptable to the server, and managing returned data in some cases, if you want to bypass the micro soft Jet database engine and use DAO to make calls directly to the ODBC driver manager. This functionality is available through ODBC Direct.

41

Information System for Trade tax

The following steps offer a "quick start" to accessing ODBC data: Use the ODBC data source manager in the windows control panel ODBC data source and assign it a data Source name (DSN) In your Visual Basic code, set an ODBC connect string that references the data source. The connect string is used to establish a connection to the data source Create a new table def object and set its connect string to the in step two. Append the table to the table defs collection Open a record-set object on the linked table. This record-set 7. Object contains data in your OBDC data source and you can manipulate it using the properties and methods of a record-set object value specified to setup your

42

Information System for Trade tax

Chapter 5: Screenshots & Testing 5.1 Screenshots:

Screen 5.1: Trade Tax Homepage

43

Information System for Trade tax Screen 5.2: Registration Page

Screen 5.3: Login Page

Screen 5.4: Admin Login

44

Information System for Trade tax

Screen 5.5: Administrator Login

Screen 5.6: Dealer Approval

45

Information System for Trade tax

Screen 5.7: Dealer Details

Screen 5.8: Dealer Approval

46

Information System for Trade tax

Screen 5.9: Add or Delete Supervisor

Screen 5.10: Submit Details

47

Information System for Trade tax

Screen 5.11: Delete Supervisor

Screen 5.12: Delete Approval

48

Information System for Trade tax

Screen 5.13: Order Report

Screen 5.14: Dealer Login

49

Information System for Trade tax

Screen 5.15: Dealer Login Details

Screen 5.16: Update Dealer

50

Information System for Trade tax

Screen 5.17: Dealer Approval

Screen 5.18: Submit Order

51

Information System for Trade tax

Screen 5.19: Order Report

Screen 5.20: Supervisor Login

52

Information System for Trade tax

Screen 5.21: Supervisor Login Details

Screen 5.22: Add or View Product

53

Information System for Trade tax

Screen 5.23: Add a Product

Screen 5.24: Dealer Approval

54

Information System for Trade tax

Screen 5.25: Updating Details

Screen 5.26: Tax Management

55

Information System for Trade tax

Screen 5.27: Add a Tax Details

Screen 5.28: Dealer Approval

56

Information System for Trade tax

Screen 5.29: Unit Details

Screen 5.30: Error Message

57

Information System for Trade tax

Screen 5.31: Order Management

Screen 5.32: Order Details

58

Information System for Trade tax

Screen 5.33: Order Management Status

59

Information System for Trade tax

5.2 Testing:
Software testing is a critical element of software quality assurance and represents the ultimate review of specification, design and coding. Testing is the exposure of the system to trial input to see whether it produces correct output. 5.2.1 Testing Phases: Software testing phases include the following: Test activities are determined and test data selected. The test is conducted and test results are compared with the expected There are various types of Testing: Unit Testing: Unit testing is essentially for the verification of the code produced during the coding phase and the goal is test the internal logic of the module/program. In the Generic code project, the unit testing is done during coding phase of data entry forms whether the functions are working properly or not. In this phase all the drivers are tested they are rightly connected or not. Integration Testing: All the tested modules are combined into sub systems, which are then tested. The goal is to see if the modules are properly integrated, and the emphasis being on the testing interfaces between the modules. In the generic code integration testing is done mainly on table creation module and insertion module. System Testing: It is mainly used if the software meets its requirements. The reference document for this process is the requirement document. Acceptance Testing: It is performed with realistic data of the client to demonstrate that the software is working satisfactorily. In the Generic code project testing is done to check whether the Creation of tables and respected data entry was working successfully or not. 5.2.2 Testing Methods: 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:

Results:

60

Information System for Trade tax White Box Testing: 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: 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. Black Box Testing: It is a test case design method used on the functional requirements of the software. It will help a software engineer to derive sets of input conditions that will exercise all the functional requirements of the program. Black Box testing attempts to find errors in the following categories: Incorrect or missing functions Interface errors Errors in data structures Performance errors Initialization and termination errors 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. Test Approach: Testing can be done in two ways: Bottom up approach Top down approach Bottom up approach: Testing can be performed starting from smallest and lowest level modules and proceeding one at a time. For each module in bottom up testing a short program executes the module and provides the needed data so that the module is asked to perform the way it will when embedded with in the larger system. When bottom level modules are tested

61

Information System for Trade tax attention turns to those on the next level that use the lower level ones they are tested individually and then linked with the previously examined lower level modules. Top down approach: Following is a template for the RS document. Some example requirements are entered in to it to show how to use the template. Make sure that you enter even the smallest/most trivial requirements also. That would help in validating the system during testing. This type of testing starts from upper level modules. Since the detailed activities usually performed in the lower level routines are not provided stubs are written. A stub is a module shell called by upper level module and that when reached properly will return a message to the calling module indicating that proper interaction occurred. No attempt is made to verify the correctness of the lower level module. Requirement specification Testing Phase: No. Essential Description of the or Requirement Desirable RS1 The system should have a Essential A login box should login appear when the system is invoked. RS2 The system should lock Desirable the login id if wrong password is entered 3 times in a row Requirement Remarks

The logins are assigned by the mailadmin This feature will Since the improve the robustness application is of the application going to be used only by the employees of the organization, this feature is not essential. However, if time is there, this will be implemented.

62

Information System for Trade tax

Chapter 6: 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.Information System For Trade Tax can further be expanded to support Mail Server attachments.

63

Information System for Trade tax

Chapter 7: Future Enhancements


It is not possible to develop a system that makes all the requirements of the user. User requirements keep changing as the system is being used. Some of the future enhancements that can be done to this system are: As the technology emerges, it is possible to upgrade the system and can be adaptable to desired environment. Because it is based on object-oriented design, any further changes can be easily adaptable. Based on the future security issues, security can be improved using emerging technologies. Attendance module can be added sub admin module can be added

64

Information System for Trade tax

Bibliography:
Books: The Complete Reference JAVA2 :Patric Naughton Herebet Schildt. Internet & World Wide Web :H.M. Deitel , P.J Deitel , T.R. Nieto . JAVA Data base Programming with JDBC :Pratik Patel, Karl Moss. Software Engineering :Pressmen Referred 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

65

Das könnte Ihnen auch gefallen