Commit 601557c4 authored by panhong18943's avatar panhong18943

资管费银企直连

(cherry picked from commit b748d130)
parent a71a08ca
......@@ -13,7 +13,7 @@ var add_datafilters = [
{
name : 'init_filter',
//expression : "t1.status in ('NEW','ERROR','FINISHED','SEND_MID','CONFIRM1_ERROR','CONFIRM2_FULL_ERROR') and t1.collection_classes = 'REFUND'"
expression : "t1.status in ('NEW','ERROR','FINISHED','SEND_MID','CONFIRM1_ERROR','CONFIRM2_FULL_ERROR') and nvl(t1.cf_item,'-1') <> '0'"
expression : "t1.status in ('NEW','ERROR','FINISHED','SEND_MID','CONFIRM1_ERROR','CONFIRM2_FULL_ERROR') and nvl(t1.cf_item,'-1') not in ('0','40')"
}
];
......
......@@ -3,6 +3,7 @@
<a:view>
<a:link id="hsbc_paying_batch_create_link_id" url="${/request/@context_path}/modules/hsbc/HSBC100/hsbc_paying_batch_create.lsc"/>
<a:link id="hsbc_paying_batch_create_return_link_id" url="${/request/@context_path}/modules/hsbc/HSBC100/hsbc_paying_batch_create_return.lsc"/>
<a:link id="hsbc_paying_batch_create_manage_link_id" url="${/request/@context_path}/modules/hsbc/HSBC100/hsbc_paying_batch_create_manage.lsc"/>
<script><![CDATA[
function create_paying_batch() {
var winId = '${/parameter/@winId}';
......@@ -34,6 +35,8 @@
url = $('hsbc_paying_batch_create_link_id').getUrl();
}else if(pay_type == 'RETURN'){
url = $('hsbc_paying_batch_create_return_link_id').getUrl();
}else if(pay_type == 'MANAGE'){
url = $('hsbc_paying_batch_create_manage_link_id').getUrl();
}
Leaf.request({
......
......@@ -12,6 +12,7 @@
<a:link id="pageLink_choose_acount" url="${/request/@context_path}/modules/hsbc/HSBC100/csh_bank_account_choose.lview"/>
<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="transaction_return_downloadFile_link_id" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="csh501_csh_asset_req_link_id" url="${/request/@context_path}/modules/csh/CSH501C/csh_payment_asset_req.lview"/>
<script src="${/request/@context_path}/javascripts/calculate.js"/>
<script type="text/javascript"><![CDATA[
......@@ -43,7 +44,19 @@
height: 400
});
}
function detail_link(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = {};
param['payment_req_id'] = record.get('payment_req_id');
param['business_type'] = record.get('business_type');
param['function_usage'] = 'QUERY';
param['function_code'] = 'ASSET_SAVE';
param['download'] = 'Y';
param['winid'] = 'csh_payment_asset_update_window';
param['url_title'] = '付款申请';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'csh501_csh_asset_req_link_id', ds_id);
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
if (name == 'contract_number' && value) {
return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
......@@ -51,30 +64,76 @@
if (name == 'attachment_r') {
return '<a href="javascript:open_return_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + '附件' + '</a>';
}
if (name == 'payment_req_number' && value) {
link_function = 'detail_link';
return '<a href="javascript:detail_link(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}
return value;
};
//创建代付单
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var req_ln_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var req_ln_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'csh_payment_req_ln');
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_transaction_return');
var manage_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'csh_payment_req_ln');
var req_ln_ds = $(req_ln_ds_id);
var con_ds = $(con_ds_id);
var manage_ds = $(manage_ds_id);
var req_ln_records = req_ln_ds.getSelected();
var con_records = con_ds.getSelected();
if (req_ln_records.length == 0 || con_records.length > 0) {
// Leaf.showMessage('${l:PROMPT}', '只能勾选铁甲付款单数据!');
Leaf.showMessage('${l:PROMPT}', '只能勾选二手机业务付款单数据!');
var manage_records = manage_ds.getSelected();
var ds_id;
var pay_type;
let a = document.querySelectorAll("div.strip");
// 页面展示 二手机业务付款单
if(a[0].classList.contains('active')){
if (con_records.length > 0 || manage_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选当前页面付款单数据!');
return;
}
if (req_ln_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请至少勾选一条记录!');
return;
}
ds_id = req_ln_ds_id;
pay_type = 'TJ';
}
// 页面展示 退款付款单
if(a[1].classList.contains('active')){
if (req_ln_records.length > 0 || manage_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选当前页面付款单数据!');
return;
}
if (con_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请至少勾选一条记录!');
return;
}
ds_id = con_ds_id;
pay_type = 'RETURN';
}
// 页面展示 资产管理付款单
if(a[2].classList.contains('active')){
if (req_ln_records.length > 0 || con_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选当前页面付款单数据!');
return;
}
if (manage_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请至少勾选一条记录!');
return;
}
ds_id = manage_ds_id;
pay_type = 'MANAGE';
}
new Leaf.Window({
id: 'choose_acount_window',
url: $('pageLink_choose_acount').getUrl(),
params: {
winId: 'choose_acount_window',
ds_id: req_ln_ds_id,
ds_id: ds_id,
button_id: 'create_with_sbo',
pay_type: 'TJ'
pay_type: pay_type
},
title: '支付账号选择',
height: 260,
......@@ -84,25 +143,67 @@
//创建强制付款单生成
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var req_ln_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var req_ln_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'csh_payment_req_ln');
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_transaction_return');
var manage_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'csh_payment_req_ln');
var req_ln_ds = $(req_ln_ds_id);
var con_ds = $(con_ds_id);
var manage_ds = $(manage_ds_id);
var req_ln_records = req_ln_ds.getSelected();
var con_records = con_ds.getSelected();
if (req_ln_records.length == 0 || con_records.length > 0) {
//Leaf.showMessage('${l:PROMPT}', '只能勾选铁甲付款单数据!');
Leaf.showMessage('${l:PROMPT}', '只能勾选二手机业务付款单数据!');
var manage_records = manage_ds.getSelected();
var ds_id;
var pay_type;
let a = document.querySelectorAll("div.strip");
// 页面展示 二手机业务付款单
if(a[0].classList.contains('active')){
if (con_records.length > 0 || manage_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选当前页面付款单数据!');
return;
}
if (req_ln_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请至少勾选一条记录!');
return;
}
ds_id = req_ln_ds_id;
pay_type = 'TJ';
}
// 页面展示 退款付款单
if(a[1].classList.contains('active')){
if (req_ln_records.length > 0 || manage_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选当前页面付款单数据!');
return;
}
if (con_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请至少勾选一条记录!');
return;
}
ds_id = con_ds_id;
pay_type = 'RETURN';
}
// 页面展示 资产管理付款单
if(a[2].classList.contains('active')){
if (req_ln_records.length > 0 || con_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选当前页面付款单数据!');
return;
}
if (manage_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请至少勾选一条记录!');
return;
}
ds_id = manage_ds_id;
pay_type = 'MANAGE';
}
new Leaf.Window({
id: 'choose_acount_window',
url: $('pageLink_choose_acount').getUrl(),
params: {
winId: 'choose_acount_window',
ds_id: req_ln_ds_id,
ds_id: ds_id,
button_id: 'create_without_sbo',
pay_type: 'TJ'
pay_type: pay_type
},
title: '支付账号选择',
height: 260,
......@@ -166,12 +267,16 @@
window['${/parameter/@layout_code}_on_layout_dynamic_grid_select'] = function(ds, record, bp_seq) {
var form_ds_id = '${/parameter/@layout_code}_F_QUERY__ds';
var formr_r_ds_id = '${/parameter/@layout_code}_R_F_QUERY__ds';
var req_ln_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var formr_m_ds_id = '${/parameter/@layout_code}_M_F_QUERY__ds';
var req_ln_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'csh_payment_req_ln');
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_transaction_return');
var manage_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'csh_payment_req_ln');
var form_record = $(form_ds_id).getAt(0);
var form_r_record = $(formr_r_ds_id).getAt(0);
var form_m_record = $(formr_m_ds_id).getAt(0);
var req_records = $(req_ln_ds_id).getSelected();
var con_records = $(con_ds_id).getSelected();
var manage_records = $(manage_ds_id).getSelected();
if (req_ln_ds_id == ds.id) {
var sum = 0;
......@@ -188,17 +293,29 @@
}
form_r_record.set('total_unpaid_amount', sum);
}
if (manage_ds_id == ds.id) {
var sum = 0;
for (var i = 0;i < manage_records.length;i++) {
sum = plus(sum, manage_records[i].get('unpaid_amount'));
}
form_m_record.set('total_unpaid_amount', sum);
}
};
window['${/parameter/@layout_code}_on_layout_dynamic_grid_unselect'] = function(ds, record, bp_seq) {
var form_ds_id = '${/parameter/@layout_code}_F_QUERY__ds';
var formr_r_ds_id = '${/parameter/@layout_code}_R_F_QUERY__ds';
var req_ln_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var formr_m_ds_id = '${/parameter/@layout_code}_M_F_QUERY__ds';
var req_ln_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'csh_payment_req_ln');
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_transaction_return');
var manage_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'csh_payment_req_ln');
var form_record = $(form_ds_id).getAt(0);
var form_r_record = $(formr_r_ds_id).getAt(0);
var form_m_record = $(formr_m_ds_id).getAt(0);
var req_records = $(req_ln_ds_id).getSelected();
var con_records = $(con_ds_id).getSelected();
var manage_records = $(manage_ds_id).getSelected();
if (req_ln_ds_id == ds.id) {
var sum = 0;
......@@ -215,6 +332,14 @@
}
form_r_record.set('total_unpaid_amount', sum);
}
if (manage_ds_id == ds.id) {
var sum = 0;
for (var i = 0;i < manage_records.length;i++) {
sum = plus(sum, manage_records[i].get('unpaid_amount'));
}
form_m_record.set('total_unpaid_amount', sum);
}
};
]]></script>
......
......@@ -37,19 +37,32 @@
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'hl_hsbc_paying_batch');
var r_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'R_RESULT', 'hl_hsbc_paying_batch');
var m_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'hl_hsbc_paying_batch');
var batch_ds = $(ds_id);
var records = batch_ds.getSelected();
var r_batch_ds = $(r_ds_id);
var r_records = r_batch_ds.getSelected();
if (records.length != 0 && r_records.length != 0) {
// Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!');
Leaf.showMessage('${l:PROMPT}', '不能同时选择二手机业务付款单和退款付款单!');
var m_batch_ds = $(m_ds_id);
var m_records = m_batch_ds.getSelected();
var length = 0;
if (records.length != 0){
length = length + 1;
}
if (r_records.length != 0){
length = length + 1;
}
if (m_records.length != 0){
length = length + 1;
}
if (length > 1) {
Leaf.showMessage('${l:PROMPT}', '不能同时选择多种付款单!');
return;
}
if (records.length == 0 && r_records.length == 0) {
if (records.length == 0 && r_records.length == 0 && m_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择至少一条数据!');
return;
}
......@@ -67,7 +80,7 @@
saveData.push(rec.data);
}
length = records.length;
}else{
}else if (r_records.length != 0){
for (var i = 0;i < r_records.length;i++) {
var rec;
rec = r_records[i];
......@@ -75,6 +88,14 @@
saveData.push(rec.data);
}
length = r_records.length;
}else if (m_records.length != 0){
for (var i = 0;i < m_records.length;i++) {
var rec;
rec = m_records[i];
rec.set('_status', 'insert');
saveData.push(rec.data);
}
length = m_records.length;
}
param['details'] = saveData;
......@@ -89,6 +110,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
batch_ds.query();
r_batch_ds.query();
m_batch_ds.query();
},
failure: function(res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
......@@ -107,40 +129,63 @@
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'hl_hsbc_paying_batch');
var r_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'R_RESULT', 'hl_hsbc_paying_batch');
var m_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'hl_hsbc_paying_batch');
var batch_ds = $(ds_id);
var records = batch_ds.getSelected();
var r_batch_ds = $(r_ds_id);
var r_records = r_batch_ds.getSelected();
var m_batch_ds = $(m_ds_id);
var m_records = m_batch_ds.getSelected();
var lease_channel;
var reqsn;
var batch_id;
var bank_item;
if (records.length != 0 && r_records.length != 0) {
// Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!');
Leaf.showMessage('${l:PROMPT}', '不能同时选择二手机业务付款单和退款付款单!');
var length = 0;
if (records.length != 0){
length = length + 1;
}
if (r_records.length != 0){
length = length + 1;
}
if (m_records.length != 0){
length = length + 1;
}
if (length > 1) {
Leaf.showMessage('${l:PROMPT}', '不能同时选择多种付款单!');
return;
}
if (records.length != 1 && r_records.length == 0 && m_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条数据!');
return;
}
if (records.length != 1 && r_records.length == 0) {
if (records.length == 0 && r_records.length != 1 && m_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条数据!');
return;
}
if (records.length == 0 && r_records.length != 1) {
if (m_records.length != 1 && records.length == 0 && r_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条数据!');
return;
}
if (records.length != 0){
reqsn = records[0].get('reqsn');
batch_id = records[0].get('batch_id');
bank_item=records[0].get('bank_item');
}else {
}else if (r_records.length != 0){
reqsn = r_records[0].get('reqsn');
batch_id = r_records[0].get('batch_id');
bank_item=r_records[0].get('bank_item');
}else if (m_records.length != 0){
reqsn = m_records[0].get('reqsn');
batch_id = m_records[0].get('batch_id');
bank_item=m_records[0].get('bank_item');
}
var win = new Leaf.showConfirm('${l:HLS.PROMPT}', '使用人工支付将不能再使用银企直连,确认进行人工支付?', function() {
......@@ -156,6 +201,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
batch_ds.query();
r_batch_ds.query();
m_batch_ds.query();
},
failure: function(res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
......@@ -172,35 +218,58 @@
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'hl_hsbc_paying_batch');
var r_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'R_RESULT', 'hl_hsbc_paying_batch');
var m_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'hl_hsbc_paying_batch');
var batch_ds = $(ds_id);
var records = batch_ds.getSelected();
var r_batch_ds = $(r_ds_id);
var r_records = r_batch_ds.getSelected();
if (records.length != 0 && r_records.length != 0) {
//Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!');
Leaf.showMessage('${l:PROMPT}', '不能同时选择二手机业务付款单和退款付款单!');
var m_batch_ds = $(m_ds_id);
var m_records = m_batch_ds.getSelected();
var length = 0;
if (records.length != 0){
length = length + 1;
}
if (r_records.length != 0){
length = length + 1;
}
if (m_records.length != 0){
length = length + 1;
}
if (length > 1) {
Leaf.showMessage('${l:PROMPT}', '不能同时选择多种付款单!');
return;
}
if (records.length != 1 && r_records.length == 0 && m_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条数据!');
return;
}
if (records.length != 1 && r_records.length == 0) {
if (records.length == 0 && r_records.length != 1 && m_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条数据!');
return;
}
if (records.length == 0 && r_records.length != 1) {
if (m_records.length != 1 && records.length == 0 && r_records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条数据!');
return;
}
if (records.length != 0){
reqsn = records[0].get('reqsn');
batch_id = records[0].get('batch_id');
bank_item=records[0].get('bank_item');
}else {
}else if (r_records.length != 0){
reqsn = r_records[0].get('reqsn');
batch_id = r_records[0].get('batch_id');
bank_item=r_records[0].get('bank_item');
}else if (m_records.length != 0){
reqsn = m_records[0].get('reqsn');
batch_id = m_records[0].get('batch_id');
bank_item=m_records[0].get('bank_item');
}
Leaf.showConfirm('${l:HLS.PROMPT}', '确认取消?', function() {
......@@ -216,6 +285,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
batch_ds.query();
r_batch_ds.query();
m_batch_ds.query();
},
failure: function(res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
......@@ -239,12 +309,16 @@
window['${/parameter/@layout_code}_on_layout_dynamic_grid_select'] = function(ds, record, bp_seq) {
var form_ds_id = '${/parameter/@layout_code}_F_QUERY__ds';
var formr_r_ds_id = '${/parameter/@layout_code}_R_F_QUERY__ds';
var formr_m_ds_id = '${/parameter/@layout_code}_M_F_QUERY__ds';
var g_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'hl_hsbc_paying_batch');
var r_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'R_RESULT', 'hl_hsbc_paying_batch');
var m_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'hl_hsbc_paying_batch');
var form_record = $(form_ds_id).getAt(0);
var form_r_record = $(formr_r_ds_id).getAt(0);
var form_m_record = $(formr_m_ds_id).getAt(0);
var g_records = $(g_ds_id).getSelected();
var r_records = $(r_ds_id).getSelected();
var m_records = $(m_ds_id).getSelected();
if (g_ds_id == ds.id) {
var sum = 0;
......@@ -261,17 +335,29 @@
}
form_r_record.set('total_unpaid_amount', sum);
}
if (m_ds_id == ds.id) {
var sum = 0;
for (var i = 0;i < m_records.length;i++) {
sum = plus(sum, m_records[i].get('totalamt'));
}
form_m_record.set('total_unpaid_amount', sum);
}
};
window['${/parameter/@layout_code}_on_layout_dynamic_grid_unselect'] = function(ds, record, bp_seq) {
var form_ds_id = '${/parameter/@layout_code}_F_QUERY__ds';
var formr_r_ds_id = '${/parameter/@layout_code}_R_F_QUERY__ds';
var formr_m_ds_id = '${/parameter/@layout_code}_M_F_QUERY__ds';
var g_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'hl_hsbc_paying_batch');
var r_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'R_RESULT', 'hl_hsbc_paying_batch');
var m_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'M_RESULT', 'hl_hsbc_paying_batch');
var form_record = $(form_ds_id).getAt(0);
var form_r_record = $(formr_r_ds_id).getAt(0);
var form_m_record = $(formr_m_ds_id).getAt(0);
var g_records = $(g_ds_id).getSelected();
var r_records = $(r_ds_id).getSelected();
var m_records = $(m_ds_id).getSelected();
if (g_ds_id == ds.id) {
var sum = 0;
......@@ -288,6 +374,14 @@
}
form_r_record.set('total_unpaid_amount', sum);
}
if (m_ds_id == ds.id) {
var sum = 0;
for (var i = 0;i < m_records.length;i++) {
sum = plus(sum, m_records[i].get('totalamt'));
}
form_m_record.set('total_unpaid_amount', sum);
}
};
......
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