Commit 2f6470bb authored by 王炜's avatar 王炜

农行划扣增加工作流以及相关调整

parent c989d8e1
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool INITIALIZE_SYSCODE_CLAIM_STATUS.log
set feedback off
set define off
begin
sys_code_pkg.delete_sys_code('ACR5010_WFL_STATUS');
sys_code_pkg.insert_sys_code('ACR5010_WFL_STATUS','审批状态','审批状态','审批状态','ZHS','');
sys_code_pkg.insert_sys_code_value('ACR5010_WFL_STATUS','NOT','未发起流程','ZHS');
sys_code_pkg.insert_sys_code_value('ACR5010_WFL_STATUS','APPROVING','审批中','ZHS');
sys_code_pkg.insert_sys_code_value('ACR5010_WFL_STATUS','APPROVED','审批通过','ZHS');
sys_code_pkg.insert_sys_code_value('ACR5010_WFL_STATUS','REJECT','审批拒绝','ZHS');
end;
/
commit;
set feedback on
set define on
spool off
exit
\ No newline at end of file
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool REGISTER_ACP522.log
set feedback off
set define off
begin
--页面注册
sys_function_assign_pkg.service_load('modules/hls_acr/HLS_ACR5010/hls_acr_ebank_output_wfl.lview','农行流程',1,1,0);
--分配页面
sys_function_assign_pkg.func_service_load('ZJWFL5110','modules/hls_acr/HLS_ACR5010/hls_acr_ebank_output_wfl.lview');
sys_function_assign_pkg.func_service_load('HLS_ACR5040','modules/hls_acr/HLS_ACR5010/acr_invoice_abc2_interface_excel_sheets.lsc');
--分配bm
sys_function_assign_pkg.func_bm_load('ZJWFL5110','gld.gld_currency');
sys_function_assign_pkg.func_bm_load('ZJWFL5110','hls_acr.hls_acr5010.hls_acr_ebank_output_temp_hd');
sys_function_assign_pkg.func_bm_load('ZJWFL5110','hls_acr.hls_acr5010.hls_prj_customer_for_lov');
sys_function_assign_pkg.func_bm_load('ZJWFL5110','hls_acr.hls_acr5010.hls_acr_ebank_output_temp_new');
sys_function_assign_pkg.func_bm_load('HLS_ACR5040','hls_acr.hls_acr5010.get_output_abc2_file_path');
sys_function_assign_pkg.func_bm_load('HLS_ACR5040','hls_acr.hls_acr5010.hls_acr_abc_2_output_temp_for_maintain');
end;
/
commit;
set feedback on
set define on
spool off
exit
......@@ -24,6 +24,8 @@
<bm:field name="curr_flag" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;0&apos;" physicalName="CURR_FLAG"/>
<bm:field name="serial_no" databaseType="VARCHAR2" datatype="java.lang.String" expression="to_char(rownum,&apos;0000&apos;)" physicalName="SERIAL-NO"/>
<bm:field name="mark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MARK" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.MARK"/>
<bm:field name="apply_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="APPLY_AMOUNT" ></bm:field>
<bm:field name="due_amount_his" databaseType="NUMBER" datatype="java.lang.Double" physicalName="DUE_AMOUNT_HIS" ></bm:field>
</bm:fields>
<bm:features>
<f:standard-who/>
......@@ -45,4 +47,27 @@
<bm:data-filter enforceOperations="query" expression="t1.session_id=${/session/@session_id}"/>
<bm:data-filter enforceOperations="query" expression="t1.output_id=${@output_id}"/>
</bm:data-filters>
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_acr_ebanking_new_pkg.update_ebank_output_temp(
p_ebank_tmp_id => ${@ebank_tmp_id},
p_due_amount => ${@due_amount},
p_apply_amount => ${@apply_amount},
p_mark => ${@mark},
p_user_id => ${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hls_acr_ebanking_new_pkg.abc_adjust_amount_wfl_start(
p_output_id =>${@output_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:ns2="leaf.database.local.oracle" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" >
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select t1.*,
(select bp.bp_name from hls_bp_master bp where bp.bp_id=t1.customer_id) customer_name_display
from hls_acr_ebank_output_hd_temp t1 where t1.output_hd_id=${@output_id}
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:ns2="leaf.database.local.oracle" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="HLS_ACR_EBANK_OUTPUT_TEMP" defaultOrderBy="t1.ebank_tmp_id" trace="true">
<bm:fields>
<bm:field name="ebank_tmp_id" databaseType="NUMBER" datatype="java.lang.Double" physicalName="EBANK_TMP_ID" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.EBANK_TMP_ID"/>
<bm:field name="session_id" databaseType="NUMBER" datatype="java.lang.Double" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.SESSION_ID"/>
<bm:field name="sequence_no" databaseType="NUMBER" datatype="java.lang.Double" physicalName="SEQUENCE_NO" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.SEQUENCE_NO"/>
<bm:field name="bp_id_tenant" databaseType="NUMBER" datatype="java.lang.Double" physicalName="BP_ID_TENANT" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.CUSTOMER_ID"/>
<bm:field name="due_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="DUE_AMOUNT" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.RECEIVABLE_AMOUNT"/>
<bm:field name="limit_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="LIMIT_AMOUNT" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.LIMIT_AMOUNT"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.CUSTOMER_NAME"/>
<bm:field name="dd_bank_account_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DD_BANK_ACCOUNT_NUM" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.CUSTOMER_ACCOUNT_NUMBER"/>
<bm:field name="id_card_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ID_CARD_NO" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.IDENTITY_NO"/>
<bm:field name="process_result" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROCESS_RESULT" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.PROCESS_RESULT"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER"/>
<bm:field name="times" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TIMES"/>
<bm:field name="due_date" databaseType="DATE" datatype="java.lang.String" expression="to_char(due_date,&apos;yyyy-mm-dd&apos;)" physicalName="DUE_DATE"/>
<bm:field name="pay_type" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;7&apos;" physicalName="PAY_TYPE"/>
<bm:field name="transaction_type" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;1&apos;" physicalName="TRANSACTION_TYPE"/>
<bm:field name="account_no" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;03399500040009165&apos;" physicalName="ACCOUNT_NO"/>
<bm:field name="account_name" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;宏菱融资租赁(上海)有限公司&apos;" physicalName="ACCOUNT_NAME"/>
<bm:field name="dd_bank_branch_name" databaseType="VARCHAR2" datatype="java.lang.String" expression="(select dd_bank_branch_name from con_contract t where t.data_class=&apos;NORMAL&apos; and t.dd_bank_account_num=t1.dd_bank_account_num and rownum=1)" physicalName="DD_BANK_BRANCH_NAME"/>
<bm:field name="usage" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;代收用途&apos;" physicalName="USAGE"/>
<bm:field name="fen_code" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;01&apos;" physicalName="FEN_CODE"/>
<bm:field name="curr_flag" databaseType="VARCHAR2" datatype="java.lang.String" expression="&apos;0&apos;" physicalName="CURR_FLAG"/>
<bm:field name="serial_no" databaseType="VARCHAR2" datatype="java.lang.String" expression="to_char(rownum,&apos;0000&apos;)" physicalName="SERIAL-NO"/>
<bm:field name="mark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MARK" prompt="HLS_ACR_EBANK_OUTPUT_TEMP.MARK"/>
<bm:field name="apply_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="APPLY_AMOUNT" ></bm:field>
<bm:field name="due_amount_his" databaseType="NUMBER" datatype="java.lang.Double" physicalName="DUE_AMOUNT_HIS" ></bm:field>
</bm:fields>
<bm:features>
<f:standard-who/>
<f:multi-language-storage/>
<ns2:sequence-pk/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="ebank_tmp_id"/>
</bm:primary-key>
<bm:query-fields>
<bm:query-field field="session_id" queryOperator="="/>
<bm:query-field field="times" queryOperator="="/>
</bm:query-fields>
<bm:order-by>
<bm:field name="sequence_no"/>
</bm:order-by>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.due_amount&gt;0"/>
<bm:data-filter enforceOperations="query" expression="t1.output_id=${@output_id}"/>
</bm:data-filters>
</bm:model>
......@@ -19,9 +19,12 @@
url="${/request/@context_path}/modules/hls_acr/HLS_ACR5010/acr_invoice_ccb_interface_excel_sheets.lsc"/>
<a:link id="check_bp_name_and_mark_link" model="hls_acr.hls_acr5010.hls_acr_abc_2_output_temp_for_maintain"
modelaction="execute"/>
<a:link id="ACR5010_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="ACR5010_submit_wfl_id" model="hls_acr.hls_acr5010.hls_acr_ebank_output_temp_for_maintain" modelaction="execute"></a:link>
<script><![CDATA[
var file_name;
var output_id;
var submit_flag='N';
function amountValidator(record, name, value) {
if (typeof (value) != 'undefined' && !Ext.isEmpty(value)) {
......@@ -46,6 +49,8 @@
Leaf.Masker.unmask(Ext.getBody());
file_name = args.result.file_name;
output_id = args.result.record.output_id;
//重新生成数据重置提交标志
submit_flag='N';
$('hls_acr_ebank_output_temp_ds').setQueryParameter('output_id', output_id);
$('hls_acr_ebank_output_temp_ds').query();
},
......@@ -64,6 +69,22 @@
return Leaf.formatNumber(value, 2);
}
function check_for_apply_amount(ds, record, name, value, oldvalue){
if(name=='apply_amount'){
if(value){
if(value<=0){
Leaf.showMessage('提示', '申请修改金额不能小于等于0!');
return;
}else{
var due_amount=record.get('due_amount');
if (due_amount<value){
Leaf.showMessage('提示', '申请修改金额超出最大划扣金额!');
return;
}
}
}
}
}
function onUpdate(ds, record, name, value, oldvalue) {
$('hls_acr_ebank_output_temp_ds').removeAll();
......@@ -219,9 +240,99 @@
*/
function delete_fun() {
if(submit_flag=='Y') {
Leaf.showMessage('提示', '当前批次已提交流程不允许删除,可重新点击确认生成新的数据!');
return;
}
$('grid_id').remove();
}
function upload_wfl_file_fun(){
var records = $('hls_acr_ebank_output_temp_ds').getAll();
var hd_record = $('hls_acr_ebank_output_ds').getAt(0);
if (records.length == 0) {
Leaf.showMessage('提示', '本批次数据条目为0,不能上传附件!');
return;
}
if(output_id){
var url = $('ACR5010_cdd_uploadFile_id').getUrl() + '?table_name=HLS_ACR_EBANK_OUTPUT_HD_TEMP&header_id=' + output_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'ACR5010_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function() {
// record.ds.query();
});
}else{
Leaf.showMessage('提示', '当前批次已提交流程不允许修改!');
return;
}
}
function acr5010_save_fun(){
if(submit_flag=='Y') {
Leaf.showMessage('提示', '当前批次已提交流程不允许修改,可重新点击确认生成新的数据!');
return;
}
$('hls_acr_ebank_output_temp_ds').submit();
}
function acr5010_submit_wfl_fun(){
if (!file_name) {
Leaf.showMessage('提示', '不存在待提交数据!');
return;
}
if (!output_id) {
Leaf.showMessage('提示', '不存在待提交数据!');
return;
}
var records = $('hls_acr_ebank_output_temp_ds').getAll();
var hd_record = $('hls_acr_ebank_output_ds').getCurrentRecord();
if (records.length == 0) {
Leaf.showMessage('提示', '不存在待提交数据!');
return;
}
if(submit_flag=='Y') {
Leaf.showMessage('提示', '当前批次已提交流程,可重新点击确认生成新的数据!');
return;
}
var payment_method = hd_record.get('payment_method');
Leaf.showConfirm('${l:PROMPT}', '确认提交审批么?', function() {
Leaf.Masker.mask(Ext.getBody(), '正在提交');
Leaf.request({
url: $('ACR5010_submit_wfl_id').getUrl(),
para: {
output_id:output_id
},
success: function (args) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.show({msg: '提交成功!', duration: 3000 });
submit_flag='Y';
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
});
}
]]></script>
<a:dataSets>
<a:dataSet id="hls_acr_payment_method_ds" lookupCode="HLS_ACR5010_WITHHOLD_WAYS"/>
......@@ -272,7 +383,11 @@
-->
<a:dataSet id="hls_acr_ebank_output_temp_ds" fetchAll="false"
model="hls_acr.hls_acr5010.hls_acr_ebank_output_temp_for_maintain" pageSize="10"
queryDataSet="hls_acr_ebank_output_ds" selectable="true"/>
queryDataSet="hls_acr_ebank_output_ds" selectable="true">
<a:events>
<a:event name="update" handler="check_for_apply_amount"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form column="2" labelWidth="120" title="代扣指令生成" width="600">
......@@ -292,8 +407,11 @@
<a:hBox>
<a:button click="submit_fun" text="PROMPT.OK" width="90"/>
<a:button click="delete_fun" text="删除" width="90"/>
<a:button click="acr5010_save_fun" text="保存"></a:button>
<a:button click="upload_wfl_file_fun" text="上传流程附件"></a:button>
<a:button click="acr5010_submit_wfl_fun" text="提交审批"></a:button>
</a:hBox>
<a:grid id="grid_id" bindTarget="hls_acr_ebank_output_temp_ds" height="301" navBar="true" width="1030">
<a:grid id="grid_id" bindTarget="hls_acr_ebank_output_temp_ds" height="301" navBar="true" marginWidth="100">
<a:columns>
<a:column name="sequence_no" align="center" prompt="序号" width="60"/>
<a:column name="dd_bank_account_num" prompt="客户账号" width="150"/>
......@@ -301,9 +419,15 @@
<a:column name="due_amount" align="right" prompt="应扣金额" renderer="numberRenderer" width="120"/>
<a:column name="id_card_no" prompt="证件号" width="150"/>
<a:column name="contract_number" prompt="合同编号" width="150"/>
<a:column name="times" prompt="期数" width="150"/>
<a:column name="due_date" prompt="计划付款日" width="150"/>
<a:column name="times" prompt="期数" width="70"/>
<a:column name="due_date" prompt="计划付款日" width="120"/>
<a:column name="apply_amount" editor="numberField_id" prompt="调整后金额" width="120" align="right"/>
<a:column name="mark" editor="textField_id" prompt="备注" width="150"/>
</a:columns>
<a:editors>
<a:numberField id="numberField_id" ></a:numberField>
<a:textField id="textField_id" ></a:textField>
</a:editors>
</a:grid>
<a:hBox>
<a:button click="output_file" text="导出" width="90"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query autoCount="true" defaultWhereClause="enabled_flag = &apos;Y&apos;" fetchall="true"
model="gld.gld_currency" queryOrderBy="currency_code" rootpath="currency_list"/>
</a:init-procedure>
<a:view>
<a:link id="ACR5010_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<script><![CDATA[
function download_wfl_file_fun(){
if('${/parameter/@output_id}'){
var url = $('ACR5010_cdd_downloadFile_id').getUrl() + '?table_name=HLS_ACR_EBANK_OUTPUT_HD_TEMP&header_id=' + '${/parameter/@output_id}';
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'ACR5010_wfl_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function() {
// record.ds.query();
});
}else{
Leaf.showMessage('提示', '参数有误请联系管理员!');
return;
}
}
]]></script>
<a:dataSets>
<a:dataSet id="hls_acr_payment_method_ds" lookupCode="HLS_ACR5010_WITHHOLD_WAYS"/>
<a:dataSet id="hls_customer_type_ds" lookupCode="CUSTOMER_TYPE"/>
<a:dataSet id="hls_generate_rules_ds" lookupCode="HLS_ACR_EBANK_GENERATE_RULES"/>
<a:dataSet id="hls_currency_ds" loadData="true">
<a:datas dataSource="/model/currency_list"/>
</a:dataSet>
<a:dataSet id="hls_acr_ebank_output_ds" loadData="true" model="hls_acr.hls_acr5010.hls_acr_ebank_output_temp_hd" queryUrl="${/request/@context_path}/autocrud/hls_acr.hls_acr5010.hls_acr_ebank_output_temp_hd/query?output_id=${/parameter/@output_id}">
<a:fields>
<a:field name="deadline_date_to" readOnly="true"/>
<a:field name="penalty_date_to" readOnly="true"/>
<a:field name="currency_code" readOnly="true"/>
<a:field name="currency_name" readOnly="true" displayField="currency_name"
options="hls_currency_ds" returnField="currency_code"
valueField="currency_code"/>
<a:field name="customer_type_display" displayField="code_value_name" options="hls_customer_type_ds"
required="true" returnField="customer_type" valueField="code_value" readOnly="true" />
<a:field name="customer_type" />
<a:field name="payment_method_display" readOnly="true" displayField="code_value_name"
options="hls_acr_payment_method_ds" required="true" returnField="payment_method"
valueField="code_value" />
<a:field name="payment_method" readOnly="true"/>
<a:field name="generate_rules_display" readOnly="true"
displayField="code_value_name" options="hls_generate_rules_ds" required="true"
returnField="generate_rules" valueField="code_value"/>
<a:field name="generate_rules"/>
<a:field name="customer_name_display" readOnly="true" lovService="hls_acr.hls_acr5010.hls_prj_customer_for_lov?customer_type=NP" lovGridHeight="300" lovHeight="450" lovWidth="550">
<a:mapping>
<a:map from="bp_id" to="customer_id"/>
<a:map from="bp_name" to="customer_name_display"/>
</a:mapping>
</a:field>
<a:field name="customer_id">
</a:field>
</a:fields>
</a:dataSet>
<a:dataSet id="hls_acr_ebank_output_temp_ds" autoQuery="true" fetchAll="false" model="hls_acr.hls_acr5010.hls_acr_ebank_output_temp_new" selectable="true" queryUrl="${/request/@context_path}/autocrud/hls_acr.hls_acr5010.hls_acr_ebank_output_temp_new/query?output_id=${/parameter/@output_id}" >
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form column="2" labelWidth="120" title="代扣指令生成条件" width="600">
<a:datePicker name="deadline_date_to" bindTarget="hls_acr_ebank_output_ds" prompt="截至日期到" renderer="Leaf.formatDate"/>
<a:datePicker name="penalty_date_to" bindTarget="hls_acr_ebank_output_ds" prompt="指定罚息截止日" renderer="Leaf.formatDate"/>
<a:comboBox name="currency_name" bindTarget="hls_acr_ebank_output_ds" prompt="币种"/>
<a:comboBox name="customer_type_display" bindTarget="hls_acr_ebank_output_ds" prompt="客户类型"/>
<a:lov name="customer_name_display" bindTarget="hls_acr_ebank_output_ds" prompt="客户名称"/>
<a:comboBox name="payment_method_display" bindTarget="hls_acr_ebank_output_ds" prompt="租金支付方式"/>
<a:comboBox name="generate_rules_display" bindTarget="hls_acr_ebank_output_ds" prompt="生成规则"/>
</a:form>
<a:hBox>
<a:button click="download_wfl_file_fun" text="附件查看"></a:button>
</a:hBox>
<a:grid id="grid_id" bindTarget="hls_acr_ebank_output_temp_ds" height="301" navBar="true" marginWidth="100">
<a:columns>
<a:column name="sequence_no" align="center" prompt="序号" width="60"/>
<a:column name="dd_bank_account_num" prompt="客户账号" width="150"/>
<a:column name="bp_name" prompt="客户名称" width="150"/>
<a:column name="due_amount" align="right" prompt="应扣金额" renderer="Leaf.formatMoney" width="120"/>
<a:column name="id_card_no" prompt="证件号" width="150"/>
<a:column name="contract_number" prompt="合同编号" width="150"/>
<a:column name="times" prompt="期数" width="70"/>
<a:column name="due_date" prompt="计划付款日" width="120"/>
<a:column name="apply_amount" prompt="调整后金额" width="120" renderer="Leaf.formatMoney" align="right"/>
<a:column name="mark" prompt="备注" width="150"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
......@@ -12,6 +12,8 @@
<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="hls_ebank_input_detail_link" url="${/request/@context_path}/modules/hls_acr/HLS_ACR5040/hls_acr_ebank_input_detail.lview"/>
<a:link id="hls_ebank_input_delete_link" model="hls_acr.HLS_ACR5040.hls_acr_import_data_delete" modelaction="delete"/>
<a:link id="acr_invoice_abc2_interface_excel_sheets_id"
url="${/request/@context_path}/modules/hls_acr/HLS_ACR5010/acr_invoice_abc2_interface_excel_sheets.lsc"/>
<script><![CDATA[
//modify by wdd 20180530 for HL
//增加删除按钮,同时删除头行数据
......@@ -19,7 +21,14 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_acr_ebank_output_hd_temp');
var hd_ds = $(ds_id);
var records = hd_ds.getSelected();
Leaf.showConfirm('${l:PROMPT}', '是否确定删除?', function() {
var comfirm_prompt='是否确定删除';
for (var i = 0;i < records.length;i++) {
var line_record = records[i];
if (line_record.get('wfl_status') == 'APPROVED') {
comfirm_prompt='所选数据包含调整金额流程审批通过数据,是否确认删除?';
}
}
Leaf.showConfirm('${l:PROMPT}', comfirm_prompt, function() {
var detail_mask = Ext.getBody();
if (records.length) {
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
......@@ -74,7 +83,12 @@
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'output_number' && record.get('output_hd_id')) {
link_function = '${/parameter/@layout_code}_open_input_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>';
if(record.get('wfl_status')=='REJECT'||record.get('wfl_status')=='APPROVING'){
return value;
}else{
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>';
}
}
};
......@@ -96,6 +110,28 @@
param['url_title'] = '明细';
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'hls_ebank_input_detail_link', null, null);
};
//调整金额导出划扣指令
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_acr_ebank_output_hd_temp');
var hd_ds = $(ds_id);
var records = hd_ds.getSelected();
if(records.length==0||records.length>1){
Leaf.showMessage('提示', '请选择一条数据导出划扣指令!');
return;
}
var record=records[0];
if(record.get('handle_flag')=='Y'){
Leaf.showMessage('提示', '当前批次已处理完成不可导出划扣指令!');
return;
}
if(record.get('wfl_status')!='APPROVED'){
Leaf.showMessage('提示', '仅通过农行调整金额流程的批次可导出划扣指令!');
return;
}
url = $('acr_invoice_abc2_interface_excel_sheets_id').getUrl() + '?output_id=' + record.get('output_hd_id');
window.open(url);
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
......
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