Commit b6edfdf5 authored by lizhe's avatar lizhe

征信财报相关

parent d4679e6b
<?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 union all
select 'fourth_year_value' column_name, 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/28 10:16
@Revision: 1.0
@Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1">
<bm:fields/>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select *
from (select
hd.fin_statement_id,
hd.bp_id,
(hd.fiscal_year || lpad(hd.fiscal_month, 2, 0)) report_num,
(select bp_name from hls_bp_master where bp_id = hd.bp_id) bp_name,
hd.month_check_result,
(hd.fiscal_year || '-' || lpad(hd.fiscal_month, 2, 0)) report_month,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 1) index_name1,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 2) index_name2,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 3) index_name3,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 4) index_name4,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 5) index_name5,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 6) index_name6,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 7) index_name7,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 8) index_name8,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 9) index_name9,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 10) index_name10,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 11) index_name11,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 12) index_name12,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 13) index_name13,
(select nvl(ln.indicator_value, 0)
from rsc_fin_indicator_lns ln
where hd.fin_indicator_id = ln.fin_indicator_id
and ln.line_number = 14) index_name14,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 1
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name15,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 3
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name16,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 4
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name17,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 5
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name18,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 6
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name19,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 8
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name20,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 10
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name21,
(select round(sum(nvl(amount,0)),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number in (12,13,14,15)
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name22,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 32
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'BALANCE_SHEET'
and phd.project_id is null) index_name23,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 1
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'INCOME_STATEMENT'
and phd.project_id is null) index_name24,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 2
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'INCOME_STATEMENT'
and phd.project_id is null) index_name25,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 5
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'INCOME_STATEMENT'
and phd.project_id is null) index_name26,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 6
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'INCOME_STATEMENT'
and phd.project_id is null) index_name27,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 18
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'INCOME_STATEMENT'
and phd.project_id is null) index_name28,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 11
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'CASHFLOW_STATEMENT'
and phd.project_id is null) index_name29,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 24
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'CASHFLOW_STATEMENT'
and phd.project_id is null) index_name30,
(select round(nvl(amount,0),2)
from rsc_fin_statement_prj_hds phd, rsc_fin_statement_prj_lns pln
where phd.fin_statement_id = pln.fin_statement_id
and phd.bp_id = hd.bp_id
and phd.fiscal_year = hd.fiscal_year
and phd.fiscal_month = hd.fiscal_month
and pln.line_number = 34
and phd.fin_statement_templet_id = hd.fin_statement_templet_id
and pln.fin_statement_type = 'CASHFLOW_STATEMENT'
and phd.project_id is null) index_name31
from rsc_fin_indicator_hds hd
where hd.fin_statement_templet_id = 206
and project_id is null) t1
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="bp_id" queryExpression="t1.bp_id in (${:@bp_id})"/>
<bm:query-field name="report_num" queryExpression="t1.report_num in (${:@report_num})"/>
</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="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>
<?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.RSC750.rsc_fin_excel_prj_export_date_head" rootPath="/model/fin_statement_date"/>
<!-- <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} " fetchAll="true" model="rsc.RSC750.rsc_fin_excel_prj_export_date_info" 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}" fetchAll="true" model="rsc.RSC750.rsc_fin_excel_prj_export_date_info" 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}" fetchAll="true" model="rsc.RSC750.rsc_fin_excel_prj_export_date_info" rootPath="/model/cashflow_statement"/>
<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:static-content cell="C" row="1">
<dr:cell-data cell="C" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@first_fiscal_year}"/>
<dr:cell-data cell="D" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@second_fiscal_year}"/>
<dr:cell-data cell="E" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@third_fiscal_year}"/>
<dr:cell-data cell="F" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@fourth_fiscal_year}"/>
<dr:cell-data cell="G" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@fifth_fiscal_year}"/>
<dr:cell-data cell="H" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@sixth_fiscal_year}"/>
<dr:cell-data cell="I" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@seventh_fiscal_year}"/>
<dr:cell-data cell="J" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@eighth_fiscal_year}"/>
<dr:cell-data cell="K" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@ninth_fiscal_year}"/>
<dr:cell-data cell="L" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@tenth_fiscal_year}"/>
<dr:cell-data cell="M" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@eleventh_fiscal_year}"/>
<dr:cell-data cell="N" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@twelfth_fiscal_year}"/>
</dr:static-content>
<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="amount1" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount2" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount3" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount4" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount5" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount6" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount7" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount8" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount9" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount10" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount11" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount12" renderer="font_money_format_renderer" 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:static-content cell="C" row="1">
<dr:cell-data cell="C" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@first_fiscal_year}"/>
<dr:cell-data cell="D" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@second_fiscal_year}"/>
<dr:cell-data cell="E" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@third_fiscal_year}"/>
<dr:cell-data cell="F" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@fourth_fiscal_year}"/>
<dr:cell-data cell="G" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@fifth_fiscal_year}"/>
<dr:cell-data cell="H" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@sixth_fiscal_year}"/>
<dr:cell-data cell="I" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@seventh_fiscal_year}"/>
<dr:cell-data cell="J" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@eighth_fiscal_year}"/>
<dr:cell-data cell="K" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@ninth_fiscal_year}"/>
<dr:cell-data cell="L" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@tenth_fiscal_year}"/>
<dr:cell-data cell="M" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@eleventh_fiscal_year}"/>
<dr:cell-data cell="N" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@twelfth_fiscal_year}"/>
</dr:static-content>
<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="amount1" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount2" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount3" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount4" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount5" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount6" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount7" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount8" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount9" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount10" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount11" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount12" renderer="font_money_format_renderer" 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:static-content cell="C" row="1">
<dr:cell-data cell="C" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@first_fiscal_year}"/>
<dr:cell-data cell="D" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@second_fiscal_year}"/>
<dr:cell-data cell="E" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@third_fiscal_year}"/>
<dr:cell-data cell="F" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@fourth_fiscal_year}"/>
<dr:cell-data cell="G" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@fifth_fiscal_year}"/>
<dr:cell-data cell="H" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@sixth_fiscal_year}"/>
<dr:cell-data cell="I" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@seventh_fiscal_year}"/>
<dr:cell-data cell="J" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@eighth_fiscal_year}"/>
<dr:cell-data cell="K" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@ninth_fiscal_year}"/>
<dr:cell-data cell="L" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@tenth_fiscal_year}"/>
<dr:cell-data cell="M" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@eleventh_fiscal_year}"/>
<dr:cell-data cell="N" offset="false" row="1" styleName="header" type="content" value="${/model/fin_statement_date/record/@twelfth_fiscal_year}"/>
</dr:static-content>
<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="amount1" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount2" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount3" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount4" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount5" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount6" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount7" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount8" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount9" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount10" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount11" renderer="font_money_format_renderer" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount12" renderer="font_money_format_renderer" 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>
...@@ -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,6 +84,18 @@ ...@@ -72,6 +84,18 @@
<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: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:textField name="project_number" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="单据编号"/>
</a:form>
</a:case>
<a:case value="*">
<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"/>
...@@ -79,10 +103,17 @@ ...@@ -79,10 +103,17 @@
<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:form> </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);
// } } */
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,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_fin_statement_prj_hds_v" rootPath="rsc_fin_statement_prj_hds"/> <a:model-query fetchAll="true" defaultWhereclause="((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}))" model="rsc.RSC303.rsc_fin_statement_prj_hds_v" rootPath="rsc_fin_statement_prj_hds"/>
<a:model-query defaultWhereClause="code = &apos;FIN_STATEMENT_TYPE&apos;" fetchAll="true" model="sys.sys_code_values_v" rootPath="fin_statement_type"/> <a:model-query defaultWhereClause="code = &apos;FIN_STATEMENT_TYPE&apos;" fetchAll="true" model="sys.sys_code_values_v" rootPath="fin_statement_type"/>
<!-- <p:loop source="/model/fin_statement_type"> <!-- <p:loop source="/model/fin_statement_type">
<p:switch test="@code_value"> <p:switch test="@code_value">
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</a:datas> </a:datas>
</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_handle_result_1_ds" autoQuery="true" bindName="prj_handle_result_1" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=BALANCE_SHEET" selectable="true"> <a:dataSet id="rsc303_fin_statement_prj_handle_result_1_ds" autoQuery="true" bindName="prj_handle_result_1" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=BALANCE_SHEET&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true">
<a:fields> <a:fields>
<a:field name="first_year_amount" datatype="java.lang.Double"/> <a:field name="first_year_amount" datatype="java.lang.Double"/>
</a:fields> </a:fields>
...@@ -110,17 +110,17 @@ ...@@ -110,17 +110,17 @@
<a:event name="submitsuccess" handler="submitsuccess_Ds1"/> <a:event name="submitsuccess" handler="submitsuccess_Ds1"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<a:dataSet id="rsc303_fin_statement_prj_handle_result_2_ds" autoQuery="true" bindName="prj_handle_result_2" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=CASHFLOW_STATEMENT" selectable="true"> <a:dataSet id="rsc303_fin_statement_prj_handle_result_2_ds" autoQuery="true" bindName="prj_handle_result_2" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=CASHFLOW_STATEMENT&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true">
<a:events> <a:events>
<a:event name="submitsuccess" handler="submitsuccess_Ds2"/> <a:event name="submitsuccess" handler="submitsuccess_Ds2"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<a:dataSet id="rsc303_fin_statement_prj_handle_result_3_ds" autoQuery="true" bindName="prj_handle_result_3" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=INCOME_STATEMENT" selectable="true"> <a:dataSet id="rsc303_fin_statement_prj_handle_result_3_ds" autoQuery="true" bindName="prj_handle_result_3" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=INCOME_STATEMENT&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true">
<a:events> <a:events>
<a:event name="submitsuccess" handler="submitsuccess_Ds3"/> <a:event name="submitsuccess" handler="submitsuccess_Ds3"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<a:dataSet id="rsc303_fin_statement_prj_handle_result_4_ds" autoQuery="true" bindName="prj_handle_result_4" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=SUPPLEMENTARY" selectable="true"> <a:dataSet id="rsc303_fin_statement_prj_handle_result_4_ds" autoQuery="true" bindName="prj_handle_result_4" bindTarget="rsc_fin_statement_prj_import_handle_all_submit_ds" fetchAll="false" model="rsc.RSC303.rsc_fin_statement_prj_lns_v" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;bp_id=${/parameter/@bp_id}&amp;fin_statement_type=SUPPLEMENTARY&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true">
<a:events> <a:events>
<a:event name="submitsuccess" handler="submitsuccess_Ds4"/> <a:event name="submitsuccess" handler="submitsuccess_Ds4"/>
</a:events> </a:events>
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
</a:editors> </a:editors>
</a:grid> </a:grid>
</a:tab> </a:tab>
<a:tab prompt="补充" width="110"> <!--<a:tab prompt="补充" width="110">
<a:grid bindTarget="rsc303_fin_statement_prj_handle_result_4_ds" marginHeight="260" marginWidth="50" navBar="true"> <a:grid bindTarget="rsc303_fin_statement_prj_handle_result_4_ds" marginHeight="260" marginWidth="50" navBar="true">
<a:columns> <a:columns>
<a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/> <a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/>
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
<a:textField id="handle_result_4_textfield"/> <a:textField id="handle_result_4_textfield"/>
</a:editors> </a:editors>
</a:grid> </a:grid>
</a:tab> </a:tab>-->
</a:tabs> </a:tabs>
</a:tabPanel> </a:tabPanel>
</a:screenBody> </a:screenBody>
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
if (!Ext.isEmpty(value) && record.get('item_type') == 'FORMULA') { if (!Ext.isEmpty(value) && record.get('item_type') == 'FORMULA') {
return '<span style="color:red">' + value + '</span>'; return '<span style="color:red">' + value + '</span>';
} else { } else {
return value=='undefined'?'':value; return value == 'undefined' ? '' : value;
} }
} }
...@@ -201,11 +201,12 @@ ...@@ -201,11 +201,12 @@
if (!Ext.isEmpty(value) && record.get('item_type') == 'FORMULA') { if (!Ext.isEmpty(value) && record.get('item_type') == 'FORMULA') {
return '<span style="color:red">' + Leaf.formatMoney(value) + '</span>'; return '<span style="color:red">' + Leaf.formatMoney(value) + '</span>';
} else if (!Ext.isEmpty(value)) {
return Leaf.formatMoney(value);
} else { } else {
return value=='undefined'?'':value; return value == 'undefined' ? '' : value;
} }
} }
]]></script> ]]></script>
</a:view> </a:view>
<a:view-config> <a:view-config>
...@@ -213,13 +214,13 @@ ...@@ -213,13 +214,13 @@
<p:loop source="/model/balance_sheet_columns"> <p:loop source="/model/balance_sheet_columns">
<c:process-config> <c:process-config>
<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.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="110"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="200"/>
<a:column name="${@year}_amount_adj" align="right" editor="handle_result_1_numfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="${@year}_amount_adj" align="right" editor="handle_result_1_numfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="${@year}_description" editor="handle_result_1_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer"/> <!-- <a:column name="${@year}_description" editor="handle_result_1_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer"/> -->
</a:column>
</a:column> </a:column>
<!-- </a:column> -->
</c:process-config> </c:process-config>
</p:loop> </p:loop>
</c:create-config> </c:create-config>
...@@ -227,12 +228,12 @@ ...@@ -227,12 +228,12 @@
<p:loop source="/model/income_statement_columns"> <p:loop source="/model/income_statement_columns">
<c:process-config> <c:process-config>
<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.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="110"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="200"/>
<a:column name="${@year}_amount_adj" align="right" editor="handle_result_3_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="${@year}_amount_adj" align="right" editor="handle_result_3_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="${@year}_description" editor="handle_result_3_text_field" prompt="HLS.COMMENT" renderer="font_format_renderer"/> <!-- <a:column name="${@year}_description" editor="handle_result_3_text_field" prompt="HLS.COMMENT" renderer="font_format_renderer"/> -->
</a:column> <!-- </a:column> -->
</a:column> </a:column>
</c:process-config> </c:process-config>
</p:loop> </p:loop>
...@@ -241,29 +242,29 @@ ...@@ -241,29 +242,29 @@
<p:loop source="/model/cashflow_statement_columns"> <p:loop source="/model/cashflow_statement_columns">
<c:process-config> <c:process-config>
<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.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="110"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="200"/>
<a:column name="${@year}_amount_adj" align="right" editorFunction="handle_result_2_NumeditorFunction" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="${@year}_amount_adj" align="right" editorFunction="handle_result_2_NumeditorFunction" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="${@year}_description" editorFunction="handle_result_2_TexteditorFunction" prompt="HLS.COMMENT" renderer="font_format_renderer"/> <!-- <a:column name="${@year}_description" editorFunction="handle_result_2_TexteditorFunction" prompt="HLS.COMMENT" renderer="font_format_renderer"/> -->
</a:column>
</a:column> </a:column>
<!-- </a:column> -->
</c:process-config> </c:process-config>
</p:loop> </p:loop>
</c:create-config> </c:create-config>
<c:create-config targetId="supplementary_id"> <!--<c:create-config targetId="supplementary_id">
<p:loop source="/model/supplementary_columns"> <p:loop source="/model/supplementary_columns">
<c:process-config> <c:process-config>
<a:column prompt="${@fiscal_year}"> <a:column prompt="${@fiscal_year}">
<a:column prompt="${@audit_inf}"> &lt;!&ndash; <a:column prompt="${@audit_inf}"> &ndash;&gt;
<a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="Leaf.formatMoney" width="110"/> <a:column name="${@year}_amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="Leaf.formatMoney" width="200"/>
<a:column name="${@year}_amount_adj" align="right" editor="handle_result_4_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="Leaf.formatMoney" width="110"/> &lt;!&ndash; <a:column name="${@year}_amount_adj" align="right" editor="handle_result_4_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="Leaf.formatMoney" width="110"/> &ndash;&gt;
<a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="Leaf.formatMoney" width="110"/> &lt;!&ndash; <a:column name="${@year}_amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="Leaf.formatMoney" width="110"/> &ndash;&gt;
<a:column name="${@year}_description" editor="handle_result_4_textfield" prompt="HLS.COMMENT"/> &lt;!&ndash; <a:column name="${@year}_description" editor="handle_result_4_textfield" prompt="HLS.COMMENT"/> &ndash;&gt;
</a:column>
</a:column> </a:column>
&lt;!&ndash; </a:column> &ndash;&gt;
</c:process-config> </c:process-config>
</p:loop> </p:loop>
</c:create-config> </c:create-config>-->
</a:view-config> </a:view-config>
</a:screen> </a:screen>
...@@ -8,16 +8,17 @@ ...@@ -8,16 +8,17 @@
<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:init-procedure> </a:init-procedure>
<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"/>
<a:link id="rsc_import_handle_formula_detail_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_formula_detail.lview"/> <a:link id="rsc_import_handle_formula_detail_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_formula_detail.lview"/>
<a:link id="rsc_fin_handle_formula_id_load" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_formula.lview"/> <a:link id="rsc_fin_handle_formula_id_load" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_import_handle_formula.lview"/>
<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_formula_back() { function rsc303_handle_formula_back() {
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
...@@ -29,20 +30,32 @@ ...@@ -29,20 +30,32 @@
function do_formula_excel() { function do_formula_excel() {
var url = $('formula_sheets_excel_id').getUrl() + '?fin_statement_templet_id=' + g_fin_statement_templet_id + '&bp_id=' + ${/parameter/@bp_id} + '&datasoure_type=handle_formula'; var url;
if('${/parameter/@project_flag}'=='Y') {
url = $('formula_sheets_excel_id').getUrl() + '?fin_statement_templet_id=' + g_fin_statement_templet_id + '&bp_id=${/parameter/@bp_id}&datasoure_type=handle_formula'+'&project_flag=Y&project_id='+'${/parameter/@project_id}';
}else{
url = $('formula_sheets_excel_id').getUrl() + '?fin_statement_templet_id=' + g_fin_statement_templet_id + '&bp_id=${/parameter/@bp_id}&datasoure_type=handle_formula';
}
//var url = $('formula_sheets_excel_id').getUrl() + '?fin_statement_templet_id=' + g_fin_statement_templet_id + '&bp_id=' + ${/parameter/@bp_id} + '&datasoure_type=handle_formula';
window.open(url); window.open(url);
} }
function rsc303_handle_formula_calculations() { function rsc303_handle_formula_calculations() {
var screen_url = $('rsc_fin_handle_formula_id_load').getUrl() + '?fin_statement_templet_id=' + g_fin_statement_templet_id + '&bp_id=' + ${/parameter/@bp_id}; var screen_url;
if('${/parameter/@project_flag}'=='Y') {
screen_url = $('rsc_fin_handle_formula_id_load').getUrl() + '?fin_statement_templet_id=' + g_fin_statement_templet_id + '&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
screen_url = $('rsc_fin_handle_formula_id_load').getUrl() + '?fin_statement_templet_id=' + g_fin_statement_templet_id + '&bp_id=${/parameter/@bp_id}';
}
$('handle_formula_save_button').disable(); $('handle_formula_save_button').disable();
Leaf.request({ Leaf.request({
url: $('rsc_fin_indicator_formula_calculate_id').getUrl(), url: $('rsc_fin_indicator_formula_calculate_id').getUrl(),
para: { para: {
fin_statement_templet_id: g_fin_statement_templet_id, fin_statement_templet_id: g_fin_statement_templet_id,
bp_id: ${/parameter/@bp_id}, bp_id: '${/parameter/@bp_id}',
_status: 'execute' _status: 'execute',
project_id:'${/parameter/@project_id}'
}, },
success: function(res) { success: function(res) {
Leaf.SideBar.show({ Leaf.SideBar.show({
...@@ -60,25 +73,26 @@ ...@@ -60,25 +73,26 @@
fullScreen: true fullScreen: true
}); });
}, },
failure: function() { failure: function() {},
}, error: function() {},
error: function() {
},
scope: this scope: this
}); });
} }
function rsc303_handle_formula_save(){
window.frames["mainFrame"].rsc303_handle_formula_detail_save(); function rsc303_handle_formula_save() {
document.getElementById('mainFrame').contentWindow.rsc303_handle_formula_detail_save();
} }
function rsc303_prj_formula_Onupdate(ds, record, name, value, oldVlaue){
function rsc303_prj_formula_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_formula_detail_id').getUrl() + '?fin_statement_templet_id=' + value+'&bp_id='+${/parameter/@bp_id}; if('${/parameter/@project_flag}'=='Y') {
g_fin_statement_templet_id =value; document.getElementById('mainFrame').src = $('rsc_import_handle_formula_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_handle_formula_detail_id').getUrl() + '?fin_statement_templet_id=' + value +'&bp_id=${/parameter/@bp_id}' ;
}
g_fin_statement_templet_id = value;
} }
} }
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
...@@ -105,6 +119,7 @@ ...@@ -105,6 +119,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_formula_Onupdate"/> <a:event name="update" handler="rsc303_prj_formula_Onupdate"/>
...@@ -116,21 +131,39 @@ ...@@ -116,21 +131,39 @@
<a:gridButton click="rsc303_handle_formula_back" text="HLS.BACK"/> <a:gridButton click="rsc303_handle_formula_back" text="HLS.BACK"/>
<!-- <a:gridButton click="rsc303_handle_formula_query" text="HLS.QUERY"/> --> <!-- <a:gridButton click="rsc303_handle_formula_query" text="HLS.QUERY"/> -->
<a:gridButton id="handle_formula_save_button" click="rsc303_handle_formula_calculations" text="HLS.CALCULATIONS"/> <a:gridButton id="handle_formula_save_button" click="rsc303_handle_formula_calculations" text="HLS.CALCULATIONS"/>
<a:gridButton click="rsc303_handle_formula_save" text="HLS.SAVE"/> <!-- 这里的保存逻辑有点错,因为当时头行结构保存了数据,但是现在把行保存给注释掉了,所以如果要再次打开,则需要删除相关的逻辑 -->
<!-- <a:gridButton click="rsc303_handle_formula_save" text="HLS.SAVE"/> -->
<a:gridButton click="do_formula_excel" text="RSC_FIN_STATEMENT_TMPLT_HDS.EXCEL_OUTPUT"/> <a:gridButton click="do_formula_excel" text="RSC_FIN_STATEMENT_TMPLT_HDS.EXCEL_OUTPUT"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL"> <a:switch test="/parameter/@project_flag">
<a:case value="Y">
<a:form column="3" labelWidth="120" marginWidth="50" title="RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL">
<a:lov name="bp_code" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="HLS.BP_CODE"/> <a:lov name="bp_code" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="HLS.BP_CODE"/>
<a:textField name="bp_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="HLS.BP_NAME"/> <a:textField name="bp_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="HLS.BP_NAME"/>
<a:comboBox name="currency_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY" readOnly="true"/> <a:comboBox name="currency_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY" readOnly="true"/>
<a:lov name="fin_statement_templet_code" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/> <a:lov name="fin_statement_templet_code" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/>
<a:textField name="fin_statement_templet_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/> <a:textField name="fin_statement_templet_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_NAME"/>
<a:textField name="project_number" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="单据编号"/>
</a:form> </a:form>
</a:case>
<a:case value="*">
<a:form column="3" labelWidth="120" marginWidth="50" title="RSC_FIN_INDICATOR_FORMULA.INDICATOR_DETAIL">
<a:lov name="bp_code" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="HLS.BP_CODE"/>
<a:textField name="bp_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="HLS.BP_NAME"/>
<a:comboBox name="currency_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.STATEMENT_CURRENCY" readOnly="true"/>
<a:lov name="fin_statement_templet_code" bindTarget="fin_statement_prj_import_handle_formula_query_id" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TMPLT_CODE"/>
<a:textField name="fin_statement_templet_name" bindTarget="fin_statement_prj_import_handle_formula_query_id" 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_formula_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_handle_formula_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_handle_formula_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>
...@@ -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,17 +69,36 @@ ...@@ -68,17 +69,36 @@
<!-- <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:switch test="/parameter/@project_flag">
<a:case value="Y">
<a:form column="3" labelWidth="120" marginWidth="30" title="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_QUERY"> <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: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" readOnly="true"/> <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: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:textField>
</a:form> </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>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<a:link id="rsc_fin_statement_prj_ipt_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_ipt.lsc"/> <a:link id="rsc_fin_statement_prj_ipt_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_ipt.lsc"/>
<a:link id="rsc_fin_statement_prj_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_all_query.lview"/> <a:link id="rsc_fin_statement_prj_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_all_query.lview"/>
<a:link id="rsc_fin_statement_prj_error" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_error.lview"/> <a:link id="rsc_fin_statement_prj_error" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_error.lview"/>
<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 loadComplete() { function loadComplete() {
Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}'); Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
...@@ -61,6 +61,24 @@ ...@@ -61,6 +61,24 @@
function saveBtn() { function saveBtn() {
$('saveBtn_id').disable(); $('saveBtn_id').disable();
var check_result;
var bp_id;
if (Ext.isEmpty('${/parameter/@bp_id}')){
bp_id = '${/parameter/@prj_bp_id}';
}else{
bp_id = '${/parameter/@bp_id}';
}
Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
Leaf.request({
url: '${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_data_load/execute',
para: {
fin_statement_templet_id: '${/parameter/@fin_statement_templet_id}',
bp_id: bp_id,
},
success: function(res) {
check_result = res.result.check_result;
if(check_result == 'FALSE') {
Leaf.showConfirm('${l:PROMPT}','资产≠负债+所有者权益、净利润≠本期未分配利润-上期未分配利润,请确认是否继续导入!',function(){
Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}'); Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
Leaf.request({ Leaf.request({
url: '${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_data_load/update', url: '${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_data_load/update',
...@@ -69,7 +87,9 @@ ...@@ -69,7 +87,9 @@
fin_statement_templet_id: '${/parameter/@fin_statement_templet_id}', fin_statement_templet_id: '${/parameter/@fin_statement_templet_id}',
bp_id: '${/parameter/@bp_id}', bp_id: '${/parameter/@bp_id}',
unit_code: '${/parameter/@unit_code}', unit_code: '${/parameter/@unit_code}',
currency_code: '${/parameter/@currency_code}' currency_code: '${/parameter/@currency_code}',
project_id: '${/parameter/@project_id}',
check_result:check_result
}, },
success: function(args) { success: function(args) {
var record = args.result; var record = args.result;
...@@ -111,7 +131,76 @@ ...@@ -111,7 +131,76 @@
}, },
scope: this scope: this
}); });
});
Leaf.Masker.unmask(Ext.getBody());
$('saveBtn_id').enable();
}else{
Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
Leaf.request({
url: '${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_data_load/update',
para: {
_status: 'update',
fin_statement_templet_id: '${/parameter/@fin_statement_templet_id}',
bp_id: '${/parameter/@bp_id}',
unit_code: '${/parameter/@unit_code}',
currency_code: '${/parameter/@currency_code}',
project_id: '${/parameter/@project_id}',
check_result:check_result
},
success: function(args) {
var record = args.result;
if (record.error_flag == 'Y') {
new Leaf.window({
id: 'rsc_fin_statement_prj_error_winid',
url: $('rsc_fin_statement_prj_error').getUrl(),
params: {
fin_statement_templet_id: '${/parameter/@fin_statement_templet_id}',
winid: 'rsc_fin_statement_prj_error_winid'
},
fullScreen: true,
draggable: true
});
} else {
parent.Leaf.SideBar.enable = true;
parent.Leaf.SideBar.show({
msg: '${l:IMPORT_WAS_SUCCESSFUL}',
duration: 2000
});
} }
parent._input_window.close();
},
error: function() {
$('temp_interface_1_ds').query();
$('temp_interface_2_ds').query();
$('temp_interface_3_ds').query();
$('temp_interface_4_ds').query();
$('saveBtn_id').enable();
Leaf.Masker.unmask(Ext.getBody());
},
failure: function() {
$('temp_interface_1_ds').query();
$('temp_interface_2_ds').query();
$('temp_interface_3_ds').query();
$('temp_interface_4_ds').query();
$('saveBtn_id').enable();
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
};
},
error: function() {
$('saveBtn_id').enable();
Leaf.Masker.unmask(Ext.getBody());
},
failure: function() {
$('saveBtn_id').enable();
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
};
function backBtn() { function backBtn() {
parent._input_window.close(); parent._input_window.close();
...@@ -160,13 +249,13 @@ ...@@ -160,13 +249,13 @@
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:tab> </a:tab>
<a:tab prompt="RSC_FIN_STATEMENT_TMPLT_HDS.SUPPLEMENTARY" width="110"> <!--<a:tab prompt="RSC_FIN_STATEMENT_TMPLT_HDS.SUPPLEMENTARY" width="110">
<a:grid bindTarget="temp_interface_4_ds" marginHeight="150" marginWidth="50" navBar="true"> <a:grid bindTarget="temp_interface_4_ds" marginHeight="150" marginWidth="50" navBar="true">
<a:columns> <a:columns>
<a:placeHolder id="object_ds4"/> <a:placeHolder id="object_ds4"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:tab> </a:tab>-->
</a:tabs> </a:tabs>
</a:tabPanel> </a:tabPanel>
<a:hBox> <a:hBox>
...@@ -200,12 +289,12 @@ ...@@ -200,12 +289,12 @@
</c:process-config> </c:process-config>
</p:loop> </p:loop>
</c:create-config> </c:create-config>
<c:create-config targetId="object_ds4"> <!--<c:create-config targetId="object_ds4">
<p:loop source="/model/columns"> <p:loop source="/model/columns">
<c:process-config> <c:process-config>
<a:column name="${@column_name}" align="${@column_align}" prompt="${@field_description}" width="${@field_width}"/> <a:column name="${@column_name}" align="${@column_align}" prompt="${@field_description}" width="${@field_width}"/>
</c:process-config> </c:process-config>
</p:loop> </p:loop>
</c:create-config> </c:create-config>-->
</a:view-config> </a:view-config>
</a:screen> </a:screen>
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
<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) {
...@@ -30,8 +32,12 @@ ...@@ -30,8 +32,12 @@
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); 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}'); $L.Masker.mask(_input_window.body, '${l:HLS.IMPORTING}');
document.getElementById('importForm').submit(); 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) { function close_window(winid) {
...@@ -39,6 +45,27 @@ ...@@ -39,6 +45,27 @@
$(winid).close(); $(winid).close();
} }
} }
function downloadTemp(){
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}"/>
......
...@@ -5,12 +5,14 @@ ...@@ -5,12 +5,14 @@
$Revision: 1.0 $Revision: 1.0
$Purpose: 财务报表具体明细(列出所有月份的财务报表) $Purpose: 财务报表具体明细(列出所有月份的财务报表)
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:init-procedure> <a:init-procedure>
<a:model-query defaultWhereClause="fin_statement_templet_id=${/parameter/@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=${/parameter/@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:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="rsc_fin_statement_specific_detail_query_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_specific_detail_query.lview"/> <a:link id="rsc_fin_statement_specific_detail_query_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_specific_detail_query.lview"/>
<a:link id="rsc_fin_statement_tmp_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_detail_tmp.lsc"/>
<a:link id="rsc_fin_statement_excel_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_excel_sheets.lsc"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function rsc_fin_statement_specific_detail_back(){ function rsc_fin_statement_specific_detail_back(){
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
...@@ -18,7 +20,13 @@ ...@@ -18,7 +20,13 @@
function rsc_fin_statement_specific_detail_render(value,record,name){ function rsc_fin_statement_specific_detail_render(value,record,name){
if(record.get('fin_statement_id')){ if(record.get('fin_statement_id')){
var url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id'); var url;
if('${/parameter/@project_flag}'=='Y') {
url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id');
}
//var url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id');
return '<a href="javascript:open_rsc_fin_statement_specific_detail_render(\''+url+'\')">详情</a>'; return '<a href="javascript:open_rsc_fin_statement_specific_detail_render(\''+url+'\')">详情</a>';
} }
} }
...@@ -33,9 +41,45 @@ ...@@ -33,9 +41,45 @@
fullScreen: true fullScreen: true
}); });
} }
function excel_exprot(){
//$('fin_statement_prj_hds_result_id')._export();
var records = $('fin_statement_prj_hds_result').getSelected();
if (records.length == 0||records.length>12) {
Leaf.showMessage('提示', '请选择不超过12期的数据导出!'); //update by xsh35973 20220401
return;
}
var param = {};
var saveData = [];
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
for (var i = 0;i < records.length;i++) {
saveData.push({
'fin_statement_id': records[i].get('fin_statement_id'),
'_status': 'insert'
});
}
param['details'] = saveData;
Leaf.request({
url: $('rsc_fin_statement_tmp_link').getUrl(),
para: param,
success: function() {
Leaf.Masker.unmask(detail_mask);
var _url=$('rsc_fin_statement_excel_link').getUrl()+'?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}'; //update by xsh35973 20220401
window.open(_url);
},
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
error: function() {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
}
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="fin_statement_prj_hds_result" autoPageSize="10" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v_query" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_hds_v_query/query?bp_id=${/parameter/@bp_id}&amp;fin_statement_templet_id=${/parameter/@fin_statement_templet_id}" selectable="true"/> <a:dataSet id="fin_statement_prj_hds_result" autoPageSize="10" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v_query" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_hds_v_query/query?bp_id=${/parameter/@bp_id}&amp;fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true"/>
<a:dataSet id="rsc303_fin_statement_prj_handle_query_ds" model="rsc.RSC303.rsc_fin_statement_prj_hds_v"> <a:dataSet id="rsc303_fin_statement_prj_handle_query_ds" model="rsc.RSC303.rsc_fin_statement_prj_hds_v">
<a:datas dataSource="/model/rsc_fin_statement_prj_hds"/> <a:datas dataSource="/model/rsc_fin_statement_prj_hds"/>
<a:fields> <a:fields>
...@@ -57,18 +101,35 @@ ...@@ -57,18 +101,35 @@
</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="fiscal_year"/> <a:field name="fiscal_year"/>
<a:field name="project_number" readOnly="true"/>
</a:fields> </a:fields>
<a:events> <a:events>
<!-- <a:event name="update" handler="rsc303_prj_hds_Onupdate"/> --><![CDATA[ <!-- <a:event name="update" handler="rsc303_prj_hds_Onupdate"/> --><![CDATA[
]]></a:events> ]]></a:events>
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton click="rsc_fin_statement_specific_detail_back" text="HLS.BACK"/> <a:gridButton click="rsc_fin_statement_specific_detail_back" text="HLS.BACK"/>
<a:gridButton click="excel_exprot" text="导出"/>
</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.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:textField name="project_number" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="单据编号"/>
</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: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: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"/>
...@@ -76,7 +137,9 @@ ...@@ -76,7 +137,9 @@
<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:form> </a:form>
<a:grid bindTarget="fin_statement_prj_hds_result" marginHeight="200" marginWidth="30" navBar="true"> </a:case>
</a:switch>
<a:grid id="fin_statement_prj_hds_result_id" bindTarget="fin_statement_prj_hds_result" marginHeight="200" marginWidth="30" navBar="true">
<a:columns> <a:columns>
<a:column name="bp_name" prompt="HLS.BP_NAME" width="200"/> <a:column name="bp_name" prompt="HLS.BP_NAME" width="200"/>
<a:column name="fin_statement_templet_code" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" width="150"/> <a:column name="fin_statement_templet_code" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" width="150"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-6-3 上午09:45:15
$Revision: 1.0
$Purpose: 财务报表具体明细(列出所有月份的财务报表)
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:init-procedure>
<a:model-query defaultWhereClause="fin_statement_templet_id=${/parameter/@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:init-procedure>
<a:view>
<a:link id="rsc_fin_statement_specific_detail_query_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_specific_detail_query.lview"/>
<a:link id="rsc_fin_statement_tmp_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_detail_tmp.lsc"/>
<a:link id="rsc_fin_statement_excel_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_excel_sheets.lsc"/>
<script type="text/javascript"><![CDATA[
function rsc_fin_statement_specific_detail_back(){
$('${/parameter/@winid}').close();
}
function rsc_fin_statement_specific_detail_render(value,record,name){
if(record.get('fin_statement_id')){
var url;
if('${/parameter/@project_flag}'=='Y') {
url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id');
}
//var url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id');
return '<a href="javascript:open_rsc_fin_statement_specific_detail_render(\''+url+'\')">详情</a>';
}
}
function open_rsc_fin_statement_specific_detail_render(url){
new Leaf.Window({
id: 'rsc_fin_statement_specific_detail_query_winid',
params:{
winid:'rsc_fin_statement_specific_detail_query_winid'
},
url: url,
title: '',
fullScreen: true
});
}
function excel_exprot(){
//$('fin_statement_prj_hds_result_id')._export();
var records = $('fin_statement_prj_hds_result').getSelected();
var l_records = $('fin_statement_prj_hds_result_all').getSelected();
if ((records.length == 0 && l_records.length == 0)||records.length + l_records.length>12) {
Leaf.showMessage('提示', '请选择不超过12期的数据导出!'); //update by xsh35973 20220401
return;
}
var param = {};
var saveData = [];
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
for (var i = 0;i < l_records.length;i++) {
saveData.push({
'fin_statement_id': l_records[i].get('fin_statement_id'),
'_status': 'insert'
});
}
for (var i = 0;i < records.length;i++) {
saveData.push({
'fin_statement_id': records[i].get('fin_statement_id'),
'_status': 'insert'
});
}
param['details'] = saveData;
Leaf.request({
url: $('rsc_fin_statement_tmp_link').getUrl(),
para: param,
success: function() {
Leaf.Masker.unmask(detail_mask);
var _url=$('rsc_fin_statement_excel_link').getUrl()+'?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}'; //update by xsh35973 20220401
window.open(_url);
},
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
error: function() {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
}
]]></script>
<a:dataSets>
<a:dataSet id="fin_statement_prj_hds_result" autoPageSize="10" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v_query" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_hds_v_query/query?bp_id=${/parameter/@bp_id}&amp;fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true"/>
<a:dataSet id="fin_statement_prj_hds_result_all" autoPageSize="10" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v_query" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_hds_v_query/query?bp_id=${/parameter/@bp_id}&amp;fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;project_flag=N" selectable="true">
</a:dataSet>
<a:dataSet id="rsc303_fin_statement_prj_handle_query_ds" model="rsc.RSC303.rsc_fin_statement_prj_hds_v">
<a:datas dataSource="/model/rsc_fin_statement_prj_hds"/>
<a:fields>
<a:field name="bp_code" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" prompt="HLS.BP_CODE" readOnly="true" required="false" 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_name" prompt="HLS.BP_NAME" readOnly="true"/>
<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?bp_id=${/parameter/@bp_id}" lovWidth="500" readOnly="true" required="true" title="FIN_STATEMENT_TMPLT_CODE">
<a:mapping>
<a:map from="fin_statement_templet_code" to="fin_statement_templet_code"/>
<a:map from="fin_statement_templet_id" to="fin_statement_templet_id"/>
<a:map from="fin_statement_templet_name" to="fin_statement_templet_name"/>
</a:mapping>
</a:field>
<a:field name="fin_statement_templet_name" readOnly="true"/>
<a:field name="fiscal_year"/>
<a:field name="project_number" readOnly="true"/>
</a:fields>
<a:events>
<!-- <a:event name="update" handler="rsc303_prj_hds_Onupdate"/> --><![CDATA[
]]></a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="rsc_fin_statement_specific_detail_back" text="HLS.BACK"/>
<a:gridButton click="excel_exprot" text="导出"/>
</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.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:textField name="project_number" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="单据编号"/>
</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>
<a:grid id="fin_statement_prj_hds_result_id" bindTarget="fin_statement_prj_hds_result" marginHeight="350" marginWidth="30" navBar="true">
<a:columns>
<a:column name="bp_name" prompt="HLS.BP_NAME" width="200"/>
<a:column name="fin_statement_templet_code" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" width="150"/>
<a:column name="fin_statement_templet_name" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME" width="150"/>
<a:column name="fiscal_date" prompt="报表年月" width="100"/>
<a:column name="specific_detail" align="center" prompt="详情" renderer="rsc_fin_statement_specific_detail_render" width="50"/>
</a:columns>
</a:grid>
<a:grid id="fin_statement_prj_hds_result_all_id" bindTarget="fin_statement_prj_hds_result_all" marginHeight="350" marginWidth="30" navBar="true">
<a:columns>
<a:column name="bp_name" prompt="HLS.BP_NAME" width="200"/>
<a:column name="fin_statement_templet_code" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" width="150"/>
<a:column name="fin_statement_templet_name" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME" width="150"/>
<a:column name="fiscal_date" prompt="报表年月" width="100"/>
<a:column name="specific_detail" align="center" prompt="详情" renderer="rsc_fin_statement_specific_detail_render" width="50"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-6-3 上午09:45:15
$Revision: 1.0
$Purpose: 财务报表具体明细(列出所有月份的财务报表)
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:init-procedure>
<a:model-query defaultWhereClause="fin_statement_templet_id=${/parameter/@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:init-procedure>
<a:view>
<a:link id="rsc_fin_statement_specific_detail_query_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_specific_detail_query.lview"/>
<a:link id="rsc_fin_statement_tmp_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_detail_tmp.lsc"/>
<a:link id="rsc_fin_statement_excel_link" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_excel_sheets.lsc"/>
<script type="text/javascript"><![CDATA[
function rsc_fin_statement_specific_detail_back(){
$('${/parameter/@winid}').close();
}
function rsc_fin_statement_specific_detail_render(value,record,name){
if(record.get('fin_statement_id')){
var url;
if('${/parameter/@project_flag}'=='Y') {
url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id')+'&project_flag=Y&project_id=${/parameter/@project_id}';
}else{
url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id');
}
//var url = $('rsc_fin_statement_specific_detail_query_link').getUrl() + '?fin_statement_id=' + record.get('fin_statement_id')+'&fin_statement_templet_id='+record.get('fin_statement_templet_id')+'&bp_id='+record.get('bp_id');
return '<a href="javascript:open_rsc_fin_statement_specific_detail_render(\''+url+'\')">详情</a>';
}
}
function open_rsc_fin_statement_specific_detail_render(url){
new Leaf.Window({
id: 'rsc_fin_statement_specific_detail_query_winid',
params:{
winid:'rsc_fin_statement_specific_detail_query_winid'
},
url: url,
title: '',
fullScreen: true
});
}
function excel_exprot(){
//$('fin_statement_prj_hds_result_id')._export();
var records = $('fin_statement_prj_hds_result').getSelected();
var l_records = $('fin_statement_prj_hds_result_last').getSelected();
if ((records.length == 0 && l_records.length == 0)||records.length + l_records.length>12) {
Leaf.showMessage('提示', '请选择不超过12期的数据导出!'); //update by xsh35973 20220401
return;
}
var param = {};
var saveData = [];
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
for (var i = 0;i < l_records.length;i++) {
saveData.push({
'fin_statement_id': l_records[i].get('fin_statement_id'),
'_status': 'insert'
});
}
for (var i = 0;i < records.length;i++) {
saveData.push({
'fin_statement_id': records[i].get('fin_statement_id'),
'_status': 'insert'
});
}
param['details'] = saveData;
Leaf.request({
url: $('rsc_fin_statement_tmp_link').getUrl(),
para: param,
success: function() {
Leaf.Masker.unmask(detail_mask);
var _url=$('rsc_fin_statement_excel_link').getUrl()+'?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}'; //update by xsh35973 20220401
window.open(_url);
},
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
error: function() {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
}
]]></script>
<a:dataSets>
<a:dataSet id="fin_statement_prj_hds_result" autoPageSize="10" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v_query" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_hds_v_query/query?bp_id=${/parameter/@bp_id}&amp;fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true"/>
<a:dataSet id="fin_statement_prj_hds_result_last" autoPageSize="10" autoQuery="true" model="rsc.RSC303.rsc_fin_statement_prj_hds_v_last" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_hds_v_last/query?bp_id=${/parameter/@bp_id}&amp;fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;project_flag=${/parameter/@project_flag}&amp;project_id=${/parameter/@project_id}" selectable="true">
</a:dataSet>
<a:dataSet id="rsc303_fin_statement_prj_handle_query_ds" model="rsc.RSC303.rsc_fin_statement_prj_hds_v">
<a:datas dataSource="/model/rsc_fin_statement_prj_hds"/>
<a:fields>
<a:field name="bp_code" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" prompt="HLS.BP_CODE" readOnly="true" required="false" 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_name" prompt="HLS.BP_NAME" readOnly="true"/>
<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?bp_id=${/parameter/@bp_id}" lovWidth="500" readOnly="true" required="true" title="FIN_STATEMENT_TMPLT_CODE">
<a:mapping>
<a:map from="fin_statement_templet_code" to="fin_statement_templet_code"/>
<a:map from="fin_statement_templet_id" to="fin_statement_templet_id"/>
<a:map from="fin_statement_templet_name" to="fin_statement_templet_name"/>
</a:mapping>
</a:field>
<a:field name="fin_statement_templet_name" readOnly="true"/>
<a:field name="fiscal_year"/>
<a:field name="project_number" readOnly="true"/>
</a:fields>
<a:events>
<!-- <a:event name="update" handler="rsc303_prj_hds_Onupdate"/> --><![CDATA[
]]></a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="rsc_fin_statement_specific_detail_back" text="HLS.BACK"/>
<a:gridButton click="excel_exprot" text="导出"/>
</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.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:textField name="project_number" bindTarget="rsc303_fin_statement_prj_handle_query_ds" prompt="单据编号"/>
</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>
<a:grid id="fin_statement_prj_hds_result_id" bindTarget="fin_statement_prj_hds_result" marginHeight="350" marginWidth="30" navBar="true">
<a:columns>
<a:column name="bp_name" prompt="HLS.BP_NAME" width="200"/>
<a:column name="fin_statement_templet_code" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" width="150"/>
<a:column name="fin_statement_templet_name" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME" width="150"/>
<a:column name="fiscal_date" prompt="报表年月" width="100"/>
<a:column name="specific_detail" align="center" prompt="详情" renderer="rsc_fin_statement_specific_detail_render" width="50"/>
</a:columns>
</a:grid>
<a:grid id="fin_statement_prj_hds_result_last_id" bindTarget="fin_statement_prj_hds_result_last" marginHeight="350" marginWidth="30" navBar="true">
<a:columns>
<a:column name="bp_name" prompt="HLS.BP_NAME" width="200"/>
<a:column name="fin_statement_templet_code" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_CODE" width="150"/>
<a:column name="fin_statement_templet_name" prompt="RSC_FIN_STATEMENT_TMPLT_HDS.FIN_STATEMENT_TEMPLET_NAME" width="150"/>
<a:column name="fiscal_date" prompt="报表年月" width="100"/>
<a:column name="specific_detail" align="center" prompt="详情" renderer="rsc_fin_statement_specific_detail_render" width="50"/>
<a:column name="status" prompt="审批状态" width="100"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
...@@ -7,12 +7,15 @@ ...@@ -7,12 +7,15 @@
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view> <a:view>
<a:link id="detail_sheets_excel_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_excel_sheets_detail_export.lsc"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
/* var g_fin_statement_templet_id = ${/model/datasource/record/@fin_statement_templet_id}; */
function rsc_fin_statement_specific_detail_query_close(){ function rsc_fin_statement_specific_detail_query_close(){
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
} }
//汇总数据字体变红 //汇总数据字体变红
function font_format_renderer(value, record, name) { function font_format_renderer(value, record, name) {
...@@ -27,11 +30,24 @@ ...@@ -27,11 +30,24 @@
if (!Ext.isEmpty(value) && record.get('item_type') == 'FORMULA') { if (!Ext.isEmpty(value) && record.get('item_type') == 'FORMULA') {
return '<span style="color:red">' + Leaf.formatMoney(value) + '</span>'; return '<span style="color:red">' + Leaf.formatMoney(value) + '</span>';
} else { } else if(!Ext.isEmpty(value)){
return Leaf.formatMoney(value);
}
else {
return value=='undefined'?'':value; return value=='undefined'?'':value;
} }
} }
function rsc_fin_statement_specific_detail_query_export(){
var url;
if('${/parameter/@project_flag}'=='Y'){
var url = $('detail_sheets_excel_id').getUrl()+ '?fin_statement_templet_id=' + ${/parameter/@fin_statement_templet_id}+'&bp_id='+${/parameter/@bp_id}+'&fin_statement_id='+${/parameter/@fin_statement_id}+'&datasoure_type=prj_datail'+'&project_id=${/parameter/@project_id}';
}else{
url = $('detail_sheets_excel_id').getUrl()+ '?fin_statement_templet_id=' + ${/parameter/@fin_statement_templet_id}+'&bp_id='+${/parameter/@bp_id}+'&fin_statement_id='+${/parameter/@fin_statement_id}+'&datasoure_type=prj_datail';
}
window.open(url);
}
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="rsc303_fin_statement_prj_handle_detail_result_1_ds" autoQuery="true" fetchAll="false" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v_query/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;fin_statement_id=${/parameter/@fin_statement_id}&amp;fin_statement_type=BALANCE_SHEET" selectable="true"/> <a:dataSet id="rsc303_fin_statement_prj_handle_detail_result_1_ds" autoQuery="true" fetchAll="false" pageSize="100" queryUrl="${/request/@context_path}/autocrud/rsc.RSC303.rsc_fin_statement_prj_lns_v_query/query?fin_statement_templet_id=${/parameter/@fin_statement_templet_id}&amp;fin_statement_id=${/parameter/@fin_statement_id}&amp;fin_statement_type=BALANCE_SHEET" selectable="true"/>
...@@ -42,6 +58,7 @@ ...@@ -42,6 +58,7 @@
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton click="rsc_fin_statement_specific_detail_query_close" text="HLS.BACK"/> <a:gridButton click="rsc_fin_statement_specific_detail_query_close" text="HLS.BACK"/>
<a:gridButton click="rsc_fin_statement_specific_detail_query_export" text="导出"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:tabPanel marginHeight="130" marginWidth="30"> <a:tabPanel marginHeight="130" marginWidth="30">
<a:tabs> <a:tabs>
...@@ -50,10 +67,10 @@ ...@@ -50,10 +67,10 @@
<a:columns> <a:columns>
<a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/> <a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/>
<a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/> <a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/>
<a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="110"/> <a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="200"/>
<a:column name="amount_adj" align="right" editor="handle_result_1_numfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="amount_adj" align="right" editor="handle_result_1_numfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="description" editor="handle_result_1_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> <!-- <a:column name="description" editor="handle_result_1_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> -->
</a:columns> </a:columns>
<a:editors> <a:editors>
<a:numberField id="handle_result_1_numfield"/> <a:numberField id="handle_result_1_numfield"/>
...@@ -66,10 +83,10 @@ ...@@ -66,10 +83,10 @@
<a:columns> <a:columns>
<a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/> <a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/>
<a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/> <a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/>
<a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="110"/> <a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="200"/>
<a:column name="amount_adj" align="right" editor="handle_result_3_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="amount_adj" align="right" editor="handle_result_3_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="description" editor="handle_result_3_text_field" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> <!-- <a:column name="description" editor="handle_result_3_text_field" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> -->
</a:columns> </a:columns>
<a:editors> <a:editors>
<a:numberField id="handle_result_3_numberfield"/> <a:numberField id="handle_result_3_numberfield"/>
...@@ -82,10 +99,10 @@ ...@@ -82,10 +99,10 @@
<a:columns> <a:columns>
<a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/> <a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/>
<a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/> <a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/>
<a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="110"/> <a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="200"/>
<a:column name="amount_adj" align="right" editor="handle_result_2_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="amount_adj" align="right" editor="handle_result_2_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> <!-- <a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> -->
<a:column name="description" editor="handle_result_2_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> <!-- <a:column name="description" editor="handle_result_2_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> -->
</a:columns> </a:columns>
<a:editors> <a:editors>
<a:numberField id="handle_result_2_numberfield"/> <a:numberField id="handle_result_2_numberfield"/>
...@@ -93,22 +110,22 @@ ...@@ -93,22 +110,22 @@
</a:editors> </a:editors>
</a:grid> </a:grid>
</a:tab> </a:tab>
<a:tab prompt="补充" width="110"> <!--<a:tab prompt="补充" width="110">
<a:grid bindTarget="rsc303_fin_statement_prj_handle_detail_result_4_ds" marginHeight="160" marginWidth="50" navBar="true"> <a:grid bindTarget="rsc303_fin_statement_prj_handle_detail_result_4_ds" marginHeight="160" marginWidth="50" navBar="true">
<a:columns> <a:columns>
<a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/> <a:column name="item_desc" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.FIN_STATEMENT_ITEM" width="150"/>
<a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/> <a:column name="line_number" align="center" lock="true" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.LINE_NUMBER" width="50"/>
<a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="110"/> <a:column name="amount" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ACCOUNT_VALUE" renderer="font_money_format_renderer" width="200"/>
<a:column name="amount_adj" align="right" editor="handle_result_4_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> &lt;!&ndash; <a:column name="amount_adj" align="right" editor="handle_result_4_numberfield" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTED_VALUE" renderer="font_money_format_renderer" width="110"/> &ndash;&gt;
<a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> &lt;!&ndash; <a:column name="amount_after_adj" align="right" prompt="RSC_FIN_STATEMENT_TMPLT_LNS.ADJUSTMENT_VALUE" renderer="font_money_format_renderer" width="110"/> &ndash;&gt;
<a:column name="description" editor="handle_result_4_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> &lt;!&ndash; <a:column name="description" editor="handle_result_4_textfield" prompt="HLS.COMMENT" renderer="font_format_renderer" width="200"/> &ndash;&gt;
</a:columns> </a:columns>
<a:editors> <a:editors>
<a:numberField id="handle_result_4_numberfield"/> <a:numberField id="handle_result_4_numberfield"/>
<a:textField id="handle_result_4_textfield"/> <a:textField id="handle_result_4_textfield"/>
</a:editors> </a:editors>
</a:grid> </a:grid>
</a:tab> </a:tab>-->
</a:tabs> </a:tabs>
</a:tabPanel> </a:tabPanel>
</a:screenBody> </a:screenBody>
......
...@@ -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="rsc400_fin_statement_import_id" url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_prj_ipt_line.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_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.lview"/>
<a:link id="rsc400_prj_submit_id" model="rsc.RSC400.rsc_fin_report_submit" modelaction="update" />
<script type="text/javascript"><![CDATA[
function rsc400_para_query_ds_reset() {
$('rsc_fin_statement_report_query_ds').reset();
}
function rsc400_current_grid_add() {
$('fin_statement_current_grid_ds').showEditorByRecord($('rsc_fin_statement_current_result_ds').create());
}
function rsc400_grid_query() {
$('rsc_fin_statement_current_result_ds').query();
$('rsc_fin_statement_history_result_ds').query();
}
function rsc400_current_grid_save() {
var result_ds = $('rsc_fin_statement_current_result_ds');
if (result_ds.validate()) {
result_ds.submit();
}
rsc400_grid_query();
}
function open_fin_import_window(url,column) {
var win = new Leaf.Window({
id: 'upload_attachment_winid',
params: {
winid: 'upload_attachment_winid'
},
url: url,
title: column,
width: 450,
height: 300
});
}
function upload_attachment_renderer(value, record, name){
var fin_statement_templet_id = '${/model/statement_templet_id/record/@fin_statement_templet_id}';
if (!Leaf.isEmpty(record.get('project_id')) && !Leaf.isEmpty(fin_statement_templet_id)) {
if(name == 'fin_attachment'){
if (value != null) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
var str = value.split(';;');
var url = '';
for (var i = 0;i < str.length;i++) {
var temp = str[i].split('--');
if (!Leaf.isEmpty(temp[0])) {
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
}
}
return url;
}
} else if (name == 'upload_attachment') {
var link_url = $('rsc400_fin_statement_import_id').getUrl()+'?fin_statement_templet_id=' + fin_statement_templet_id+'&project_id='+record.get('project_id')+'&prj_bp_id='+record.get('bp_id')+'&bp_id='+record.get('bp_id')+'&unit_code=YUAN&currency_code=CNY';
var column= '导入';
return '<a href="javascript:open_fin_import_window(\'' + link_url + '\',\'' + column +'\');">' + column + '</a>';
}
}
}
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
});
}
function rsc400_prj_submit() {
var result_ds = $('rsc_fin_statement_current_result_ds');
record = result_ds.getSelected()[0];
if (record.dirty) {
Leaf.showMessage('${l:PROMPT}', '数据存在更新,请先保存');
}
if(record.get('status') != 'NEW'){
Leaf.showMessage('${l:PROMPT}', '只能提交审批状态为新建的记录');
}
Leaf.showConfirm('提示', '您确认提交吗', function() {
Leaf.Masker.mask(Ext.getBody(), '正在提交...');
Leaf.request({
url: $('rsc400_prj_submit_id').getUrl(),
para: {
project_id: record.get('project_id')
},
success: function() {
Leaf.SideBar.show({
msg: '提交成功',
duration: 3000
});
Leaf.Masker.unmask(Ext.getBody());
$('rsc_fin_statement_current_result_ds').query();
$('rsc_fin_statement_history_result_ds').query();
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
});
}
function editorFun_rsc_grid(record, name) {
if (record.isNew) {
if (name == 'bp_name') {
return 'result_grid_lv';
}
}
return '';
}
]]></script>
<a:dataSets>
<a:dataSet id="statusDs" loadData="true" lookupCode="RSC400_REPORT_STAUTS"/>
<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_agent_for_lov" lovWidth="600" 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="600" 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:field name="status_desc" displayField="code_value_name" options="statusDs" returnField="status" valueField="code_value"/>
</a:fields>
</a:dataSet>
<a:dataSet id="rsc_fin_statement_current_result_ds" autoPageSize="true" autoQuery="true" model="rsc.RSC400.rsc_fin_statement_report_lv" queryDataSet="rsc_fin_statement_report_query_ds" selectable="true" selectionModel="single">
<a:fields>
<a:field name="bp_id" defaultValue="${/model/report_num/record/@bp_id}"/>
<a:field name="bp_name" defaultValue="${/model/report_num/record/@bp_name}" lovGridHeight="350" lovHeight="500" required="true" readOnly="false" lovService="basic.hls_bp_agent_for_lov?bp_id=${/model/report_num/record/@bp_id}" lovWidth="500" prompt="HLS.BP_CODE" 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="report_num" defaultValue="${/model/report_num/record/@report_num}"/>
<a:field name="status" defaultValue="NEW">></a:field>
<a:field name="status_desc" defaultValue="新建"></a:field>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="rsc400_grid_query"/>
</a:events>
</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" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="rsc400_para_query_ds_reset" text="HLS.RESET"/>
<a:gridButton click="rsc400_grid_query" text="HLS.QUERY"/>
<a:gridButton click="rsc400_current_grid_add" text="HLS.NEW"/>
<a:gridButton click="rsc400_current_grid_save" text="HLS.SAVE"/>
<a:gridButton click="rsc400_prj_submit" text="提交审批"/>
</a:screenTopToolbar>
<a:form column="4" labelWidth="120" title="查询条件">
<a:lov name="bp_code" bindTarget="rsc_fin_statement_report_query_ds" prompt="经销商编码"/>
<a:textField name="bp_name" bindTarget="rsc_fin_statement_report_query_ds" prompt="经销商名称"/>
<a:textField name="report_num" bindTarget="rsc_fin_statement_report_query_ds" prompt="申请月份"/>
<a:comboBox name="status_desc" bindTarget="rsc_fin_statement_report_query_ds" prompt="审批状态"/>
</a:form>
<a:tabPanel marginHeight="100" marginWidth="30">
<a:tabs>
<a:tab prompt="当前" width="100">
<a:grid id="fin_statement_current_grid_ds" bindTarget="rsc_fin_statement_current_result_ds" marginHeight="130" marginWidth="60" navBar="true">
<a:columns>
<a:column name="bp_name" editorFunction="editorFun_rsc_grid" width="200" prompt="经销商名称"/>
<a:column name="report_num" align="center" width="120" prompt="申请月份"/>
<!--<a:column name="fin_attachment" align="center" width="200" prompt="附件" renderer="upload_attachment_renderer"/>-->
<a:column name="upload_attachment" align="center" width="120" prompt="上传附件" renderer="upload_attachment_renderer"/>
<a:column name="status_desc" align="center" width="120" prompt="审批状态"/>
</a:columns>
<a:editors>
<a:lov id="result_grid_lv"/>
</a:editors>
</a:grid>
</a:tab>
<a:tab prompt="历史" width="100">
<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="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:tab>
</a:tabs>
</a:tabPanel>
</a:screenBody>
<script type="text/javascript"><![CDATA[
if (!Ext.isEmpty(${/parameter/@bp_id})){
var record = $('rsc_fin_statement_report_query_ds').getAt(0);
record.getField('bp_code').setReadOnly(true);
record.getField('fin_statement_templet_code').setLovPara('bp_id','${/parameter/@bp_id}');
record.set('bp_code','${/model/rsc_fin_statement_prj_hds/record/@bp_code}');
record.set('bp_id','${/model/rsc_fin_statement_prj_hds/record/@bp_id}');
record.set('bp_name','${/model/rsc_fin_statement_prj_hds/record/@bp_name}');
}
]]></script>
</a:view>
</a:screen>
<?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>
<?xml version="1.0" encoding="UTF-8"?>
<!--
@Author: xsh 35973
@Date: 2022/3/24 16:26
@Revision: 1.0
@Purpose: 财务报表查询
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:view>
<a:link id="rsc_fin_statement_tmp_link"
url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_detail_tmp.lsc"/>
<a:link id="rsc_fin_statement_excel_link"
url="${/request/@context_path}/modules/rsc/RSC303/rsc_fin_statement_excel_sheets.lsc"/>
<script type="text/javascript"><![CDATA[
//重置
function clearData() {
$("financial_statement_statement_form_ds").reset();
$("financial_statement_statement_index_ds").reset();
};
//查询
function queryData() {
$('financial_statement_statement_grid_ds').query();
};
//导出
function exportData() {
$('financial_statement_statement_grid_id')._export('xls', '财务报表查询清单');
}
//导出数据详情
function excel_export() {
var records = $('financial_statement_statement_grid_ds').getSelected();
if (records.length == 0 || records.length > 12) {
Leaf.showMessage('提示', '请选择不超过12期的数据导出!'); //update by xsh35973 20220401
return;
}
var param = {};
var saveData = [];
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
var bp_id = '';
for (var i = 0; i < records.length; i++) {
if (records[i].get('bp_id') !== bp_id && bp_id !== '') {
Leaf.showMessage('提示', '请选择同一个经销商!'); //update by xsh35973 20220401
Leaf.Masker.unmask(detail_mask);
return;
};
saveData.push({
'fin_statement_id': records[i].get('fin_statement_id'),
'_status': 'insert'
});
bp_id = records[i].get('bp_id')
}
param['details'] = saveData;
Leaf.request({
url: $('rsc_fin_statement_tmp_link').getUrl(),
para: param,
success: function () {
Leaf.Masker.unmask(detail_mask);
var _url = $('rsc_fin_statement_excel_link').getUrl() + '?fin_statement_templet_id=206'; //update by xsh35973 20220401
window.open(_url);
},
failure: function () {
Leaf.Masker.unmask(detail_mask);
},
error: function () {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
}
function check_hide_columns() {
var data = [];
var records = $("financial_statement_statement_index_ds").getCurrentRecord();
var record = records.get('line_number').split(',');
if (record.length > 0 && record != '') {
for (var i = 0; i < record.length; i++) {
var index_name = 'index_name' + record[i];
data.push(index_name);
}
for (var j = 1; j < 32; j++) {
var column_name = 'index_name' + j;
$('financial_statement_statement_grid_id').hideColumn(column_name);
}
for (var k = 0; k < data.length; k++) {
$('financial_statement_statement_grid_id').showColumn(data[k]);
}
} else {
for (var i = 1; i <= 31; i++) {
var name = 'index_name' + i
$('financial_statement_statement_grid_id').showColumn(name);
}
};
};
function on_finance_income_cashflow_renderer(value, record, name) {
return parseFloat(mul(value, 100)).toFixed(2) + '%';
}
function on_focus_event() {
var record = $('financial_statement_statement_form_ds').getAt(0);
record.getField('bp_name').setLovPara('fetchall', 'Y');
record.getField('report_month').setLovPara('fetchall', 'Y');
var record_index = $('financial_statement_statement_index_ds').getAt(0);
record_index.getField('index_name').setLovPara('fetchall', 'Y');
}
]]></script>
<a:dataSets>
<a:dataSet id="check_result_desc" lookupCode="RSC_CHECK_RESULT"/>
<a:dataSet id="financial_statement_statement_form_ds" autoCreate="true">
<a:fields>
<a:field name="bp_name" lovGridHeight="350" lovHeight="500"
lovService="rsc.RSC750.hls_bp_agent_for_lov" lovWidth="800"
displayField="bp_name" valueField="bp_id">
<a:mapping>
<a:map from="bp_id" to="bp_id"/>
<a:map from="bp_name" to="bp_name"/>
</a:mapping>
</a:field>
<a:field name="report_month" lovGridHeight="350" lovHeight="500"
lovService="rsc.RSC750.rsc_month_query_for_lov" lovWidth="800"
displayField="report_month" valueField="report_num">
<a:mapping>
<a:map from="report_num" to="report_num"/>
<a:map from="report_month" to="report_month"/>
</a:mapping>
</a:field>
</a:fields>
</a:dataSet>
<a:dataSet id="financial_statement_statement_index_ds" autoCreate="true">
<a:fields>
<a:field name="index_name" lovGridHeight="350" lovHeight="500"
lovService="rsc.RSC750.rsc_index_query_for_lov" lovWidth="800"
displayField="index_name" valueField="line_number">
<a:mapping>
<a:map from="line_number" to="line_number"/>
<a:map from="index_name" to="index_name"/>
</a:mapping>
</a:field>
</a:fields>
<a:events>
<a:event name="update" handler="check_hide_columns"/>
</a:events>
</a:dataSet>
<a:dataSet id="financial_statement_statement_grid_ds" autoPageSize="true" autoQuery="true"
queryDataSet="financial_statement_statement_form_ds"
model="rsc.RSC750.rsc_financial_statement_query_info" selectable="true">
<a:fields>
<a:field name="check_result_n" options="check_result_desc" displayField="code_value_name" valueField="code_value" returnField="month_check_result"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:toolbarButton id="table_query_id" click="queryData" text="查询" width="80"/>
<a:toolbarButton id="table_clear_id" click="clearData" text="重置" width="80"/>
<a:toolbarButton id="table_export" click="exportData" text="导出" width="80"/>
<a:toolbarButton id="excel_export_id" click="excel_export" text="导出数据详情" width="80"/>
</a:screenTopToolbar>
<a:form title="查询条件">
<a:box column="3" labelWidth="120" marginWidth="45">
<a:multiLov bindTarget="financial_statement_statement_form_ds" name="bp_name" prompt="经销商名称"
width="300">
<a:events>
<a:event name="focus" handler="on_focus_event"/>
</a:events>
</a:multiLov>
<a:multiLov bindTarget="financial_statement_statement_form_ds" name="report_month" prompt="财报月份"
width="300">
<a:events>
<a:event name="focus" handler="on_focus_event"/>
</a:events>
</a:multiLov>
<a:multiLov bindTarget="financial_statement_statement_index_ds" name="index_name" prompt="财务指标名称"
width="300">
<a:events>
<a:event name="focus" handler="on_focus_event"/>
</a:events>
</a:multiLov>
</a:box>
</a:form>
<a:grid id="financial_statement_statement_grid_id"
navBar="true" marginHeight="240" marginWidth="40"
bindTarget="financial_statement_statement_grid_ds">
<a:columns>
<a:column name="bp_name" prompt="经销商名称" align="center" width="180"/>
<a:column name="check_result_n" prompt="财报校验" align="center" width="80"/>
<a:column name="report_month" prompt="财报月份" align="center" width="100"/>
<a:column name="index_name1" prompt="资产负债率" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name2" prompt="存货周转率" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name3" prompt="存货周转天数" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name4" prompt="营业利润率" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name5" prompt="主营业务利润率" align="right" width="100" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name6" prompt="流动比率" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name7" prompt="净利润率" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name8" prompt="净资产收益率" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name9" prompt="速动比率" align="right" width="80" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name10" prompt="总资产利润率" align="right" width="100" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name11" prompt="总资产周转率" align="right" width="100" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name12" prompt="应收账款周转率" align="right" width="100" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name13" prompt="应收账款周转天数" align="right" width="100" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name14" prompt="其他应收账款周转率" align="right" width="110" renderer="on_finance_income_cashflow_renderer"/>
<a:column name="index_name15" prompt="货币资金" align="right" width="110"/>
<a:column name="index_name16" prompt="应收票据" align="right" width="110"/>
<a:column name="index_name17" prompt="应收账款" align="right" width="110"/>
<a:column name="index_name18" prompt="预付款项" align="right" width="110"/>
<a:column name="index_name19" prompt="其他应收款" align="right" width="110"/>
<a:column name="index_name20" prompt="存货" align="right" width="110"/>
<a:column name="index_name21" prompt="其他流动资产" align="right" width="110"/>
<a:column name="index_name22" prompt="固定资产" align="right" width="110"/>
<a:column name="index_name23" prompt="总资产" align="right" width="110"/>
<a:column name="index_name24" prompt="营业收入" align="right" width="110"/>
<a:column name="index_name25" prompt="营业成本" align="right" width="110"/>
<a:column name="index_name26" prompt="销售费用" align="right" width="110"/>
<a:column name="index_name27" prompt="管理费用" align="right" width="110"/>
<a:column name="index_name28" prompt="净利润" align="right" width="110"/>
<a:column name="index_name29" prompt="经营性现金净额" align="right" width="110"/>
<a:column name="index_name30" prompt="投资活动现金净额" align="right" width="110"/>
<a:column name="index_name31" prompt="筹资活动现金净额" align="right" width="110"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
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