<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: zhangyi2652 $ $Date: 2010/11/10 08:41:11 $ $Revision: 1.2 $ $Purpose: ”员工职务定义“ 模块页面 --> <a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true"> <a:init-procedure/> <a:view> <a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/> <script type="text/javascript"><![CDATA[ function queryJob(){ $('jobs_result_ds').query(); } function resetJob(){ $('jobs_query_ds').reset(); } function codeEditFunction(record,name){ if (record.get('employee_job_id')){ return ''; }else{ return 'jobs_grid_upper_tf'; } } function exp_1040_grid_add(){ $('exp_1040_grid').showEditorByRecord($('jobs_result_ds').create()); } function exp_1040_grid_clear(){ $('exp_1040_grid').clear(); } function exp_1040_grid_submit() { var result_ds = $('jobs_result_ds'); if (result_ds.validate()) { result_ds.submit(); } } function exp_1040_next(){ history.go(1); } function exp_1040_back(){ history.go(-1); } function exp_1040_quit(){ location.href = $('sys_service_welcome_link').getUrl(); } ]]></script> <a:dataSets> <a:dataSet id="level_series_ds" loadData="true" model="exp.exp_level_series_select"/> <a:dataSet id="jobs_query_ds" model="exp.EXP1040.exp_employee_jobs"/> <a:dataSet id="jobs_result_ds" autoQuery="true" model="exp.EXP1040.exp_employee_jobs" pageSize="15" queryDataSet="jobs_query_ds" queryUrl="${/request/@context_path}/autocrud/exp.EXP1040.exp_employee_jobs/query?ORDER_FIELD=employee_job_code" selectable="true"> <a:fields> <a:field name="level_series_code_display" displayField="level_series_code_display" options="level_series_ds" required="true" returnField="level_series_id" valueField="level_series_id"/> <a:field name="employee_job_code" required="true"/> <a:field name="employee_job_description" required="true"/> <a:field name="level_series_id" required="true"/> <a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" required="true" unCheckedValue="N"/> </a:fields> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="exp_1040_back" text="HLS.BACK"/> <a:gridButton click="exp_1040_next" text="HLS.FORWARD"/> <a:gridButton click="exp_1040_quit" text="HLS.EXIT"/> <a:gridButton click="exp_1040_grid_add" text="HLS.NEW"/> <a:gridButton click="exp_1040_grid_clear" text="HLS.CLEAR"/> <a:gridButton click="exp_1040_grid_submit" text="HLS.SAVE"/> <a:gridButton click="queryJob" text="HLS.QUERY"/> </a:screenTopToolbar> <a:form column="2" labelWidth="85" title="HAP_QUERY_TITLE"> <a:textField name="employee_job_code" bindTarget="jobs_query_ds" typeCase="upper"> <a:events> <a:event name="enterdown" handler="queryJob"/> </a:events> </a:textField> <a:textField name="employee_job_description" bindTarget="jobs_query_ds"> <a:events> <a:event name="enterdown" handler="queryJob"/> </a:events> </a:textField> </a:form> <a:grid id="exp_1040_grid" bindTarget="jobs_result_ds" marginHeight="180" marginWidth="30" navBar="true"> <!-- --> <a:columns> <a:column name="employee_job_code" align="left" editorFunction="codeEditFunction" sortable="true" width="150"/> <a:column name="employee_job_description" align="left" editor="jobs_grid_tf" width="230"/> <a:column name="level_series_code_display" align="left" editor="jobs_grid_cbx" width="230"/> <a:column name="enabled_flag" editor="jobs_grid_cb" width="50"/> </a:columns> <a:editors> <a:textField id="jobs_grid_tf"/> <a:textField id="jobs_grid_upper_tf" typeCase="upper"/> <a:comboBox id="jobs_grid_cbx"/> <a:checkBox id="jobs_grid_cb"/> </a:editors> </a:grid> </a:screenBody> </a:view> </a:screen>