Commit efbf12be authored by xiaochao's avatar xiaochao

[新增大额尾款字段代码]

parent 603815f3
...@@ -303,17 +303,12 @@ ...@@ -303,17 +303,12 @@
NULL cf_status, NULL cf_status,
t1.business_type, t1.business_type,
t1.business_type_desc, t1.business_type_desc,
t3.write_off_flag, 'FULL' as write_off_flag,
case t3.write_off_flag when 'NOT' then '全部核销' as write_off_flag_desc
'未核销' from cus_acr_invoice_contract_v t1, acr_invoice_penalty_v t2
when 'PARTIAL' then '部分核销'
when 'FULL' then '全部核销'
end as write_off_flag_desc
from cus_acr_invoice_contract_v t1, acr_invoice_penalty_v t2,con_contract_cashflow t3
where t2.contract_id = t1.contract_id where t2.contract_id = t1.contract_id
and t1.bp_wfl_status = 'APPROVED' and t1.bp_wfl_status = 'APPROVED'
and t1.invoice_wfl_status = 'APPROVED' and t1.invoice_wfl_status = 'APPROVED'
and t3.contract_id = t1.contract_id
and (t1.invoice_method = 'BILLING' or and (t1.invoice_method = 'BILLING' or
(t1.invoice_method = 'NO_BILLING' and (t1.invoice_method = 'NO_BILLING' and
t1.contract_status in ('TERMINATE', 'ET', 'REPUR'))) t1.contract_status in ('TERMINATE', 'ET', 'REPUR')))
......
...@@ -57,7 +57,19 @@ ...@@ -57,7 +57,19 @@
c.BUSINESS_TYPE, c.BUSINESS_TYPE,
(select hbt.DESCRIPTION (select hbt.DESCRIPTION
from hls_business_type hbt from hls_business_type hbt
where hbt.BUSINESS_TYPE = c.BUSINESS_TYPE) BUSINESS_TYPE_N where hbt.BUSINESS_TYPE = c.BUSINESS_TYPE) BUSINESS_TYPE_N,
(select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = c.project_id) large_balance,
(select v.code_value_name
from sys_code_values_v v
where v.code = 'SECONDARY_LEASE'
and v.code_value = (select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = c.project_id)) large_balance_n,
c.branch_code,
(Select v.code_value_name
From sys_code_values_v v
Where v.code = 'BRANCH_CODE_SZMP'
And v.code_enabled_flag = 'Y'
And v.code_value_enabled_flag = 'Y'
And v.code_value = c.branch_code) branch_code_n
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
con_contract c, con_contract c,
hls_bp_master h, hls_bp_master h,
...@@ -92,6 +104,7 @@ ...@@ -92,6 +104,7 @@
<bm:query-field name="cf_item_n" queryExpression="t.cf_item_n like &apos;%&apos; || ${@cf_item_n} || &apos;%&apos;"/> <bm:query-field name="cf_item_n" queryExpression="t.cf_item_n like &apos;%&apos; || ${@cf_item_n} || &apos;%&apos;"/>
<bm:query-field name="extra_nam" queryExpression="t.extra_nam like &apos;%&apos; || ${@extra_nam} || &apos;%&apos;"/> <bm:query-field name="extra_nam" queryExpression="t.extra_nam like &apos;%&apos; || ${@extra_nam} || &apos;%&apos;"/>
<bm:query-field name="business_type" queryExpression="t.business_type = ${@business_type}"/> <bm:query-field name="business_type" queryExpression="t.business_type = ${@business_type}"/>
<bm:query-field name="large_balance" queryExpression="t.large_balance = ${@large_balance}"/>
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter enforceOperations="query" expression="exists (select 1 from aut_trx_user_authorize a1, aut_owner_user_authorize a2 WHERE a1.trx_category = 'CONTRACT' and a1.trx_id = t.contract_id AND trunc(sysdate) between a1.start_date AND nvl(a1.end_date, trunc(sysdate)) and a1.user_id = a2.owner_user_id AND a1.trx_category = a2.trx_category AND a2.authorized_user_id = ${/session/@user_id} AND trunc(sysdate) between a2.start_date and nvl(a2.end_date, trunc(sysdate)))"/> <bm:data-filter enforceOperations="query" expression="exists (select 1 from aut_trx_user_authorize a1, aut_owner_user_authorize a2 WHERE a1.trx_category = 'CONTRACT' and a1.trx_id = t.contract_id AND trunc(sysdate) between a1.start_date AND nvl(a1.end_date, trunc(sysdate)) and a1.user_id = a2.owner_user_id AND a1.trx_category = a2.trx_category AND a2.authorized_user_id = ${/session/@user_id} AND trunc(sysdate) between a2.start_date and nvl(a2.end_date, trunc(sysdate)))"/>
......
...@@ -385,7 +385,19 @@ ...@@ -385,7 +385,19 @@
Where v1.code = 'YES_OR_NO' Where v1.code = 'YES_OR_NO'
And v1.code_enabled_flag = 'Y' And v1.code_enabled_flag = 'Y'
And v1.code_value_enabled_flag = 'Y' And v1.code_value_enabled_flag = 'Y'
and v1.CODE_VALUE = t.is_buyout) is_buyout_n and v1.CODE_VALUE = t.is_buyout) is_buyout_n,
(select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = t.project_id) large_balance,
(select v.code_value_name
from sys_code_values_v v
where v.code = 'SECONDARY_LEASE'
and v.code_value = (select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = t.project_id)) large_balance_n,
t.branch_code,
(Select v.code_value_name
From sys_code_values_v v
Where v.code = 'BRANCH_CODE_SZMP'
And v.code_enabled_flag = 'Y'
And v.code_value_enabled_flag = 'Y'
And v.code_value = t.branch_code) branch_code_n
FROM con_contract t, hls_bp_master h FROM con_contract t, hls_bp_master h
WHERE t.data_class = 'NORMAL' WHERE t.data_class = 'NORMAL'
AND t.bp_id_agent_level1 = h.bp_id AND t.bp_id_agent_level1 = h.bp_id
......
...@@ -100,7 +100,19 @@ ...@@ -100,7 +100,19 @@
0) 0)
else else
0 0
end as write_of_penalty_amount end as write_of_penalty_amount,
(select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = t.project_id) large_balance,
(select v.code_value_name
from sys_code_values_v v
where v.code = 'SECONDARY_LEASE'
and v.code_value = (select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = t.project_id)) large_balance_n,
t.branch_code,
(Select v.code_value_name
From sys_code_values_v v
Where v.code = 'BRANCH_CODE_SZMP'
And v.code_enabled_flag = 'Y'
And v.code_value_enabled_flag = 'Y'
And v.code_value = t.branch_code) branch_code_n
FROM con_contract_cashflow ccc, FROM con_contract_cashflow ccc,
con_contract t, con_contract t,
con_contract_lease_item ccli con_contract_lease_item ccli
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: ZLF
$Date: 2014-11-21 上午11:18:06
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[begin
${@principal_eq_pymt_adj}:= prj_project_check_pkg.get_principal_eq_pymt_adj
(
p_project_number =>${@p_project_number}
);
end;]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="principal_eq_pymt_adj" output="true" outputPath="@principal_eq_pymt_adj"/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:parameters>
<bm:parameter name="document_category" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="business_type" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="document_type" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="company_id" dataType="java.lang.Long" input="true" output="false"/>
<bm:parameter name="lease_channel" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="first_flag" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="ka_prj_id" dataType="java.lang.Long" input="true" output="false"/>
<bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
<bm:parameter name="quotation_ds_id" dataType="java.lang.String" input="true" output="false"/>
<bm:parameter name="document_number" dataType="java.lang.String" input="false" output="true"/>
</bm:parameters>
<bm:update-sql><![CDATA[
begin
HLS_DOCUMENT_SAVE_PKG.GET_TWO_PRJ_NUMBER
(
p_document_category=>${@document_category},
p_business_type=>${@business_type},
p_document_type=>${@document_type},
p_company_id=>${/session/@company_id},
p_lease_channel=>${@lease_channel},
p_first_flag=>${@first_flag},
p_ka_prj_id=>${@ka_prj_id},
p_user_id=>${/session/@user_id},
p_document_number=>${@document_number},
p_quotation_ds_id=>${@quotation_ds_id}
);
end;]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -83,8 +83,19 @@ ...@@ -83,8 +83,19 @@
Where v1.code = 'YES_OR_NO' Where v1.code = 'YES_OR_NO'
And v1.code_enabled_flag = 'Y' And v1.code_enabled_flag = 'Y'
And v1.code_value_enabled_flag = 'Y' And v1.code_value_enabled_flag = 'Y'
and v1.CODE_VALUE = t.is_buyout) is_buyout_n and v1.CODE_VALUE = t.is_buyout) is_buyout_n,
(select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = t.project_id) large_balance,
(select v.code_value_name
from sys_code_values_v v
where v.code = 'SECONDARY_LEASE'
and v.code_value = (select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = t.project_id)) large_balance_n,
t.branch_code,
(Select v.code_value_name
From sys_code_values_v v
Where v.code = 'BRANCH_CODE_SZMP'
And v.code_enabled_flag = 'Y'
And v.code_value_enabled_flag = 'Y'
And v.code_value = t.branch_code) branch_code_n
from con_contract_cashflow ccc, con_contract t, con_contract_lease_item ccli from con_contract_cashflow ccc, con_contract t, con_contract_lease_item ccli
WHERE ccc.contract_id = t.contract_id WHERE ccc.contract_id = t.contract_id
AND ccli.contract_id (+) = t.contract_id AND ccli.contract_id (+) = t.contract_id
......
...@@ -196,7 +196,19 @@ ...@@ -196,7 +196,19 @@
Where v.code = 'YES_OR_NO' Where v.code = 'YES_OR_NO'
And v.code_enabled_flag = 'Y' And v.code_enabled_flag = 'Y'
And v.code_value_enabled_flag = 'Y' And v.code_value_enabled_flag = 'Y'
and v.CODE_VALUE = ct.is_buyout) is_buyout_n and v.CODE_VALUE = ct.is_buyout) is_buyout_n,
(select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = ct.project_id) large_balance,
(select v.code_value_name
from sys_code_values_v v
where v.code = 'SECONDARY_LEASE'
and v.code_value = (select sh.large_balance from prj_quotation sh where sh.DOCUMENT_ID = ct.project_id)) large_balance_n,
ct.branch_code,
(Select v.code_value_name
From sys_code_values_v v
Where v.code = 'BRANCH_CODE_SZMP'
And v.code_enabled_flag = 'Y'
And v.code_value_enabled_flag = 'Y'
And v.code_value = ct.branch_code) branch_code_n
from con_contract ct from con_contract ct
where ct.contract_status not in ('CANCEL') where ct.contract_status not in ('CANCEL')
and ct.data_class = 'NORMAL' and ct.data_class = 'NORMAL'
......
...@@ -56,6 +56,37 @@ ...@@ -56,6 +56,37 @@
$('${/parameter/@layout_code}_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('branch_code'); $('${/parameter/@layout_code}_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('branch_code');
$('${/parameter/@layout_code}_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('branch_code_n'); $('${/parameter/@layout_code}_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('branch_code_n');
} }
//dev---环境得code
// if (!Ext.isEmpty(bp_code)&&bp_code!== 'C00010168') {
// $('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('branch_code_n');
// $('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('branch_code');
// }
//dev---环境得code
// if (!Ext.isEmpty(bp_code)) {
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
// $('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').showColumn('large_balance_n');
// $('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').showColumn('large_balance');
// }else {
// $('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('large_balance_n');
// $('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('large_balance');
// }
// }
if (!Ext.isEmpty(bp_code)) {
if (bp_code == 'D00000041' || bp_code == 'D00010001' || bp_code == 'D00000026') {
$('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').showColumn('large_balance_n');
$('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').showColumn('large_balance');
document.getElementById('CONTRACT_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('CONTRACT_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE').style.display = 'block';
}else {
$('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('large_balance_n');
$('CONTRACT_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('large_balance');
document.getElementById('CONTRACT_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('CONTRACT_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE').style.display = 'none';
}
}
}); });
function open_contract_win(ds_id, record_id) { function open_contract_win(ds_id, record_id) {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true"> trace="true">
<a:init-procedure/> <a:init-procedure>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view> <a:view>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/> modelaction="update"/>
...@@ -34,6 +36,48 @@ ...@@ -34,6 +36,48 @@
return value; return value;
}; };
//页面加载事件
Leaf.onReady(function() {
var bp_code='${/model/user_agent_description/record/@bp_code}';
// if (!Ext.isEmpty(bp_code)&&bp_code!== 'C00010168') {
// $('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('branch_code_n');
// $('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('branch_code');
// }
// if (!Ext.isEmpty(bp_code)) {
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
// $('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').showColumn('large_balance_n');
// $('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').showColumn('large_balance');
// }else {
// $('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('large_balance_n');
// $('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('large_balance');
// }
// }
if (!Ext.isEmpty(bp_code)&&bp_code!== 'D00010001'&&bp_code!=='D00000009') {
$('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('branch_code_n');
$('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('branch_code');
}
if (!Ext.isEmpty(bp_code)) {
if (bp_code == 'D00000041' || bp_code == 'D00010001' || bp_code == 'D00000026') {
$('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').showColumn('large_balance_n');
$('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').showColumn('large_balance');
document.getElementById('RENTAL_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('RENTAL_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE').style.display = 'block';
}else {
$('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('large_balance_n');
$('RENTAL_QUERY_ENTRANCE_G_CONTRACT_RESULT_con_contract_cashflow_layout_grid_id').hideColumn('large_balance');
document.getElementById('RENTAL_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('RENTAL_QUERY_ENTRANCE_F_QUERY_NULL_LARGE_BALANCE').style.display = 'none';
}
}
});
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true"> trace="true">
<a:init-procedure/> <a:init-procedure>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view> <a:view>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
...@@ -52,6 +54,7 @@ ...@@ -52,6 +54,7 @@
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_cashflow'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_cashflow');
var record = $(ds_id).getCurrentRecord();
var form_ds_id = '${/parameter/@layout_code}_F_QUERY__ds'; var form_ds_id = '${/parameter/@layout_code}_F_QUERY__ds';
$(ds_id).setQueryUrl('${/request/@context_path}/autocrud/cont.CON3100N.csh_write_detail_report/query'); $(ds_id).setQueryUrl('${/request/@context_path}/autocrud/cont.CON3100N.csh_write_detail_report/query');
$(ds_id).setQueryDataSet($(form_ds_id)); $(ds_id).setQueryDataSet($(form_ds_id));
...@@ -59,6 +62,45 @@ ...@@ -59,6 +62,45 @@
$(ds_id).query(); $(ds_id).query();
}; };
//页面加载事件
Leaf.onReady(function() {
var bp_code='${/model/user_agent_description/record/@bp_code}';
// if (!Ext.isEmpty(bp_code)&&bp_code!== 'C00010168') {
// $('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('branch_code_n');
// $('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('branch_code');
// }
// if (!Ext.isEmpty(bp_code)) {
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
// $('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').showColumn('large_balance_n');
// $('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').showColumn('large_balance');
// }else {
// $('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('large_balance_n');
// $('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('large_balance');
// }
// }
if (!Ext.isEmpty(bp_code)&&bp_code!== 'D00010001'&&bp_code!=='D00000009') {
$('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('branch_code_n');
$('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('branch_code');
}
if (!Ext.isEmpty(bp_code)) {
if (bp_code == 'D00000041' || bp_code == 'D00010001' || bp_code == 'D00000026') {
$('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').showColumn('large_balance_n');
$('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').showColumn('large_balance');
document.getElementById('CSH_WRITE_OFF_QUERY_F_QUERY_NULL_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('CSH_WRITE_OFF_QUERY_F_QUERY_NULL_LARGE_BALANCE').style.display = 'block';
}else {
$('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('large_balance_n');
$('CSH_WRITE_OFF_QUERY_F_WRITE_OFF_LIST_con_contract_cashflow_layout_grid_id').hideColumn('large_balance');
document.getElementById('CSH_WRITE_OFF_QUERY_F_QUERY_NULL_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('CSH_WRITE_OFF_QUERY_F_QUERY_NULL_LARGE_BALANCE').style.display = 'none';
}
}
});
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'F_WRITE_OFF_LIST', 'con_contract_cashflow'); // stopDymanicAutoQuery('${/parameter/@layout_code}', 'F_WRITE_OFF_LIST', 'con_contract_cashflow');
]]></script> ]]></script>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true"> trace="true">
<a:init-procedure/> <a:init-procedure>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view> <a:view>
<a:link id="contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
...@@ -38,9 +40,43 @@ ...@@ -38,9 +40,43 @@
$(grid_ds_id).setQueryParameter('last_month_date',last_month_date); $(grid_ds_id).setQueryParameter('last_month_date',last_month_date);
$(grid_ds_id).query(); $(grid_ds_id).query();
} }
//页面加载事件
Leaf.onReady(function() {
var bp_code='${/model/user_agent_description/record/@bp_code}';
// if (!Ext.isEmpty(bp_code)&&bp_code!== 'C00010168') {
// $('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('branch_code_n');
// $('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('branch_code');
// }
// if (!Ext.isEmpty(bp_code)) {
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
// $('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').showColumn('large_balance_n');
// $('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').showColumn('large_balance');
// }else {
// $('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('large_balance_n');
// $('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('large_balance');
// }
// }
if (!Ext.isEmpty(bp_code)&&bp_code!== 'D00010001'&&bp_code!=='D00000009') {
$('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('branch_code_n');
$('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('branch_code');
}
if (!Ext.isEmpty(bp_code)) {
if (bp_code == 'D00000041' || bp_code == 'D00010001' || bp_code == 'D00000026') {
$('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').showColumn('large_balance_n');
$('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').showColumn('large_balance');
}else {
$('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('large_balance_n');
$('CONTRACT_DEBIT_MONTH_G_CONTRACT_RESULT_hls_bp_master_layout_grid_id').hideColumn('large_balance');
}
}
});
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true"> trace="true">
<a:init-procedure/> <a:init-procedure>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view> <a:view>
<a:link id="contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
...@@ -41,9 +43,43 @@ ...@@ -41,9 +43,43 @@
$(grid_ds_id).setQueryParameter('last_month_date',last_month_date); $(grid_ds_id).setQueryParameter('last_month_date',last_month_date);
$(grid_ds_id).query(); $(grid_ds_id).query();
} }
//页面加载事件
Leaf.onReady(function() {
var bp_code='${/model/user_agent_description/record/@bp_code}';
// if (!Ext.isEmpty(bp_code)&&bp_code!== 'C00010168'){
// $('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('branch_code_n');
// $('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('branch_code');
// }
// if (!Ext.isEmpty(bp_code)) {
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
// $('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').showColumn('large_balance_n');
// $('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').showColumn('large_balance');
// }else {
// $('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('large_balance_n');
// $('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('large_balance');
// }
// }
if (!Ext.isEmpty(bp_code)&&bp_code!== 'D00010001'&&bp_code!=='D00000009') {
$('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('branch_code_n');
$('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('branch_code');
}
if (!Ext.isEmpty(bp_code)) {
if (bp_code == 'D00000041' || bp_code == 'D00010001' || bp_code == 'D00000026') {
$('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').showColumn('large_balance_n');
$('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').showColumn('large_balance');
}else {
$('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('large_balance_n');
$('CONTRACT_CASHFLOW_OVDERDUE_G_CONTRACT_RESULT_con_contract_lease_item_layout_grid_id').hideColumn('large_balance');
}
}
});
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
...@@ -6,10 +6,65 @@ ...@@ -6,10 +6,65 @@
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view> <a:view>
<!-- <a:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly" modelaction="update"/>--> <!-- <a:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly" modelaction="update"/>-->
<script><![CDATA[ <script><![CDATA[
//页面加载事件
// Leaf.onReady(function() {
// var bp_code='${/model/user_agent_description/record/@bp_code}';
//
// if (!Ext.isEmpty(bp_code)&&bp_code!== 'C00010168'){
// $('con_contract_rental_result_grid').hideColumn('branch_code_n');
// $('con_contract_rental_result_grid').hideColumn('branch_code');
//
// $('con_contract_cashflow_rental_result_grid').hideColumn('branch_code_n');
// $('con_contract_cashflow_rental_result_grid').hideColumn('branch_code');
// }
// if (!Ext.isEmpty(bp_code)) {
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
// $('con_contract_rental_result_grid').showColumn('large_balance_n');
// $('con_contract_rental_result_grid').showColumn('large_balance');
//
// $('con_contract_cashflow_rental_result_grid').showColumn('large_balance_n');
// $('con_contract_cashflow_rental_result_grid').showColumn('large_balance');
// }else {
// $('con_contract_rental_result_grid').hideColumn('large_balance_n');
// $('con_contract_rental_result_grid').hideColumn('large_balance');
//
// $('con_contract_cashflow_rental_result_grid').hideColumn('large_balance_n');
// $('con_contract_cashflow_rental_result_grid').hideColumn('large_balance');
// }
// }
if (!Ext.isEmpty(bp_code)&&bp_code!== 'D00010001'&&bp_code!=='D00000009') {
$('con_contract_rental_result_grid').hideColumn('branch_code_n');
$('con_contract_rental_result_grid').hideColumn('branch_code');
$('con_contract_cashflow_rental_result_grid').hideColumn('branch_code_n');
$('con_contract_cashflow_rental_result_grid').hideColumn('branch_code');
}
if (!Ext.isEmpty(bp_code)) {
if (bp_code == 'D00000041' || bp_code == 'D00010001' || bp_code == 'D00000026') {
$('con_contract_rental_result_grid').showColumn('large_balance_n');
$('con_contract_rental_result_grid').showColumn('large_balance');
$('con_contract_cashflow_rental_result_grid').showColumn('large_balance_n');
$('con_contract_cashflow_rental_result_grid').showColumn('large_balance');
}else {
$('con_contract_rental_result_grid').hideColumn('large_balance_n');
$('con_contract_rental_result_grid').hideColumn('large_balance');
$('con_contract_cashflow_rental_result_grid').hideColumn('large_balance_n');
$('con_contract_cashflow_rental_result_grid').hideColumn('large_balance');
}
}
});
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="con_contract_rental_result_ds" pageSize="13" autoQuery="true" model="rpt.RPT5012.rpt5012_result_query" queryUrl="${/request/@context_path}/autocrud/rpt.RPT5012.rpt5012_result_query/query?month=${/parameter/@month}&amp;cur_begin=${/parameter/@cur_begin}&amp;cur_end=${/parameter/@cur_end}&amp;before_begin=${/parameter/@before_begin}&amp;before_end=${/parameter/@before_end}" autoPageSize="true"/> <a:dataSet id="con_contract_rental_result_ds" pageSize="13" autoQuery="true" model="rpt.RPT5012.rpt5012_result_query" queryUrl="${/request/@context_path}/autocrud/rpt.RPT5012.rpt5012_result_query/query?month=${/parameter/@month}&amp;cur_begin=${/parameter/@cur_begin}&amp;cur_end=${/parameter/@cur_end}&amp;before_begin=${/parameter/@before_begin}&amp;before_end=${/parameter/@before_end}" autoPageSize="true"/>
...@@ -29,6 +84,8 @@ ...@@ -29,6 +84,8 @@
<a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/> <a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/>
<a:column name="contract_number" align="center" prompt="合同编号" width="100"/> <a:column name="contract_number" align="center" prompt="合同编号" width="100"/>
<a:column name="lease_start_date" align="center" prompt="租赁期开始日" width="80"/> <a:column name="lease_start_date" align="center" prompt="租赁期开始日" width="80"/>
<a:column name="branch_code_n" align="center" prompt="分公司" width="100"/>
<a:column name="large_balance_n" align="center" prompt="大额尾款" width="100"/>
<a:column name="is_buyout_n" align="center" prompt="是否买断机" width="100"/> <a:column name="is_buyout_n" align="center" prompt="是否买断机" width="100"/>
<a:column name="modelcd" align="center" prompt=" 机型" width="180"/> <a:column name="modelcd" align="center" prompt=" 机型" width="180"/>
<a:column name="machine_number" align="center" prompt="机器号码" width="80"/> <a:column name="machine_number" align="center" prompt="机器号码" width="80"/>
...@@ -60,6 +117,8 @@ ...@@ -60,6 +117,8 @@
<a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/> <a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/>
<a:column name="contract_number" align="center" prompt="合同编号" width="100"/> <a:column name="contract_number" align="center" prompt="合同编号" width="100"/>
<a:column name="lease_start_date" align="center" prompt="租赁期开始日" width="80"/> <a:column name="lease_start_date" align="center" prompt="租赁期开始日" width="80"/>
<a:column name="branch_code_n" align="center" prompt="分公司" width="100"/>
<a:column name="large_balance_n" align="center" prompt="大额尾款" width="100"/>
<a:column name="is_buyout_n" align="center" prompt="是否买断机" width="100"/> <a:column name="is_buyout_n" align="center" prompt="是否买断机" width="100"/>
<a:column name="modelcd" align="center" prompt=" 机型" width="180"/> <a:column name="modelcd" align="center" prompt=" 机型" width="180"/>
<a:column name="machine_number" align="center" prompt="机器号码" width="80"/> <a:column name="machine_number" align="center" prompt="机器号码" width="80"/>
......
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