1: Package Body per_pst_bus as
2: /* $Header: pepstrhi.pkb 115.6 2002/12/04 17:14:16 eumenyio noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' per_pst_bus.'; -- Global package name
9: --
10: -- The following two global variables are only to be
11: -- used by the return_legislation_code function.
12: --
308: ,p_argument => 'position_structure_id'
309: ,p_argument_value => p_position_structure_id
310: );
311: --
312: if ( nvl(per_pst_bus.g_position_structure_id, hr_api.g_number)
313: = p_position_structure_id) then
314: --
315: -- The legislation code has already been found with a previous
316: -- call to this function. Just return the value in the global
315: -- The legislation code has already been found with a previous
316: -- call to this function. Just return the value in the global
317: -- variable.
318: --
319: l_legislation_code := per_pst_bus.g_legislation_code;
320: hr_utility.set_location(l_proc, 20);
321: else
322: --
323: -- The ID is different to the last call to this function
339: -- Set the global variables so the values are
340: -- available for the next call to this function.
341: --
342: close csr_leg_code;
343: per_pst_bus.g_position_structure_id := p_position_structure_id;
344: per_pst_bus.g_legislation_code := l_legislation_code;
345: end if;
346: hr_utility.set_location(' Leaving:'|| l_proc, 40);
347: return l_legislation_code;
340: -- available for the next call to this function.
341: --
342: close csr_leg_code;
343: per_pst_bus.g_position_structure_id := p_position_structure_id;
344: per_pst_bus.g_legislation_code := l_legislation_code;
345: end if;
346: hr_utility.set_location(' Leaving:'|| l_proc, 40);
347: return l_legislation_code;
348: end return_legislation_code;
578: hr_api.validate_bus_grp_id(p_rec.business_group_id); -- Validate Bus Grp
579: end if;
580: --
581: --
582: per_pst_bus.chk_df(p_rec);
583: --
584: hr_utility.set_location(' Leaving:'||l_proc, 10);
585: End insert_validate;
586: --
622: (p_position_structure_id => p_rec.position_structure_id
623: ,p_business_group_id => p_rec.business_group_id
624: ,p_primary_position_flag => p_rec.primary_position_flag);
625:
626: per_pst_bus.chk_df(p_rec);
627: --
628: hr_utility.set_location(' Leaving:'||l_proc, 10);
629: End update_validate;
630: --
647: --
648: hr_utility.set_location(' Leaving:'||l_proc, 10);
649: End delete_validate;
650: --
651: end per_pst_bus;