<?xml version="1.0" encoding="UTF-8"?> <!-- create by nyl 2014-12-3 for contract context create --> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:init-procedure> <a:model-query fetchAll="true" model="cont.CON620.get_sysdate" rootPath="sysdate"/> </a:init-procedure> <a:view> <a:link id="legal_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <script type="text/javascript"><![CDATA[ //新增和加载时调用(form) window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) { var query_ds_id = '${/parameter/@layout_code}_F_QUERY__ds'; if (ds.id == query_ds_id) { record.set('send_date_from', '${/model/sysdate/record/@first_day}'); record.set('send_date_to', '${/model/sysdate/record/@sys_date}'); } }; window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) { if (name == 'contract_number') { return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>'; } return value; }; ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view> </a:screen>