<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: ZLF $Date: 2014-12-9 下午1:51:49 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:view> <a:link id="con504_attach_downloadfile_link" url="${/request/@context_path}/downloadFile.lview"/> <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/> <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/> <script type="text/javascript"><![CDATA[ Ext.ux.Lightbox.register('a[ref=img]', true); window['${/parameter/@layout_code}_detail_query_window']=function detail_upload_window(record_id,name) { var url = $('con504_attach_downloadfile_link').getUrl() + '?table_name=CON_CONTRACT_ITEM_DETAIL&header_id='+record_id; new Leaf.Window({ url: url, title: '${l:HLS.SUPPORTING_DOCUMENT}', id: 'con504_attach_downloadfile_win', width: 850, height: 400 }); }; window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record,bp_seq) { var link_function = '${/parameter/@layout_code}_detail_query_window'; window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; if (name=='attachment_query') { return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.get('item_detail_id') + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>'; } }; ]]></script> </a:view> </a:screen>