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
4009b805
Commit
4009b805
authored
Mar 26, 2021
by
李贺贺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租金减免附件上传
parent
4acf97ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
con_penalty_reduce_sava_check.lwm
...ses/check_after_save_bm/con_penalty_reduce_sava_check.lwm
+24
-0
contract_penalty_reduction_maintain.lview
...es/cont/CON1020/contract_penalty_reduction_maintain.lview
+45
-0
No files found.
src/main/webapp/WEB-INF/classes/check_after_save_bm/con_penalty_reduce_sava_check.lwm
0 → 100644
View file @
4009b805
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: lihh
$Date: 2021-03-22 下午17:00:00
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"update"
>
<bm:parameters>
<bm:parameter
name=
"cdd_list_id"
dataType=
"java.lang.Long"
input=
"true"
output=
"true"
outputPath=
"@cdd_list_id"
/>
</bm:parameters>
<bm:update-sql>
<![CDATA[
begin
CON_PENALTY_REDUCE_PKG.create_cdd(
p_penalty_id =>
${@penalty_reduce_id},
p_user_id => ${/session/@user_id},
p_cdd_list_id =>${@cdd_list_id});
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
\ No newline at end of file
src/main/webapp/modules/cont/CON1020/contract_penalty_reduction_maintain.lview
View file @
4009b805
...
...
@@ -11,6 +11,8 @@
<script
src=
"${/request/@context_path}/javascripts/jquery-1.6.4.min.js"
type=
"text/javascript"
/>
<a:link
id=
"contract_penalty_calc_link_id"
model=
"cont.CON1020.con_contract_penalty_info_save"
modelaction=
"batch_update"
/>
<a:link
id=
"${/parameter/@layout_code}_con_contract_modify_link"
url=
"${/request/@context_path}/modules/cont/CON1010/con_contract_modify.lview"
/>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@tree_code}_con500_cdd_uploadFile_id"
url=
"${/request/@context_path}/uploadFile.lview"
/>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@tree_code}_con500_cdd_downloadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<script
src=
"${/request/@context_path}/javascripts/calculate.js"
type=
"text/javascript"
/>
<script
type=
"text/javascript"
>
<![CDATA[
jQuery.noConflict();
...
...
@@ -270,12 +272,55 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
//add by lihh 20210323
window['${/parameter/@layout_code}_con500_cdd_attachtment_upload'] = function(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if (record.get('check_id')) {
var url;
if (query_only == 'Y'|| '${/parameter/@function_usage}' == 'QUERY') {
url = $('${/parameter/@layout_code}${/parameter/@tree_code}_con500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK
&
header_id=' + record.get('check_id');
} else {
url = $('${/parameter/@layout_code}${/parameter/@tree_code}_con500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK
&
header_id=' + record.get('check_id');
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: '${/parameter/@layout_code}${/parameter/@tree_code}_con_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function() {
record.ds.query();
});
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
};
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
var link_function = '';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'function_tips') {
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');"
>
违约金减免信息需要在测算后才展示
</a>
';
}else if (name == 'attachment') {
link_function = '${/parameter/@layout_code}_con500_cdd_attachtment_upload';
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');"
>
' + config_record.get('prompt') + '
</a>
';
} else if (name == 'attach_file_name') {
if (value != null) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
var str = value.split(';;');
var url = '';
for (var i = 0;i
< str.length
;i++)
{
var
temp =
str[i].split('--');
if
(!Leaf.isEmpty(temp[0]))
{
url =
url
+
'<a
href=
' + link + temp[1] + '
>
' + temp[0] + '
</a>
' + ',';
}
}
return url;
}
}
};
]]>
</script>
...
...
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