DBA Data[Home] [Help]

PACKAGE: APPS.PER_CPN_BUS

Source


1 Package per_cpn_bus AUTHID CURRENT_USER as
2 /* $Header: pecpnrhi.pkh 120.0 2005/05/31 07:14:20 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------< insert_validate >----------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure controls the execution of all insert business rules
11 --   validation.
12 --
13 -- Pre Conditions:
14 --   This private procedure is called from ins procedure.
15 --
16 -- In Parameters:
17 --   A Pl/Sql record structre.
18 --
19 -- Post Success:
20 --   Processing continues.
21 --
22 -- Post Failure:
23 --   If a business rules fails the error will not be handled by this procedure
24 --   unless explicity coded.
25 --
26 -- Developer Implementation Notes:
27 --   For insert, your business rules should be executed from this procedure and
28 --   should ideally (unless really necessary) just be straight procedure or
29 --   function calls. Try and avoid using conditional branching logic.
30 --
31 -- Access Status:
32 --   Internal Table Handler Use Only.
33 --
34 -- {End Of Comments}
35 -- ----------------------------------------------------------------------------
36 Procedure insert_validate(p_rec in per_cpn_shd.g_rec_type,
37 			  p_effective_date in date);
38 --
39 -- ----------------------------------------------------------------------------
40 -- |---------------------------< update_validate >----------------------------|
41 -- ----------------------------------------------------------------------------
42 -- {Start Of Comments}
43 --
44 -- Description:
45 --   This procedure controls the execution of all update business rules
46 --   validation.
47 --
48 -- Pre Conditions:
49 --   This private procedure is called from upd procedure.
50 --
51 -- In Parameters:
52 --   A Pl/Sql record structre.
53 --
54 -- Post Success:
55 --   Processing continues.
56 --
57 -- Post Failure:
58 --   If a business rules fails the error will not be handled by this procedure
59 --   unless explicity coded.
60 --
61 -- Developer Implementation Notes:
62 --   For update, your business rules should be executed from this procedure and
63 --   should ideally (unless really necessary) just be straight procedure or
64 --   function calls. Try and avoid using conditional branching logic.
65 --
66 -- Access Status:
67 --   Internal Table Handler Use Only.
68 --
69 -- {End Of Comments}
70 -- ----------------------------------------------------------------------------
71 Procedure update_validate(p_rec in per_cpn_shd.g_rec_type,
72 			  p_effective_date in date);
73 --
74 -- ----------------------------------------------------------------------------
75 -- |---------------------------< delete_validate >----------------------------|
76 -- ----------------------------------------------------------------------------
77 -- {Start Of Comments}
78 --
79 -- Description:
80 --   This procedure controls the execution of all delete business rules
81 --   validation.
82 --
83 -- Pre Conditions:
84 --   This private procedure is called from del procedure.
85 --
86 -- In Parameters:
87 --   A Pl/Sql record structre.
88 --
89 -- Post Success:
90 --   Processing continues.
91 --
92 -- Post Failure:
93 --   If a business rules fails the error will not be handled by this procedure
94 --   unless explicity coded.
95 --
96 -- Developer Implementation Notes:
97 --   For delete, your business rules should be executed from this procedure and
98 --   should ideally (unless really necessary) just be straight procedure or
99 --   function calls. Try and avoid using conditional branching logic.
100 --
101 -- Access Status:
102 --   Internal Table Handler Use Only.
103 --
104 -- {End Of Comments}
105 -- ----------------------------------------------------------------------------
106 Procedure delete_validate(p_rec in per_cpn_shd.g_rec_type);
107 --
108 --
109 -- -----------------------------------------------------------------------------
110 -- |-------------------------<chk_set_radio_button>---------------------------|
111 -- -----------------------------------------------------------------------------
112 -- Description:
113 --  Checks if the competence has a prficiency rating scale, if yes
114 --  returns 'PS' (Proficiency Scale exists).
115 --  Checks if the competence has levels, if yes returns
116 -- 'CL' (Competence Levels exists)
117 --  Else it will return 'PS' as default.
118 --
119 --  This function is called by the Competence Base View to set the
120 --  value of a radio group in the form accordingly.
121 --
122 --  In Arguments:
123 --    p_competence_id
124 --    p_rating_scale_id
125 --
126 --  Access Status
127 --    Internal Table Handler Use Only.
128 --
129 Function chk_set_radio_button (p_competence_id	 in number
130 		     	      ,p_rating_scale_id in number)
131 Return   varchar2 ;
132 pragma restrict_references (chk_set_radio_button, WNDS, WNPS);
133 --
134 --
135 -- ----------------------------------------------------------------------------
136 -- |----------------------< return_legislation_code >--------------------------|
137 -- ----------------------------------------------------------------------------
138 -- {Start Of Comments}
139 --
140 -- Description:
141 --   This function gets the legislation code
142 --
143 -- Pre Conditions:
144 --   This private procedure will be called from the user hook procedures.
145 --
146 -- In Parameters:
147 --   the primary key of the table (per_competences)
148 --
149 -- Post Success:
150 --   Processing continues.
151 --
152 -- Post Failure:
153 --   If the legislation code is not found then it errors out
154 --
155 -- Developer Implementation Notes:
156 --
157 -- Access Status:
158 --   Internal Table Handler Use Only.
159 --
160 -- {End Of Comments}
161 --
162 Function return_legislation_code (
163          p_competence_id        in   number)
164          return  varchar2;
165 --
166 --
167 end per_cpn_bus;