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
07ccdcac
Commit
07ccdcac
authored
Jan 24, 2024
by
陆正友
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/remote_dev' into remote_dev
parents
1bbc3979
73c0c836
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
79 deletions
+54
-79
hls_fin_calc_config_hd_n.lwm
.../WEB-INF/classes/hls/HLS500N/hls_fin_calc_config_hd_n.lwm
+26
-2
csh_asset_create_entrance_t_csh_req_asset_queryfields.js
.../csh_asset_create_entrance_t_csh_req_asset_queryfields.js
+13
-0
layout_config.js
...ebapp/WEB-INF/server-script/layoutconfig/layout_config.js
+3
-1
csh_payment_create_entrance.lview
...bapp/modules/csh/CSH501/csh_payment_create_entrance.lview
+1
-2
csh_payment_asset_create_entrance.lview
...dules/csh/CSH501C/csh_payment_asset_create_entrance.lview
+1
-1
csh_payment_asset_req.lview
...in/webapp/modules/csh/CSH501C/csh_payment_asset_req.lview
+10
-73
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS500N/hls_fin_calc_config_hd_n.lwm
View file @
07ccdcac
...
...
@@ -22,10 +22,34 @@
t.validation_type,
t.validation_sql,
t.layout_area_seq,
t.input_mode,
decode(t.input_mode, 'REQUIRED', 'TRUE', 'FALSE') required_input_mode,
(CASE
WHEN T.COLUMN_CODE = 'H54' AND
nvl((select h.hd_user_col_v06
from hls_fin_calculator_hd h
where h.calc_session_id = ${@calc_session_id}),
'N') = 'Y' then
'READONLY'
else
t.input_mode
end) input_mode,
(CASE
WHEN T.COLUMN_CODE = 'H54' AND
nvl((select h.hd_user_col_v06
from hls_fin_calculator_hd h
where h.calc_session_id = ${@calc_session_id}),
'N') = 'Y' then
'FALSE'
else
decode(t.input_mode, 'REQUIRED', 'TRUE', 'FALSE')
end) required_input_mode,
(case when ${@maintain_type}='READONLY' then
'TRUE'
when T.COLUMN_CODE = 'H54' AND
nvl((select h.hd_user_col_v06
from hls_fin_calculator_hd h
where h.calc_session_id = ${@calc_session_id}),
'N') = 'Y' then
'TRUE'
else
decode(t.input_mode, 'READONLY', 'TRUE', 'FALSE')
end) readonly_input_mode,
...
...
src/main/webapp/WEB-INF/server-script/layoutconfig/csh_asset_create_entrance_t_csh_req_asset_queryfields.js
View file @
07ccdcac
...
...
@@ -20,5 +20,18 @@ var override_queryfields = [
queryexpression
:
"t1.payment_req_number like '%'||${@payment_req_number}||'%'"
}
];
var
add_datafilters
=
[
{
name
:
''
,
expression
:
"exists(select 1
\n
"
+
" from csh_payment_req_ln l,con_contract cc,con_contract_cashflow cf
\n
"
+
" where l.payment_req_id = t1.payment_req_id
\n
"
+
" and l.ref_doc_category = 'CONTRACT'
\n
"
+
" and l.ref_doc_id = cc.contract_id
\n
"
+
" and l.ref_doc_line_id = cf.cashflow_id
\n
"
+
" and cf.cf_item in ('40'))"
}
];
add_datafilter
();
override
();
src/main/webapp/WEB-INF/server-script/layoutconfig/layout_config.js
View file @
07ccdcac
...
...
@@ -346,5 +346,7 @@ var enableLayoutConfig = {
'modules/inv/INV100/inv_payment_detail.lview'
:
true
,
'modules/inv/INV100/inv_payment_wfl_detail.lview'
:
true
,
'modules/hls/HLS303/bp_asset_create.lview'
:
true
,
'modules/csh/CSH1500/csh_asset_reconciliation.lview'
:
true
'modules/csh/CSH1500/csh_asset_reconciliation.lview'
:
true
,
'modules/csh/CSH501C/csh_payment_asset_create_entrance.lview'
:
true
,
'modules/csh/CSH501C/csh_payment_asset_req.lview'
:
true
};
\ No newline at end of file
src/main/webapp/modules/csh/CSH501/csh_payment_create_entrance.lview
View file @
07ccdcac
...
...
@@ -225,7 +225,6 @@
function detail_link(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var param = {};
...
...
src/main/webapp/modules/csh/CSH501C/csh_payment_asset_create_entrance.lview
View file @
07ccdcac
...
...
@@ -15,7 +15,7 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var param = {};
param['payment_req_id'] = record.get('payment_req_id');
param['business_type'] = record.get('business_type');
if (record.get('approval_status') == 'NEW' || record.get('approval_status') == 'RETURN' || record.get('approval_status') == 'REJECT') {
param['function_usage'] = 'UPDATE';
param['function_code'] = 'CSH501D_ASSET';
...
...
src/main/webapp/modules/csh/CSH501C/csh_payment_asset_req.lview
View file @
07ccdcac
...
...
@@ -33,11 +33,7 @@
<a:link
id=
"acp_invoice_inf_import_total_link"
model=
"acp.ACP522.acp_invoice_inf_import_total"
modelaction=
"update"
/>
<script
type=
"text/javascript"
>
<![CDATA[
jQuery.noConflict();
var con_business_type='${/parameter/@con_business_type}'||'${/model/loan_flag_path/record/@business_type}'||'LEASE';
//工作流审批界面校验发票状态
if ('${/parameter/@source_type}' == 'WFL_Y') {
//待校验
}
//var con_business_type='${/parameter/@con_business_type}'||'${/model/loan_flag_path/record/@business_type}'||'LEASE';
function get_current_amount(amt) {
if (!Ext.isEmpty(amt)) {
return parseFloat(amt).toFixed(2);
...
...
@@ -53,13 +49,6 @@
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var payment_req_id = '${/parameter/@payment_req_id}';
if (payment_req_id) {
$(lnds_id).setQueryUrl('${/request/@context_path}/autocrud/csh.CSH501.csh_payment_req_ln_query_after_save/query');
$(lnds_id).setQueryParameter("payment_req_id", payment_req_id);
$(lnds_id).query();
$(hdds_id).setQueryParameter("payment_req_id", payment_req_id);
$(hdds_id).query();
}
//进项发票信息
var first = document.getElementsByClassName("item-input-wrap");
var second = first[5].getElementsByClassName('item-textField');
...
...
@@ -67,9 +56,7 @@
third.setAttribute('placeholder', '注:扫描时请将鼠标光标放在此处。。。');
third.style.backgroundColor = '#FF7744';
});
if ('${/parameter/@payment_req_id}') {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
}
var dirty_flag = 'N';
window['${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
dirty_flag = 'Y';
...
...
@@ -253,26 +240,6 @@
};
//var first_load_flag = 'N';
function on_csh_payment_req_temp_ln_ds_load(ds) {
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var records = ds.getAll();
if (!'${/parameter/@payment_req_id}' && lnds_id && '${/parameter/@business_type}' == 'PAYMENT') {
for (var i = 0; i < records.length; i++) {
var record = records[i];
if (!record.get('apply_pay_date')) {
//添加时间为预定的每月20号
var pre_date = [new Date().getFullYear(), new Date().getMonth() + 1, 20].join('-');
record.set('apply_pay_date', pre_date);
}
$(lnds_id).create(Ext.apply({}, record.data));
}
}
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
//新增时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
record.set("created_by_n", '${/model/user_name_path/record/@user_desc}');
...
...
@@ -418,21 +385,6 @@
};
//保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess']
=
function
(ds,
record,
res,
bp_seq)
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
dirty_flag =
'N'
;
var
hdds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'csh_payment_req_hd');
var
hd_record =
$(hdds_id).getCurrentRecord();
var
payment_req_id =
hd_record.get('payment_req_id');
//获得相应的行信息
var
lnds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'csh_payment_req_ln');
$(lnds_id).setQueryUrl('${/request/@context_path}/autocrud/csh.CSH501.csh_payment_req_ln_query_after_save/query');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
//合同编号超链接
function
open_con_contract_readonly_win(record_id,
ds_id)
{
//创建明细页面根据条件表TBL_LA11字段
function_code、bp_class匹配布局代码layout_code
BCML_CONTRACT_NP_MAINTAIN、BCML_CONTRACT_ORG_MAINTAIN
...
...
@@ -453,7 +405,7 @@
function
upload_csh_file(id,name,record_id,item_code)
{
var
record =
window['${/parameter/@layout_code}_hls_link_render_record'][id
+
'---'
+
name];
if(record.get('approval_status'
=='NEW')
){
if(record.get('approval_status'
)=='NEW'
){
var
url =
$('csh_uploadFile_id').getUrl()
+
'?
table_name=
CSH_PAYMENT_REQ_ASSET_HD&header_id='
+
record_id;
}else{
var
url =
$('csh_downloadFile_id').getUrl()
+
'?
table_name=
CSH_PAYMENT_REQ_ASSET_HD&header_id='
+
record_id;
...
...
@@ -481,25 +433,10 @@
}
};
function on_csh_payment_req_temp_ln_ds_query(ds, qpara) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
qpara['payment_bp_id'] = '${/parameter/@payment_bp_id}';
}
]]>
</script>
<a:link
id=
"${/parameter/@layout_code}csh511_csh_payment_req_hd_query"
model=
"csh.CSH511.csh_payment_req_hd"
modelaction=
"query"
/>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<a:dataSets>
<a:dataSet
id=
"csh_payment_req_temp_ln_ds"
autoQuery=
"true"
fetchAll=
"true"
model=
"csh.CSH501.csh_payment_req_ln_query"
>
<a:events>
<a:event
name=
"load"
handler=
"on_csh_payment_req_temp_ln_ds_load"
/>
<a:event
name=
"query"
handler=
"on_csh_payment_req_temp_ln_ds_query"
/>
</a:events>
</a:dataSet>
</a:dataSets>
</a:view>
</a:screen>
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