Professional Documents
Culture Documents
Prepared by:
SANDEEP KUMAR
Date: June 26th, 2015
1
Revision History
Date Version Revision comment Updated By
26-June-2015 1.0 Initial creation Sandeep Kumar
Sign-Off
Name Purpose Date Comment
Suraj Ramesh Review
Kshitij Gupta Review
Bhushan Review
Mithilesh K Signature
2
1.0 Requirement Overview
Bank Guarantee Application (BGA) document is required for sending along with the LC
application but the System is not supporting.
For solving this problem, system will introduce Bank Guarantee Application Form under
finance section.
This BGA form will accept all the required data as an input for generating the BGA. After
saving the BGA detail user can generate draft as well as original.
3
3.1 Class Diagram
4
3.2 Controller
/* This is the main controller which receives all the request from the user and gives
the response back to the user */
BankGuaranteeAppController
/* This method is responsible for identifying the corresponding handler based on
request */
public String showBankGuaranteeAppForm(){}
/* This method is responsible for show inbox data of Bank Guarantee Application */
public String showInbox(){}
/* This method is responsible for save the Bank Guarantee Application data */
public String saveBankGuaranteeApplication(){}
/* This method is responsible for update the Bank Guarantee Application data */
public String updateBankGuaranteeApplication(){}
/* This method is responsible for generate the Bank Guarantee PDF document */
public String generateBankGuaranteePdf(){}
/* This is the intermediate controller which receives all the request from immediate
parent controller */
WinswayBankGuaranteeAppController
/* This method is responsible for identifying the corresponding handler based on
request */
public String showBankGuaranteeAppForm(){}
/* This method is responsible for show inbox data of Bank Guarantee Application */
public String showInbox(){}
/* This method is responsible for save the Bank Guarantee Application data */
public String saveBankGuaranteeApplication(){}
5
/* This method is responsible for update the Bank Guarantee Application data */
public String updateBankGuaranteeApplication(){}
/* This method is responsible for generate the Bank Guarantee PDF document */
public String generateBankGuaranteePdf(){}
/* This is a Rabobank specific handler. This handler is responsible for perform the
operation related to Rabobank. */
RabobankBankGuaranteeController
/* This method is responsible for populating data on the page */
public String showBankGuaranteeForm(){}
/* This method is responsible for save the Bank Guarantee Application data */
public String saveBankGuaranteeApplication(){}
/* This method is responsible for update the Bank Guarantee Application data */
public String updateBankGuaranteeApplication(){}
/* This method is responsible for generate the Bank Guarantee PDF document */
public String generateBankGuaranteePdf(){}
3.3 Service
BankGuaranteeAppService
/* This service is responsible for saving the Bank Guarantee Application data */
void saveBankGuaranteeApp(BankGuaranteeApplication bga, User user) throws Exception;
/* This service is responsible for updating the Bank Guarantee Application data */
void updateBankGuaranteeApp(BankGuaranteeApplication bga, User user) throws Exception;
6
/* This service is responsible for retrieves Bank Guarantee Application data based
on Transaction Id*/
BankGuaranteeApplication getBankGuaranteeAppByTxnId(Integer txnId) throws Exception;
/* This service is responsible for retrieves Bank Guarantee Application data based
on Id */
BankGuaranteeApplication getBankGuaranteeAppById(Integer bgaId)throws Exception;
/* This service is responsible for generating PDF for Bank Guarantee Application
document */
boolean generateBankGauranteeAppPdf(BankGuaranteeApplication bga, User user)
throws Exception;
3.4 DAO
BankGuaranteeAppDao
void saveBankGuaranteeApp(BankGuaranteeApplication bga);
void updateBankGuaranteeApp(BankGuaranteeApplication bga);
BankGuaranteeApplication getBankGuaranteeAppByTxnId(Integer txnId) throws Exception;
BankGuaranteeApplication getBankGuaranteeAppById(Integer bgaId) throws Exception;
3.6 POJO
com.singaporeinfotech.trading.hibernate.orm.BankGuaranteeApplication.java
3.7 Constant
BankGuaranteeAppConstant.java
7
3.8 XHTML
BankGuaranteeApplication.xhtml
BankGuaranteeApplicationView.xhtml
BankGuaranteeApplicationSuccess.xhtml
BankGuaranteeApplicationSuccessView.xhtml
BankGuaranteeApplicationPdfView.xhtml
3.9 Hbm
BankGuaranteeApplication.hbm.xml
8
'zONIcQ75OuwQYnvwiKH548kPw1msb18e60mDNGYMISgxKI3oj0i6Dhk0o8EZEUKMXX8kUJ1/tn9YV
pag4nI56OeHUZp0WiDyE7ckNSNQr7etLXKDE4VQgw==');
9
BANK_GUARANTEE_DOCUMENT_ORIGINAL_GENERATED`),
'BANK_GUARANTEE_DOCUMENT_ORIGINAL', 'Bank Guarantee Document Original Generated', 'Y', 'Y',
'Y');
10
form attached or not.
outside_bank_charges CHAR(1) N N ‘F’ All bank charges outside
Hong Kong or not.
outside_bank_chrg_applicant CHAR(1) N N ‘F’ Outside bank charges for
the account of applicant
or beneficiary.
is_debit_account_for_charges CHAR(1) N N ‘F’ Debit our account for
any charges.
is_debit_account_for_margin CHAR(1) N N ‘F’ Debit our account for
margin held.
account_no_for_charges VARCHAR(45) N N Account no for any
chages
account_no_for_margin VARCHAR(45) N N Account no for any
margin held
created_by INT(11) Y N Store created user id
created_date TIMESTAMP Y N CURRENT Store created date time
_TIMESTA
MP
updated_by INT(11) Y N Store updated user id
updated_date TIMESTAMP Y N CURRENT Store updated date time
_TIMESTA
MP
format_name VARCHAR(45) Y N Format Name
reference_number VARCHAR(45) N N
custom_reference_number VARCHAR(45) N N
global_reference_number VARCHAR(45) N N
internal_reference_number VARCHAR(45) N N
4.0 Testing
Prerequisite – Transaction id selection is mandatory
4.1 Save BGA
4.2 Update BGA
4.3 Retrieve BGA
4.4 BGA PDF generation
11
4.5 BGA PDF retrieval by transaction id
4.6 BGA PDF retrieval by bga id.
5.0 Appendix
bga_initial_script.sql
Database Script
12