Commit 0da55362 authored by stone's avatar stone

[fix] 完成授信功能,添加失效启用按钮

parent 223bb6e5
......@@ -83,6 +83,58 @@ sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'HLS.DOCUMENT_CONFIRMED_BY',
sys_message_pkg.insert_message('E_NO_THIS_ACCOUNT',
'错误',
'我方没有此银行账号!','ZHS');
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.CSH_TRANSACTION_NUM',
p_language => 'ZHS',
p_description => '现金事务编号',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.RECEIPT_TYPE',
p_language => 'ZHS',
p_description => '收款类型',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT',
p_language => 'ZHS',
p_description => '收款金额',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.RETURN_AMOUNT',
p_language => 'ZHS',
p_description => '退款金额',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.USEFUL_AMOUNT',
p_language => 'ZHS',
p_description => '可用金额',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.DESCRIPTION',
p_language => 'ZHS',
p_description => '摘要',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.MY_ACCOUNT',
p_language => 'ZHS',
p_description => '我方账户',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.YOUR_ACCOUNT',
p_language => 'ZHS',
p_description => '对方账户',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.ACCOUNT_NAME',
p_language => 'ZHS',
p_description => '户名',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.ACCOUNT_BANK',
p_language => 'ZHS',
p_description => '银行',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.ACCOUNT_NUM',
p_language => 'ZHS',
p_description => '账号',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.DEPT_CONFIRMER',
p_language => 'ZHS',
p_description => '债权确认人',
p_created_by => 1);
sys_prompt_pkg.sys_prompts_load(p_prompt_code => 'CSH510.CSH_TRANSACTION.ACCT_CONFIRMER',
p_language => 'ZHS',
p_description => '会计确认人',
p_created_by => 1);
end;
/
commit;
......
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool REGISTER_CON_REPO001.log
set feedback off
set define off
begin
--页面注册
begin
--页面注册
sys_function_assign_pkg.service_load('modules/hls/HLS362N/credit_entrance_detail_confirm.lview','授信详细',1,1,0);
sys_function_assign_pkg.func_service_load('HLS361N','modules/hls/HLS362N/credit_entrance_detail_confirm.lview');
end;
--创建动态页面的虚拟功能号
INSERT INTO sys_function_dynamic
(function_code,
function_name,
sequence,
creation_date,
created_by,
last_update_date,
last_updated_by)
VALUES
('HLS36103', '授信详细', 1, SYSDATE, -1, SYSDATE, -1);
/
commit;
set feedback on
set define on
spool off
exit
create or replace view credit_agent_details_v as
select
hv.bp_id,
hv.bp_code,
hv.bp_name,
c.contract_number,
(select bp_name from hls_bp_master hbm where hbm.bp_id=hv.bp_id)BP_ID_TENANT,
--占用额度
(select c.total_rental+c.down_payment from dual) used_amount,
--释放额度
( select nvl(sum(co.csh_write_off_amount),0)
from CSH_WRITE_OFF co
where
( co.cf_item=1 and co.cf_type=1 and co.reversed_flag='N' and co.contract_id=c.contract_id)
or ( co.cf_item=2 and co.cf_type=2 and co.reversed_flag='N' and co.contract_id=c.contract_id)
or ( co.cf_item=200 and co.cf_type=1 and co.reversed_flag='N' and co.contract_id=c.contract_id)
or ( co.cf_item=250 and co.cf_type=1 and co.reversed_flag='N' and co.contract_id=c.contract_id) )RELEASED_AMOUNT
from hls_bp_master_v hv,con_contract c
where hv.bp_category='AGENT' and c.bp_id_agent_level1=bp_id
create or replace view credit_tenant_details_v as
select
hv.bp_id,
hv.bp_code,
hv.bp_name,
c.contract_number,
(select bp_name from hls_bp_master hbm where hbm.bp_id=hv.bp_id)BP_ID_TENANT,
--占用额度
(select c.total_rental+c.down_payment from dual) used_amount,
--释放额度
( select nvl(sum(co.csh_write_off_amount),0)
from CSH_WRITE_OFF co
where
( co.cf_item=1 and co.cf_type=1 and co.reversed_flag='N' and co.contract_id=c.contract_id)
or ( co.cf_item=2 and co.cf_type=2 and co.reversed_flag='N' and co.contract_id=c.contract_id)
or ( co.cf_item=200 and co.cf_type=1 and co.reversed_flag='N' and co.contract_id=c.contract_id)
or ( co.cf_item=250 and co.cf_type=1 and co.reversed_flag='N' and co.contract_id=c.contract_id) )RELEASED_AMOUNT
from hls_bp_master_v hv,con_contract c
where hv.bp_category='TENANT' and c.bp_id_tenant=bp_id
\ No newline at end of file
......@@ -13,7 +13,7 @@
<bm:field name="transaction_type" databaseType="VARCHAR2" datatype="java.lang.String" lookupCode="CSH513_WRITE_OFF_TYPE" lookupField="transaction_type_desc" physicalName="TRANSACTION_TYPE" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_TYPE"/>
<bm:field name="transaction_date" databaseType="DATE" datatype="java.util.Date" physicalName="TRANSACTION_DATE" prompt="CSH511.CSH_TRANSACTION.TRANSACTION_DATE"/>
<bm:field name="penalty_calc_date" databaseType="DATE" datatype="java.util.Date" physicalName="PENALTY_CALC_DATE" prompt="CSH511.CSH_TRANSACTION.PENALTY_CALC_DATE"/>
<bm:field name="bank_slip_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_SLIP_NUM" prompt="CSH511.CSH_TRANSACTION.BANK_SLIP_NUM"/>
<bm:field name="bank_slip_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_SLIP_NUM" prompt="银行流水号"/>
<bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID" prompt="CSH511.CSH_TRANSACTION.COMPANY_ID"/>
<bm:field name="internal_period_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INTERNAL_PERIOD_NUM" prompt="CSH511.CSH_TRANSACTION.INTERNAL_PERIOD_NUM"/>
<bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME" prompt="HLS.ACCOUNT_PERIOD_NAME"/>
......@@ -62,7 +62,7 @@
<bm:field name="exchange_rate_type_display" expression="(select tv.type_name from gld_exchangerate_types_vl tv where tv.type_code=t1.exchange_rate_type)" forInsert="false" forUpdate="false" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:field name="transaction_functional_amount" expression="gld_exchange_rate_pkg.get_currency_exchange(t1.transaction_amount,t1.exchange_rate,t1.exchange_rate_quotation)" forInsert="false" forUpdate="false" prompt="HLS.FUNCTIONAL_AMOUNT"/>
<bm:field name="bank_account_code" expression="(select a.bank_account_code from csh_bank_account a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_CODE"/>
<bm:field name="bank_account_name" expression="(select a.bank_account_name from csh_bank_account a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NAME"/>
<bm:field name="bank_account_name" expression="(select a.bank_account_name from csh_bank_account a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="我方银行名称"/>
<bm:field name="bank_account_num" expression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NUM"/>
<bm:field name="bank_branch_name" expression="(select a.bank_branch_name from csh_bank_account_v a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_BRANCH_NAME"/>
<bm:field name="bank_account_type_name" expression="(select a.bank_account_type_name from csh_bank_account_v a where a.bank_account_id=t1.bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_TYPE_NAME"/>
......@@ -94,10 +94,11 @@
<bm:field name="purpose"/>
<bm:field name="gsber"/>
<bm:field name="sus_belnr"/>
<bm:field name="bp_bank_account_name" prompt="CSH511.BANK_ACCOUNT_NAME"/>
<bm:field name="bp_bank_account_name" prompt="对方账户名称"/>
<bm:field name="receipt_type"/>
<bm:field name="bp_virtual_bank_account"/>
<bm:field name="paid_byother_flag_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'PAID_BYOTHER_FLAG' and v.code_value =t1.paid_byother_flag)" forInsert="false" forUpdate="false"/>
<bm:field name="paid_byother_flag_n" expression="(select v.code_value_name from sys_code_values_v v where v.code = 'PAID_BYOTHER_FLAG' and v.code_value =t1.paid_byother_flag)" forInsert="false" forUpdate="false" prompt="代付字段"/>
<bm:field name="paid_byother_flag" />
</bm:fields>
<bm:features>
......
......@@ -61,6 +61,9 @@
unlock_current_window();
$('csh_transaction_receipt_maintain_result_ds').query();
Leaf.showMessage('${l:PROMPT}', '修改成功!');
$('csh509_csh_trx_bank_business_confirm').enable();
$('csh509_csh_trx_bank_refuse').enable();
$('csh509_csh_trx_bank_drop').enable();
}, failure: function () {
unlock_current_window();
},
......@@ -74,8 +77,8 @@
}
//营业人员确认
function csh509_csh_trx_bank_business_confirm(){
console.log('${/session/@user_id}');
//console.log('${/session/@user_id}');
$('csh509_csh_trx_bank_business_confirm').disable();
//根据身份判断所选择的数据是否可以确认
var datas = $('csh_transaction_receipt_maintain_result_ds').selected;
var updateData=[];
......@@ -122,6 +125,7 @@
//营业人员驳回单据
function csh509_csh_trx_bank_refuse(){
//驳回收款单
$('csh509_csh_trx_bank_refuse').disable();
//根据身份判断所选择的数据是否可以确认
var datas = $('csh_transaction_receipt_maintain_result_ds').selected;
if(datas.length==0){
......@@ -163,6 +167,7 @@
function csh509_csh_trx_bank_drop(){
//驳回收款单
//根据身份判断所选择的数据是否可以确认
$('csh509_csh_trx_bank_drop').disable();
var datas = $('csh_transaction_receipt_maintain_result_ds').selected;
if(datas.length==0){
$L.showInfoMessage("提示",'请先选择数据');
......@@ -231,6 +236,7 @@
}
function csh510_receipt_query() {
var record = $('csh_transaction_receipt_maintain_query_ds').getAt(0);
var dirty_flag = 'N';
for (var name in record.data) {
......@@ -244,6 +250,7 @@
return;
}, function () {
$('csh_transaction_receipt_maintain_result_ds').query();
}, null, null);
} else {
$('csh_transaction_receipt_maintain_result_ds').query();
......@@ -684,10 +691,10 @@
<!-- <a:gridButton click="csh510_receipt_back" text="HLS.BACK"/>
<a:gridButton click="csh510_receipt_forward" text="HLS.FORWARD"/> -->
<!-- <a:gridButton click="csh510_receipt_quit" text="HLS.EXIT"/> -->
<a:gridButton click="csh509_csh_trx_bank_business_confirm" text="新增确认"/>
<a:gridButton click="csh509_csh_trx_bank_refuse" text="新增驳回"/>
<a:gridButton click="csh509_csh_trx_bank_drop" text="作废"/>
<a:gridButton click="csh510_receipt_query" text="查询"/>
<a:gridButton click="csh509_csh_trx_bank_business_confirm" text="CSH509.CSH_RECEIPT_CONFIRM.NEW_APPLY_BTN" id="csh509_csh_trx_bank_business_confirm"/>
<a:gridButton click="csh509_csh_trx_bank_refuse" text="CSH509.CSH_RECEIPT_CONFIRM.REFUSE_BTN" id="csh509_csh_trx_bank_refuse"/>
<a:gridButton click="csh509_csh_trx_bank_drop" text="CSH509.CSH_RECEIPT_CONFIRM.DROP_BTN" id="csh509_csh_trx_bank_drop"/>
<a:gridButton click="csh510_receipt_query" text="CSH509.CSH_RECEIPT_CONFIRM.QUERY_BTN" id="csh510_receipt_query"/>
<!--<a:gridButton click="csh510_receipt_remove" text="HLS.REMOVE"/>-->
<!-- <a:gridButton click="csh510_csh_trx_bank_apply_new" text="CSH510.CSH_TRANSACTION.APPLY_NEW_BTN"/>
<a:gridButton click="csh510_csh_trx_bank_drop" text="CSH510.CSH_TRANSACTION.DROP_BTN"/>-->
......@@ -732,31 +739,31 @@
</a:toolBar>-->
<a:columns>
<a:column name="transaction_num" prompt="现金事务编号" renderer="seedetail_transaction_num" width="110"/>
<a:column name="receipt_type" align="center" prompt="收款类型" width="100"/>
<a:column name="transaction_amount" align="right" prompt="收款金额" width="100" renderer="Leaf.formatMoney"/>
<a:column name="transaction_num" prompt="CSH510.CSH_TRANSACTION.CSH_TRANSACTION_NUM" renderer="seedetail_transaction_num" width="110"/>
<a:column name="receipt_type" align="center" prompt="CSH510.CSH_TRANSACTION.RECEIPT_TYPE" width="100"/>
<a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" width="100" renderer="Leaf.formatMoney"/>
<a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/>
<a:column name="returned_amount" prompt="退款金额" align="right" renderer="Leaf.formatMoney" />
<a:column name="use_money_amount" prompt="可用金额" align="right" renderer="Leaf.formatMoney"/>
<a:column name="collection_classes_desc" prompt="款项用途" align="center"/>
<a:column name="bp_name" prompt="商业伙伴" align="center"/>
<a:column name="bank_slip_num" prompt="银行流水号" align="center"/>
<a:column name="description" prompt="摘要" align="center"/>
<a:column name="confirmed_flag_desc" prompt="单据状态" align="center"/>
<a:column name="written_off_flag_desc" prompt="核销状态" align="center"/>
<a:column prompt="我方账户" align="center">
<a:column prompt="户名" name="bank_account_name" align="center"/>
<a:column prompt="银行" name="bank_branch_name" align="center"/>
<a:column prompt="账号" name="bank_account_num" align="center"/>
<a:column name="returned_amount" prompt="CSH510.CSH_TRANSACTION.RETURN_AMOUNT" align="right" renderer="Leaf.formatMoney" />
<a:column name="use_money_amount" prompt="CSH510.CSH_TRANSACTION.USEFUL_AMOUNT" align="right" renderer="Leaf.formatMoney"/>
<a:column name="collection_classes_desc" prompt="CSH510.CSH_TRANSACTION.PURPOSE_OF_FUNDS" align="center"/>
<a:column name="bp_name" prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER" align="center"/>
<a:column name="bank_slip_num" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE" align="center"/>
<a:column name="description" prompt="CSH510.CSH_TRANSACTION.DESCRIPTION" align="center"/>
<a:column name="confirmed_flag_desc" prompt="CSH510.CSH_TRANSACTION.BILL_STATUS" align="center"/>
<a:column name="written_off_flag_desc" prompt="CSH510.CSH_TRANSACTION.WRITTEN_OFF_STATUS" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT" align="center">
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NAME" name="bank_account_name" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_BANK" name="bank_branch_name" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NUM" name="bank_account_num" align="center"/>
</a:column>
<a:column prompt="对方账户">
<a:column prompt="户名" name="bp_bank_account_name" align="center"/>
<a:column prompt="银行" name="opposite_band_na" align="center"/>
<a:column prompt="账号" name="bp_bank_account_num" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT">
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NAME" name="bp_bank_account_name" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_BANK" name="opposite_band_na" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NUM" name="bp_bank_account_num" align="center"/>
</a:column>
<a:column name="user_desc" prompt="HLS.DOCUMENT_CREATED_BY" align="center"/>
<a:column name="debt_confirmed_by_desc" prompt="债权确认人" align="center"/>
<a:column name="acc_confirmed_by_desc" prompt="会计确认人" align="center"/>
<a:column name="debt_confirmed_by_desc" prompt="CSH510.CSH_TRANSACTION.DEPT_CONFIRMER" align="center"/>
<a:column name="acc_confirmed_by_desc" prompt="CSH510.CSH_TRANSACTION.ACCT_CONFIRMER" align="center"/>
</a:columns>
</a:grid>
</a:fieldSet>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: chenlingfeng7543
$Date: 2018/12/20 21:19
$Author: sf
$Date: 2019/09/24 21:19
$Revision: 1.0
$Purpose: 商业伙伴授信维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
<!--<a:model-query fetchAll="true" model="basic.get_sys_default_time" rootPath="sys_default_time"/>-->
<a:model-query fetchAll="true" model="basic.get_sys_default_time" rootPath="sys_default_time"/>-->
</a:init-procedure>
<a:view>
<a:link id="credit_enhance_detail_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[
Leaf.onReady(function(){
console.log('${/parameter/@bp_credit_hd_id}')
console.log('${/parameter/@bp_id}')
console.log('${/parameter/@bp_category}')
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var record = $(ds_id).getCurrentRecord();
$(ds_id).setQueryParameter('bp_id','${/parameter/@bp_id}');
$(ds_id).query();
})
//确认按钮
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
......
......@@ -13,7 +13,8 @@ $Purpose: 商业伙伴授信维护
</a:init-procedure>
<a:view>
<a:link id="hn1150_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="hls361_hls_bp_master_credit_detail_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_entrance_detail.lview"/>
<a:link id="hls361_hls_bp_master_credit_tenant_detail_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_entrance_detail.lview"/>
<a:link id="hls361_hls_bp_master_credit_agent_detail_link" url="${/request/@context_path}/modules/hls/HLS362N/credit_entrance_detail_confirm.lview"/>
<a:link id="hls361N_update_credit_status_link_id" model="hls.HLS361N.hls_bp_master_credit_update_status" modelaction="update"/>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="check_roles" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
......@@ -37,11 +38,17 @@ $Purpose: 商业伙伴授信维护
}
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
//console.log(record);
var link_function = '';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'bp_code' && value) {
if (record.get('bp_category')=='TENANT'){
link_function = 'on_business_tenant_detail_window';
}else if ( record.get('bp_category')=='AGENT'){
link_function = 'on_business_agent_detail_window';
}
link_function = 'on_business_partner_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>';
}
}
......@@ -136,17 +143,30 @@ $Purpose: 商业伙伴授信维护
}
function on_business_partner_detail_window(id, name) {
//--承租人的详细信息
function on_business_tenant_detail_window(id, name) {
//获得该条record的所有数据
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
console.log(record)
var param = record.data;
param['function_code'] = 'HLS36101';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
param['url_title'] = '商业伙伴授信详细';
hls_doc_get_layout_code('hn1150_get_layout_code_link_id', param, 'hls361_hls_bp_master_credit_detail_link', null);
hls_doc_get_layout_code('hn1150_get_layout_code_link_id', param, 'hls361_hls_bp_master_credit_tenant_detail_link', null);
}
//--经销商的详细信息
function on_business_agent_detail_window(id, name) {
//获得该条record的所有数据
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = record.data;
param['function_code'] = 'HLS36103';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
param['url_title'] = '商业伙伴授信详细';
hls_doc_get_layout_code('hn1150_get_layout_code_link_id', param, 'hls361_hls_bp_master_credit_agent_detail_link', null);
}
]]></script>
......
......@@ -15,9 +15,12 @@ $Purpose: 商业伙伴授信维护
<script type="text/javascript"><![CDATA[
Leaf.onReady(function(){
console.log('${/parameter/@bp_credit_hd_id}')
console.log('${/parameter/@bp_id}')
console.log('${/parameter/@bp_category}')
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var record = $(ds_id).getCurrentRecord();
$(ds_id).setQueryParameter('bp_id','${/parameter/@bp_id}');
$(ds_id).query();
})
//确认按钮
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
......
......@@ -13,7 +13,8 @@ $Purpose: 商业伙伴授信维护
</a:init-procedure>
<a:view>
<a:link id="hn1150_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="hls361_hls_bp_master_credit_detail_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_entrance_detail.lview"/>
<a:link id="hls361_hls_bp_master_credit_tenant_detail_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_entrance_detail.lview"/>
<a:link id="hls361_hls_bp_master_credit_agent_detail_link" url="${/request/@context_path}/modules/hls/HLS362N/credit_entrance_detail_confirm.lview"/>
<a:link id="hls362N_update_credit_confirmed_link_id" model="hls.HLS361N.hls_bp_master_credit_confirmed" modelaction="update"/>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[
......@@ -25,11 +26,17 @@ $Purpose: 商业伙伴授信维护
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
//console.log(record);
var link_function = '';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'bp_code' && value) {
if (record.get('bp_category')=='TENANT'){
link_function = 'on_business_tenant_detail_window';
}else if ( record.get('bp_category')=='AGENT'){
link_function = 'on_business_agent_detail_window';
}
link_function = 'on_business_partner_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>';
}
};
......@@ -127,21 +134,33 @@ $Purpose: 商业伙伴授信维护
})
}
function on_business_partner_detail_window(id, name) {
//--承租人的详细信息
function on_business_tenant_detail_window(id, name) {
//获得该条record的所有数据
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
console.log(record)
var param = record.data;
param['function_code'] = 'HLS36101';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
param['url_title'] = '商业伙伴授信详细';
hls_doc_get_layout_code('hn1150_get_layout_code_link_id', param, 'hls361_hls_bp_master_credit_detail_link', null);
hls_doc_get_layout_code('hn1150_get_layout_code_link_id', param, 'hls361_hls_bp_master_credit_tenant_detail_link', null);
}
//--经销商的详细信息
function on_business_agent_detail_window(id, name) {
//获得该条record的所有数据
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = record.data;
param['function_code'] = 'HLS36103';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
param['url_title'] = '商业伙伴授信详细';
hls_doc_get_layout_code('hn1150_get_layout_code_link_id', param, 'hls361_hls_bp_master_credit_agent_detail_link', null);
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
......
......@@ -59,7 +59,7 @@
'header_id': check_id
},
width: 900,
hight: 400
height: 400
}).on('close', function() {
record.ds.query();
});
......
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