1: Package Body ota_ent_bus as
2: /* $Header: otentrhi.pkb 115.1 2003/04/24 17:25:58 ssur noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ota_ent_bus.'; -- Global package name
9: --
10: -- The following two global variables are only to be
11: -- used by the return_legislation_code function.
12: --
360: ,p_argument_value => p_event_id
361: );
362: --
363: --
364: if (( nvl(ota_ent_bus.g_event_id, hr_api.g_number)
365: = p_event_id)
366: and ( nvl(ota_ent_bus.g_language, hr_api.g_varchar2)
367: = p_language)) then
368: --
362: --
363: --
364: if (( nvl(ota_ent_bus.g_event_id, hr_api.g_number)
365: = p_event_id)
366: and ( nvl(ota_ent_bus.g_language, hr_api.g_varchar2)
367: = p_language)) then
368: --
369: -- The legislation code has already been found with a previous
370: -- call to this function. Just return the value in the global
369: -- The legislation code has already been found with a previous
370: -- call to this function. Just return the value in the global
371: -- variable.
372: --
373: l_legislation_code := ota_ent_bus.g_legislation_code;
374: hr_utility.set_location(l_proc, 20);
375: else
376: --
377: -- The ID is different to the last call to this function
393: -- Set the global variables so the values are
394: -- available for the next call to this function.
395: --
396: close csr_leg_code;
397: ota_ent_bus.g_event_id := p_event_id;
398: ota_ent_bus.g_language := p_language;
399: ota_ent_bus.g_legislation_code := l_legislation_code;
400: end if;
401: hr_utility.set_location(' Leaving:'|| l_proc, 40);
394: -- available for the next call to this function.
395: --
396: close csr_leg_code;
397: ota_ent_bus.g_event_id := p_event_id;
398: ota_ent_bus.g_language := p_language;
399: ota_ent_bus.g_legislation_code := l_legislation_code;
400: end if;
401: hr_utility.set_location(' Leaving:'|| l_proc, 40);
402: return l_legislation_code;
395: --
396: close csr_leg_code;
397: ota_ent_bus.g_event_id := p_event_id;
398: ota_ent_bus.g_language := p_language;
399: ota_ent_bus.g_legislation_code := l_legislation_code;
400: end if;
401: hr_utility.set_location(' Leaving:'|| l_proc, 40);
402: return l_legislation_code;
403: end return_legislation_code;
470: --
471: -- Call all supporting business operations
472: --
473: --
474: ota_ent_bus.set_security_group_id(p_event_id) ;
475: --
476: -- Validate Dependent Attributes
477: CHECK_TITLE
478: ( P_REC => p_rec,
498: --
499: -- Call all supporting business operations
500: --
501: --
502: ota_ent_bus.set_security_group_id(p_rec.event_id);
503: --
504: -- Validate Dependent Attributes
505: --
506: chk_non_updateable_args
531: --
532:
533: --
534: --
535: end ota_ent_bus;