<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: DJ $Date: 2013-2-26 下午2:37:49 $Revision: 1.0 $Purpose: taskParaScreen --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure/> <a:view> <script type="text/javascript"><![CDATA[ function taskParaScreen_add() { $('taskParaDs_grid').showEditorByRecord($('taskParaDs').create()); } function taskParaScreen_remove() { $('taskParaDs_grid').remove(); } function taskParaScreen_save() { var ds = $('taskParaDs'); if (ds.validate()) { ds.submit(); } } function taskParaScreen_close() { $('sch_task_parameter_maintain').close(); } function editorFunction_taskParaDs_grid(record,name) { if(record.isNew){ if(name=='parameter_name') { return 'taskParaDs_grid_tf_lower'; } } return ''; } ]]></script> <a:dataSets> <a:dataSet id="paraEditTypeDs" lookupCode="SCH_TASK_PARAMETER_EDIT_TYPE"/> <a:dataSet id="paraTypeDs" lookupCode="SCH_TASK_PARAMETER_TYPE"/> <a:dataSet id="paraDisplayType" lookupCode="SCH_TASK_PARAMETER_DISPLAY_TYPE"/> <a:dataSet id="taskParaDs" autoQuery="true" fetchAll="true" model="sch.SCH102.sch_task_parameter" queryUrl="${/request/@context_path}/autocrud/sch.SCH102.sch_task_parameter/query?task_code=${/parameter/@task_code}" selectable="true" submitUrl="${/request/@context_path}/modules/sch/SCH102/sch_task_parameter_maintain.lsc"> <a:fields> <a:field name="lov_sql"/> <a:field name="task_code" defaultValue="${/parameter/@task_code}"/> <a:field name="seq" required="true"/> <a:field name="parameter_name" required="true"/> <a:field name="parameter_type_desc" displayField="code_value_name" options="paraTypeDs" required="true" returnField="parameter_type" valueField="code_value"/> <a:field name="description" required="true"/> <a:field name="default_value"/> <a:field name="display_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/> <a:field name="display_type"/> <a:field name="display_type_desc" displayField="code_value_name" options="paraDisplayType" required="true" returnField="display_type" valueField="code_value"/> <a:field name="edit_type_desc" displayField="code_value_name" options="paraEditTypeDs" required="true" returnField="edit_type" valueField="code_value"/> </a:fields> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:gridButton click="taskParaScreen_close" text="HLS.CLOSE"/> <a:gridButton click="taskParaScreen_add" text="HLS.NEW"/> <a:gridButton click="taskParaScreen_remove" text="HLS.REMOVE"/> <a:gridButton click="taskParaScreen_save" text="HLS.SAVE"/> </a:screenTopToolbar> <a:grid id="taskParaDs_grid" bindTarget="taskParaDs" height="450" width="1070"> <a:columns> <a:column name="seq" align="right" editor="taskParaDs_grid_nf" width="40"/> <a:column name="parameter_name" editorFunction="editorFunction_taskParaDs_grid" width="200"/> <a:column name="parameter_type_desc" editor="taskParaDs_grid_comb" prompt="SCH102.SCH_TASK_PARAMETER.PARAMETER_TYPE" width="60"/> <a:column name="description" editor="taskParaDs_grid_tf" width="150"/> <a:column name="default_value" autoAdjust="false" editor="taskParaDs_grid_tf" width="100"/> <a:column name="display_flag" editor="taskParaDs_grid_check" width="50"/> <a:column name="display_type_desc" editor="taskParaDs_grid_comb" prompt="SCH102.SCH_TASK_PARAMETER.DISPLAY_TYPE" width="60"/> <a:column name="edit_type_desc" autoAdjust="false" editor="taskParaDs_grid_comb" prompt="SCH102.SCH_TASK_PARAMETER.EDIT_TYPE" width="60"/> <a:column name="lov_sql" autoAdjust="false" editor="taskParaDs_grid_ta" width="300"/> </a:columns> <a:editors> <a:textArea id="taskParaDs_grid_ta" height="200"/> <a:lov id="taskParaDs_grid_lov"/> <a:textField id="taskParaDs_grid_tf"/> <a:textField id="taskParaDs_grid_tf_lower" typeCase="LOWER"/> <a:comboBox id="taskParaDs_grid_comb"/> <a:checkBox id="taskParaDs_grid_check"/> <a:numberField id="taskParaDs_grid_nf" allowDecimals="false" allowNegative="false"/> </a:editors> </a:grid> </a:screenBody> </a:view> </a:screen>