fnd_sys_message.lview 3.58 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: niujiaqing1265 $
    $Date: 2010/09/08 08:48:05 $
    $Revision: 1.1 $
    $Purpose: 系统信息
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure/>
    <a:view package="leaf.ui.std" template="default">
        <script type="text/javascript"><![CDATA[
        
            function query(){
                $('FND_SYS_MESSAGE_RESULT_DS').query()
            }
             
            function changeEditor(record){
                if(record.isNew == true){
                    return "tf"
                }else{
                    return ""
                }
            }
        
        ]]></script>
        <a:dataSets>
            <a:dataSet id="FND_SYS_MESSAGE_QUERY_DS"/>
            <a:dataSet id="FND_SYS_MESSAGE_RESULT_DS" autoCount="true" fetchAll="false" pageSize="15" queryDataSet="FND_SYS_MESSAGE_QUERY_DS" queryUrl="common_query.lsc?svc=sys.sys_message_query" selectable="true" selectionModel="multiple"/>
        </a:dataSets>
        <a:hBox padding="0" style="margin-left:10px;margin-top:10px;">
            <a:form className="mytable" title="FND_SYS_MESSAGE.NEWS_CODE_MAINTENANCE" width="600">
                <a:hBox labelWidth="75" padding="0">
                    <a:textField name="message_code" bindTarget="FND_SYS_MESSAGE_QUERY_DS" prompt="SYS_MESSAGES.MESSAGE_CODE" width="200">
                        <a:events>
                            <a:event name="enterdown" handler="query"/>
                        </a:events>
                    </a:textField>
                    <a:textField name="message_name" bindTarget="FND_SYS_MESSAGE_QUERY_DS" prompt="SYS_MESSAGES.MESSAGE_NAME" width="200">
                        <a:events>
                            <a:event name="enterdown" handler="query"/>
                        </a:events>
                    </a:textField>
                </a:hBox>
                <a:box labelWidth="75" padding="0">
                    <a:textField name="message" bindTarget="FND_SYS_MESSAGE_QUERY_DS" prompt="SYS_MESSAGES.MESSAGE" width="477">
                        <a:events>
                            <a:event name="enterdown" handler="query"/>
                        </a:events>
                    </a:textField>
                </a:box>
            </a:form>
            <div id="custommsg" height="100" style="padding:10px;background-color:green;color:#ffffff;margin:7px;border:1px solid #cccccc;display:none" width="300"/>
        </a:hBox>
        <a:hBox padding="0" style="margin-left:10px;">
            <a:button click="query" text="HAP_QUERY"/>
        </a:hBox>
        <a:grid id="fnd_sys_message_grid" bindTarget="FND_SYS_MESSAGE_RESULT_DS" height="350" navBar="true" style="margin-left:10px;margin-top:10px;" width="800">
            <a:toolBar>
                <a:button type="add"/>
                <a:button type="delete"/>
                <a:button type="save"/>
            </a:toolBar>
            <a:columns>
                <a:column name="message_code" editor="tf" editorFunction="changeEditor" prompt="SYS_MESSAGES.MESSAGE_CODE" width="250"/>
                <a:column name="language" prompt="HAP_LANGUAGE" width="65"/>
                <a:column name="message_name" prompt="SYS_MESSAGES.MESSAGE_NAME" width="65"/>
                <a:column name="module_id" prompt="SYS_MESSAGES.MODULE_NAME" width="65"/>
                <a:column name="message" prompt="SYS_MESSAGES.MESSAGE" width="300"/>
            </a:columns>
            <a:editors>
                <a:textField id="tf" typeCase="upper"/>
            </a:editors>
        </a:grid>
    </a:view>
</a:screen>