Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
b5fcc240
Commit
b5fcc240
authored
Nov 11, 2019
by
Darming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[refactor]反冲相关、代理店管理标题
parent
8ab4fa3d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
708 additions
and
20 deletions
+708
-20
csh_write_off.lwm
src/main/webapp/WEB-INF/classes/csh/CSH514/csh_write_off.lwm
+1
-1
con_contract.lwm
src/main/webapp/WEB-INF/classes/csh/CSH531N/con_contract.lwm
+2
-1
csh_transaction_receipt_write_off_reverse_detail.lview
...14/csh_transaction_receipt_write_off_reverse_detail.lview
+5
-0
csh_bank_transfer_confirme.lview
...bapp/modules/csh/CSH531C/csh_bank_transfer_confirme.lview
+682
-0
bp_agent_entrance.lview
src/main/webapp/modules/hls/HLS303/bp_agent_entrance.lview
+18
-18
No files found.
src/main/webapp/WEB-INF/classes/csh/CSH514/csh_write_off.lwm
View file @
b5fcc240
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
$Revision: 1.0
$Revision: 1.0
$Purpose:
$Purpose:
-->
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
xmlns:f=
"leaf.database.features"
alias=
"t1"
baseTable=
"CSH_WRITE_OFF"
defaultOrderBy=
"t1.write_off_id
desc
"
>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
xmlns:f=
"leaf.database.features"
alias=
"t1"
baseTable=
"CSH_WRITE_OFF"
defaultOrderBy=
"t1.write_off_id"
>
<bm:fields>
<bm:fields>
<bm:field
name=
"write_off_id"
databaseType=
"NUMBER"
datatype=
"java.lang.Long"
physicalName=
"WRITE_OFF_ID"
prompt=
"CSH_WRITE_OFF.WRITE_OFF_ID"
/>
<bm:field
name=
"write_off_id"
databaseType=
"NUMBER"
datatype=
"java.lang.Long"
physicalName=
"WRITE_OFF_ID"
prompt=
"CSH_WRITE_OFF.WRITE_OFF_ID"
/>
<bm:field
name=
"write_off_type"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
lookupCode=
"CSH513_WRITE_OFF_TYPE"
lookupField=
"write_off_type_name"
physicalName=
"WRITE_OFF_TYPE"
prompt=
"CSH_WRITE_OFF.WRITE_OFF_TYPE"
/>
<bm:field
name=
"write_off_type"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
lookupCode=
"CSH513_WRITE_OFF_TYPE"
lookupField=
"write_off_type_name"
physicalName=
"WRITE_OFF_TYPE"
prompt=
"CSH_WRITE_OFF.WRITE_OFF_TYPE"
/>
...
...
src/main/webapp/WEB-INF/classes/csh/CSH531N/con_contract.lwm
View file @
b5fcc240
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
t1.contract_number,
t1.contract_number,
t1.contract_name,
t1.contract_name,
t1.bp_id_tenant,
t1.bp_id_tenant,
t1.bp_id_agent_level1,
(select bp_name from hls_bp_master where bp_id = t1.bp_id_tenant) bp_name,
(select bp_name from hls_bp_master where bp_id = t1.bp_id_tenant) bp_name,
(SELECT sc.code_value_name
(SELECT sc.code_value_name
FROM sys_code_values_v sc
FROM sys_code_values_v sc
...
@@ -52,7 +53,7 @@ select t.parent_company_id company_id
...
@@ -52,7 +53,7 @@ select t.parent_company_id company_id
queryExpression=
"due_date <= to_date(${@due_date_to},'yyyy-mm-dd')"
/>
queryExpression=
"due_date <= to_date(${@due_date_to},'yyyy-mm-dd')"
/>
<bm:query-field
field=
"dd_bank_account_num"
queryOperator=
"="
/>
<bm:query-field
field=
"dd_bank_account_num"
queryOperator=
"="
/>
<bm:query-field
field=
"dd_bank_account_name"
queryOperator=
"="
/>
<bm:query-field
field=
"dd_bank_account_name"
queryOperator=
"="
/>
<bm:query-field
name=
"bp_id"
queryExpression=
"
t.bp_id_tenant = ${@bp_id}
"
/>
<bm:query-field
name=
"bp_id"
queryExpression=
"
(t.bp_id_tenant = ${@bp_id} or t.bp_id_agent_level1 = ${@bp_id})
"
/>
<bm:query-field
name=
"bp_name"
queryExpression=
"t.bp_name like '%' || ${@bp_name} || '%'"
/>
<bm:query-field
name=
"bp_name"
queryExpression=
"t.bp_name like '%' || ${@bp_name} || '%'"
/>
</bm:query-fields>
</bm:query-fields>
</bm:model>
</bm:model>
src/main/webapp/modules/csh/CSH514/csh_transaction_receipt_write_off_reverse_detail.lview
View file @
b5fcc240
...
@@ -126,6 +126,11 @@
...
@@ -126,6 +126,11 @@
}
}
}
}
//排序
saveData.sort(function(a,b){
return b.write_off_id - a.write_off_id;
});
//区别批量核销和单笔核销
//区别批量核销和单笔核销
var url;
var url;
// if ('${/parameter/@ref_n01}' && '${/parameter/@ref_n01}' != 'undefined') {
// if ('${/parameter/@ref_n01}' && '${/parameter/@ref_n01}' != 'undefined') {
...
...
src/main/webapp/modules/csh/CSH531C/csh_bank_transfer_confirme.lview
0 → 100644
View file @
b5fcc240
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: chenlingfeng
$Date: 2018-08-16 15:56:24
$Revision: 1.0
$Purpose:
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
>
<a:init-procedure>
<a:model-query
model=
"csh.CSH531N.csh_batch_status_default"
rootPath=
"batch_status_default"
/>
<a:model-query
model=
"csh.CSH531N.csh_query_position"
rootPath=
"result_position"
/>
<a:model-query
defaultWhereClause=
"v.code='CSH511_TRANSACTION_TYPE' and v.code_value in ('RECEIPT','ADVANCE_RECEIPT')"
fetchAll=
"true"
model=
"basic.sys_code_default_value"
rootPath=
"sys_code_default_value_path"
/>
</a:init-procedure>
<a:view>
<a:link
id=
"general_import_upload_link"
url=
"${/request/@context_path}/modules/csh/CSH531N/csh_gathering_import.lview"
/>
<a:link
id=
"batch_detail_link"
url=
"${/request/@context_path}/modules/csh/CSH531N/csh_write_off_interface.lview"
/>
<!-- <a:link id="csh_error_message" url="${/request/@context_path}/modules/csh/CSH531N/csh_error_message.lview"/> -->
<a:link
id=
"csh_confirm_data_link"
model=
"csh.CSH531N.csh_data_confirm"
modelaction=
"batch_update"
/>
<a:link
id=
"csh_data_confirm_check_link"
model=
"csh.CSH531N.csh_data_confirm_check"
modelaction=
"execute"
/>
<a:link
id=
"csh_data_confirm_delete_link"
model=
"csh.CSH531N.csh_data_confirm_check"
modelaction=
"delete"
/>
<a:link
id=
"csh_auto_write_off_link"
model=
"csh.CSH531N.csh_auto_write_off"
modelaction=
"batch_update"
/>
<a:link
id=
"csh_reverse_write_off_link"
model=
"csh.CSH531N.csh_reverse_write_off"
modelaction=
"update"
/>
<a:link
id=
"csh_modify_info_window_link"
url=
"${/request/@context_path}/modules/csh/CSH531N/csh_modify_info.lview"
/>
<a:link
id=
"csh_write_off_upload_link"
url=
"${/request/@context_path}/modules/csh/CSH531N/csh_write_off_import.lview"
/>
<a:link
id=
"csh_bank_transfer_processing_link"
url=
"${/request/@context_path}/modules/csh/CSH531N/csh_bank_transfer_processing.lview"
/>
<a:link
id=
"import_upload_link"
url=
"${/request/@context_path}/modules/csh/CSH531N/csh_pos_input.lview"
/>
<a:link
id=
"csh_write_off_detail_link"
url=
"${/request/@context_path}/modules/csh/CSH301/csh_transaction_receipt_write_off_detail_query.lview"
/>
<a:link
id=
"csh_terminal_manager_link"
url=
"${/request/@context_path}/modules/csh/CSH531N/csh_terminal_manager.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function csh531n_lock_current_window(msg) {
Leaf.Masker.mask(Ext.getBody(), msg);
}
function csh531n_unlock_current_window() {
Leaf.Masker.unmask(Ext.getBody());
}
function csh531_reset() {
$('csh_transaction_receipt_write_off_query_ds').reset();
}
function cshBatchDetail(value, record, name) {
var batch_id = record.get('batch_id');
var batch_status = record.get('batch_status');
return '<a href="javascript:csh_detail_link(' + batch_id + ',\'' + batch_status + '\')">
${l:TRE502.DETAILS}
</a>
';
}
function csh531_import_gathering() {
new Leaf.Window({
id: 'csh_upload_window',
url: $('general_import_upload_link').getUrl(),
params: {winid: 'csh_upload_window'},
title: '${l:HLS.IMPORT}',
width: 420,
height: 275
});
}
function do_data_confirm(post_data) {
csh531n_lock_current_window();
Leaf.request({
url: $('csh_confirm_data_link').getUrl(),
para: post_data,
success: function () {
csh531n_unlock_current_window();
Leaf.showMessage('${l:PROMPT}', '数据已确认!');
$('csh531n_sap_bankflow_info_result_ds').query();
},
failure: function () {
csh531n_unlock_current_window();
},
error: function () {
csh531n_unlock_current_window();
},
scope: this
});
}
function csh_show_message(post_data) {
//
Leaf.showConfirm('${l:PROMPT}', '存在未完全分配的收款,您确认吗?', function () {
do_data_confirm(post_data);
}, function () {
});
}
function csh531_data_confirm() {
//
var records = $('csh531n_sap_bankflow_info_result_ds').getSelected();
if (records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条记录!');
return;
}
var check_count = 0;
var post_data = [];
for (var i = 0; i
< records.length
;
i++)
{
if
(records[i].get('write_off_flag')
==
'FULL')
{
Leaf.showMessage('${l:PROMPT}',
'选择数据中包含已完全核销的数据');
return;
}
if
(records[i].get('review_status')
!=
'FULL')
{
check_count =
1;
}
post_data.push({
'transaction_id':
records[i].get('transaction_id'),
'_status':
'update'
});
}
if
(check_count
!=
0)
{
csh_show_message(post_data);
}
else
{
do_data_confirm(post_data);
}
//
Leaf.Masker.mask(Ext.getBody(),
'${l:HLS.EXECUTING}');
//
Leaf.request({
//
url:
$('csh_data_confirm_check_link').getUrl(),
//
para:
post_data,
//
success:
function
(res)
{
//
//
alert(res.result.count);
//
if
(res.result.count
!=
0)
{
//
csh_show_message();
//
}
else
{
//
do_data_confirm();
//
}
//
},
//
sync:
true,
//
scope:
this
//
});
}
function
csh531_query()
{
$('csh531n_sap_bankflow_info_result_ds').query();
}
function
csh_edit_function(batch_id)
{
new
Leaf.Window({
id:
'csh_modify_info_window',
url:
$('csh_modify_info_window_link').getUrl(),
params:
{batch_id:
batch_id},
title:
'${l:CSH531.BASIC_INFO}',
width:
420,
height:
275
});
}
function
cshEditFun(value,
record,
name)
{
var
batch_id =
record.get('batch_id');
return
'<a
href=
"javascript:csh_edit_function(' + batch_id + ')"
>
${l:EDIT}
</a>
';
}
function construct_from_to() {
var config = ['transaction_num', 'bank_slip_num', 'transaction_amount', 'currency_code', 'bank_account_code', 'bp_code', 'bp_name', 'bp_id', 'transaction_date'];
var pattern = ['_from', '_to'];
var obj = {};
for (var i = 0,
j = config.length; i
< j
;
i++)
{
for
(var
m =
0,
n =
pattern.length;
m
<
n;
m++)
{
obj[config[i]
+
pattern[m]]
=
config[i]
+
pattern[n
-
1
-
m];
}
}
return
obj;
}
function
csh513_receipt_write_off_update(ds,
record,
name,
value,
oldvalue)
{
var
from_to =
construct_from_to();
var
opposite_name =
from_to[name];
if
(!Ext.isEmpty(opposite_name))
{
var
opposite_value =
record.get(opposite_name);
if
(!Ext.isEmpty(value)
&&
Ext.isEmpty(opposite_value))
{
record.set(opposite_name,
value);
}
}
}
function
dateValidator(record,
name,
value)
{
//日期校验方法
if
(
name =
=
'transaction_date_from'
||
name =
=
'transaction_date_to')
{
var
start_date =
Leaf.formatDate(record.get('transaction_date_from'));
var
end_date =
Leaf.formatDate(record.get('transaction_date_to'));
if
(!!end_date)
{
//由于结束日期非必填,只有在结束日期填了才进行比较
if
(!compareDate(start_date,
end_date))
{
return
'${l:CSH510.CSH_RECEIPT_DATE_CHECK}';
//校验不通过返回字符串
}
}
return
true;
//校验通过返回true
}
}
function
compareDate(start,
end)
{
if
(start
>
end) {
return false;
}
return true;
}
function summary_Renderer(data, name) {
if (name == 'transaction_num') {
return '
<font
color=
red
>
' + '合计' + '
</font>
';
} else if (name == 'transaction_amount') {
return colum_caculateTotal(data, name);
} else if (name == 'unwrite_off_amount') {
return colum_caculateTotal(data, name);
}
}
function colum_caculateTotal(data, name) {
var total = 0;
var length = data.length;
var value = 0;
for (var i = 0; i
< length
;
i++)
{
if
(Ext.isEmpty(data[i].get(name)))
{
value =
0;
}
else
{
value =
data[i].get(name);
}
total =
plus(total,
value);
}
return
'<font
color=
red
>
' + Leaf.formatMoney(total) + '
</font>
';
}
function csh_para_check() {
//
var record = $('auto_write_off_ds').getAt(0);
// var record = records.getAt(0);
var account_num = record.get('account_num');
var bank_account_num = record.get('bank_account_num');
var trx_amount = record.get('trx_amount');
if (account_num != 'Y'
&&
bank_account_num != 'Y'
&&
trx_amount != 'Y') {
Leaf.showMessage('${l:PROMPT}', '请选择一个以上自动分配参数!');
record.set('bank_account_num', 'Y');
}
}
function do_import_write_off() {
new Leaf.Window({
id: 'csh_write_off_upload_window',
params: {
do_after_assigns: 'Y',
winid: 'csh_write_off_upload_window'
},
url: $('csh_write_off_upload_link').getUrl(),
title: '${l:HLS.IMPORT}',
width: 420,
height: 475
});
}
function csh_import_write_off() {
Leaf.showConfirm('${l:PROMPT}', '导入分配将覆盖自动分配的数据,是否继续?', function () {
do_import_write_off();
}, function () {
});
}
function csh_auto_write_off() {
var ds_id = 'csh531n_sap_bankflow_info_result_ds';
var records = $(ds_id).getSelected();
if (records.length
< 1
)
{
Leaf.showMessage('${l:PROMPT}',
'请至少选择一条要处理的单据');
return;
}
var
auto_write_record =
$('auto_write_off_ds').getAt(0);
//
var
csh_bp_bank_account_num =
auto_write_record.get('account_num');
var
csh_bp_bank_account_name =
auto_write_record.get('bank_account_num');
//
var
csh_trx_amount =
auto_write_record.get('trx_amount');
csh531n_lock_current_window('${l:HLS.EXECUTING}');
var
post_data =
[];
for
(var
i =
0;
i
<
records.length;
i++)
{
if
(records[i].get('write_off_flag')
==
'FULL')
{
Leaf.showMessage('${l:PROMPT}',
'选择数据中包含已完全核销的数据');
return;
}
post_data.push({
'transaction_id':
records[i].get('transaction_id'),
'csh_bp_bank_account_num':
auto_write_record.get('bp_bank_account_num'),
'csh_bp_bank_account_name':
auto_write_record.get('bp_bank_account_name'),
'_status':
'update'
});
}
Leaf.request({
url:
$('csh_auto_write_off_link').getUrl(),
para:
post_data,
success:
function
()
{
csh531n_unlock_current_window();
$(ds_id).query();
Leaf.showMessage('${l:PROMPT}',
'分配成功!');
},
failure:
function
()
{
csh531n_unlock_current_window();
},
error:
function
()
{
csh531n_unlock_current_window();
},
scope:
this
});
}
function
csh531n_open_write_off_detail(id)
{
var
ds =
$('csh531n_sap_bankflow_info_result_ds');
var
record =
ds.findById(id);
var
status =
record.get('confirmed_flag');
var
write_off_flag =
record.get('write_off_flag');
var
readOnly =
'N'
;
var
interfaceQueryFlag =
'Y'
;
var
paid_byother_flag =
record.get('paid_byother_flag');
var
transaction_type =
record.get('transaction_type');
var
depositDisplayFlag =
'N'
;
var
advanceDisplayFlag =
'N'
;
var
approval_flag =
'${/model/result_position/record/@approval_enbale}'
||
'N';
if
(
approval_flag =
=
'Y')
{
readOnly =
'Y'
;
if
(
status =
=
'APPROVED')
{
interfaceQueryFlag =
'N'
;
}
}
else
{
if
(
write_off_flag =
=
'FULL')
{
readOnly =
'Y'
;
interfaceQueryFlag =
'N'
;
}
else
{
if(
status =
=
'WF_APPROVING'){
readOnly =
'Y'
;
}
}
}
if
(status
!=
'WF_APPROVING')
{
approval_flag =
'N'
;
}
if
(transaction_type
!=
'ADVANCE_RECEIPT'
&&
transaction_type
!=
'DEPOSIT')
{
advanceDisplayFlag =
'Y'
;
}
else
{
if
(
paid_byother_flag =
=
'Y')
{
depositDisplayFlag =
'Y'
;
}
}
var
win =
new
Leaf.Window({
id:
'csh_write_off_window',
params:
{
transaction_id:
record.get('transaction_id'),
depositDisplayFlag:
depositDisplayFlag,
bank_slip_num:
record.get('bank_slip_num'),
company_id:
record.get('company_id'),
transaction_date:
Leaf.formatDate(record.get('transaction_date')),
internal_period_num:
record.get('internal_period_num'),
period_name:
record.get('period_name'),
bp_bank_account_num:
record.get('bp_bank_account_num'),
bp_bank_account_name:
record.get('bp_bank_account_name'),
bp_id:
record.get('bp_id'),
advanceDisplayFlag:
advanceDisplayFlag,
readOnly:
readOnly,
interfaceQueryFlag:
interfaceQueryFlag,
approval_flag:
approval_flag,
winid:
'csh_write_off_window'
},
url:
$('batch_detail_link').getUrl(),
title:
'明细',
fullScreen:
true
});
win.on('close',
function
()
{
ds.query(ds.currentPage);
});
}
function
csh531n_detail_renderer(value,
record,
name)
{
if
(
name =
=
'csh531n_detail')
{
return
'<a
href=
"Javascript:csh531n_open_write_off_detail(\'' + record.id + '\')"
>
明细
</a>
';
} else if (name == 'transaction_num') {
return '
<a
href=
"Javascript:csh531n_open_write_off_detail(\'' + record.id + '\')"
>
' + value + '
</a>
';
}
}
function csh531_post_input() {
new Leaf.Window({
id: 'upload_window_winid',
url: $('import_upload_link').getUrl(),
params: {winid: 'upload_window_winid'},
title: 'POS机导入',
width: 420,
height: 300
});
}
function seedetail_write_off(value, record, name) {
var return_value = value || 0;
// return '
<a
href=
"javascript:openWindow_writeoff(' + record.id + ');"
>
' + Leaf.formatMoney(return_value) + '
</a>
';
return '
<a
href=
"javascript:openWindow_writeoff(' + record.id + ');"
>
明细
</a>
';
}
function openWindow_writeoff(id) {
var record = $('csh531n_sap_bankflow_info_result_ds').findById(id);
var url;
url = $('csh_write_off_detail_link').getUrl() + '?transaction_id=' + record.get('transaction_id') + '
&
transaction_type=' + record.get('transaction_type');
new Leaf.Window({
id: 'csh_write_off_reverse_detail_link_winid',
params: {
winId: 'csh_write_off_reverse_detail_link_winid'
},
url: url,
title: '${l:CSH301.CSH_WRITE_OFF_DETAIL}',
fullScreen: true
});
}
function csh531_terminal_manager() {
var url = $('csh_terminal_manager_link').getUrl();
new Leaf.Window({
id: 'csh_terminal_manager_id',
params: {
winId: 'csh_terminal_manager_id'
},
url: url,
title: '终端号管理',
width: 1100,
height: 600
});
}
function csh531n_export() {
$('csh_transaction_receipt_write_off_grid_ds')._export(null, '收款核销流水');
}
function csh531_new_write_off() {
var record = $('csh531n_sap_bankflow_info_result_ds').getSelected()[0];
if (record) {
csh531n_open_write_off_detail(record.id);
} else {
Leaf.showErrorMessage('提示', '请先选择一条数据');
}
}
function csh531_new_reverse_write_off() {
var record = $('csh531n_sap_bankflow_info_result_ds').getSelected()[0];
var returned_amount = record.get('returned_amount') || 0;
if (returned_amount > 0) {
Leaf.showInfoMessage("提示", "该事务存在收款退款,不允许反冲");
} else {
if (record
&&
record.get('write_off_flag') != 'NOT') {
Leaf.showConfirm("提示", "您确定反冲现金事务
<span
style=
'color:red'
>
" + record.get('transaction_num') + "
</span>
吗", function () {
csh531n_lock_current_window();
Leaf.request({
url: $('csh_reverse_write_off_link').getUrl(),
para: record.data,
success: function () {
csh531n_unlock_current_window();
$('csh531n_sap_bankflow_info_result_ds').query();
}, failure: function () {
csh531n_unlock_current_window();
},
error: function () {
csh531n_unlock_current_window();
},
scope: this
});
});
} else {
Leaf.showInfoMessage("提示", "只能反冲已经核销的现金事务");
}
}
}
]]>
</script>
<a:dataSets>
<a:dataSet
id=
"batch_status_ds"
lookupCode=
"CSH531_BATCH_STATUS"
/>
<a:dataSet
id=
"confirmed_flag_ds"
>
<a:datas>
<a:record
code_value=
"WF_APPROVING"
code_value_name=
"核销确认中"
/>
<a:record
code_value=
"APPROVED"
code_value_name=
"核销已确认"
/>
</a:datas>
</a:dataSet>
<a:dataSet
id=
"csh531n_ds_collection_classes_ds"
lookupCode=
"DS_COLLECTION_CLASSES"
/>
<a:dataSet
id=
"currency_ds"
>
<a:datas
dataSource=
"/model/currency"
/>
</a:dataSet>
<a:dataSet
id=
"csh_transaction_type_ds"
>
<a:datas
dataSource=
"/model/sys_code_default_value_path"
/>
</a:dataSet>
<!-- <a:dataSet id="status_ds" lookupCode="CSH_PAYMENT_REQ_APPROVAL_STATUS"/>-->
<a:dataSet
id=
"status_ds"
lookupCode=
"CSH_WRITE_OFF_STATUS"
/>
<a:dataSet
id=
"con_write_off_flag_ds"
lookupCode=
"CON_WRITE_OFF_FLAG"
/>
<a:dataSet
id=
"receipt_type_ds"
lookupCode=
"RECEIPT_TYPE"
/>
<a:dataSet
id=
"csh_transaction_receipt_write_off_query_ds"
autoCreate=
"true"
>
<a:fields>
<a:field
name=
"write_off_flag"
/>
<a:field
name=
"cw_flag"
defaultValue=
"Y"
/>
<a:field
name=
"confirmed"
defaultValue=
"Y"
/>
<a:field
name=
"confirmed_flag_desc"
options=
"confirmed_flag_ds"
valueField=
"code_value"
displayField=
"code_value_name"
returnField=
"confirmed_flag"
defaultValue=
"核销确认中"
/>
<a:field
name=
"confirmed_flag"
defaultValue=
"WF_APPROVING"
/>
<a:field
name=
"write_off_flag_desc"
displayField=
"code_value_name"
options=
"con_write_off_flag_ds"
returnField=
"write_off_flag"
valueField=
"code_value"
/>
<a:field
name=
"status"
displayField=
"code_value_name"
options=
"status_ds"
returnField=
"status"
valueField=
"code_value"
/>
<a:field
name=
"collection_classes_desc"
options=
"csh531n_ds_collection_classes_ds"
displayField=
"code_value_name"
returnField=
"collection_classes"
valueField=
"code_value"
/>
<a:field
name=
"transaction_type_desc"
options=
"csh_transaction_type_ds"
returnField=
"transaction_type"
valueField=
"code_value"
displayField=
"code_value_name"
defaultValue=
"收款"
/>
<a:field
name=
"bp_name"
lovGridHeight=
"350"
lovHeight=
"550"
lovLabelWidth=
"50"
lovWidth=
"550"
lovService=
"basic.hls_bp_master_v_for_lov"
title=
"HLS.BP_TITLE"
>
<a:mapping>
<a:map
from=
"bp_id"
to=
"bp_id"
/>
<a:map
from=
"bp_name"
to=
"bp_name"
/>
</a:mapping>
</a:field>
<a:field
name=
"position_code"
defaultValue=
"${/model/result_position/record/@position_code}"
/>
<a:field
name=
"receipt_type_desc"
options=
"receipt_type_ds"
valueField=
"code_value"
defaultValue=
"code_value_name"
returnField=
"receipt_type"
/>
</a:fields>
<a:events>
<a:event
name=
"update"
handler=
"csh513_receipt_write_off_update"
/>
</a:events>
</a:dataSet>
<a:dataSet
id=
"csh531n_sap_bankflow_info_result_ds"
autoPageSize=
"true"
autoQuery=
"true"
model=
"csh.CSH531N.csh_transaction_query"
queryDataSet=
"csh_transaction_receipt_write_off_query_ds"
selectable=
"true"
selectionModel=
"single"
>
<a:fields>
<a:field
name=
"auto_filt_penalty"
checkedValue=
"Y"
uncheckedValue=
"N"
/>
<a:field
name=
"auto_filt_prinicipal_interest"
checkedValue=
"Y"
uncheckedValue=
"N"
/>
<a:field
name=
"status_n"
displayField=
"code_value_name"
options=
"status_ds"
returnField=
"status"
valueField=
"code_value"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"auto_write_off_ds"
autoCreate=
"true"
>
<a:fields>
<a:field
name=
"bank_account_num"
checkedValue=
"Y"
uncheckedValue=
"N"
/>
<a:field
name=
"bp_bank_account_num"
checkedValue=
"Y"
defaultValue=
"Y"
uncheckedValue=
"N"
/>
<a:field
name=
"bp_bank_account_name"
checkedValue=
"Y"
defaultValue=
"Y"
uncheckedValue=
"N"
/>
<a:field
name=
"trx_amount"
checkedValue=
"Y"
uncheckedValue=
"N"
/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton
click=
"csh531_query"
text=
"HLS.QUERY"
/>
<a:gridButton
click=
"csh531_reset"
text=
"重置"
/>
</a:screenTopToolbar>
<a:form
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
style=
"background:#f7f7f8"
labelWidth=
"250"
>
<a:fieldSet
labelWidth=
"250"
title=
"HLS.QUERY_TITLE"
>
<a:box
column=
"4"
>
<a:datePicker
name=
"transaction_date_from"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"收款日期从"
/>
<a:datePicker
name=
"transaction_date_to"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"收款日期到"
/>
<a:numberField
name=
"transaction_amount_from"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"收款金额从"
/>
<a:numberField
name=
"transaction_amount_to"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"收款金额到"
/>
</a:box>
<!-- <a:box column="4">-->
<!-- <a:textField name="bank_branch_name" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
<!-- prompt="我方账户户名"/>-->
<!-- <a:textField name="bank_branch_name" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
<!-- prompt="我方银行名称"/>-->
<!-- <a:textField name="bank_branch_name" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
<!-- prompt="我方账户账号"/>-->
<!-- <a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
<!-- prompt="银行流水号"/>-->
<!-- </a:box>-->
<!-- <a:box column="4">-->
<!-- <a:textField name="bp_bank_account_name"-->
<!-- bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="对方账户户名"/>-->
<!-- <a:textField name="bp_bank_account_name"-->
<!-- bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="对方银行名称"/>-->
<!-- <a:textField name="bp_bank_account_num"-->
<!-- bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="对方账户账号"/>-->
<!-- </a:box>-->
<a:box
column=
"4"
>
<a:textField
name=
"transaction_num"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"现金事务编号"
/>
<a:lov
name=
"bp_name"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"商业伙伴"
/>
<!-- <a:comboBox name="status" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
<!-- prompt="单据状态"/>-->
<a:comboBox
name=
"write_off_flag_desc"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"核销状态"
/>
<!-- <a:comboBox name="collection_classes_desc"-->
<!-- bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="款项用途"/>-->
<a:comboBox
name=
"confirmed_flag_desc"
bindTarget=
"csh_transaction_receipt_write_off_query_ds"
prompt=
"单据审批状态"
/>
</a:box>
</a:fieldSet>
</a:form>
<a:grid
id=
"csh_transaction_receipt_write_off_grid_ds"
bindTarget=
"csh531n_sap_bankflow_info_result_ds"
marginHeight=
"305"
marginWidth=
"30"
navBar=
"true"
>
<!-- <a:toolBar>-->
<!-- <a:button click="csh531_terminal_manager" text="终端号管理"/>-->
<!-- <a:button click="csh531_post_input" text="POS机导入"/>-->
<!-- <a:button type="excel" text="流水导出"/>-->
<!-- <a:button click="csh_auto_write_off" text="自动分配"/>-->
<!-- <a:button click="csh_import_write_off" text="导入分配"/>-->
<!-- <a:button click="csh531_data_confirm" text="审阅"/>-->
<!-- </a:toolBar>-->
<a:columns>
<a:column
name=
"transaction_num"
prompt=
"现金事务编号"
lock=
"true"
align=
"center"
renderer=
"csh531n_detail_renderer"
width=
"120"
/>
<a:column
name=
"transaction_type_desc"
prompt=
"现金事务类型"
lock=
"true"
align=
"center"
width=
"120"
/>
<a:column
name=
"receipt_type_desc"
prompt=
"收款类型"
align=
"center"
lock=
"true"
width=
"120"
/>
<!--<a:column name="bank_name" prompt="银行名称"/>-->
<!-- <a:column name="bank_branch_name" prompt="银行名称"/>-->
<!-- <a:column name="bank_slip_num" prompt="银行流水号"/>-->
<!-- <a:column name="bank_account_num" prompt="收款账号"/>-->
<a:column
name=
"transaction_amount"
align=
"right"
lock=
"true"
footerRenderer=
"summary_Renderer"
renderer=
"Leaf.formatMoney"
prompt=
"收款金额"
width=
"120"
/>
<a:column
name=
"transaction_date"
renderer=
"Leaf.formatDate"
align=
"center"
lock=
"true"
prompt=
"收款日期"
width=
"120"
/>
<a:column
name=
"description"
prompt=
"摘要"
width=
"180"
/>
<!-- <a:column name="collection_classes_desc" prompt="款项用途" lock="true" align="center"/>-->
<a:column
name=
"bp_name"
prompt=
"商业伙伴"
align=
"left"
width=
"200"
/>
<!-- <a:column name="csh531n_detail" renderer="csh531n_detail_renderer" prompt="核销明细" align="center" width="80"/>-->
<a:column
name=
"csh531n_detail"
renderer=
"seedetail_write_off"
prompt=
"核销明细"
align=
"center"
width=
"80"
/>
<!-- <a:column name="bp_bank_account_name" prompt="对方账户"/>-->
<!-- <a:column name="bp_bank_account_num" prompt="对方账号"/>-->
<!-- <a:column name="description_p" prompt="摘要+用途"/>-->
<!-- <a:column name="write_off_amount" align="right" renderer="seedetail_write_off" prompt="已核销金额"/>-->
<!-- <a:column name="unwrite_off_amount" align="right" footerRenderer="summary_Renderer"-->
<!-- renderer="Leaf.formatMoney" prompt="未核销金额"/>-->
<!-- <a:column name="approving_return_amount" align="right" footerRenderer="summary_Renderer" renderer="Leaf.formatMoney" prompt="审批中退款金额"/>-->
<!-- <a:column name="unallocate_amount" align="right" footerRenderer="summary_Renderer"-->
<!-- renderer="Leaf.formatMoney" prompt="未分配金额"/>-->
<!-- <a:column name="status_desc" prompt="单据状态" width="120" align="center"/>-->
<a:column
name=
"write_off_flag_desc"
prompt=
"核销状态"
width=
"120"
align=
"center"
/>
<a:column
name=
"confirmed_flag_desc"
prompt=
"单据状态"
width=
"120"
align=
"center"
/>
<!-- <a:column name="review_status_desc" prompt="分配状态" width="80"/>-->
<!-- <a:column name="ref_v05" prompt="备注" width="100"/>-->
<a:column
name=
"created_user_name"
prompt=
"制单人"
width=
"120"
align=
"center"
/>
<a:column
name=
"confirm_user_name"
prompt=
"核销确认人"
width=
"120"
align=
"center"
/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
src/main/webapp/modules/hls/HLS303/bp_agent_entrance.lview
View file @
b5fcc240
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
param['maintain_type'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['cdd_list_id'] = record.get('cdd_list_id');
param['cdd_list_id'] = record.get('cdd_list_id');
param['dsid'] = 'bp_agent_grid_result_ds';
param['dsid'] = 'bp_agent_grid_result_ds';
param['url_title'] = '代理
商准入
';
param['url_title'] = '代理
店管理
';
param['bp_id'] = record.get('bp_id')
param['bp_id'] = record.get('bp_id')
;
// Leaf.request({
// Leaf.request({
// url: $('first_add_agent_link_id').getUrl(),
// url: $('first_add_agent_link_id').getUrl(),
// para: {
// para: {
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
param['function_code'] = 'HLS303F';
param['function_code'] = 'HLS303F';
param['function_usage'] = 'MODIFY';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['url_title'] = '代理
商
信息补充';
param['url_title'] = '代理
店
信息补充';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'bp_agent_modify_link', 'bp_agent_grid_result_ds');
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'bp_agent_modify_link', 'bp_agent_grid_result_ds');
}
}
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
param['function_code'] = 'HLS303R';
param['function_code'] = 'HLS303R';
param['function_usage'] = 'MODIFY';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['url_title'] = '代理
商
续约';
param['url_title'] = '代理
店
续约';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'bp_agent_modify_link', 'bp_agent_grid_result_ds');
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'bp_agent_modify_link', 'bp_agent_grid_result_ds');
}
}
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
param['function_usage'] = 'MODIFY';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
//param['dsid'] = 'bp_agent_grid_result_ds';
//param['dsid'] = 'bp_agent_grid_result_ds';
param['url_title'] = '代理
商准入
';
param['url_title'] = '代理
店管理
';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'bp_agent_create_link');
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'bp_agent_create_link');
}
}
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
<a:dataSet
id=
"bp_agent_query_ds"
model=
"hls.HLS303.hls_bp_master_asgent_modify"
>
<a:dataSet
id=
"bp_agent_query_ds"
model=
"hls.HLS303.hls_bp_master_asgent_modify"
>
<a:fields>
<a:fields>
<a:field
name=
"bp_code"
lovHeight=
"500"
lovService=
"hls.HLS303.hls_bp_master_lov"
lovWidth=
"700"
<a:field
name=
"bp_code"
lovHeight=
"500"
lovService=
"hls.HLS303.hls_bp_master_lov"
lovWidth=
"700"
title=
"代理
商
选择"
>
title=
"代理
店
选择"
>
<a:mapping>
<a:mapping>
<a:map
from=
"bp_id"
to=
"bp_id"
/>
<a:map
from=
"bp_id"
to=
"bp_id"
/>
<a:map
from=
"bp_code"
to=
"bp_code"
/>
<a:map
from=
"bp_code"
to=
"bp_code"
/>
...
@@ -204,28 +204,28 @@
...
@@ -204,28 +204,28 @@
<a:gridButton
click=
"bp_agent_export"
text=
"导出"
/>
<a:gridButton
click=
"bp_agent_export"
text=
"导出"
/>
</a:screenTopToolbar>
</a:screenTopToolbar>
<a:form
Width=
"1030"
column=
"4"
labelWidth=
"130"
marginWidth=
"40"
title=
"HAP_QUERY_TITLE"
>
<a:form
Width=
"1030"
column=
"4"
labelWidth=
"130"
marginWidth=
"40"
title=
"HAP_QUERY_TITLE"
>
<a:lov
name=
"bp_code"
bindTarget=
"bp_agent_query_ds"
prompt=
"代理
商
编码"
/>
<a:lov
name=
"bp_code"
bindTarget=
"bp_agent_query_ds"
prompt=
"代理
店
编码"
/>
<a:textField
name=
"bp_name"
bindTarget=
"bp_agent_query_ds"
prompt=
"代理
商
名称"
/>
<a:textField
name=
"bp_name"
bindTarget=
"bp_agent_query_ds"
prompt=
"代理
店
名称"
/>
<a:textField
name=
"extra_nam"
bindTarget=
"bp_agent_query_ds"
prompt=
"代理
商
简称"
/>
<a:textField
name=
"extra_nam"
bindTarget=
"bp_agent_query_ds"
prompt=
"代理
店
简称"
/>
<a:textField
name=
"re_kunnr"
bindTarget=
"bp_agent_query_ds"
prompt=
"SAP客户编码"
/>
<a:textField
name=
"re_kunnr"
bindTarget=
"bp_agent_query_ds"
prompt=
"SAP客户编码"
/>
<a:textField
name=
"re_lifnr"
bindTarget=
"bp_agent_query_ds"
prompt=
"SAP供应商编码"
/>
<a:textField
name=
"re_lifnr"
bindTarget=
"bp_agent_query_ds"
prompt=
"SAP供应商编码"
/>
<!-- <a:comboBox name="bp_category_n" bindTarget="bp_agent_query_ds" prompt="商业伙伴类型"/>
<!-- <a:comboBox name="bp_category_n" bindTarget="bp_agent_query_ds" prompt="商业伙伴类型"/>
<a:comboBox name="agent_type_n" bindTarget="bp_agent_query_ds" prompt="代理
商
类型"/>
<a:comboBox name="agent_type_n" bindTarget="bp_agent_query_ds" prompt="代理
店
类型"/>
<a:comboBox name="agent_instance_status_n" bindTarget="bp_agent_query_ds" prompt="工作流状态"/>-->
<a:comboBox name="agent_instance_status_n" bindTarget="bp_agent_query_ds" prompt="工作流状态"/>-->
</a:form>
</a:form>
<a:grid
id=
"bp_agent_grid"
bindTarget=
"bp_agent_grid_result_ds"
marginHeight=
"190"
marginWidth=
"40"
<a:grid
id=
"bp_agent_grid"
bindTarget=
"bp_agent_grid_result_ds"
marginHeight=
"190"
marginWidth=
"40"
navBar=
"true"
>
navBar=
"true"
>
<a:columns>
<a:columns>
<a:column
name=
"bp_code"
align=
"center"
prompt=
"代理
商
编码"
renderer=
"bp_agent_render"
width=
"120"
/>
<a:column
name=
"bp_code"
align=
"center"
prompt=
"代理
店
编码"
renderer=
"bp_agent_render"
width=
"120"
/>
<a:column
name=
"bp_name"
align=
"center"
prompt=
"代理
商
名称"
width=
"280"
/>
<a:column
name=
"bp_name"
align=
"center"
prompt=
"代理
店
名称"
width=
"280"
/>
<a:column
name=
"extra_nam"
align=
"center"
prompt=
"代理
商
简称"
width=
"130"
/>
<a:column
name=
"extra_nam"
align=
"center"
prompt=
"代理
店
简称"
width=
"130"
/>
<!--<a:column name="large_area" align="center" prompt="大区" width="90"/>
<!--<a:column name="large_area" align="center" prompt="大区" width="90"/>
<a:column name="liv_province_n" align="center" prompt="所在省份" width="90"/>
<a:column name="liv_province_n" align="center" prompt="所在省份" width="90"/>
<a:column name="liv_city_n" align="center" prompt="所在城市" width="90"/>-->
<a:column name="liv_city_n" align="center" prompt="所在城市" width="90"/>-->
<a:column
name=
"enabled_flag"
align=
"center"
prompt=
"代理
商
状态"
width=
"100"
/>
<a:column
name=
"enabled_flag"
align=
"center"
prompt=
"代理
店
状态"
width=
"100"
/>
<!--<a:column name="large_area" align="center" prompt="额度管理" width="120"/>-->
<!--<a:column name="large_area" align="center" prompt="额度管理" width="120"/>-->
<a:column
name=
"agent_info"
align=
"center"
prompt=
"代理
商
信息补充"
renderer=
"bp_agent_render"
width=
"100"
/>
<a:column
name=
"agent_info"
align=
"center"
prompt=
"代理
店
信息补充"
renderer=
"bp_agent_render"
width=
"100"
/>
<a:column
name=
"agent_renew"
align=
"center"
prompt=
"代理
商
续约"
renderer=
"bp_agent_render"
width=
"90"
/>
<a:column
name=
"agent_renew"
align=
"center"
prompt=
"代理
店
续约"
renderer=
"bp_agent_render"
width=
"90"
/>
<a:column
name=
"financial_statements_import"
align=
"center"
prompt=
"财务报表导入"
<a:column
name=
"financial_statements_import"
align=
"center"
prompt=
"财务报表导入"
renderer=
"bp_agent_render"
width=
"90"
/>
renderer=
"bp_agent_render"
width=
"90"
/>
<a:column
name=
"financial_statements"
align=
"center"
prompt=
"财务报表"
renderer=
"bp_agent_render"
<a:column
name=
"financial_statements"
align=
"center"
prompt=
"财务报表"
renderer=
"bp_agent_render"
...
@@ -237,8 +237,8 @@
...
@@ -237,8 +237,8 @@
<a:column
name=
"re_lifnr"
align=
"center"
prompt=
"SAP供应商编码"
width=
"100"
/>
<a:column
name=
"re_lifnr"
align=
"center"
prompt=
"SAP供应商编码"
width=
"100"
/>
<!--<a:column name="bp_class_n" align="center" prompt="商业伙伴类型" width="120"/>
<!--<a:column name="bp_class_n" align="center" prompt="商业伙伴类型" width="120"/>
<a:column name="bp_category_n" align="center" prompt="商业伙伴类别" width="150"/>
<a:column name="bp_category_n" align="center" prompt="商业伙伴类别" width="150"/>
<a:column name="agent_type_n" align="center" prompt="代理
商
类型" width="150"/>
<a:column name="agent_type_n" align="center" prompt="代理
店
类型" width="150"/>
<a:column name="extra_nam" align="center" prompt="代理
商
简称" width="150"/>
<a:column name="extra_nam" align="center" prompt="代理
店
简称" width="150"/>
<a:column name="agent_instance_status_n" align="center" prompt="工作流状态" width="150"/>-->
<a:column name="agent_instance_status_n" align="center" prompt="工作流状态" width="150"/>-->
</a:columns>
</a:columns>
</a:grid>
</a:grid>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment