1: Package Body hr_tmp_bus as
2: /* $Header: hrtmprhi.pkb 115.6 2002/12/03 11:31:46 raranjan noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' hr_tmp_bus.'; -- Global package name
9: --
10: -- The following two global variables are only to be
11: -- used by the return_legislation_code function.
12: --
67: ,p_argument => 'form_template_id'
68: ,p_argument_value => p_form_template_id
69: );
70: --
71: if ( nvl(hr_tmp_bus.g_form_template_id, hr_api.g_number)
72: = p_form_template_id) then
73: --
74: -- The legislation code has already been found with a previous
75: -- call to this function. Just return the value in the global
74: -- The legislation code has already been found with a previous
75: -- call to this function. Just return the value in the global
76: -- variable.
77: --
78: l_legislation_code := hr_tmp_bus.g_legislation_code;
79: hr_utility.set_location(l_proc, 20);
80: else
81: --
82: -- The ID is different to the last call to this function
98: -- Set the global variables so the values are
99: -- available for the next call to this function.
100: --
101: close csr_leg_code;
102: hr_tmp_bus.g_form_template_id := p_form_template_id;
103: hr_tmp_bus.g_legislation_code := l_legislation_code;
104: end if;
105: hr_utility.set_location(' Leaving:'|| l_proc, 40);
106: return l_legislation_code;
99: -- available for the next call to this function.
100: --
101: close csr_leg_code;
102: hr_tmp_bus.g_form_template_id := p_form_template_id;
103: hr_tmp_bus.g_legislation_code := l_legislation_code;
104: end if;
105: hr_utility.set_location(' Leaving:'|| l_proc, 40);
106: return l_legislation_code;
107: end return_legislation_code;
772: --
773: hr_utility.set_location(' Leaving:'||l_proc, 10);
774: End delete_validate;
775: --
776: end hr_tmp_bus;