business_contact_query.lview 1.98 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 44 45 46 47 48 49 50 51
<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: zwg
    $Date: 20180822
    $Revision: 1.0
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true">
    <a:init-procedure/>
    <a:view>
        <a:link id="biz100_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
                modelaction="update"/>
        <script type="text/javascript"><![CDATA[
        var businessQueryWin;
        /**
         * 创建业务联络函
         */
        window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
            link_function();
        };

        /**
         * 点击业务联络函编号进入审批
         */
        //超链接渲染
        window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
            if (name == 'business_contact_number') {
                return '<a href="javascript:window[\'' + 'link_function' + '\'](\'' + record.data.business_id + '\');">' + record.data.business_contact_number + '</a>';
            }
        };
        // function biz100_letter_create() {
        // var dsId = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
        // var records = $(dsId).getSelected();
        // }

        function link_function(letter_num) {
            var href = '${/request/@context_path}/modules/contact/business_contact_send.lview';
            if (letter_num) {
                href += '?instance_id=' + letter_num;
            }
            location.href = encodeURI(href);
        }

        window['${/parameter/@layout_code}_G_QUERY_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
            $('BUSINESS_CONCAT_G_QUERY_business_contacts_layout_grid_id')._export(null,'业务联络函查询');
        }

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