sys_service.lview 4.58 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: niujiaqing1265 $
    $Date: 2010/11/18 08:23:24 $
    $Revision: 1.2 $
    $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 queryService(){
                $('sys_service_result_ds').query();
            }
        	function sys_8040_grid_add(){
                $('sys_8040_sys_service_grid').showEditorByRecord($('sys_service_result_ds').create());
            }
            function sys_8040_grid_clear(){
                $('sys_8040_sys_service_grid').clear();
            }
            function sys_8040_grid_remove(){
                $('sys_8040_sys_service_grid').remove();
            }
            function sys_8040_grid_submit() {
                var result_ds = $('sys_service_result_ds');
                if (result_ds.validate()) {
                    result_ds.submit();
                }
            }
            function sys_8040_next(){
                 history.go(1);
            }
            function sys_8040_back(){
                history.go(-1);
            }
            function sys_8040_quit(){
                location.href = $('sys_service_welcome_link').getUrl();
            }

        ]]></script>
        <a:dataSets>
            <a:dataSet id="sys_service_query_ds" autoCreate="true" model="sys.sys_service"/>
            <a:dataSet id="sys_service_result_ds" autoQuery="true" fetchAll="false" model="sys.sys_service" pageSize="15" queryDataSet="sys_service_query_ds" queryUrl="${/request/@context_path}/autocrud/sys.sys_service/query?ORDER_FIELD=service_name" selectable="true">
                <a:fields>
                    <a:field name="service_name" required="true"/>
                    <a:field name="is_access_checked" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
                    <a:field name="is_login_required" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
                    <a:field name="is_entry_page" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
                    <a:field name="is_system_access" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="sys_8040_back" text="HLS.BACK"/>
                <a:gridButton click="sys_8040_next" text="HLS.FORWARD"/>
                <a:gridButton click="sys_8040_quit" text="HLS.EXIT"/>
                <a:gridButton click="sys_8040_grid_add" text="HLS.NEW"/>
                <a:gridButton click="sys_8040_grid_remove" text="HLS.REMOVE"/>
                <a:gridButton click="sys_8040_grid_clear" text="HLS.CLEAR"/>
                <a:gridButton click="sys_8040_grid_submit" text="HLS.SAVE"/>
                <a:gridButton click="queryService" text="HLS.QUERY"/>
            </a:screenTopToolbar>
            <a:form column="2" title="HAP_QUERY">
                <a:textField name="service_name" bindTarget="sys_service_query_ds" width="300">
                    <a:events>
                        <a:event name="enterdown" handler="queryService"/>
                    </a:events>
                </a:textField>
                <a:textField name="title" bindTarget="sys_service_query_ds" width="300">
                    <a:events>
                        <a:event name="enterdown" handler="queryService"/>
                    </a:events>
                </a:textField>
            </a:form>
            <a:grid id="sys_8040_sys_service_grid" bindTarget="sys_service_result_ds" marginHeight="180" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="service_name" editor="sys_service_result_grid_tf" width="350"/>
                    <a:column name="title" editor="sys_service_result_grid_tf" width="280"/>
                    <a:column name="is_access_checked" editor="sys_service_result_grid_ckb" width="70"/>
                    <a:column name="is_login_required" editor="sys_service_result_grid_ckb" width="70"/>
                    <a:column name="is_system_access" editor="sys_service_result_grid_ckb" width="70"/>
                </a:columns>
                <a:editors>
                    <a:textField id="sys_service_result_grid_tf"/>
                    <a:checkBox id="sys_service_result_grid_ckb"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>