DBA Data[Home] [Help]

APPS.PER_APR_BUS SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 29

       select inf.org_information14
      from hr_organization_information inf
         , per_appraisals  apr
     where apr.appraisal_id = p_appraisal_id
       and inf.organization_id = apr.business_group_id
       and inf.org_information_context || '' = 'Business Group Information';
Line: 78

Procedure chk_non_updateable_args(p_rec in per_apr_shd.g_rec_type) is

  l_proc     varchar2(72) := g_package||'chk_non_updateable_args';
Line: 174

end chk_non_updateable_args;
Line: 271

procedure chk_update_allowed
  (p_rec in per_apr_shd.g_rec_type
  )
  is

  l_proc varchar2(72) := g_package || 'chk_update_allowed';
Line: 282

    select ppt.system_person_type
      from per_person_types ppt
	     , per_person_type_usages_f ptu
         , per_all_people_f per
     where per.person_id = p_rec.appraisee_person_id
       and p_rec.appraisal_date BETWEEN per.effective_start_date AND per.effective_end_date
	   AND ptu.person_id = per.person_id
       and p_rec.appraisal_date BETWEEN ptu.effective_start_date AND ptu.effective_end_date
       and ptu.person_type_id = ppt.person_type_id;
Line: 508

end chk_update_allowed;
Line: 553

    select null
      from hr_quest_answers qsa
     where p_appraisal_id = qsa.type_object_id
       and qsa.type = 'APPRAISAL';
Line: 641

	select  business_group_id
	from	per_appraisal_templates
	where   appraisal_template_id = p_appraisal_template_id;
Line: 650

	select  'Y'
	from	per_appraisal_templates
	where   appraisal_template_id = p_appraisal_template_id
	and     p_effective_date between
		nvl(date_from,hr_api.g_sot) and nvl(date_to,hr_api.g_eot);
Line: 780

	select  business_group_id
	from	per_all_people_f
	where   person_id = p_person_id;
Line: 791

	select  business_group_id
	from	per_all_people_f
	where   person_id = p_person_id;
Line: 800

	select  'Y'
	from	per_all_people_f
	where   person_id = p_person_id
	and	p_effective_date between
		effective_start_date and nvl(effective_end_date,hr_api.g_eot);
Line: 814

	select  'Y'
	from	per_all_people_f
	where   person_id = p_person_id
	and	p_effective_date between
		effective_start_date and nvl(effective_end_date,hr_api.g_eot);
Line: 954

        select  'Y'
        from    per_all_people_f
        where   person_id = p_main_appraiser_id
        and     business_group_id = p_business_group_id
        and     p_effective_date between
                effective_start_date and nvl(effective_end_date,hr_api.g_eot);
Line: 966

        select  'Y'
        from    per_all_people_f
        where   person_id = p_main_appraiser_id
        and     p_effective_date between
                effective_start_date and nvl(effective_end_date,hr_api.g_eot);
Line: 1328

    select distinct(min(effective_start_date)), business_group_id
    from per_all_people_f per
    where per.person_id = p_group_initiator_id
    group by business_group_id;
Line: 1558

    select     pt.system_person_type
    from
            per_all_people_f per
           ,per_person_type_usages_f ptu
           ,per_person_types pt
    where   per.person_id = p_person_id
         and p_date BETWEEN per.effective_start_date and per.effective_end_date
         AND per.person_id = ptu.person_id
         AND p_date between ptu.effective_start_date AND ptu.effective_End_date
         AND ptu.person_type_id = pt.person_type_id
         AND pt.system_person_type  IN ('EMP','CWK','EMP_APL','CWK_APL');
Line: 1725

	select  business_group_id,rating_scale_id
	from	per_rating_levels
	where 	rating_level_id       	= p_overall_performance_level_id;
Line: 1735

	select	'Y'
	from	per_appraisal_templates
	where	rating_scale_id 	= l_rating_scale_id
	and	appraisal_template_id 	= p_appraisal_template_id;
Line: 1843

procedure chk_appraisal_delete
(p_appraisal_id              in      per_appraisals.appraisal_id%TYPE
,p_object_version_number     in      per_appraisals.object_version_number%TYPE
,p_overall_performance_level_id	     in	     per_appraisals.overall_performance_level_id%TYPE
)
is

      l_exists		   varchar2(1);
Line: 1851

      l_proc               varchar2(72)  :=  g_package||'chk_appraisal_delete';
Line: 1860

     	select 'Y'
     	from   dual
        where  exists (select null
                       from   per_assign_proposal_answers
     	               where  answer_for_key = p_appraisal_id);
Line: 1871

     	select 'Y'
     	from   per_objectives
     	where  appraisal_id    = p_appraisal_id;
Line: 1879

     	select 'Y'
     	from   per_assessments
     	where  appraisal_id    = p_appraisal_id;
Line: 1887

     	select 'Y'
     	from   per_performance_ratings
     	where  appraisal_id    = p_appraisal_id;
Line: 1895

           select 'Y'
             from per_participants par
            where par.participation_in_id = p_appraisal_id
              and par.participation_in_table = 'PER_APPRAISALS'
              and par.participation_in_column = 'APPRAISAL_ID';
Line: 1904

           select 'Y'
             from hr_quest_answers qsa
            where qsa.type_object_id = p_appraisal_id
              and qsa.type = 'APPRAISAL';
Line: 1995

end chk_appraisal_delete;
Line: 2034

  SELECT pmp.plan_id
  FROM   per_perf_mgmt_plans pmp
  WHERE  pmp.plan_id = p_plan_id;
Line: 2317

Procedure insert_validate(p_rec in per_apr_shd.g_rec_type
			  ,p_effective_date in date)
is

  l_proc  varchar2(72) := g_package||'insert_validate';
Line: 2455

End insert_validate;
Line: 2460

Procedure update_validate(p_rec in per_apr_shd.g_rec_type
			  ,p_effective_date in date) is

  l_proc  varchar2(72) := g_package||'update_validate';
Line: 2477

  chk_non_updateable_args(p_rec	=> p_rec);
Line: 2487

  per_apr_bus.chk_update_allowed
               (p_rec => p_rec);
Line: 2518

 if (p_rec.appraisal_system_status <> 'DELETED') then
   per_apr_bus.chk_appraisal_dates
    (p_appraisal_date              => p_rec.appraisal_date
    ,p_appraisal_period_start_date => p_rec.appraisal_period_start_date
    ,p_appraisal_period_end_date   => p_rec.appraisal_period_end_date
    ,p_next_appraisal_date         => p_rec.next_appraisal_date
    ,p_appraisee_person_id         => p_rec.appraisee_person_id
    ,p_appraiser_person_id         => p_rec.appraiser_person_id
   ,p_main_appraiser_id          =>   p_rec.main_appraiser_id
    );
Line: 2601

End update_validate;
Line: 2606

Procedure delete_validate(p_rec in per_apr_shd.g_rec_type) is

  l_proc  varchar2(72) := g_package||'delete_validate';
Line: 2615

 per_apr_bus.chk_appraisal_delete
 (p_appraisal_id    		=>	p_rec.appraisal_id
 ,p_object_version_number     	=>	p_rec.object_version_number
 ,p_overall_performance_level_id		=>	p_rec.overall_performance_level_id
 ) ;
Line: 2623

End delete_validate;
Line: 2636

          select legislation_code
          from   per_business_groups pbg,
                 per_appraisals      pap
          where  pap.appraisal_id      = p_appraisal_id
            and  pbg.business_group_id = pap.business_group_id;