psr_padding_pattern.lview 2.29 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hand  
    $Date: 2013-7-26 下午04:08:59  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure>
        <!-- <a:model-query autoCount="false" defaultwhereclause="report_type=&apos;CONDITION_REPORT&apos;" fetchAll="true" model="psr.PSR1010.psr_report_headers" rootPath="report_list"/> --><![CDATA[
        
        
        
        
        
    ]]></a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
	function patternRenderer(value, record, name){
	    return '<img src="${/request/@context_path}/images/report_cell_style/'+value+'"/>';
	}

	function queryPatternName(){
                $('psr_report_pattern_result_ds').query();
            }
            function resetPatternName(){
            	$('psr_report_pattern_query_ds').reset();
            }
            
            function dblClick(grid,record,row){
               $('${/parameter/@lovid}').commit(record);
            }
	
]]></script>
        <a:dataSets>
            <a:dataSet id="psr_report_pattern_query_ds"/>
            <a:dataSet id="psr_report_pattern_result_ds" autoQuery="true" model="psr.PSR1010.psr_padding_pattern" pageSize="10" queryDataSet="psr_report_pattern_query_ds"><![CDATA[
            
            ]]></a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form column="2" title="颜色对照表" width="300">
                <a:textField name="pattern_name" bindTarget="psr_report_pattern_query_ds"/>
            </a:form>
            <a:hBox>
                <a:button click="queryPatternName" text="HAP_QUERY"/>
                <a:button click="resetPatternName" text="HAP_RESET"/>
            </a:hBox>
            <a:grid bindTarget="psr_report_pattern_result_ds" height="300" width="300">
                <a:columns>
                    <a:column name="pattern_name" align="left" prompt="边框线条" width="150"/>
                    <a:column name="pattern_code" align="left" prompt="图案" renderer="patternRenderer" width="40"/>
                </a:columns>
                <a:events>
                    <a:event name="dblclick" handler="dblClick"/>
                </a:events>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>