foriegn 1
TRANSCRIPT
-
7/29/2019 Foriegn 1
1/21
EX NO:
DATE:
FOREIGN TRADING SYSTEM
AIM: To analyze, Design and develop code for Foreign trading system using Rational
Rose software and Visual Basic 6.0.
PROJECT SCOPE:
The main scope of the project is to provide a exhaustive, flexible and reliable
stock maintenance system which would be beneficial for both stock manager and
retailer
OBJECTIVE:
The main objective of designing and developing a Foreign trading system is to
provide with a system which proves to be manually beneficial i.e., benefits both the
buyer and the seller through an broker. The complete activities and the process right
from products manufacture till the product gets sold out, every single activity is
incorporated in this system.
PROBLEM STATEMENT:
Foreign Trading System is a real time application used in the merchants day to
day system. This is a database to store the transaction that takes places between the
Buyer seller and the Broker that includes Product selling and buying with reference to
the Broker. Here we assume our self as the Broker and proceed with the transaction as
follows:
1.The Seller is the producer of the items and it contains the necessary
information of the item such as price per item, Date of manufacture, best before use,
Number of tem available and their Company Address.
2. The Broker is the secondary source of an Item and he purchases Item from
the Seller by requesting the required Item with its corresponding Company Name and
the Number of Items required. The Broker is only responsible for distribution of the
Item to the Buyer in the Town or City.
-
7/29/2019 Foriegn 1
2/21
3. The Buyer is the one who is prime source for Buying items in the market.
The Buyer get Item from the Broker and not directly from the Seller.
4. The Product availability is the database used in our System which records
all transactions that takes place between the Broker, the buyer and the Seller.
5. Forex is the system where the buyer or broker pay the money for the
product in their own money and it will paid in the form of what the seller cash.
6. Customs is responsible for trading the product all over the world. If they give
approval the only we accept to trade.
INFRASTRUCTURE
HARDWARE REQUIREMENTS
Processor(256 MHz),
RAM (256 MB)
SOFTWARE REQUIREMENTS
Design Tool : Rational Rose Software
Front End: Visual basic 6.0
Back End : MS-Access
-
7/29/2019 Foriegn 1
3/21
FOREIGN TRADING SYSTEM
ABSTRACT The Foreign trading system is highly unique, because of its distinguished
activities and behavior. It sounds to be different, because of its classified nature. It
starts right from the Seller of the product and its covers up the entire life cycle till the
product as purchased by the Buyer. The maintenance of this Product proves to be
challenging as it has many cases to concern.
The special cases arise from this Foreign trading system such as handling the
damaged and expired stock are appropriately designed to match the needs of the real
world.
In the existing system all the processing are done manually. These systems will
have to maintain the data in a hard file. While searching any data it is too difficult to
find those.
Maintaining too many data about produce in separate files are too complicated.
Similarly, it is too difficult to maintain data for each and every activity. so , the time
utilization will be more this manual system. In order to overcome these problems we
have to propose the system which overcomes the problem of the existing method.
We have proposed a system that would modernize the activities of Foreign
trading system. The developed system would perform all the function of the manual
system. Using this system we can save time and the operation will be performed with
ease comparatively.
-
7/29/2019 Foriegn 1
4/21
USE CASE DIAGRAM
Validating price
Send goods
Willingness & get price
Get product
Customs
Deliver goods
Buyer
Pay(Rupees)
Payment
Consumers bank
Market Value
Database
Updation and Validation
Forex
Pay & payment
Seller
Notification and fix price
Broker
-
7/29/2019 Foriegn 1
5/21
ACTIVITY DIAGRAM FOR PRODUCT AVAILABILITY
-
7/29/2019 Foriegn 1
6/21
ACTIVITY DIAGRAM TO GET MARKET PRICE OF THE PRODUCT
-
7/29/2019 Foriegn 1
7/21
ACTIVITY DIAGRAM FOR TRADING A PRODUCT:
-
7/29/2019 Foriegn 1
8/21
SEQUENCE DIAGRAM
Forex Broker Database Seller Customs Consumer bankBuyer
willingness t o buy
availability of goods
product available
seller
getting market value
responding
respondingresponding
verifying market value
market value is given
for conversion
initial payment
conversion
payment for goods
certification of goods
delivery of goodsgoods delivery
updation
updated
-
7/29/2019 Foriegn 1
9/21
COLLABORATION DIAGRAM
-
7/29/2019 Foriegn 1
10/21
CLASS DIAGRAM
Database
product_id : int
product_name : string
ph_no : int
number : integer
Seller
product_name : string
agency_name : string
cash : int
product_id
send()
Customs
agency_name : char
product_name : char
product_id : int
check()
*
11
*
Send
Broker
cash : Integer
product _id : String
product_name : String
trade()
1
*
1
*
Send to
Maintianence**
consumer bank
product_id : String
product_name : String
getpd_id()
**
Get Price
Buyers
product_id : String
product_name : String
agency_name : String
ordered()
*
1
Forex
currency_name : String
amount : Integer
Conversion()
*
1
*
1
Pay & paymant
1
1
1
1
Get cash
*
1
1
*
1
*Pay(rupees)
Verify price
-
7/29/2019 Foriegn 1
11/21
COMPONENT DIAGRAM
-
7/29/2019 Foriegn 1
12/21
STATECHART DIAGRAM
Product
ordering
product
checking
product DB
deliver the
product
check for another
product
Take order
enter product ID
Available
Not available
State
Event
Transition
-
7/29/2019 Foriegn 1
13/21
DEPLOYMENT DIAGRAM
Application
Server
Client 1 Client 2Client 3
EmployeeDatabase
Printer
-
7/29/2019 Foriegn 1
14/21
PACKAGE DIAGRAM
Entity
Control
Boundaries
Query Solution Product_DetailsDB
BPO Customr
-
7/29/2019 Foriegn 1
15/21
IMPLEMENTATION IN VISUAL BASIC
PRODUCT AVAILABILITY
Private Sub Search ()
Dim a As BrokerSet a = New Broker
a.trade
End Sub
CLASS BROKEROption Explicit
'##ModelId=4D393B3800EA
Public product_id As String
'##ModelId=4D6B62C0032C
Public product_name As String'##ModelId=4D393B9B03D8
Public Sub trade ()
If Form1.Text1.Text = Form1.Data1.Recordset.Fields (0) Then
If Form1.Text2.Text = Form1.Data1.Recordset.Fields (1) Then
Form2.Text1.Text = Form1.Data1.Recordset.Fields (0)
Form2.Text1.Text = Form1.Data1.Recordset.Fields (1)
Form2.Text1.Text = Form1.Data1.Recordset.Fields (2)
Form2.Text1.Text = Form1.Data1.Recordset.Fields (3)
Else
Msgbox (try later)End If
End If
End Sub
CLASS DATABASEOption Explicit
'##ModelId=4D393C27008C
Public product_id As String
'##ModelId=4D393C3A01D4
Public product_name As String
'##ModelId=4D39502103B9
Public ph_no As Integer
'##ModelId=4D4FA79B038A
Public number As Integer
CURRENCY CONVERSION
Private Sub Search ()Dim a As Forex
-
7/29/2019 Foriegn 1
16/21
Set a = New Forex
a.conversion
End Sub
CLASS BROKEROption Explicit
'##ModelId=4D393B3800EA
Public product_id As String
'##ModelId=4D6B62C0032C
Public currency_name As String
##ModelId=4D39502103B9Public amount As Integer
CLASS FOREXOption Explicit
'##ModelId=4D393C27008C
Public currency_name As String
'##ModelId=4D393C3A01D4
Public amount As Integer
'##ModelId=4D4FA79B038A
Public price As Integer
'##ModelId=4D393B9B03D8
Public Sub Conversion()
If Form1.Text1.Text = Form1.Data1.Recordset.Fields (0) Then
Form2.Text1.Text = Form1.Data1.Recordset.Fields (0)
Form2.Text2.Text=Val(Form1.Data1.Recordset.Fields(1)*Val(Form1.Text2.Text)Msgbox (try later)
End If
End If
End Sub
GET MARKET PRICEPrivate Sub Search ()
Dim a As Seller
Set a = New Seller
a.getpd_idEnd Sub
-
7/29/2019 Foriegn 1
17/21
CLASS SELLEROption Explicit
'##ModelId=4D393B3800EA
Public product_id As String
'##ModelId=4D6B62C0032C
Public product_name As String
'##ModelId=4D393C3A01D4
Public price As Intiger
'##ModelId=4D393B9B03D8
Public Sub getpd_id ()
If Form1.Text1.Text = Form1.Data1.Recordset.Fields (0) Then
If Form1.Text2.Text = Form1.Data1.Recordset.Fields (1) Then
Form2.Text1.Text = Form1.Data1.Recordset.Fields (0)
Form2.Text1.Text = Form1.Data1.Recordset.Fields (1)
Form2.Text1.Text = Form1.Data1.Recordset.Fields (2)Else
Msgbox (Try After Some Time)
End If
End If
End Sub
CLASS CONSUMER_BANK
Option Explicit
'##ModelId=4D393C27008C
Public product_id As String'##ModelId=4D393C3A01D4
Public product_name As String
'##ModelId=4D39502103B9
Public price As Integer
-
7/29/2019 Foriegn 1
18/21
OUTPUT
PRODUCT AVAILABILITY
-
7/29/2019 Foriegn 1
19/21
GET MARKET PRICE
-
7/29/2019 Foriegn 1
20/21
CURRENCY CONVERSION
-
7/29/2019 Foriegn 1
21/21
RESULT:
Thus the Foreign Trading System is done using Rational RoseSoftware and code implemented by Visual Basic 6.0.