con_collection_query_entrance.lview 1.91 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
<?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.CON621.con_get_unit_info" rootPath="sys_user"/>
        <a:model-query defaultWhereClause="t1.bp_id=${/parameter/@bp_id_tenant}" fetchAll="true" model="cont.CON621.con_get_bp_info" rootPath="bp_id_tenant"/>
    </a:init-procedure> -->
    <a:view>
        <a:link id="con623_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:link id="con_collection_query_link_id" url="${/request/@context_path}/modules/cont/CON624/con_collection_query.lview"/>
        <script type="text/javascript"><![CDATA[
            function con623_open_contract_win(record_id, ds_id) {
            
                var record = $(ds_id).findById(record_id);
                var param = record.data;
 
                param['function_code'] = 'CON624';
                param['function_usage'] = 'MODIFY';
                param['url_title'] = '租金催收进度';
                hls_doc_get_layout_code('con623_get_layout_code_link_id', param, 'con_collection_query_link_id', ds_id);
            }
            
 
            
            
            
            window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
                if (name == 'collector_user_id_n' && value) {
                    return '<a href="javascript:con623_open_contract_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' +value + '</a>';
                }
            
                return value;
            };

 
            
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>