Commit d22b0e67 authored by lijingjing's avatar lijingjing

[fix] 合同起租商业伙伴超链接修改

parent 778835fb
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
url: $('con_contract_create_content_link_id').getUrl(), url: $('con_contract_create_content_link_id').getUrl(),
para: { para: {
contract_id: '${/parameter/@contract_id}', contract_id: '${/parameter/@contract_id}',
content_type: '${/parameter/@content_type}', content_type: '${/parameter/@content_type}'
templet_usage: 'CON_SALE' /* templet_usage: 'CON_SALE'*/
}, },
success: function(res) { success: function(res) {
var result_ds = $('con_contract_update_print_detail_line_ds'); var result_ds = $('con_contract_update_print_detail_line_ds');
...@@ -102,12 +102,12 @@ ...@@ -102,12 +102,12 @@
function update_attachment_renderer(value, record, name) { function update_attachment_renderer(value, record, name) {
var content_id = record.get('content_id'); var content_id = record.get('content_id');
return '<a href="javascript:downloadfile_link(' + content_id + ')">下载</a>'; return '<a href="javascript:downloadfile_link(' + content_id +')">下载</a>';
} }
function downloadfile_link(content_id) { function downloadfile_link(content_id) {
var url = $('con543_con_batch_dl_link_id').getUrl() + '?content_id=' + content_id + '&contract_id=' + '${/parameter/@contract_id}' + '&content_type=' + '${/parameter/@content_type}'; var url = $('con543_con_batch_dl_link_id').getUrl() + '?content_id=' + content_id + '&contract_id=' + '${/parameter/@contract_id}' + '&content_type=' + '${/parameter/@content_type}';
window.open(url, '_self'); window.open(url, '_self');
} }
function con_download_zip() { function con_download_zip() {
...@@ -219,8 +219,8 @@ ...@@ -219,8 +219,8 @@
<a:column name="bp_category_desc" prompt="HLS.BP_CATEGORY"/> <a:column name="bp_category_desc" prompt="HLS.BP_CATEGORY"/>
<a:column name="content_print_flag_name" prompt="CON505.CON_CONTENT_STATUS" width="80"/> <a:column name="content_print_flag_name" prompt="CON505.CON_CONTENT_STATUS" width="80"/>
<a:column name="attachment" align="center" prompt="HLS.ATTACHMENT" renderer="update_attachment_renderer" width="50"/> <a:column name="attachment" align="center" prompt="HLS.ATTACHMENT" renderer="update_attachment_renderer" width="50"/>
<a:column align="center" prompt="附件上传" renderer="attachment_upload" width="80"/> <!-- <a:column align="center" prompt="附件上传" renderer="attachment_upload" width="80"/>
<a:column name="file_name" align="left" prompt="附件名" renderer="con500_link_render" width="220"/> <a:column name="file_name" align="left" prompt="附件名" renderer="con500_link_render" width="220"/>-->
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
...@@ -216,10 +216,16 @@ ...@@ -216,10 +216,16 @@
param['document_category'] = 'BP'; param['document_category'] = 'BP';
param['bp_class'] = record.get('bp_class'); param['bp_class'] = record.get('bp_class');
param['bp_category'] = record.get('bp_category'); param['bp_category'] = record.get('bp_category');
if( record.get('bp_category')=='AGENT'){
param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY';
}else{
param['function_code'] = 'CON505H';
param['function_usage'] = 'QUERY';
}
param['bp_type'] = record.get('bp_type'); param['bp_type'] = record.get('bp_type');
param['function_code'] = 'CON505H';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:HLS212.BP_MASTER_QUERY}'; param['url_title'] = '${l:HLS212.BP_MASTER_QUERY}';
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'con505_hls_bp_master_query_link', record.ds.id, '${/parameter/@layout_code}'); hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'con505_hls_bp_master_query_link', record.ds.id, '${/parameter/@layout_code}');
}; };
......
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