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
ea8093de
Commit
ea8093de
authored
Mar 18, 2021
by
李贺贺
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/租金催收生成催收记录' into develop
parents
6ad3f901
1d58293a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
1 deletion
+64
-1
con_collection_message_create.lwm
...INF/classes/cont/CON620/con_collection_message_create.lwm
+21
-0
con_contract_rent_detail.lview
...webapp/modules/cont/CON620/con_contract_rent_detail.lview
+43
-1
No files found.
src/main/webapp/WEB-INF/classes/cont/CON620/con_collection_message_create.lwm
0 → 100644
View file @
ea8093de
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: lihh
$Date: 2021-3-16 下午13:20
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
con_contract_content_pkg.con_collection_message_create(
p_contract_id =>
${@contract_id},
p_user_id =>${/session/@user_id},
p_templet_code =>${@templet_code});
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/modules/cont/CON620/con_contract_rent_detail.lview
View file @
ea8093de
...
...
@@ -37,6 +37,7 @@
<a:link
id=
"lease_return_print_link"
url=
"${/request/@context_path}/modules/cont/CON620/create_content_lease_return.lsc"
/>
<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=
"con_collection_message_create_link_id"
model=
"cont.CON620.con_collection_message_create"
modelaction=
"update"
/>
<script
type=
"text/javascript"
>
<![CDATA[
Ext.ux.Lightbox.register('a[ref=img]', true);
...
...
@@ -51,11 +52,28 @@
$(ds.id).query();
};
//生成催收信息
function create_message(contract_id,templet_code){
//执行生成催收信息的bm
var ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_collection');
Leaf.request({
url: $('con_collection_message_create_link_id').getUrl(),
para: {
contract_id: contract_id,
templet_code: templet_code
},
success: function () {
$(ds).query();
}
});
}
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}';
var templet_code = 'CON_LEASE_ORG';
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self');
create_message(contract_id,templet_code);
};
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}';
...
...
@@ -63,6 +81,7 @@
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
// var url=$('con_lease_confirm_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self');
create_message(contract_id,templet_code);
};
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}';
...
...
@@ -70,6 +89,7 @@
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
//var url=$('con_lease_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self');
create_message(contract_id,templet_code);
};
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}';
...
...
@@ -77,6 +97,7 @@
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
//var url=$('lease_return_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self');
create_message(contract_id,templet_code);
};
function view_pdf(attachment_id) {
...
...
@@ -162,6 +183,27 @@
}
}
};
//add by lihh 20210318 发送函件类型为只读
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) {
debugger;
var col_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_collection');
var records = $(col_ds).getAll();
if(ds.id == col_ds
&&
col_ds){
for(var i = 0;i
<records.length
;i++){
if(records[i].get('col_type')
==
'LETTERS'){
records[i].getField('status').setReadOnly(true);
records[i].getField('phone').setReadOnly(true);
records[i].getField('col_time').setReadOnly(true);
records[i].getField('col_type').setReadOnly(true);
records[i].getField('col_type_n').setReadOnly(true);
records[i].getField('col_person').setReadOnly(true);
records[i].getField('col_object').setReadOnly(true);
records[i].getField('col_detail').setReadOnly(true);
}
}
}
};
Leaf.onReady(function()
{
if('${/parameter/@function_code}'
==
'CON620D'){
if("${/model/role_info/record/@role_code}"!="0018"&&"${/model/role_info/record/@role_code}"!="0019")
{
...
...
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