DBA Data[Home] [Help]

PACKAGE BODY: APPS.PER_ASG_FLEX

Source


1 Package Body per_asg_flex as
2 /* $Header: peasgfli.pkb 115.0 99/07/17 18:37:59 porting ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  per_asg_flex.';  -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |--------------------------< val_asg_type_a >------------------------------|
12 -- ----------------------------------------------------------------------------
13 --  {Start of Comments}
14 --
15 --  Description:
16 --    This procedure performs the descriptive flexfield validation for the
17 --    reference field - Assignment Type where the value is 'A' (Applicant).
18 --
19 --  Pre Conditions:
20 --    None
21 --
22 --  In Arguments:
23 --    p_rec
24 --
25 --  Post Success:
26 --    Processing of per_asg_flex continues.
27 --
28 --  Post failure:
29 --    Processing will be suspended if the descriptive flexfield validation
30 --    fails.
31 --
32 --  Developer Implementation Notes:
33 --    Customer defined.
34 --
35 --  Access Status:
36 --    From df procedure only.
37 --
38 --  {End of Comments}
39 -- ----------------------------------------------------------------------------
40 Procedure val_asg_type_a
41              (p_rec   in per_asg_shd.g_rec_type) is
42 --
43   l_proc    varchar2(72) := g_package||'val_asg_type_a';
44 --
45 begin
46   hr_utility.set_location('Entering:'||l_proc, 1);
47   --
48   -- Enter procedure code here
49   --
50   hr_utility.set_location(' Leaving:'||l_proc, 2);
51 end val_asg_type_a;
52 --
53 -- ----------------------------------------------------------------------------
54 -- |--------------------------< val_asg_type_e >------------------------------|
55 -- ----------------------------------------------------------------------------
56 --  {Start of Comments}
57 --
58 --  Description:
59 --    This procedure performs the descriptive flexfield validation for the
60 --    reference field - Assignment Type where the value is 'E' (Employee).
61 --
62 --  Pre Conditions:
63 --    None
64 --
65 --  In Arguments:
66 --    p_rec
67 --
68 --  Post Success:
69 --    Processing of per_asg_flex continues.
70 --
71 --  Post failure:
72 --    Processing will be suspended if the descriptive flexfield validation
73 --    fails.
74 --
75 --  Developer Implementation Notes:
76 --    Customer defined.
77 --
78 --  Access Status:
79 --    From df procedure only.
80 --
81 --  {End of Comments}
82 -- ----------------------------------------------------------------------------
83 Procedure val_asg_type_e
84              (p_rec   in per_asg_shd.g_rec_type) is
85 --
86   l_proc    varchar2(72) := g_package||'val_asg_type_e';
87 --
88 begin
89   hr_utility.set_location('Entering:'||l_proc, 1);
90   --
91   -- Enter procedure code here
92   --
93   hr_utility.set_location(' Leaving:'||l_proc, 2);
94 end val_asg_type_e;
95 --
96 -- ----------------------------------------------------------------------------
97 -- |-------------------------------< df >-------------------------------------|
98 -- ----------------------------------------------------------------------------
99 procedure df
100   (p_rec   in per_asg_shd.g_rec_type) is
101 --
102   l_proc       varchar2(72) := g_package||'df';
103   l_error      exception;
104 --
105 Begin
106   hr_utility.set_location('Entering:'||l_proc, 5);
107   --
108 /*
109   -- Check for value of reference field an then
110   -- call relevant validation procedure.
111   --
112   if <reference field value> is not null then
113     --
114     -- Reference field       => Assignment type
115     -- Reference field value => 'A' (Applicant assignment)
116     --
117     if <reference field value> is <value> then
118       val_asg_type_a(p_rec => p_rec);
119     --
120     -- Reference field       => Assignment type
121     -- Reference field value => 'E' (Employee assignment)
122     --
123     elsif <reference field value> is <value> then
124       val_asg_type_e(p_rec => p_rec);
125     else
126       --
127       -- Reference field values is not supported
128       --
129       hr_utility.set_message(801, 'HR_7438_FLEX_INV_REF_FIELD_VAL');
130       hr_utility.raise_error;
131     end if;
132   else
133 */
134     --
135     -- When the reference field is null, check
136     -- that none of the attribute fields have
137     -- been set
138     --
139     if p_rec.ass_attribute1 is not null then
140       raise l_error;
141     elsif p_rec.ass_attribute2 is not null then
142       raise l_error;
143     elsif p_rec.ass_attribute3 is not null then
144       raise l_error;
145     elsif p_rec.ass_attribute4 is not null then
146       raise l_error;
147     elsif p_rec.ass_attribute5 is not null then
148       raise l_error;
149     elsif p_rec.ass_attribute6 is not null then
150       raise l_error;
151     elsif p_rec.ass_attribute7 is not null then
152       raise l_error;
153     elsif p_rec.ass_attribute8 is not null then
154       raise l_error;
155     elsif p_rec.ass_attribute9 is not null then
156       raise l_error;
157     elsif p_rec.ass_attribute10 is not null then
158       raise l_error;
159     elsif p_rec.ass_attribute11 is not null then
160       raise l_error;
161     elsif p_rec.ass_attribute12 is not null then
162       raise l_error;
163     elsif p_rec.ass_attribute13 is not null then
164       raise l_error;
165     elsif p_rec.ass_attribute14 is not null then
166       raise l_error;
167     elsif p_rec.ass_attribute15 is not null then
168       raise l_error;
169     elsif p_rec.ass_attribute16 is not null then
170       raise l_error;
171     elsif p_rec.ass_attribute17 is not null then
172       raise l_error;
173     elsif p_rec.ass_attribute18 is not null then
174       raise l_error;
175     elsif p_rec.ass_attribute19 is not null then
176       raise l_error;
177     elsif p_rec.ass_attribute20 is not null then
178       raise l_error;
179     elsif p_rec.ass_attribute21 is not null then
180       raise l_error;
181     elsif p_rec.ass_attribute22 is not null then
182       raise l_error;
183     elsif p_rec.ass_attribute23 is not null then
184       raise l_error;
185     elsif p_rec.ass_attribute24 is not null then
186       raise l_error;
187     elsif p_rec.ass_attribute25 is not null then
188       raise l_error;
189     elsif p_rec.ass_attribute26 is not null then
190       raise l_error;
191     elsif p_rec.ass_attribute27 is not null then
192       raise l_error;
193     elsif p_rec.ass_attribute28 is not null then
194       raise l_error;
195     elsif p_rec.ass_attribute29 is not null then
196       raise l_error;
197     elsif p_rec.ass_attribute30 is not null then
198       raise l_error;
199     end if;
200 /*
201   end if;
202 */
203   --
204   hr_utility.set_location(' Leaving:'||l_proc, 10);
205 exception
206   when l_error then
207     hr_utility.set_message(801, 'HR_7439_FLEX_INV_ATTRIBUTE_ARG');
208     hr_utility.raise_error;
209     hr_utility.set_location(' Leaving:'||l_proc, 10);
210 end df;
211 --
212 end per_asg_flex;