hn_chance_bp_query.lview 6.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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: lingfeng.chen
    $Date: 2017-7-14 上午10:06:32
    $Revision: 1.0
    $Purpose: 潜在客户管理
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="basic.hls_sys_time_default_value" rootPath="default_value_path"/>
        <a:model-query model="basic.sys_session_info" rootPath="mainPage_session_record"/>
        <a:model-query defaultWhereClause="t1.role_id=${/session/@role_id} and t1.company_id=${/session/@company_id}" fetchAll="true" model="hls.HLS109.hls_default_parameter" rootPath="hls_default_parameter_path"/>
    </a:init-procedure>
    <a:view>
        <a:link id="hls2102_hn_chance_bp_interviews_link" url="${/request/@context_path}/modules/hls/HLS2102/hn_chance_bp_interviews.lview"/>
        <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CHANCE_BP&amp;function_code=HLS2102"/>
        <script type="text/javascript"><![CDATA[
           
            
            function hls2102_query() {
                $("hls2102_hn_chance_bp_result_ds").query();
            }
            
            function hls2102_reset() {
                $('hls2102_hn_chance_bp_query_ds').reset();
            }
            
          
            
            function hls2102_open_win(id) {
                var record = $('hls2102_hn_chance_bp_result_ds').findById(id);
                var url = $('hls2102_hn_chance_bp_interviews_link').getUrl();
                var win = new Leaf.Window({
                    id: 'hls2102_hn_chance_bp_interviews_winid',
                    url: url,
                    params: {
                        chance_bp_id: record.get('chance_bp_id'),
                        chance_bp_name :record.get('chance_bp_name'),
                        winid: 'hls2102_hn_chance_bp_interviews_winid'
                    },
                    title: '访谈信息',
                    fullScreen: true
                });
                
            }
            
            function hls2102_detail_renderer(value, record, name) {
                if (!record.isNew) {
                    return "<a href='javascript:hls2102_open_win(" + record.id + ")'>访谈信息</a>";
                }
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="hls211_bp_class_ds" lookupCode="HLS211_BP_CLASS"/>
            <a:dataSet id="lch501_chance_source_ds" lookupCode="LCH501_CHANCE_SOURCE"/>
            <a:dataSet id="hls2104_is_bp_ds" autoCreate="true">
                <a:datas>
                    <a:record name="潜在客户" value="潜在客户"/>
                    <a:record name="商业伙伴" value="商业伙伴"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="hls2102_hn_chance_bp_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="chance_bp_name"/>
                    <a:field name="bp_class_desc" displayField="code_value_name" options="hls211_bp_class_ds" returnField="bp_class" valueField="code_value"/>
                    <a:field name="bp_class"/>
                    <a:field name="is_bp_desc" displayField="name" options="hls2104_is_bp_ds" returnField="is_bp" valueField="value"/>
                    <a:field name="is_bp"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="hls2102_hn_chance_bp_result_ds" autoPageSize="true" autoQuery="true" model="hls.HLS2102.hn_chance_bp" queryDataSet="hls2102_hn_chance_bp_query_ds">
                <a:fields>
                    <a:field name="bp_class_desc" displayField="code_value_name" options="hls211_bp_class_ds" required="true" returnField="bp_class" valueField="code_value"/>
                    <!--   <a:field name="chance_source_desc" displayField="code_value_name" options="lch501_chance_source_ds" required="true" returnField="chance_source" valueField="code_value"/>
               -->
                    <a:field name="unit_id" defaultValue="${/model/hls_default_parameter_path/record/@unit_id}"/>
                    <a:field name="unit_id_n" defaultValue="${/model/hls_default_parameter_path/record/@unit_name}"/>
                    <a:field name="owner_user_id_n" defaultValue="${/model/mainPage_session_record/record/@user_desc}"/>
                    <a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
                    <a:field name="chance_bp_name" required="true"/>
                    <a:field name="cell_phone" required="true"/>
                    <a:field name="creation_date_desc" defaultValue="${/model/default_value_path/record/@now_time}"/>
                </a:fields>
                <a:events>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="hls2102_query" text="HLS.QUERY"/>
                <a:gridButton click="hls2102_reset" text="HLS.RESET"/>
            </a:screenTopToolbar>
            <a:form column="3" title="查询条件">
                <a:textField name="chance_bp_name" bindTarget="hls2102_hn_chance_bp_query_ds" prompt="客户名称"/>
                <a:comboBox name="bp_class_desc" bindTarget="hls2102_hn_chance_bp_query_ds" prompt="客户类型"/>
                <a:comboBox name="is_bp_desc" bindTarget="hls2102_hn_chance_bp_query_ds" prompt="客户状态"/>
            </a:form>
            <a:grid id="hls2102_hn_chance_bp_result_grid" bindTarget="hls2102_hn_chance_bp_result_ds" marginHeight="200" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="chance_bp_name" prompt="客户名称" width="200"/>
                    <a:column name="bp_class_desc" prompt="客户类型"/>
                    <!--       <a:column name="chance_source_desc" prompt="客户来源"/>
       -->
                    <a:column name="orgcrdno" prompt="社会统一信用证代码" width="200"/>
                    <a:column name="id_card_no" prompt="身份证号码" width="150"/>
                    <a:column name="contact_person" prompt="联系人"/>
                    <a:column name="cell_phone" prompt="联系方式"/>
                    <a:column name="unit_id_n" prompt="业务部"/>
                    <a:column name="owner_user_id_n" prompt="创建人"/>
                    <a:column name="creation_date_desc" prompt="创建时间" renderer="Leaf.formatDate"/>
                    <a:column name="hls2102_detail_renderer" align="center" prompt="访谈记录" renderer="hls2102_detail_renderer"/>
                    <a:column name="is_bp" prompt="客户状态"/>
                    <!-- <a:column name="enabled_flag" prompt="启用"/> -->
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>