31
Albert Kuo [email protected]

Form Bean Creation Process for NIG System

Embed Size (px)

Citation preview

Page 1: Form Bean Creation Process for NIG System

Albert Kuo

[email protected]

Page 2: Form Bean Creation Process for NIG System

• Prerequisites

• Form Bean Creation Process

• Example

• Single table

• Multiple tables

Agenda

Page 3: Form Bean Creation Process for NIG System

• Download JDK 1.6 from http://www.java.com/zh_TW/ and set up Java environment

• Download Eclipse from http://www.eclipse.org/downloads/

• Download tortoiseSVN from http://tortoisesvn.tigris.org/

• Check out NIG project from http://10.144.113.114/svn/nig/trunk/SDS

• SDS Document can be found in trunk\SDS\deliverable

• Schema document can be found in trunk\SDS\schema\index.html

Prerequisites

Page 4: Form Bean Creation Process for NIG System

15C – tables 23H – user interfaces

Mapping UI columns with

Schema Document

Mapping Schema Document with

entity class

Create form bean class

Copy mapping attributes from

entity class to form bean

Generate setters/getters

Form Bean Creation Process

Page 5: Form Bean Creation Process for NIG System

Single table

Page 6: Form Bean Creation Process for NIG System

• If we would like to create a form bean NIG670W (獎金分配速算公式), the process is as bellowing:

Scenario

Page 7: Form Bean Creation Process for NIG System

• File path: trunk\SDS\deliverable

Check 15C.doc

Page 8: Form Bean Creation Process for NIG System

• File path: trunk\SDS\deliverable

Check NIG-23H-670W.doc

Page 9: Form Bean Creation Process for NIG System

• File path: trunk\SDS\schema\index.html

Schema Document

Page 10: Form Bean Creation Process for NIG System

Schema Document – cont.

Page 11: Form Bean Creation Process for NIG System
Page 12: Form Bean Creation Process for NIG System

Create Form Bean Class

Page 13: Form Bean Creation Process for NIG System

Create Form Bean Class – cont.

Copy mapping attributes

Paste to NIG670DataBean

And add fn attribute to each data bean

Page 14: Form Bean Creation Process for NIG System

Generate setters/getters

Right click Source Generate Getters and Setters

Page 15: Form Bean Creation Process for NIG System

Generate setters/getters – cont.

Select all OK

Page 16: Form Bean Creation Process for NIG System

Finally, add serial version ID Left click on this warning icon

Page 17: Form Bean Creation Process for NIG System

Multiple tables

Page 18: Form Bean Creation Process for NIG System

• If we would like to create a form bean NIG640W (列印檢舉人獎金應發放月報), the process is as bellowing:

Scenario

Page 19: Form Bean Creation Process for NIG System

• File path: trunk\SDS\deliverable

Check 15C.doc

Page 20: Form Bean Creation Process for NIG System

• File path: trunk\SDS\deliverable

Check NIG-23H-680W.doc

Page 21: Form Bean Creation Process for NIG System

• File path: trunk\SDS\schema\index.html

Schema Document

Page 22: Form Bean Creation Process for NIG System

Schema Document – cont.

Page 23: Form Bean Creation Process for NIG System
Page 24: Form Bean Creation Process for NIG System

Create Form Bean Class

Page 25: Form Bean Creation Process for NIG System

Create Form Bean Class – cont.

Page 26: Form Bean Creation Process for NIG System

Create Form Bean Class – cont.

Right click Source Generate Delegate Methods

Page 27: Form Bean Creation Process for NIG System
Page 28: Form Bean Creation Process for NIG System
Page 29: Form Bean Creation Process for NIG System
Page 30: Form Bean Creation Process for NIG System
Page 31: Form Bean Creation Process for NIG System

Finally, add serial version ID Left click on this warning icon