Commit 4a21dcb5 authored by niminmin's avatar niminmin

[feat]变更功能开发

parent 15233c0c
......@@ -123,6 +123,44 @@
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>com.jacob</groupId>
<artifactId>sys-jacob</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/jacob.jar</systemPath>
</dependency>
<dependency>
<groupId>com.aspose.cells</groupId>
<artifactId>sys-aspose-cells</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/aspose-cells-8.5.2.jar</systemPath>
</dependency>
<dependency>
<groupId>com.aspose.slides</groupId>
<artifactId>sys-aspose-slides</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/aspose.slides-15.9.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.aspose.words</groupId>
<artifactId>sys-aspose-words</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/aspose-words-16.8.0-jdk16.jar</systemPath>
</dependency>
<dependency>
<groupId>com.artofsolving.jodconverter</groupId>
<artifactId>sys-artofsolving-jodconverter</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/jodconverter-2.2.2.jar</systemPath>
</dependency>
<!--end -->
<dependency>
......
......@@ -5,7 +5,7 @@
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features">
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" xmlns:s="leaf.plugin.script">
<bm:fields>
<bm:field name="bp_id" prompt="HLS_BP_MASTER_V.BP_ID"/>
<bm:field name="bp_code" displayWidth="242" forDisplay="true" forQuery="true" prompt="HLS.BP_CODE"/>
......@@ -39,6 +39,17 @@
<bm:query-field field="bp_name" queryExpression="t1.bp_name like &apos;%&apos; || ${@bp_name} || &apos;%&apos;"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="query" expression="t1.bp_category = ${@bp_category}"/>
<bm:data-filter name="query" expression="t1.bp_category = ${@bp_category} and exists
(select 1
from aut_trx_user_authorize a1, aut_owner_user_authorize a2
where a1.trx_category = 'BP'
and a1.trx_id = t1.bp_id
and trunc(sysdate) between a1.start_date and
nvl(a1.end_date, trunc(sysdate))
and a1.user_id = a2.owner_user_id
and a1.trx_category = a2.trx_category
and a2.authorized_user_id = ${/session/@user_id}
and trunc(sysdate) between a2.start_date and
nvl(a2.end_date, trunc(sysdate))) "/>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: WangYu
$Date: 2014-4-25 上午09:30:21
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select *
from (select tt.unreceived_sum_amount,
tt.overdue_sum_amount,
tt.not_due_sum_amount,
tt.overdue_amount_1,
tt.overdue_amount_2,
tt.overdue_amount_3,
tt.overdue_amount_left,
tt.not_due_amount_1,
tt.not_due_amount_2,
tt.not_due_amount_3,
tt.not_due_amount_4,
tt.not_due_amount_5,
tt.not_due_amount_6,
tt.not_due_amount_left,
tt.not_due_amount_7,
tt.not_due_amount_8,
tt.not_due_amount_9,
tt.not_due_amount_10,
tt.not_due_amount_11,
tt.not_due_amount_12,
tt.not_due_amount_13,
tt.not_due_amount_14,
tt.not_due_amount_15,
tt.not_due_amount_16,
tt.not_due_amount_17,
tt.not_due_amount_18,
tt.not_due_amount_19,
tt.not_due_amount_20,
tt.not_due_amount_21,
tt.not_due_amount_22,
tt.not_due_amount_23,
tt.not_due_amount_24,
tt.not_due_amount_25,
tt.not_due_amount_26,
tt.not_due_amount_27,
tt.not_due_amount_28,
tt.not_due_amount_29,
tt.not_due_amount_30,
tt.not_due_amount_31,
tt.not_due_amount_32,
tt.not_due_amount_33,
tt.not_due_amount_34,
tt.not_due_amount_35,
tt.not_due_amount_36,
tt.not_due_amount_37,
tt.not_due_amount_38,
tt.not_due_amount_39,
tt.not_due_amount_40,
tt.not_due_amount_41,
tt.not_due_amount_42,
tt.not_due_amount_43,
tt.not_due_amount_44,
tt.not_due_amount_45,
tt.not_due_amount_46,
tt.not_due_amount_47,
tt.not_due_amount_48,
tt.not_due_amount_48_left,
tt.not_due_amount_year_1,
tt.not_due_amount_year_2,
tt.not_due_amount_year_3,
tt.not_due_amount_year_4,
tt.not_due_amount_year_5,
tt.not_due_amount_year_5_left,
m.bp_name bp_id_agent_level1_n,
tt.account_code account_id_n,
(select description_text
from fnd_descriptions
where description_id = g.description_id
and language = 'ZHS') account_name,
tt.agent_bp_id,
tt.division,
(decode(tt.division,
'10',
'日立建机(上海)有限公司',
'20',
'永立建机(中国)有限公司',
'30',
'高空作业车厂商',
'40',
'力至优叉车')) || '/' ||
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'DIVISION'
AND v.code_value = tt.division) division_n
from (select sum(nvl(t.unreceived_sum_amount, 0)) unreceived_sum_amount,
sum(nvl(t.overdue_sum_amount, 0)) overdue_sum_amount,
sum(nvl(t.not_due_sum_amount, 0)) not_due_sum_amount,
sum(nvl(t.overdue_amount_1, 0)) overdue_amount_1,
sum(nvl(t.overdue_amount_2, 0)) overdue_amount_2,
sum(nvl(t.overdue_amount_3, 0)) overdue_amount_3,
sum(nvl(t.overdue_amount_left, 0)) overdue_amount_left,
sum(nvl(t.not_due_amount_1, 0)) not_due_amount_1,
sum(nvl(t.not_due_amount_2, 0)) not_due_amount_2,
sum(nvl(t.not_due_amount_3, 0)) not_due_amount_3,
sum(nvl(t.not_due_amount_4, 0)) not_due_amount_4,
sum(nvl(t.not_due_amount_5, 0)) not_due_amount_5,
sum(nvl(t.not_due_amount_6, 0)) not_due_amount_6,
sum(nvl(t.not_due_amount_left, 0)) not_due_amount_left,
sum(nvl(t.not_due_amount_7, 0)) not_due_amount_7,
sum(nvl(t.not_due_amount_8, 0)) not_due_amount_8,
sum(nvl(t.not_due_amount_9, 0)) not_due_amount_9,
sum(nvl(t.not_due_amount_10, 0)) not_due_amount_10,
sum(nvl(t.not_due_amount_11, 0)) not_due_amount_11,
sum(nvl(t.not_due_amount_12, 0)) not_due_amount_12,
sum(nvl(t.not_due_amount_13, 0)) not_due_amount_13,
sum(nvl(t.not_due_amount_14, 0)) not_due_amount_14,
sum(nvl(t.not_due_amount_15, 0)) not_due_amount_15,
sum(nvl(t.not_due_amount_16, 0)) not_due_amount_16,
sum(nvl(t.not_due_amount_17, 0)) not_due_amount_17,
sum(nvl(t.not_due_amount_18, 0)) not_due_amount_18,
sum(nvl(t.not_due_amount_19, 0)) not_due_amount_19,
sum(nvl(t.not_due_amount_20, 0)) not_due_amount_20,
sum(nvl(t.not_due_amount_21, 0)) not_due_amount_21,
sum(nvl(t.not_due_amount_22, 0)) not_due_amount_22,
sum(nvl(t.not_due_amount_23, 0)) not_due_amount_23,
sum(nvl(t.not_due_amount_24, 0)) not_due_amount_24,
sum(nvl(t.not_due_amount_25, 0)) not_due_amount_25,
sum(nvl(t.not_due_amount_26, 0)) not_due_amount_26,
sum(nvl(t.not_due_amount_27, 0)) not_due_amount_27,
sum(nvl(t.not_due_amount_28, 0)) not_due_amount_28,
sum(nvl(t.not_due_amount_29, 0)) not_due_amount_29,
sum(nvl(t.not_due_amount_30, 0)) not_due_amount_30,
sum(nvl(t.not_due_amount_31, 0)) not_due_amount_31,
sum(nvl(t.not_due_amount_32, 0)) not_due_amount_32,
sum(nvl(t.not_due_amount_33, 0)) not_due_amount_33,
sum(nvl(t.not_due_amount_34, 0)) not_due_amount_34,
sum(nvl(t.not_due_amount_35, 0)) not_due_amount_35,
sum(nvl(t.not_due_amount_36, 0)) not_due_amount_36,
sum(nvl(t.not_due_amount_37, 0)) not_due_amount_37,
sum(nvl(t.not_due_amount_38, 0)) not_due_amount_38,
sum(nvl(t.not_due_amount_39, 0)) not_due_amount_39,
sum(nvl(t.not_due_amount_40, 0)) not_due_amount_40,
sum(nvl(t.not_due_amount_41, 0)) not_due_amount_41,
sum(nvl(t.not_due_amount_42, 0)) not_due_amount_42,
sum(nvl(t.not_due_amount_43, 0)) not_due_amount_43,
sum(nvl(t.not_due_amount_44, 0)) not_due_amount_44,
sum(nvl(t.not_due_amount_45, 0)) not_due_amount_45,
sum(nvl(t.not_due_amount_46, 0)) not_due_amount_46,
sum(nvl(t.not_due_amount_47, 0)) not_due_amount_47,
sum(nvl(t.not_due_amount_48, 0)) not_due_amount_48,
sum(nvl(t.not_due_amount_48_left, 0)) not_due_amount_48_left,
sum(nvl(t.not_due_amount_year_1, 0)) not_due_amount_year_1,
sum(nvl(t.not_due_amount_year_2, 0)) not_due_amount_year_2,
sum(nvl(t.not_due_amount_year_3, 0)) not_due_amount_year_3,
sum(nvl(t.not_due_amount_year_4, 0)) not_due_amount_year_4,
sum(nvl(t.not_due_amount_year_5, 0)) not_due_amount_year_5,
sum(nvl(t.not_due_amount_year_5_left, 0)) not_due_amount_year_5_left,
t.agent_bp_id,
t.division,
t.account_id,
t.account_code
from con_cashflow_monthly_temp t
where t.session_id = ${/session/@session_id}
group by t.agent_bp_id,
t.division,
t.account_id,
t.account_code) tt,
hls_bp_master m,
gld_accounts g
where m.bp_id = tt.agent_bp_id
and g.account_id(+) = tt.account_id
union
select tt.unreceived_sum_amount,
tt.overdue_sum_amount,
tt.not_due_sum_amount,
tt.overdue_amount_1,
tt.overdue_amount_2,
tt.overdue_amount_3,
tt.overdue_amount_left,
tt.not_due_amount_1,
tt.not_due_amount_2,
tt.not_due_amount_3,
tt.not_due_amount_4,
tt.not_due_amount_5,
tt.not_due_amount_6,
tt.not_due_amount_left,
tt.not_due_amount_7,
tt.not_due_amount_8,
tt.not_due_amount_9,
tt.not_due_amount_10,
tt.not_due_amount_11,
tt.not_due_amount_12,
tt.not_due_amount_13,
tt.not_due_amount_14,
tt.not_due_amount_15,
tt.not_due_amount_16,
tt.not_due_amount_17,
tt.not_due_amount_18,
tt.not_due_amount_19,
tt.not_due_amount_20,
tt.not_due_amount_21,
tt.not_due_amount_22,
tt.not_due_amount_23,
tt.not_due_amount_24,
tt.not_due_amount_25,
tt.not_due_amount_26,
tt.not_due_amount_27,
tt.not_due_amount_28,
tt.not_due_amount_29,
tt.not_due_amount_30,
tt.not_due_amount_31,
tt.not_due_amount_32,
tt.not_due_amount_33,
tt.not_due_amount_34,
tt.not_due_amount_35,
tt.not_due_amount_36,
tt.not_due_amount_37,
tt.not_due_amount_38,
tt.not_due_amount_39,
tt.not_due_amount_40,
tt.not_due_amount_41,
tt.not_due_amount_42,
tt.not_due_amount_43,
tt.not_due_amount_44,
tt.not_due_amount_45,
tt.not_due_amount_46,
tt.not_due_amount_47,
tt.not_due_amount_48,
tt.not_due_amount_48_left,
tt.not_due_amount_year_1,
tt.not_due_amount_year_2,
tt.not_due_amount_year_3,
tt.not_due_amount_year_4,
tt.not_due_amount_year_5,
tt.not_due_amount_year_5_left,
m.bp_name bp_id_agent_level1_n,
'小计:' account_id_n,
null account_name,
tt.agent_bp_id,
tt.division,
(decode(tt.division,
'10',
'日立建机(上海)有限公司',
'20',
'永立建机(中国)有限公司',
'30',
'高空作业车厂商',
'40',
'力至优叉车')) || '/' ||
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'DIVISION'
AND v.code_value = tt.division) division_n
from (select sum(nvl(t.unreceived_sum_amount, 0)) unreceived_sum_amount,
sum(nvl(t.overdue_sum_amount, 0)) overdue_sum_amount,
sum(nvl(t.not_due_sum_amount, 0)) not_due_sum_amount,
sum(nvl(t.overdue_amount_1, 0)) overdue_amount_1,
sum(nvl(t.overdue_amount_2, 0)) overdue_amount_2,
sum(nvl(t.overdue_amount_3, 0)) overdue_amount_3,
sum(nvl(t.overdue_amount_left, 0)) overdue_amount_left,
sum(nvl(t.not_due_amount_1, 0)) not_due_amount_1,
sum(nvl(t.not_due_amount_2, 0)) not_due_amount_2,
sum(nvl(t.not_due_amount_3, 0)) not_due_amount_3,
sum(nvl(t.not_due_amount_4, 0)) not_due_amount_4,
sum(nvl(t.not_due_amount_5, 0)) not_due_amount_5,
sum(nvl(t.not_due_amount_6, 0)) not_due_amount_6,
sum(nvl(t.not_due_amount_left, 0)) not_due_amount_left,
sum(nvl(t.not_due_amount_7, 0)) not_due_amount_7,
sum(nvl(t.not_due_amount_8, 0)) not_due_amount_8,
sum(nvl(t.not_due_amount_9, 0)) not_due_amount_9,
sum(nvl(t.not_due_amount_10, 0)) not_due_amount_10,
sum(nvl(t.not_due_amount_11, 0)) not_due_amount_11,
sum(nvl(t.not_due_amount_12, 0)) not_due_amount_12,
sum(nvl(t.not_due_amount_13, 0)) not_due_amount_13,
sum(nvl(t.not_due_amount_14, 0)) not_due_amount_14,
sum(nvl(t.not_due_amount_15, 0)) not_due_amount_15,
sum(nvl(t.not_due_amount_16, 0)) not_due_amount_16,
sum(nvl(t.not_due_amount_17, 0)) not_due_amount_17,
sum(nvl(t.not_due_amount_18, 0)) not_due_amount_18,
sum(nvl(t.not_due_amount_19, 0)) not_due_amount_19,
sum(nvl(t.not_due_amount_20, 0)) not_due_amount_20,
sum(nvl(t.not_due_amount_21, 0)) not_due_amount_21,
sum(nvl(t.not_due_amount_22, 0)) not_due_amount_22,
sum(nvl(t.not_due_amount_23, 0)) not_due_amount_23,
sum(nvl(t.not_due_amount_24, 0)) not_due_amount_24,
sum(nvl(t.not_due_amount_25, 0)) not_due_amount_25,
sum(nvl(t.not_due_amount_26, 0)) not_due_amount_26,
sum(nvl(t.not_due_amount_27, 0)) not_due_amount_27,
sum(nvl(t.not_due_amount_28, 0)) not_due_amount_28,
sum(nvl(t.not_due_amount_29, 0)) not_due_amount_29,
sum(nvl(t.not_due_amount_30, 0)) not_due_amount_30,
sum(nvl(t.not_due_amount_31, 0)) not_due_amount_31,
sum(nvl(t.not_due_amount_32, 0)) not_due_amount_32,
sum(nvl(t.not_due_amount_33, 0)) not_due_amount_33,
sum(nvl(t.not_due_amount_34, 0)) not_due_amount_34,
sum(nvl(t.not_due_amount_35, 0)) not_due_amount_35,
sum(nvl(t.not_due_amount_36, 0)) not_due_amount_36,
sum(nvl(t.not_due_amount_37, 0)) not_due_amount_37,
sum(nvl(t.not_due_amount_38, 0)) not_due_amount_38,
sum(nvl(t.not_due_amount_39, 0)) not_due_amount_39,
sum(nvl(t.not_due_amount_40, 0)) not_due_amount_40,
sum(nvl(t.not_due_amount_41, 0)) not_due_amount_41,
sum(nvl(t.not_due_amount_42, 0)) not_due_amount_42,
sum(nvl(t.not_due_amount_43, 0)) not_due_amount_43,
sum(nvl(t.not_due_amount_44, 0)) not_due_amount_44,
sum(nvl(t.not_due_amount_45, 0)) not_due_amount_45,
sum(nvl(t.not_due_amount_46, 0)) not_due_amount_46,
sum(nvl(t.not_due_amount_47, 0)) not_due_amount_47,
sum(nvl(t.not_due_amount_48, 0)) not_due_amount_48,
sum(nvl(t.not_due_amount_48_left, 0)) not_due_amount_48_left,
sum(nvl(t.not_due_amount_year_1, 0)) not_due_amount_year_1,
sum(nvl(t.not_due_amount_year_2, 0)) not_due_amount_year_2,
sum(nvl(t.not_due_amount_year_3, 0)) not_due_amount_year_3,
sum(nvl(t.not_due_amount_year_4, 0)) not_due_amount_year_4,
sum(nvl(t.not_due_amount_year_5, 0)) not_due_amount_year_5,
sum(nvl(t.not_due_amount_year_5_left, 0)) not_due_amount_year_5_left,
t.agent_bp_id,
t.division
from con_cashflow_monthly_temp t
where t.session_id = ${/session/@session_id}
group by t.agent_bp_id, t.division) tt,
hls_bp_master m
where m.bp_id = tt.agent_bp_id) ttt
order by ttt.agent_bp_id,ttt.division, ttt.account_id_n
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="division_n"/>
<bm:field name="division"/>
<bm:field name="bp_id_agent_level1_n"/>
<bm:field name="account_id_n"/>
<bm:field name="account_name"/>
<bm:field name="unreceived_sum_amount"/>
<bm:field name="overdue_amount_1"/>
<bm:field name="overdue_amount_2"/>
<bm:field name="overdue_amount_3"/>
<bm:field name="overdue_amount_left"/>
<bm:field name="overdue_sum_amount"/>
<bm:field name="not_due_sum_amount"/>
<bm:field name="not_due_amount_1"/>
<bm:field name="not_due_amount_2"/>
<bm:field name="not_due_amount_3"/>
<bm:field name="not_due_amount_4"/>
<bm:field name="not_due_amount_5"/>
<bm:field name="not_due_amount_6"/>
<bm:field name="not_due_amount_left"/>
<bm:field name="not_due_amount_7"/>
<bm:field name="not_due_amount_8"/>
<bm:field name="not_due_amount_9"/>
<bm:field name="not_due_amount_10"/>
<bm:field name="not_due_amount_11"/>
<bm:field name="not_due_amount_12"/>
<bm:field name="not_due_amount_13"/>
<bm:field name="not_due_amount_14"/>
<bm:field name="not_due_amount_15"/>
<bm:field name="not_due_amount_16"/>
<bm:field name="not_due_amount_17"/>
<bm:field name="not_due_amount_18"/>
<bm:field name="not_due_amount_19"/>
<bm:field name="not_due_amount_20"/>
<bm:field name="not_due_amount_21"/>
<bm:field name="not_due_amount_22"/>
<bm:field name="not_due_amount_23"/>
<bm:field name="not_due_amount_24"/>
<bm:field name="not_due_amount_25"/>
<bm:field name="not_due_amount_26"/>
<bm:field name="not_due_amount_27"/>
<bm:field name="not_due_amount_28"/>
<bm:field name="not_due_amount_29"/>
<bm:field name="not_due_amount_30"/>
<bm:field name="not_due_amount_31"/>
<bm:field name="not_due_amount_32"/>
<bm:field name="not_due_amount_33"/>
<bm:field name="not_due_amount_34"/>
<bm:field name="not_due_amount_35"/>
<bm:field name="not_due_amount_36"/>
<bm:field name="not_due_amount_37"/>
<bm:field name="not_due_amount_38"/>
<bm:field name="not_due_amount_39"/>
<bm:field name="not_due_amount_40"/>
<bm:field name="not_due_amount_41"/>
<bm:field name="not_due_amount_42"/>
<bm:field name="not_due_amount_43"/>
<bm:field name="not_due_amount_44"/>
<bm:field name="not_due_amount_45"/>
<bm:field name="not_due_amount_46"/>
<bm:field name="not_due_amount_47"/>
<bm:field name="not_due_amount_48"/>
<bm:field name="not_due_amount_48_left"/>
<bm:field name="not_due_amount_year_1"/>
<bm:field name="not_due_amount_year_2"/>
<bm:field name="not_due_amount_year_3"/>
<bm:field name="not_due_amount_year_4"/>
<bm:field name="not_due_amount_year_5"/>
<bm:field name="not_due_amount_year_5_left"/>
</bm:fields>
<!-- <bm:query-fields>-->
<!-- <bm:query-field field="bp_id_tenant_n" queryExpression="t1.bp_id_tenant_n = ${@bp_id_tenant_n}"/>-->
<!-- <bm:query-field field="account_name" queryExpression="t1.account_name = ${@account_name}"/>-->
<!-- <bm:query-field field="account_id_n" queryExpression="t1.account_id_n = ${@account_id_n}"/>-->
<!-- </bm:query-fields>-->
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: WangYu
$Date: 2014-4-25 上午09:30:21
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select *
from (select tt.unreceived_sum_amount,
tt.overdue_sum_amount,
tt.not_due_sum_amount,
tt.overdue_amount_1,
tt.overdue_amount_2,
tt.overdue_amount_3,
tt.overdue_amount_left,
tt.not_due_amount_1,
tt.not_due_amount_2,
tt.not_due_amount_3,
tt.not_due_amount_4,
tt.not_due_amount_5,
tt.not_due_amount_6,
tt.not_due_amount_left,
tt.not_due_amount_7,
tt.not_due_amount_8,
tt.not_due_amount_9,
tt.not_due_amount_10,
tt.not_due_amount_11,
tt.not_due_amount_12,
tt.not_due_amount_13,
tt.not_due_amount_14,
tt.not_due_amount_15,
tt.not_due_amount_16,
tt.not_due_amount_17,
tt.not_due_amount_18,
tt.not_due_amount_19,
tt.not_due_amount_20,
tt.not_due_amount_21,
tt.not_due_amount_22,
tt.not_due_amount_23,
tt.not_due_amount_24,
tt.not_due_amount_25,
tt.not_due_amount_26,
tt.not_due_amount_27,
tt.not_due_amount_28,
tt.not_due_amount_29,
tt.not_due_amount_30,
tt.not_due_amount_31,
tt.not_due_amount_32,
tt.not_due_amount_33,
tt.not_due_amount_34,
tt.not_due_amount_35,
tt.not_due_amount_36,
tt.not_due_amount_37,
tt.not_due_amount_38,
tt.not_due_amount_39,
tt.not_due_amount_40,
tt.not_due_amount_41,
tt.not_due_amount_42,
tt.not_due_amount_43,
tt.not_due_amount_44,
tt.not_due_amount_45,
tt.not_due_amount_46,
tt.not_due_amount_47,
tt.not_due_amount_48,
tt.not_due_amount_48_left,
tt.not_due_amount_year_1,
tt.not_due_amount_year_2,
tt.not_due_amount_year_3,
tt.not_due_amount_year_4,
tt.not_due_amount_year_5,
tt.not_due_amount_year_5_left,
tt.account_code account_id_n,
(select description_text
from fnd_descriptions
where description_id = g.description_id
and language = 'ZHS') account_name,
tt.division,
(decode(tt.division,
'10',
'日立建机(上海)有限公司',
'20',
'永立建机(中国)有限公司',
'30',
'高空作业车厂商',
'40',
'力至优叉车')) || '/' ||
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'DIVISION'
AND v.code_value = tt.division) division_n
from (select sum(nvl(t.unreceived_sum_amount, 0)) unreceived_sum_amount,
sum(nvl(t.overdue_sum_amount, 0)) overdue_sum_amount,
sum(nvl(t.not_due_sum_amount, 0)) not_due_sum_amount,
sum(nvl(t.overdue_amount_1, 0)) overdue_amount_1,
sum(nvl(t.overdue_amount_2, 0)) overdue_amount_2,
sum(nvl(t.overdue_amount_3, 0)) overdue_amount_3,
sum(nvl(t.overdue_amount_left, 0)) overdue_amount_left,
sum(nvl(t.not_due_amount_1, 0)) not_due_amount_1,
sum(nvl(t.not_due_amount_2, 0)) not_due_amount_2,
sum(nvl(t.not_due_amount_3, 0)) not_due_amount_3,
sum(nvl(t.not_due_amount_4, 0)) not_due_amount_4,
sum(nvl(t.not_due_amount_5, 0)) not_due_amount_5,
sum(nvl(t.not_due_amount_6, 0)) not_due_amount_6,
sum(nvl(t.not_due_amount_left, 0)) not_due_amount_left,
sum(nvl(t.not_due_amount_7, 0)) not_due_amount_7,
sum(nvl(t.not_due_amount_8, 0)) not_due_amount_8,
sum(nvl(t.not_due_amount_9, 0)) not_due_amount_9,
sum(nvl(t.not_due_amount_10, 0)) not_due_amount_10,
sum(nvl(t.not_due_amount_11, 0)) not_due_amount_11,
sum(nvl(t.not_due_amount_12, 0)) not_due_amount_12,
sum(nvl(t.not_due_amount_13, 0)) not_due_amount_13,
sum(nvl(t.not_due_amount_14, 0)) not_due_amount_14,
sum(nvl(t.not_due_amount_15, 0)) not_due_amount_15,
sum(nvl(t.not_due_amount_16, 0)) not_due_amount_16,
sum(nvl(t.not_due_amount_17, 0)) not_due_amount_17,
sum(nvl(t.not_due_amount_18, 0)) not_due_amount_18,
sum(nvl(t.not_due_amount_19, 0)) not_due_amount_19,
sum(nvl(t.not_due_amount_20, 0)) not_due_amount_20,
sum(nvl(t.not_due_amount_21, 0)) not_due_amount_21,
sum(nvl(t.not_due_amount_22, 0)) not_due_amount_22,
sum(nvl(t.not_due_amount_23, 0)) not_due_amount_23,
sum(nvl(t.not_due_amount_24, 0)) not_due_amount_24,
sum(nvl(t.not_due_amount_25, 0)) not_due_amount_25,
sum(nvl(t.not_due_amount_26, 0)) not_due_amount_26,
sum(nvl(t.not_due_amount_27, 0)) not_due_amount_27,
sum(nvl(t.not_due_amount_28, 0)) not_due_amount_28,
sum(nvl(t.not_due_amount_29, 0)) not_due_amount_29,
sum(nvl(t.not_due_amount_30, 0)) not_due_amount_30,
sum(nvl(t.not_due_amount_31, 0)) not_due_amount_31,
sum(nvl(t.not_due_amount_32, 0)) not_due_amount_32,
sum(nvl(t.not_due_amount_33, 0)) not_due_amount_33,
sum(nvl(t.not_due_amount_34, 0)) not_due_amount_34,
sum(nvl(t.not_due_amount_35, 0)) not_due_amount_35,
sum(nvl(t.not_due_amount_36, 0)) not_due_amount_36,
sum(nvl(t.not_due_amount_37, 0)) not_due_amount_37,
sum(nvl(t.not_due_amount_38, 0)) not_due_amount_38,
sum(nvl(t.not_due_amount_39, 0)) not_due_amount_39,
sum(nvl(t.not_due_amount_40, 0)) not_due_amount_40,
sum(nvl(t.not_due_amount_41, 0)) not_due_amount_41,
sum(nvl(t.not_due_amount_42, 0)) not_due_amount_42,
sum(nvl(t.not_due_amount_43, 0)) not_due_amount_43,
sum(nvl(t.not_due_amount_44, 0)) not_due_amount_44,
sum(nvl(t.not_due_amount_45, 0)) not_due_amount_45,
sum(nvl(t.not_due_amount_46, 0)) not_due_amount_46,
sum(nvl(t.not_due_amount_47, 0)) not_due_amount_47,
sum(nvl(t.not_due_amount_48, 0)) not_due_amount_48,
sum(nvl(t.not_due_amount_48_left, 0)) not_due_amount_48_left,
sum(nvl(t.not_due_amount_year_1, 0)) not_due_amount_year_1,
sum(nvl(t.not_due_amount_year_2, 0)) not_due_amount_year_2,
sum(nvl(t.not_due_amount_year_3, 0)) not_due_amount_year_3,
sum(nvl(t.not_due_amount_year_4, 0)) not_due_amount_year_4,
sum(nvl(t.not_due_amount_year_5, 0)) not_due_amount_year_5,
sum(nvl(t.not_due_amount_year_5_left, 0)) not_due_amount_year_5_left,
t.division,
t.account_id,
t.account_code
from con_cashflow_monthly_temp t
where t.session_id = ${/session/@session_id}
group by t.division, t.account_id, t.account_code) tt,
gld_accounts g
where g.account_id(+) = tt.account_id
union
select tt.unreceived_sum_amount,
tt.overdue_sum_amount,
tt.not_due_sum_amount,
tt.overdue_amount_1,
tt.overdue_amount_2,
tt.overdue_amount_3,
tt.overdue_amount_left,
tt.not_due_amount_1,
tt.not_due_amount_2,
tt.not_due_amount_3,
tt.not_due_amount_4,
tt.not_due_amount_5,
tt.not_due_amount_6,
tt.not_due_amount_left,
tt.not_due_amount_7,
tt.not_due_amount_8,
tt.not_due_amount_9,
tt.not_due_amount_10,
tt.not_due_amount_11,
tt.not_due_amount_12,
tt.not_due_amount_13,
tt.not_due_amount_14,
tt.not_due_amount_15,
tt.not_due_amount_16,
tt.not_due_amount_17,
tt.not_due_amount_18,
tt.not_due_amount_19,
tt.not_due_amount_20,
tt.not_due_amount_21,
tt.not_due_amount_22,
tt.not_due_amount_23,
tt.not_due_amount_24,
tt.not_due_amount_25,
tt.not_due_amount_26,
tt.not_due_amount_27,
tt.not_due_amount_28,
tt.not_due_amount_29,
tt.not_due_amount_30,
tt.not_due_amount_31,
tt.not_due_amount_32,
tt.not_due_amount_33,
tt.not_due_amount_34,
tt.not_due_amount_35,
tt.not_due_amount_36,
tt.not_due_amount_37,
tt.not_due_amount_38,
tt.not_due_amount_39,
tt.not_due_amount_40,
tt.not_due_amount_41,
tt.not_due_amount_42,
tt.not_due_amount_43,
tt.not_due_amount_44,
tt.not_due_amount_45,
tt.not_due_amount_46,
tt.not_due_amount_47,
tt.not_due_amount_48,
tt.not_due_amount_48_left,
tt.not_due_amount_year_1,
tt.not_due_amount_year_2,
tt.not_due_amount_year_3,
tt.not_due_amount_year_4,
tt.not_due_amount_year_5,
tt.not_due_amount_year_5_left,
'小计:' account_id_n,
null account_name,
tt.division,
(decode(tt.division,
'10',
'日立建机(上海)有限公司',
'20',
'永立建机(中国)有限公司',
'30',
'高空作业车厂商',
'40',
'力至优叉车')) || '/' ||
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'DIVISION'
AND v.code_value = tt.division) division_n
from (select sum(nvl(t.unreceived_sum_amount, 0)) unreceived_sum_amount,
sum(nvl(t.overdue_sum_amount, 0)) overdue_sum_amount,
sum(nvl(t.not_due_sum_amount, 0)) not_due_sum_amount,
sum(nvl(t.overdue_amount_1, 0)) overdue_amount_1,
sum(nvl(t.overdue_amount_2, 0)) overdue_amount_2,
sum(nvl(t.overdue_amount_3, 0)) overdue_amount_3,
sum(nvl(t.overdue_amount_left, 0)) overdue_amount_left,
sum(nvl(t.not_due_amount_1, 0)) not_due_amount_1,
sum(nvl(t.not_due_amount_2, 0)) not_due_amount_2,
sum(nvl(t.not_due_amount_3, 0)) not_due_amount_3,
sum(nvl(t.not_due_amount_4, 0)) not_due_amount_4,
sum(nvl(t.not_due_amount_5, 0)) not_due_amount_5,
sum(nvl(t.not_due_amount_6, 0)) not_due_amount_6,
sum(nvl(t.not_due_amount_left, 0)) not_due_amount_left,
sum(nvl(t.not_due_amount_7, 0)) not_due_amount_7,
sum(nvl(t.not_due_amount_8, 0)) not_due_amount_8,
sum(nvl(t.not_due_amount_9, 0)) not_due_amount_9,
sum(nvl(t.not_due_amount_10, 0)) not_due_amount_10,
sum(nvl(t.not_due_amount_11, 0)) not_due_amount_11,
sum(nvl(t.not_due_amount_12, 0)) not_due_amount_12,
sum(nvl(t.not_due_amount_13, 0)) not_due_amount_13,
sum(nvl(t.not_due_amount_14, 0)) not_due_amount_14,
sum(nvl(t.not_due_amount_15, 0)) not_due_amount_15,
sum(nvl(t.not_due_amount_16, 0)) not_due_amount_16,
sum(nvl(t.not_due_amount_17, 0)) not_due_amount_17,
sum(nvl(t.not_due_amount_18, 0)) not_due_amount_18,
sum(nvl(t.not_due_amount_19, 0)) not_due_amount_19,
sum(nvl(t.not_due_amount_20, 0)) not_due_amount_20,
sum(nvl(t.not_due_amount_21, 0)) not_due_amount_21,
sum(nvl(t.not_due_amount_22, 0)) not_due_amount_22,
sum(nvl(t.not_due_amount_23, 0)) not_due_amount_23,
sum(nvl(t.not_due_amount_24, 0)) not_due_amount_24,
sum(nvl(t.not_due_amount_25, 0)) not_due_amount_25,
sum(nvl(t.not_due_amount_26, 0)) not_due_amount_26,
sum(nvl(t.not_due_amount_27, 0)) not_due_amount_27,
sum(nvl(t.not_due_amount_28, 0)) not_due_amount_28,
sum(nvl(t.not_due_amount_29, 0)) not_due_amount_29,
sum(nvl(t.not_due_amount_30, 0)) not_due_amount_30,
sum(nvl(t.not_due_amount_31, 0)) not_due_amount_31,
sum(nvl(t.not_due_amount_32, 0)) not_due_amount_32,
sum(nvl(t.not_due_amount_33, 0)) not_due_amount_33,
sum(nvl(t.not_due_amount_34, 0)) not_due_amount_34,
sum(nvl(t.not_due_amount_35, 0)) not_due_amount_35,
sum(nvl(t.not_due_amount_36, 0)) not_due_amount_36,
sum(nvl(t.not_due_amount_37, 0)) not_due_amount_37,
sum(nvl(t.not_due_amount_38, 0)) not_due_amount_38,
sum(nvl(t.not_due_amount_39, 0)) not_due_amount_39,
sum(nvl(t.not_due_amount_40, 0)) not_due_amount_40,
sum(nvl(t.not_due_amount_41, 0)) not_due_amount_41,
sum(nvl(t.not_due_amount_42, 0)) not_due_amount_42,
sum(nvl(t.not_due_amount_43, 0)) not_due_amount_43,
sum(nvl(t.not_due_amount_44, 0)) not_due_amount_44,
sum(nvl(t.not_due_amount_45, 0)) not_due_amount_45,
sum(nvl(t.not_due_amount_46, 0)) not_due_amount_46,
sum(nvl(t.not_due_amount_47, 0)) not_due_amount_47,
sum(nvl(t.not_due_amount_48, 0)) not_due_amount_48,
sum(nvl(t.not_due_amount_48_left, 0)) not_due_amount_48_left,
sum(nvl(t.not_due_amount_year_1, 0)) not_due_amount_year_1,
sum(nvl(t.not_due_amount_year_2, 0)) not_due_amount_year_2,
sum(nvl(t.not_due_amount_year_3, 0)) not_due_amount_year_3,
sum(nvl(t.not_due_amount_year_4, 0)) not_due_amount_year_4,
sum(nvl(t.not_due_amount_year_5, 0)) not_due_amount_year_5,
sum(nvl(t.not_due_amount_year_5_left, 0)) not_due_amount_year_5_left,
t.division
from con_cashflow_monthly_temp t
where t.session_id = ${/session/@session_id}
group by t.division) tt) ttt
order by ttt.division, ttt.account_id_n
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
con_cashflow_monthly_pkg.insert_con_cash_temp(
p_session_id =>${/session/@session_id},
p_due_date =>to_date(${@due_date},'yyyy-mm-dd'),
p_user_id =>${/session/@user_id},
p_bp_id =>${@bp_id},
p_overday1 =>${@overday1},
p_overday2 =>${@overday2},
p_overday3 =>${@overday3},
p_not_overday1 =>${@not_overday1},
p_not_overday2 =>${@not_overday2},
p_not_overday3 =>${@not_overday3},
p_not_overday4 =>${@not_overday4},
p_not_overday5 =>${@not_overday5},
p_not_overday6 =>${@not_overday6});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="division_n"/>
<bm:field name="account_id_n"/>
<bm:field name="account_name"/>
<bm:field name="unreceived_sum_amount"/>
<bm:field name="overdue_amount_1"/>
<bm:field name="overdue_amount_2"/>
<bm:field name="overdue_amount_3"/>
<bm:field name="overdue_amount_left"/>
<bm:field name="overdue_sum_amount"/>
<bm:field name="not_due_sum_amount"/>
<bm:field name="not_due_amount_1"/>
<bm:field name="not_due_amount_2"/>
<bm:field name="not_due_amount_3"/>
<bm:field name="not_due_amount_4"/>
<bm:field name="not_due_amount_5"/>
<bm:field name="not_due_amount_6"/>
<bm:field name="not_due_amount_left"/>
<bm:field name="not_due_amount_7"/>
<bm:field name="not_due_amount_8"/>
<bm:field name="not_due_amount_9"/>
<bm:field name="not_due_amount_10"/>
<bm:field name="not_due_amount_11"/>
<bm:field name="not_due_amount_12"/>
<bm:field name="not_due_amount_13"/>
<bm:field name="not_due_amount_14"/>
<bm:field name="not_due_amount_15"/>
<bm:field name="not_due_amount_16"/>
<bm:field name="not_due_amount_17"/>
<bm:field name="not_due_amount_18"/>
<bm:field name="not_due_amount_19"/>
<bm:field name="not_due_amount_20"/>
<bm:field name="not_due_amount_21"/>
<bm:field name="not_due_amount_22"/>
<bm:field name="not_due_amount_23"/>
<bm:field name="not_due_amount_24"/>
<bm:field name="not_due_amount_25"/>
<bm:field name="not_due_amount_26"/>
<bm:field name="not_due_amount_27"/>
<bm:field name="not_due_amount_28"/>
<bm:field name="not_due_amount_29"/>
<bm:field name="not_due_amount_30"/>
<bm:field name="not_due_amount_31"/>
<bm:field name="not_due_amount_32"/>
<bm:field name="not_due_amount_33"/>
<bm:field name="not_due_amount_34"/>
<bm:field name="not_due_amount_35"/>
<bm:field name="not_due_amount_36"/>
<bm:field name="not_due_amount_37"/>
<bm:field name="not_due_amount_38"/>
<bm:field name="not_due_amount_39"/>
<bm:field name="not_due_amount_40"/>
<bm:field name="not_due_amount_41"/>
<bm:field name="not_due_amount_42"/>
<bm:field name="not_due_amount_43"/>
<bm:field name="not_due_amount_44"/>
<bm:field name="not_due_amount_45"/>
<bm:field name="not_due_amount_46"/>
<bm:field name="not_due_amount_47"/>
<bm:field name="not_due_amount_48"/>
<bm:field name="not_due_amount_48_left"/>
<bm:field name="not_due_amount_year_1"/>
<bm:field name="not_due_amount_year_2"/>
<bm:field name="not_due_amount_year_3"/>
<bm:field name="not_due_amount_year_4"/>
<bm:field name="not_due_amount_year_5"/>
<bm:field name="not_due_amount_year_5_left"/>
</bm:fields>
<!-- <bm:query-fields>-->
<!-- <bm:query-field field="bp_id_tenant_n" queryExpression="t1.bp_id_tenant_n = ${@bp_id_tenant_n}"/>-->
<!-- <bm:query-field field="account_name" queryExpression="t1.account_name = ${@account_name}"/>-->
<!-- <bm:query-field field="account_id_n" queryExpression="t1.account_id_n = ${@account_id_n}"/>-->
<!-- </bm:query-fields>-->
</bm:model>
......@@ -180,7 +180,7 @@
<bm:query-field name="lease_execution_date_from" queryexpression="to_char(t1.lease_execution_date,'YYYY-MM-DD') &gt;= ${@lease_execution_date_from}"/>
<bm:query-field name="lease_execution_date_to" queryexpression="to_char(t1.lease_execution_date,'YYYY-MM-DD') &lt;= ${@lease_execution_date_to}"/>
</bm:query-fields>
<!-- <bm:features>-->
<bm:features>
<!-- EXISTS-->
<!-- (SELECT-->
<!-- 1-->
......@@ -191,10 +191,10 @@
<!-- u.user_id =${/session/@user_id}-->
<!-- ) AND-->
<!-- AND t.owner_user_id = ${/session/@user_id}-->
<!-- <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>-->
<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:model>
......@@ -197,7 +197,7 @@
<bm:query-field name="req_employee_n" datatype="java.lang.String" queryexpression="t1.req_employee_n like &apos;%&apos; || ${@req_employee_n} || &apos;%&apos;"/>
<bm:query-field name="req_status" queryExpression="t1.req_status = ${@req_status}"/>
</bm:query-fields>
<!-- <bm:features>-->
<bm:features>
<!-- EXISTS-->
<!-- (SELECT-->
<!-- 1-->
......@@ -208,10 +208,10 @@
<!-- u.user_id =${/session/@user_id}-->
<!-- ) AND-->
<!-- AND t.owner_user_id = ${/session/@user_id}-->
<!-- <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>-->
<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:model>
......@@ -64,22 +64,25 @@
from con_contract_cashflow ccc,con_contract t,con_contract_lease_item ccli
WHERE ccc.contract_id=t.contract_id
AND ccli.contract_id(+)=t.contract_id
AND ccc.cf_item IN (1,8,200)
AND ((t.contract_status ='INCEPT'
AND ((TRUNC(ccc.due_date)<=TRUNC(to_date(${@before_end},'yyyy-mm-dd'))
AND ccc.due_amount > NVL((SELECT SUM(cwo.write_off_due_amount) FROM csh_transaction t,csh_write_off cwo
WHERE cwo.cashflow_id=ccc.cashflow_id
AND t.transaction_id=cwo.csh_transaction_id
AND NVL(cwo.reversed_flag,'N')='N'
AND TRUNC(T.transaction_date) <=TRUNC(to_date(${@before_end},'yyyy-mm-dd'))),0)
)
OR(
TRUNC(ccc.due_date)<=TRUNC(to_date(${@cur_end},'yyyy-mm-dd')) AND TRUNC(ccc.due_date) > TRUNC(to_date(${@before_end},'yyyy-mm-dd'))
))) or( t.contract_status ='TERMINATE' and exists (select 1 from csh_transaction t,csh_write_off cwo WHERE cwo.cashflow_id=ccc.cashflow_id
AND t.transaction_id=cwo.csh_transaction_id
AND NVL(cwo.reversed_flag,'N')='N'
and TRUNC(T.transaction_date) > TRUNC(to_date(${@before_end},'yyyy-mm-dd')))))
AND ccc.cf_item IN (1, 8, 200, 250)
AND ccc.cf_status = 'RELEASE'
AND t.data_class = 'NORMAL'
AND trunc(ccc.due_date) <=
trunc(to_date(${@cur_end}, 'yyyy-mm-dd'))
AND ((trunc(t.lease_start_date) <=
trunc(to_date(${@cur_end}, 'yyyy-mm-dd')) AND
t.contract_status = 'INCEPT') OR
( trunc(t.et_date) >= trunc(to_date(${@cur_begin}, 'yyyy-mm-dd')) AND
t.contract_status = 'TERMINATE'))
AND ccc.due_amount >
nvl((SELECT SUM(cwo.write_off_due_amount)
FROM csh_transaction t, csh_write_off cwo
WHERE cwo.cashflow_id = ccc.cashflow_id
AND t.transaction_id = cwo.csh_transaction_id
AND nvl(cwo.reversed_flag, 'N') = 'N'
AND trunc(t.transaction_date) <
trunc(to_date(${@cur_begin}, 'yyyy-mm-dd'))),
0)
order by t.contract_id
) v
......
......@@ -139,6 +139,7 @@
to_char(ct.et_date, 'yyyy-mm-dd') terminate_date
from con_contract ct
where ct.contract_status not in ('CANCEL')
and ct.data_class='NORMAL'
order by ct.bp_id_agent_level1
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-9-27 上午11:03:38
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
BEGIN
sys_user_pkg.change_avatar_by_owner(p_avatar_id => ${@avatar_id},
p_user_id => ${/session/@user_id},
p_new_avatar => ${@avatar});
END;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="avatar_id" dataType="java.lang.Long" output="true" outputPath="@avatar_id"/>
</bm:parameters>
</bm:operation>
<bm:operation name="query">
<bm:update-sql><![CDATA[
SELECT avatar
FROM sys_user_avatar
WHERE user_id = ${/session/@user_id}
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="avatar"/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -13,6 +13,7 @@
<ns1:field name="password_lifespan_days" databaseType="BIGINT" datatype="java.lang.Long"/>
<ns1:field name="password_lifespan_access" databaseType="BIGINT" datatype="java.lang.Long"/>
<ns1:field name="employee_id" databaseType="BIGINT" datatype="java.lang.Long"/>
<ns1:field name="avatar" expression="(select avatar from sys_user_avatar where user_id = fc.user_id and rownum=1)" forInsert="false" forUpdate="false" />
<ns1:field name="frozen_flag" databaseType="VARCHAR" datatype="java.lang.String" prompt="SYS_USER.FROZEN_FLAG"/>
<ns1:field name="frozen_flag_display" databaseType="VARCHAR" datatype="java.lang.String" expression="decode(fc.frozen_flag,&apos;Y&apos;,&apos;已冻结&apos;,&apos;N&apos;,&apos;未冻结&apos;)" forInsert="false" forUpdate="false" prompt="SYS_USER.IS_FROZEN"/>
<ns1:field name="frozen_date" databaseType="DATE" datatype="java.sql.Date" forInsert="true" forUpdate="true" prompt="SYS_USER.FROZEN_DATE"/>
......
......@@ -41,8 +41,6 @@
$session.subject = 'HAP';
}
$ctx.parameter.global_tab_flag='Y';
]]>
</s:server-script>
</a:init-procedure>
......@@ -61,16 +59,11 @@
<a:link id="theme_select_link" url="${/request/@context_path}/theme_select.lview"/>
<a:link id="gloabl_tab_iframe_link" url="${/request/@context_path}/global_tab_iframe.lview"/>
<a:link id="fast_btn_config" url="${/request/@context_path}/fast_btn_config.lview"/>
<a:link id="login_timeout_id" url="${/request/@context_path}/login_timeout.lview"/>
<a:link id="my_profile_config" url="${/request/@context_path}/sys_user_config.lview"/>
<a:link id="bmLink_sys_function_v_query" model="home.sys_function_group_item_vl" modelaction="query"/>
<a:link id="bmLink_sys_page_menu_query" model="home.sys_page_menu" modelaction="query"/>
<a:link id="bmLink_sys_function_query" model="sys.SYS860.sys_function" modelaction="query"/>
<a:link id="bmLink_sys_notice_msg" model="sys.SYS100.sys_notice_msg" modelaction="query"/>
<a:link id="bmLink_wfl_instance_node" model="zjwfl.ZJWFL5110.sdic_wfl_instance_node_recipient"
modelaction="query"/>
......@@ -105,6 +98,7 @@
type="text/javascript"></script>
<a:link id="BmLink_sys_user_query" model="sys.sys_employees" modelaction="query"/>
<a:link id="BmLink_sys_user_update" model="sys.sys_employees" modelaction="update"/>
<a:link id="img_upload_link" url="${/request/@context_path}/uploadImg.lview"/>
<style type="text/css">
.custTree .clip-minusTop, .custTree .clip-minusBottom, .custTree .clip-minus {
......@@ -1065,6 +1059,39 @@
}
function showImgWin() {
var img_upload_window = new Leaf.Window({
id: 'img_upload_window',
url: $('img_upload_link').getUrl(),
title: '上传头像',
closeable: true,
draggable: true,
params: {
user_id:${/session/@user_id},
win_id: 'img_upload_window'
},
height: 468,
width: 650
});
img_upload_window.on('close', function () {
Leaf.Masker.mask(document.getElementById("user-info"), '正在加载');
Leaf.request({
url: "${/request/@context_path}/autocrud/sys.sys_user/query",
para: {
user_id: '${/session/@user_id}'
},
scope: this,
success: function (res) {
if (res.success) {
Leaf.Masker.unmask(document.getElementById("user-info"));
var userImg = res.result.record.avatar;
if (!!userImg) jQuery('.user-avatar').attr('src', userImg);
}
}
})
});
}
function saveInfo() {
var infoContent = $jq(top.document.getElementById("info-content-id"));
var passwordContent = $jq(top.document.getElementById("password-content-id"));
......@@ -1424,8 +1451,26 @@
userDs.forEach(function (value) {
value.data.userId == ${/session/@user_id} ? userName = value.data.user_name : userName = '';
});
setUserName();
}
function setUserName() {
Leaf.request({
url: "${/request/@context_path}/autocrud/sys.sys_user/query?user_id=${/session/@user_id}",
para: {},
scope: this,
success: function (res) {
var userName;
if (res.success) {
var userImg = res.result.record.avatar;
userName = res.result.record.description;
document.getElementById('userName').innerHTML = userName;
if (!!userImg) jQuery('.user-avatar').attr('src', userImg);
document.getElementById('row-user-name-id').innerHTML = userName;
}
}
})
}
/**
* 显示个人信息
* */
......@@ -1985,7 +2030,8 @@
</div>
<div class="row-user-info">
<div class="row-user-name" id="row-user-name-id">hand</div>
<!--<div class="row-user-button">编辑图片</div>-->
<!-- <div class="row-user-button">编辑图片</div>-->
<div class="row-user-button" onclick="showImgWin()">更改头像</div>
<!--登录信息-->
<div class="add-name">登录ip:${/model/login_info/record/@ip}</div>
<div class="add-name">登录时间:${/model/login_info/record/@login_time}</div>
......
......@@ -14,7 +14,7 @@
var headers_ds = $('con_contract_cashflow_monthly_query_ds');
var record = headers_ds.getAt(0);
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
Leaf.Masker.mask(Ext.getBody(), '正在统计并查询,请稍等...');
Leaf.request({
url: $('con_cashflow_pre_query_id').getUrl(),
para: {
......@@ -33,6 +33,8 @@
success: function(res) {
Leaf.Masker.unmask (Ext.getBody());
$('con_contract_cashflow_monthly_result_ds').query();
$('con_contract_cashflow_monthly_agent_result_ds').query();
$('con_contract_cashflow_monthly_result_lease_item_ds').query();
},
failure: function() {
......@@ -75,6 +77,8 @@
</a:fields>
</a:dataSet>
<a:dataSet id="con_contract_cashflow_monthly_result_ds" model="cont.CON930.con_contract_cashflow_monthly" autoPageSize="true" queryDataSet="con_contract_cashflow_monthly_query_ds"/>
<a:dataSet id="con_contract_cashflow_monthly_agent_result_ds" model="cont.CON930.con_contract_cashflow_monthly_agent" autoPageSize="true" queryDataSet="con_contract_cashflow_monthly_query_ds"/>
<a:dataSet id="con_contract_cashflow_monthly_result_lease_item_ds" model="cont.CON930.con_contract_cashflow_monthly_lease_item" autoPageSize="true" queryDataSet="con_contract_cashflow_monthly_query_ds"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
......@@ -83,7 +87,7 @@
</a:screenTopToolbar>
<a:form bindTarget="con_contract_cashflow_balance_query_ds" column="4" title="收付款预定查询" marginWidth="40">
<a:datePicker name="due_date" bindTarget="con_contract_cashflow_monthly_query_ds"/>
<a:lov name="bp_id_agent_level1_n" bindTarget="con_contract_cashflow_monthly_query_ds"/>
<!-- <a:lov name="bp_id_agent_level1_n" bindTarget="con_contract_cashflow_monthly_query_ds"/>-->
<!-- <a:numberField name="overdue_day1" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="overdue_day2" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="overdue_day3" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
......@@ -96,16 +100,170 @@
<!-- <a:comboBox name="account_name" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="科目"/>-->
</a:form>
<a:tabPanel marginHeight="115" marginWidth="40">
<a:tabs>
<a:tab prompt="合同维度" width="120">
<a:grid id="con_contract_cashflow_monthly_result_grid" bindTarget="con_contract_cashflow_monthly_result_ds" marginHeight="150" navBar="true" marginWidth="40">
<a:toolBar>
<a:button type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="division_n" align="center" prompt="租赁物" width="120"/>
<a:column name="bp_id_agent_level1_n" align="center" prompt="代理店" width="120"/>
<a:column name="division_n" align="center" prompt="租赁物" width="220"/>
<a:column name="bp_id_agent_level1_n" align="center" prompt="代理店" width="200"/>
<a:column name="contract_number" align="center" prompt="合同号" width="120"/>
<a:column name="bp_code" align="center" prompt="业务伙伴号" width="100"/>
<a:column name="account_id_n" align="center" prompt="科目代码" width="80"/>
<a:column name="account_id_n" align="center" prompt="科目代码" width="120"/>
<a:column name="account_name" align="center" prompt="科目名称" width="180"/>
<a:column name="unreceived_sum_amount" align="center" prompt="总额" renderer="Leaf.formatMoney" width="100"/>
<a:column name="overdue_amount_1" align="center" prompt="已到期1个月" renderer="Leaf.formatMoney" width="100"/>
<a:column name="overdue_amount_2" align="center" prompt="已到期2个月" renderer="Leaf.formatMoney" width="100"/>
<a:column name="overdue_amount_3" align="center" prompt="已到期3个月" renderer="Leaf.formatMoney" width="100"/>
<a:column name="overdue_amount_left" align="center" prompt="已到期3个月以上" renderer="Leaf.formatMoney" width="100"/>
<a:column name="overdue_sum_amount" align="center" prompt="已到期余额合计" renderer="Leaf.formatMoney" width="100"/>
<a:column name="not_due_sum_amount" align="center" prompt="未到期余额" renderer="Leaf.formatMoney" width="100"/>
<a:column name="not_due_amount_1" align="center" prompt="未到期1个月" renderer="Leaf.formatMoney" width="100"/>
<a:column name="not_due_amount_2" align="center" prompt="未到期2个月" renderer="Leaf.formatMoney" width="100"/>
<a:column name="not_due_amount_3" align="center" prompt="未到期3个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_4" align="center" prompt="未到期4个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_5" align="center" prompt="未到期5个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_6" align="center" prompt="未到期6个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_left" align="center" prompt="未到期6个月以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_7" align="center" prompt="未到期7个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_8" align="center" prompt="未到期8个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_9" align="center" prompt="未到期9个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_10" align="center" prompt="未到期10个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_11" align="center" prompt="未到期11个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_12" align="center" prompt="未到期12个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_13" align="center" prompt="未到期13个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_14" align="center" prompt="未到期14个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_15" align="center" prompt="未到期15个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_16" align="center" prompt="未到期16个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_17" align="center" prompt="未到期17个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_18" align="center" prompt="未到期18个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_19" align="center" prompt="未到期19个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_20" align="center" prompt="未到期20个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_21" align="center" prompt="未到期21个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_22" align="center" prompt="未到期22个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_23" align="center" prompt="未到期23个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_24" align="center" prompt="未到期24个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_25" align="center" prompt="未到期25个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_26" align="center" prompt="未到期26个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_27" align="center" prompt="未到期27个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_28" align="center" prompt="未到期28个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_29" align="center" prompt="未到期29个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_30" align="center" prompt="未到期30个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_31" align="center" prompt="未到期31个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_32" align="center" prompt="未到期32个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_33" align="center" prompt="未到期33个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_34" align="center" prompt="未到期34个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_35" align="center" prompt="未到期35个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_36" align="center" prompt="未到期36个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_37" align="center" prompt="未到期37个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_38" align="center" prompt="未到期38个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_39" align="center" prompt="未到期39个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_40" align="center" prompt="未到期40个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_41" align="center" prompt="未到期41个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_42" align="center" prompt="未到期42个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_43" align="center" prompt="未到期43个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_44" align="center" prompt="未到期44个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_45" align="center" prompt="未到期45个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_46" align="center" prompt="未到期46个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_47" align="center" prompt="未到期47个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_48" align="center" prompt="未到期48个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_48_left" align="center" prompt="未到期48个月以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_1" align="center" prompt="未到期1年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_2" align="center" prompt="未到期2年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_3" align="center" prompt="未到期3年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_4" align="center" prompt="未到期4年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5" align="center" prompt="未到期5年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5_left" align="center" prompt="未到期5年以上" renderer="Leaf.formatMoney" width="80"/>
</a:columns>
</a:grid>
</a:tab>
<a:tab prompt="代理店的租赁物维度" width="150">
<a:grid id="con_contract_cashflow_monthly_agent_result_grid" bindTarget="con_contract_cashflow_monthly_agent_result_ds" marginHeight="150" navBar="true" marginWidth="40">
<a:toolBar>
<a:button type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="division_n" align="center" prompt="租赁物" width="220"/>
<a:column name="bp_id_agent_level1_n" align="center" prompt="代理店" width="200"/>
<a:column name="account_id_n" align="center" prompt="科目代码" width="120"/>
<a:column name="account_name" align="center" prompt="科目名称" width="180"/>
<a:column name="unreceived_sum_amount" align="center" prompt="总额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="overdue_amount_1" align="center" prompt="已到期1个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="overdue_amount_2" align="center" prompt="已到期2个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="overdue_amount_3" align="center" prompt="已到期3个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="overdue_amount_left" align="center" prompt="已到期3个月以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="overdue_sum_amount" align="center" prompt="已到期余额合计" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_sum_amount" align="center" prompt="未到期余额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_1" align="center" prompt="未到期1个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_2" align="center" prompt="未到期2个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_3" align="center" prompt="未到期3个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_4" align="center" prompt="未到期4个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_5" align="center" prompt="未到期5个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_6" align="center" prompt="未到期6个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_left" align="center" prompt="未到期6个月以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_7" align="center" prompt="未到期7个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_8" align="center" prompt="未到期8个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_9" align="center" prompt="未到期9个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_10" align="center" prompt="未到期10个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_11" align="center" prompt="未到期11个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_12" align="center" prompt="未到期12个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_13" align="center" prompt="未到期13个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_14" align="center" prompt="未到期14个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_15" align="center" prompt="未到期15个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_16" align="center" prompt="未到期16个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_17" align="center" prompt="未到期17个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_18" align="center" prompt="未到期18个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_19" align="center" prompt="未到期19个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_20" align="center" prompt="未到期20个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_21" align="center" prompt="未到期21个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_22" align="center" prompt="未到期22个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_23" align="center" prompt="未到期23个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_24" align="center" prompt="未到期24个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_25" align="center" prompt="未到期25个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_26" align="center" prompt="未到期26个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_27" align="center" prompt="未到期27个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_28" align="center" prompt="未到期28个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_29" align="center" prompt="未到期29个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_30" align="center" prompt="未到期30个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_31" align="center" prompt="未到期31个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_32" align="center" prompt="未到期32个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_33" align="center" prompt="未到期33个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_34" align="center" prompt="未到期34个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_35" align="center" prompt="未到期35个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_36" align="center" prompt="未到期36个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_37" align="center" prompt="未到期37个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_38" align="center" prompt="未到期38个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_39" align="center" prompt="未到期39个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_40" align="center" prompt="未到期40个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_41" align="center" prompt="未到期41个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_42" align="center" prompt="未到期42个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_43" align="center" prompt="未到期43个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_44" align="center" prompt="未到期44个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_45" align="center" prompt="未到期45个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_46" align="center" prompt="未到期46个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_47" align="center" prompt="未到期47个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_48" align="center" prompt="未到期48个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_48_left" align="center" prompt="未到期48个月以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_1" align="center" prompt="未到期1年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_2" align="center" prompt="未到期2年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_3" align="center" prompt="未到期3年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_4" align="center" prompt="未到期4年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5" align="center" prompt="未到期5年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5_left" align="center" prompt="未到期5年以上" renderer="Leaf.formatMoney" width="80"/>
</a:columns>
</a:grid>
</a:tab>
<a:tab prompt="租赁物维度" width="120">
<a:grid id="con_contract_cashflow_monthly_result_lease_item_grid" bindTarget="con_contract_cashflow_monthly_result_lease_item_ds" marginHeight="150" navBar="true" marginWidth="40">
<a:toolBar>
<a:button type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="division_n" align="center" prompt="租赁物" width="220"/>
<a:column name="account_id_n" align="center" prompt="科目代码" width="120"/>
<a:column name="account_name" align="center" prompt="科目名称" width="180"/>
<a:column name="unreceived_sum_amount" align="center" prompt="总额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="overdue_amount_1" align="center" prompt="已到期1个月" renderer="Leaf.formatMoney" width="80"/>
......@@ -170,11 +328,11 @@
<a:column name="not_due_amount_year_4" align="center" prompt="未到期4年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5" align="center" prompt="未到期5年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5_left" align="center" prompt="未到期5年以上" renderer="Leaf.formatMoney" width="80"/>
</a:columns>
</a:grid>
</a:tab>
</a:tabs>
</a:tabPanel>
</a:screenBody>
</a:view>
</a:screen>
......@@ -11,7 +11,22 @@
<a:link id="con_et001_calc_cashflow_link" model="cont.CON_ET001.calc_cashflow" modelaction="execute"/>
<a:link id="con_et001_calc_cashflow_link1" model="cont.CON_ET001.insert_calc_cashflow" modelaction="execute"/>
<a:link id="con_et001_calc_et_date_amount_link" model="cont.CON_ET001.calc_et_date_amount" modelaction="execute"/>
<a:link id="con731_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/>
<a:link id="${/parameter/@layout_code}_prj500_cdd_uploadFile_id"
url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="${/parameter/@layout_code}_prj500_cdd_downloadFile_id"
url="${/request/@context_path}/downloadFile.lview"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>
<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript"><![CDATA[
Ext.ux.Lightbox.register('a[ref=img]', true);
Leaf.onReady(function () {
var ds_con_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_01', 'con_contract');
if ($(ds_con_id)) {
$(ds_con_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
$(ds_con_id).query();
}
});
var calc_flag='Y';
//新增和加载时调用form
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
......@@ -25,6 +40,12 @@
}
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_01', 'con_contract_change_req');
if (ds == $(ds_id)) {
if (name == 'et_fee') {
var et_total_amount=record.get('et_total_amount')||0;
var old_et_fee=old_value||0;
record.set('et_total_amount', plus(minus(et_total_amount,old_et_fee),value||0));
}
if (name == 'termination_date'&&value) {
// 根据结清日计算结清相关金额字段
Leaf.request({
......@@ -33,7 +54,7 @@
change_req_id:record.get('change_req_id'),
contract_id: record.get('contract_id'),
termination_date: value,
et_fee:record.get('et_fee'),
et_fee:record.get('et_fee')||0,
et_interest_rate:record.get('et_interest_rate'),
residual_value:record.get('residual_value')
},
......@@ -266,6 +287,62 @@
}
}
};
//附件上传
function con_et_upload_file(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if (record.get('check_id')) {
var url;
if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY') {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
} else {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'prj500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function () {
record.ds.query();
});
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
link_function = 'con_et_upload_file';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} else if (name == 'attach_file_name') {
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])) {
var file_name = temp[0].toUpperCase();
var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase();
if (file_name.indexOf('.BMP') >= 0 || file_name.indexOf('.JPG') >= 0 || file_name.indexOf('.JPEG') >= 0 || file_name.indexOf('.PNG') >= 0 || file_name.indexOf('.GIF') >= 0) {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
} else {
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
}
}
}
return url;
}
}
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
......
......@@ -132,11 +132,11 @@
<a:textField name="contract_number" bindTarget="contractQueryScreen_paraDs" prompt="合同编号"/>
<a:textField name="contract_name" bindTarget="contractQueryScreen_paraDs" prompt="合同名称"/>
<a:lov name="bp_name" bindTarget="contractQueryScreen_paraDs" prompt="承租人名称"/>
<a:lov name="bp_agent" bindTarget="contractQueryScreen_paraDs" prompt="代理店"/>
<!-- <a:lov name="bp_agent" bindTarget="contractQueryScreen_paraDs" prompt="代理店"/>-->
<a:comboBox name="division_n" bindTarget="contractQueryScreen_paraDs" prompt="租赁物"/>
<!-- <a:textField name="received_times" bindTarget="contractQueryScreen_paraDs" prompt="已还款期数"/>-->
<!-- <a:comboBox name="contract_status_desc" bindTarget="contractQueryScreen_paraDs" prompt="合同状态"/>-->
<a:comboBox name="overdue_status_desc" bindTarget="contractQueryScreen_paraDs" prompt="是否逾期"/>
<!-- <a:comboBox name="overdue_status_desc" bindTarget="contractQueryScreen_paraDs" prompt="是否逾期"/>-->
</a:form>
<a:grid id="contractQueryScreen_mainDs_grid" bindTarget="contractQueryScreen_mainDs" marginHeight="230" marginWidth="40" navBar="true">
<a:columns>
......@@ -145,9 +145,9 @@
<a:column name="bp_name" prompt="承租人名称" width="200" align="left"/>
<a:column name="bp_agent" prompt="代理店" width="200" align="left"/>
<a:column name="division_n" prompt="租赁物" width="120" align="left"/>
<a:column name="received_times" prompt="已还款期数" width="80" align="right"/>
<!-- <a:column name="received_times" prompt="已还款期数" width="80" align="right"/>-->
<a:column name="status_desc" prompt="合同状态" width="120" align="center"/>
<a:column name="overdue_status" prompt="是否逾期" width="100" align="center"/>
<!-- <a:column name="overdue_status" prompt="是否逾期" width="100" align="center"/>-->
</a:columns>
</a:grid>
</a:screenBody>
......
......@@ -144,18 +144,18 @@
<!--<a:gridButton click="con_gur_np_pint" text="提前结清补充协议"/>-->
</a:screenTopToolbar>
<a:form column="4" labelWidth="100" marginWidth="40" title="HLS.QUERY_TITLE">
<a:textField name="change_req_number" bindTarget="contractQueryScreen_paraDs" prompt="合同变更编号"/>
<a:textField name="change_req_number" bindTarget="contractQueryScreen_paraDs" prompt="变更申请编号"/>
<a:textField name="contract_number" bindTarget="contractQueryScreen_paraDs" prompt="合同编号"/>
<a:textField name="contract_name" bindTarget="contractQueryScreen_paraDs" prompt="合同名称"/>
<a:lov name="bp_name" bindTarget="contractQueryScreen_paraDs" prompt="承租人名称"/>
<a:lov name="bp_agent" bindTarget="contractQueryScreen_paraDs" prompt="代理店"/>
<!-- <a:lov name="bp_agent" bindTarget="contractQueryScreen_paraDs" prompt="代理店"/>-->
<a:comboBox name="division_n" bindTarget="contractQueryScreen_paraDs" prompt="租赁物"/>
<a:textField name="req_employee_n" bindTarget="contractQueryScreen_paraDs" prompt="申请人"/>
<a:comboBox name="req_status_n" bindTarget="contractQueryScreen_paraDs" prompt="变更审批状态"/>
</a:form>
<a:grid id="contractQueryScreen_mainDs_grid" bindTarget="contractQueryScreen_mainDs" marginHeight="230" marginWidth="40" navBar="true">
<a:columns>
<a:column name="change_req_number" prompt="合同变更编号" width="120" align="left" renderer="open_change_req"/>
<a:column name="change_req_number" prompt="变更申请编号" width="120" align="left" renderer="open_change_req"/>
<a:column name="contract_number" prompt="合同编号" width="120" align="left"/>
<a:column name="contract_name" prompt="合同名称" width="120" align="left"/>
<a:column name="bp_name" prompt="承租人名称" width="200" align="left"/>
......
......@@ -1418,14 +1418,14 @@ debugger;
}
}
}
if(calc_temp==count){
Leaf.showMessage('${l:PROMPT}', '请保证一期以上的的调整租金为空!');
return false;
}
// if(last_null_calc_count==1&&zero_calc_count==count-1){
// Leaf.showMessage('${l:PROMPT}', '系统暂不支持所有租金集中在最后一期支付!');
// if(calc_temp==count){
// Leaf.showMessage('${l:PROMPT}', '请保证一期以上的的调整租金为空!');
// return false;
// }
if(last_null_calc_count==1&&zero_calc_count==count-1){
Leaf.showMessage('${l:PROMPT}', '系统暂不支持所有租金集中在最后一期支付!');
return false;
}
// if(null_calc_count==1&&zero_calc_count==count-1){
// Leaf.showMessage('${l:PROMPT}', '目前不支持只有一期租金的报价!');
// return false;
......
......@@ -79,7 +79,7 @@
<a:link id="pageLink_transfer" url="${/request/@context_path}/modules/zjwfl/ZJWFL5110/zj_wfl_approve_transfer.lview"/>
<a:link id="pageLink_add_approver" url="${/request/@context_path}/modules/zjwfl/ZJWFL5110/zj_wfl_approve_add_approver.lview"/>
<a:link id="pageLink_view_graphics" url="${/request/@context_path}/modules/zjwfl/zj_wfl_graphics.lview"/>
<a:link id="zj_wfl_approve_upload_link_id" url="${/request/@context_path}/atm_upload.lview"/>
<a:link id="zj_wfl_approve_upload_link_id" url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="zjwfl5110_notice_link" model="zjwfl.ZJWFL5110.zj_wfl_approve_agree" modelaction="execute"/>
<script><![CDATA[
......@@ -116,7 +116,10 @@
return true;
} else if (type == 'add_approver') {
return true;
} else {
}else if (type == 'upload_attach') {
return true;
}
else{
return false;
}
}
......@@ -154,16 +157,33 @@
}
function zjwfl5110_uploadAttach() {
/* var rcpt_record_id = '${/parameter/@record_id}'; */
var rcpt_record_id = '${/parameter/@instance_id}';
new Leaf.Window({
debugger;
var rcpt_record_id = '${/parameter/@record_id}';
//var rcpt_record_id = '${/parameter/@instance_id}';
// new Leaf.Window({
// id: 'zj_wfl_approve_history_downloadfile_win',
// //url: $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_APPROVE_RECORD&header_id=' + rcpt_record_id,
// // url: $('zj_wfl_approve_upload_link_id').getUrl() + '?document_table=ZJ_WFL_APPROVE_RECORD&document_id=' + rcpt_record_id + '&showflag=N',
// url: $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_APPROVE_RECORD&header_id=' +rcpt_record_id,
// title: '附件查看',
// width: 850,
// height: 400
// });
var url= $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_INSTANCE_NODE_RECIPIENT&header_id=' +rcpt_record_id;
var win = new Leaf.Window({
url: url,
title: '附件上传',
id: 'zj_wfl_approve_history_downloadfile_win',
//url: $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_APPROVE_RECORD&header_id=' + rcpt_record_id,
url: $('zj_wfl_approve_upload_link_id').getUrl() + '?document_table=ZJ_WFL_APPROVE_RECORD&document_id=' + rcpt_record_id + '&showflag=N',
title: '附件查看',
width: 1250,
height: 350
width: 850,
height: 400
});
win.on('close', function() {
zjwfl5110_approvePage_noMask();
});
}
function zjwfl5110_approvePage_close() {
......@@ -478,7 +498,12 @@
} else if (action_type == 5) {
checkActionType = 'view_page';
zjwfl5110_onViewPage(record, combobox_ds_id, wfl_node_action_id, wfl_node_action_prompt, action_type);
} else {
}
else if (action_type == 7) {
checkActionType = 'upload_attach';
zjwfl5110_approvePage_noMask();
zjwfl5110_uploadAttach();
}else {
zjwfl5110_approvePage_noMask();
return;
}
......@@ -487,11 +512,13 @@
zjwfl5110_approvePage_noMask();
return;
}
if (action_type !== 7){
if (!$('comment_text_ds').validate()) {
zjwfl5110_approvePage_noMask();
return;
}
}
var record_id = '${/parameter/@record_id}';
var comment_text = $('comment_text_id').getValue();
var confirm_execute_flag = 'N';
......@@ -500,7 +527,7 @@
var params;
//add by wangwei5743
//查看页面类型,不需要弹出提示
if (action_type != 5) {
if (action_type != 5&&action_type != 7) {
var win = Leaf.showConfirm('是否确认', node_action_prompt, function() {
confirm_execute_flag = 'Y';
if (action_type == 1) {
......
......@@ -116,7 +116,7 @@
</a:dataSets>
<a:screenBody>
<a:form marginWidth="30" padding="0">
<a:grid id="zj_wfl_approve_history_table_id" bindTarget="approveHistoryDs" marginWidth="30" marginHeight="250">
<a:grid id="zj_wfl_approve_history_table_id" bindTarget="approveHistoryDs" marginWidth="30" marginHeight="300">
<a:columns>
<a:column name="create_date_fmt" prompt="审批时间" width="150"/>
<a:column name="action_type_desc" prompt="审批操作" renderer="render_action_type_desc" width="150"/>
......@@ -125,7 +125,7 @@
<a:column name="node_desc" prompt="审批节点" width="200"/>
<a:column name="approver" prompt="审批人" renderer="check_agent_renderer" width="140" />
<a:placeHolder id="dynamicLineColumn_id"/>
<!--<a:column name="attachement" align="center" prompt="附件查看" renderer="attachement_renderer" width="80"/>-->
<a:column name="attachement" align="center" prompt="附件查看" renderer="attachement_renderer" width="80"/>
</a:columns>
<a:editors>
<a:textArea id="textArea_e" readOnly="true" height="100"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zsy
$Date: 2018/12/18
$Revision:
$Purpose: 头像上传
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure>
<a:model-query model="sys.sys_user" rootPath="enable_image_system_flag"/>
</a:init-procedure>
<a:view package="leaf.ui.std" template="default">
<script src="${/request/@context_path}/leafresource/js/cropper.min.js"
type="text/javascript"></script>
<link href="${/request/@context_path}/leafresource/css/cropper.min.css" rel="stylesheet"
type="text/css"/>
<style>
#userImg {
width: 300px;
height: 300px;
}
#preview {
width: 200px;
height: 200px;
overflow: hidden;
}
#saveImg {
cursor: pointer;
float: right;
width: 108px;
height: 38px;
background-color: rgba(90, 127, 255, 1);
font-size: 14px;
color: #FFFFFF;
text-align: center;
line-height: 38px;
}
</style>
<script><![CDATA[
var options = {
aspectRatio: 1 / 1,
preview: "#preview",
viewMode: 1
};
var cropper;
var $image = document.getElementById('userImg');
$L.onReady(function () {
Leaf.Masker.mask($('${/parameter/@win_id}').wrap, '正在加载头像...');
Leaf.request({
url: "${/request/@context_path}/autocrud/sys.sys_user/query",
para: {
user_id: "${/session/@user_id}"
},
scope: this,
success: function (res) {
if (res.success) {
var userImg = '';
if (!!res.result.record.avatar) {
userImg = res.result.record["avatar"];
} else {
userImg = "${/request/@context_path}/lib/assets/layouts/layout4/img/avatar_default.png";
}
document.getElementById('userImg').src = userImg;
}
cropper = new Cropper($image, options);
Leaf.Masker.unmask($('${/parameter/@win_id}').wrap);
}
});
jQuery("#selectImg").on("change", function (e) {
var selectImg = e.currentTarget;
var file = selectImg.files[0];
if (/(.jpg)|(.jpeg)|(.png)|(.gif)|(.svg)$/.test(file.name)) {
// if(window.File && window.FileList && window.FileReader && window.Blob) {
if (window.FileReader) {
var fileReader = new window.FileReader();
fileReader.readAsDataURL(file);
fileReader.onload = function (e) {
$image.src = this.result;
cropper.destroy();
cropper = new Cropper($image, options);
};
}
} else {
$L.showErrorMessage("提示", "仅支持gif,jpeg,jpg,png,svg类型的图片", null, 200, 100);
}
});
jQuery("#saveImg").on("click", function () {
Leaf.Masker.mask($('${/parameter/@win_id}').wrap, '正在上传');
var result = cropper.getCroppedCanvas();
var avatar = result.toDataURL("image/jpeg");
Leaf.request({
url: "${/request/@context_path}/autocrud/sys.change_image/update",
para: {
user_id: "${/session/@user_id}",
avatar: avatar
},
scope: this,
success: function (res) {
if (res.success) {
Leaf.Masker.unmask($('${/parameter/@win_id}').wrap);
$L.showInfoMessage("提示", "头像上传成功", function () {
$('${/parameter/@win_id}').close();
}, 200, 100);
}
}
});
});
});
]]></script>
<a:screenBody>
<a:hBox>
<lable for="selectImg" class="imgTitle">选择图片</lable>
<input type="file" id="selectImg" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg"/>
</a:hBox>
<a:hBox>
<img id="userImg"/>
<a:vBox>
<div id="preview"></div>
<div id="saveImg">保存</div>
</a:vBox>
</a:hBox>
</a:screenBody>
</a:view>
</a:screen>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment