sys_notify_message_detail.lview 2.45 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: WangQiaosen  
    $Date: 2011-10-24 上午10:29:10  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
        
        	function sysNotifyMessageDetail(){
        		$('sys_notify_message_detail_window').close();
        	}
        
    	]]></script>
        <a:dataSets>
            <a:dataSet id="sys_notify_message_detail_ds" autoQuery="true" model="sys.SYS4010.sys_notify_message_detail" queryUrl="${/request/@context_path}/autocrud/sys.SYS4010.sys_notify_message_detail/query?record_id=${/parameter/@record_id}"/>
        </a:dataSets>
        <a:screenBody>
            <a:fieldSet column="1" marginWidth="65" title="消息明细" width="1000">
                <a:textField name="msg_title" bindTarget="sys_notify_message_detail_ds" prompt="标题" readOnly="true" width="800"/>
                <a:textField name="recipient_name" bindTarget="sys_notify_message_detail_ds" prompt="收件人" readOnly="true" width="800"/>
                <a:textArea name="msg_content" bindTarget="sys_notify_message_detail_ds" height="400" prompt="内容" readOnly="true" width="800"/>
            </a:fieldSet>
            <div id="fnd_atm_div_id" style="width:800px">
                <a:upload buttonWidth="0" fileType="*.*" pkvalue="${/parameter/@message_id}" sourcetype="SYS_NOTIFY_MESSAGE"/>
            </div>
            <a:hBox>
                <a:button click="sysNotifyMessageDetail" text="PROMPT.RETURN"/>
            </a:hBox>
        </a:screenBody>
        <script type="text/javascript"><![CDATA[
            Leaf.onReady(function() {
                var div_id = Ext.get('fnd_atm_div_id');
                var v_str = div_id.dom.innerHTML;
                var reg = new RegExp('[删除]', 'g');
                var p_str = v_str.replace(reg, '');
                p_str = p_str.replace(/\[/g, '');
                p_str = p_str.replace(/\]/g, '');
                div_id.dom.innerHTML = p_str;
            
                var atm = document.getElementById('fnd_atm_div_id');
                if (div_id.dom.innerText == " " || div_id.dom.innerText == null || div_id.dom.innerText == 'undefined') {
                    atm.style.display = 'none';
                } else {
                    atm.style.display = 'block';
                }
            
            });]]></script>
    </a:view>
</a:screen>