Upload
abhishek
View
216
Download
0
Embed Size (px)
Citation preview
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 1/16
Oracle Developer 2000 CourseHands On Exercise for Build Forms I
Created On : 03/28/2000Created By : Gerard S. TuazonLast Modi fied : 03/30 /2000
Objective
Construct a form modue/!ro"ram t#at $i maintain t#e !ersona and !ayro data of eac# indi%idua em!oyee. T#e !ro"ram s#oud ena&e a user to easiy %ie$and u!date eac# em!oyee's detaied !ayro fie( $#ic# incudes t#e foo$in" information:
- )m!oyment detais- *ersona information- Saary information- *ayro earnin" information- *ayro deduction information- *ayro ad+ustment information
-Lea%e &aances
,n order for a user to effecti%ey maintain suc# detaied information( t#e !ro"ram s#oud #a%e t#e ca!a&iity to !erform in-uiries and u!dates on t#e !ayro fie.Lie$ise( t#e !ro"ram s#oud faciitate t#e creation of ne$ em!oyee fies as $e as t#e remo%a of od !ayro fies $#en necessary.
Tables sed
Ta&e ame : )M*LO1)Tescri!tion : Master ta&e of em!oyee records
Column !ame Datat"pe Description
MO 45C65279 *rimary ey( OT ;LL( )m!oyee man num&er
O<<,C)1CO) 45C652789 )m!oyee office code<,5STM) 45C65272=9 <irst name of em!oyee
M,L)M) 45C6527209 Midde name of em!oyee
LSTM) 45C6527209 Last name of em!oyee
T, 45C6527>9 Ta?i identification num&er
SSSO 45C6527@09 SSS num&er
*G,B,G 45C6527@29 *a"i&i" num&er
;,O1M)MB)5 C657@9 S!ecifies if em!oyee is a union mem&er
*5O4<1M)MB)5 C657@9 S!ecifies if em!oyee is a !ro%ident fund mem&er
*G5O;* C657@9 *ayro "rou! of em!oyee
)M*LT) T) ate of em!oyment
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 2/16
5)G;L1T) T) 5e"uarization date
AOBL)4)L C65729 Ao& e%e of em!oyee
Ta&e ame : *)5SOLescri!tion : etai ta&e of em!oyee !ersona information
Column !ame Datat"pe Description
MO 45C65279 *rimary ey( OT ;LL( )m!oyee man num&er
6OM)5 45C6527@009 6ome address of em!oyee
6OM)*6O) 45C6527@=9 6ome tee!#one num&er of em!oyee
B,5T6T) T) ate of &irt# of em!oyee
B,5T6*LC) 45C6527309 *ace of &irt# of em!oyee
C,4,LSTT 45C652739 Ci%i status
S) C657@9 Gender of em!oyee
6),G6T ;MB)57=(29 6ei"#t in meters
),G6T ;MB)57=(29 ei"#t in io"rams
MOT6)5 45C6527209 Mot#er's name
M1BT) T) Mot#er's date of &irt#M15)M5S 45C6527209 5emars
<T6)5 45C6527209 <at#er's name
<1BT) T) <at#er's date of &irt#
<15)M5S 45C6527209 5emars
Ta&e ame : )M*1SL5escri!tion : etai ta&e of em!oyee saary information
Column !ame Datat"pe Description
MO 45C65279 *rimary ey@( OT ;LL( )m!oyee man num&er
*G5O;* C657@9 *ayro "rou! of em!oyeeBS,C1* ;MB5)7>(29 Basic !ay
S*)C1* ;MB)57>(29 S!ecia !ay
*)5<1* ;MB)57>(29 *erformance !ay
T)<5OM T) *rimary ey2( OT ;LL( )ffecti%ity date from
T)TO T) )ffecti%ity date to
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 3/16
Ta&e ame : );CT,Oescri!tion : etai ta&e of em!oyee deductions
Column !ame Datat"pe Description
MO 45C65279 *rimary ey@( OT ;LL( )m!oyee man num&er
)1CO) 45C65279 *rimary ey2( OT ;LL( eduction code)1MT ;MB)57>(29 eduction amount
T51T) T) Transaction date
Ta&e ame : )5,Gescri!tion : etai ta&e of em!oyee earnin"s
Column !ame Datat"pe Description
MO 45C65279 *rimary ey@( OT ;LL( )m!oyee man num&er
)51CO) 45C65279 *rimary ey2( OT ;LL( )arnin" code
)51MT ;MB)57>(29 )arnin" amount
T51T) T) Transaction date
Ta&e ame : A;STM)Tescri!tion : etai ta&e of em!oyee ad+ustments
Column !ame Datat"pe Description
MO 45C65279 *rimary ey@( OT ;LL( )m!oyee man num&er
A1CO) 45C65279 *rimary ey2( OT ;LL( d+ustment code
A1MT ;MB)57>(29 d+ustment amount
T51T) T) Transaction date
Ta&e ame : C)1);CT,Oescri!tion : 5eference ta&e of deductions
Column !ame Datat"pe Description
)1CO) 45C65279 *rimary ey( OT ;LL( eduction Code
)1)SC 45C6527209 eduction descri!tion
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 4/16
Ta&e ame : C)1)5,Gescri!tion : 5eference ta&e of earnin"s
Column !ame Datat"pe Description
)51CO) 45C65279 *rimary ey( OT ;LL( )arnin" Code)51)SC 45C6527209 )arnin" descri!tion
Ta&e ame : )M*1L)4)escri!tion : etai ta&e of em!oyee ea%es
Column !ame Datat"pe Description
MO 45C65279 *rimary ey@( OT ;LL( )m!oyee man num&er
L4)T*) 45C6527D9 *rimary ey2( OT ;LL( Lea%e ty!e code
)5)1L4) ;MB)57=(39 )arned ea%e in days
T51T) T) Transaction date
Ta&e ame : C)1L)4)T*escri!tion : 5eference ta&e of ea%es
Column !ame Datat"pe Description
L4)T*) 45C6527D9 *rimary ey( OT ;LL( Lea%e ty!e code
L)4)T*1)SC 45C65272D9 Lea%e ty!e descri!tion
Ta&e ame : C)1O<<,C)escri!tion : 5eference ta&e of office codes
Column !ame Datat"pe DescriptionO<<,C)1CO) 45C652789 *rimary ey( OT ;LL( Office Code
O<<,C)1)SC 45C6527309 Office descri!tion
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 5/16
#creen $a"out
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 6/16
<i"ure @: Main screen $it# too&ar in %ie$
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 7/16
<i"ure 2: Main screen $it# !ersona info ta& in %ie$
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 8/16
<i"ure 3: Main screen $it# saary info ta& in %ie$
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 9/16
<i"ure D: Main screen $it# earnin"s ta& in %ie$
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 10/16
<i"ure =: Main screen $it# deductions ta& in %ie$
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 11/16
<i"ure : Main screen $it# ad+ustments ta& in %ie$
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 12/16
<i"ure E: Main screen $it# ea%es ta& in %ie$
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 13/16
%rocessin& #pecifications
Main Screen (Master Record portion)
,nitia Be#a%ior - ;!on e?ecution of t#e !ro"ram( t#e M, $indo$ s#oud &e in a ma?imized state.
-T#e defaut menu and too&ar s#oud a!!ear on t#e to!most !ortion of t#e M, $indo$.
- T#e first em!oyee record s#oud &e retrie%ed/dis!ayed on screen.- T#e *ersona ,nfo ta& !a"e s#oud &e in %ie$.
a%i"ation- fieds s#oud &e na%i"a&e %ia ey&oard $it# t#e e?ce!tion of t#e LO4 &utton for Office Code and t#e Office descri!tion fied.- ey&oard na%i"ation direction s#oud &e from eftFtoFri"#t t#en f rom to!FtoF&ottom startin" $it# t#e Manno fied t#en endin" $it# t#e ;nion Mem&er
radio item.- ey&oard na%i"ation s#oud not "o to any of t#e ta& !a"es &ut cyce from Manno fied to t#e ;nion Mem&er radio item. T#e e?ce!tion is $#en t#e
user na%i"ates to any of t#e ta& !a"es usin" t#e mouse.
uery *rocessin"- fieds are -uerya&e e?ce!t for t#e Office descri!tion fied.- 5ecords s#oud &e sorted a!#a&eticay on astname( firstname( and middename fieds.
Transaction *rocessin"- urin" record creation( t#e defaut %aue for Manno s#oud &e t#e ar"est manno %aue in t#e ta&e incremented &y @. 6o$e%er t#e user may
o%erride t#is %aue.- ta& fieds are &an u!on creation of a ne$ master record.- fieds s#oud satisfy %aidation rues durin" record creation and u!date. ,f a fied is in%aid( dis!ay an error messa"e informin" t#e user of t#e
in%aid %aue and return t#e cursor to t#e in%aid fied.
4aidation- 4aue for manno s#oud &e uni-ue for a em!oyees and s#oud ne%er &e ;LL.- 4aue for office code s#oud &e restricted to t#ose %aues !ro%ided &y t#e LO4- 4aue for !ay"rou! s#oud ony &e t#e foo$in": M H Mont#y( H aiy( ) H )?!at.- T, s#oud &e > di"its in en"t# and s#oud &e com!osed of ony numeric c#aracters.
-SSS o. s#oud &e @0 di"its in en"t# and s#oud &e com!osed of ony numeric c#aracters.
- *a"i&i" o. s#oud &e @2 di"its in en"t# and s#oud &e com!osed of ony numeric c#aracters.- 5e"uarization date s#oud ne%er &e earier t#an em!oyment date.- Le"a %aues for Ao&e%e are from 0@ to @= ony.
Personal Info Tab (Detail Record portion)
a%i"ation- fieds s#oud &e na%i"a&e %ia ey&oard.- ey&oard na%i"ation direction s#oud &e from eftFtoFri"#t t#en from to!FtoF&ottom startin" $it# t#e #ome address fied t#en endin" $it# t#e remars
fied 7mot#er9.
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 14/16
- ey&oard na%i"ation s#oud not "o to any of t#e ot#er ta& !a"es nor to t#e Master record !ortion.
uery *rocessin"- fieds are -uerya&e.
Transaction *rocessin"
-5ecord creation s#oud not &e ao$ed if t#ere is aready a !reFe?istin" detai record. ou may ao$ record creation ony $#en t#e detai record&ecomes deeted or $#en t#ere is no !reFe?istin" detai record.
- fieds s#oud satisfy %aidation rues durin" record creation and u!date. ,f a fied is in%aid( dis!ay an error messa"e informin" t#e user of t#ein%aid %aue and return t#e cursor to t#e in%aid fied.
4aidation- Birt#date for &ot# mot#er and fat#er fieds s#oud not &e e-ua or ater t#an t#e em!oyee's &irt#date.
Salary Info Tab (Detail Record portion)
a%i"ation- fieds s#oud &e na%i"a&e %ia ey&oard.- ey&oard na%i"ation direction s#oud &e from eftFtoFri"#t t#en from !re%ious record to ne?t record.
-ey&oard na%i"ation s#oud not "o to any of t#e ot#er ta& !a"es nor to t#e Master record !ortion.
uery *rocessin"- fieds are -uerya&e.- 5ecords s#oud &e sorted &ased on t#e date from fied. Sort order is ascendin".
Transaction *rocessin"- 5ecord u!date is ony ao$ed on t#ose records #a%in" a ;LL date to fied.- ,f a ne$ record is &ein" created and t#e !re%ious record #as a ;LL date to fied( t#e date to fied of t#e !re%ious record s#oud &e automaticay set
to a date %aue t#at is one day earier t#an t#e current record's date from fied.- fieds s#oud satisfy %aidation rues durin" record creation and u!date. ,f a fied is in%aid( dis!ay an error messa"e informin" t#e user of t#e
in%aid %aue and return t#e cursor to t#e in%aid fied.
4aidation- Basic !ay( s!ecia !ay( and !erformance !ay s#oud not #a%e a %aue ess t#an zero. u %aues are not ao$ed aso.- ate from fied s#oud not &e ;LL.- T#e date from fied of any record s#oud a$ays #a%e a %aue t#at is ater t#an t#e !re%ious record's date to fied.- T#e record #a%in" t#e atest date from fied is t#e ony record t#at is ao$ed to #a%e a ;LL date to fied.
Earnings Tab (Detail Record portion)
a%i"ation- fieds s#oud &e na%i"a&e %ia ey&oard e?ce!t for t#e earnin" descri!tion fied.- ey&oard na%i"ation direction s#oud &e from eftFtoFri"#t t#en from !re%ious record to ne?t record.
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 15/16
- ey&oard na%i"ation s#oud not "o to any of t#e ot#er ta& !a"es nor to t#e Master record !ortion.
uery *rocessin"- fieds are -uerya&e e?ce!t for t#e earnin" descri!tion fied.- 5ecords s#oud &e sorted a!#a&eticay on t#e earnin" code fied.
Transaction *rocessin"- Transaction date s#oud dis!ay a defaut %aue of today's date durin" record creation. 6o$e%er t#e user may o%erride t#is %aue.- fieds s#oud satisfy %aidation rues durin" record creation and u!date. ,f a fied is in%aid( dis!ay an error messa"e informin" t#e user of t#e
in%aid %aue and return t#e cursor to t#e in%aid fied.
4aidation- 4aue for earnin" code s#oud &e restricted to t#ose %aues !ro%ided &y t#e LO4.- mount s#oud &e "reater t#an 0.
Deductions Tab (Detail Record portion)
a%i"ation- fieds s#oud &e na%i"a&e %ia ey&oard e?ce!t for t#e deduction descri!tion fied.
-ey&oard na%i"ation direction s#oud &e from eftFtoFri"#t t#en from !re%ious record to ne?t record.
- ey&oard na%i"ation s#oud not "o to any of t#e ot#er ta& !a"es nor to t#e Master record !ortion.
uery *rocessin"- fieds are -uerya&e e?ce!t for t#e deduction descri!tion fied.- 5ecords s#oud &e sorted a!#a&eticay on t#e deduction code fied.
Transaction *rocessin"- Transaction date s#oud dis!ay a defaut %aue of today's date durin" record creation. 6o$e%er t#e user may o%erride t#is %aue.- fieds s#oud satisfy %aidation rues durin" record creation and u!date. ,f a fied is in%aid( dis!ay an error messa"e informin" t#e user of t#e
in%aid %aue and return t#e cursor to t#e in%aid fied.
4aidation
-4aue for deduction code s#oud &e restricted to t#ose %aues !ro%ided &y t#e LO4.
- mount s#oud &e "reater t#an 0.
Adjustments Tab (Detail Record portion)
a%i"ation- fieds s#oud &e na%i"a&e %ia ey&oard e?ce!t for t#e ad+ustment descri!tion fied.- ey&oard na%i"ation direction s#oud &e from eftFtoFri"#t t#en from !re%ious record to ne?t record.- ey&oard na%i"ation s#oud not "o to any of t#e ot#er ta& !a"es nor to t#e Master record !ortion.
8/12/2019 Oracle Dev2K Course Build Forms I Exercise
http://slidepdf.com/reader/full/oracle-dev2k-course-build-forms-i-exercise 16/16
uery *rocessin"- fieds are -uerya&e e?ce!t for t#e ad+ustment descri!tion fied.- 5ecords s#oud &e sorted a!#a&eticay on t#e ad+ustment code fied.
Transaction *rocessin"- Transaction date s#oud dis!ay a defaut %aue of today's date durin" record creation. 6o$e%er t#e user may o%erride t#is %aue.
- fieds s#oud satisfy %aidation rues durin" record creation and u!date. ,f a fied is in%aid( dis!ay an error messa"e informin" t#e user of t#ein%aid %aue and return t#e cursor to t#e in%aid fied.
4aidation- 4aue for ad+ustment code s#oud &e restricted to t#ose %aues !ro%ided &y t#e LO4.- mount s#oud &e "reater t#an 0.
ea!es Tab (Detail Record portion)
a%i"ation- fieds s#oud &e na%i"a&e %ia ey&oard e?ce!t for t#e ea%e descri!tion fied.- ey&oard na%i"ation direction s#oud &e from eftFtoFri"#t t#en from !re%ious record to ne?t record.- ey&oard na%i"ation s#oud not "o to any of t#e ot#er ta& !a"es nor to t#e Master record !ortion.
uery *rocessin"- fieds are -uerya&e e?ce!t for t#e ea%e descri!tion fied.- 5ecords s#oud &e sorted a!#a&eticay on t#e ea%e ty!e fied.
Transaction *rocessin"- Transaction date s#oud dis!ay a defaut %aue of today's date durin" record creation. 6o$e%er t#e user may o%erride t#is %aue.- fieds s#oud satisfy %aidation rues durin" record creation and u!date. ,f a fied is in%aid( dis!ay an error messa"e informin" t#e user of t#e
in%aid %aue and return t#e cursor to t#e in%aid fied.
4aidation- 4aue for ea%e ty!e s#oud &e restricted to t#ose %aues !ro%ided &y t#e LO4.- ays s#oud &e "reater t#an 0.