Commit efbf12be authored by xiaochao's avatar xiaochao

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

parent 603815f3
......@@ -303,17 +303,12 @@
NULL cf_status,
t1.business_type,
t1.business_type_desc,
t3.write_off_flag,
case t3.write_off_flag when 'NOT' then
'未核销'
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
'FULL' as write_off_flag,
'全部核销' as write_off_flag_desc
from cus_acr_invoice_contract_v t1, acr_invoice_penalty_v t2
where t2.contract_id = t1.contract_id
and t1.bp_wfl_status = 'APPROVED'
and t1.invoice_wfl_status = 'APPROVED'
and t3.contract_id = t1.contract_id
and (t1.invoice_method = 'BILLING' or
(t1.invoice_method = 'NO_BILLING' and
t1.contract_status in ('TERMINATE', 'ET', 'REPUR')))
......
......@@ -57,7 +57,19 @@
c.BUSINESS_TYPE,
(select hbt.DESCRIPTION
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,
con_contract c,
hls_bp_master h,
......@@ -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="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="large_balance" queryExpression="t.large_balance = ${@large_balance}"/>
</bm:query-fields>
<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)))"/>
......
......@@ -385,7 +385,19 @@
Where v1.code = 'YES_OR_NO'
And v1.code_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
WHERE t.data_class = 'NORMAL'
AND t.bp_id_agent_level1 = h.bp_id
......
......@@ -100,7 +100,19 @@
0)
else
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,
con_contract t,
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 @@
Where v1.code = 'YES_OR_NO'
And v1.code_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
WHERE ccc.contract_id = t.contract_id
AND ccli.contract_id (+) = t.contract_id
......
......@@ -196,7 +196,19 @@
Where v.code = 'YES_OR_NO'
And v.code_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
where ct.contract_status not in ('CANCEL')
and ct.data_class = 'NORMAL'
......
......@@ -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_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) {
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="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:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
......@@ -34,6 +36,48 @@
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>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="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:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
......@@ -52,6 +54,7 @@
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 record = $(ds_id).getCurrentRecord();
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).setQueryDataSet($(form_ds_id));
......@@ -59,6 +62,45 @@
$(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');
]]></script>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="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:link id="contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
......@@ -38,8 +40,42 @@
$(grid_ds_id).setQueryParameter('last_month_date',last_month_date);
$(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>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="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:link id="contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
......@@ -41,8 +43,42 @@
$(grid_ds_id).setQueryParameter('last_month_date',last_month_date);
$(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>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
......
......@@ -28,7 +28,9 @@
<a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<!-- <a:link id="get_special_fields_link_id" model="cont.CON500.con_contract_get_special_fields" modelaction="update"/> -->
<a:link id="get_special_fields_link_id" model="prj.PRJ500.get_new_prj_number" modelaction="update"/>
<!--<a:link id="get_special_fields_link_id" model="prj.PRJ500.get_new_prj_number" modelaction="update"/>-->
<a:link id="get_special_fields_link_id" model="prj.PRJ500.get_two_prj_number" modelaction="update"/>
<a:link id="principal_eq_pymt_adj_link_n" model="hls.HLS500N.query_principal_eq_pymt_adj" modelaction="update"/>
<a:link id="hls_bp_master_billing_link" model="prj.PRJ500N.hls_bp_master_billing" modelaction="query"/>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id"
url="${/request/@context_path}/downloadFile.lview"/>
......@@ -356,6 +358,8 @@
var check_flag = true;
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_record = $(prj_project_ds_id).getAt(0);
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var quotation_record = $(quotation_ds_id).getCurrentRecord();
var project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
// var lease_item_ds_id = '${/parameter/@layout_code}' + '_G_CAR_INFO_prj_project_lease_item_ds';
......@@ -395,7 +399,8 @@
function_usage: '${/parameter/@function_usage}',
lease_channel: prj_record.get('lease_channel'),
first_flag: prj_record.get('first_flag'),
ka_prj_id: prj_record.get('ka_prj_id')
ka_prj_id: prj_record.get('ka_prj_id'),
quotation_ds_id: quotation_record.get('large_balance')
},
success: function (res) {
var document_number = res.result.document_number;
......@@ -628,12 +633,15 @@
}
}
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
};
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
......@@ -804,6 +812,30 @@
}
}
var bp_code='${/model/user_agent_description/record/@bp_code}';
if (!Ext.isEmpty(bp_code)){
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
if (bp_code == 'D00000041' || bp_code =='D00010001' || bp_code=='D00000026') {
if (prj_quotation_ds_id == ds.id) {
if (name == 'price_list' && value) {
var quotation_record = $(prj_quotation_ds_id).getCurrentRecord();
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
if (value == 'HL_PRICR_E' || value == 'HL_PRICR_EN') {
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block';
} else {
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
quotation_record.set('large_balance', 'NO');
quotation_record.set('large_balance_n', '否');
}
}
}
}
}
}
};
......@@ -929,6 +961,56 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
if (record.get('large_balance') == 'YES') {
var project_number = current_record.get('project_number');
Leaf.request({
url: $('principal_eq_pymt_adj_link_n').getUrl(),
para: {p_project_number: project_number},
scope: this,
success: function (res) {
//先查询数量
var principal_eq_pymt_adj = res.result.principal_eq_pymt_adj;
//根据数量,一个直接查询显示,多个显示空
if (principal_eq_pymt_adj == null || principal_eq_pymt_adj == undefined || principal_eq_pymt_adj <= 0) {
Leaf.showMessage('${l:PROMPT}', '大额尾款报价需调整且只能调整最后一期租金');
return;
}else{
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('prj_approval_link_id').getUrl(),
para: {
project_id: project_id
},
scope: this,
success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
}else {
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
......@@ -952,6 +1034,31 @@
});
}
}
// if ($(ds_id).validate()) {
// Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// Leaf.request({
// url: $('prj_approval_link_id').getUrl(),
// para: {
// project_id: project_id
// },
// scope: this,
// success: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// $('${/parameter/@winid}').close();
// },
// failure: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// error: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// }
// });
// });
//
// }
}
......
......@@ -38,7 +38,7 @@
<a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id"
url="${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation.lsc"/>
<a:link id="principal_eq_pymt_adj_link_n" model="hls.HLS500N.query_principal_eq_pymt_adj" modelaction="update"/>
<a:link id="${/parameter/@layout_code}hls_bp_master_query_link"
url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"/>
......@@ -596,6 +596,7 @@
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
//选择承租人带出开票信息
if (prj_project_ds_id == ds.id && prj_project_ds_id) {
......@@ -794,6 +795,28 @@
}
}
}
var bp_code='${/model/user_agent_description/record/@bp_code}';
if (!Ext.isEmpty(bp_code)){
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170'){
if (bp_code == 'D00000041' || bp_code =='D00010001' || bp_code=='D00000026') {
if (prj_quotation_ds_id == ds.id){
if (name == 'price_list' && value){
var quotation_record = $(prj_quotation_ds_id).getCurrentRecord();
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
if (value == 'HL_PRICR_E' || value == 'HL_PRICR_EN'){
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block';
}else{
quotation_record.set('large_balance','NO');
quotation_record.set('large_balance_n','否');
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
}
}
}
}
}
};
......@@ -894,8 +917,32 @@
record.getField('branch_code_n').setRequired(false);
}
if (!Ext.isEmpty(bp_code)){
// if (bp_code == 'C00010168' || bp_code == 'C00010198' || bp_code == 'C00010170') {
if (bp_code == 'D00000041' || bp_code =='D00010001' || bp_code=='D00000026') {
//===============================
// var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var quotation_record = $(prj_quotation_ds_id).getCurrentRecord();
if ($(ds_id).getAt(0).get('business_type') == 'LEASE') {
if (quotation_record.get('price_list') == 'HL_PRICR_E' || quotation_record.get('price_list') == 'HL_PRICR_EN'){
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block';
}else{
quotation_record.set('large_balance','NO');
quotation_record.set('large_balance_n','否');
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
}
}else{
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
}else {
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
}
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if (score_ds_id == ds.id) {
......@@ -1073,6 +1120,21 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
if (record.get('large_balance') == 'YES') {
var project_number = current_record.get('project_number');
Leaf.request({
url: $('principal_eq_pymt_adj_link_n').getUrl(),
para: {p_project_number: project_number},
scope: this,
success: function (res) {
//先查询数量
var principal_eq_pymt_adj = res.result.principal_eq_pymt_adj;
//根据数量,一个直接查询显示,多个显示空
if (principal_eq_pymt_adj == null || principal_eq_pymt_adj == undefined || principal_eq_pymt_adj <= 0) {
Leaf.showMessage('${l:PROMPT}', '大额尾款报价需调整且只能调整最后一期租金');
return;
}else{
//验证通过---开始
if (current_record.get('business_type') == 'LEASE') {
Leaf.request({
url: $('prj_check_prj_record_link_n').getUrl(),
......@@ -1124,11 +1186,9 @@
},
failure: function () {
unlock_calc_current_window('${l:HLS.SAVING}');
},
error: function () {
unlock_calc_current_window('${l:HLS.SAVING}');
},
scope: this
});
......@@ -1158,8 +1218,190 @@
}
}
//验证通过END
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
}else {
//其他情况正常
if (current_record.get('business_type') == 'LEASE') {
Leaf.request({
url: $('prj_check_prj_record_link_n').getUrl(),
para: {
'project_id': project_id
},
success: function (res) {
var secondary_lease = res.result.secondary_lease;
var payment_deduction = res.result.payment_deduction;
var price_list = res.result.price_list;
var down_payment_rate_new = res.result.down_payment_rate_new;
var H16 = record.get('down_payment');
var H97 = record.get('third_party_deposit');
var H99 = record.get('other_fee');
var H102 = record.get('other_fee2');
var show = down_payment_rate_new * 100;
if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') {
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return;
}
}
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('prj_approval_link_id').getUrl(),
para: {
project_id: project_id
},
scope: this,
success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}
},
failure: function () {
unlock_calc_current_window('${l:HLS.SAVING}');
},
error: function () {
unlock_calc_current_window('${l:HLS.SAVING}');
},
scope: this
});
} else {
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('prj_approval_link_id').getUrl(),
para: {
project_id: project_id
},
scope: this,
success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}
}
}
// if (current_record.get('business_type') == 'LEASE') {
// Leaf.request({
// url: $('prj_check_prj_record_link_n').getUrl(),
// para: {
// 'project_id': project_id
// },
// success: function (res) {
// var secondary_lease = res.result.secondary_lease;
// var payment_deduction = res.result.payment_deduction;
// var price_list = res.result.price_list;
// var down_payment_rate_new = res.result.down_payment_rate_new;
// var H16 = record.get('down_payment');
// var H97 = record.get('third_party_deposit');
// var H99 = record.get('other_fee');
// var H102 = record.get('other_fee2');
//
// var show = down_payment_rate_new * 100;
// if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') {
// if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
// return;
// }
// }
// if ($(ds_id).validate()) {
// Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// Leaf.request({
// url: $('prj_approval_link_id').getUrl(),
// para: {
// project_id: project_id
// },
// scope: this,
// success: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// $('${/parameter/@winid}').close();
// },
// failure: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// error: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// }
// });
// });
//
// }
//
// },
// failure: function () {
// unlock_calc_current_window('${l:HLS.SAVING}');
//
// },
// error: function () {
// unlock_calc_current_window('${l:HLS.SAVING}');
//
// },
// scope: this
// });
// } else {
// if ($(ds_id).validate()) {
// Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// Leaf.request({
// url: $('prj_approval_link_id').getUrl(),
// para: {
// project_id: project_id
// },
// scope: this,
// success: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// $('${/parameter/@winid}').close();
// },
// failure: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// error: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// }
// });
// });
//
// }
//
// }
};
var bp_rate_flag;
......
......@@ -6,10 +6,65 @@
$Purpose:
-->
<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:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly" modelaction="update"/>-->
<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>
<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"/>
......@@ -29,6 +84,8 @@
<a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/>
<a:column name="contract_number" align="center" prompt="合同编号" width="100"/>
<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="modelcd" align="center" prompt=" 机型" width="180"/>
<a:column name="machine_number" align="center" prompt="机器号码" width="80"/>
......@@ -60,6 +117,8 @@
<a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/>
<a:column name="contract_number" align="center" prompt="合同编号" width="100"/>
<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="modelcd" align="center" prompt=" 机型" width="180"/>
<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