首页 > 代码库 > PA模块常用表
PA模块常用表
SELECT * FROM pa_projects_all; --项目
SELECT * FROM pa_project_types; --项目类型
SELECT * FROM pa_project_statuses; --项目状态
SELECT * FROM pa_project_options; --项目选项
SELECT * FROM pa_lookups l WHERE l.lookup_type = ‘PA_OPTIONS‘ ;
SELECT * FROM pa_project_customers; --项目客户
SELECT h.name
FROM pa_project_set_lines l, pa_project_sets_vl h
WHERE l.project_set_id = h.project_set_id
AND l.project_id = 155242 ; --项目集
--项目预算
SELECT t. budget_type, l.project_id, l.*, t.*
FROM pa_budget_versions l, pa_budget_types t
WHERE l.budget_type_code = t.budget_type_code
AND l.budget_status_code = ‘W‘ ; --活动
--预算状态
SELECT * FROM pa_lookups l WHERE l.lookup_type = ‘BUDGET STATUS‘ ;
--项目角色(经理)
SELECT * FROM pa_project_role_types_vl;
SELECT l.resource_source_id, he.full_name
FROM pa_project_parties l, pa_project_role_types_b t, hr_employees he
WHERE l.project_role_id = t.project_role_id
AND t.project_role_type = ‘PROJECT MANAGER‘
AND l.resource_source_id = he.employee_id
AND l.object_id = 155242 ;
SELECT * FROM pa_role_controls;
--人员默认账户
SELECT l.default_code_comb_id
-- INTO v_code_comb_id
FROM per_all_assignments_f l
WHERE l.person_id = 10995
AND l.effective_start_date <= SYSDATE
AND nvl (l.effective_end_date, SYSDATE + 1) >= SYSDATE ;
;
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。