<?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='CONDITION_REPORT'" 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>