<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: Peter Soong $Date: 2014-06-10 16:24:49 $Revision: 1.0 $Purpose: --> <a:screen xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:view> <a:link id="hls_nc_bp_ag_log_link" url="${/request/@context_path}/modules/nc/NC100/hls_nc_bp_log_query.lview"/> <script type="text/javascript"><![CDATA[ function bpQueryScreen_query() { $('bpQueryDs_ag').query(); } function bpQueryScreen_reset() { $('para_bpQueryDs_ag_ag').reset(); } function log_renderer(value, record, name) { var result_id = record.get('result_id'); return '<a href="javascript:openLogPage(\'' + result_id + '\')";>查看</a>'; } function openLogPage(result_id) { new Leaf.Window({ id: 'hls_nc_bp_log_window', url: $('hls_nc_bp_ag_log_link').getUrl() + '?result_id=' + result_id, title: '日志信息', height: 450, width: 700 }); } ]]></script> <a:dataSets> <a:dataSet id="bpClassDs_ag" lookupCode="HLS211_BP_CLASS"/> <a:dataSet id="para_bpQueryDs_ag_ag"> <a:fields> <a:field name="bp_class_desc" displayField="code_value_name" options="bpClassDs_ag" returnField="bp_class" valueField="code_value"/> <a:field name="bp_class"/> <a:field name="bp_type_desc" readOnly="true"/> <a:field name="bp_type" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_type_v_for_lov?enabled_flag=Y" lovWidth="500" prompt="HLS_BP_TYPE.BP_TYPE" title="HLS_BP_TYPE.BP_TYPE"> <a:mapping> <a:map from="description" to="bp_type_desc"/> <a:map from="bp_type" to="bp_type"/> </a:mapping> </a:field> <a:field name="bp_code_from" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_all_lov" lovWidth="500" title="HLS.BP_TITLE"> <a:mapping> <a:map from="bp_code" to="bp_code_from"/> </a:mapping> </a:field> <a:field name="bp_code_to" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_all_lov" lovWidth="500" title="HLS.BP_TITLE"> <a:mapping> <a:map from="bp_code" to="bp_code_to"/> </a:mapping> </a:field> <a:field name="bp_name"/> </a:fields> </a:dataSet> <a:dataSet id="bpQueryDs_ag" autoQuery="true" model="nc.NC100.hls_nc_bp_query" queryDataSet="para_bpQueryDs_ag_ag" selectable="true"> <a:fields> <a:field name="bp_id"/> </a:fields> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:gridButton click="bpQueryScreen_query" text="HLS.QUERY"/> <a:toolbarButton click="bpQueryScreen_reset" text="HLS.RESET"/> </a:screenTopToolbar> <a:form column="4" labelWidth="120" marginWidth="50" title="HLS.QUERY_TITLE"> <a:lov name="bp_code_from" bindTarget="para_bpQueryDs_ag_ag" prompt="HLS.BP_CODE_FROM"/> <a:lov name="bp_code_to" bindTarget="para_bpQueryDs_ag_ag" prompt="HLS.BP_CODE_TO"/> <a:textField name="bp_name" bindTarget="para_bpQueryDs_ag_ag" prompt="HLS.BP_NAME"/> <a:textField name="extra_nam" bindTarget="para_bpQueryDs_ag_ag" prompt="HLS.SHORT_NAME"/> <a:lov name="bp_type" bindTarget="para_bpQueryDs_ag_ag" prompt="HLS.BP_TYPE"/> <a:textField name="bp_type_desc" bindTarget="para_bpQueryDs_ag_ag" prompt="HLS212.BP_TYPE_DESC"/> <a:comboBox name="bp_class_desc" bindTarget="para_bpQueryDs_ag_ag" prompt="HLS_BP_MASTER.BP_CLASS"/> </a:form> <a:grid id="bpQueryDs_ag_grid" bindTarget="bpQueryDs_ag" marginHeight="300" marginWidth="50" navBar="true"> <a:columns> <a:column name="bp_code" prompt="商业伙伴编码" width="120"/> <a:column name="bp_name" prompt="商业伙伴名称" width="200"/> <a:column name="bp_class_desc" prompt="商业伙伴分类" width="120"/> <a:column name="bp_type_desc" prompt="商业伙伴类型" width="120"/> <a:column name="bp_category_desc" prompt="商业伙伴类别" width="120"/> <a:column name="time" prompt="传输时间" width="130"/> <a:column name="result_state_n" prompt="状态" width="60"/> <a:column name="resultdescription" prompt="日志" renderer="log_renderer" width="60"/> </a:columns> </a:grid> </a:screenBody> </a:view> </a:screen>