Commit 9132fde0 authored by 18083's avatar 18083

经租付款保证金模块调整

parent 72dcc726
...@@ -3,37 +3,44 @@ ...@@ -3,37 +3,44 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select * from select * from
(select t1.contract_id, (select t1.contract_id,
t1.dd_bank_account_num, t1.dd_bank_account_num,
t1.dd_bank_account_name, t1.dd_bank_account_name,
t1.contract_number, t1.contract_number,
t1.contract_name, t1.contract_name,
t1.bp_id_tenant, t1.bp_id_tenant,
t1.bp_id_agent_level1, t1.bp_id_agent_level1,
(select bp_name from hls_bp_master where bp_id = t1.bp_id_tenant) bp_name, (select bp_name from hls_bp_master where bp_id = t1.bp_id_tenant) bp_name,
(SELECT sc.code_value_name (SELECT sc.code_value_name
FROM sys_code_values_v sc FROM sys_code_values_v sc
WHERE sc.code = 'CON500_CONTRACT_STATUS' WHERE sc.code = 'CON500_CONTRACT_STATUS'
AND sc.code_value = t1.contract_status) contract_status_desc, AND sc.code_value = t1.contract_status) contract_status_desc,
t1.payment_deduction,t1.division t1.payment_deduction,
from con_contract t1 t1.division,
where t1.business_type,
t1.contract_status in ('INCEPT','NEW','ETING','REPURING') (Select bt.description
and t1.data_class = 'NORMAL' From hls_business_type bt
and t1.company_id in (( Where bt.business_type = t1.business_type) As business_type_n,
select company_id t1.search_term_1
from fnd_companies t from con_contract t1
where t.company_id = ${/session/@company_id} or where
t.parent_company_id = ${/session/@company_id} t1.contract_status in ('INCEPT','NEW','ETING','REPURING')
union and t1.data_class = 'NORMAL'
select t.parent_company_id company_id and t1.document_type<>'PUR_ORDER'
from fnd_companies t and t1.company_id in ((
where t.parent_company_id is not null select company_id
and (t.company_id = ${/session/@company_id} or t.parent_company_id = ${/session/@company_id}))) from fnd_companies t
) t where t.company_id = ${/session/@company_id} or
#WHERE_CLAUSE# t.parent_company_id = ${/session/@company_id}
]]></bm:query-sql> union
select t.parent_company_id company_id
from fnd_companies t
where t.parent_company_id is not null
and (t.company_id = ${/session/@company_id} or t.parent_company_id = ${/session/@company_id})))
) t
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:fields> <bm:fields>
...@@ -47,6 +54,8 @@ ...@@ -47,6 +54,8 @@
<bm:field name="dd_bank_account_name"/> <bm:field name="dd_bank_account_name"/>
<bm:field name="payment_deduction"/> <bm:field name="payment_deduction"/>
<bm:field name="division"/> <bm:field name="division"/>
<bm:field name="business_type_n"/>
<bm:field name="search_term_1"/>
</bm:fields> </bm:fields>
<bm:query-fields> <bm:query-fields>
<bm:query-field field="contract_id" queryOperator="="/> <bm:query-field field="contract_id" queryOperator="="/>
...@@ -64,18 +73,20 @@ ...@@ -64,18 +73,20 @@
Where h.bp_name in ( select hbm.bp_name from hls_bp_master hbm where hbm.bp_id= ${@bp_id}) Where h.bp_name in ( select hbm.bp_name from hls_bp_master hbm where hbm.bp_id= ${@bp_id})
and hbr.bp_id = h.bp_id and hbr.bp_id = h.bp_id
and h.bp_id= bp.bp_id and h.bp_id= bp.bp_id
and hbr.bp_type in('TENANT','GUTA_NP') and hbr.bp_type in('TENANT','GUTA_NP','RENTER','GUTA_ORG')
and bp.contract_id=t.contract_id) Or not Exists and bp.contract_id=t.contract_id) Or not Exists
(Select 1 (Select 1
From hls_bp_master h, hls_bp_master_role hbr From hls_bp_master h, hls_bp_master_role hbr
Where h.bp_id = ${@bp_id} Where h.bp_id = ${@bp_id}
and hbr.bp_id = h.bp_id and hbr.bp_id = h.bp_id
and hbr.bp_type = 'TENANT' and hbr.bp_type in('TENANT','RENTER')
))"/> ))"/>
<bm:query-field name="bp_name" queryExpression="t.bp_name like '%' || ${@bp_name} || '%'"/> <bm:query-field name="bp_name" queryExpression="t.bp_name like '%' || ${@bp_name} || '%'"/>
<bm:query-field field="search_term_1" queryOperator="like"/>
<bm:query-field field="business_type_n" queryOperator="like"/>
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter name="query" Expression=" exists <bm:data-filter name="query" Expression=" exists
(select 1 (select 1
from con_contract_cashflow ccc from con_contract_cashflow ccc
where ccc.contract_id = t.contract_id where ccc.contract_id = t.contract_id
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<bm:operation name="update"> <bm:operation name="update">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
begin begin
csh_transaction_interface_pkg.post_interface(p_transaction_id =>${@transaction_id}, csh_transaction_interface_pkg.post_interface(p_transaction_id =>${@transaction_id},
p_user_id =>${/session/@user_id}, p_user_id =>${/session/@user_id},
p_err_count =>${@err_count}); p_err_count =>${@err_count});
...@@ -16,8 +16,11 @@ ...@@ -16,8 +16,11 @@
</bm:operation> </bm:operation>
<bm:operation name="execute"> <bm:operation name="execute">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
declare
v_transaction_num varchar2(400);
begin begin
if ${@flag} = 'SUBMIT' then if ${@flag} = 'SUBMIT' then
csh_transaction_interface_pkg.check_operat_flag(p_transaction_id =>${@transaction_id} );
update CSH_TRANSACTION update CSH_TRANSACTION
set confirmed_flag = 'WF_APPROVING' set confirmed_flag = 'WF_APPROVING'
where transaction_id = ${@transaction_id}; where transaction_id = ${@transaction_id};
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: gaoyang $Author: gaoyang
$Date: 2013-6-24 下午04:30:53 $Date: 2013-6-24 下午04:30:53
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:s="leaf.plugin.script" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CON_CONTRACT_V" defaultOrderBy="t1.contract_number desc" needAccessControl="false"> <bm:model xmlns:s="leaf.plugin.script" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CON_CONTRACT_V" defaultOrderBy="t1.contract_number desc" needAccessControl="false">
<bm:fields> <bm:fields>
...@@ -234,6 +234,7 @@ ...@@ -234,6 +234,7 @@
<bm:field name="con_search_term_2" databaseType="NUMBER" datatype="java.lang.Double" physicalName="CON_SEARCH_TERM_2" prompt="CON301.CON_CONTRACT_V.CON_SEARCH_TERM_2"/> <bm:field name="con_search_term_2" databaseType="NUMBER" datatype="java.lang.Double" physicalName="CON_SEARCH_TERM_2" prompt="CON301.CON_CONTRACT_V.CON_SEARCH_TERM_2"/>
<bm:field name="con_content_confirm_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CON_CONTENT_CONFIRM_STATUS" prompt="CON301.CON_CONTRACT_V.CON_CONTENT_CONFIRM_STATUS"/> <bm:field name="con_content_confirm_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CON_CONTENT_CONFIRM_STATUS" prompt="CON301.CON_CONTRACT_V.CON_CONTENT_CONFIRM_STATUS"/>
<bm:field name="bp_id_agent_level1_n"/> <bm:field name="bp_id_agent_level1_n"/>
<bm:field name="vender_project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VENDER_PROJECT_NUMBER" prompt="采购单编号"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -249,5 +250,7 @@ ...@@ -249,5 +250,7 @@
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.contract_status not in (&apos;TERMINATE&apos;, &apos;CANCEL&apos;, &apos;REPUR&apos;, &apos;ET&apos;, &apos;INCEPT_RETURN&apos;)"/> <bm:data-filter enforceOperations="query" expression="t1.contract_status not in (&apos;TERMINATE&apos;, &apos;CANCEL&apos;, &apos;REPUR&apos;, &apos;ET&apos;, &apos;INCEPT_RETURN&apos;)"/>
<!--<bm:data-filter name="query" expression="CASE WHEN t1.business_type='LEASEOPERAT' THEN t1.bp_id_tenant else to_number(${/parameter/@bp_id_tenant}) end =to_number(${/parameter/@bp_id_tenant})"/>-->
<bm:data-filter enforceOperations="query" expression="t1.document_type not in (&apos;PUR_ORDER&apos;)"/>
</bm:data-filters> </bm:data-filters>
</bm:model> </bm:model>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: gaoyang $Author: gaoyang
$Date: 2013-6-24 下午04:30:53 $Date: 2013-6-24 下午04:30:53
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:s="leaf.plugin.script" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CON_CONTRACT_V" defaultOrderBy="t1.contract_number desc" needAccessControl="false"> <bm:model xmlns:s="leaf.plugin.script" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CON_CONTRACT_V" defaultOrderBy="t1.contract_number desc" needAccessControl="false">
<bm:fields> <bm:fields>
...@@ -234,6 +234,7 @@ ...@@ -234,6 +234,7 @@
<bm:field name="con_search_term_2" databaseType="NUMBER" datatype="java.lang.Double" physicalName="CON_SEARCH_TERM_2" prompt="CON301.CON_CONTRACT_V.CON_SEARCH_TERM_2"/> <bm:field name="con_search_term_2" databaseType="NUMBER" datatype="java.lang.Double" physicalName="CON_SEARCH_TERM_2" prompt="CON301.CON_CONTRACT_V.CON_SEARCH_TERM_2"/>
<bm:field name="con_content_confirm_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CON_CONTENT_CONFIRM_STATUS" prompt="CON301.CON_CONTRACT_V.CON_CONTENT_CONFIRM_STATUS"/> <bm:field name="con_content_confirm_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CON_CONTENT_CONFIRM_STATUS" prompt="CON301.CON_CONTRACT_V.CON_CONTENT_CONFIRM_STATUS"/>
<bm:field name="bp_id_agent_level1_n"/> <bm:field name="bp_id_agent_level1_n"/>
<bm:field name="vender_project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VENDER_PROJECT_NUMBER" prompt="采购单编号"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -250,5 +251,6 @@ ...@@ -250,5 +251,6 @@
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.contract_status not in (&apos;TERMINATE&apos;, &apos;CANCEL&apos;, &apos;REPUR&apos;, &apos;ET&apos;, &apos;INCEPT_RETURN&apos;)"/> <bm:data-filter enforceOperations="query" expression="t1.contract_status not in (&apos;TERMINATE&apos;, &apos;CANCEL&apos;, &apos;REPUR&apos;, &apos;ET&apos;, &apos;INCEPT_RETURN&apos;)"/>
<bm:data-filter enforceOperations="query" expression="t1.document_type not in (&apos;PUR_ORDER&apos;)"/>
</bm:data-filters> </bm:data-filters>
</bm:model> </bm:model>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<!-- <!--
$Author: sf $Author: sf
$Date: 2019-9-9 下午01:23:36 $Date: 2019-9-9 下午01:23:36
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false"> <bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false">
<bm:fields> <bm:fields>
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
<bm:field name="acc_confirmed_by"/> <bm:field name="acc_confirmed_by"/>
<bm:field name="acc_confirmed_by_desc" expression="(select description from sys_user where user_id=t1.acc_confirmed_by)" forInsert="false" forUpdate="false"/> <bm:field name="acc_confirmed_by_desc" expression="(select description from sys_user where user_id=t1.acc_confirmed_by)" forInsert="false" forUpdate="false"/>
<bm:field name="receipt_type_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)" forInsert="false" forUpdate="false"/> <bm:field name="receipt_type_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)" forInsert="false" forUpdate="false"/>
<bm:field name="deposit_trans_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPOSIT_TRANS_TYPE" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_NUM"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -110,8 +111,9 @@ ...@@ -110,8 +111,9 @@
<bm:data-filter name="query" expression="(t1.transaction_type in (&apos;DEPOSIT&apos;))"/> <bm:data-filter name="query" expression="(t1.transaction_type in (&apos;DEPOSIT&apos;))"/>
<bm:data-filter name="query" expression="(t1.ref_contract_id is null)"/> <bm:data-filter name="query" expression="(t1.ref_contract_id is null)"/>
<bm:data-filter name="query" expression="(nvl(t1.reversed_flag,'N') = 'N')"/> <bm:data-filter name="query" expression="(nvl(t1.reversed_flag,'N') = 'N')"/>
<bm:data-filter name="query" expression="(t1.confirmed_flag not in('ACCAUDITING','NEW','CT_REJECTED'))"/> <bm:data-filter name="query" expression="(t1.confirmed_flag not in('ACCAUDITING','NEW','CT_REJECTED','ACCAUDITED_RECOI'))"/>
<bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/> <bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/>
<bm:data-filter name="query" expression="not exists(select 1 from csh_transaction ct where ct.transaction_id =t1.transaction_id and ct.deposit_trans_type in('vender_deposit'))"/>
</bm:data-filters> </bm:data-filters>
<bm:query-fields> <bm:query-fields>
<bm:query-field field="confirmed_flag" queryExpression="t1.confirmed_flag =${@confirmed_flag}"/> <bm:query-field field="confirmed_flag" queryExpression="t1.confirmed_flag =${@confirmed_flag}"/>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
$Author: trd $Author: trd
$Date: 2023-7-28 下午01:23:36 $Date: 2023-7-28 下午01:23:36
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.creation_date desc,t1.transaction_num desc"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.creation_date desc,t1.transaction_num desc">
...@@ -85,13 +85,13 @@ ...@@ -85,13 +85,13 @@
<f:standard-who/> <f:standard-who/>
</bm:features> </bm:features>
<bm:data-filters> <bm:data-filters>
<bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/> <bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/>
<bm:data-filter name="query" expression="(t1.transaction_type in (&apos;DEPOSIT&apos;))"/> <bm:data-filter name="query" expression="(t1.transaction_type in (&apos;DEPOSIT&apos;))"/>
<bm:data-filter name="query" expression="(t1.ref_contract_id is null)"/> <bm:data-filter name="query" expression="(t1.ref_contract_id is null)"/>
<bm:data-filter name="query" expression="(nvl(t1.reversed_flag,'N') = 'N')"/> <bm:data-filter name="query" expression="(nvl(t1.reversed_flag,'N') = 'N')"/>
<bm:data-filter name="query" expression="(t1.confirmed_flag not in('ACCAUDITING','NEW','CT_REJECTED'))"/> <bm:data-filter name="query" expression="(t1.confirmed_flag not in('ACCAUDITING','NEW','CT_REJECTED','ACCAUDITED_RECOI'))"/>
<bm:data-filter name="query" expression="(t1.returned_flag &lt;&gt; 'RETURN')"/> <bm:data-filter name="query" expression="(t1.returned_flag &lt;&gt; 'RETURN')"/>
</bm:data-filters> </bm:data-filters>
<bm:query-fields> <bm:query-fields>
<bm:query-field name="transaction_num" queryExpression="t1.transaction_num = ${@transaction_num}"/> <bm:query-field name="transaction_num" queryExpression="t1.transaction_num = ${@transaction_num}"/>
<bm:query-field name="bp_name" queryExpression="t1.bp_id in (select d.bp_id from hls_bp_master d where d.bp_name like &apos;%&apos;||${@bp_name}||&apos;%&apos;)"/> <bm:query-field name="bp_name" queryExpression="t1.bp_id in (select d.bp_id from hls_bp_master d where d.bp_name like &apos;%&apos;||${@bp_name}||&apos;%&apos;)"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: gaoyang $Author: gaoyang
$Date: 2013-5-23 下午04:23:02 $Date: 2013-5-23 下午04:23:02
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations> <bm:operations>
...@@ -13,28 +13,28 @@ ...@@ -13,28 +13,28 @@
hlcm_cux_deposit_pkg.execute_deposit_transfer( hlcm_cux_deposit_pkg.execute_deposit_transfer(
p_session_id=>${/session/@session_id}, p_session_id=>${/session/@session_id},
p_source_contract_id=>${@source_contract_id}, p_source_contract_id=>${@source_contract_id},
p_source_transaction_id=>${@source_transaction_id}, p_source_transaction_id=>${@source_transaction_id},
p_je_date=>to_date(${@je_date},'yyyy-mm-dd hh24:mi:ss'), p_je_date=>to_date(${@je_date},'yyyy-mm-dd hh24:mi:ss'),
p_contract_id=>${@contract_id}, p_contract_id=>${@contract_id},
p_transaction_id=>${@transaction_id}, p_transaction_id=>${@transaction_id},
p_deposit_amount=>${@deposit_amount}, p_deposit_amount=>${@deposit_amount},
p_deposit_trans_type=>${@deposit_trans_type}, p_deposit_trans_type=>${@deposit_trans_type},
p_company_id=>${/session/@company_id}, p_company_id=>${/session/@company_id},
p_user_id=>${/session/@user_id}, p_user_id=>${/session/@user_id},
p_source_trans_type=>${@source_trans_type} p_source_trans_type=>${@source_trans_type}
); );
end; end;
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
<bm:operation name="execute"> <bm:operation name="execute">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
begin begin
hlcm_cux_deposit_pkg.create_deposit_transfer_je( hlcm_cux_deposit_pkg.create_deposit_transfer_je(
p_hd_contract_id=>${@hd_contract_id}, p_hd_contract_id=>${@hd_contract_id},
p_contract_id=>${@source_contract_id}, p_contract_id=>${@contract_id},
p_transaction_id=>${@source_transaction_id}, p_transaction_id=>${@transaction_id},
p_batch_id=>${@batch_id}, p_batch_id=>${@batch_id},
p_user_id=>${/session/@user_id} p_user_id=>${/session/@user_id}
); );
end; end;
]]></bm:update-sql> ]]></bm:update-sql>
......
...@@ -11,39 +11,48 @@ ...@@ -11,39 +11,48 @@
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select * select *
from (select ct.contemp_id, from (select ct.contemp_id,
ct.batch_id, ct.batch_id,
ct.bp_id, ct.bp_id,
ct.source_contract_id, ct.source_contract_id,
ct.contract_id, ct.contract_id,
ct.source_transaction_id, ct.source_transaction_id,
ct.transaction_id, ct.transaction_id,
ct.source_trans_type, ct.source_trans_type,
(select t.contract_number (select t.contract_number
from con_contract t from con_contract t
where t.contract_id = ct.contract_id where t.contract_id = ct.contract_id
and t.data_class = 'NORMAL' and t.data_class = 'NORMAL'
and rownum = 1) contract_number, and rownum = 1) contract_number,
'' transaction_num, (select t.search_term_1 from con_contract t
ct.deposit_trans_type, where t.contract_id = ct.contract_id
(SELECT sc.code_value_name and t.data_class = 'NORMAL'
FROM sys_code_values_v sc and rownum = 1) vender_contract_number,
WHERE sc.code = 'DEPOSIT_TRANS_TYPE' (select p.project_number
AND sc.code_value = ct.deposit_trans_type) deposit_trans_type_desc, from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci
to_char(ct.je_date, 'yyyy-MM-dd') je_date, where pi.source_project_id = p.project_id
ct.deposit_amount, and pi.project_lease_item_id = ci.project_lease_item_id
ct.deposit_info, and ci.contract_id=ct.contract_id) vender_project_number,
cc.bp_id_agent_level1, '' transaction_num,
(SELECT t.bp_name ct.deposit_trans_type,
FROM hls_bp_master t (SELECT sc.code_value_name
WHERE t.bp_id = cc.bp_id_agent_level1) bp_id_agent_level1_n, FROM sys_code_values_v sc
cc.bp_id_tenant, WHERE sc.code = 'DEPOSIT_TRANS_TYPE'
(SELECT bpv.bp_name AND sc.code_value = ct.deposit_trans_type) deposit_trans_type_desc,
FROM hls_bp_master bpv to_char(ct.je_date,'yyyy-MM-dd') je_date,
WHERE bpv.bp_id = cc.bp_id_tenant) bp_name ct.deposit_amount,
from csh_transaction_contemp ct, con_contract cc ct.deposit_info,
where ct.contract_id = cc.contract_id cc.bp_id_agent_level1,
and cc.data_class = 'NORMAL' (SELECT t.bp_name
union all FROM hls_bp_master t
WHERE t.bp_id = cc.bp_id_agent_level1) bp_id_agent_level1_n,
cc.bp_id_tenant,
(SELECT bpv.bp_name
FROM hls_bp_master bpv
WHERE bpv.bp_id = cc.bp_id_tenant) bp_name
from csh_transaction_contemp ct, con_contract cc
where ct.contract_id = cc.contract_id
and cc.data_class = 'NORMAL'
union all
select ct.contemp_id, select ct.contemp_id,
ct.batch_id, ct.batch_id,
ct.bp_id, ct.bp_id,
...@@ -53,6 +62,8 @@ ...@@ -53,6 +62,8 @@
ct.transaction_id, ct.transaction_id,
ct.source_trans_type, ct.source_trans_type,
'' contract_number, '' contract_number,
'' vender_contract_number,
'' vender_project_number,
cc.transaction_num, cc.transaction_num,
ct.deposit_trans_type, ct.deposit_trans_type,
(SELECT sc.code_value_name (SELECT sc.code_value_name
...@@ -78,7 +89,7 @@ ...@@ -78,7 +89,7 @@
where hbm.bp_id = cc.bp_id) bp_name where hbm.bp_id = cc.bp_id) bp_name
from csh_transaction_contemp ct, csh_transaction cc from csh_transaction_contemp ct, csh_transaction cc
where ct.transaction_id = cc.transaction_id) t1 where ct.transaction_id = cc.transaction_id) t1
#WHERE_CLAUSE# #WHERE_CLAUSE#
order by t1.je_date desc order by t1.je_date desc
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select * select *
from (select v.source_contract_id, from (select v.source_contract_id,
null source_transaction_id, null source_transaction_id,
v.batch_id, v.batch_id,
v.trans_review_status, v.trans_review_status,
to_char(v.je_date,'yyyy-MM-dd') je_date, to_char(v.je_date,'yyyy-MM-dd') je_date,
v.source_trans_type, v.source_trans_type,
...@@ -29,7 +29,18 @@ ...@@ -29,7 +29,18 @@
WHERE sc.code = 'TRANS_REVIEW_STATUS' WHERE sc.code = 'TRANS_REVIEW_STATUS'
AND sc.code_value = v.trans_review_status) trans_review_status_n, AND sc.code_value = v.trans_review_status) trans_review_status_n,
cc.contract_number, cc.contract_number,
'' transaction_num, cc.business_type,
(select hb.description from
hls_business_type_v hb
where hb.enabled_flag = 'Y'
and hb.business_type=cc.business_type) AS business_type_desc,
cc.search_term_1 vender_contract_number,
(select p.project_number
from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci
where pi.source_project_id = p.project_id
and pi.project_lease_item_id = ci.project_lease_item_id
and ci.contract_id=cc.contract_id) vender_project_number,
'' transaction_num,
cc.contract_name, cc.contract_name,
cc.bp_id_agent_level1, cc.bp_id_agent_level1,
(SELECT t.bp_name (SELECT t.bp_name
...@@ -70,7 +81,7 @@ ...@@ -70,7 +81,7 @@
) v ) v
where cc.contract_id = v.source_contract_id where cc.contract_id = v.source_contract_id
and cc.data_class = 'NORMAL' and cc.data_class = 'NORMAL'
union all union all
select null source_contract_id, select null source_contract_id,
v.source_transaction_id, v.source_transaction_id,
v.batch_id, v.batch_id,
...@@ -86,6 +97,10 @@ ...@@ -86,6 +97,10 @@
WHERE sc.code = 'TRANS_REVIEW_STATUS' WHERE sc.code = 'TRANS_REVIEW_STATUS'
AND sc.code_value = v.trans_review_status) trans_review_status_n, AND sc.code_value = v.trans_review_status) trans_review_status_n,
'' contract_number, '' contract_number,
'' business_type,
'' business_type_desc,
'' vender_contract_number,
'' vender_project_number,
cc.transaction_num, cc.transaction_num,
'' contract_name, '' contract_name,
(select u.bp_id from hls_bp_master u,hls_bp_master hbm where u.unit_id= hbm.unit_id and u.bp_category='AGENT' and hbm.bp_id=cc.bp_id) bp_id_agent_level1, (select u.bp_id from hls_bp_master u,hls_bp_master hbm where u.unit_id= hbm.unit_id and u.bp_category='AGENT' and hbm.bp_id=cc.bp_id) bp_id_agent_level1,
...@@ -114,7 +129,8 @@ ...@@ -114,7 +129,8 @@
and ct.batch_id is not null and ct.batch_id is not null
) v ) v
where cc.transaction_id = v.source_transaction_id where cc.transaction_id = v.source_transaction_id
) t1
) t1
#WHERE_CLAUSE# #WHERE_CLAUSE#
order by t1.trans_review_status,t1.je_date desc order by t1.trans_review_status,t1.je_date desc
...@@ -128,5 +144,9 @@ ...@@ -128,5 +144,9 @@
<bm:query-field name="deposit_trans_type" queryExpression="t1.source_trans_type = ${@deposit_trans_type}"/> <bm:query-field name="deposit_trans_type" queryExpression="t1.source_trans_type = ${@deposit_trans_type}"/>
<bm:query-field name="trans_review_status" queryExpression="t1.trans_review_status =${@trans_review_status}"/> <bm:query-field name="trans_review_status" queryExpression="t1.trans_review_status =${@trans_review_status}"/>
<bm:query-field name="no_status" queryExpression="t1.trans_review_status != ${@no_status}"/> <bm:query-field name="no_status" queryExpression="t1.trans_review_status != ${@no_status}"/>
<bm:query-field name="no_status_op" queryExpression="t1.trans_review_status != ${@no_status_op}"/>
<bm:query-field name="vender_contract_number" queryExpression="t1.vender_contract_number like &apos;%&apos;||${@vender_contract_number}||&apos;%&apos;"/>
<bm:query-field name="vender_project_number" queryExpression="t1.vender_project_number like &apos;%&apos;||${@vender_project_number}||&apos;%&apos;"/>
<bm:query-field name="business_type" queryExpression="t1.business_type like &apos;%&apos;||${@business_type}||&apos;%&apos;"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
\ No newline at end of file
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID"/> <bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID"/>
<bm:field name="batch_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BATCH_ID"/> <bm:field name="batch_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BATCH_ID"/>
<bm:field name="source_contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_CONTRACT_ID"/> <bm:field name="source_contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_CONTRACT_ID"/>
<bm:field name="source_transaction_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_TRANSACTION_ID"/> <bm:field name="source_transaction_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_TRANSACTION_ID"/>
<bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID"/> <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" forInsert="false" forUpdate="false"/> <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" forInsert="false" forUpdate="false"/>
<bm:field name="je_date" databaseType="DATE" datatype="java.util.Date" physicalName="JE_DATE"/> <bm:field name="je_date" databaseType="DATE" datatype="java.util.Date" physicalName="JE_DATE"/>
<bm:field name="deposit_trans_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPOSIT_TRANS_TYPE"/> <bm:field name="deposit_trans_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPOSIT_TRANS_TYPE"/>
...@@ -25,9 +25,11 @@ ...@@ -25,9 +25,11 @@
<bm:field name="bp_id_tenant" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_TENANT" forInsert="false" forUpdate="false"/> <bm:field name="bp_id_tenant" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_TENANT" forInsert="false" forUpdate="false"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" forInsert="false" forUpdate="false"/> <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" forInsert="false" forUpdate="false"/>
<bm:field name="file_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FILE_NUM" forInsert="false" forUpdate="false"/> <bm:field name="file_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FILE_NUM" forInsert="false" forUpdate="false"/>
<bm:field name="transaction_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TRANSACTION_ID"/> <bm:field name="transaction_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TRANSACTION_ID"/>
<bm:field name="transaction_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRANSACTION_NUM" forInsert="false" forUpdate="false"/> <bm:field name="transaction_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRANSACTION_NUM" forInsert="false" forUpdate="false"/>
<bm:field name="con_search_term_1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="con_search_term_1" forInsert="false" forUpdate="false"/>
<bm:field name="vender_project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="vender_project_number" forInsert="false" forUpdate="false"/>
<bm:field name="agent_bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AGENT_BP_CODE" forInsert="false" forUpdate="false"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -44,13 +46,22 @@ ...@@ -44,13 +46,22 @@
ct.batch_id, ct.batch_id,
ct.source_trans_type, ct.source_trans_type,
ct.source_contract_id, ct.source_contract_id,
ct.source_transaction_id, ct.source_transaction_id,
ct.contract_id, ct.contract_id,
(select t.contract_number from con_contract t (select t.contract_number from con_contract t
where t.contract_id = ct.contract_id where t.contract_id = ct.contract_id
and t.data_class = 'NORMAL' and t.data_class = 'NORMAL'
and rownum = 1) contract_number, and rownum = 1) contract_number,
ct.transaction_id, (select t.search_term_1 from con_contract t
where t.contract_id = ct.contract_id
and t.data_class = 'NORMAL'
) con_search_term_1,
(select p.project_number
from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci
where pi.source_project_id = p.project_id
and pi.project_lease_item_id = ci.project_lease_item_id
and ci.contract_id=ct.contract_id) vender_project_number,
ct.transaction_id,
'' transaction_num, '' transaction_num,
ct.deposit_trans_type, ct.deposit_trans_type,
(SELECT sc.code_value_name (SELECT sc.code_value_name
...@@ -61,6 +72,7 @@ ...@@ -61,6 +72,7 @@
ct.deposit_amount, ct.deposit_amount,
ct.deposit_info, ct.deposit_info,
cc.bp_id_agent_level1, cc.bp_id_agent_level1,
(select hbm.bp_code from hls_bp_master hbm where hbm.bp_id=bp_id_agent_level1) agent_bp_code,
(SELECT t.bp_name (SELECT t.bp_name
FROM hls_bp_master t FROM hls_bp_master t
WHERE t.bp_id = cc.bp_id_agent_level1) bp_id_agent_level1_n, WHERE t.bp_id = cc.bp_id_agent_level1) bp_id_agent_level1_n,
...@@ -85,6 +97,8 @@ ...@@ -85,6 +97,8 @@
ct.source_transaction_id, ct.source_transaction_id,
ct.contract_id, ct.contract_id,
'' contract_number, '' contract_number,
'' con_search_term_1,
'' vender_project_number,
ct.transaction_id transaction_id, ct.transaction_id transaction_id,
(select t.transaction_num (select t.transaction_num
from csh_transaction t from csh_transaction t
...@@ -103,6 +117,11 @@ ...@@ -103,6 +117,11 @@
where hbm.unit_id=h.unit_id where hbm.unit_id=h.unit_id
and hbm.bp_id=cc.bp_id and hbm.bp_id=cc.bp_id
and h.bp_category='AGENT') bp_id_agent_level1, and h.bp_category='AGENT') bp_id_agent_level1,
(select h.bp_code
from hls_bp_master hbm,hls_bp_master h
where hbm.unit_id=h.unit_id
and hbm.bp_id=cc.bp_id
and h.bp_category='AGENT') agent_bp_code,
(SELECT u.bp_name (SELECT u.bp_name
FROM hls_bp_master u,hls_bp_master hbm FROM hls_bp_master u,hls_bp_master hbm
WHERE u.unit_id = hbm.unit_id WHERE u.unit_id = hbm.unit_id
...@@ -119,13 +138,13 @@ ...@@ -119,13 +138,13 @@
from csh_transaction_contemp ct,csh_transaction cc from csh_transaction_contemp ct,csh_transaction cc
where ct.transaction_id = cc.transaction_id where ct.transaction_id = cc.transaction_id
and ct.trans_review_status = 'NEW') t1 and ct.trans_review_status = 'NEW') t1
#WHERE_CLAUSE# #WHERE_CLAUSE#
order by t1.contemp_id order by t1.contemp_id
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:data-filters> <bm:data-filters>
<bm:data-filter enforceOperations="query" expression="(t1.source_contract_id is null or(t1.source_contract_id is not null and t1.source_contract_id=${@source_contract_id})) "/> <bm:data-filter enforceOperations="query" expression="(t1.source_contract_id is null or(t1.source_contract_id is not null and t1.source_contract_id=${@source_contract_id}))"/>
<bm:data-filter enforceOperations="query" expression="t1.bp_id=${@bp_id} "/> <bm:data-filter enforceOperations="query" expression="t1.bp_id=${@bp_id} "/>
</bm:data-filters> </bm:data-filters>
</bm:model> </bm:model>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<!-- <!--
$Author: sf $Author: sf
$Date: 2019-9-9 下午01:23:36 $Date: 2019-9-9 下午01:23:36
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false"> <bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false">
<bm:fields> <bm:fields>
...@@ -104,6 +104,10 @@ ...@@ -104,6 +104,10 @@
<bm:field name="bp_id_telnet_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)" forInsert="false" forUpdate="false"/> <bm:field name="bp_id_telnet_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)" forInsert="false" forUpdate="false"/>
<bm:field name="bp_name_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)" forInsert="false" forUpdate="false"/> <bm:field name="bp_name_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)" forInsert="false" forUpdate="false"/>
<bm:field name="approve_status" expression=" nvl(( hlcm_cux_deposit_pkg.get_transaction_status_new(p_transaction_id=>t1.transaction_id,p_user_id=>1) ),'正常')" forInsert="false" forUpdate="false"/> <bm:field name="approve_status" expression=" nvl(( hlcm_cux_deposit_pkg.get_transaction_status_new(p_transaction_id=>t1.transaction_id,p_user_id=>1) ),'正常')" forInsert="false" forUpdate="false"/>
<bm:field name="vender_contract_number" expression="(select cc.search_term_1 from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="vender_project_number" expression="(select p.project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id)"/>
<bm:field name="business_type" expression="(select cc.business_type from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="business_type_desc" expression="(select hb.description from con_contract cc,hls_business_type_v hb where cc.business_type= hb.business_type and hb.enabled_flag = 'Y' and cc.contract_id = t1.ref_contract_id)"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -113,8 +117,9 @@ ...@@ -113,8 +117,9 @@
</bm:primary-key> </bm:primary-key>
<bm:data-filters> <bm:data-filters>
<bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/> <bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/>
<bm:data-filter name="query" expression="(t1.ref_contract_id is not null or (t1.ref_contract_id is null and nvl(t1.reversed_flag, 'N') = 'N' and t1.confirmed_flag not in ('ACCAUDITING', 'NEW', 'CT_REJECTED')))"/> <bm:data-filter name="query" expression="(t1.ref_contract_id is not null or (t1.ref_contract_id is null and nvl(t1.reversed_flag, 'N') = 'N' and t1.confirmed_flag not in ('ACCAUDITING', 'NEW', 'CT_REJECTED','ACCAUDITED_RECOI')))"/>
<bm:data-filter name="query" expression="(t1.transaction_type ='DEPOSIT')"/> <bm:data-filter name="query" expression="(t1.transaction_type ='DEPOSIT')"/>
<bm:data-filter name="query" expression="not exists(select 1 from csh_transaction ct where ct.transaction_id =t1.transaction_id and ct.deposit_trans_type in('vender_deposit'))"/>
<bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/> <bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/>
</bm:data-filters> </bm:data-filters>
<bm:query-fields> <bm:query-fields>
...@@ -165,5 +170,8 @@ ...@@ -165,5 +170,8 @@
<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/> <bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/>
<bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/> <bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/>
<bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/> <bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/>
<bm:query-field name="vender_contract_number" queryExpression="(SELECT cc.search_term_1 FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@vender_contract_number}||&apos;%&apos;"/>
<bm:query-field name="vender_project_number" queryExpression="(select p.project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id) like &apos;%&apos;||${@vender_project_number}||&apos;%&apos;"/>
<bm:query-field name="business_type" queryExpression="(SELECT cc.business_type FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@business_type}||&apos;%&apos;"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -18,6 +18,16 @@ ...@@ -18,6 +18,16 @@
(Select cc.contract_number (Select cc.contract_number
From con_contract cc From con_contract cc
Where cc.contract_id = t.contract_id) contract_number, Where cc.contract_id = t.contract_id) contract_number,
(select cc.search_term_1
from con_contract cc
where cc.contract_id = t.contract_id) AS vender_contract_number,
(select p.project_number
from prj_project_lease_item pi,
prj_project p,
con_contract_lease_item ci
where pi.source_project_id = p.project_id
and pi.project_lease_item_id = ci.project_lease_item_id
and ci.contract_id = t.contract_id) AS vender_project_number,
t.creation_date, t.creation_date,
t.created_by, t.created_by,
t.last_updated_by, t.last_updated_by,
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<!-- <!--
$Author: sf $Author: sf
$Date: 2019-9-9 下午01:23:36 $Date: 2019-9-9 下午01:23:36
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num " needAccessControl="false"> <bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num " needAccessControl="false">
<bm:fields> <bm:fields>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
From csh_transaction_return cr From csh_transaction_return cr
Where cr.transaction_id = t1.transaction_id Where cr.transaction_id = t1.transaction_id
And cr.status = 'APPROVING'),0)) from dual), And cr.status = 'APPROVING'),0)) from dual),
(Select (nvl(Sum(c.transaction_amount), 0) - (Select (nvl(Sum(c.transaction_amount), 0) -
nvl(Sum(c.write_off_amount), 0) - nvl(Sum(c.returned_amount), 0) - nvl(Sum(c.write_off_amount), 0) - nvl(Sum(c.returned_amount), 0) -
nvl(Sum((Select nvl(cr.return_amount, 0) nvl(Sum((Select nvl(cr.return_amount, 0)
From csh_transaction_return cr From csh_transaction_return cr
...@@ -130,7 +130,11 @@ ...@@ -130,7 +130,11 @@
And c.ref_contract_id = And c.ref_contract_id =
(Select c1.ref_contract_id (Select c1.ref_contract_id
From csh_transaction c1 From csh_transaction c1
Where c1.transaction_id = t1.transaction_id) ))" forInsert="false" forUpdate="false"/> Where c1.transaction_id = t1.transaction_id)) )" forInsert="false" forUpdate="false"/>
<bm:field name="vender_contract_number" expression="(select cc.search_term_1 vender_contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="vender_project_number" expression="(select p.project_number vender_project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id)"/>
<bm:field name="business_type" expression="(select cc.business_type from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="business_type_desc" expression="(select hb.description from con_contract cc,hls_business_type_v hb where cc.business_type=hb.business_type and hb.enabled_flag = 'Y'and cc.contract_id = t1.ref_contract_id)"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -141,7 +145,7 @@ ...@@ -141,7 +145,7 @@
<bm:data-filters> <bm:data-filters>
<bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/> <bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/>
<bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/> <bm:data-filter name="query" expression="((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0)"/>
<bm:data-filter name="query" expression="(t1.ref_contract_id is not null or (t1.ref_contract_id is null and nvl(t1.reversed_flag, 'N') = 'N' and t1.confirmed_flag not in ('ACCAUDITING', 'NEW', 'CT_REJECTED')))"/> <bm:data-filter name="query" expression="(t1.ref_contract_id is not null or (t1.ref_contract_id is null and nvl(t1.reversed_flag, 'N') = 'N' and t1.confirmed_flag not in ('ACCAUDITING', 'NEW', 'CT_REJECTED','ACCAUDITED_RECOI')))"/>
<bm:data-filter name="query" expression="(t1.transaction_type ='DEPOSIT')"/> <bm:data-filter name="query" expression="(t1.transaction_type ='DEPOSIT')"/>
<bm:data-filter name="query" expression="(t1.returned_flag not in ('RETURN'))"/> <bm:data-filter name="query" expression="(t1.returned_flag not in ('RETURN'))"/>
</bm:data-filters> </bm:data-filters>
...@@ -191,5 +195,8 @@ ...@@ -191,5 +195,8 @@
<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/> <bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/>
<bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/> <bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/>
<bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/> <bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/>
<bm:query-field name="vender_contract_number" queryExpression="(SELECT cc.search_term_1 FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like ${@vender_contract_number}"/>
<bm:query-field name="vender_project_number" queryExpression="(SELECT pp.project_number FROM con_contract_lease_item ci,prj_project_lease_item pi,prj_project pp WHERE ci.project_lease_item_id=pi.project_lease_item_id and pi.source_project_id=pp.project_id and ci.contract_id = t1.ref_contract_id ) like ${@vender_project_number}"/>
<bm:query-field name="business_type" queryExpression="(SELECT cc.business_type FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like ${@business_type}"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select * select
decode(v.vender_project_number,null,null,v.bp_agent_name) vender_name,
v.*
from (select from (select
cr.return_id, cr.return_id,
to_char(cr.return_date, 'yyyy-mm-dd') return_date, to_char(cr.return_date, 'yyyy-mm-dd') return_date,
...@@ -52,6 +54,21 @@ ...@@ -52,6 +54,21 @@
(select cc.contract_number (select cc.contract_number
from con_contract cc from con_contract cc
where cc.contract_id = ct.ref_contract_id) contract_number, where cc.contract_id = ct.ref_contract_id) contract_number,
(select cc.search_term_1
from con_contract cc
where cc.contract_id = ct.ref_contract_id) AS vender_contract_number,
ct.deposit_trans_type,
(select v.code_value_name
from sys_code_values_v v
where v.code = 'DEPOSIT_TRANS_TYPE'
and v.code_value = ct.deposit_trans_type) deposit_trans_type_desc,
(select p.project_number
from prj_project_lease_item pi,
prj_project p,
con_contract_lease_item ci
where pi.source_project_id = p.project_id
and pi.project_lease_item_id = ci.project_lease_item_id
and ci.contract_id = ct.ref_contract_id) AS vender_project_number,
(select a.bp_name (select a.bp_name
from hls_bp_master a from hls_bp_master a
where a.bp_id = ct.bp_id) bp_agent_name, where a.bp_id = ct.bp_id) bp_agent_name,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
where ha.bp_id(+) = hb.bp_id where ha.bp_id(+) = hb.bp_id
and ha.enabled_flag(+) = 'Y' and ha.enabled_flag(+) = 'Y'
and hb.enabled_flag = 'Y' and hb.enabled_flag = 'Y'
and hb.bp_category in ('TENANT', 'AGENT', 'THIRD_PARTY'))t #WHERE_CLAUSE# and hb.bp_category in ('TENANT', 'AGENT', 'THIRD_PARTY','VENDER','RENTER','MAN_FACTURER'))t #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<!-- <!--
$Author: sf $Author: sf
$Date: 2019-9-9 下午01:23:36 $Date: 2019-9-9 下午01:23:36
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false"> <bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false">
<bm:fields> <bm:fields>
...@@ -99,13 +99,17 @@ ...@@ -99,13 +99,17 @@
<bm:field name="acc_confirmed_by_desc" expression="(select description from sys_user where user_id=t1.acc_confirmed_by)" forInsert="false" forUpdate="false"/> <bm:field name="acc_confirmed_by_desc" expression="(select description from sys_user where user_id=t1.acc_confirmed_by)" forInsert="false" forUpdate="false"/>
<bm:field name="receipt_type_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)" forInsert="false" forUpdate="false"/> <bm:field name="receipt_type_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)" forInsert="false" forUpdate="false"/>
<bm:field name="deposit_trans_type"/> <bm:field name="deposit_trans_type"/>
<bm:field name="bp_name_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)" forInsert="false" forUpdate="false"/> <bm:field name="bp_name_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)" forInsert="false" forUpdate="false"/>
<bm:field name="bp_id_telnet_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)" forInsert="false" forUpdate="false"/> <bm:field name="bp_id_telnet_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)" forInsert="false" forUpdate="false"/>
<bm:field name="deposit_trans_type_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)" forInsert="false" forUpdate="false"/> <bm:field name="deposit_trans_type_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)" forInsert="false" forUpdate="false"/>
<bm:field name="approval_status" expression="decode(nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'), 'APPROVED', decode(nvl(t1.reversed_flag, 'N'), 'N', 'NEW', 'APPROVED'), nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'))"/> <bm:field name="approval_status" expression="decode(nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'), 'APPROVED', decode(nvl(t1.reversed_flag, 'N'), 'N', 'NEW', 'APPROVED'), nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'))"/>
<bm:field name="approval_status_desc" expression="(Select v.code_value_name From sys_code_values_v v Where v.code = &apos;WFL_STATUS&apos; And v.code_value = decode(nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'), 'APPROVED', decode(nvl(t1.reversed_flag, 'N'), 'N', 'NEW', 'APPROVED'), nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW')))"/> <bm:field name="approval_status_desc" expression="(Select v.code_value_name From sys_code_values_v v Where v.code = &apos;WFL_STATUS&apos; And v.code_value = decode(nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'), 'APPROVED', decode(nvl(t1.reversed_flag, 'N'), 'N', 'NEW', 'APPROVED'), nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW')))"/>
<bm:field name="transaction_wfl_id"/> <bm:field name="transaction_wfl_id"/>
</bm:fields> <bm:field name="vender_contract_number" expression="(select cc.search_term_1 vender_contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="vender_project_number" expression="(select p.project_number vender_project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id)"/>
<bm:field name="business_type" expression="(select cc.business_type from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="business_type_desc" expression="(select hb.description from con_contract cc,hls_business_type_v hb where cc.business_type= hb.business_type and hb.enabled_flag = 'Y' and cc.contract_id = t1.ref_contract_id)"/>
</bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
</bm:features> </bm:features>
...@@ -163,5 +167,8 @@ ...@@ -163,5 +167,8 @@
<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/> <bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/>
<bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/> <bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/>
<bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/> <bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/>
<bm:query-field name="vender_contract_number" queryExpression="(SELECT cc.search_term_1 FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@vender_contract_number}||&apos;%&apos;"/>
<bm:query-field name="vender_project_number" queryExpression="(select p.project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id) like &apos;%&apos;||${@vender_project_number}||&apos;%&apos;"/>
<bm:query-field name="business_type" queryExpression="(SELECT cc.business_type FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@business_type}||&apos;%&apos;"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<!-- <!--
$Author: sf $Author: sf
$Date: 2019-9-9 下午01:23:36 $Date: 2019-9-9 下午01:23:36
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false"> <bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_TRANSACTION" defaultOrderBy="t1.transaction_num" needAccessControl="false">
<bm:fields> <bm:fields>
...@@ -114,6 +114,10 @@ ...@@ -114,6 +114,10 @@
<bm:field name="bp_name_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)" forInsert="false" forUpdate="false"/> <bm:field name="bp_name_n" expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)" forInsert="false" forUpdate="false"/>
<bm:field name="source_type"/> <bm:field name="source_type"/>
<bm:field name="approve_status" expression=" nvl(( hlcm_cux_deposit_pkg.get_transaction_status_new(p_transaction_id=>t1.transaction_id,p_user_id=>1) ),'正常')" forInsert="false" forUpdate="false"/> <bm:field name="approve_status" expression=" nvl(( hlcm_cux_deposit_pkg.get_transaction_status_new(p_transaction_id=>t1.transaction_id,p_user_id=>1) ),'正常')" forInsert="false" forUpdate="false"/>
<bm:field name="vender_contract_number" expression="(select cc.search_term_1 vender_contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="vender_project_number" expression="(select p.project_number vender_project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id)"/>
<bm:field name="business_type" expression="(select cc.business_type from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:field name="business_type_desc" expression="(select hb.description from con_contract cc,hls_business_type_v hb where cc.business_type= hb.business_type and hb.enabled_flag = 'Y' and cc.contract_id = t1.ref_contract_id)"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -138,8 +142,8 @@ ...@@ -138,8 +142,8 @@
and t1.collection_classes = 'DEPOSIT' and t1.collection_classes = 'DEPOSIT'
and t1.paid_byother_flag = 'F') or and t1.paid_byother_flag = 'F') or
(t1.ref_contract_id is null and nvl(t1.reversed_flag, 'N') = 'N' and (t1.ref_contract_id is null and nvl(t1.reversed_flag, 'N') = 'N' and
t1.confirmed_flag not in ('ACCAUDITING', 'NEW', 'CT_REJECTED')))"/> t1.confirmed_flag not in ('ACCAUDITING', 'NEW', 'CT_REJECTED','ACCAUDITED_RECOI')))"/>
<bm:data-filter name="query" expression="(t1.returned_flag &lt;&gt; 'RETURN')"/> <bm:data-filter name="query" expression="(t1.returned_flag &lt;&gt; 'RETURN')"/>
<bm:data-filter name="query" expression="(exists ( <bm:data-filter name="query" expression="(exists (
(select 1 (select 1
from exp_emp_assign_e_v ee from exp_emp_assign_e_v ee
...@@ -203,5 +207,8 @@ ...@@ -203,5 +207,8 @@
<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/> <bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/>
<bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/> <bm:query-field name="bp_name_n" queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like &apos;%&apos;||${@bp_name_n}||&apos;%&apos; "/>
<bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/> <bm:query-field name="deposit_trans_type" queryExpression="t1.deposit_trans_type=${@deposit_trans_type}"/>
<bm:query-field name="vender_contract_number" queryExpression="(SELECT cc.search_term_1 FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@vender_contract_number}||&apos;%&apos;"/>
<bm:query-field name="vender_project_number" queryExpression="(select p.project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id) like &apos;%&apos;||${@vender_project_number}||&apos;%&apos;"/>
<bm:query-field name="business_type" queryExpression="(SELECT cc.business_type FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like &apos;%&apos;||${@business_type}||&apos;%&apos;"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<a:model-query fetchAll="true" model="csh.CSH511.fnd_financial_option" rootPath="fnd_financial_option_path"/> <a:model-query fetchAll="true" model="csh.CSH511.fnd_financial_option" rootPath="fnd_financial_option_path"/>
<a:model-query fetchAll="true" model="csh.CSH511.csh_transaction_default_exchange_rate_type" <a:model-query fetchAll="true" model="csh.CSH511.csh_transaction_default_exchange_rate_type"
rootPath="default_exchange_rate_type_path"/> rootPath="default_exchange_rate_type_path"/>
<a:model-query model="cus_deposit/CUS_DEPOSIT100.csh_transaction_deposit_entry_write_off" rootPath="deposit_extend_month" /> <a:model-query model="cus_deposit/CUS_DEPOSIT100.csh_transaction_deposit_entry_write_off" rootPath="deposit_extend_month"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="hn2050_upload_win_link" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="hn2050_upload_win_link" url="${/request/@context_path}/uploadFile.lview"/>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
$('${/parameter/@winId}').close(); $('${/parameter/@winId}').close();
} }
function cshdeposit100_receipt_submit() { function cshdeposit100_receipt_submit() {
if ($('deposit_ertry_detail_result_ds').validate()) { if ($('deposit_ertry_detail_result_ds').validate()) {
var head_record = $('csh_transaction_receipt_head_ds').getAt(0); var head_record = $('csh_transaction_receipt_head_ds').getAt(0);
var deposit_records = $('deposit_ertry_detail_result_ds').getAll(); var deposit_records = $('deposit_ertry_detail_result_ds').getAll();
var param = {}; var param = {};
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
var deposit_record; var deposit_record;
deposit_record = deposit_records[i]; deposit_record = deposit_records[i];
deposit_record.set('_status', 'insert'); deposit_record.set('_status', 'insert');
//收款日期跨月则取系统当前时间,否则取收款日期 18083 2023/6/27 //收款日期跨月则取系统当前时间,否则取收款日期 18083 2023/7/6
if ('${/model/deposit_extend_month/record/@check_flag}' =='Y'){ if ('${/model/deposit_extend_month/record/@check_flag}' =='Y'){
deposit_record.set('write_off_date',new Date().format('yyyy/mm/dd')); deposit_record.set('write_off_date',new Date().format('yyyy/mm/dd'));
}else{ }else{
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
} }
function on_csh_trx_deposit_write_off_add(ds, record, index) { function on_csh_trx_deposit_write_off_add(ds, record, index) {
var head_record = $('csh_transaction_receipt_head_ds').getAt(0); var head_record = $('csh_transaction_receipt_head_ds').getAt(0);
if(head_record.data.bp_category=='TENANT'&&head_record.data.collection_classes=='DEPOSIT'){ if((head_record.data.bp_category=='TENANT'||head_record.data.bp_category=='RENTER')&&(head_record.data.collection_classes=='DEPOSIT'||head_record.data.collection_classes=='OPERAT_DEPOSIT')){
$('deposit_ertry_detail_result_ds').fields.contract_number.pro.lovservice='cus_deposit.CUS_DEPOSIT100.con_deposit100_v?bp_id_tenant=${/parameter/@bp_id}'; $('deposit_ertry_detail_result_ds').fields.contract_number.pro.lovservice='cus_deposit.CUS_DEPOSIT100.con_deposit100_v?bp_id_tenant=${/parameter/@bp_id}';
} }
record.set('je_date', head_record.get('transaction_date')); record.set('je_date', head_record.get('transaction_date'));
...@@ -183,7 +183,12 @@ ...@@ -183,7 +183,12 @@
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="PAID_BYOTHER_FLAG_DS" lookupCode="PAID_BYOTHER_FLAG"/> <a:dataSet id="PAID_BYOTHER_FLAG_DS" lookupCode="PAID_BYOTHER_FLAG"/>
<a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/> <a:dataSet id="DEPOSIT_TRANS_TYPE_DS_NEW" autoCreate="true">
<a:datas>
<a:record code_value="down_payment_deposit" code_value_name="首付款保证金"/>
<a:record code_value="rent_deposit" code_value_name="租金保证金"/>
</a:datas>
</a:dataSet>
<a:dataSet id="exchangerate_type_ds"> <a:dataSet id="exchangerate_type_ds">
<a:datas dataSource="/model/exchangerate_type_path"/> <a:datas dataSource="/model/exchangerate_type_path"/>
</a:dataSet> </a:dataSet>
...@@ -301,9 +306,11 @@ ...@@ -301,9 +306,11 @@
<a:map from="bp_id_agent_level1_n" to="bp_id_agent_level1_n"/> <a:map from="bp_id_agent_level1_n" to="bp_id_agent_level1_n"/>
<a:map from="bp_name" to="bp_name"/> <a:map from="bp_name" to="bp_name"/>
<a:map from="bp_id_tenant" to="bp_id_tenant"/> <a:map from="bp_id_tenant" to="bp_id_tenant"/>
<a:map from="con_search_term_1" to="con_search_term_1"/>
<a:map from="vender_project_number" to="vender_project_number"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS" <a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS_NEW"
returnField="deposit_trans_type" displayField="code_value_name" valueField="code_value" required="true"/> returnField="deposit_trans_type" displayField="code_value_name" valueField="code_value" required="true"/>
</a:fields> </a:fields>
<a:events> <a:events>
...@@ -353,7 +360,7 @@ ...@@ -353,7 +360,7 @@
</a:box> </a:box>
</a:fieldSet> </a:fieldSet>
<a:grid id="deposit_ertry_detail_result_grid" bindTarget="deposit_ertry_detail_result_ds" height="200" <a:grid id="deposit_ertry_detail_result_grid" bindTarget="deposit_ertry_detail_result_ds" height="200"
navBar="false" width="800"> navBar="false" width="1050">
<a:toolBar> <a:toolBar>
<a:button type="add"/> <a:button type="add"/>
<a:button type="delete"/> <a:button type="delete"/>
...@@ -361,6 +368,8 @@ ...@@ -361,6 +368,8 @@
<a:columns> <a:columns>
<a:column name="contract_number" align="center" editor="contract_number_lov" prompt="合同编号" <a:column name="contract_number" align="center" editor="contract_number_lov" prompt="合同编号"
width="135"/> width="135"/>
<a:column name="con_search_term_1" align="center" prompt="厂商合同编号" width="122"/>
<a:column name="vender_project_number" align="center" prompt="采购单编号" width="122"/>
<a:column name="bp_id_agent_level1_n" align="center" prompt="代理店" width="160"/> <a:column name="bp_id_agent_level1_n" align="center" prompt="代理店" width="160"/>
<a:column name="bp_name" align="center" prompt="承租人" width="122"/> <a:column name="bp_name" align="center" prompt="承租人" width="122"/>
<a:column name="deposit_trans_type_desc" align="center" editor="deposit_type_box" prompt="保证金类型" <a:column name="deposit_trans_type_desc" align="center" editor="deposit_type_box" prompt="保证金类型"
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<a:init-procedure> <a:init-procedure>
<batch-apply sourcePath="/parameter/details"> <batch-apply sourcePath="/parameter/details">
<a:model-update model="cus_deposit.CUS_DEPOSIT102.csh_deposit_transfer_execute" trace="true"/> <a:model-update model="cus_deposit.CUS_DEPOSIT102.csh_deposit_transfer_execute" trace="true"/>
<a:model-execute model="cus_deposit.CUS_DEPOSIT102.csh_deposit_transfer_execute" trace="true"/>
</batch-apply> </batch-apply>
<a:model-execute model="cus_deposit.CUS_DEPOSIT102.csh_deposit_transfer_execute" trace="true"/>
</a:init-procedure> </a:init-procedure>
<a:service-output output="/parameter"/> <a:service-output output="/parameter"/>
</a:service> </a:service>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
$Author: niminmin $Author: niminmin
$Date: 2019-10-28 上午11:10:33 $Date: 2019-10-28 上午11:10:33
$Revision: 1.0 $Revision: 1.0
$Purpose:保证金划转 $Purpose:保证金划转
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
...@@ -39,13 +39,13 @@ ...@@ -39,13 +39,13 @@
var ds_id = 'deposit_transfer_maintain_result_ds'; var ds_id = 'deposit_transfer_maintain_result_ds';
var ds = $(ds_id); var ds = $(ds_id);
var record = ds.getSelected()[0]; var record = ds.getSelected()[0];
var url = $('csh_transaction_transfer_detail_link').getUrl(); var url = $('csh_transaction_transfer_detail_link').getUrl();
Leaf.Masker.mask(Ext.getBody(), '正在执行...'); Leaf.Masker.mask(Ext.getBody(), '正在执行...');
Leaf.request({ Leaf.request({
url: $('check_csh_transaction_status_link_id').getUrl(), url: $('check_csh_transaction_status_link_id').getUrl(),
para: { para: {
contract_id:record.get('contract_id'), contract_id:record.get('contract_id'),
transaction_id:record.get('transaction_id') transaction_id:record.get('transaction_id')
}, },
success: function () { success: function () {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
...@@ -55,8 +55,9 @@ ...@@ -55,8 +55,9 @@
params: { params: {
winId: 'csh_transaction_deposit_transfer_link_winid', winId: 'csh_transaction_deposit_transfer_link_winid',
contract_id:record.get('contract_id'), contract_id:record.get('contract_id'),
transaction_id:record.get('transaction_id'), transaction_id:record.get('transaction_id'),
bp_id_agent_level1:record.get('bp_id'), bp_id_agent_level1:record.get('bp_id'),
agent_bp_code:record.get('agent_bp_code'),
deposit_trans_type:record.get('deposit_trans_type'), deposit_trans_type:record.get('deposit_trans_type'),
deposit_trans_type_desc:record.get('deposit_trans_type_n') deposit_trans_type_desc:record.get('deposit_trans_type_n')
}, },
...@@ -82,6 +83,13 @@ ...@@ -82,6 +83,13 @@
<a:dataSets> <a:dataSets>
<a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/> <a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/>
<a:dataSet id="TRANS_REVIEW_STATUS_DS" lookupCode="TRANS_REVIEW_STATUS"/> <a:dataSet id="TRANS_REVIEW_STATUS_DS" lookupCode="TRANS_REVIEW_STATUS"/>
<a:dataSet id="hls_business_type_ds" fetchAll="true">
<a:datas>
<a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营租赁"/>
</a:datas>
</a:dataSet>
<a:dataSet id="csh_deposit_transfer_maintain_query_ds" autoCreate="true"> <a:dataSet id="csh_deposit_transfer_maintain_query_ds" autoCreate="true">
<a:fields> <a:fields>
<a:field name="deposit_trans_type"/> <a:field name="deposit_trans_type"/>
...@@ -92,6 +100,11 @@ ...@@ -92,6 +100,11 @@
returnField="deposit_trans_type" displayField="code_value_name" valueField="code_value"/> returnField="deposit_trans_type" displayField="code_value_name" valueField="code_value"/>
<a:field name="trans_review_status_desc" options="TRANS_REVIEW_STATUS_DS" <a:field name="trans_review_status_desc" options="TRANS_REVIEW_STATUS_DS"
returnField="trans_review_status" displayField="code_value_name" valueField="code_value"/> returnField="trans_review_status" displayField="code_value_name" valueField="code_value"/>
<a:field name="vender_contract_number"/>
<a:field name="vender_project_number"/>
<a:field name="business_type"/>
<a:field name="business_type_desc" options="hls_business_type_ds"
returnField="business_type" displayField="code_value_name" valueField="code_value"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="deposit_transfer_maintain_result_ds" autoPageSize="true" autoQuery="true" model="cus_deposit.CUS_DEPOSIT102.csh_transaction_query" queryDataSet="csh_deposit_transfer_maintain_query_ds" selectable="true" selectionModel="single"> <a:dataSet id="deposit_transfer_maintain_result_ds" autoPageSize="true" autoQuery="true" model="cus_deposit.CUS_DEPOSIT102.csh_transaction_query" queryDataSet="csh_deposit_transfer_maintain_query_ds" selectable="true" selectionModel="single">
...@@ -111,6 +124,9 @@ ...@@ -111,6 +124,9 @@
<a:textField name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" bindTarget="csh_deposit_transfer_maintain_query_ds"/> <a:textField name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" bindTarget="csh_deposit_transfer_maintain_query_ds"/>
<a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_deposit_transfer_maintain_query_ds"/> <a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_deposit_transfer_maintain_query_ds"/>
<a:comboBox name="trans_review_status_desc" prompt="复核状态" bindTarget="csh_deposit_transfer_maintain_query_ds"/> <a:comboBox name="trans_review_status_desc" prompt="复核状态" bindTarget="csh_deposit_transfer_maintain_query_ds"/>
<a:textField name="vender_contract_number" prompt="厂商合同编号" bindTarget="csh_deposit_transfer_maintain_query_ds"/>
<a:textField name="vender_project_number" prompt="采购单编号" bindTarget="csh_deposit_transfer_maintain_query_ds"/>
<a:comboBox name="business_type_desc" prompt="业务类型" bindTarget="csh_deposit_transfer_maintain_query_ds"/>
</a:form> </a:form>
<a:fieldSet labelWidth="150" style="margin-left:20px"> <a:fieldSet labelWidth="150" style="margin-left:20px">
<a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="deposit_transfer_maintain_result_ds" marginHeight="165" marginWidth="100" navBar="true" > <a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="deposit_transfer_maintain_result_ds" marginHeight="165" marginWidth="100" navBar="true" >
...@@ -118,6 +134,9 @@ ...@@ -118,6 +134,9 @@
<a:column name="bp_name" prompt="代理店" align="center" width="200"/> <a:column name="bp_name" prompt="代理店" align="center" width="200"/>
<a:column name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" align="center" width="180"/> <a:column name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" align="center" width="180"/>
<a:column name="contract_number" prompt="合同编号" align="center"/> <a:column name="contract_number" prompt="合同编号" align="center"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" align="center"/>
<a:column name="business_type_desc" prompt="业务类型" align="center"/>
<a:column name="contract_name" prompt="合同名称" align="center" width="150"/> <a:column name="contract_name" prompt="合同名称" align="center" width="150"/>
<a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/> <a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/>
<a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" /> <a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
$Author: 26887cz $Author: 26887cz
$Date: 2021-08-03 上午11:10:33 $Date: 2021-08-03 上午11:10:33
$Revision: 1.0 $Revision: 1.0
$Purpose:保证金划转复核 $Purpose:保证金划转复核
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
params: { params: {
winId: 'csh_transaction_detail_transfer_link_winid', winId: 'csh_transaction_detail_transfer_link_winid',
contract_id:record.get('source_contract_id'), contract_id:record.get('source_contract_id'),
transaction_id:record.get('source_transaction_id'), transaction_id:record.get('source_transaction_id'),
batch_id:record.get('batch_id'), batch_id:record.get('batch_id'),
bp_id_agent_level1:record.get('bp_id'), bp_id_agent_level1:record.get('bp_id'),
deposit_trans_type:record.get('deposit_trans_type'), deposit_trans_type:record.get('deposit_trans_type'),
...@@ -63,15 +63,23 @@ ...@@ -63,15 +63,23 @@
var role_code = '${/model/role_code/record/@role_code}'; var role_code = '${/model/role_code/record/@role_code}';
var query_redord = $('csh_deposit_review_maintain_query_ds').getCurrentRecord(); var query_redord = $('csh_deposit_review_maintain_query_ds').getCurrentRecord();
if (role_code == '0002') { if (role_code == '0002') {
//CFO只能看到复审中(CFO)的数据,排除掉营业本部长经租和融租的数据
$('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING');
//$('deposit_review_maintain_result_ds').setQueryParameter('trans_review_status','REVIEWING1'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status_op','REVIEWING_OP');
query_redord.set('trans_review_status','REVIEWING1'); query_redord.set('trans_review_status','REVIEWING1');
query_redord.set('trans_review_status_desc','复审中'); query_redord.set('trans_review_status_desc','复审中');
} else if (role_code == '0003' || role_code == '0005') { } else if (role_code == '0003' || role_code == '0005') {
//营业本部长融租只能看到融租的数据,排除CFO和经租本部长的数据
$('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING1'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING1');
//$('deposit_review_maintain_result_ds').setQueryParameter('trans_review_status','REVIEWING'); $('deposit_review_maintain_result_ds').setQueryParameter('no_status_op','REVIEWING_OP');
query_redord.set('trans_review_status','REVIEWING'); query_redord.set('trans_review_status','REVIEWING');
query_redord.set('trans_review_status_desc','初审中'); query_redord.set('trans_review_status_desc','初审中(营业本部长-融租)');
}else if(role_code == '0036'){
//经租营业本部长排除非经租营业本部长及CFO
$('deposit_review_maintain_result_ds').setQueryParameter('no_status','REVIEWING1');
$('deposit_review_maintain_result_ds').setQueryParameter('no_status_op','REVIEWING');
query_redord.set('trans_review_status','REVIEWING_OP');
query_redord.set('trans_review_status_desc','初审中(营业本部长-经租)');
} }
$('deposit_review_maintain_result_ds').query(); $('deposit_review_maintain_result_ds').query();
}); });
...@@ -80,6 +88,13 @@ ...@@ -80,6 +88,13 @@
<a:dataSets> <a:dataSets>
<a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/> <a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/>
<a:dataSet id="TRANS_REVIEW_STATUS_DS" lookupCode="TRANS_REVIEW_STATUS"/> <a:dataSet id="TRANS_REVIEW_STATUS_DS" lookupCode="TRANS_REVIEW_STATUS"/>
<a:dataSet id="hls_business_type_ds" fetchAll="true">
<a:datas>
<a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营租赁"/>
</a:datas>
</a:dataSet>
<a:dataSet id="csh_deposit_review_maintain_query_ds" autoCreate="true"> <a:dataSet id="csh_deposit_review_maintain_query_ds" autoCreate="true">
<a:fields> <a:fields>
<a:field name="deposit_trans_type"/> <a:field name="deposit_trans_type"/>
...@@ -91,6 +106,11 @@ ...@@ -91,6 +106,11 @@
<a:field name="trans_review_status_desc" options="TRANS_REVIEW_STATUS_DS" <a:field name="trans_review_status_desc" options="TRANS_REVIEW_STATUS_DS"
returnField="trans_review_status" displayField="code_value_name" valueField="code_value"/> returnField="trans_review_status" displayField="code_value_name" valueField="code_value"/>
<a:field name="trans_review_status"/> <a:field name="trans_review_status"/>
<a:field name="vender_contract_number"/>
<a:field name="vender_project_number"/>
<a:field name="business_type"/>
<a:field name="business_type_desc" options="hls_business_type_ds"
returnField="business_type" displayField="code_value_name" valueField="code_value"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="deposit_review_maintain_result_ds" autoPageSize="true" autoQuery="false" model="cus_deposit.CUS_DEPOSIT102.csh_transaction_review_execute" queryDataSet="csh_deposit_review_maintain_query_ds" selectable="true" selectionModel="single"> <a:dataSet id="deposit_review_maintain_result_ds" autoPageSize="true" autoQuery="false" model="cus_deposit.CUS_DEPOSIT102.csh_transaction_review_execute" queryDataSet="csh_deposit_review_maintain_query_ds" selectable="true" selectionModel="single">
...@@ -110,6 +130,9 @@ ...@@ -110,6 +130,9 @@
<a:textField name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" bindTarget="csh_deposit_review_maintain_query_ds"/> <a:textField name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" bindTarget="csh_deposit_review_maintain_query_ds"/>
<a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_deposit_review_maintain_query_ds"/> <a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_deposit_review_maintain_query_ds"/>
<a:comboBox name="trans_review_status_desc" prompt="复核状态" bindTarget="csh_deposit_review_maintain_query_ds"/> <a:comboBox name="trans_review_status_desc" prompt="复核状态" bindTarget="csh_deposit_review_maintain_query_ds"/>
<a:textField name="vender_contract_number" prompt="厂商合同编号" bindTarget="csh_deposit_review_maintain_query_ds"/>
<a:textField name="vender_project_number" prompt="采购单编号" bindTarget="csh_deposit_review_maintain_query_ds"/>
<a:comboBox name="business_type_desc" prompt="业务类型" bindTarget="csh_deposit_review_maintain_query_ds"/>
</a:form> </a:form>
<a:fieldSet labelWidth="150" style="margin-left:20px"> <a:fieldSet labelWidth="150" style="margin-left:20px">
<a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="deposit_review_maintain_result_ds" marginHeight="165" marginWidth="100" navBar="true" > <a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="deposit_review_maintain_result_ds" marginHeight="165" marginWidth="100" navBar="true" >
...@@ -118,6 +141,9 @@ ...@@ -118,6 +141,9 @@
<a:column name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" align="center" width="120"/> <a:column name="bp_id_telnet_n" prompt="承租人/收款商业伙伴" align="center" width="120"/>
<a:column name="contract_number" prompt="合同编号" align="center"/> <a:column name="contract_number" prompt="合同编号" align="center"/>
<a:column name="contract_name" prompt="合同名称" align="center" width="200"/> <a:column name="contract_name" prompt="合同名称" align="center" width="200"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" align="center"/>
<a:column name="business_type_desc" prompt="业务类型" align="center"/>
<a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/> <a:column name="deposit_trans_type_n" prompt="保证金类型" width="110" align="center"/>
<a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" /> <a:column name="unwrite_off_amount" prompt="剩余可用金额" width="110" renderer="Leaf.formatMoney" align="right" />
<a:column name="approve_status" prompt="合同状态" width="80" align="center"/> <a:column name="approve_status" prompt="合同状态" width="80" align="center"/>
......
...@@ -283,10 +283,22 @@ ...@@ -283,10 +283,22 @@
<a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/> <a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/>
<a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/> <a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/>
<a:dataSet id="hls_business_type_ds" fetchAll="true">
<a:datas>
<a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营租赁"/>
</a:datas>
</a:dataSet>
<a:dataSet id="csh_transaction_receipt_maintain_query_ds" autoCreate="true"> <a:dataSet id="csh_transaction_receipt_maintain_query_ds" autoCreate="true">
<a:fields> <a:fields>
<a:field name="deposit_trans_type"/> <a:field name="deposit_trans_type"/>
<a:field name="contract_number"/> <a:field name="contract_number"/>
<a:field name="vender_contract_number"/>
<a:field name="vender_project_number"/>
<a:field name="business_type"/>
<a:field name="business_type_desc" options="hls_business_type_ds"
returnField="business_type" displayField="code_value_name" valueField="code_value"/>
<a:field name="bp_name_n"/> <a:field name="bp_name_n"/>
<a:field name="bp_id_telnet_n"/> <a:field name="bp_id_telnet_n"/>
<a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS" <a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS"
...@@ -507,6 +519,11 @@ ...@@ -507,6 +519,11 @@
bindTarget="csh_transaction_receipt_maintain_query_ds"/> bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" <a:comboBox name="deposit_trans_type_desc" prompt="保证金类型"
bindTarget="csh_transaction_receipt_maintain_query_ds"/> bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="vender_contract_number" prompt="厂商合同编号"
bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="vender_project_number" prompt="采购单编号"
bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:comboBox name="business_type_desc" prompt="业务类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
</a:fieldSet> </a:fieldSet>
</a:hBox> </a:hBox>
</a:form> </a:form>
...@@ -524,6 +541,9 @@ ...@@ -524,6 +541,9 @@
<a:column name="bp_name" prompt="代理店/厂商" align="center"/> <a:column name="bp_name" prompt="代理店/厂商" align="center"/>
<a:column name="bp_id_telnet_n" prompt="承租人" align="center"/> <a:column name="bp_id_telnet_n" prompt="承租人" align="center"/>
<a:column name="contract_number" prompt="合同编号" align="center"/> <a:column name="contract_number" prompt="合同编号" align="center"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" align="center"/>
<a:column name="business_type_desc" prompt="业务类型" align="center"/>
<a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" <a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT"
width="100" renderer="Leaf.formatMoney"/> width="100" renderer="Leaf.formatMoney"/>
<a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/> <a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: qwm $Author: qwm
$Date: 2013-5-31 下午02:16:44 $Date: 2013-5-31 下午02:16:44
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
modelaction="update"/> modelaction="update"/>
<a:link id="csh560_start_wfl_link" model="cus_deposit.CUS_DEPOSIT106.return_workflow_start" <a:link id="csh560_start_wfl_link" model="cus_deposit.CUS_DEPOSIT106.return_workflow_start"
modelaction="execute"/> modelaction="execute"/>
<a:link id="deposit_csh_return_bp_name_link" model="cus_deposit.CUS_DEPOSIT106.check_csh_bp_name" modelaction="query"/> <a:link id="deposit_csh_return_bp_name_link" model="cus_deposit.CUS_DEPOSIT106.check_csh_bp_name" modelaction="query"/>
<script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/> <script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}'; var csh_return_atm_id = '${/model/csh_return_list_id/record/@return_list_id}';
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
prompt="退款用户" width="185"/> prompt="退款用户" width="185"/>
</a:box> </a:box>
<a:box id="contract_number_ds" column="4" labelWidth="115"> <a:box id="contract_number_ds" column="4" labelWidth="115">
<a:textField name="contract_number" bindTarget="csh_transaction_deposit_return_maintain_ds" <a:textField name="contract_number" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="合同编号" readOnly="true" width="180"/> prompt="合同编号" readOnly="true" width="180"/>
<a:textField name="bp_id_telnet_code" bindTarget="csh_transaction_deposit_return_maintain_ds" <a:textField name="bp_id_telnet_code" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="承租人编码" readOnly="true" width="170"/> prompt="承租人编码" readOnly="true" width="170"/>
...@@ -252,9 +252,11 @@ ...@@ -252,9 +252,11 @@
prompt="承租人名称" readOnly="true" width="170"/> prompt="承租人名称" readOnly="true" width="170"/>
<!-- <a:datePicker name="lasted_account_date" bindTarget="csh_transaction_deposit_return_maintain_ds"--> <!-- <a:datePicker name="lasted_account_date" bindTarget="csh_transaction_deposit_return_maintain_ds"-->
<!-- prompt="最后一次入账时间" width="185" readOnly="true"/>--> <!-- prompt="最后一次入账时间" width="185" readOnly="true"/>-->
<a:numberField name="left_amount" allowDecimals="true" allowFormat="true" <!--<a:numberField name="left_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_deposit_return_maintain_ds" allowNegative="false" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="合同剩余保证金" readOnly="true" width="185"/> prompt="合同剩余保证金" readOnly="true" width="185"/>-->
<a:textField name="vender_name" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="厂商" readOnly="true" width="170"/>
</a:box> </a:box>
<a:box column="4" labelWidth="115"> <a:box column="4" labelWidth="115">
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_deposit_return_maintain_ds" <a:textField name="bp_bank_account_name" bindTarget="csh_transaction_deposit_return_maintain_ds"
...@@ -267,11 +269,28 @@ ...@@ -267,11 +269,28 @@
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" width="170"/>--> prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" width="170"/>-->
<a:textField name="bp_bank_branch_name" bindTarget="csh_transaction_deposit_return_maintain_ds" <a:textField name="bp_bank_branch_name" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="对方分行名称" width="185"/> prompt="对方分行名称" width="185"/>
<!--<a:numberField name="remain_amount" allowDecimals="true" allowFormat="true"
bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="本次退款后剩余金额" readOnly="true" width="180"/>
<a:label name="attach" bindTarget="csh_transaction_deposit_return_maintain_ds" renderer="attach_renderer" prompt="附件" width="170"/>-->
</a:box>
<a:box column="4" labelWidth="115">
<a:textField name="deposit_trans_type_desc" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="保证金类型" readOnly="true" width="180"/>
<a:numberField name="left_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="合同剩余保证金" readOnly="true" width="185"/>
<a:numberField name="remain_amount" allowDecimals="true" allowFormat="true" <a:numberField name="remain_amount" allowDecimals="true" allowFormat="true"
bindTarget="csh_transaction_deposit_return_maintain_ds" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="本次退款后剩余金额" readOnly="true" width="180"/> prompt="本次退款后剩余金额" readOnly="true" width="180"/>
<a:label name="attach" bindTarget="csh_transaction_deposit_return_maintain_ds" renderer="attach_renderer" prompt="附件" width="170"/> <a:label name="attach" bindTarget="csh_transaction_deposit_return_maintain_ds" renderer="attach_renderer" prompt="附件" width="170"/>
</a:box> </a:box>
<a:box column="4" labelWidth="115">
<a:textField name="vender_contract_number" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="厂商合同编号" readOnly="true" width="180"/>
<a:textField name="vender_project_number" bindTarget="csh_transaction_deposit_return_maintain_ds"
prompt="采购单编号" readOnly="true" width="180"/>
</a:box>
<a:box column="1"> <a:box column="1">
<a:textArea name="description" bindTarget="csh_transaction_deposit_return_maintain_ds" prompt="备注" <a:textArea name="description" bindTarget="csh_transaction_deposit_return_maintain_ds" prompt="备注"
width="849"/> width="849"/>
...@@ -289,6 +308,8 @@ ...@@ -289,6 +308,8 @@
<a:column name="transaction_num" prompt="目标单据编号" width="150" align="center"/> <a:column name="transaction_num" prompt="目标单据编号" width="150" align="center"/>
<a:column name="transaction_deposit_amount" prompt="分配金额" align="right" renderer="Leaf.formatMoney"/> <a:column name="transaction_deposit_amount" prompt="分配金额" align="right" renderer="Leaf.formatMoney"/>
<a:column name="contract_number" prompt="合同编号" width="150" align="center"/> <a:column name="contract_number" prompt="合同编号" width="150" align="center"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" width="150" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" width="150" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
...@@ -346,7 +367,7 @@ ...@@ -346,7 +367,7 @@
// record.getField('return_date').setRequired(true); // record.getField('return_date').setRequired(true);
// record.getField('return_amount').setRequired(true); // record.getField('return_amount').setRequired(true);
var deposit_record = $('csh_transaction_deposit_return_maintain_ds').getCurrentRecord(); var deposit_record = $('csh_transaction_deposit_return_maintain_ds').getCurrentRecord();
//判断现金事务最初的收款商业伙伴与对方账户户名是否一致,不一致则不带出 //判断现金事务最初的收款商业伙伴与对方账户户名是否一致,不一致则不带出
Leaf.request({ Leaf.request({
url: $('deposit_csh_return_bp_name_link').getUrl(), url: $('deposit_csh_return_bp_name_link').getUrl(),
para: { para: {
...@@ -372,14 +393,24 @@ ...@@ -372,14 +393,24 @@
scope: this scope: this
}); });
//deposit_record.set('csh_return_bp_name', record.get('bp_name'));
//deposit_record.set('csh_return_bp_id', record.get('bp_id'));
deposit_record.set('contract_number', record.get('contract_number')); deposit_record.set('contract_number', record.get('contract_number'));
deposit_record.set('bp_id_telnet_code', record.get('bp_id_telnet_code')); deposit_record.set('bp_id_telnet_code', record.get('bp_id_telnet_code'));
deposit_record.set('bp_id_telnet_n', record.get('bp_id_telnet_n')); deposit_record.set('bp_id_telnet_n', record.get('bp_id_telnet_n'));
deposit_record.set('bp_bank_branch_name', record.get('bp_bank_branch_name')); deposit_record.set('bp_bank_branch_name', record.get('bp_bank_branch_name'));
//未入账现金事务隐藏合同编号、承租人编码、承租人名称、合同剩余保证金 18083 2023/7/28 deposit_record.set('deposit_trans_type_desc', record.get('deposit_trans_type_desc'));
deposit_record.set('vender_contract_number', record.get('vender_contract_number'));
deposit_record.set('vender_project_number', record.get('vender_project_number'));
//存在采购单则带出厂商字段
if (record.get('vender_project_number')){
deposit_record.set('vender_name', record.get('bp_name'));
}
//未入账现金事务隐藏合同编号、承租人编码、承租人名称、合同剩余保证金 18083 2023/7/28
if(Ext.isEmpty(record.get('ref_contract_id'))){ if(Ext.isEmpty(record.get('ref_contract_id'))){
document.getElementById('contract_number_ds').style.display='none'; document.getElementById('contract_number_ds').style.display='none';
} }
} }
]]></script> ]]></script>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: qwm $Author: qwm
$Date: 2013-5-31 下午02:16:44 $Date: 2013-5-31 下午02:16:44
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
...@@ -116,15 +116,17 @@ ...@@ -116,15 +116,17 @@
if("${/model/seq_info/record/@position_012_flag}"=="1" && "${/model/seq_info/record/@current_seq}"=="5") { if("${/model/seq_info/record/@position_012_flag}"=="1" && "${/model/seq_info/record/@current_seq}"=="5") {
record.getField('finance_flag').setReadOnly(false); record.getField('finance_flag').setReadOnly(false);
record.set('finance_flag','N'); record.set('finance_flag','N');
if(Ext.isEmpty(record.get('contract_number'))){ if(Ext.isEmpty(record.get('contract_number'))){
document.getElementById('contract_number_ds').style.display='none'; document.getElementById('contract_number_ds').style.display='none';
} }
}else{ }else{
record.set('finance_flag','Y'); record.set('finance_flag','Y');
record.getField('finance_flag').setReadOnly(true); record.getField('finance_flag').setReadOnly(true);
if(Ext.isEmpty(record.get('contract_number'))){ if(Ext.isEmpty(record.get('contract_number'))){
document.getElementById('contract_number_ds').style.display='none'; document.getElementById('contract_number_ds').style.display='none';
} }
} }
} }
...@@ -176,9 +178,11 @@ ...@@ -176,9 +178,11 @@
prompt="承租人名称" readOnly="true" width="185"/> prompt="承租人名称" readOnly="true" width="185"/>
<!--<a:datePicker name="lasted_account_date" bindTarget="csh_transaction_return_wfl_ds"--> <!--<a:datePicker name="lasted_account_date" bindTarget="csh_transaction_return_wfl_ds"-->
<!--prompt="最后一次入账时间" width="185" readOnly="true"/>--> <!--prompt="最后一次入账时间" width="185" readOnly="true"/>-->
<a:numberField name="left_amount" allowDecimals="true" allowFormat="true" <!--<a:numberField name="left_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_return_wfl_ds" allowNegative="false" bindTarget="csh_transaction_return_wfl_ds"
prompt="合同剩余保证金" readOnly="true" width="170"/> prompt="合同剩余保证金" readOnly="true" width="170"/>-->
<a:textField name="vender_name" bindTarget="csh_transaction_return_wfl_ds"
prompt="厂商" readOnly="true" width="170"/>
</a:box> </a:box>
<a:box column="4" labelWidth="115"> <a:box column="4" labelWidth="115">
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_return_wfl_ds" <a:textField name="bp_bank_account_name" bindTarget="csh_transaction_return_wfl_ds"
...@@ -189,13 +193,31 @@ ...@@ -189,13 +193,31 @@
prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" readOnly="true" width="185"/> prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME" readOnly="true" width="185"/>
<a:textField name="bp_bank_branch_name" bindTarget="csh_transaction_return_wfl_ds" <a:textField name="bp_bank_branch_name" bindTarget="csh_transaction_return_wfl_ds"
prompt="对方分行名称" readOnly="true" width="170"/> prompt="对方分行名称" readOnly="true" width="170"/>
<a:label name="attach" bindTarget="csh_transaction_return_wfl_ds" renderer="attach_renderer" prompt="附件" width="170"/> <!--<a:label name="attach" bindTarget="csh_transaction_return_wfl_ds" renderer="attach_renderer" prompt="附件" width="170"/>
<a:checkBox name="finance_flag" bindTarget="csh_transaction_return_wfl_ds" prompt="财务部已经对银行信息进行过审核" readOnly="true"/> <a:checkBox name="finance_flag" bindTarget="csh_transaction_return_wfl_ds" prompt="财务部已经对银行信息进行过审核" readOnly="true"/>-->
<!--<a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_AMOUNT" readOnly="true"/>--> <!--<a:numberField name="return_amount" allowDecimals="true" allowFormat="true" allowNegative="false" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_AMOUNT" readOnly="true"/>-->
<!--<a:textField name="bank_slip_num" bindTarget="csh_transaction_return_wfl_ds" prompt="银行流水号" readOnly="true"/>--> <!--<a:textField name="bank_slip_num" bindTarget="csh_transaction_return_wfl_ds" prompt="银行流水号" readOnly="true"/>-->
<!--<a:comboBox name="currency_name" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.CURRENCY" readOnly="true"/>--> <!--<a:comboBox name="currency_name" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.CURRENCY" readOnly="true"/>-->
<!--<a:comboBox name="exchange_rate_type_display" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.EXCHANGE_RATE_TYPE_DESC" readOnly="true"/>--> <!--<a:comboBox name="exchange_rate_type_display" bindTarget="csh_transaction_return_wfl_ds" prompt="HLS.EXCHANGE_RATE_TYPE_DESC" readOnly="true"/>-->
</a:box> </a:box>
<a:box column="4" labelWidth="115">
<a:textField name="deposit_trans_type_desc" bindTarget="csh_transaction_return_wfl_ds"
prompt="保证金类型" readOnly="true" width="180"/>
<a:numberField name="left_amount" allowDecimals="true" allowFormat="true"
allowNegative="false" bindTarget="csh_transaction_return_wfl_ds"
prompt="合同剩余保证金" readOnly="true" width="185"/>
<!--<a:numberField name="remain_amount" allowDecimals="true" allowFormat="true"
bindTarget="csh_transaction_return_wfl_ds"
prompt="本次退款后剩余金额" readOnly="true" width="180"/>-->
<a:label name="attach" bindTarget="csh_transaction_return_wfl_ds" renderer="attach_renderer" prompt="附件" width="170"/>
</a:box>
<a:box column="4" labelWidth="115">
<a:textField name="vender_contract_number" bindTarget="csh_transaction_return_wfl_ds"
prompt="厂商合同编号" readOnly="true" width="180"/>
<a:textField name="vender_project_number" bindTarget="csh_transaction_return_wfl_ds"
prompt="采购单编号" readOnly="true" width="180"/>
<a:checkBox name="finance_flag" bindTarget="csh_transaction_return_wfl_ds" prompt="财务部已经对银行信息进行过审核" readOnly="true"/>
</a:box>
<!--<a:box column="4">--> <!--<a:box column="4">-->
<!--<a:lov name="bank_account_code" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_ACCOUNT" readOnly="true"/>--> <!--<a:lov name="bank_account_code" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH515.CSH_REFUND_ACCOUNT" readOnly="true"/>-->
<!--<a:textField name="bank_account_num" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NUM" readOnly="true"/>--> <!--<a:textField name="bank_account_num" bindTarget="csh_transaction_return_wfl_ds" prompt="CSH511.BANK_ACCOUNT_NUM" readOnly="true"/>-->
...@@ -224,6 +246,8 @@ ...@@ -224,6 +246,8 @@
<a:column name="transaction_num" prompt="目标单据编号" width="150" align="center"/> <a:column name="transaction_num" prompt="目标单据编号" width="150" align="center"/>
<a:column name="transaction_deposit_amount" prompt="分配金额" align="right" renderer="Leaf.formatMoney"/> <a:column name="transaction_deposit_amount" prompt="分配金额" align="right" renderer="Leaf.formatMoney"/>
<a:column name="contract_number" prompt="合同编号" width="150" align="center"/> <a:column name="contract_number" prompt="合同编号" width="150" align="center"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" width="150" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" width="150" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
<!--业务冲销--> <!--业务冲销-->
...@@ -252,7 +276,6 @@ ...@@ -252,7 +276,6 @@
if ('${/model/default_value_path/record/@status}' != 'APPROVED') { if ('${/model/default_value_path/record/@status}' != 'APPROVED') {
document.getElementById("csh106_return_print_id").style.display = "none"; document.getElementById("csh106_return_print_id").style.display = "none";
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
$Author: niminmin $Author: niminmin
$Date: 2019-10-28 上午11:10:33 $Date: 2019-10-28 上午11:10:33
$Revision: 1.0 $Revision: 1.0
$Purpose:保证金退款 $Purpose:保证金退款
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
...@@ -170,15 +170,26 @@ ...@@ -170,15 +170,26 @@
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/> <a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/>
<a:dataSet id="hls_business_type_ds" fetchAll="true">
<a:datas>
<a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营租赁"/>
</a:datas>
</a:dataSet>
<a:dataSet id="csh_transaction_receipt_maintain_query_ds" autoCreate="true"> <a:dataSet id="csh_transaction_receipt_maintain_query_ds" autoCreate="true">
<a:fields> <a:fields>
<a:field name="deposit_trans_type"/> <a:field name="deposit_trans_type"/>
<a:field name="contract_number"/> <a:field name="contract_number"/>
<a:field name="vender_contract_number"/>
<a:field name="vender_project_number"/>
<a:field name="business_type"/>
<a:field name="bp_name_n"/> <a:field name="bp_name_n"/>
<a:field name="bp_id_telnet_n"/> <a:field name="bp_id_telnet_n"/>
<a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS" <a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS"
returnField="deposit_trans_type" displayField="code_value_name" valueField="code_value"/> returnField="deposit_trans_type" displayField="code_value_name" valueField="code_value"/>
<a:field name="business_type_desc" options="hls_business_type_ds"
returnField="business_type" displayField="code_value_name" valueField="code_value"/>
<a:field name="bank_account_name" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE"> <a:field name="bank_account_name" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE">
<a:mapping> <a:mapping>
<a:map from="precision" to="precision"/> <a:map from="precision" to="precision"/>
...@@ -337,6 +348,9 @@ ...@@ -337,6 +348,9 @@
<a:textField name="bp_name_n" prompt="代理店" bindTarget="csh_transaction_receipt_maintain_query_ds"/> <a:textField name="bp_name_n" prompt="代理店" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="bp_id_telnet_n" prompt="承租人" bindTarget="csh_transaction_receipt_maintain_query_ds"/> <a:textField name="bp_id_telnet_n" prompt="承租人" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/> <a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="vender_contract_number" prompt="厂商合同编号" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="vender_project_number" prompt="采购单编号" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:comboBox name="business_type_desc" prompt="业务类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
</a:fieldSet> </a:fieldSet>
</a:hBox> </a:hBox>
</a:form> </a:form>
...@@ -350,6 +364,9 @@ ...@@ -350,6 +364,9 @@
<a:column name="bp_name" prompt="代理店/厂商" align="center"/> <a:column name="bp_name" prompt="代理店/厂商" align="center"/>
<a:column name="bp_id_telnet_n" prompt="承租人" align="center"/> <a:column name="bp_id_telnet_n" prompt="承租人" align="center"/>
<a:column name="contract_number" prompt="合同编号" align="center"/> <a:column name="contract_number" prompt="合同编号" align="center"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" align="center"/>
<a:column name="business_type_desc" prompt="业务类型" align="center"/>
<a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" width="100" renderer="Leaf.formatMoney"/> <a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" width="100" renderer="Leaf.formatMoney"/>
<a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/> <a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/>
<a:column name="unwrite_off_amount" prompt="剩余可退金额" align="right" renderer="Leaf.formatMoney"/> <a:column name="unwrite_off_amount" prompt="剩余可退金额" align="right" renderer="Leaf.formatMoney"/>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
$Author: niminmin $Author: niminmin
$Date: 2019-10-28 上午11:10:33 $Date: 2019-10-28 上午11:10:33
$Revision: 1.0 $Revision: 1.0
$Purpose:保证金抵扣反冲 $Purpose:保证金抵扣反冲
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<a:view> <a:view>
<a:link id="csh_write_off_reverse_detail_link" <a:link id="csh_write_off_reverse_detail_link"
url="${/request/@context_path}/modules/csh/CSH514/csh_transaction_receipt_write_off_reverse_detail.lview"/> url="${/request/@context_path}/modules/csh/CSH514/csh_transaction_receipt_write_off_reverse_detail.lview"/>
<a:link id="csh_write_off_reverse_wfl_link" url="${/request/@context_path}/modules/csh/CSH514/csh_transaction_receipt_write_off_reverse_wfl.lview"/> <a:link id="csh_write_off_reverse_wfl_link" url="${/request/@context_path}/modules/csh/CSH514/csh_transaction_receipt_write_off_reverse_wfl.lview"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
//锁表 //锁表
...@@ -60,11 +60,11 @@ ...@@ -60,11 +60,11 @@
function seedetail_transaction_num(value, record, name) { function seedetail_transaction_num(value, record, name) {
if (record.get('transaction_id')) { if (record.get('transaction_id')) {
url = $('csh_write_off_reverse_detail_link').getUrl() + '?transaction_id=' + record.get('transaction_id') + '&transaction_type=' + record.get('transaction_type') + '&ref_n01=' + record.get('ref_n01') + '&receipt_type=' + record.get('receipt_type') + '&bp_category=' + record.get('bp_category') + '&paid_byother_flag=' + record.get('paid_byother_flag')+ '&ref_contract_id=' + record.get('ref_contract_id')+ '&deposit_type=Y'; url = $('csh_write_off_reverse_detail_link').getUrl() + '?transaction_id=' + record.get('transaction_id') + '&transaction_type=' + record.get('transaction_type') + '&ref_n01=' + record.get('ref_n01') + '&receipt_type=' + record.get('receipt_type') + '&bp_category=' + record.get('bp_category') + '&paid_byother_flag=' + record.get('paid_byother_flag')+ '&deposit_type=Y';
if(record.get('approval_status') == 'APPROVING' || record.get('approval_status') == 'APPROVED'){ if(record.get('approval_status') == 'APPROVING' || record.get('approval_status') == 'APPROVED'){
url = $('csh_write_off_reverse_wfl_link').getUrl() + '?transaction_wfl_id=' + record.get('transaction_wfl_id')+ '&button_flag=YES'; url = $('csh_write_off_reverse_wfl_link').getUrl() + '?transaction_wfl_id=' + record.get('transaction_wfl_id')+ '&button_flag=YES';
} }
return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>'; return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>';
} }
} }
...@@ -124,6 +124,14 @@ ...@@ -124,6 +124,14 @@
<a:dataSet id="transaction_type_ds"> <a:dataSet id="transaction_type_ds">
<a:datas dataSource="/model/transaction_type"/> <a:datas dataSource="/model/transaction_type"/>
</a:dataSet> </a:dataSet>
<a:dataSet id="hls_business_type_ds" fetchAll="true">
<a:datas>
<a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营租赁"/>
</a:datas>
</a:dataSet>
<a:dataSet id="DEPOSIT_TRANS_TYPE_DS" lookupCode="DEPOSIT_TRANS_TYPE"/>
<a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/> <a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/>
<a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/> <a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/>
<a:dataSet id="csh510_collection_classes_batch_update_ds"> <a:dataSet id="csh510_collection_classes_batch_update_ds">
...@@ -136,6 +144,11 @@ ...@@ -136,6 +144,11 @@
<a:fields> <a:fields>
<a:field name="deposit_trans_type"/> <a:field name="deposit_trans_type"/>
<a:field name="contract_number"/> <a:field name="contract_number"/>
<a:field name="vender_contract_number"/>
<a:field name="vender_project_number"/>
<a:field name="business_type"/>
<a:field name="business_type_desc" options="hls_business_type_ds"
returnField="business_type" displayField="code_value_name" valueField="code_value"/>
<a:field name="bp_name_n"/> <a:field name="bp_name_n"/>
<a:field name="bp_id_telnet_n"/> <a:field name="bp_id_telnet_n"/>
<a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS" <a:field name="deposit_trans_type_desc" options="DEPOSIT_TRANS_TYPE_DS"
...@@ -305,6 +318,9 @@ ...@@ -305,6 +318,9 @@
<a:textField name="bp_name_n" prompt="代理店" bindTarget="csh_transaction_receipt_maintain_query_ds"/> <a:textField name="bp_name_n" prompt="代理店" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="bp_id_telnet_n" prompt="承租人" bindTarget="csh_transaction_receipt_maintain_query_ds"/> <a:textField name="bp_id_telnet_n" prompt="承租人" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/> <a:comboBox name="deposit_trans_type_desc" prompt="保证金类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="vender_contract_number" prompt="厂商合同编号" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="vender_project_number" prompt="采购单编号" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:comboBox name="business_type_desc" prompt="业务类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
</a:fieldSet> </a:fieldSet>
</a:hBox> </a:hBox>
</a:form> </a:form>
...@@ -321,6 +337,9 @@ ...@@ -321,6 +337,9 @@
<a:column name="bp_name" prompt="代理店/厂商" align="center"/> <a:column name="bp_name" prompt="代理店/厂商" align="center"/>
<a:column name="bp_id_telnet_n" prompt="承租人" align="center"/> <a:column name="bp_id_telnet_n" prompt="承租人" align="center"/>
<a:column name="contract_number" prompt="合同编号" align="center"/> <a:column name="contract_number" prompt="合同编号" align="center"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" align="center"/>
<a:column name="business_type_desc" prompt="业务类型" align="center"/>
<a:column name="deposit_trans_type_desc" prompt="保证金类型" align="center"/> <a:column name="deposit_trans_type_desc" prompt="保证金类型" align="center"/>
<a:column name="bank_slip_num" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE" align="center" forExport="false"/> <a:column name="bank_slip_num" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE" align="center" forExport="false"/>
<a:column prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT"> <a:column prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
$Author: niminmin $Author: niminmin
$Date: 2019-10-28 上午11:10:33 $Date: 2019-10-28 上午11:10:33
$Revision: 1.0 $Revision: 1.0
$Purpose:保证金台账 $Purpose:保证金台账
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
...@@ -166,6 +166,13 @@ ...@@ -166,6 +166,13 @@
</a:dataSet> </a:dataSet>
<a:dataSet id="transaction_type_ds"> <a:dataSet id="transaction_type_ds">
<a:datas dataSource="/model/transaction_type"/> <a:datas dataSource="/model/transaction_type"/>
</a:dataSet>
<a:dataSet id="hls_business_type_ds" fetchAll="true">
<a:datas>
<a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营租赁"/>
</a:datas>
</a:dataSet> </a:dataSet>
<a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/> <a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/>
<a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/> <a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/>
...@@ -187,6 +194,11 @@ ...@@ -187,6 +194,11 @@
<a:fields> <a:fields>
<a:field name="deposit_trans_type"/> <a:field name="deposit_trans_type"/>
<a:field name="contract_number"/> <a:field name="contract_number"/>
<a:field name="vender_contract_number"/>
<a:field name="vender_project_number"/>
<a:field name="business_type"/>
<a:field name="business_type_desc" options="hls_business_type_ds"
returnField="business_type" displayField="code_value_name" valueField="code_value"/>
<a:field name="bp_name_n"/> <a:field name="bp_name_n"/>
<a:field name="bp_id_telnet_n"/> <a:field name="bp_id_telnet_n"/>
<a:field name="query_amount_flag" defaultValue="3"/> <a:field name="query_amount_flag" defaultValue="3"/>
...@@ -431,6 +443,11 @@ ...@@ -431,6 +443,11 @@
<a:datePicker name="write_off_date_to" <a:datePicker name="write_off_date_to"
bindTarget="csh_transaction_receipt_maintain_query_ds" bindTarget="csh_transaction_receipt_maintain_query_ds"
prompt="核销日期到"/> prompt="核销日期到"/>
<a:textField name="vender_contract_number" prompt="厂商合同编号"
bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:textField name="vender_project_number" prompt="采购单编号"
bindTarget="csh_transaction_receipt_maintain_query_ds"/>
<a:comboBox name="business_type_desc" prompt="业务类型" bindTarget="csh_transaction_receipt_maintain_query_ds"/>
</a:fieldSet> </a:fieldSet>
</a:hBox> </a:hBox>
</a:form> </a:form>
...@@ -444,6 +461,9 @@ ...@@ -444,6 +461,9 @@
<a:column name="bp_name" prompt="代理店/厂商" align="center"/> <a:column name="bp_name" prompt="代理店/厂商" align="center"/>
<a:column name="bp_id_telnet_n" prompt="承租人" align="center"/> <a:column name="bp_id_telnet_n" prompt="承租人" align="center"/>
<a:column name="contract_number" prompt="合同编号" align="center"/> <a:column name="contract_number" prompt="合同编号" align="center"/>
<a:column name="vender_contract_number" prompt="厂商合同编号" align="center"/>
<a:column name="vender_project_number" prompt="采购单编号" align="center"/>
<a:column name="business_type_desc" prompt="业务类型" align="center"/>
<a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" <a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT"
width="100" renderer="Leaf.formatMoney"/> width="100" renderer="Leaf.formatMoney"/>
<a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/> <a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/>
......
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