<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: DJ $Date: 2013-2-26 下午2:37:49 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure/> <a:view> <a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/> <script type="text/javascript"><![CDATA[ function jeTemplateScreen_forward() { history.go(1); } function jeTemplateScreen_back() { history.go(-1); } function jeTemplateScreen_quit() { location.href = $('sys_service_welcome_link').getUrl(); } function jeTemplateDs_query() { $('jeTemplateDs').query(); } function jeTemplateDs_grid_add() { $('jeTemplateDs_grid').showEditorByRecord($('jeTemplateDs').create()); } function jeTemplateDs_grid_remove() { $('jeTemplateDs_grid').remove(); } function jeTemplateDs_grid_save() { var result_ds = $('jeTemplateDs'); if (result_ds.validate()) { result_ds.submit(); } } function editorFunction_jeTemplateDs_grid(record,name) { if(record.isNew){ return 'jeTemplateDs_grid_tf_upper'; }else{ return ''; } } ]]></script> <a:dataSets> <a:dataSet id="jeTemplateDs" autoPageSize="true" autoQuery="true" model="gld.GLD105.gld_je_template_set" selectable="true"> <a:fields> <a:field name="je_template_set_code" required="true"/> <a:field name="je_template_set_desc" required="true"/> <a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/> </a:fields> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="jeTemplateScreen_forward" text="HLS.FORWARD"/> <a:gridButton click="jeTemplateScreen_back" text="HLS.BACK"/> <a:gridButton click="jeTemplateScreen_quit" text="HLS.EXIT"/> <a:gridButton click="jeTemplateDs_query" text="HLS.QUERY"/> <a:gridButton click="jeTemplateDs_grid_add" text="HLS.NEW"/> <a:gridButton click="jeTemplateDs_grid_remove" text="HLS.REMOVE"/> <a:gridButton click="jeTemplateDs_grid_save" text="HLS.SAVE"/> </a:screenTopToolbar> <a:grid id="jeTemplateDs_grid" bindTarget="jeTemplateDs" marginHeight="100" marginWidth="30" navBar="true"> <a:columns> <a:column name="je_template_set_code" editorFunction="editorFunction_jeTemplateDs_grid" width="150"/> <a:column name="je_template_set_desc" editor="jeTemplateDs_grid_tf" width="250"/> <a:column name="enabled_flag" editor="jeTemplateDs_grid_check"/> </a:columns> <a:editors> <a:textField id="jeTemplateDs_grid_tf_upper" maxLength="30" typeCase="upper"/> <a:textField id="jeTemplateDs_grid_tf"/> <a:checkBox id="jeTemplateDs_grid_check"/> </a:editors> </a:grid> </a:screenBody> </a:view> </a:screen>