Commit 30541032 authored by panhong18943's avatar panhong18943

保证金时间价值

parent 8d92e315
......@@ -13,7 +13,8 @@
SUM(v.sale_amount) sale_amount,
SUM(v.sale_penalty)sale_penalty,
SUM(v.sale_other)sale_other,
(SUM(v.sale_amount)+SUM(v.sale_penalty)+SUM(v.sale_other)) sum_total
SUM(v.deposit_value_amount)deposit_value_amount,
(SUM(v.sale_amount)+SUM(v.sale_penalty)+SUM(v.sale_other)+SUM(v.deposit_value_amount)) sum_total
from (
select *
from CONTRACT_BENEFITS_SALE_V t
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: Clocc
$Date: 2015-8-3 上午9:49:00
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select contract_id,contract_number,bp_id_tenant_n
from (
select t.contract_id,
t.contract_number,
(select bp.bp_name
from hls_bp_master bp
where t.bp_id_tenant = bp.bp_id) bp_id_tenant_n
from con_contract t
where t.data_class = 'NORMAL'
and exists
(select 1
from csh_transaction t1
where t1.ref_contract_id = t.contract_id
and trunc(t1.transaction_date) >= to_date('2023-10-01', 'yyyy-mm-dd')
and (t1.transaction_type = 'DEPOSIT')
and t1.deposit_trans_type in ('rent_deposit') --租金保证金
and (t1.ref_contract_id is not null and
t1.source_type is not null)
and (t1.returned_flag <> 'RETURN')
and (t1.transaction_amount - nvl(t1.returned_amount, 0) -
nvl(t1.write_off_amount, 0)) > 0
and ((trunc(t1.transaction_date) < trunc(t.inception_of_lease) and
t.lease_times >= 12) or
(trunc(t1.transaction_date) >= trunc(t.inception_of_lease) and
(select to_char(max(ccc.due_date), 'yyyymm')
from con_contract_cashflow ccc
where ccc.contract_id = t.contract_id
and ccc.cf_item = 1
and ccc.cf_status = 'RELEASE') -
to_char(t1.transaction_date, 'yyyymm') >= 12)))
and not exists (select 1
from hlcm_deposit_bp b
where b.bp_id = t.bp_id_agent_level1
and b.deposit_calc_type = 'DEPOSIT_POOL'
and b.enabled_flag = 'Y')
and not exists
(select 1
from con_contract_lease_item li, hls_lease_item h, hls_bp_master m
where li.contract_id = t.contract_id
and li.lease_item_id = h.lease_item_id
and h.vender_id = m.bp_id
and m.bp_category = 'VENDER'
and m.bp_name in
('永立建机(中国)有限公司', '日立建机销售(中国)有限公司'))
and not exists (select 1
from hlcm_deposit_data d
where d.document_id = t.contract_id
and d.deposit_type = 'R')
and not exists (select *
from hlcm_deposit_calc_apply a
where a.document_id = t.contract_id
and a.wfl_status = 'APPROVING')
union all
select t.contract_id,
t.contract_number,
(select bp.bp_name
from hls_bp_master bp
where t.bp_id_tenant = bp.bp_id) bp_id_tenant_n
from con_contract t
where t.data_class = 'NORMAL'
and exists (select 1
from hlcm_deposit_data d
where d.document_id = t.contract_id
and d.deposit_type = 'R'
and d.enable_calc_flag = 'N')
and not exists (select *
from hlcm_deposit_calc_apply a
where a.document_id = t.contract_id
and a.wfl_status = 'APPROVING')) t1 #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" prompt="合同编号"/>
<bm:field name="bp_id_tenant_n" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" prompt="承租人"/>
</bm:fields>
<bm:query-fields>
<bm:query-field field="contract_number" queryOperator="like"/>
<bm:query-field field="bp_id_tenant_n" queryOperator="like"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hlcm_deposit_value_pkg.create_calc_deposit_job(p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_deposit_value_pkg.create_calc_deposit_job(p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
select hlcm_deposit_calc_batch_s.nextval into ${@batch_id} from dual;
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="batch_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@batch_id"/>
</bm:parameters>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hlcm_deposit_value_pkg.insert_deposit_apply(p_document_id => ${@document_id},
p_apply_calc_type =>${@apply_calc_type},
p_inter_period_num =>${@inter_period_num},
p_batch_id => ${../@batch_id},
p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_deposit_value_pkg.deposit_calc_apply_submit(p_batch_id => ${@batch_id},
p_company_id => ${/session/@company_id},
p_role_id => ${/session/@role_id},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hlcm_deposit_value_pkg.update_deposit_re_calc_flag(
p_period_num =>${@period_num},
p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_deposit_value_pkg.update_deposit_re_calc( p_deposit_hd_id =>${@deposit_hd_id},
p_period_num =>${@period_num},
p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: Clocc
$Date: 2015-8-3 上午9:49:00
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT
to_char(add_months(sysdate,-1),'yyyymm') as last_month
FROM
dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
var override_queryfields = [
];
var add_datafilters = [{
name: 'deposit_type',
expression: " (not exists (select 1 from hlcm_deposit_calc_apply t where t.document_id = t1.document_id and t.deposit_type = t1.deposit_type and t.wfl_status = 'APPROVING'))"
}];
add_datafilter();
override();
var override_queryfields = [
{
name : 'query_amount_flag',
queryexpression : "((${@query_amount_flag} = '1' and t1.deposit_balance > 0) or (${@query_amount_flag} = '2' and t1.deposit_balance = 0) or (${@query_amount_flag} = '3'))"
},
{
name : 'total_balance_f',
queryexpression : "t1.total_balance >= ${@total_balance_f}"
},
{
name : 'total_balance_t',
queryexpression : "t1.total_balance <= ${@total_balance_t}"
},
{
name : 'transaction_date_f',
queryexpression : "t1.transaction_date >= to_date(${@transaction_date_f},'yyyy-mm-dd')"
},
{
name : 'transaction_date_t',
queryexpression : "t1.transaction_date <=to_date(${@transaction_date_t},'yyyy-mm-dd')"
}
];
override();
var override_queryfields = [
{
name : 'calc_date_f',
queryexpression : "t1.calc_date >= to_date(${@calc_date_f},'yyyy-mm-dd')"
},
{
name : 'calc_date_t',
queryexpression : "t1.calc_date <=to_date(${@calc_date_t},'yyyy-mm-dd')"
},{
name : 'bp_name',
queryexpression : "t1.bp_name like ${@bp_name}"
},{
name : 'manufacturer',
queryexpression : "t1.manufacturer like ${@manufacturer}"
}
];
override();
......@@ -230,6 +230,7 @@
<a:column name="sale_amount" prompt="销售收入" align="center" width="220"/>
<a:column name="sale_penalty" prompt="逾期利息收入" align="center" width="220"/>
<a:column name="sale_other" prompt="其他收入" align="center" width="220"/>
<a:column name="deposit_value_amount" prompt="保证金时间价值收益" align="center" width="220"/>
</a:columns>
</a:grid>
......@@ -240,6 +241,7 @@
<a:column name="sale_amount" prompt="销售收入" align="center" width="220"/>
<a:column name="sale_penalty" prompt="逾期利息收入" align="center" width="220"/>
<a:column name="sale_other" prompt="其他收入" align="center" width="220"/>
<a:column name="deposit_value_amount" prompt="保证金时间价值收益" align="center" width="220"/>
<a:column name="sum_total" prompt="合计" align="center" width="220"/>
</a:columns>
</a:grid>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-1 下午02:44:52
$Revision: 1.0
$Purpose: 合同维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="submit_deposit_calc_selected_link_id" url="${/request/@context_path}/modules/cus_deposit/CUS_DEPOSIT150/submit_deposit_calc_selected.lsc"/>
<a:link id="submit_deposit_calc_add_link_id" url="${/request/@context_path}/modules/cus_deposit/CUS_DEPOSIT150/submit_deposit_calc_add.lview"/>
<script type="text/javascript"><![CDATA[
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
new Leaf.Window({
id:'submit_deposit_calc_add_win',
url:$('submit_deposit_calc_add_link_id').getUrl(),
title:'合同选择',
height:180,
width:530
});
};
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hlcm_deposit_value_hd');
var g_ds = '${/parameter/@layout_code}_G_MONTH__ds';
var records = $(ds_id).getSelected();
var g_record = $(g_ds).getCurrentRecord();
if (records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录');
return;
}
var inter_period_num = g_record.get('inter_period_num');
if(Ext.isEmpty(inter_period_num)){
Leaf.showMessage('${l:PROMPT}', '请选择计算月份');
return;
}
var enable_calc_flag = records[0].get('enable_calc_flag');
var apply_calc_type;
if (records[0].get('enable_calc_flag') == 'Y'){
apply_calc_type = 'CANCEL_CALC';
}else{
apply_calc_type = 'CALC';
}
var param = [];
for (var i = 0; i < records.length;i++) {
if (enable_calc_flag != records[i].get('enable_calc_flag')){
Leaf.showMessage('${l:PROMPT}', '一个批次只能选择计算标识一致的合同');
return;
}
param.push({
'document_id': records[i].get('document_id'),
'apply_calc_type': apply_calc_type,
'inter_period_num': inter_period_num
});
}
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认提交审批?', function() {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('submit_deposit_calc_selected_link_id').getUrl(),
para: param,
success: function(res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
$(ds_id).query();
},
failure: function(res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
});
} ;
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-1 下午02:44:52
$Revision: 1.0
$Purpose: 合同维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-1 下午02:44:52
$Revision: 1.0
$Purpose: 合同维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-1 下午02:44:52
$Revision: 1.0
$Purpose: 合同维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="${/parameter/@layout_code}_deposit_value_h_detail_link" url="${/request/@context_path}/modules/cus_deposit/CUS_DEPOSIT150/hlcm_deposit_value_detail.lview"/>
<script type="text/javascript"><![CDATA[
function open_h_detail_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = {};
param['month_hd_id'] = record.get('month_hd_id');
param['function_usage'] = 'QUERY';
param['function_code'] = 'CUS_DEPOSIT150_H_D';
param['maintain_type'] = 'QUERY';
param['url_title'] = '保证金时间价值明细';
var url = '${/parameter/@layout_code}_deposit_value_h_detail_link';
var win = new Leaf.Window({
id: 'deposit_value_h_detail_link',
params: param,
url: $(url).getUrl(),
title: '保证金时间价值明细',
fullScreen: true,
draggable: true
});
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
if (name == 'h_detail') {
return '<a href="javascript:open_h_detail_win(\'' + record.ds.id + '\',\'' + record.id + '\')">明细</a>';
}
return value;
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link id="submit_deposit_calc_con_link_id" url="${/request/@context_path}/modules/cus_deposit/CUS_DEPOSIT150/submit_deposit_calc_selected.lsc"/>
<script type="text/javascript"><![CDATA[
// 取消
function cus_deposit_calc_add_close() {
$('submit_deposit_calc_add_win').close();
}
// 提交计算保证金
function cus_deposit_calc_add_sumbit() {
var record = $('con_contract_result_ds').getCurrentRecord();
var apply_calc_type = 'CALC';
var param = [];
param.push({
'document_id': record.get('document_id'),
'apply_calc_type': apply_calc_type
});
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认提交审批?', function() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: $('submit_deposit_calc_con_link_id').getUrl(),
para: param,
success: function(res) {
Leaf.Masker.unmask(Ext.getBody());
cus_deposit_calc_add_close();
},
failure: function(res) {
Leaf.Masker.unmask(Ext.getBody());
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
});
}
]]></script>
<a:dataSets>
<a:dataSet id="con_contract_result_ds">
<a:fields>
<a:field name="document_id"/>
<a:field name="document_code" autoComplete="true" lovGridHeight="300" lovHeight="430" lovService="cus_deposit.CUS_DEPOSIT150.con_contract_for_lov" lovWidth="500" required="true" title="合同列表">
<a:mapping>
<a:map from="contract_id" to="document_id"/>
<a:map from="contract_number" to="document_code"/>
<a:map from="bp_id_tenant_n" to="bp_id_tenant_n"/>
</a:mapping>
</a:field>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="cus_deposit_calc_add_sumbit" text="提交计算保证金"/>
<a:gridButton click="cus_deposit_calc_add_close" text="取消"/>
</a:screenTopToolbar>
<a:fieldSet title="请选择合同" width="500">
<a:form bindTarget="csh_transaction_receipt_maintain_result_ds" column="2" >
<a:lov name="document_code" prompt="合同编号" bindTarget="con_contract_result_ds"/>
<a:textField name="bp_id_tenant_n" prompt="承租人" bindTarget="con_contract_result_ds" readOnly="true"/>
</a:form>
</a:fieldSet>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:model-insert model="cus_deposit.CUS_DEPOSIT150.submit_deposit_calc_selected"/>
<batch-apply sourcepath="/parameter">
<a:model-execute model="cus_deposit.CUS_DEPOSIT150.submit_deposit_calc_selected"/>
</batch-apply>
<a:model-update model="cus_deposit.CUS_DEPOSIT150.submit_deposit_calc_selected"/>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-1 下午02:44:52
$Revision: 1.0
$Purpose: 合同维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="cus_deposit.CUS_DEPOSIT160.get_current_date" rootPath="default_date_path"/>
</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"/>
<a:link id="${/parameter/@layout_code}con_contract_query_link" url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_op_query_link" url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_op_modify.lview"/>
<a:link id="${/parameter/@layout_code}hls_bp_master_query_link" url="${/request/@context_path}/modules/cont/CON505/hls_bp_master_query.lview"/>
<a:link id="${/parameter/@layout_code}pur_order_deteail_link_id" url="${/request/@context_path}/modules/prj/PRJ2000/purchase_order_deteail.lview"/>
<script type="text/javascript"><![CDATA[
Leaf.onReady(function() {
var ds = $('${/parameter/@layout_code}_F_QUERY__ds');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hlcm_deposit_value_detail');
var record = ds.getCurrentRecord();
record.set('internal_period_num', '${/model/default_date_path/record/@last_month}');
record.set('internal_period_num_n', '${/model/default_date_path/record/@last_month}');
});
function open_decoment_r_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
var division=param.division;
param['contract_id'] = record.get('document_id');
if(division!='95'){
param['function_usage'] = 'QUERY';
param['function_code'] = 'CON3200Q';
param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
var url = '${/parameter/@layout_code}con_contract_query_link';
}else {
param['function_usage'] = 'QUERY';
param['function_code'] = 'CON3200Q_OP';
param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
var url = '${/parameter/@layout_code}con_contract_op_query_link';
}
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, url, ds_id);
}
function open_decoment_v_win(ds_id, record_id){
debugger;
var record = $(ds_id).findById(record_id);
var project_id = record.get('order_project_id');
var param = {};
param['function_code'] = 'PRJ2000D_WFL';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'READONLY'
param['url_title'] = '采购申请单查询';
param['project_id'] = project_id;
var url = '${/parameter/@layout_code}pur_order_deteail_link_id';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, url, ds_id);
}
function open_decoment_pool_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = {};//record.data;
param['bp_id'] = record.get('document_id');
//param['cdd_list_id'] = record.get('cdd_list_id');
param['company_id'] = '${/session/company_id}';
param['document_id'] = record.get('document_id');
param['document_category'] = 'BP';
param['bp_class'] = 'ORG';
param['bp_category'] = 'AGENT';
param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY';
param['bp_type'] = 'AGENT';
param['download'] = 'Y';
param['url_title'] = '${l:HLS212.BP_MASTER_QUERY}';
var url = '${/parameter/@layout_code}hls_bp_master_query_link';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, url, ds_id);
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
if (name == 'document_code') {
if (record.get('deposit_type') == 'R'){
return '<a href="javascript:open_decoment_r_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}else if (record.get('deposit_type') == 'V'){
return '<a href="javascript:open_decoment_v_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}else if (record.get('deposit_type') == 'POOL'){
return '<a href="javascript:open_decoment_pool_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}
}
return value;
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment