FACULTY OF ECONOMICS AND ADMINISTRATIVE
SCIENCES
1:
I ; ,, I IDEPARTMENT OF COMPUTER INFORMATION SYSTEMS
2005/2006 Fall Term
CIS 400
Graduation
ProJ'.:e.ct
Retail
Banking -$,ystem
'·.,·., .Submitted To
Submitted By
: Department of Computer Information Systems
: Fatih
yAY
(20020704)
t.efkosa,
2006
ACKNOWLEDGMENTS
For giving the chance of improving myself in this university with these conditions,
Iwant to
express my gratitude to Near East University.
First of all I want to thank my supervisor Mr. Tansel Devin for his advices and his invaluable
guidance in my Project . He forced my creativity to improve myself and my project. I am also
grateful to him for giving his valuable time to me.
I also want to thank Miss. Nadire Cavus who help me all my advisory problems, and also
thank to Mr.Yalcm Akcah for sharing endless experiments in system analysis methods.
Secondly I would like to thank all my friends especially CanerCakir and Zekai Kiray who
causes question marks in my mind and forced me to solve the problems I faced.
Especially I want to thank Emel Y
azici for being my inspiration and for her support.
At last Nly
Family,
the ones who deserves the most gratitude for giving their endlciss
support
and eiidduragement not only for my study, for all my life. I really thank you. It,tduld
hot
be
' '.'.-'._·.·.. '. .. '..
done -witlfoufyoti.
2 \.) ; C ·.,,_; \ ll'
l
Ll
i
l' i!'
ii lI' I ·1· ;· I
I
!ABSTRACT
EMF
A Bank was requested from me,to preparing computerised Retail Banking
System to handle their retail banking routines.
I thought and I designed a system that every part of the application must be module by
module.Main aim of the project was Fund Transfer and preparing SWIFT report for foreign
bank's transfers so my fund transfer part has to be seperated from crediting and other security
and account transactions.
I prepared a database design and showed it to Mr.
Y
alcm Akcali who is the CEO of
EMF
A Bank.Mr.Akcali notified me to do firstly fund transferring module to handle it fastly
with computers.
I designed the system's fund transfer module,security module,customer and accounts
module and applied it on computer with using Oracle Database and Java Object Oriented
Programming Language.
Oracle database support system to strong data warehouse,secure, thrustworthy, easily
accessible if users have enough permission and faster.Oracle database is suitable for kind of
new banks.If banks grow and database needs to be upgrade Oracle supports upgrade and does
it easily.Bank computer center ersonel could ake easily back-ups for keeping them safe with
avoiding dangers of nature and computer crashs.
Java Programming laguage supports Object Oriented Programming to do it's job easily
and safe.Object oriented programming is the newest technology in application programming
area.Also Java supports desktop programming and web programming together.If bank needs
to publish internet banking program on web my program easily convert to internet
programming to using internet banking.
Program needs only 1.5 MB of hdd for running.Java and Oracle orientation supports
instance connection for keeping database ports open to other users.
This benefit gets more
efficientnetworkand database .connection.Thats mean Retail Banking System could be faster
andneeds less resource
an4/ie'ss
effort to work stable.
System Processes:
l)User Process
2 )Customer Process
3 )Account Process
4)Fund Transfers Process ·
5)Credit Process
6)Credit Type Process
7)Bank Process
8)Country Process
9)Reports Process
INTRODUCTION
Ratail Banking Systems has major components like fund transferring, crediting,
interested or noninterested accounts. Banks needs faster transactions,security and trusted non
data loss systems to keep transactions.Many of the banks have transferred their system to
computer for computerized banking.Computerising has get lots of benefit to banks and their
workers.Computerising gets more efficient time management,customer - bank relation and
improving workers performance.
The Retail Banking System has been added new inventions to their system with
computerising.ATM(Automated Teller Machine) get a chance to customers drawing money
from bank without any branch or banking personel.Internet banking supports user to do their
all banking operations without any bank personel or banking hardware,customers could do
every banking operation on internet instantly.Money moves fastly and securely than before.
Also country economy has improved with banking transactions on computer because
money can transfer easily with less effort and less expence,so citizens of country become
spend money more faster and getting money more faster.
Computerised Retail Banking Systems do crediting be secure and be faster
too.Crediting is posible now in 20 munites in some of
banks with phone or
internet.Customers are more comfortable · and · more equipped with computerising
banking.Bank's managers are more faster in descision making because they could take their
related reports faster from computer than hard recorded.
As a conclution Computerised Retail Banking Systems are useful for both customers
and bank employees .Both sides could. be take .different benefits and less expences than
before.
Computerised Retail Banking System prepared by Java Programming Language and
Oracle Database for EMF
A Bank.
System Processes:
])User Process:
This process gets username
&password from users or managers to check if they have
permission to enter program.
2)Customer Process:
This process supplys adding new customer to database.
3)Account Process:
This process supplys adding new account to database with account owner,account
amount.
4)Fund Transfers Process:
This process is the main process of the system.It supplys transferring money :
From customer to destination name,
From customer to destination customer,
From customer to destination customer's account,
From customer to customer's other accounts,
From customer to destination foreign bank customer,
From customer to destination foreign bank customer
5)Credit Process:
This process supplys to give a defined type credit to an account.
6)Credit Type Process:
This process uses by managers to add new credit type to database.
7)Bank Process:
This process uses by managers to add other banks to database.
8)Country Process:
This process uses by managers to add new country to database.
9)Reports Process:
This process uses for taking reports when necessary to inform both users and
managers.
· · . DESIGN OF THE SYSTEM
...
.. . ' . ., ... 'EXPLANATION
Minimum System Reuirements:
For Application:
Intel 486 Based Cpu
64MbRam
1.5 Mb Free Hdd Area
Monitor
Any Java Supported Operating System
For Oracle Database Server:
Intel 486 Based 800 Mz Processor
128 Mb Ram
3 .5 Gb FreeHdd Area
Ms Windows Nt or 2000 Server
Recommended System
For Application:
Intel 486 Based 1 Ghz Cpu
128 Mb Ram
1.5 Mb Free Hdd Area
Monitor
Any Java Supported Operating Sysiepi ,
For Oracle Database Server:
Intel 486 Based 3.00 Ghz Processor."
512 Mb Ram
3.5 Gb FreeHdd Area
Ms Windows 2003 Server
System Build Software
Oracle 9.02 Database For Data Storing
Java SD
Kl .5 For Application
I used Oracle and Java because Oracle is the most trusted and reliable database on this range
and Java programing language is an open source and free tool to programming.Also Java gets
system to be faster and hard secured.
Banking System must be secured ,faster and trusted.
EMF A Bank Retail Banking System
!)Project Identification And Selection
Aim Of The Proect:
The Retail Banking System solution was necessary for EMF A Bank to automate fund transfers,crediting and Bank has to store them in a database securely.
Bank also decrease the worker size with this program because program gets rid of checking prblems and more effort to record customers and their account transactions.
New system gets faster transactions,secure data entry and avoiding errors for fund transfers and crediting because system checks every details of customer to be enough account or account credited but has not closed up to new crediting date.
Project Boundaries:
1 )Taking customer information to keep them in an database which is Oracle. 2)Keeping customer's accounts for adding ar drawing money from accounts.
3)Sending and receiving fund transfers between customers,acounts,other banks with using SWIFT International bank to bank fund transfer system.:
4)Preparing SWIFT document for SWIFT transfers.
5)Calculating and storing bank's revenues from fund transfers with SWIFT.
6)Helping to User when gives a credit to user if it's has credited account.If customer has a . . . , .
credited account ,customer could not get any credit withJllis account.
7)Calculating credit installment number and showing
that-when
customer pays an inssallment.8)Calculating credit installment amount monthly.
9)Storing credit types and their ratios for calculating bankrevenues. 1 O)Calculating and taking bank credit revenue from customercredit. 11 )Taking monthly credit installments from customer. · ·
12)Adding amount to customer account. 13)Drawingmoney from customer account
14)Keeping which user did any process with accounts to further disaggreements.
15)Giving whole or spesific reports about customer.account.fund transfers,bank revenues and crediting customers.
Resource Limits:
Designing,building and installment of system has a time limit up to 20-February-2006 becase of the system will be operated on this date.System firstly building for fund transfers and if time will be enough crediting system will be add as soon as posible.
System needs a computer for deploying Oracle Database,client side will be work on any regular computer.
2)Project Initiation And Planning
Technical Feasibility :
Hardwares that are necessary are fallows :
a. A server computer with MS server edition operating system for Oracle Database
b. Client computers how many user will be use this Java aplication
Operational Feasibilty :
Managers has to learn how new system could be use effectively,because they will
assign the credit type,new banks for SWIFT and new countries for ne banks.
Users has to learn their part of the system fund transfers or crediting.
If Users does not use computer they has to take a short system using course for How to
System could be operated.
Sysem is user friendly so user could use system easily with taking short course.
Economical Feasibilty :
Oracle server cost , Oracle server computer and other user computers could be easily buys by
EMF
A Bank because system could be easily earns their money from banking transactions to
avoiding.
errors.
3) Analysis
Requirement Determination :
Requirements Are Taken From Managers and Users OfEMFA Bank.
1) Speed of fund transfer.
2) Exact money has to be transfer to exact account,name or foreign bank.
3) Trusted datastore for future.
4) Increase user transfer and crediting performance.
5) Prevent data duplications (account,customer,crediting).
6) Prevent loss of data.
7) Easy and quick access to data.
8) Simple and easy user graphical interface.
9) Secure datas from outside attacks.
10) Restict some part of the operaions(Giving users to ranks) for reaching their related
ranks.
11) Preventing loss of amount errors for fund transfer.
12) Preventing to giving new credit to credited account.
13) Security ontrasactions and database.
Existing System Capabilities:
EMF
A Bank has done all transactions with hand.
Documentation has been taken by hand and it's storing on paper.Users has to find all
necessary information from hard reports.
Managers was not.take.reports.when they need instantly.
New System Providencest.
New system.
is
faster than old system because system has a database and automated
tmsactions for users. ·· · · ·
· ·
Also new system.is secure with ranking system.Back up could be take easily from
computer and it takes only a ed.
System supports user to avoid fund transfer and crediting errors.
Managers could take reports easily and faster.
Users could check customers account amounts easily.
System could be recover with old back ups i its needed.
System avoids data loss it supports to keep minimally.
Database:
System has 11 table in Retail Banking (RB) database. l)Users, 2)Customers, 3 )Accounts, 4)Acount Transactions, 5)Fund Transfers, 6)Banks, 7)County, 8)Credited Accounts, 9)Credit Payments, 1 O)Bank Revenues, 11 )Credit Types 11
User Reports Customer Order Customer Data User Criterias Accept Or Deny User User Data
Context Data Flow Diagram
For
EMFA Bank
Retail Banking System
,_ "'"' Data
I
ManagersI
New CreditType Data New Country Data User Data
New User Data Manageria Reports Criterias Accept Or Deny Manager
Elecronical Money Flow Asistance Retal Banking System Swift Outgoing EFT SWIFT Information
-"' c- Cll Cll Cll cc Cl ~ u:: e C :, 0 (.) ~ u:: -"' C Cll cc :;:-"'~ Q) c:.$2 Z cc - Cll C .l9 Cll Cl ai 1/) ::, ~ z ~ u:: Zl C Q) E >, Cll ll. .l9 Cll Cl ai 1/) ::,
E
E
C)c,s
C==
0 C. 0 I- ~ u:: 1/) Q) :, C ~ c:: -"' C Cll cc ~ u ~ .a> 1/) C ~ "O C :, u. -g ::, C'*
19 Cll LL ~ 0 f-~2 ~
~1
<t "" ~ u:: Q) Cllc
"'E·1 ~~
:, 0 8 u. <r--=- -cI
~ ai CC u:: ::l~ C :, o :8 :8 Cll 1/) C Cl 8 :Ji E 0 ~-ou
~.91- ·1
(..) C ~ <t e! ./2 Cll ::, ~ I Q) Cl 1/) E -o f--E C 0~ Cll t, ~i=
.:, C ai~I
c
(.)~ Ero 0 :,C:
h
*~
o :;_] ~~::l C Cll (..) o- ~ ::, <t - Cll Q) 1/) (.) u,~,
~ Cli ~
<r-- ai (.) E .. n -i> ~ ~ C ~g (.) :, ai ~ .9 ~ E ~ z 1/) ~ Q) Q) :>./2 o"E <..l.f: t, 0 :, (.) "O - Q) C -~ :J ro "O O - Q) o Cll ~ (..) Cl (.) -c C ::, Cll o-88
-c C C:8 :, (..) Cll o ro- o 1/) Cll CJ C Cl <t ~ 1/) Cll Q)'C 1/) Q) ::, 1= (.) ~ 0 a. Q) c:: ~ ::,User Process Detailed Data Flow Diagram
For EMFA Bank Retail Banking System
User Manager
User Data Acceptor Deny User User Data Acceptor Deny User New User Data · User· ':(~9wl~dge User information User File
User Customer Account Data 2 Customer Process Detailed Data Flow Diagram
For EMFA Bank Retail Banking System
Customer Order
New Customer Information
Customer Data Verified Old Customer Customer Order Information New Customer Information Customers 15 Customer Knowledge
Customer Knowledge Account Credited Notificatin 3
Account Transaction Process Detailed Data Flow Diagram
For EMFA Bank Retail Banking System
New Customer Account Information
New Account Information
Account Knowledge Account Data Account Data
16
Accounts Add Or Draw Money Data Account Information Account Transaction InformationAccount Knowledge ---IC>
4
Fund Transfer Process Detailed Data Flow Diagram
For EMFA Bank Retail Banking System
Outgoing Swift Fund Transfers Swift Outgoing Swift Information Fund Transfer Revenue Data
Fund Transfer Information
Bank Data
Fund Transfer Data
Bank Revenues File
Bank File
17
5 Credit Process Detailed Data Flow Diagram
For EMFA Bank Retail Banking System
Account Data
Installment Payment Information
Account Credit Information Account
Credited Notification
Credited New Credit Credit Credited Credited Account Credit. Type Revenue Account Account
Data For Data Data Payment Payment
Account Data lnformaton
lnforrnatiori
Bank Revenues File Credited Accounts File
18
9 Reports Process Detailed Data Flow Diagram
For EMFA Bank Retail Banking System
Manager Criterias * [ User *User Criterias
I
*User Reports Managerial Reports *Selected Customers Information Selected Credited Account Information
Customer Data Account' Transaction Data Accounts Data
Customer File Account Transactions File Accouns Fund Transfers File
* Managerial Rel)orts
1) Al Bank Revenues Report 2) Spesific Revenue.Report. 3) Date Based Revenue Report
Selected Bank Information
*User Reports
1) All CustomersReport 2) Spesiic Customer Report 3) Customer Balance Report 4 )All Accounts Report 5)Spesific Account Report 6)AII FundTransfers Report ?)Credit Reports
I
Bank Revenue Datar
Credited · Account Payments · DataBank Revenue File Credit Payments File
19
Fund Transfers Data Credited Account DataCredited Accounts File
*Managerial Criterias
1) Spesific Customer 2) Spesific Bank Revenue 3) Spesific Account 4) Spesfic Customer Revenue 5) Date or Dates
* User Criterias
1) Spesific Customer 2) Spesific Account
rn Cl)
s:
~-
...•. :E Ill ;:::;: :J (") ~ zr ...•. Cl) 0 ::::!. C !l:!.. U> :::u Cl) -, Cl). s:.
"8
Cl) ;:::::i. :J U> ·C:·is':
a.z
~ C U> Cl) -, 0 iil 6': () Cl) :!:: a. 6i-c s:: s:: u,so:
g 00 "C 3;;;; (1) :,~ (1) mo o'<~m
~
;,-o
•os>__.o
o c:)> a. o o ~)>11'~-
~~3 ,,,.<!§'§~~~>'
;\'~/;'§~
!l.03,.@•:;
ei•g
sa
;:::;:~-Q::0::03 mg,;:!._ ::O"'::ogmim ;:!.4-l
• , • ~ o a"O g?,"00 ;a. 0 ;:a..
f ~
1
i
1
f ~ ~
Y ~· ~
§ (")8
(")
a. -, C: C: -i ~ ~s
iil ;:::;:S:
3 :::u :Js:
Cl) Cl) ~ ~ U> Cl) :J -, er oro
:J c: rn o ;:::::i. ul c: X c: U> ;:::.: ,-,+Database Design
Tables:
1 )Customers
2)Accounts
3 )Accounttransactions
4)Banks
5)Bankrevenues
6)Country
7)Creditedaccounts
8)Creditpayments
9)Creditypes
1 O)Fundtransfers
l)Users
Table Descriptions:
])Customer :
Name
Type
CUSTNUM
CUSTNM
CUSTSNM
CUSTGENDER
CUSTPHONE
CUSTREGDATE
CUST
ADDRESS
. CUSTBIRTHDATE
USR·
NUMBER(ll)
V
ARCHAR2(20)
V
ARCHAR2(20)
V
ARCHAR2(7)
V
ARCHAR2(11)
DATE
VARCHAR2(50) ·
. . ..DATE
VARCHAR2(10)
2)Accounts :
Name
Type
-· . ·- .-
..-
.--
---
··-.-
.-
.-·
.. ·-.-
.-
- -··- ·-
.- --
.-
. -· -· . -··- ·-
.-
.-
.-·
ACCOUNTNUM
ACUSTNUM
AAMOUNT
A
CREDITED
USR
NUMBER(6)
NUMBER(ll)
NUMBER(12)
V
ARCHAR2(3)
VARCHAR2(10)
3 )Accounttransactions :
Name
ATRNUM ATRACCOUNT AT AMOUNT ATTYPE ATDATE USR4)Banks:
Name
BANKCODE BANKNAME COUNTRY USRS)Bankrevenues:
Name
REV ID REV CUSTOMER REVACCOUNT · REVAMOUT ' ' . ' ' .. , REVDESC REVENUE DATE6)Country:
Name
COUNTRYID COUNTRYNAME USRType
NUMBER(12) NUMBER(6) NUMBER(12) VARCHAR2(4) DATE VARCHAR2(10)Type
NUMBER(12) V ARCHAR2(20) V ARCHAR2(2) VARCHAR2(10)Type
NUMBER(12) NOMBER.(11) V ARCHAR2( 6) NIJM,I3gll(l 2) . ··vARGHAR2{21)6AtE;····
Type
V ARCHAR2( 4) V ARCHAR2(50) V ARCHAR2(10) 227)Creditedaccounts: Name CAID CANUMBER CAAMOUNT CTYPE CREDITCLOSED TOTINSNUM INS LEFT INSAMOUNT AMOUNTLEFT USR OPENDATE
8)Creditpayments:
Name PAYMENTID CUSTNUM ACCNUM PAYMENTAMOUNT PA YMENTDATE USR.9)Creditypes: .
''TYPEID ··· .. TYPE RATIO MAXINSNUMBER USR Type NUMBER(2) NUMBER(6) NUMBER(12) NUMBER(2) V ARCHAR2(1) NUMBER(2) NUMBER(2) NUMBER(12) NUMBER(12) VARCHAR2(10) DATE Type NUMBER(?) NUMBER(ll) NUMBER(6) NUMBER(12) DATE VARCHAR2(10) Type NUMBER(2). V ARCHAR2(20) NUMBER(2} NUMBER(2) VARCHAR2(10) 231 O)Fundtransfers : Name FUNDTRNUM FTACCOUNTNUM FRACCOUNTNUM FRCUSTNM FTCUSTNUM FAMOUNT FRBANK FRCUSTNUM USR FTDATE ll)Users: Name US RID USRNM USRSNM USRDESC TYPEID. OP END ATE Type NUMBER(lO) NUMBER(6) NUMBER(6) V ARCHAR2(20) NUMBER(ll) NUMBER(12) NUMBER(12) NUMBER(ll) V ARCHAR2(10) DATE Type NUMBER(lO) VARCHAR2(10) V ARCHAR2(10) V ARCHAR2(15) V ARCHAR2(10) DATE 24
USER GUIDELINES
System works with Oracle server to storing data.So first of all Oracle server must be
installed and managed by system engineers.
When Oracle server installed and prepared to available for application,network
personel has to connect all client computers in one Lan for getting and setting data to server.
If Oracle server and application computers ready in one network,users could use
program easily.
l)Users have to click only RB.jar for running program.There is no setup is necessary
to work application.Java application will work instantly on client computer.
2)Application connects with Oracle server when it is necessary,other times applcation
terminates the connection for avoiding both network traffic jam and Oracle server processing
and connection caos.
3)Aplication comes with User&Password Entering screen.That screen gets
user&password from user or manager to seperate their ranks to preparing their different
menus.
4)If user is manager application ceates new screen for Managerial Menu that is serving
managers the permissions to reach spesific managerial screens.
Those are:
a)Add New User
b)Add New Credit Type
c)Add New Bank
d)Add New Country
e )Managerial Reports
f)Switch to User Menu
g)Exit
. 5)If Manager. wants to see User Menu .manager could be. swicth. on to this menu
.. easily.Other menu items gets manager to do inanage,riaLwOrks
that they are explained in item
captions.
· 6)1:f
user l:ias not had managerial permission user· goes directly to User Menu.
This
menu serves user to doing user'sjobs.This menu c6nt~ins: .. ·.
· ·· ··· ·· ··
· a)Add Customer
·· ·· ··
b
)Create New Account
c
)Open Credit
d)Credit Payments
e
)Fund Transfers
f)Add money to Account
g)Draw Money From Account
h)About
i)Exit
7)If user choose Add Customer,user has to give new customer's datas on this screen to
record it.
8)If user choose Create New Account,user could create new account with choosing
recorded customer.
9)If user choose Open Credit,user could choose customer and customer's account to
giving credit.If customer account has been credited user willbe warn by application and
crediting is impossible to account.
1 O)If user choose Credit Payments,user could choos customer and customer's account which is credited before and ready to payment.If customer or account has not been credited system will warn user with customer has not credited or account has not credited.
1 l)If user choose Fund Transfers,user could choose transiver customer,customer's account to transfer and user could sent money to another customer name,another customer account,transiver customers othe account or foreign bank customer.If user choose foreing bank customer user has to give foreign bank name and receiver foreign bank customer Identity number and name,sumame.
12)Add money to account and Draw Money From account is easy screens to adding or receiving money from customer accounts.User could choose customer and it's account for those transactions.
13)About shows the System's analiser,designer and programmers communication details.
USER FLOWCHARTS
User
&Password Flowchart For EMFA Bank Retail Banking System
Start User Information
y
1)Exity
Stop28
User Menu Flowchart For EMFA Bank Retail Banking System 1.1 )Add Customer 1.2)Account Menu 1.3)Credit Menu 1.4)Fund Transfers 1.5)Reports 1.6)Exit 1.7)About Choice
G
G
G
>
~G
G
StopG
29
Add New Customer Flowchart For EMFA Bank Retail Banking System
Customer
Information
1.1.1)Save
1.1.2)Cancel
Choose
~
l,,,.
s1-ve-.~~
· ,- Customer
30
Account Menu Flowchart For EMFA Bank Retail Banking System
1.2.1 )Create Account 1.2.2)Add Money To Account 1.2.3)Draw Money From Account 1.2.4)Close Choice
8
:>
~
.e
8
:>.
~.o
31Create New Account Flowchart For EMFA Bank Retail Banking System
Account
Information
1.2.1)Save
1.2.2)Cancel
Choose
Save
,~, · 1
Account
32
Add Money To Account Flowchart For EMFA Bank Retail Banking System Customer & Amount Information 1.2.1.1 )Save 1.2.1.2)Cancel Choose Add Amount 1
33
Draw Money From Account Flowchart For EMFA Bank Retail Banking System
Customer & Amount Information 1.2.2'.1 )Save 1.2.2.2)Cancel Choose 'j34
Credit Menu Flowchart For EMFA Bank Retail Banking System 1.3.1 )Credit Opening 1.3.2)Credit Payment 1.3.3)Close Choice
y
35
8
8
0
Credit Opening Flowchart For EMFA Bank Retail Banking System Credit Information 1.3.1.1)Save 1.3.1.2)Cancel Choose Save Credit 36
Credit Payment Flowchart For EMFA Bank Retail Banking System Credit Payment Info 1.3.2.1 )Save 1.3.2.2)Cancel Choose . Save
-'f-;,f
p~;~d~~t
37
User Reports Menu Flowchart For EMFA Bank Retail Banking System
1.5.1 )All Customers
1.5.2)Spesific Customer Report 1.5.3)Customer's Balance Report 1.5.4)AII Accounts
1.5.5)Spesific Account 1.5.6)AII Fund Transfers 1.5.?)Credit Report 1.5.B)Close
Choice
408
8
8
8
8
8
C)
All Customers Report Flowchart For EMFA Bank Retail Banking System
All Customers
1.5.1.1 )Cancel
Choose
y
41I
I
I
I
I
I
I
I
I
Fund Transfers Flowchart For EMFA Bank Retail Banking System
1.5.1)To Name
1.5.2)To Another Customer
1.5.3)To Customer's Another Account 1.5.4)To Another Bank Customer
Destination Name
-c
•
I
Destination AccountI
I
InformationI
I
Customer's Destination Account Information Destination Bank Customer Information 1.5.5)Save 1.5.6)CancelSpesific Customer Report Flowchart For EMFA Bank Retail Banking System
t
I
I
Customer Information I II
f
Customer Spesific Report I Ir
I.
l
\ 1.5.2.1 )Cancelr
f
I
I
Choose ~ , ' ' , '. I ..
' ,... ~·.~.Y.
!1r
. . . . .. 42Customer Balance Report Flowchart For EMFA Bank Retail Banking System
Customer Information Customer Balance Report 1.5.3.1)Cancel Choose43
All Accounts Report Flowchart For EMFA Bank Retail Banking System
All Acounts
1.5.4.1 )Cancel
Choose
Spesific Account Report Flowchart For EMFA Bank Retail Banking System Account Information Spesific Account Report 1.5.5: 1)Cancel 45
All Fund Transfers Report Flowchart For EMFA Bank Retail Banking System
All Fund Transfers
1.5.6.1 )Cancel
Choose
Credit Report Flowchart For EMFA Bank Retail Banking System Credit Information Credit Report 1.5. 7;1 )Cancel Choose 47
About Flowchart For EMFA Bank Retail Banking System About
Programmer
1. 7.1 )Cancel
' ; ' '.48
Managerial Menu Flowchart For EMFA Bank Retail Banking System
2 .1 )Add New User 2.2)Add New Credit Type 2.3)Add New Bank 2.4)Add New Country 2.5)Managerial Reports 2.6)Switch To User Menu 2.?)Exit
Choice
Stop
Add New User Flowchart For EMFA Bank Retail Banking System User Information 2.1.1 )Save 2.1.2)Cancel · Choose Save User 51
Add New Credit Type Flowchart For EMFA Bank Retail Banking System Credit Information 2.2.1)Save 2.2.2)Cancel Choose
y
Y
I .,./_
Save
:>
~,
Credit Type
52Add New Bank Flowchart For EMFA Bank Retail Banking System Bank Information 2.3.1)Save 2.3.2)Cancel Choose Save Bank
53
Add New Country Flowchart For EMFA Bank Retail Banking System Country Information 2.4.1)Save 2.4.2)Cancel
Fs=-7,'
"i-\/.
Country /
\~
t
54Managerial Reports Menu Flowchart For EMFA Bank Retail Banking System
2.5.1 )All Bank Revenues Report 2.5.2)Spesific Revenue Report 2.5.3)Date Based Revenue Report 2.54)Cancel
Choice
All Bank Revenues Flowchart For EMFA Bank Retail Banking System
Bank
All
Revenues
2.5.1.1 )Cancel
I
r .Choose
y
.'·' .. ' ' .. ' ,·.56
Spesific Bank Revenue Report Flowchart For EMFA Bank Retail Banking System
2.5.1)Search By Customer
2.5.2)Sarch By Account
2.5.3)Search By Revenue Type 2.5.4)Cancel Revenued Customer Data
c=
~I
Revenued Account I I Datay
y
Revenue Type Data Revenue Report Information'
Date Based Revenue Report Flowchart For EMFA Bank Retail Banking System
Starting & Ending Dates lnfomation Date Based Revenue Report . 2.5.3.1)Cancel
58
APPENDIX I
Screen Ouputs
Figure 2:
Figure 3:
lJ.seroar;ne
Figure 4:
Figure 5:
Figure 6:
Figure 7:
Figure 8:
,,
(C. C:ciJ
~ 0Figure 11 :
Figure 12:
l .
I
I
Figure 13:
I
I
I
I
I
I
Figure 14:
I
I
I_· .. .:
,.
r·
I, .
I
I
I
I
f
I
65Figure 15:
Figure 16:
J
Figure 19:
Figure 20:
Fi~ure21.:
Figure
22:
Figllr_e
23 : .
Figure 24:
Figure 25:
Figure
26:
Choose Customer
Figure 28:
I
l -
I
I
I··· . .'.. ·· .
..L-
I· . .I
I
72
Web Sites: 1) otn.oracle.com 2) Java.sun.com 3) Forum.sun.com
E-Books:
1) Thinking In Java 2) Java CookbookBook:
REFERANCES
Oracle Solution Database. Java Developer Community.
Forum to solve Java Runtime problems.
Bruce Eckel Ian Darwin
www.bruceeckel.com
O'Reilly Publishing June/2001
APPENDIX
II
,\ Source Codes Main.Java I** Main.java
** Created on December 1, 2005, 9:14 PM
** To change this template, choose Tools
I
Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
*Open.You can then make changes to the template in the Source Editor.
*/
package c;
/**
** @author Cheyenne
' */ 'public class Main {
I**
Creates a new instance of Main */
public Main() {
}
' ' ' ' . /** ··. ' . . . ' .
. . *:@par~m·arg$ the ¢qn,tr\.a_htj line c3rglJrti~11ts
.
.
~,:
'.':'
,'.' - ,' ,' ,·; ; ; ; ; ; ;
.· '; ;
. .• ,' ,• ,• .; ;
.•
;
.· .. ···. public staticvoid•main(Strihg[l.args){: ·
.: · ..
II
TODO code applicatibh'logic
here.:
· ·· Usrpass·nusrpass===heWUsrpasso:·
nusrpass.setIitlet'PleaseEnter Your Usernameand Password");
... nusrpass.setSize(420,130)';
, nusrpass.setvlsiblertrue );
I*
Cimp x=new Cimp();
x. setVisible(true);
*/ } }
Usrpass.Java I* * Usrpass.java * * Created on December 4, 2005, 11 :04 AM */ package c; import java.sql.*; /** * * @author Cheyenne */
public class Usrpass extends javax.swing.JFrame { private static String usr="";
private String pass="''; private String rank;
I** Creates new form Usrpass */ public Usrpass() { · initComponents(); ·· jButton4.setVisible(false); ... this .. setLocation(200; 200); . ; .
'.-}
-: publibstaticfStrihggetdserO{ ···• · return usr; ·}
/**ThJsrnethod is called from within the constructor to
' ' ' *
in itializethe
form'. '* WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor.
*/
II <editor-fold defaultstate="collapsed" desc=" Generated Code"> private void initComponents() {
jTextField1 = new javax.swing.JTextField();
jPasswordField1 = new javax.swing.JPasswordField(); jlabel1 = new javax.swing.JLabel();
jlabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jlabel3 = new javax.swing.JLabel();
jlabel4
=
new javax.swing.Jlabel();jlabel5
=
new javax.swing.Jlabel();jlabel6
=
new javax.swing.Jlabel();jButton2
=
new javax.swing.JButton();jPasswordField2
=
new javax.swing.JPasswordField();jPasswordField3
=
new javax.swing.JPasswordField();jlabel7
=
new javax.swing.Jlabel();jlabel8
=
new javax.swing.Jlabel();jButton3
=
new javax.swing.JButton();getContentPane().setlayout(null); setDefaultCloseOperationUavax.swing.WindowConstants.EXIT_ON_CLOSE); setResizable(false); getContentPane().addUTextField1 ); jTextField 1.setBounds(120, 20, 90, 19); getContentPane().addUPasswordField 1 ); jPasswordField1 .setBounds(120, 50, 90, 20); jlabel1.setText(''Username"); · getContentPane().addULabel1); jlabel1.setBounds(30, 20, 80, 14); jlabel2,setText(''Password''); getContentPane(). add-U Label2); jLabel2.setBounds(30; 50, 70, 14);
' , , ' ' , , , , ' ' ' ' , ..
·.. ·J·Buttoht.setText"".Connect'').-·
'··. '·.,·'·.,·'·.·. '·., '·.c '·.·. '·., '.·. '·., ·.·. '·.·. -:.·· '·., '·,, '·., '·. '·.·.·':.· '·_,- ·,c_' .. ;\_._ ·--~·--.,·':·- '·:·- .~·\;:a'.'·· .. -: :':' .·.· '.·; :·- .":. :·- ·-.··'·.·:··:-': '·:···'·.·_· .· '. '·. '. ·'·.·.···.·.· ·.·.···.·- ·:.·- '>' '·.·. ·: ·. · ..
j Button
1.
addActioriListeher(new
java. awt.event.Action Listenert) {: , · , public.void
actidriPerforrnedUava.awt.everit.ActionEventevt): { · ·· __ ··. j8ufton1ActionPerf6rmed(evt);~}
. }); getContentPane(). addUButton 1); ji3utton1.setBou·nds(2iO'.20,'
90,
50); jButton5.setText(''EXIT"); jButton5.addActionListener(new java.awt.event.Actionlistener() {public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt); } }); getContentPane().addUButton5); jButton5.setBounds(320, 20, 90, 50); jButton4.setText("Continiue");
j Button4. addAction Listener( new java. awt. event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt);
}
}); getContentPane().addUButton4); jButton4.setBounds(220, 20, 90, 130); jlabel3.setText("User Description :"); getContentPane().addULabel3); jlabel3.setBounds(30, 100, 110, 14); jlabel4.setText(" "); getContentPane().addULabel4); - jlabel4.setBounds(160, 100, 140, 14); jlabel5.setText("User Type getContentPane().addULabel5); jlabel5.setBounds(30, 130, 110, 14); ·")·.
' JLabel6:setText(" ");getContentPane(). add U Label6);
jlabel6.setBounds(160, 130, 140, 14); jButton2.setText("Change Password"); ·· jButton2.setMaximumSize(new java;awt;Dimension(73,23)); jButton2.setMinimumSize(ne.wjava.awt.Dimension(73, 23));
J
"Button2.set0paq· uetfalse): ' ' .. ' .. '.,.' .... '. '. ' ' . ' ' . ' .. ·' ..._ J
1;31:1ttQ04.$~tP:r~f¢(r~9$ize(H~WJa.v_a_:a.wt~ pirrie.nsion(73, 23)); - j8utto112,:add.Action Lisferier(rieWJavcLaWt.eVerifActionUstener(} {_ .••. , .pubflc
v0idaCtionPerforrriedUaVa'.awfeve11fActic:mEvent evt)I.
'jButtbn2AcfionPerformed( evt):r -
});
ge,tConte,ntPane().c3d.dUButton2);
. jButlon2.setBounds(30, 153,
zso,
so}; .
getContentPane() ;addU Password Field2);
jPasswordField2.setBounds(210, 220, 90, 20);
getContentPane().addUPasswordField3);
jPasswordField3.setBounds(210, 250, 90, 20);
jlabel7.setText("New Password getContentPane(). add U Label?); jlabel7.setBounds(30, 220, 180, 14);
·")· . '
jlabel8.setText("Re enter New Password getContentPane().addULabel8);
·").
. '
jlabel8.set8ounds(30, 250, 170, 14); jButton3.setText("Apply Changes");
j Button 3. addAction Listener( new java. awt. event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt); } }); getContentPane().addUButton3); jButton3.setBounds(30, 280, 280, 23); pack();
}
II
</editor-fold>private void jButton3ActionPerformedUava.awt.event.ActionEvent evt) {
Connection con; String Ssql=""; Statement stm;
Resultset
sonuc; String ur=""; String ursn=""; String as=""; Stringsa=:":
String u="";. String us=""; . Stri_ng_ne_wpass=='II!; ... . $tring·ri~WP~$S2==
1"'; St'·'.,,,,,,,, ·•'·•'1· ·;_;;j111'.·" ·• ,· - .. ring.new.:,-, •. ; · .. , .Stri rig'.
riew2=''!\'.
int r; ·.-. try{
··c1as·s.forName("sun.jdbc .. odbc . .Jdbcodbclrrlver'');
.i..
catchjjava. lang. ClassNotF ound Exception e ){ System .err. print("ClassNotF ound Exception: "); System.err.print(e.getMessage());
}
newpass=jPasswordField2.getText().toUpperCase(); newpass2=jPasswordField3.getText().toUpperCase(); new1 =""'+newpass+""'; new2=""'+usr+""';Ssql="update users set usrsnm="+new1 +" where usrnm= "+new2+" ";
if (newpass.equals(newpass2)){ try { con = DriverManager.getConnection("jdbc:odbc:FC","ff', "f'); stm = con.createStatement(); stm.addBatch(Ssql); stm. executeBatch(); stm.close(); con.close(); this.setSize(420, 360); this.setVisible(true);
Ermes ermess=new Ermes("Password Changed", "Successful"); ermess.setVisible(true); } catch(SQLException ex) {
}
}else{ this.setSize(420, 360); this.setVisible(true);Ermes ermess=new Ermes("New Password Doesn't Match", "Wrong Password");
ermess.setVisible(true);
}
}
' ' . ' ' , ' ' ' ' . ' '
.. · ·.· private vold'jl3µ~cm?Ac:tion P~r"forrr,¢<:iUava. «?wt:~yeht . Action Event evt) {
.. · .. tnis.setSize(426;340);'. : : .·· . : . : :· .· .· .· : . : : : : : .· .· .· . . . .
• JButt6ri5.setSiZe(90,283); ·. this.setvisiblettrue);
· ... private void.jButton5ActionPerformedOava.awt.event.Action Event
evt)'].
Systerti.eX,it(O);
.
}
.... '' ·..
· .. ··. ·.·.·. ·.· ·.·.·private static final boolean isNumber(final Strings) { final char[] numbers= s.toCharArray();
for (int x = O; x
<
numbers.length; x++) {final char c = numbers[x];
if ((c >= 'O') && (c <= '9')) continue;
return false;
II
invalid}
return true; // valid
}
private void jButton4ActionPerformedUava.awt.event.ActionEvent evt) {
jButton5.setSize(55, 120); System.out.println(rank); if (rank.equals("ADMIN")){
Managermenu mmenu=new Managermenu(); mmenu.setTitle("Main Menu");
mmenu.setSize(400, 400); mmenu.setVisible(true); }else{
Menu anamenu=new Menu(); anamenu.setTitle("Main Menu"); anamenu .setSize( 400, 250); anamenu .setVisible(true);
}
this.setVisible(false); /,.- }private void jButton1ActionPerformedUava.awt.event.ActionEvent evt) {
Boolean usernamecheck=true; Boolean passwordcheck=true; Connection con; String Ssql=""; Statement stm; ResultSet sonuc; String ur=""; String ursn=""; String as=""; String sa=""; String
u=":
String us="";. intr:
' · ..
:try{
'ClassJorName(''sun.jdbc.odbc.JdbcOdbcDriver"); catch(java·.1an·g·.c1assNOtFouhdException. e) { System .err.print("C lassblotf'ou nd Exception: ");:system.'err:pririt(e.getMes·sage());. . . .
}
u=j Iextf ield
1
:getT ext(). toU pperCase();if (u==""){
usernamecheck=false;
Ermes ermess=new Ermes("Username is Missing", "Please Fill Username Field"); ermess. setVisible(true); } us=jPasswordField1 .getText().toUpperCase(); if (us==""){ passwordcheck=false;
Ermes ermess=new Ermes("Password is Missing", "Please Fill Password Field");
ermess.setVisible(true);
}
jPasswordField1 .setText('"'); ur=""'+u+""'; ursn=""'+us+""'; if ( (usernamecheck==true )&&(passwordcheck==true) ){Ssql="select * from users where usrnm= "+ur+" and usrsnm= "+ursn+" order by USRID"; try { con = DriverManager.getConnection("jdbc:odbc:FC","ff',
"f');
stm = con.createStatement(); sonuc = stm.executeQuery(Ssql); r=O; while (sonuc.next()){ r=r+1; as=sonuc.getString(4); jlabel4.setText(as); sa=sonuc.getString(5); rank=sa; jlabel6.setText(sa);}
... if (r!:;:Q){ this,setSize(420;240);· jButton5.setSize(90, 183); ·· jButtontsetVisible(false); ... jButton4i~~tVisible(trLJe); . 'Label2'.setVisible(false)•· .. ,1
'·· .. • • · .. • .
.... ,JPassw6rdF.iEi1cH.setVisib1e(fa1se);••• · fhis.setVisible(true);, , .: :usr=u;. ·.
pass=us;' strn. closet);' . con.closei):
}else{Ermes ermess=new ErmesCUser
&:
Password Doesn't Match", "WrongPassword"); · · ermess.setVisible(true); stm.close(); con.close();
}
} catch(SQLException ex) {}
}
}
86
/**
*
@param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Usrpass().setVisible(true);
}
});
}
II
Variables declaration - do not modify
private javax.swing.JButton ~Button1;
private javax.swing.JButton ~Button2'.
private javax.sw!ng.JButton ~Button3'.
private javax.sw1ng.JButton
~Button4'.
private javax.swing.JButton_
JButton5,
private javax.swing.JLabel ~Label1;
private javax.swing.JLabel ~Label2;
private javax.sw!ng.JLabel ~Label3'. ...
private javax.sw~ng.JLabel
~Label4'. ..
private javax;sw1ng.JLabel
J_Label5,
?~\\li\~)~"'l'd"'i~\\\~~'
private
jaya_x,swir:,g)
Label
jlabel7;_ . '. ...
. PT!V.i:it~J~v~~:\$Y,.,ing.,J,L9p~ULapE:il~{
· .. . . . .. .
· .. ·
, .... ·
· private{Javax.sw1ng;JPasswordt=ieid
JP~~swJrdFfe1d1>
· pfivatejavax-. swihg:'JPassword
Fieldj Password
Field2i .
privatejavax:swing.JPasswordFieldjPasswbrdField3;
· · prfvatejavax.swlnq.J'Textf'ield jTextFieldt;·
/lEnd ofvariables declaration
l.'
Menu.Java
I*
* Menu.java * * Created on January 28, 2006, 9:42 PM */ package c; /** * * @author Cheyenne */public class Menu extends javax.swing.JFrame { /** Creates new form Menu*/
public Menu() { initComponents();
this.setlocation(200, 200);
}
/** This method is called from within the constructor to * initialize the form ..
* WARNING:
Do
NOT modify this code. The content ofthis method is* always reqenerated by the Form Editor.
*I
II
<eclito.r-Jold defaultstate=vcollapsed" .desc=" Generated Code.">. privat~yoitl·ir:,itG<:>rnpon~nt?O
t
.
. ··; Jsuttoni:f:new'..]avax:swing'.Jsutfon(Y;
· .. ·JButtori3.
==heWJavax.swrng:.JBdttonU; j6uttori4'= 11ewjavax.swing.JButton();. jButtoh8 ·==
new
jaVax.swing.JButtoh(); · ·jButton·11 = newjavax.swing.JButton();
.. jL.abelf
=
neWJava·x:swing.JLabel();_ .. jS(Jtton1 = neWjaVax.swing.JB(Jttqn();.. jEh.itfon6 ~ nev/javax.swing.JB.utton(); ..
getContentPane().setlayout(null);
setDefaultCloseOperationUavax.swing. WindowConstants. EXIT_ ON_ CLOSE);
setCursor(new java.awt.CursorUava.awt.Cursor.DEFAUL T _ CURSOR));
jButton2.setText("Exit");
j Button2. addAction Listener( new java. awt.event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
j Button2Action Performed( evt);
}
});
getContentPane().addUButton2);
jButton2.setBounds(210, 50, 80, 60); jButton3.setText("Add Customer");
j Button3. addAction Listener( new java. awt.event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
}); getContentPane().addUButton3); jButton3.setBounds(20, 50, 180, 23); jButton4.setText("Credit Menu");j Button4. addAction Listener( new java. awt.event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
}); getContentPane().addUButton4); jButton4.setBounds(20, 110, 180, 23); jButton8.setText("Fund Transfers"); .. jButton8.addActionlistener(new java.awt.event.Actionlistener() {public void actionPerformedUava.awt,event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}'
.».
·.· .• ; g'§tConteiiti?~ii§().aBdusUtfona); :, .· '.jHutfon8 .• setBounds(20,t4n;
180/23); . . -. JButtontt:setText("About");···· j Button 1.
t,
addAction Listener( new [ava .awt.event.Action Listener() {public.void
actionPerfcihilea(java.awt.event.ActionEvent.evt) { jButton11ActionPerformed(evt); ·'··.}'
''' '' '''''''''' ''' }); getContentPane().addUButton 11 ); jButton11.setBounds(210, 120, 80, 70); jlabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); jlabel1.setHorizontalAlignmentUavax.swing.SwingConstants.CENTER); jlabel1.setText("Menu"); getContentPane().addULabel1 ); jlabel1.setBounds(110, 10, 130, 22);jButton1 .setText("Account Menu");
j Button 1 . addAction Listener( new java. awt. event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt);
}
});getContentPane().addUButton1);
jButton1 .setBounds(20, 80, 180, 23);
jButton6.setText("Reports");
j Button6.
addAction
Listener(
new java. awt.
event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});getContentPane().addUButton6);
jButton6.setBounds(20, 170, 180, 20);
pack();
}
//</editor-fold>
private void jButton6ActionPerformedUava.awt.event.ActionEvent evt) {
II TODO add your handling code here:
Reports nreports= new Reports();
nreports.setTitle("ReportMenu");
· nreports.setSize(400,AOO); ·
.. nreports.setvisiblettrue):
.
. · ., •... private v6idj ButtoritAcfibh Performed
(iava:
awt.eveht.Action Event evt) {
II TODO
addyou!
hahdlihg'c'ode'here:
· · · Aecouritrnenu
naceountrttenu=
new
Accountrnenui):
naccountrnenu.seffitlet'Account Menu'');
.. naccoUhfmenu.setSize(420,
210);.
nacccuntmenu.setvlsiolettrue): .
}
private void jButton11ActionPerformedUava.awt.event.ActionEvent evt) {
II TODO add your handling code here:
About nabout= new About();
nabout.
setTitle("Abo
ut");
nabout.setSize(510, 550);
nabout.setVisible(true);
}
private void jButton3ActionPerformedUava.awt.event.ActionEvent evt) {
II TODO add your handling code here:
Addcustomer ncustomer= new Addcustomer();
ncustomer.setTitle("Add Customer");
ncustomer.setSize(510, 400); ncustomer.setVisible(true); }
private void jButton8ActionPerformedUava.awt.event.ActionEvent evt) {
II
TODO add your handling code here:Addorder naddorder= new Addorder(); naddorder.setTitle("Add New Order"); naddorder.setSize(510, 400);
naddorder. setVisible(true);
}
private void jButton4ActionPerformedUava.awt.event.ActionEvent evt) {
II
TODO add your handling code here:Creditmenu ncreditmenu=new Creditmenu();
ncreditmenu.setTitle("Credit Menu");
ncreditmenu.setSize(350, 200); ncreditmenu.setVisible(true);
}
private void jButtori2ActionPerformedUava,awt.event.ActionEvent evt) {
II
TODO add your handling code here:System.exit(O);
}
/**
*@param args thecommand line arguments
..
~..
. .·., publtc .statlc.vold: main(String>args[·])··{···
-- .• ··.·. · · ·._.···.·- ·y •
tjat~:~wFEv:entbi:iJue:intOkJL~te~(riJw
RunnabieU{ ·
·.··· ·.·· . ·•· .. ' b·· 1 ··· . ·.· . ·•·. ·'"d , · ()·•·{· ::'::pu.1cvo1
runu«
·, new
Menu(}.setVisible(true);•·}..
... .});
...}
.. It
Variables 'deda·rafion-donot
modifyprivatejavax.swing.JButton jButton1;
private javax.swing.JButton jButton11; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JButton jButton4; private javax.swing.JButton jButton6; private javax.swing.JButton jButton8; private javax.swing.Jlabel jlabel1;
II
End of variables declaration}
Managermenu.java I*
* Managermenu.java
** Created on February 13, 2006, 6:03 AM
*/package c;
import javax.swing.*;
/**
** @author Cheyenne
*/public class Managermenu extends javax.swing.JFrame {
I**
Creates new form Managermenu */
public Managermenu() {
initComponents();
this.setlocation(200, 200);
}
/** This method is called from within the constructor to
* initialize the form ..
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor;
*/
II
<editor-fold'defaultstate='collapsed'' .desc=" Generated Code."> .
.. ··privateVoid
ihitComponents(}{>
y ."' , .. , . . .. :'.}tabe1f
;{'.hew:Java,c;s~·ihg:JC~BeW);: '.'.'
.
J
Button
1:
=.=hew:
Javax.svvingJButfohO;
<
· JButton2·=.newjavax~swing.JButton();
· ··· JButtoh3
=
hew jaVax'.swing.JBUtton();
jButton4 = new javax.swing.JButton();
· .... jButton5=riewjavax.swirig.JButtori(),.
jl3LJtton6 = new javc1x.swing.JButton(); .
. . jButtOn7·
~new
Javax·.swing.'Ji3utton();'
.
getContentPa ne()
.setlayout( nu
11);
setDefaultCloseOperationUavax.swing.WindowConstants.EXIT_ON_CLOSE);
jlabel1.setFont(new java.awt.Font("Tahoma", 1, 14));
jlabel1.setHorizontalAlignmentUavax.swing.SwingConstants.CENTER);
jlabel1.setText("Managerial Menu");
getContentPane().
add
U Label 1);
jlabel1.setBounds(90, 10, 180, 17);
jButton1 .setText("Add New User");
jButton1 .addActionlistener(new java.awt.event.Actionlistener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
getContentPane().addUButton1 ); jButton1 .setBounds(40, 60, 160, 23); jButton2.setText("Add New Credit Type");
j Button2. addAction Listener( new java. awt.event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
getContentPane().addUButton2);
jButton2.setBounds(40, 90, 160, 23); jButton3.setText("Add New Bank");
j Button3. addAction Listener( new java. awt. event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton3Action Performed( evt);
}
});
getContentPane().addUButton3);
jButton3.setBounds(40, 120, 160, 23);
.jButto114,s~tText(''Add New. Country");". . . . ...
.. J~uttcm4;ad_qf\ctt9r,~i$t.~n~t(r1¢YfJ9y~'.~.V·{t~Y~ntA9tiqnlist~nerO { , . : .;:public\,oidactiohPerformedUaVa.awt.eventAcUonEvent evt)f , . <:jBuft6n4AdtionPerformed(evt);: •. ·· . . .
r
. }); . ' getCo.htentPane(.).addUButfon4); . j8utton4.setBounds(40, 150,)60, 23);_ jButton5.getText("Switch To UserMenu");j Buttons. addAction Listenert new java. awt.event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
getContentPane().addUButton5);
jButton5.setBounds(40, 210, 160, 50); j B utto n6. set Text(" Exit");
j Button6. addAction Listener( new java. awt.event.Action Listener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
j Button6Action Performed ( evt);
}
});
getContentPane(). add U Button6); jButton6.setBounds(210, 60, 80, 200); j Button 7. setT ext("Manageria I Reports");
jButton?.addActionlistener(new java.awt.event.Actionlistener() {
public void actionPerformedUava.awt.event.ActionEvent evt) {
jButton?ActionPerformed(evt); } }); getContentPane().addUButton7); jButton7.setBounds(40, 180, 160, 23); pack();
}
II
<zeditor-fold>private void jButton? ActionPerformedUava.awt.event.ActionEvent evt) {
II
TODO add your handling code here:Managerreport nmanagereport=;:new Managerreport();
· nmanagereport.setTitle(''Managerial Reports'');
nmanagereport.setSize(400,
200);
nmanagereport. setVisible(true);
. J.
· pri\i;ate"v8idjaJtt8ri5Acfibrii=>~rtbidl~dda.va.a\ilt:.i~.;eht:ActionEventevt)
f
<tt
TODO
add\iourhandling'. code'.herei:<;· ..
Menu anarnenu=riew MehuO: · ·anamenu.setTitle(''Maih'Menu'.'); .anamenu.setSize(400, 250); . ariarneful.setvlslblettrue):
,}
private void jButton6ActionPerformedUava.awt.event.ActionEvent evt) {·
l!
TODO add your handling code here:System. exit( 0);
}
private void jButton4ActionPerformedUava.awt.event.ActionEvent evt) {
II
TODO add your handling code here:Country ccountry=new Country(); ccou ntry. setTitle("Countries"); ccountry.setSize(400, 200); ccountry .setVisible(true);
}
private void jButton3ActionPerformedUava.awt.event.ActionEvent evt) {
II
TODO add your handling code here:Banks nbanks=new Banks(); nbanks.setTitle("Banks"); nbanks.setSize(420, 245); nbanks.setVisible(true);
}
private void jButton2ActionPerformedUava.awt.event.ActionEvent evt) {
II
TODO add your handling code here:Addcredittype ctype=new Addcredittype(); ctype.setTitle("Create New credit type"); ctype.setSize(410, 300);
ctype.setVisible(true); }
private void jButton1ActionPerformedUava.awt.event.ActionEvent evt) {
II
TODO add your handling code here:Users nusers= new Users(); nusers.setTitle(''Users"); nusers.setSize(380, 290); nusers.setVisible(true); }
/**
*
@param args the command line arguments. *I "'
· public statlc.void main(Stririg
args[l) {. .
.
··Jay?:awtE;v_e:ntQV~LJE3.iny9~_~1/c:1ter(rj~vyRqnnap1eof.· .. · .; ; , .. ··· '.'; <puhiicV6ict.run(Yt·<' -
'.;:t<'.;'.'.' :'.:' , ··· · · ·· ·· ·· ·· ·· ·· ·· ·
<neW·Mahagerrrier\d().§etVisible(tnie); ·}
' ·" ''})''',.
'}
'· · II
Variables
declaration - do notmodify
private Javax.·swirig.JButt6ri j'sutton1; ·private·javax.swing.JButtonjButton2;
private javax,swing.JButton jButton3; private javax:swing.JButton jButton4; private javax.swing.JButton jButton5; private javax.swing.JButton jButton6; private javax.swing.JButton jButton7; private javax.swing.Jlabel jlabel1;