gld_usage_codes.lview 3.48 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: ouyangzhaochang2663 $
    $Date: 2010/11/29 02:14:17 $
    $Revision: 1.1 $
    $Purpose: 用途代码定义
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view template="default">
        <a:link id="gld_mapping_conds_grps_hd_link" url="${/request/@context_path}/modules/gld/FND2910/gld_mapping_conds_grps_hd.lview"/>
        <a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/>
        <div/>
        <script type="text/javascript"><![CDATA[
            function queryUsageCodes() {
                $('usage_codes_result_ds').query();
            }
            
            function onRenderer(value, record, name) {
                return '<a href="javascript:configurationInfo(\'' + record.get('usage_code') + '\')">${l:GLD_USAGE_CODES.CONFIGURATION}</a>';
            }
            
            function configurationInfo(usageCode) {
                new Leaf.Window({
                    id: 'gld_mapping_conds_grps_hd_window',
                    url: /*gld_mapping_conds_grps_hd.screen*/
                    $('gld_mapping_conds_grps_hd_link').getUrl() + '?usage_code_hd=' + usageCode,
                    title: '${l:USE_CODE_DEFINES_CONFIG}',
                    height: 550,
                    width: 950
                });
            }
            
            function reset() {
                $('usage_codes_query_ds').reset();
            }
            
            function sys_8040_quit() {
                location.href = $('sys_service_welcome_link').getUrl();
                parent.shMenu('show');
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="usage_codes_query_ds" model="gld.FND2910.gld_usage_codes"/>
            <a:dataSet id="usage_codes_result_ds" autoQuery="true" model="gld.FND2910.gld_usage_codes" pageSize="15" queryDataSet="usage_codes_query_ds" queryUrl="${/request/@context_path}/autocrud/gld.FND2910.gld_usage_codes/query?ORDER_FIELD=usage_code" selectable="false"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="sys_8040_quit" text="HLS.BACK"/>
                <a:gridButton click="queryUsageCodes" text="HLS.QUERY"/>
            </a:screenTopToolbar>
            <a:form column="2" title="GLD_USAGE_CODES.QUERY">
                <a:textField name="usage_code" bindTarget="usage_codes_query_ds">
                    <a:events>
                        <a:event name="enterdown" handler="queryUsageCodes"/>
                    </a:events>
                </a:textField>
                <a:textField name="usage_codes_description" bindTarget="usage_codes_query_ds">
                    <a:events>
                        <a:event name="enterdown" handler="queryUsageCodes"/>
                    </a:events>
                </a:textField>
            </a:form>
            <a:grid bindTarget="usage_codes_result_ds" marginHeight="170" marginWidth="30" navBar="true">
                <a:toolBar>
                    <a:box/>
                </a:toolBar>
                <a:columns>
                    <a:column name="usage_code" align="left" width="250"/>
                    <a:column name="usage_codes_description" width="250"/>
                    <a:column name="usage_id" align="center" prompt="GLD_USAGE_CODES.CONFIGURATION" renderer="onRenderer" width="80"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>