foriegn trading system

Upload: thebhas1954

Post on 07-Jan-2016

258 views

Category:

Documents


7 download

DESCRIPTION

description

TRANSCRIPT

EX.NO:

DATE: FOREIGN TRADING SYSTEM AIM To design a project Foreign Trading System using Rational Rose Software and to implement the software in Visual Basic

PROJECT ANALYSIS AND PROJECT PLANNING

The initial requirements to develop the project about the mechanism of the Foreign

Trading System is bou gh t from the trader. The requirements are analyzed and refined which

enables the an alyst ( administrator) to efficiently use the Foreign Trading System.The

complete project analysis is developed after the whole project analysis explaining about the

scope and the project statement is prepared. PROBLEM STATEMENT The steps involved in Foreign Trading System are: The forex system begins its process by getting the username and password from the trader. After the authorization permitted by the administrator, the trader is allowed to perform the sourcing to know about the commodity details. After the required commodities are chosen, the trader places the order.

The administrator checks for the availability for the required commodities and updates it in the database. After the commodities are read y for the trade, the trader pays the amount to the administrator. The administrator in turn provides the bill by receiving the amount and updates it in the database. The trader logouts after the confirmation message has been received. SOFTWARE REQUIREMENT SPECIFICATION SNO SPECIFICATION 1 INTRODUCTION 2 OBJECTIVE 3 OVERVIEW 4 GLOSSARY 5 PURPOSE 6 SCOPE 7 FUNCTIONALITY 8 USABILITY 9 PERFORMANCE 10 RELIABILITY 11 FUNCTIONAL REQUIREMENTS 1. INTRODUCTION International trade is ex change of capital, goods, and services across international

borders or territories. In most countries, it represents a significant share of gross domestic

product (GDP). While international trade has been present throughout much of history (see

Silk Road, Amber Road ), its economic, social, and political importance has been on the rise

in recent centuries. Industrialization, advanced transportation, globalization, multinational corporations, and outsourcing are all having a major impact on the international trade system. Increasing

international trade is crucial to the continuance of globalization. Without international trade,

nations would be limited to the goods and services produced within their own borders. 2. OBJECTIVE

The main objective of Foreign Trading System is to make the traders to do trading

process easily through online as the forex is open 24 hours a day. 3. OVERVIEW

The overview of the project is to design an online tool for the foreign trading process

and it oversees the implementation , administration and operations covered in foreign trade.

4. GLOSSARY TERM DESCRIPTION TRADER Person who trades for the

commodities. One who coordinates the entire

trading process. ADMINISTRATOR All the transaction details are stored

here. DATABASE READER Person who is viewing the website. The traders and the viewers are the

users. USER This software specification documents

full set of features and function for

foreign trading system. SOFTWARE REQUIREMENT

SPECIFICATION 5. PURPOSE The primary purpose of the forex is to assist international trade and investment, by allowing businesses to convert one currency to another currency. That is, In a typical foreign

exchange transaction, a trader purchases a quantity of one curren cy by paying the quantity of

another currency. 6. SCOPE The are a lot of advantages in Forex Trading as compared to many other financial trading ,like futures or stock trading.The Forex market is open 24 hour a day.Being the

market available 24 hours a day,this gives the trader to choose which time they would like to

trade.It requires only minimum beginning capital to start the Forex trade.Forex Trading has

outstanding liquidity as it never closes. 7. FUNCTIONALITY Transfer purchasing power between countries. Obtain credit for international trade

transactions. Minimize exposure to the risks of exchange rate ch anges.

8. USABILITY The interface to mak e the trader acess the system will be efficient. 9. PERFORMANCE

The capability that the system performs on the whole will be efficient and reliable

without any error occurrence. 10. RELIABILITY The system should be able to maintain its function throughout the transactions in the future. 11. FUNCTIONALITY REQUIREMENTS

Functional requirements refers to the functionality of the system. The services that

are provided to the trader who trades.

UML DIAGRAMS

The following UML diagrams describe the process involved in the foreign trading

system. Use case diagram Class diagram Sequence diagram Collaboration diagram State chart diagram Activity diagram Component diagram Deployment diagram Package diagram

A use case diagram purpose is to present a graphical overview of the functionality USE CASE DIAGRAMprovided by the system in terms of actors, their goals, and any dependencies between those

use cases. A use case is an interaction between users and a system in a particular environment. It captures the goal of the users and the responsibility of the system to the user. It is represented

using ellipse. Actor is a user playing a role with respect to the system. A single actor may

perform many usecases. It is represented using a stick figu re alon g with a label.

login s ourcing Bill Admin trader Update place order pay logout DOCUMENTATION OF USE CASE DIAGRAM The actors in this use case diagram are trader, administrator and database.The usecases are the activities that are represented in the ellipse. Trader logins the foreign trading system and perform the sourcing to select the required commodities and places the order.

The administrator checks for ordered commodities , after the commodities are ready trader pays the amount. The administrator provides the items along with the bill.

The database stores the all the details and updates it whenever there is a change in an y part of the trading process. CLASS DIAGRAM A class diagram is a type of static structure diagram that describes the structure of a system. The classes in the class diagr am represent both the main objects and or interactions in

the application. The class diagram is represented using rectangular boxes each o f which contains three parts: The upper part holds the name of the class. The middle part contains the attributes of the class. The bottom part gives the operations or methods the class undertakes. DOCUMENTATION OF CLASS DIAGRAM This class diagram consists of four class trader, administrator, account and item. Trader-is the class name. It consists of username, password, accountno as attributes. The operations performed are login, sourcing, placeorder, pay and

logout. Admin-is the class name. It consists of name, id as attributes. The operations performed are bill and Trace order. Item-is the class name . It consists of name, id, availability and cost.

Account-is the class name. It consists of accountno , balance and due as attributes. SEQUENCE DIAGRAM A sequence diagram in unified modeling language is a kind of interaction diagram that shows how processes operate with one another and in what order. It is a construct of a

Message Sequence Chart. Sequence diagrams are sometimes called event diagrams, event

scenarios, and timing diagrams. This diagram shows a parallel vertical lines called lifelines.

There are two dimensions in this diagram 1. Vertical dimension-represents time.

2. Horizontal dimension-represent diff erent object Trader

Administrator Data base

LoginSourcingPlace order Update orderbillPay update account detailslogoutDOCUMENTATION OF SEQUENCE DIAGRAM The sequence diagram represents: The trader logins and performs the sourcing (viewing the availability and amount) to select the required commodities. Trader places the order to the administrator then the admin tracks order and update the details in the database. The bill is provided to the trader as per the viewed amount and the trader pays for it. The trader after receiving the commodities successfully logout from the database. COLLABORATION DIAGRAM A collaboration diagram belongs to a group of UML diagrams called Interaction Diagrams. collaboration diagrams, like sequence diagrams, show how the objects interact

over the course of time. collaboration diagrams show the sequence by numbering the

messages on the diagram. 1: Login2: Sourcing3: Place order6: Pay8: logoutTrader Admi nistrator5: bill7: update account detail \s 4: Update orderDatabaseDOCUMENTATION OF COLLABORATION DIAGRAM The collaboration diagram shows how the trader performs the sour cing and places order for which the administrator provides the bill and updates it in the database. STATE CHART DIAGRAM The state chart is used to model dynamic natur e of a system. They define different states of an object during its lifetime. And these states are changed by events. So these

diagrams are useful fo r reactive systems i.e.., a system that responds to external or internal

events. It describes the flow of control from one state to other state. The initial state is

represented using the small dot. The final state is represented using a circle surrounded by a

small dot DOCUMENTATION OF STATE CHART DIAGRAM The state diagram represents the following states. The trader logins the register in the first state and performs sourcing in the second state. The trader places the order in the third state. The trader receives the bill in the fourth state and pay the r equired amount in fifth state. The trader logouts from the system in the sixth state LoginSourcingplace orderBillPayLogout. ACTIVITY DIAGRAM This diagram represents the graphical representation of workflows of stepwise activities and actions with support for choice, iteration and concurrency. It shows the overall

flow of control.

DOCUMENTATION OF ACT IVITY DIAGRAM This activity diagram represents the flow of stepwise activities performed in foreign trading system. The first action represents the trader logins to the system.

The second action is the place where the trader places the order.

The decision state is the state where the trader decides to place the ord er.

If the trader places the order, fill the form for the required commodities.

The next activity is that the administrator provides the bill for those commodities. The trader pays for the bill and logout from the system.

A component diagram depicts how the components are wired together to form larger components and or software systems. Components are wired together by using an assembly

connector to connect the required interf ace of one component with the provided interface of

another component. Foreign Trading

system AdministratorTrader DOCUMENTATION OF COMPONENT DIAGRAM

The main component in the component diagram is foreign trading system. The trader who come to do the trading process and administrator who manages all the other

processes is the sub components. DEPLOYMENT DIAGRAM A deployment diagram models the physical deployment of artifacts on nodes. The nodes appear as boxes, and the artifacts allocated to each node app ear as rectangles within the

boxes. Nodes may have sub nodes, which appear as nested boxes. Foreign trad... Adminis Trader trator COMPONENT DIAGRAM DOCUMENTATION OF DEPLOYMENT DIAGRAM

The processor in this diagram is the foreign trading system. The devices are the trader

and administrator who perform the main activities in the system.

PACKAGE DIAGRAM

A package diagram in the unified modeling language depicts the dependencies between

the packages that make up a model. It provides a way to group the elements. There are three

types of layers in package diagram. They are User interface layer

Domain layer

Technical services layer User interface layer

The user interface layer may call upon its directly subordinate application logic

layer, and also upon elements of a lower technical service layer, for logging and so forth. Domain layer

Software objects representing domain concepts (for example, a software class

administrator) that fulfill application requirements, such as tracing order and providing the

bill. Technical services layer

General purpose objects and subsystems that provide supporting technical

services, such as interfacing with a database or error logging.These services are usually

application-independent. user interfaceweb LoginDomainPlace order Pay LogoutTechnical servicesUpdate item SourcingdetailsDOCUMENTATION OF PACKAGE DIAGRAM

The three layers in the foreign trading system are User interface layer consists of web and login. This layer describes how the trader logins to the website and trades for the commodities. Domain layer shows the activities that are performed inside the trading system. The activities are place order, pay for the bill and logouts. Technical service layer The sourcing and updating the details are performed in this layer.

FORM2

FORM1

FORM4

FORM3

FORM6

FORM5

SOURCE CODE

A CCOUNT Option Explicit

'##ModelId=4D64958501F4

Private accoutno As Integer

'##ModelId=4D64958E0186

Private balance As Integer

'##ModelId=4D64959B0290

Private due As Integer

'##ModelId=4D6612990290

Public Sub accountno()

MsgBox "your transaction is successfull"

Form6.Show

End Sub

'##ModelId=4D66130F0128

Public Sub accountpay()

MsgBox "your transaction failed. Do your trading again"

Form5.Show End Sub FORM7

ADMINISTRATOR

'##ModelId=4D6496030128

Public NewProperty As item

'##ModelId=4D6CAE4001F4

Public Sub paybill2()

Form7.Text3.Text = Form7.Text3.Text - Form7.Text5.Text

End Sub

'##ModelId=4D649563003E

Public Sub bill1() Form4.Text1.Text = Form3.Text4.Text * Form3.Text5.Text Form4.Show

End Sub

'##ModelId=4D6CA397008C

Public Sub bill2()

Form8.Text1.Text = Form7.Text4.Text * Form7.Text5.Text

Form8.Show End Sub '##ModelId=4D64956F0399

Public Sub traceorder()

Form5.Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data

Source=C:\Documents and Settings\Student\Desktop\datum\db.mdb;Persist Security

Info=False"

Form5.Adodc1.RecordSource = "select itemname from itemtable"

Set Form5.DataGrid1.DataSource = Form5.Adodc1

Form3.Text5.Text = "" End Sub '##ModelId=4D6612B70186

Public Sub paybill1()

Form3.Text3.Text = Form3.Text3.Text - Form3.Text5.Text

End Sub ITEM Option Explicit

'##ModelId=4D6495B600CB

Private name As String

'##ModelId=4D6495BC0213

Private id As Integer

'##ModelId=4D6495CA0251 Private rate As Integer

'##ModelId=4D6495D103C8

Private available As Integer

'##ModelId=4D6612C202CE

Public Sub getperfume()

Form3.Text3.Text = Form3.Text3.Text - Form3.Text5.Text

Form4.Show End Sub '##ModelId=4D6612D30167

Public Sub getdoll()

Form7.Text3.Text = Form7.Text3.Text - Form7.Text5.Text

Form8.Show

End Sub TRADER

'##ModelId=4D64952500BB

Public Sub login()

If Form1.Text1.Text = "ramya" And Form1.Text2.Text = "ramya" Then

MsgBox "logined successfully"

Form5.Show

Else

MsgBox "invalid login"

End If End Sub '##ModelId=4D64952901C5

Public Sub sourcing()

If Form5.Combo1.Text = "perfume" Then

Form3.Show

End If

If Form5.Combo1.Text = "dolls" Then

Form7.Show

End If

End Sub

'##ModelId=4D649531005D

Public Sub placeorder()

Form5.Show

End Sub

'##ModelId=4D64953600FA

Public Sub pay()

Form2.Show

End Sub '##ModelId=4D64953903B9

Public Sub logout()

Form1.Show

End Sub FORM1 Private Sub Command1_Click()

Dim a1 As trader

Set a1 = New trader

a1.login End Sub

FORM2 Private Sub Command1_Click()

Dim a7 As account

Set a7 = New account

a7.accountno

End Sub

Private Sub Command3_Click()

Dim x As account

Set x = New account

x.accountpay End Sub FORM3 Private Sub Command1_Click() Dim a3 As item Set a3 = New item

a3.getperfume

Dim x3 As administrator

Set x3 = New administrator

x3.paybill1

End Sub

Private Sub Command2_Click()

Dim a4 As trader

Set a4 = New trader

a4.placeo rder

End Sub FORM4 Private Sub Command2_Click()

Dim a5 As trader Set a5 = New trader

a5.pay

End Sub Private Sub Form_Load()

Dim a As administrator Set a = New administrator

a.bill1

End Sub FORM5 Private Sub Command1_Click()

Dim a2 As trader

Set a2 = New trader

a2.sourcing End Sub

Private Sub Form_Load()

Dim a0 As administrator

Set a0 = New administrator

a0.traceorder

End Sub FORM6 Private Sub Command1_Click()

Dim a6 As trader

Set a6 = New trader

a6.logout

End Sub FORM7

Private Sub Command1_Click()

Dim a3 As item

Set a3 = New item

a3.getdoll

Dim x2 As administrator

Set x2 = New administrator

x2.paybill2

End Sub

Private Sub Command2_Click()

Dim a4 As trader

Set a4 = New trader

a4.placeo rder

End Sub FORM8 Private Sub Command2_Click()

Dim a8 As trader

Set a8 = New trader a8.pay

End Sub Private Sub Form_Load()

Dim a7 As administrator Set a7 = New administrator

a7.bill2

End Sub RESULT

Thus the project to develop foreign trading system using Rational Rose software and

to implement the software in Visual Basic is done successfully.