<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: zhangyi2652 $ $Date: 2010/11/26 07:25:06 $ $Revision: 1.2 $ $Purpose: “请求列表 --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure/> <a:view> <script type="text/javascript"><![CDATA[ function request_query() { $('fnd_request_info_result_ds').query(); } function request_reset() { $('fnd_request_info_query_ds').reset(); } function closeWindow() { $('fnd_concurrent_request_create_window').close(); } function form_dbclick(grid,record,row,name) { var parameter_count = record.get('parameter_count'); if (parameter_count==0) { var data = []; data = { request_info_id: record.get('request_info_id') }; Leaf.request({ url: 'fnd_request_submit_no_parameter.lsc', para: data, success: submitSuccess, scope: this }); }else { var request_info_id=record.get('request_info_id'); new Leaf.Window({ id: 'fnd_concurrent_request_submit_window', url: 'fnd_request_submit.lview?request_info_id='+request_info_id, title: '请求参数', height:520, width:600 }); } } function submitSuccess(res) { Leaf.showMessage('提示', '请求已成功提交!'); closeWindow(); query(); } ]]></script> <a:dataSets> <a:dataSet id="fnd_request_info_query_ds" model="fnd.FND5030.fnd_request_list"> <a:fields> <a:field name="request_info_id"/> <a:field name="parameter_count"/> </a:fields> </a:dataSet> <a:dataSet id="fnd_request_info_result_ds" autoCount="true" autoQuery="true" fetchAll="false" model="fnd.FND5030.fnd_request_list" queryDataSet="fnd_request_info_query_ds" selectable="true"/> </a:dataSets> <a:screenBody> <a:form column="2" labelWidth="100" title="请求列表" width="580"> <a:textField name="request_code" bindTarget="fnd_request_info_query_ds" prompt="编码" typeCase="upper"> <a:events> <a:event name="enterdown" handler="request_query"/> </a:events> </a:textField> <a:textField name="request_name" bindTarget="fnd_request_info_query_ds" prompt="名称"> <a:events> <a:event name="enterdown" handler="request_query"/> </a:events> </a:textField> <a:textField name="description" bindTarget="fnd_request_info_query_ds" prompt="描述"> <a:events> <a:event name="enterdown" handler="request_query"/> </a:events> </a:textField> </a:form> <a:hBox> <a:button click="request_query" text="HAP_QUERY"/> <a:button click="request_reset" text="HAP_RESET"/> <a:button click="closeWindow" text="返回"/> </a:hBox> <a:grid id="request_grid" bindTarget="fnd_request_info_result_ds" height="300" navBar="true" width="580"> <a:columns> <a:column name="request_code" align="center" prompt="编码" sortable="true" width="150"/> <a:column name="request_name" align="left" prompt="名称" width="200"/> <a:column name="description" align="left" prompt="描述" width="200"/> </a:columns> <a:events> <a:event name="dblclick" handler="form_dbclick"/> </a:events> </a:grid> </a:screenBody> </a:view> </a:screen>