1: Package Body psp_era_bus as
2: /* $Header: PSPEARHB.pls 120.2 2006/03/26 01:08 dpaudel noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' psp_era_bus.'; -- Global package name
9: --
10: -- The following two global variables are only to be
11: -- used by the return_legislation_code function.
12: --
136: ,p_argument => 'effort_report_approval_id'
137: ,p_argument_value => p_effort_report_approval_id
138: );
139: --
140: if ( nvl(psp_era_bus.g_effort_report_approval_id, hr_api.g_number)
141: = p_effort_report_approval_id) then
142: --
143: -- The legislation code has already been found with a previous
144: -- call to this function. Just return the value in the global
143: -- The legislation code has already been found with a previous
144: -- call to this function. Just return the value in the global
145: -- variable.
146: --
147: l_legislation_code := psp_era_bus.g_legislation_code;
148: hr_utility.set_location(l_proc, 20);
149: else
150: --
151: -- The ID is different to the last call to this function
167: -- Set the global variables so the values are
168: -- available for the next call to this function.
169: --
170: close csr_leg_code;
171: psp_era_bus.g_effort_report_approval_id := p_effort_report_approval_id;
172: psp_era_bus.g_legislation_code := l_legislation_code;
173: end if;
174: hr_utility.set_location(' Leaving:'|| l_proc, 40);
175: return l_legislation_code;
168: -- available for the next call to this function.
169: --
170: close csr_leg_code;
171: psp_era_bus.g_effort_report_approval_id := p_effort_report_approval_id;
172: psp_era_bus.g_legislation_code := l_legislation_code;
173: end if;
174: hr_utility.set_location(' Leaving:'|| l_proc, 40);
175: return l_legislation_code;
176: end return_legislation_code;
467: --
468: -- Validate Dependent Attributes
469: --
470: --
471: psp_era_bus.chk_ddf(p_rec);
472: --
473: hr_utility.set_location(' Leaving:'||l_proc, 10);
474: End insert_validate;
475: --
501: (p_rec => p_rec
502: );
503: --
504: --
505: psp_era_bus.chk_ddf(p_rec);
506: --
507: hr_utility.set_location(' Leaving:'||l_proc, 10);
508: End update_validate;
509: --
523: --
524: hr_utility.set_location(' Leaving:'||l_proc, 10);
525: End delete_validate;
526: --
527: end psp_era_bus;