Commit ea8093de authored by 李贺贺's avatar 李贺贺

Merge branch 'feature/租金催收生成催收记录' into develop

parents 6ad3f901 1d58293a
<?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>
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<a:link id="lease_return_print_link" <a:link id="lease_return_print_link"
url="${/request/@context_path}/modules/cont/CON620/create_content_lease_return.lsc"/> 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="${/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[ <script type="text/javascript"><![CDATA[
Ext.ux.Lightbox.register('a[ref=img]', true); Ext.ux.Lightbox.register('a[ref=img]', true);
...@@ -51,11 +52,28 @@ ...@@ -51,11 +52,28 @@
$(ds.id).query(); $(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 () { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}'; var contract_id = '${/parameter/@document_id}';
var templet_code = 'CON_LEASE_ORG'; var templet_code = 'CON_LEASE_ORG';
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code; var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self'); window.open(url, '_self');
create_message(contract_id,templet_code);
}; };
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}'; var contract_id = '${/parameter/@document_id}';
...@@ -63,6 +81,7 @@ ...@@ -63,6 +81,7 @@
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code; 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; // var url=$('con_lease_confirm_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self'); window.open(url, '_self');
create_message(contract_id,templet_code);
}; };
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}'; var contract_id = '${/parameter/@document_id}';
...@@ -70,6 +89,7 @@ ...@@ -70,6 +89,7 @@
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code; 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; //var url=$('con_lease_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self'); window.open(url, '_self');
create_message(contract_id,templet_code);
}; };
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () {
var contract_id = '${/parameter/@document_id}'; var contract_id = '${/parameter/@document_id}';
...@@ -77,6 +97,7 @@ ...@@ -77,6 +97,7 @@
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code; 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; //var url=$('lease_return_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self'); window.open(url, '_self');
create_message(contract_id,templet_code);
}; };
function view_pdf(attachment_id) { function view_pdf(attachment_id) {
...@@ -162,6 +183,27 @@ ...@@ -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() { Leaf.onReady(function() {
if('${/parameter/@function_code}' == 'CON620D'){ if('${/parameter/@function_code}' == 'CON620D'){
if("${/model/role_info/record/@role_code}"!="0018"&&"${/model/role_info/record/@role_code}"!="0019") { if("${/model/role_info/record/@role_code}"!="0018"&&"${/model/role_info/record/@role_code}"!="0019") {
......
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