sys_content_text.lview 6.72 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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-12-1 上午10:51:21  
    $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 do_text_query(){
        	    $('sys_content_text_result_ds').query();
        	}
        	function do_text_reset(){
        	    $('sys_content_text_query_ds').reset();
        	}
        	function open_text_content_window(text_id){
        	    
        	}
        	function do_text_render(value,record,name){
        	    if(name === 'content_xml'){
        	        return record.get('generate_flag')=== 'Y'?'<a href="javascript:open_text_content_window('+record.get('text_id')+')">查看</a>':'';
        	    }
        	}
		]]></script>
        <a:dataSets>
            <a:dataSet id="space_ds">
                <a:datas>
                    <a:record code_value="preserve" code_value_name="保留"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="yes_text_no_ds" lookupCode="YES_NO"/>
            <a:dataSet id="sys_content_text_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="paragraph_id" defaultValue="${/parameter/@paragraph_id}"/>
                    <a:field name="enabled_flag_n" displayField="code_value_name" options="yes_text_no_ds" returnField="enabled_flag" valueField="code_value"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="sys_content_text_result_ds" autoQuery="true" fetchAll="true" model="sys.SYS2000.sys_content_text" queryDataSet="sys_content_text_query_ds" selectable="true">
                <a:fields>
                    <a:field name="text_id"/>
                    <a:field name="paragraph_id" defaultValue="${/parameter/@paragraph_id}"/>
                    <a:field name="order_seq" required="true"/>
                    <a:field name="bold_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                    <a:field name="underline_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                    <a:field name="italic_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                    <a:field name="space_n" displayField="code_value_name" options="space_ds" returnField="space" valueField="code_value"/>
                    <a:field name="fontfamily" defaultValue="宋体"/>
                    <a:field name="fontcolor" defaultValue="000000"/>
                    <a:field name="fontsize" defaultValue="24"/>
                    <a:field name="content" required="true"/>
                    <a:field name="generate_flag" checkedValue="Y" uncheckedValue="N"/>
                    <a:field name="content_xml"/>
                    <a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form column="4" labelWidth="110" marginWidth="35" title="HLS.QUERY_TITLE">
                <a:numberField name="order_seq_from" bindTarget="sys_content_text_query_ds" prompt="排序从">
                    <a:events>
                        <a:event name="enterdown" handler="do_text_query"/>
                    </a:events>
                </a:numberField>
                <a:numberField name="order_seq_to" bindTarget="sys_content_text_query_ds" prompt="排序至">
                    <a:events>
                        <a:event name="enterdown" handler="do_text_query"/>
                    </a:events>
                </a:numberField>
                <a:textField name="content" bindTarget="sys_content_text_query_ds" prompt="内容">
                    <a:events>
                        <a:event name="enterdown" handler="do_text_query"/>
                    </a:events>
                </a:textField>
                <a:comboBox name="enabled_flag_n" bindTarget="sys_content_text_query_ds" prompt="是否启用">
                    <a:events>
                        <a:event name="enterdown" handler="do_text_query"/>
                    </a:events>
                </a:comboBox>
            </a:form>
            <a:grid id="sys_content_text_grid_id" bindTarget="sys_content_text_result_ds" marginHeight="140" marginWidth="35" navBar="true">
                <a:toolBar>
                    <a:button click="do_text_query" icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>
                    <!-- <a:button click="do_text_reset" icon="${/request/@context_path}/images/undo.png" text="HLS.RESET"/> -->
                    <a:button type="add"/>
                    <a:button type="delete"/>
                    <a:button type="save"/>
                    <a:button type="excel"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="order_seq" align="center" editor="sys_content_text_grid_edit_nf1" prompt="序号" width="60"/>
                    <a:column name="bold_flag" align="center" editor="sys_content_text_grid_edit_cb" prompt="是否粗体" width="60"/>
                    <a:column name="underline_flag" align="center" editor="sys_content_text_grid_edit_cb" prompt="是否有下划线" width="80"/>
                    <a:column name="italic_flag" align="center" editor="sys_content_text_grid_edit_cb" prompt="是否斜体" width="60"/>
                    <a:column name="space_n" align="center" editor="sys_content_text_grid_edit_cbb" prompt="保留格式" width="60"/>
                    <a:column name="fontfamily" editor="sys_content_text_grid_edit_tf" prompt="字体格式" width="100"/>
                    <a:column name="fontcolor" editor="sys_content_text_grid_edit_tf" prompt="字体颜色" width="100"/>
                    <a:column name="fontsize" editor="sys_content_text_grid_edit_nf1" prompt="字体大小" width="100"/>
                    <a:column name="content" editor="sys_content_text_grid_edit_ta" prompt="内容" width="500"/>
                    <a:column name="generate_flag" prompt="是否生成" width="60"/>
                    <a:column name="enabled_flag" align="center" editor="sys_content_text_grid_edit_cb" prompt="是否启用" width="60"/>
                </a:columns>
                <a:editors>
                    <a:textField id="sys_content_text_grid_edit_tf"/>
                    <a:textArea id="sys_content_text_grid_edit_ta" height="200"/>
                    <a:checkBox id="sys_content_text_grid_edit_cb"/>
                    <a:comboBox id="sys_content_text_grid_edit_cbb"/>
                    <a:numberField id="sys_content_text_grid_edit_nf1" allowDecimals="false" allowNegative="false"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>