Commit 5f6bec40 authored by lizhe's avatar lizhe

征信财报相关

parent e82c9182
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[select scv.code_value_name, scv.code_value <bm:query-sql><![CDATA[select scv.code_value_name, scv.code_value
from sys_code_values_v scv from sys_code_values_v scv
where scv.code = 'REPORT_FORM' where scv.code = 'REPORT_FORM'
and scv.code_value_enabled_flag = 'Y']]></bm:query-sql> and scv.code_value_enabled_flag = 'Y'
order by scv.order_seq]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:fields> <bm:fields>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'third_year' as year, 'third_year' as year,
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'second_year' as year, 'second_year' as year,
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'first_year' as year, 'first_year' as year,
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
'Y' as flag 'Y' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1,${/parameter/@project_id})
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'third_year' as year, 'third_year' as year,
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'second_year' as year, 'second_year' as year,
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'first_year' as year, 'first_year' as year,
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
'Y' as flag 'Y' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1,${/parameter/@project_id})
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'third_year' as year, 'third_year' as year,
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'second_year' as year, 'second_year' as year,
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'first_year' as year, 'first_year' as year,
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
'Y' as flag 'Y' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1,${/parameter/@project_id})
......
...@@ -12,19 +12,19 @@ ...@@ -12,19 +12,19 @@
select (select t.fiscal_year || '年' || t.fiscal_month || '月' select (select t.fiscal_year || '年' || t.fiscal_month || '月'
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1)) first_fiscal_year, rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1,${@project_id})) first_fiscal_year,
(select t.fiscal_year || '年' || t.fiscal_month || '月' (select t.fiscal_year || '年' || t.fiscal_month || '月'
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2)) second_fiscal_year, rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2,${@project_id})) second_fiscal_year,
(select t.fiscal_year || '年' || t.fiscal_month || '月' (select t.fiscal_year || '年' || t.fiscal_month || '月'
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3))third_fiscal_year, rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3,${@project_id}))third_fiscal_year,
(select t.fiscal_year || '年' || t.fiscal_month || '月' (select t.fiscal_year || '年' || t.fiscal_month || '月'
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4)) fourth_fiscal_year rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4,${@project_id})) fourth_fiscal_year
from dual from dual
]]></bm:query-sql> ]]></bm:query-sql>
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
p_fin_statement_templet_id=>${@fin_statement_templet_id}, p_fin_statement_templet_id=>${@fin_statement_templet_id},
p_company_id =>${/session/@company_id}, p_company_id =>${/session/@company_id},
p_bp_id=>${@bp_id}, p_bp_id=>${@bp_id},
p_user_id=>${/session/@user_id} p_user_id=>${/session/@user_id},
p_project_id=>${@project_id}
); );
end;]]></bm:update-sql> end;]]></bm:update-sql>
</bm:operation> </bm:operation>
......
...@@ -32,74 +32,57 @@ ...@@ -32,74 +32,57 @@
'left' column_align 'left' column_align
FROM FROM
dual dual
union all
UNION ALL select 'fourth_year_value' column_name,
select 'first_year_value' column_name,
fiscal_year || '年' || fiscal_month || '月' field_description,
100 field_width,
'right' column_align
from rsc_fin_indicator_hds t
where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1)
union all
select 'second_year_value' column_name,
fiscal_year || '年' || fiscal_month || '月' field_description, fiscal_year || '年' || fiscal_month || '月' field_description,
100 field_width, 100 field_width,
'right' column_align 'right' column_align
from rsc_fin_indicator_hds t from rsc_fin_indicator_hds t
where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2) where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4,${@project_id})
union all union all
select 'second_year_change_rate' column_name, select 'fourth_year_change_rate' column_name,
'变化率' field_description, '变化率' field_description,
100 field_width, 100 field_width,
'right' column_align 'right' column_align
from rsc_fin_indicator_hds t from rsc_fin_indicator_hds t
where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2) where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4,${@project_id})
union all
union all
select 'third_year_value' column_name, select 'third_year_value' column_name,
fiscal_year || '年' || fiscal_month || '月' field_description, fiscal_year || '年' || fiscal_month || '月' field_description,
100 field_width, 100 field_width,
'right' column_align 'right' column_align
from rsc_fin_indicator_hds t from rsc_fin_indicator_hds t
where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3) where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3,${@project_id})
union all union all
select 'third_year_change_rate' column_name, select 'third_year_change_rate' column_name,
'变化率' field_description, '变化率' field_description,
100 field_width, 100 field_width,
'right' column_align 'right' column_align
from rsc_fin_indicator_hds t from rsc_fin_indicator_hds t
where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3) where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3,${@project_id})
union all
select 'fourth_year_value' column_name, union all
select 'second_year_value' column_name,
fiscal_year || '年' || fiscal_month || '月' field_description, fiscal_year || '年' || fiscal_month || '月' field_description,
100 field_width, 100 field_width,
'right' column_align 'right' column_align
from rsc_fin_indicator_hds t from rsc_fin_indicator_hds t
where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4) where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2,${@project_id})
union all union all
select 'fourth_year_change_rate' column_name, select 'second_year_change_rate' column_name,
'变化率' field_description, '变化率' field_description,
100 field_width, 100 field_width,
'right' column_align 'right' column_align
from rsc_fin_indicator_hds t from rsc_fin_indicator_hds t
where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4) where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2,${@project_id})
UNION ALL UNION ALL
SELECT select 'first_year_value' column_name,
'reference_results' column_name, fiscal_year || '年' || fiscal_month || '月' field_description,
'参考结果' field_description, 100 field_width,
100 field_width , 'right' column_align
'left' column_align from rsc_fin_indicator_hds t
FROM where t.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1,${@project_id})
dual
UNION ALL
SELECT
'description' column_name,
'备注' field_description,
150 field_width ,
'left' column_align
FROM
dual
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
......
...@@ -27,31 +27,31 @@ ...@@ -27,31 +27,31 @@
year_3.indicator_line_id third_year_indicator_line_id, year_3.indicator_line_id third_year_indicator_line_id,
year_4.indicator_line_id fourth_year_indicator_line_id, year_4.indicator_line_id fourth_year_indicator_line_id,
year_1.description, year_1.description,
f.reference_results f.reference_results,
f.ref_v04
from rsc_fin_indicator_formula f, from rsc_fin_indicator_formula f,
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1)) year_1, and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1,${@project_id})) year_1,
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2)) year_2, and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2,${@project_id})) year_2,
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3)) year_3, and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3,${@project_id})) year_3,
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4)) year_4 and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4,${@project_id})) year_4
where f.fin_statement_templet_id = ${@fin_statement_templet_id} where f.fin_statement_templet_id = ${@fin_statement_templet_id}
and f.indicator_code = year_1.indicator_code(+) and f.indicator_code = year_1.indicator_code(+)
and f.indicator_code = year_2.indicator_code(+) and f.indicator_code = year_2.indicator_code(+)
and f.indicator_code = year_3.indicator_code(+) and f.indicator_code = year_3.indicator_code(+)
and f.indicator_code = year_4.indicator_code(+) and f.indicator_code = year_4.indicator_code(+)
and decode(${@five_class_flag},null,'1',f.five_class_flag) = NVL(${@five_class_flag},'1')
order by f.line_number order by f.line_number
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
......
...@@ -24,19 +24,19 @@ ...@@ -24,19 +24,19 @@
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1)) year_1, and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 1,${@project_id})) year_1,
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2)) year_2, and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 2,${@project_id})) year_2,
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3)) year_3, and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 3,${@project_id})) year_3,
(select l.* (select l.*
from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h from rsc_fin_indicator_lns l, rsc_fin_indicator_hds h
where h.fin_indicator_id = l.fin_indicator_id where h.fin_indicator_id = l.fin_indicator_id
and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4)) year_4 and h.fin_statement_id =rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${@bp_id}, 4,${@project_id})) year_4
where f.fin_statement_templet_id = ${@fin_statement_templet_id} where f.fin_statement_templet_id = ${@fin_statement_templet_id}
and f.indicator_code = year_1.indicator_code(+) and f.indicator_code = year_1.indicator_code(+)
and f.indicator_code = year_2.indicator_code(+) and f.indicator_code = year_2.indicator_code(+)
......
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:fields>
<bm:field name="fin_statement_templet_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_CODE" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.FIN_STATEMENT_TEMPLET_CODE"/>
<bm:field name="fin_statement_templet_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_NAME" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.FIN_STATEMENT_TEMPLET_NAME"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_NAME"/>
<bm:field name="fiscal_date" databaseType="VARCHAR2" datatype="java.lang.String"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select bp_name, fin_statement_templet_code, fin_statement_templet_name
, (fiscal_year || '年' || fiscal_month || '月') as fiscal_date from rsc_fin_statement_prj_hds_v r
where exists (select 1 from fin_statement_templet_tmp f
where f.fin_statement_id = r.fin_statement_id
and f.session_id = ${/session/@session_id})
order by fiscal_year desc,fiscal_month desc
]]></bm:query-sql>
</bm:operation>
<bm:operation name="delete">
<bm:update-sql><![CDATA[
delete from fin_statement_templet_tmp where session_id = ${/session/@session_id}
]]></bm:update-sql>
</bm:operation>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
insert into fin_statement_templet_tmp(session_id,fin_statement_id) values(${/session/@session_id},${@fin_statement_id})
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<!--=======-->
<!--<?xml version="1.0" encoding="UTF-8"?>-->
<!--<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">-->
<!-- <bm:fields>-->
<!-- <bm:field name="fin_statement_templet_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_CODE" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.FIN_STATEMENT_TEMPLET_CODE"/>-->
<!-- <bm:field name="fin_statement_templet_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_NAME" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.FIN_STATEMENT_TEMPLET_NAME"/>-->
<!-- <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_NAME"/>-->
<!-- <bm:field name="fiscal_date" databaseType="VARCHAR2" datatype="java.lang.String"/>-->
<!-- </bm:fields>-->
<!-- <bm:operations>-->
<!-- <bm:operation name="query">-->
<!-- <bm:query-sql><![CDATA[-->
<!-- select bp_name, fin_statement_templet_code, fin_statement_templet_name-->
<!-- , (fiscal_year || '年' || fiscal_month || '月') as fiscal_date from rsc_fin_statement_prj_hds_v r-->
<!-- where exists (select 1 from fin_statement_templet_tmp f-->
<!-- where f.fin_statement_id = r.fin_statement_id-->
<!-- and f.session_id = ${/session/@session_id})-->
<!-- order by fiscal_year desc,fiscal_month desc-->
<!-- ]]></bm:query-sql>-->
<!-- </bm:operation>-->
<!-- <bm:operation name="delete">-->
<!-- <bm:update-sql><![CDATA[-->
<!-- -->
<!-- delete from fin_statement_templet_tmp where session_id = ${/session/@session_id}-->
<!-- -->
<!-- ]]></bm:update-sql>-->
<!-- </bm:operation>-->
<!-- <bm:operation name="insert">-->
<!-- <bm:update-sql><![CDATA[-->
<!-- -->
<!-- insert into fin_statement_templet_tmp(session_id,fin_statement_id) values(${/session/@session_id},${@fin_statement_id})-->
<!-- -->
<!-- ]]></bm:update-sql>-->
<!-- </bm:operation>-->
<!-- </bm:operations>-->
<!--</bm:model>-->
<!--&gt;>>>>>> 32b0a4d... 财报改造20220310批量提交上线-->
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
p_bp_id => ${/parameter/@bp_id}, p_bp_id => ${/parameter/@bp_id},
p_third_fin_statement_id =>${@third_fin_statement_id}, p_third_fin_statement_id =>${@third_fin_statement_id},
p_second_fin_statement_id =>${@second_fin_statement_id}, p_second_fin_statement_id =>${@second_fin_statement_id},
p_first_fin_statement_id =>${@first_fin_statement_id} p_first_fin_statement_id =>${@first_fin_statement_id},
p_project_id => ${/parameter/@project_id}
); );
end;]]></bm:update-sql> end;]]></bm:update-sql>
</bm:operation> </bm:operation>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-6-8 下午02:48:34
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="RSC_FIN_STATEMENT_PRJ_HDS_V">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT
*
FROM
(SELECT DISTINCT
t1.FIN_STATEMENT_TEMPLET_ID,
t1.FIN_STATEMENT_TEMPLET_CODE,
t1.FIN_STATEMENT_TEMPLET_NAME,
t1.BP_ID,
t1.BP_CODE,
t1.BP_NAME,
t1.BP_CATEGORY,
t1.BP_TYPE,
t1.PROJECT_ID,
t1.PROJECT_NUMBER,
t1.PROJECT_NAME,
t1.currency_code,
t1.CURRENCY_NAME
FROM
RSC_FIN_STATEMENT_PRJ_HDS_V t1
) v #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<!-- <bm:field name="fin_statement_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_STATEMENT_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.FIN_STATEMENT_ID"/> -->
<bm:field name="fin_statement_templet_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_STATEMENT_TEMPLET_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS.FIN_STATEMENT_TEMPLET_ID"/>
<bm:field name="fin_statement_templet_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_CODE" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE"/>
<bm:field name="fin_statement_templet_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_NAME" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME"/>
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_ID"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CODE" prompt="HLS.BP_CODE"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="HLS.BP_NAME"/>
<bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_CATEGORY"/>
<bm:field name="bp_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TYPE" prompt="HLS.BP_TYPE"/>
<bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.PROJECT_ID"/>
<bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER" prompt="RSC501.PRJ_PROJECT.PROJECT_NUMBER"/>
<bm:field name="project_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NAME" prompt="RSC501.PRJ_PROJECT.PROJECT_NAME"/>
<bm:field name="currency_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_NAME" prompt="RSC501.PRJ_PROJECT.CURRENCY_NAME"/>
</bm:fields>
<bm:query-fields>
<bm:query-field field="fin_statement_templet_id" queryOperator="="/>
<bm:query-field field="bp_id" queryOperator="="/>
<!-- <bm:query-field name="creation_date_from" queryExpression="t1.creation_date &gt;=${@creation_date_from}"/>
<bm:query-field name="creation_date_to" queryExpression="t1.creation_date &lt;=${@creation_date_to}"/> -->
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="project_id" expression="project_id is null"/>
</bm:data-filters>
</bm:model>
...@@ -21,10 +21,25 @@ ...@@ -21,10 +21,25 @@
p_user_id =>${/session/@user_id}, p_user_id =>${/session/@user_id},
p_unit_code=>${@unit_code}, p_unit_code=>${@unit_code},
p_currency_code=>${@currency_code}, p_currency_code=>${@currency_code},
p_error_flag=>${@error_flag} p_error_flag=>${@error_flag},
p_project_id=>${@project_id},
p_check_result=>${@check_result}
); );
end; end;
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
${@check_result} :=rsc_fin_statement_prj_pkg.check_fin_bp_import(
p_session_id=>${/session/@session_id},
p_fin_statement_templet_id=>${@fin_statement_templet_id},
p_bp_id =>${@bp_id});
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="check_result" output="true" outputPath="/parameter/@check_result"/>
</bm:parameters>
</bm:operation>
</bm:operations> </bm:operations>
</bm:model> </bm:model>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
--> -->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations> <bm:operations>
<!-- <bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
SELECT SELECT
t1.FIN_STATEMENT_TEMPLET_ID, t1.FIN_STATEMENT_TEMPLET_ID,
...@@ -37,58 +37,37 @@ ...@@ -37,58 +37,37 @@
FROM FROM
RSC_FIN_STATEMENT_PRJ_HDS_V t1 #WHERE_CLAUSE# RSC_FIN_STATEMENT_PRJ_HDS_V t1 #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> -->
<bm:operation name="query">
<bm:query-sql><![CDATA[
select b.bp_id,
b.bp_code,
b.bp_name,
b.bp_category,
b.bp_type,
b.fin_net_cash_inflow,
b.fin_monthly_payment,
b.fin_months,
b.fin_monthly_payment * b.fin_months total_monthly_payment,
(case
when b.fin_monthly_payment <> 0 and b.fin_months <> 0 then
b.fin_net_cash_inflow / (b.fin_monthly_payment * b.fin_months)
else
null
end) fin_rate,
b.fin_turnover,
b.fin_liquidity_ratio,
b.fin_leverage,
b.fin_data,
b.fin_evaluation,
b.fin_note
from hls_bp_master b
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:fields> <bm:fields>
<!-- <bm:field name="fin_statement_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_STATEMENT_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.FIN_STATEMENT_ID"/> -->
<bm:field name="fin_statement_templet_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_STATEMENT_TEMPLET_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS.FIN_STATEMENT_TEMPLET_ID"/>
<bm:field name="fin_statement_templet_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_CODE" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE"/>
<bm:field name="fin_statement_templet_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_NAME" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME"/>
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_ID"/> <bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_ID"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CODE" prompt="HLS.BP_CODE"/> <bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CODE" prompt="HLS.BP_CODE"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="HLS.BP_NAME"/> <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="HLS.BP_NAME"/>
<bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_CATEGORY"/> <bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_CATEGORY"/>
<bm:field name="bp_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TYPE" prompt="HLS.BP_TYPE"/> <bm:field name="bp_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TYPE" prompt="HLS.BP_TYPE"/>
<bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.PROJECT_ID"/>
<bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER" prompt="RSC501.PRJ_PROJECT.PROJECT_NUMBER"/>
<bm:field name="project_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NAME" prompt="RSC501.PRJ_PROJECT.PROJECT_NAME"/>
<bm:field name="currency_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_NAME" prompt="RSC501.PRJ_PROJECT.CURRENCY_NAME"/>
<bm:field name="fin_net_cash_inflow" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_NET_CASH_INFLOW"/> <bm:field name="fin_net_cash_inflow" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_NET_CASH_INFLOW"/>
<bm:field name="fin_monthly_payment" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_MONTHLY_PAYMENT"/> <bm:field name="fin_monthly_payment" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_MONTHLY_PAYMENT"/>
<bm:field name="total_monthly_payment" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_MONTHLY_PAYMENT"/> <bm:field name="total_monthly_payment" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_MONTHLY_PAYMENT"/>
<bm:field name="fin_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_RATE"/> <bm:field name="fin_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_RATE"/>
<bm:field name="fin_months" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_MONTHS"/> <bm:field name="fin_months" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_MONTHS"/>
<bm:field name="fin_turnover" databaseType="CLOB" datatype="java.lang.String" physicalName="FIN_TURNOVER"/> <bm:field name="fin_turnover" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_TURNOVER"/>
<bm:field name="fin_liquidity_ratio" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_LIQUIDITY_RATIO"/> <bm:field name="fin_liquidity_ratio" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_LIQUIDITY_RATIO"/>
<bm:field name="fin_leverage" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_LEVERAGE"/> <bm:field name="fin_leverage" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_LEVERAGE"/>
<bm:field name="fin_data" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_DATA"/> <bm:field name="fin_data" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_DATA"/>
<bm:field name="fin_evaluation" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_EVALUATION"/> <bm:field name="fin_evaluation" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_EVALUATION"/>
<bm:field name="fin_note" databaseType="CLOB" datatype="java.lang.String" physicalName="FIN_NOTE"/> <bm:field name="fin_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_NOTE"/>
</bm:fields> </bm:fields>
<bm:query-fields> <bm:query-fields>
<!-- <bm:query-field field="fin_statement_templet_id" queryOperator="="/> --> <bm:query-field field="fin_statement_templet_id" queryOperator="="/>
<bm:query-field name="bp_id" queryExpression="b.bp_id=${@bp_id}"/> <bm:query-field field="bp_id" queryOperator="="/>
<!-- <bm:query-field name="creation_date_from" queryExpression="t1.creation_date &gt;=${@creation_date_from}"/> <!-- <bm:query-field name="creation_date_from" queryExpression="t1.creation_date &gt;=${@creation_date_from}"/>
<bm:query-field name="creation_date_to" queryExpression="t1.creation_date &lt;=${@creation_date_to}"/> --> <bm:query-field name="creation_date_to" queryExpression="t1.creation_date &lt;=${@creation_date_to}"/> -->
</bm:query-fields> </bm:query-fields>
......
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select fin_statement_id,
fin_statement_templet_id,
fin_statement_templet_code,
fin_statement_templet_name,
bp_id,
bp_code,
bp_name,
bp_category,
bp_type,
project_id,
project_number,
project_name,
currency_code,
currency_name,
fiscal_year,
fiscal_month,
(fiscal_year || '年' || fiscal_month || '月') fiscal_date,
'审批通过' status
from RSC_FIN_STATEMENT_PRJ_HDS_V t
where t.bp_id is not null
and exists
(select 1
from RSC_FIN_STATEMENT_PRJ_HDS_V t1
where t1.bp_code = t.bp_code
and t1.project_id = ${/parameter/@project_id}
and to_char(to_date(t1.fiscal_year || t1.fiscal_month, 'yyyymm'),
'yyyymm') =
to_char(add_months(to_date(t.fiscal_year || t.fiscal_month,
'yyyymm'),
1),
'yyyymm'))
and not exists
(select 1
from RSC_FIN_STATEMENT_PRJ_HDS_V t1
where t1.bp_code = t.bp_code
and t1.project_id = ${/parameter/@project_id}
and to_char(to_date(t1.fiscal_year || t1.fiscal_month, 'yyyymm'),
'yyyymm') =
to_char(to_date(t.fiscal_year || t.fiscal_month, 'yyyymm'),
'yyyymm'))
order by fiscal_year,fiscal_month
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select fin_statement_id,
fin_statement_templet_id,
fin_statement_templet_code,
fin_statement_templet_name,
bp_id,
bp_code,
bp_name,
bp_category,
bp_type,
project_id,
project_number,
project_name,
currency_code,
currency_name,
fiscal_year,
fiscal_month,
(fiscal_year || '年' || fiscal_month || '月') fiscal_date,
'审批通过' status
from RSC_FIN_STATEMENT_PRJ_HDS_V t
where t.bp_id is not null
and t.project_id is null
and exists
(select 1
from RSC_FIN_STATEMENT_PRJ_HDS_V t1
where t1.bp_id = t.bp_id
and t1.project_id = ${/parameter/@project_id}
and to_char(to_date(t1.fiscal_year || t1.fiscal_month, 'yyyymm'),
'yyyymm') =
to_char(add_months(to_date(t.fiscal_year || t.fiscal_month,
'yyyymm'),
1),
'yyyymm'))
and not exists
(select 1
from RSC_FIN_STATEMENT_PRJ_HDS_V t1
where t1.bp_id = t.bp_id
and t1.project_id = ${/parameter/@project_id}
and to_char(to_date(t1.fiscal_year || t1.fiscal_month, 'yyyymm'),
'yyyymm') =
to_char(to_date(t.fiscal_year || t.fiscal_month, 'yyyymm'),
'yyyymm'))
order by fiscal_year,fiscal_month
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -31,8 +31,10 @@ ...@@ -31,8 +31,10 @@
<bm:query-fields> <bm:query-fields>
<bm:query-field field="bp_id" queryOperator="="/> <bm:query-field field="bp_id" queryOperator="="/>
<bm:query-field field="fin_statement_templet_id" queryOperator="="/> <bm:query-field field="fin_statement_templet_id" queryOperator="="/>
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter expression="((nvl(${@project_flag},'N')='Y' and ${@project_id}=t1.project_id) or(nvl(${@project_flag},'N')='N' and t1.project_id is null))"></bm:data-filter>
<bm:data-filter enforceOperations="query" expression="exists (select 1 from rsc_fin_statement_prj_lns ln where ln.fin_statement_id=t1.fin_statement_id)"/> <bm:data-filter enforceOperations="query" expression="exists (select 1 from rsc_fin_statement_prj_lns ln where ln.fin_statement_id=t1.fin_statement_id)"/>
</bm:data-filters> </bm:data-filters>
</bm:model> </bm:model>
...@@ -96,6 +96,10 @@ ...@@ -96,6 +96,10 @@
fin_statement_templet_id = ${@fin_statement_templet_id} AND fin_statement_templet_id = ${@fin_statement_templet_id} AND
bp_id = ${@bp_id} AND bp_id = ${@bp_id} AND
fiscal_month = 12 AND fiscal_month = 12 AND
(
(${@project_id} is not null and project_id=${@project_id}) or
(${@project_id} is null and project_id is null)
) AND
fin_statement_type = 'CASHFLOW_FORECAST' AND fin_statement_type = 'CASHFLOW_FORECAST' AND
forecast_flag = 'Y' forecast_flag = 'Y'
) v2 ) v2
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
'Y' as flag 'Y' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'second_year' as year, 'second_year' as year,
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'third_year' as year, 'third_year' as year,
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'fourth_year' as year, 'fourth_year' as year,
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1,${/parameter/@project_id})
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
'Y' as flag 'Y' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'second_year' as year, 'second_year' as year,
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'third_year' as year, 'third_year' as year,
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'fourth_year' as year, 'fourth_year' as year,
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1,${/parameter/@project_id})
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
'Y' as flag 'Y' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'second_year' as year, 'second_year' as year,
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'third_year' as year, 'third_year' as year,
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'fourth_year' as year, 'fourth_year' as year,
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1,${/parameter/@project_id})
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
'Y' as flag 'Y' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'second_year' as year, 'second_year' as year,
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'third_year' as year, 'third_year' as year,
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 3) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 2,${/parameter/@project_id})
union all union all
select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year, select t.fiscal_year || '年' || t.fiscal_month || '月' fiscal_year,
'fourth_year' as year, 'fourth_year' as year,
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
'N' as flag 'N' as flag
from rsc_fin_statement_prj_hds t from rsc_fin_statement_prj_hds t
where t.fin_statement_id = where t.fin_statement_id =
rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 4) rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id}, ${/session/@company_id}, ${/parameter/@bp_id}, 1,${/parameter/@project_id})
......
...@@ -55,16 +55,16 @@ ...@@ -55,16 +55,16 @@
from rsc_fin_statement_tmplt_lns tl, from rsc_fin_statement_tmplt_lns tl,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},1) ) year_1, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},1,${@project_id}) ) year_4,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},2) ) year_2, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},2,${@project_id}) ) year_3,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},3) ) year_3, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},3,${@project_id}) ) year_2,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},4) ) year_4 where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},4,${@project_id}) ) year_1
where tl.fin_statement_templet_id = ${@fin_statement_templet_id} where tl.fin_statement_templet_id = ${@fin_statement_templet_id}
and tl.fin_statement_type = ${@fin_statement_type} and tl.fin_statement_type = ${@fin_statement_type}
and tl.fin_statement_type = year_1.fin_statement_type(+) and tl.fin_statement_type = year_1.fin_statement_type(+)
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<bm:field name="fin_statement_templet_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_CODE" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_TEMPLET_CODE"/> <bm:field name="fin_statement_templet_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_CODE" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_TEMPLET_CODE"/>
<bm:field name="fin_statement_templet_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_NAME" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_TEMPLET_NAME"/> <bm:field name="fin_statement_templet_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_NAME" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_TEMPLET_NAME"/>
<bm:field name="fin_statement_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TYPE" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_TYPE"/> <bm:field name="fin_statement_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TYPE" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_TYPE"/>
<bm:field name="amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AMOUNT" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.AMOUNT"/> <bm:field name="amount" databaseType="Double" datatype="java.lang.Double" physicalName="AMOUNT" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.AMOUNT"/>
<bm:field name="fin_statement_item" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_ITEM" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_ITEM"/> <bm:field name="fin_statement_item" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_ITEM" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FIN_STATEMENT_ITEM"/>
<bm:field name="line_number" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LINE_NUMBER" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.LINE_NUMBER"/> <bm:field name="line_number" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LINE_NUMBER" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.LINE_NUMBER"/>
<bm:field name="fiscal_year" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FISCAL_YEAR" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FISCAL_YEAR"/> <bm:field name="fiscal_year" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FISCAL_YEAR" prompt="RSC_FIN_STATEMENT_PRJ_LNS_V.FISCAL_YEAR"/>
......
...@@ -75,16 +75,16 @@ ...@@ -75,16 +75,16 @@
from rsc_fin_statement_tmplt_lns tl, from rsc_fin_statement_tmplt_lns tl,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},1) ) year_1, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},1,${@project_id}) ) year_1,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},2) ) year_2, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},2,${@project_id}) ) year_2,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},3) ) year_3, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},3,${@project_id}) ) year_3,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},4) ) year_4 where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},4,${@project_id}) ) year_4
where tl.fin_statement_templet_id = ${@fin_statement_templet_id} where tl.fin_statement_templet_id = ${@fin_statement_templet_id}
and tl.fin_statement_type = year_1.fin_statement_type(+) and tl.fin_statement_type = year_1.fin_statement_type(+)
and tl.fin_statement_item = year_1.fin_statement_item(+) and tl.fin_statement_item = year_1.fin_statement_item(+)
......
...@@ -30,16 +30,16 @@ ...@@ -30,16 +30,16 @@
from rsc_fin_statement_tmplt_lns tl, from rsc_fin_statement_tmplt_lns tl,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},1) ) year_1, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},1,${@project_id}) ) year_1,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},2) ) year_2, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},2,${@project_id}) ) year_2,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},3) ) year_3, where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},3,${@project_id}) ) year_3,
(select * (select *
from rsc_fin_statement_prj_lns l from rsc_fin_statement_prj_lns l
where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},4) ) year_4 where l.fin_statement_id = rsc_fin_statement_prj_pkg.get_fin_statement_id(${@fin_statement_templet_id},${/session/@company_id},${@bp_id},4,${@project_id}) ) year_4
where tl.fin_statement_templet_id = ${@fin_statement_templet_id} where tl.fin_statement_templet_id = ${@fin_statement_templet_id}
and tl.fin_statement_type = year_1.fin_statement_type(+) and tl.fin_statement_type = year_1.fin_statement_type(+)
and tl.fin_statement_item = year_1.fin_statement_item(+) and tl.fin_statement_item = year_1.fin_statement_item(+)
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
FROM FROM
(SELECT (SELECT
'a' 'a'
|| v.fiscal_year column_name, /* || v.fiscal_year column_name, --modify zxt 事故单90503 导入时不显示数据 */
|| v.fiscal_year || v.fiscal_month column_name,
v.fiscal_year v.fiscal_year
|| '年' || '年'
|| DECODE(v.fiscal_month, NULL, '', v.fiscal_month || DECODE(v.fiscal_month, NULL, '', v.fiscal_month
......
...@@ -10,10 +10,9 @@ ...@@ -10,10 +10,9 @@
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[select nvl(DECODE(${/parameter/@fin_statement_templet_id}, <bm:query-sql><![CDATA[select nvl(DECODE(${/parameter/@fin_statement_templet_id},
'', '',
(SELECT r.FIN_STATEMENT_TEMPLET_ID (SELECT max(r.FIN_STATEMENT_TEMPLET_ID)
FROM RSC_FIN_STATEMENT_PRJ_HDS r FROM RSC_FIN_STATEMENT_PRJ_HDS r
WHERE r.bp_id = ${/parameter/@bp_id} WHERE r.bp_id = ${/parameter/@bp_id}),
AND rownum = 1),
${/parameter/@fin_statement_templet_id}),-100) fin_statement_templet_id ${/parameter/@fin_statement_templet_id}),-100) fin_statement_templet_id
from dual]]></bm:query-sql> from dual]]></bm:query-sql>
</bm:operation> </bm:operation>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-6-8 下午02:48:34
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="RSC_FIN_STATEMENT_PRJ_HDS_V">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select to_char(sysdate,'yyyymm') report_num,
(select m.bp_id from sys_user su,hls_bp_master m where su.bp_id = m.bp_id and su.bp_category in ('AGENT_DF') and su.user_id = ${/session/@user_id}) bp_id,
(select m.bp_name from sys_user su,hls_bp_master m where su.bp_id = m.bp_id and su.bp_category in ('AGENT_DF') and su.user_id = ${/session/@user_id}) bp_name
from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-6-8 下午02:48:34
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="update">
<bm:query-sql><![CDATA[
begin
rsc_fin_statement_prj_pkg.rsc_fin_report_submit(p_project_id => ${@project_id},
p_user_id => ${/session/@user_id},
p_company_id => ${/session/@company_id});
end;
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-6-8 下午02:48:34
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="rsc_fin_statement_his_lv">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT
*
FROM
(SELECT DISTINCT
t1.FIN_STATEMENT_TEMPLET_ID,
t1.FIN_STATEMENT_TEMPLET_CODE,
t1.FIN_STATEMENT_TEMPLET_NAME,
t1.BP_ID,
t1.BP_CODE,
t1.BP_NAME,
t1.BP_CATEGORY,
t1.BP_TYPE,
t1.PROJECT_ID,
t1.status,
t1.report_num,
t1.status_desc,
t1.currency_code,
t1.CURRENCY_NAME,
t1.check_result
FROM
rsc_fin_statement_his_lv t1
) v #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
<bm:operation name="insert">
<bm:query-sql><![CDATA[
begin
rsc_fin_statement_prj_pkg.ins_rsc_fin_statement_report(p_bp_id => ${@bp_id},
p_report_num => ${@report_num},
p_status => ${@status},
p_user_id => ${/session/@user_id});
end;
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<!-- <bm:field name="fin_statement_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_STATEMENT_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.FIN_STATEMENT_ID"/> -->
<bm:field name="fin_statement_templet_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIN_STATEMENT_TEMPLET_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS.FIN_STATEMENT_TEMPLET_ID"/>
<bm:field name="fin_statement_templet_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_CODE" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE"/>
<bm:field name="fin_statement_templet_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIN_STATEMENT_TEMPLET_NAME" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME"/>
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_ID"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CODE" prompt="HLS.BP_CODE"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="HLS.BP_NAME"/>
<bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.BP_CATEGORY"/>
<bm:field name="bp_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TYPE" prompt="HLS.BP_TYPE"/>
<bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID" prompt="RSC_FIN_STATEMENT_PRJ_HDS_V.PROJECT_ID"/>
<bm:field name="currency_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_NAME" prompt="RSC501.PRJ_PROJECT.CURRENCY_NAME"/>
<bm:field name="report_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REPORT_NUM" prompt="RSC501.PRJ_PROJECT.REPORT_NUM"/>
<bm:field name="status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS" prompt="RSC501.PRJ_PROJECT.STATUS"/>
<bm:field name="status_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS_DESC" prompt="RSC501.PRJ_PROJECT.STATUS_DESC"/>
<bm:field name="check_result" databaseType="VARCHAR2"/>
</bm:fields>
<bm:query-fields>
<bm:query-field field="fin_statement_templet_id" queryOperator="="/>
<bm:query-field field="bp_id" queryOperator="="/>
<bm:query-field field="project_id" queryOperator="="/>
<bm:query-field field="report_num" queryOperator="="/>
<bm:query-field field="status" queryOperator="="/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="status" enforceOperations="query" expression="status not in (&apos;NEW&apos;) and exists (select 1 from sys_user su where (su.bp_category = &apos;EMPLOYEE&apos; or ( v.bp_id=su.bp_id AND su.bp_category in (&apos;AGENT_DF&apos;))) and su.user_id = ${/session/@user_id})"/>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-6-8 下午02:48:34
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" baseTable="rsc_fin_statement_report">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT *
FROM
rsc_fin_statement_report_lv t1 #WHERE_CLAUSE# order by t1.project_id desc
]]></bm:query-sql>
</bm:operation>
<bm:operation name="insert">
<bm:query-sql><![CDATA[
begin
rsc_fin_statement_prj_pkg.ins_rsc_fin_statement_report(p_bp_id => ${@bp_id},
p_report_num => ${@report_num},
p_status => ${@status},
p_user_id => ${/session/@user_id});
end;
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="project_id"></bm:field>
<bm:field name="bp_id"></bm:field>
<bm:field name="bp_name" forInsert="false" forUpdate="false" ></bm:field>
<bm:field name="report_num"></bm:field>
<bm:field name="status"></bm:field>
<bm:field name="status_desc" forInsert="false" forUpdate="false" ></bm:field>
<bm:field name="workflow_id"></bm:field>
<bm:field name="approved_date"></bm:field>
</bm:fields>
<bm:query-fields>
<bm:query-field field="report_num" queryOperator="="/>
<bm:query-field field="status" queryOperator="="/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="status" enforceOperations="query" expression="t1.status = &apos;NEW&apos; and exists (select 1 from sys_user su where (su.bp_category = &apos;EMPLOYEE&apos; or ( t1.bp_id=su.bp_id AND su.bp_category in (&apos;AGENT_DF&apos;))) and su.user_id = ${/session/@user_id})"/>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:fields>
<bm:field name="rsc_fin_report_url"/>
<bm:field name="year"/>
<bm:field name="month"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select sys_parameter_pkg.value('RSC_FIN_REPORT_URL') rsc_fin_report_url,
to_char(sysdate,'yyyy') year,
to_char(sysdate,'mm') month
from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: Yenick
$Date: 2018-06-06 下午04:24:11
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
rsc_fin_statement_prj_pkg.save_report_atm_data(p_project_id => ${@project_id},
p_file_name => ${@file_name},
p_file_path => ${@file_path},
p_file_length => ${@file_length},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: Harry
$Date: 2017-1-9 下午01:13:07
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:s="leaf.plugin.script" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HLS_BP_MASTER_V">
<bm:fields>
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="HLS_BP_MASTER_V.BP_ID"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="120" forDisplay="true" forQuery="true" physicalName="BP_CODE" prompt="经销商编码"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="210" forDisplay="true" forQuery="true" physicalName="BP_NAME" prompt="经销商名称"/>
<bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID" prompt="HLS_BP_MASTER_V.COMPANY_ID"/>
<bm:field name="company_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_CODE" prompt="HLS_BP_MASTER_V.COMPANY_CODE"/>
<bm:field name="company_short_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_SHORT_NAME" prompt="HLS_BP_MASTER_V.COMPANY_SHORT_NAME"/>
<bm:field name="company_full_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_FULL_NAME" prompt="HLS_BP_MASTER_V.COMPANY_FULL_NAME"/>
<bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY"/>
<bm:field name="bp_category_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY_NAME"/>
<bm:field name="bp_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS"/>
<bm:field name="bp_class_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS_NAME"/>
<bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG"/>
</bm:fields>
<bm:features>
<f:standard-who/>
<s:bm-script><![CDATA[
var cx = Packages.leaf.javascript.Context.getCurrentContext();
Packages.leaf.plugin.script.engine.ScriptImportor.defineExternScript(cx, this, $ctx.getData(), "aut_authority_bm_validate.js");
]]></s:bm-script>
</bm:features>
<bm:query-fields>
<bm:query-field field="bp_id" queryOperator="="/>
<bm:query-field field="bp_code" queryOperator="like"/>
<bm:query-field field="bp_name" queryExpression="t1.bp_name like &apos;%&apos;||${@bp_name}||&apos;%&apos;"/>
<bm:query-field field="bp_category" queryExpression="(t1.bp_category = ${@bp_category} or exists(select 1 from hls_bp_master_role br where br.bp_id = t1.bp_id and br.bp_category = ${@bp_category} and br.bp_type = ${@bp_category}))"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="query" expression="(t1.enabled_flag=&apos;Y&apos;)"/>
<bm:data-filter name="bp_category" expression="t1.bp_category = &apos;AGENT&apos;"/>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-3-12 下午01:10:46
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:p="uncertain.proc" needAccessControl="false">
<bm:fields>
<bm:field name="first_fiscal_year"/>
<bm:field name="second_fiscal_year"/>
<bm:field name="third_fiscal_year"/>
<bm:field name="fourth_fiscal_year"/>
<bm:field name="fifth_fiscal_year"/>
<bm:field name="sixth_fiscal_year"/>
<bm:field name="seventh_fiscal_year"/>
<bm:field name="eighth_fiscal_year"/>
<bm:field name="ninth_fiscal_year"/>
<bm:field name="tenth_fiscal_year"/>
<bm:field name="eleventh_fiscal_year"/>
<bm:field name="twelfth_fiscal_year"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select (select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 1)) first_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 2)) second_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 3)) third_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 4)) fourth_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 5)) fifth_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 6)) sixth_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 7)) seventh_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 8)) eighth_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 9)) ninth_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 10)) tenth_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 11)) eleventh_fiscal_year,
(select hd.fiscal_year || '年' || hd.fiscal_month || '月' from rsc_fin_statement_prj_hds hd where fin_statement_id = rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id}, p_number_id => 12)) twelfth_fiscal_year
from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-3-12 下午01:10:46
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:p="uncertain.proc" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select l.item_desc,
l.line_number,
l.fin_statement_templet_id,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 1)) amount1,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 2)) amount2,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 3)) amount3,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 4)) amount4,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 5)) amount5,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 6)) amount6,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 7)) amount7,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 8)) amount8,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 9)) amount9,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 10)) amount10,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 11)) amount11,
(select amount
from rsc_fin_statement_prj_lns t
where t.line_number = l.line_number
and t.fin_statement_item = l.fin_statement_item
and t.fin_statement_id =
rsc_excel_export_details.get_fin_statement_id(p_session_id => ${/session/@session_id},
p_number_id => 12)) amount12
from rsc_fin_statement_tmplt_lns l
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
@Author: xsh 35973
@Date: 2022/3/25 10:58
@Revision: 1.0
@Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1">
<bm:fields>
<bm:field name="line_number" displayWidth="150" forDisplay="true" forQuery="true" prompt="序号"/>
<bm:field name="index_name" displayWidth="150" forDisplay="true" forQuery="true" prompt="指标名称"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from financial_statement_index_name
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field field="line_number" queryExpression=" line_number = ${@line_number}"/>
<bm:query-field field="index_name" queryOperator="like"/>
</bm:query-fields>
</bm:model>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
@Author: xsh 35973
@Date: 2022/3/25 10:58
@Revision: 1.0
@Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1">
<bm:fields>
<bm:field name="report_num" displayWidth="150" forDisplay="false" forQuery="false" prompt="财报年月"/>
<bm:field name="report_month" displayWidth="150" forDisplay="true" forQuery="true" prompt="财报年月"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from (select period_name month_code,period_name report_month,internal_period_num report_num
from gld_periods where adjustment_flag = 'N'
and start_date BETWEEN to_date('2015-01-01','YYYY-MM-DD') AND add_months(sysdate,15))
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field field="report_num" queryExpression=" report_num = ${@report_num}"/>
<bm:query-field field="report_month" queryExpression=" substr(report_month,0,4) = substr(${@report_month},0,4)"/>
</bm:query-fields>
</bm:model>
\ No newline at end of file
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/> <a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/>
</a:fieldSet> </a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="TMPLT_IMPORT_FILE" width="400"> <a:fieldSet style="margin-left:10px;margin-top:10px;" title="TMPLT_IMPORT_FILE" width="400">
<form name="upload" id="importForm" action="rsc_fin_statement_tmplt_import_last.lview?session_id=${/parameter/@session_id}&amp;fin_statement_templet_code=${/parameter/@fin_statement_templet_code}&amp;fin_statement_templet_name=${/parameter/@fin_statement_templet_name}" enctype="multipart/form-data" method="post"> <form name="upload" id="importForm" action="rsc_fin_statement_tmplt_import_last.lview?session_id=${/parameter/@session_id}&amp;fin_statement_templet_code=${/parameter/@fin_statement_templet_code}&amp;fin_statement_templet_name=${/parameter/@fin_statement_templet_name}&amp;_csrf=${/session/@_csrf.token}" enctype="multipart/form-data" method="post">
<label style="margin-left:10px;margin-top:10px"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label> <label style="margin-left:10px;margin-top:10px"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label>
<input name="CONTENT" id="importFile" type="file"/> <input name="CONTENT" id="importFile" type="file"/>
<input onclick="saveClick()" style="margin-left:10px;margin-top:10px" type="button" value="${l:TMPLT_IMPORT}"/> <input onclick="saveClick()" style="margin-left:10px;margin-top:10px" type="button" value="${l:TMPLT_IMPORT}"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:sel="www.shanghai-electric.com" xmlns:et="leaf.plugin.export.task" xmlns:task="leaf.application.task" xmlns:dr="leaf.plugin.excelreport" xmlns:mail="leaf.plugin.mail" xmlns:msg="leaf.application.features.msg" xmlns:p="uncertain.proc" xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:init-procedure>
<!-- <a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_excel_prj_export_sheet1" rootPath="/model/fin_statement_item"/> -->
<!-- <a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_indicator_lns_datasource" rootPath="/model/datasource"/>
<a:model-query autoCount="true" model="rsc.RSC303.rsc_fin_indicator_lns_result" rootPath="result"/> -->
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_excel_prj_export_years_head" rootPath="/model/fin_statement_years"/>
<p:switch test="/parameter/@datasoure_type">
<p:case value="prj_datail">
<a:model-query defaultWhereClause="fin_statement_type =&apos;BALANCE_SHEET&apos; and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query" rootPath="/model/balance_statement"/>
<a:model-query defaultWhereClause="fin_statement_type =&apos;INCOME_STATEMENT&apos; and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query" rootPath="/model/income_statement"/>
<a:model-query defaultWhereClause="fin_statement_type =&apos;CASHFLOW_STATEMENT&apos; and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query" rootPath="/model/cashflow_statement"/>
<a:model-query defaultWhereClause="fin_statement_type =&apos;SUPPLEMENTARY&apos; and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query" rootPath="/model/supplementary"/>
<dr:excel-report enableTask="false" filename="财务报表详细信息导出.xlsx">
<dr:styles>
<dr:cell-style name="header" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN">
<dr:font bold="true" fontname="宋体" height="10" italic="false"/>
</dr:cell-style>
<dr:cell-style name="cell1" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN">
<dr:font bold="false" fontname="宋体" height="10" italic="false"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN">
<dr:font bold="false" fontname="Arial" height="10" italic="false"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="资产负债表" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13" displayGridlines="false">
<dr:dynamic-content cell="A" dataModel="/model/balance_statement" row="1">
<dr:columns>
<dr:table-column cellStyle="cell1" field="item_desc" renderer="font_money_format_renderer" title="报表项名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="line_number" renderer="font_money_format_renderer" title="行号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount" renderer="font_money_format_renderer" title="科目值" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
<dr:sheet name="利润表" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13" displayGridlines="false">
<dr:dynamic-content cell="A" dataModel="/model/income_statement" row="1">
<dr:columns>
<dr:table-column cellStyle="cell1" field="item_desc" renderer="font_money_format_renderer" title="报表项名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="line_number" renderer="font_money_format_renderer" title="行号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount" renderer="font_money_format_renderer" title="科目值" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
<dr:sheet name="现金流量表" autoSizeColumns="0,1,2,3,4,5,6,7,8" displayGridlines="false">
<dr:dynamic-content cell="A" dataModel="/model/cashflow_statement" row="1">
<dr:columns>
<dr:table-column cellStyle="cell1" field="item_desc" renderer="font_money_format_renderer" title="报表项名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="line_number" renderer="font_money_format_renderer" title="行号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount" renderer="font_money_format_renderer" title="科目值" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
<!--<dr:sheet name="补充" autoSizeColumns="0,1,2,3,4,5,6,7,8" displayGridlines="false">
<dr:dynamic-content cell="A" dataModel="/model/supplementary" row="1">
<dr:columns>
<dr:table-column cellStyle="cell1" field="item_desc" renderer="font_money_format_renderer" title="报表项名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="line_number" renderer="font_money_format_renderer" title="行号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount" renderer="font_money_format_renderer" title="科目值" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>-->
</dr:sheets>
</dr:excel-report>
</p:case>
</p:switch>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:model-delete model="rsc.RSC303.rsc_fin_statement_detail_tmp" trace="true"/>
<batch-apply sourcePath="/parameter/details">
<a:model-insert model="rsc.RSC303.rsc_fin_statement_detail_tmp" trace="true"/>
</batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<a:link id="rsc_fin_handle_query_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_query.lview"/> <a:link id="rsc_fin_handle_query_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_query.lview"/>
<a:link id="rsc_fin_statement_prj_import_handle_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle.lview"/> <a:link id="rsc_fin_statement_prj_import_handle_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle.lview"/>
<a:link id="rsc_fin_handle_formula_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_formula.lview"/> <a:link id="rsc_fin_handle_formula_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_formula.lview"/>
<a:link id="uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="RSC303_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/> <a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/>
<a:link id="sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/> <a:link id="sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/>
<a:link id="word_id" url="${/request/@context_path}/test.lview"/> <a:link id="word_id" url="${/request/@context_path}/test.lview"/>
...@@ -45,14 +45,26 @@ ...@@ -45,14 +45,26 @@
function see_fin_statement_prj_detail(value, record, name) { function see_fin_statement_prj_detail(value, record, name) {
if (record.get('fin_statement_templet_id')) { if (record.get('fin_statement_templet_id')) {
var url = $('rsc_fin_handle_query_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id'); var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_handle_query_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_id='+project_id+'&project_flag='+project_flag;
return '<a href="javascript:open_prj_window(\'' + url + '\');">' + '${l:RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_DETAIL}' + '</a>'; return '<a href="javascript:open_prj_window(\'' + url + '\');">' + '${l:RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_DETAIL}' + '</a>';
} }
} }
function see_fin_statement_formula_detail(value, record, name) { function see_fin_statement_formula_detail(value, record, name) {
if (record.get('fin_statement_templet_id')) { if (record.get('fin_statement_templet_id')) {
var url = $('rsc_fin_handle_formula_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id'); var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_handle_formula_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_id='+project_id+'&project_flag='+project_flag;
return '<a href="javascript:open_formula_window(\'' + url + '\');">' + '${l:RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL}' + '</a>'; return '<a href="javascript:open_formula_window(\'' + url + '\');">' + '${l:RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL}' + '</a>';
} }
} }
...@@ -109,7 +121,7 @@ ...@@ -109,7 +121,7 @@
} }
function do_down() { function do_down() {
var url = $('uploadFile_id').getUrl() + '?table_name=RSC_FIN_TPLT_IPT&header_id=1'; var url = $('RSC303_uploadFile_id').getUrl() + '?table_name=RSC_FIN_TPLT_IPT&header_id=1';
new Leaf.Window({ new Leaf.Window({
url: url, url: url,
title: '${l:STATEMENTS_BUSINESS_DATA_IMPORT_DOWN}', title: '${l:STATEMENTS_BUSINESS_DATA_IMPORT_DOWN}',
...@@ -131,7 +143,13 @@ ...@@ -131,7 +143,13 @@
function see_fin_statement_changeRate_detail(value, record, name) { function see_fin_statement_changeRate_detail(value, record, name) {
if (record.get('fin_statement_templet_id')) { if (record.get('fin_statement_templet_id')) {
var url = $('rsc_fin_change_rate_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id'); var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_change_rate_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_flag='+project_flag+'&project_id='+project_id;
return '<a href="javascript:open_changeRate_window(\'' + url + '\');">' + '${l:RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_DETAIL}' + '</a>'; return '<a href="javascript:open_changeRate_window(\'' + url + '\');">' + '${l:RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_DETAIL}' + '</a>';
} }
} }
...@@ -170,7 +188,13 @@ ...@@ -170,7 +188,13 @@
function fin_statement_prj_specific_detail_render(value,record,name){ function fin_statement_prj_specific_detail_render(value,record,name){
if (record.get('fin_statement_templet_id')) { if (record.get('fin_statement_templet_id')) {
var url = $('rsc_fin_statement_specific_detail_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id'); var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_statement_specific_detail_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_flag='+project_flag+'&project_id='+project_id;
return '<a href="javascript:open_specific_detail(\'' + url + '\');">' + '报表具体明细' + '</a>'; return '<a href="javascript:open_specific_detail(\'' + url + '\');">' + '报表具体明细' + '</a>';
} }
} }
...@@ -211,14 +235,14 @@ ...@@ -211,14 +235,14 @@
<a:field name="group_by_flag" defaultValue="Y"/> <a:field name="group_by_flag" defaultValue="Y"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="rsc303_fin_statement_prj_result_ds" autoPageSize="true" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v" queryDataSet="rsc303_fin_statement_prj_query_ds" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_hds_v/query?bp_id=${/parameter/@bp_id}" selectable="true"/> <a:dataSet id="rsc303_fin_statement_prj_result_ds" autoPageSize="true" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_all_query" queryDataSet="rsc303_fin_statement_prj_query_ds" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_all_query/query?bp_id=${/parameter/@bp_id}" selectable="true"/>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton click="rsc303_prj_back" text="HLS.BACK"/> <a:gridButton click="rsc303_prj_back" text="HLS.BACK"/>
<a:gridButton click="rsc303_prj_forward" text="HLS.FORWARD"/> <a:gridButton click="rsc303_prj_forward" text="HLS.FORWARD"/>
<!-- <a:gridButton click="rsc303_prj_exit" text="HLS.EXIT"/> --> <!-- <a:gridButton click="rsc303_prj_exit" text="HLS.EXIT"/> -->
<!-- <a:gridButton click="rsc303_prj_import" text="HLS.IMPORT"/> --> <a:gridButton click="rsc303_prj_import" text="HLS.IMPORT"/>
<a:gridButton click="rsc303_prj_query" text="HLS.QUERY"/> <a:gridButton click="rsc303_prj_query" text="HLS.QUERY"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form column="2" labelWidth="120" marginWidth="700" title="STATEMENTS_BUSINESS_DATA_QUERY"> <a:form column="2" labelWidth="120" marginWidth="700" title="STATEMENTS_BUSINESS_DATA_QUERY">
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="chanege_rate_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/> <a:link id="chanege_rate_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/>
<script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/> <script type="text/javascript" src="${/request/@context_path}/javascripts/calculate.js"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function rsc303_handle_forecast_back() { function rsc303_handle_forecast_back() {
(parent == top ? self : parent)['$']('${/parameter/@winid}').close(); (parent == top ? self : parent)['$']('${/parameter/@winid}').close();
......
...@@ -8,27 +8,38 @@ ...@@ -8,27 +8,38 @@
<a:screen xmlns:c="leaf.application.action" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true"> <a:screen xmlns:c="leaf.application.action" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_get_fin_statement_templet_id" rootPath="datasource"/> <a:model-query fetchAll="true" model="rsc.RSC303.rsc_get_fin_statement_templet_id" rootPath="datasource"/>
<a:model-query defaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and bp_id=${/parameter/@bp_id}" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v" rootPath="rsc_fin_statement_prj_hds"/> <a:model-query defaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and v.project_id is null ) or(nvl(${/parameter/@project_flag},'N')='Y' and v.project_id=${/parameter/@project_id}))" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v" rootPath="rsc_fin_statement_prj_hds"/>
<a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="currency"/> <a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="currency"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="rsc_import_change_rate_detail_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_change_rate_detail.lview"/> <a:link id="rsc_import_change_rate_detail_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_change_rate_detail.lview"/>
<a:link id="chanege_rate_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/> <a:link id="chanege_rate_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/>
<script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/> <script type="text/javascript" src="${/request/@context_path}/javascripts/calculate.js"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
var g_fin_statement_templet_id = ${/model/datasource/record/@fin_statement_templet_id}; var g_fin_statement_templet_id = '${/model/datasource/record/@fin_statement_templet_id}';
function rsc303_handle_changeRate_back() { function rsc303_handle_changeRate_back() {
(parent == top ? self : parent)['$']('${/parameter/@winid}').close(); (parent == top ? self : parent)['$']('${/parameter/@winid}').close();
} }
function do_excel() { function do_excel() {
var url = $('chanege_rate_sheets_excel_id').getUrl()+ '?fin_statement_templet_id=' + g_fin_statement_templet_id+'&bp_id='+${/parameter/@bp_id}+'&datasoure_type=chanege_rate'; var url;
if('${/parameter/@project_flag}'=='Y') {
var url = $('chanege_rate_sheets_excel_id').getUrl()+ '?fin_statement_templet_id=' + g_fin_statement_templet_id+'&bp_id=${/parameter/@bp_id}&datasoure_type=chanege_rate&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
var url = $('chanege_rate_sheets_excel_id').getUrl()+ '?fin_statement_templet_id=' + g_fin_statement_templet_id+'&bp_id=${/parameter/@bp_id}&datasoure_type=chanege_rate';
}
//var url = $('chanege_rate_sheets_excel_id').getUrl()+ '?fin_statement_templet_id=' + g_fin_statement_templet_id+'&bp_id='+${/parameter/@bp_id}+'&datasoure_type=chanege_rate';
window.open(url); window.open(url);
} }
function rsc303_prj_change_rate_Onupdate(ds, record, name, value, oldVlaue){ function rsc303_prj_change_rate_Onupdate(ds, record, name, value, oldVlaue){
if (name == 'fin_statement_templet_id') { if (name == 'fin_statement_templet_id') {
g_fin_statement_templet_id =value; g_fin_statement_templet_id =value;
document.getElementById('mainFrame').src = $('rsc_import_change_rate_detail_id').getUrl() + '?fin_statement_templet_id=' + value+'&bp_id='+${/parameter/@bp_id}; if('${/parameter/@project_flag}'=='Y') {
document.getElementById('mainFrame').src = $('rsc_import_change_rate_detail_id').getUrl() + '?fin_statement_templet_id=' + value+'&bp_id=${/parameter/@bp_id}&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
document.getElementById('mainFrame').src = $('rsc_import_change_rate_detail_id').getUrl() + '?fin_statement_templet_id=' + value+'&bp_id=${/parameter/@bp_id}';
}
} }
} }
...@@ -61,6 +72,7 @@ ...@@ -61,6 +72,7 @@
</a:field> </a:field>
<a:field name="fin_statement_templet_name" readOnly="true"/> <a:field name="fin_statement_templet_name" readOnly="true"/>
<a:field name="fin_statement_type_name" displayField="code_value_name" options="fin_statement_type_handle_query_ds" returnField="fin_statement_type" valueField="code_value_name"/> <a:field name="fin_statement_type_name" displayField="code_value_name" options="fin_statement_type_handle_query_ds" returnField="fin_statement_type" valueField="code_value_name"/>
<a:field name="project_number" readOnly="true"></a:field>
</a:fields> </a:fields>
<a:events> <a:events>
<a:event name="update" handler="rsc303_prj_change_rate_Onupdate"/> <a:event name="update" handler="rsc303_prj_change_rate_Onupdate"/>
...@@ -72,17 +84,36 @@ ...@@ -72,17 +84,36 @@
<a:gridButton click="rsc303_handle_changeRate_back" text="HLS.BACK"/> <a:gridButton click="rsc303_handle_changeRate_back" text="HLS.BACK"/>
<a:gridButton click="do_excel" text="HLS.EXCEL_EXPORT"/> <a:gridButton click="do_excel" text="HLS.EXCEL_EXPORT"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:switch test="/parameter/@project_flag">
<a:case value="Y">
<a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_QUERY"> <a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_QUERY">
<a:lov name="bp_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_CODE"/> <a:lov name="bp_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_CODE"/>
<a:textField name="bp_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_NAME"/> <a:textField name="bp_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_NAME"/>
<a:comboBox name="currency_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY"/> <a:comboBox name="currency_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY"/>
<a:lov name="fin_statement_templet_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/> <a:lov name="fin_statement_templet_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/>
<a:textField name="fin_statement_templet_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/> <a:textField name="fin_statement_templet_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/>
<a:textField name="project_number" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="单据编号"/>
</a:form> </a:form>
</a:case>
<a:case value="*">
<a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_QUERY">
<a:lov name="bp_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_CODE"/>
<a:textField name="bp_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_NAME"/>
<a:comboBox name="currency_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY"/>
<a:lov name="fin_statement_templet_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/>
<a:textField name="fin_statement_templet_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/>
</a:form>
</a:case>
</a:switch>
<iframe id="mainFrame" border="1" frameborder="no" onload="var body; if(mainFrame.document){body=mainFrame.document.body;}else{body=mainFrame.contentWindow.document.body} this.height=body.scrollHeight;this.width=body.scrollWidth" scrolling="no" style="display:block;position:absolute;left:0px"/> <iframe id="mainFrame" border="1" frameborder="no" onload="var body; if(mainFrame.document){body=mainFrame.document.body;}else{body=mainFrame.contentWindow.document.body} this.height=body.scrollHeight;this.width=body.scrollWidth" scrolling="no" style="display:block;position:absolute;left:0px"/>
</a:screenBody> </a:screenBody>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
document.getElementById('mainFrame').src = $('rsc_import_change_rate_detail_id').getUrl() + '?fin_statement_templet_id=' + ${/model/datasource/record/@fin_statement_templet_id}+'&bp_id='+${/parameter/@bp_id}; if('${/parameter/@project_flag}'=='Y') {
document.getElementById('mainFrame').src = $('rsc_import_change_rate_detail_id').getUrl() + '?fin_statement_templet_id=' + ${/model/datasource/record/@fin_statement_templet_id}+'&bp_id=${/parameter/@bp_id}&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
document.getElementById('mainFrame').src = $('rsc_import_change_rate_detail_id').getUrl() + '?fin_statement_templet_id=' + ${/model/datasource/record/@fin_statement_templet_id}+'&bp_id=${/parameter/@bp_id}';
}
]]></script> ]]></script>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -11,27 +11,27 @@ ...@@ -11,27 +11,27 @@
<p:loop source="/model/fin_statement_type"> <p:loop source="/model/fin_statement_type">
<p:switch test="@code_value"> <p:switch test="@code_value">
<p:case value="BALANCE_SHEET"> <p:case value="BALANCE_SHEET">
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_balance_sheet" rootPath="/model/balance_sheet_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.bgfl_rsc_fin_statement_prj_lns_columns_balance_sheet" rootPath="/model/balance_sheet_columns"/>
</p:case> </p:case>
<p:case value="CASHFLOW_STATEMENT"> <p:case value="CASHFLOW_STATEMENT">
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_cashflow_statement" rootPath="/model/cashflow_statement_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.bgfl_rsc_fin_statement_prj_lns_columns_cashflow_statement" rootPath="/model/cashflow_statement_columns"/>
</p:case> </p:case>
<p:case value="INCOME_STATEMENT"> <p:case value="INCOME_STATEMENT">
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_income_statement" rootPath="/model/income_statement_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.bgfl_rsc_fin_statement_prj_lns_columns_income_statement" rootPath="/model/income_statement_columns"/>
</p:case> </p:case>
<p:case value="SUPPLEMENTARY"> <p:case value="SUPPLEMENTARY">
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_supplementary" rootPath="/model/supplementary_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_supplementary" rootPath="/model/supplementary_columns"/>
</p:case> </p:case>
</p:switch> </p:switch>
</p:loop> </p:loop>
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_balance_sheet" rootPath="/model/balance_sheet_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.bgfl_rsc_fin_statement_prj_lns_columns_balance_sheet" rootPath="/model/balance_sheet_columns"/>
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_cashflow_statement" rootPath="/model/cashflow_statement_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.bgfl_rsc_fin_statement_prj_lns_columns_cashflow_statement" rootPath="/model/cashflow_statement_columns"/>
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_income_statement" rootPath="/model/income_statement_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.bgfl_rsc_fin_statement_prj_lns_columns_income_statement" rootPath="/model/income_statement_columns"/>
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_supplementary" rootPath="/model/supplementary_columns"/> <a:model-query fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_lns_columns_supplementary" rootPath="/model/supplementary_columns"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="chanege_rate_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/> <a:link id="chanege_rate_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/>
<script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/> <script type="text/javascript" src="${/request/@context_path}/javascripts/calculate.js"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function formatNumber(value) { function formatNumber(value) {
...@@ -51,9 +51,9 @@ ...@@ -51,9 +51,9 @@
<a:datas dataSource="/model/currency"/> <a:datas dataSource="/model/currency"/>
</a:dataSet> </a:dataSet>
<a:dataSet id="fin_statement_type_handle_query_ds" lookupCode="FIN_STATEMENT_TYPE"/> <a:dataSet id="fin_statement_type_handle_query_ds" lookupCode="FIN_STATEMENT_TYPE"/>
<a:dataSet id="rsc303_fin_statement_prj_changeRate_result_ds" autoQuery="true" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_output/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=BALANCE_SHEET"/> <a:dataSet id="rsc303_fin_statement_prj_changeRate_result_ds" autoQuery="true" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_output/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=BALANCE_SHEET&amp;project_id=${/parameter/@project_id}"/>
<a:dataSet id="rsc303_fin_statement_prj_income_statement_ds" autoQuery="true" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_output/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=INCOME_STATEMENT"/> <a:dataSet id="rsc303_fin_statement_prj_income_statement_ds" autoQuery="true" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_output/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=INCOME_STATEMENT&amp;project_id=${/parameter/@project_id}"/>
<a:dataSet id="rsc303_fin_statement_prj_cashflow_statement_ds" autoQuery="true" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_output/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=CASHFLOW_STATEMENT"/> <a:dataSet id="rsc303_fin_statement_prj_cashflow_statement_ds" autoQuery="true" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_output/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=CASHFLOW_STATEMENT&amp;project_id=${/parameter/@project_id}"/>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:tabPanel marginHeight="220" marginWidth="30"> <a:tabPanel marginHeight="220" marginWidth="30">
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<a:column prompt="${@fiscal_year}"> <a:column prompt="${@fiscal_year}">
<a:column prompt="${@audit_inf}"> <a:column prompt="${@audit_inf}">
<a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/>
<a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> <!-- <a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> -->
</a:column> </a:column>
</a:column> </a:column>
</c:process-config> </c:process-config>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<a:column prompt="${@fiscal_year}"> <a:column prompt="${@fiscal_year}">
<a:column prompt="${@audit_inf}"> <a:column prompt="${@audit_inf}">
<a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/>
<a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> <!-- <a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> -->
<a:column name="${@year}_change_value" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_VALUE" renderer="formatNumber"/> <a:column name="${@year}_change_value" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_VALUE" renderer="formatNumber"/>
<a:column name="${@year}_change_rate" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_RATE" renderer="percentRender"/> <a:column name="${@year}_change_rate" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_RATE" renderer="percentRender"/>
</a:column> </a:column>
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<a:column prompt="${@fiscal_year}"> <a:column prompt="${@fiscal_year}">
<a:column prompt="${@audit_inf}"> <a:column prompt="${@audit_inf}">
<a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/>
<a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> <!-- <a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> -->
</a:column> </a:column>
</a:column> </a:column>
</c:process-config> </c:process-config>
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<a:column prompt="${@fiscal_year}"> <a:column prompt="${@fiscal_year}">
<a:column prompt="${@audit_inf}"> <a:column prompt="${@audit_inf}">
<a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ENDING_BALANCE" renderer="formatNumber"/>
<a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> <!-- <a:column name="${@year}_proportion" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.PROPORTION" renderer="percentRender"/> -->
<a:column name="${@year}_change_value" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_VALUE" renderer="formatNumber"/> <a:column name="${@year}_change_value" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_VALUE" renderer="formatNumber"/>
<a:column name="${@year}_change_rate" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_RATE" renderer="percentRender"/> <a:column name="${@year}_change_rate" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.CHANGE_RATE" renderer="percentRender"/>
</a:column> </a:column>
......
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
unit_code:head_record.get('unit_code'), unit_code:head_record.get('unit_code'),
currency_code:head_record.get('currency_code'), currency_code:head_record.get('currency_code'),
winid:'${/parameter/@winid}', winid:'${/parameter/@winid}',
winid1:'rsc_fin_statement_prj_ipt_line_winid' winid1:'rsc_fin_statement_prj_ipt_line_winid',
project_id: '${/parameter/@project_id}'
}, },
url: $('rsc_fin_statement_prj_ipt_line_id').getUrl(), url: $('rsc_fin_statement_prj_ipt_line_id').getUrl(),
title: '${l:FIA_LINE_DATA_IMPORT}', title: '${l:FIA_LINE_DATA_IMPORT}',
...@@ -69,14 +70,14 @@ ...@@ -69,14 +70,14 @@
</a:field> </a:field>
<a:field name="bp_name" prompt="HLS.BP_NAME" readOnly="true"/> <a:field name="bp_name" prompt="HLS.BP_NAME" readOnly="true"/>
<a:field name="bp_id"/> <a:field name="bp_id"/>
<a:field name="fin_statement_templet_code" defaultValue="HLCM_FS_NEW" lovGridHeight="350" lovHeight="500" lovService="rsc.RSC302.rsc_fin_statement_tmplt_hds_for_lov" lovWidth="500" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" required="true" title="财务报表模板"> <a:field name="fin_statement_templet_code" lovGridHeight="350" lovHeight="500" lovService="rsc.RSC302.rsc_fin_statement_tmplt_hds_for_lov" lovWidth="500" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" required="true" title="财务报表模板">
<a:mapping> <a:mapping>
<a:map from="fin_statement_templet_id" to="fin_statement_templet_id"/> <a:map from="fin_statement_templet_id" to="fin_statement_templet_id"/>
<a:map from="fin_statement_templet_code" to="fin_statement_templet_code"/> <a:map from="fin_statement_templet_code" to="fin_statement_templet_code"/>
<a:map from="fin_statement_templet_name" to="fin_statement_templet_name"/> <a:map from="fin_statement_templet_name" to="fin_statement_templet_name"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="fin_statement_templet_name" defaultValue="宏菱财务报表新模板" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME" readOnly="true"/> <a:field name="fin_statement_templet_name" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME" readOnly="true"/>
<a:field name="fin_statement_templet_id"/> <a:field name="fin_statement_templet_id"/>
<a:field name="currency_name" displayField="currency_name" options="currency_ds" required="true" returnField="currency_code" valueField="currency_code"/> <a:field name="currency_name" displayField="currency_name" options="currency_ds" required="true" returnField="currency_code" valueField="currency_code"/>
</a:fields> </a:fields>
...@@ -106,20 +107,20 @@ ...@@ -106,20 +107,20 @@
$('fin_statement_head_ds').getAt(0).set('bp_id','${/parameter/@bp_id}'); $('fin_statement_head_ds').getAt(0).set('bp_id','${/parameter/@bp_id}');
$('fin_statement_head_ds').getAt(0).set('bp_name','${/model/hls_bp_master/record/@bp_name}'); $('fin_statement_head_ds').getAt(0).set('bp_name','${/model/hls_bp_master/record/@bp_name}');
$('fin_statement_head_ds').getAt(0).getField('bp_code').setReadOnly(true); $('fin_statement_head_ds').getAt(0).getField('bp_code').setReadOnly(true);
$('fin_statement_head_ds').getAt(0).set('fin_statement_prj_unit_desc','元'); $('fin_statement_head_ds').getAt(0).set('fin_statement_prj_unit_desc','元');
$('fin_statement_head_ds').getAt(0).set('unit_code','TEN_THOUSNAND_YUAN'); $('fin_statement_head_ds').getAt(0).set('unit_code','YUAN');
$('fin_statement_head_ds').getAt(0).set('currency_name','人民币'); $('fin_statement_head_ds').getAt(0).set('currency_name','人民币');
$('fin_statement_head_ds').getAt(0).set('currency_code','CNY'); $('fin_statement_head_ds').getAt(0).set('currency_code','CNY');
if('${/model/hls_bp_master/record/@bp_class}'=='ORG'){ /* if('${/model/hls_bp_master/record/@bp_class}'=='ORG'){
$('fin_statement_head_ds').getAt(0).set('fin_statement_templet_code','HLCM_FS_NEW'); $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_code','STD_FS');
$('fin_statement_head_ds').getAt(0).set('fin_statement_templet_name','宏菱财务报表新模板'); $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_name','财务报表财务模板');
$('fin_statement_head_ds').getAt(0).set('fin_statement_templet_id',149); $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_id',4000);
} }
// if('${/model/hls_bp_master/record/@bp_class}'=='HOS'){ if('${/model/hls_bp_master/record/@bp_class}'=='HOS'){
// $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_code','STD_FS_PI'); $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_code','STD_FS_PI');
// $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_name','医院财务报表模板'); $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_name','医院财务报表模板');
// $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_id',7); $('fin_statement_head_ds').getAt(0).set('fin_statement_templet_id',7);
// } } */
} }
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<a:view> <a:view>
<a:link id="formula_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/> <a:link id="formula_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_prj_export.lsc"/>
<a:link id="rsc_fin_indicator_formula_calculate_id" model="rsc.RSC303.rsc_fin_indicator_formula_calculate" modelaction="execute"/> <a:link id="rsc_fin_indicator_formula_calculate_id" model="rsc.RSC303.rsc_fin_indicator_formula_calculate" modelaction="execute"/>
<script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/> <script type="text/javascript" src="${/request/@context_path}/javascripts/calculate.js"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function rsc303_handle_formula_back() { function rsc303_handle_formula_back() {
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="fin_statement_type_handle_query_ds" lookupCode="FIN_STATEMENT_TYPE"/> <a:dataSet id="fin_statement_type_handle_query_ds" lookupCode="FIN_STATEMENT_TYPE"/>
<a:dataSet id="fin_statement_prj_import_handle_formula_result_id" autoQuery="true" model="rsc.RSC303.rsc_fin_indicator_lns_result" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_indicator_lns_result/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}" selectionModel="single"><![CDATA[ <a:dataSet id="fin_statement_prj_import_handle_formula_result_id" autoQuery="true" model="rsc.RSC303.rsc_fin_indicator_lns_result" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_indicator_lns_result/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectionModel="single"><![CDATA[
]]></a:dataSet> ]]></a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
</a:view> </a:view>
<a:view-config> <a:view-config>·
<c:create-config targetId="object_ds"> <c:create-config targetId="object_ds">
<p:loop source="/model/columns"> <p:loop source="/model/columns">
<c:process-config> <c:process-config>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<a:screen xmlns:c="leaf.application.action" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true"> <a:screen xmlns:c="leaf.application.action" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query fetchAll="true" model="rsc.RSC303.rsc_get_fin_statement_templet_id" rootPath="datasource"/> <a:model-query fetchAll="true" model="rsc.RSC303.rsc_get_fin_statement_templet_id" rootPath="datasource"/>
<a:model-query defaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and bp_id=${/parameter/@bp_id}" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v" rootPath="rsc_fin_statement_prj_hds"/> <a:model-query defaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and project_id is null) or(nvl(${/parameter/@project_flag},'N')='Y' and project_id=${/parameter/@project_id}))" fetchAll="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v" rootPath="rsc_fin_statement_prj_hds"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="rsc_import_handle_detail_query_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_detail_query.lview"/> <a:link id="rsc_import_handle_detail_query_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_detail_query.lview"/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
function rsc303_prj_hds_Onupdate(ds, record, name, value, oldVlaue){ function rsc303_prj_hds_Onupdate(ds, record, name, value, oldVlaue){
if (name == 'fin_statement_templet_id') { if (name == 'fin_statement_templet_id') {
document.getElementById('mainFrame').src = $('rsc_import_handle_detail_query_id').getUrl() + '?fin_statement_templet_id=' + value+'&bp_id='+${/parameter/@bp_id}; document.getElementById('mainFrame').src = $('rsc_import_handle_detail_query_id').getUrl() + '?fin_statement_templet_id=' + value+'&bp_id=${/parameter/@bp_id}';
} }
} }
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<a:field name="fin_statement_templet_name" readOnly="true"/> <a:field name="fin_statement_templet_name" readOnly="true"/>
<a:field name="fiscal_year"/> <a:field name="fiscal_year"/>
<a:field name="fin_statement_type_name" displayField="code_value_name" options="fin_statement_type_handle_query_ds" returnField="fin_statement_type" valueField="code_value_name"/> <a:field name="fin_statement_type_name" displayField="code_value_name" options="fin_statement_type_handle_query_ds" returnField="fin_statement_type" valueField="code_value_name"/>
<a:field name="project_number" readOnly="true"></a:field>
</a:fields> </a:fields>
<a:events> <a:events>
<a:event name="update" handler="rsc303_prj_hds_Onupdate"/> <a:event name="update" handler="rsc303_prj_hds_Onupdate"/>
...@@ -68,18 +69,37 @@ ...@@ -68,18 +69,37 @@
<!-- <a:gridButton click="rsc303_handle_update_query" text="HLS.QUERY"/> --> <!-- <a:gridButton click="rsc303_handle_update_query" text="HLS.QUERY"/> -->
<a:gridButton click="rsc303_handle_save" text="HLS.SAVE"/> <a:gridButton click="rsc303_handle_save" text="HLS.SAVE"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_QUERY"> <a:switch test="/parameter/@project_flag">
<a:lov name="bp_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_CODE"/> <a:case value="Y">
<a:textField name="bp_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_NAME"/> <a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_QUERY">
<a:comboBox name="currency_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY" readOnly="true"/> <a:lov name="bp_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_CODE"/>
<a:lov name="fin_statement_templet_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/> <a:textField name="bp_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_NAME"/>
<a:textField name="fin_statement_templet_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/> <a:comboBox name="currency_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY" readOnly="true"/>
</a:form> <a:lov name="fin_statement_templet_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/>
<a:textField name="fin_statement_templet_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/>
<a:textField name="project_number" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="单据编号"></a:textField>
</a:form>
</a:case>
<a:case value="*">
<a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_QUERY">
<a:lov name="bp_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_CODE"/>
<a:textField name="bp_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="HLS.BP_NAME"/>
<a:comboBox name="currency_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY" readOnly="true"/>
<a:lov name="fin_statement_templet_code" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/>
<a:textField name="fin_statement_templet_name" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/>
</a:form>
</a:case>
</a:switch>
<iframe id="mainFrame" border="1" frameborder="no" onload="var body; if(mainFrame.document){body=mainFrame.document.body;}else{body=mainFrame.contentWindow.document.body} this.height=body.scrollHeight;this.width=body.scrollWidth" scrolling="no" style="display:block;position:absolute;left:0px"/> <iframe id="mainFrame" border="1" frameborder="no" onload="var body; if(mainFrame.document){body=mainFrame.document.body;}else{body=mainFrame.contentWindow.document.body} this.height=body.scrollHeight;this.width=body.scrollWidth" scrolling="no" style="display:block;position:absolute;left:0px"/>
</a:screenBody> </a:screenBody>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
document.getElementById('mainFrame').src = $('rsc_import_handle_detail_query_id').getUrl() + '?fin_statement_templet_id=' + ${/model/datasource/record/@fin_statement_templet_id}+'&bp_id='+${/parameter/@bp_id}; if('${/parameter/@project_flag}'=='Y'){
document.getElementById('mainFrame').src = $('rsc_import_handle_detail_query_id').getUrl() + '?fin_statement_templet_id=' + ${/model/datasource/record/@fin_statement_templet_id}+'&bp_id=${/parameter/@bp_id}&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
document.getElementById('mainFrame').src = $('rsc_import_handle_detail_query_id').getUrl() + '?fin_statement_templet_id=' + ${/model/datasource/record/@fin_statement_templet_id}+'&bp_id=${/parameter/@bp_id}&project_flag=N';
}
]]></script> ]]></script>
</a:view> </a:view>
</a:screen> </a:screen>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: gaoyang $Author: gaoyang
$Date: 2012-1-17 上午09:03:15 $Date: 2012-1-17 上午09:03:15
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure/> <a:init-procedure/>
<a:view> <a:view>
<a:link id="con_cars_attach_downloadfile_link" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="con_cars_attach_uploadfile_link" url="${/request/@context_path}/uploadFile.lview"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function saveClick() { function saveClick() {
if (document.getElementById('importFile').value) { if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value; var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf(".")); var fileType = fileName.substr(fileName.lastIndexOf("."));
if (fileType != '.xls' && fileType != '.xlsx' && fileType != '.xlsm') { if (fileType != '.xls' && fileType != '.xlsx' && fileType != '.xlsm') {
alert('${l:SELECT_CORRECT_IMPORT_FILE}'); alert('${l:SELECT_CORRECT_IMPORT_FILE}');
} else { } else {
doSubmit(); doSubmit();
}
} }
} }
var _input_window; }
var _input_window;
function doSubmit() {
_input_window = new $L.Window({ function doSubmit() {
title: '${l:HLS.IMPORT}', _input_window = new $L.Window({
fullScreen: true title: '${l:HLS.IMPORT}',
}); fullScreen: true
new Ext.Template('<iframe id ="_input_window" name="_input_window" border="0" frameborder="0" height="100%" width="100%" style="border:none;padding:0px;margin:0px;"></iframe>').insertFirst(_input_window.body.dom, {}, true); });
$L.Masker.mask(_input_window.body, '${l:HLS.IMPORTING}'); new Ext.Template('<iframe id ="_input_window" name="_input_window" border="0" frameborder="0" height="100%" width="100%" style="border:none;padding:0px;margin:0px;"></iframe>').insertFirst(_input_window.body.dom, {}, true);
document.getElementById('importForm').submit(); $L.Masker.mask(_input_window.body, '${l:HLS.IMPORTING}');
document.getElementById('importForm').submit();
_input_window.on('close',function(){
close_window('${/parameter/@winid}'); close_window('${/parameter/@winid}');
close_window('${/parameter/@winid1}'); close_window('${/parameter/@winid1}');
});
//close_window('${/parameter/@winid}');
//close_window('${/parameter/@winid1}');
}
function close_window(winid) {
if (winid) {
$(winid).close();
} }
}
function close_window(winid) {
if (winid) { function downloadTemp(){
$(winid).close(); var company_id = '${/session/@company_id}';
} var url = '';
//管理员可上传模板
if('${/session/@role_id}' == 1714){
url = $('con_cars_attach_uploadfile_link').getUrl();
}else{
url = $('con_cars_attach_downloadfile_link').getUrl();
} }
url = url + '?table_name=RSC_FIN_STATEMENT_TEMPLET&header_id=' + company_id; //以公司id作为主键
var win = new Leaf.Window({
url: url,
title: '${l:HLS201.HLS_LEASE_ITEM_LIST_TPLT_IPT}',
id: 'con_cars_attach_downloadfile_window',
width: 850,
height: 400
});
win.on('close', function() {
});
}
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="label_ds" autoCreate="true"> <a:dataSet id="label_ds" autoCreate="true">
...@@ -58,10 +85,14 @@ ...@@ -58,10 +85,14 @@
<a:label name="label3" bindTarget="label_ds" style="margin-left:10px;" width="380"/> <a:label name="label3" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label4" bindTarget="label_ds" style="margin-left:10px;" width="380"/> <a:label name="label4" bindTarget="label_ds" style="margin-left:10px;" width="380"/>
<a:label name="label5" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/> <a:label name="label5" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/>
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/> <a:box column="2" row="1" style="margin-left:-3px;">
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="266"/>
<input onclick="downloadTemp()" style="width:64px;" type="button" value="模板下载"/>
</a:box>
</a:fieldSet> </a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="STATEMENTS_BUSINESS_DATA_IMPORT" width="400"> <a:fieldSet style="margin-left:10px;margin-top:10px;" title="STATEMENTS_BUSINESS_DATA_IMPORT" width="400">
<form name="upload" id="importForm" action="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_last.lview?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;unit_code=${/parameter/@unit_code}&amp;currency_code=${/parameter/@currency_code}&amp;_csrf=${/session/@_csrf.token}" enctype="multipart/form-data" method="post" target="_input_window"> <form name="upload" id="importForm" action="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_last.lview?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;project_id=${/parameter/@project_id}&amp;prj_bp_id=${/parameter/@prj_bp_id}&amp;unit_code=${/parameter/@unit_code}&amp;currency_code=${/parameter/@currency_code}&amp;_csrf=${/session/@_csrf.token}" enctype="multipart/form-data" method="post" target="_input_window">
<label style="margin-left:10px;margin-top:10px;"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label> <label style="margin-left:10px;margin-top:10px;"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label>
<input name="CONTENT" id="importFile" type="file"/> <input name="CONTENT" id="importFile" type="file"/>
<input onclick="saveClick()" style="margin-left:10px;margin-top:10px;width:60px;" type="button" value="${l:TMPLT_IMPORT}"/> <input onclick="saveClick()" style="margin-left:10px;margin-top:10px;width:60px;" type="button" value="${l:TMPLT_IMPORT}"/>
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/> <a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/>
</a:fieldSet> </a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="STATEMENTS_BUSINESS_DATA_IMPORT" width="400"> <a:fieldSet style="margin-left:10px;margin-top:10px;" title="STATEMENTS_BUSINESS_DATA_IMPORT" width="400">
<form name="upload" id="importForm" action="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_last.lview?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;unit_code=${/parameter/@unit_code}&amp;currency_code=${/parameter/@currency_code}" enctype="multipart/form-data" method="post" target="_input_window"> <form name="upload" id="importForm" action="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_last.lview?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;unit_code=${/parameter/@unit_code}&amp;currency_code=${/parameter/@currency_code}&amp;_csrf=${/session/@_csrf.token}" enctype="multipart/form-data" method="post" target="_input_window">
<label style="margin-left:10px;margin-top:10px;"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label> <label style="margin-left:10px;margin-top:10px;"><![CDATA[${l:PLEASE_SELECT_A_FILE}]]></label>
<input name="CONTENT" id="importFile" type="file"/> <input name="CONTENT" id="importFile" type="file"/>
<input onclick="saveClick()" style="margin-left:10px;margin-top:10px;width:60px;" type="button" value="${l:TMPLT_IMPORT}"/> <input onclick="saveClick()" style="margin-left:10px;margin-top:10px;width:60px;" type="button" value="${l:TMPLT_IMPORT}"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-2-21 上午11:03:58
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="rsc.RSC400.get_current_report_num" rootPath="report_num"/>
<a:model-query fetchAll="true" model="wfl_screen.DF.fin_statement_templet" rootPath="statement_templet_id"/>
</a:init-procedure>
<a:view>
<a:link id="rsc_fin_handle_query_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_query.lview"/>
<a:link id="rsc_fin_handle_formula_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_formula.lview"/>
<a:link id="rsc_fin_change_rate_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_change_rate.lview"/>
<a:link id="rsc_fin_statement_specific_detail_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_specific_detail_last.lview"/>
<script type="text/javascript"><![CDATA[
function see_fin_statement_prj_detail(value, record, name) {
if (record.get('fin_statement_templet_id')) {
var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_handle_query_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_id='+project_id+'&project_flag='+project_flag;
return '<a href="javascript:open_prj_window(\'' + url + '\');">' + '${l:RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_DETAIL}' + '</a>';
}
}
function open_prj_window(url) {
new Leaf.Window({
id: 'rsc_fin_handle_query_winid',
params:{
winid:'rsc_fin_handle_query_winid'
},
url: url,
title: '${l:RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_DETAIL}',
fullScreen: true
});
}
function see_fin_statement_formula_detail(value, record, name) {
if (record.get('fin_statement_templet_id')) {
var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_handle_formula_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_id='+project_id+'&project_flag='+project_flag;
return '<a href="javascript:open_formula_window(\'' + url + '\');">' + '${l:RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL}' + '</a>';
}
}
function open_formula_window(url) {
new Leaf.Window({
id: 'rsc_fin_handle_formula_winid',
params:{
winid:'rsc_fin_handle_formula_winid'
},
url: url,
title: '${l:RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL}',
fullScreen: true
});
}
function see_fin_statement_changeRate_detail(value, record, name) {
if (record.get('fin_statement_templet_id')) {
var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_change_rate_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_flag='+project_flag+'&project_id='+project_id;
return '<a href="javascript:open_changeRate_window(\'' + url + '\');">' + '${l:RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_DETAIL}' + '</a>';
}
}
function open_changeRate_window(url) {
new Leaf.Window({
id: 'rsc_fin_handle_changeRate_winid',
params:{
winid:'rsc_fin_handle_changeRate_winid'
},
url: url,
title: '${l:RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_DETAIL}',
fullScreen: true
});
}
function fin_statement_prj_specific_detail_render(value,record,name){
if (record.get('fin_statement_templet_id')) {
var project_flag='N';
var project_id='';
if(!Ext.isEmpty(record.get('project_id'))){
project_flag='Y';
project_id=record.get('project_id');
}
var url = $('rsc_fin_statement_specific_detail_id').getUrl() + '?fin_statement_templet_id=' + record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_flag='+project_flag+'&project_id='+project_id;
return '<a href="javascript:open_specific_detail(\'' + url + '\');">' + '报表具体明细' + '</a>';
}
}
function open_specific_detail(url){
new Leaf.Window({
id: 'fin_statement_prj_specific_detail_winid',
params:{
winid:'fin_statement_prj_specific_detail_winid'
},
url: url,
title: '',
fullScreen: true
});
}
]]></script>
<a:dataSets>
<a:dataSet id="rsc_fin_statement_report_query_ds" autoCreate="true">
<a:fields>
<a:field name="bp_code" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE">
<a:mapping>
<a:map from="bp_id" to="bp_id"/>
<a:map from="bp_code" to="bp_code"/>
<a:map from="bp_name" to="bp_name"/>
</a:mapping>
</a:field>
<a:field name="bp_id"/>
<a:field name="fin_statement_templet_code" lovGridHeight="350" lovHeight="500" lovService="rsc.RSC302.rsc_fin_statement_tmplt_hds_for_lov" lovWidth="500" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" title="财务报表模板">
<a:mapping>
<a:map from="fin_statement_templet_id" to="fin_statement_templet_id"/>
<a:map from="fin_statement_templet_code" to="fin_statement_templet_code"/>
<a:map from="fin_statement_templet_name" to="fin_statement_templet_name"/>
</a:mapping>
</a:field>
<a:field name="fin_statement_templet_name" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME" readOnly="true"/>
<a:field name="fin_statement_templet_id"/>
<a:field name="group_by_flag" defaultValue="Y"/>
</a:fields>
</a:dataSet>
<a:dataSet id="rsc_fin_statement_history_result_ds" autoPageSize="true" autoQuery="true" model="rsc.RSC400.rsc_fin_statement_his_lv" queryDataSet="rsc_fin_statement_report_query_ds" queryUrl="${/request/@context_path}/autocrud/rsc.RSC400.rsc_fin_statement_his_lv/query?project_id=${/parameter/@project_id}" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:grid id="fin_statement_history_grid_ds" bindTarget="rsc_fin_statement_history_result_ds" marginHeight="130" marginWidth="60" navBar="true">
<a:columns>
<a:column name="bp_name" width="200" prompt="经销商名称"/>
<a:column name="check_result" align="center" prompt="财报校验"/>
<a:column name="report_num" width="70" prompt="申请月份"/>
<a:column name="status_desc" width="70" prompt="审批状态"/>
<a:column name="fin_statement_templet_code" width="120"/>
<a:column name="fin_statement_templet_name" width="120"/>
<a:column name="fin_statement_prj_detail" align="center" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_DETAIL" renderer="see_fin_statement_prj_detail"/>
<a:column name="fin_statement_formula_detail" align="center" prompt="RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL" renderer="see_fin_statement_formula_detail"/>
<a:column name="fin_statement_changeRate_detail" align="center" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.CHANGERATE_DETAIL" renderer="see_fin_statement_changeRate_detail"/>
<a:column name="fin_statement_prj_specific_detail" align="center" prompt="报表具体明细" renderer="fin_statement_prj_specific_detail_render"/>
</a:columns>
<a:editors/>
</a:grid>
</a:screenBody>
<script type="text/javascript"></script>
</a:view>
</a:screen>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment