<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Hongquan.Dai  代宏全
    $Date: 2018-1-23 下午5:28:49  
    $Revision: 1.0  
    $Purpose: 短信sql编辑
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
	
           function sys_phone_msg_save2() {
                $('sys400_sys_phone_msg_send_edit_ds').submit();
            }
            
            function sys_phone_msg_exit() {
                $('${/parameter/@winid}').close(); //关闭页面
            }

]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
        <a:dataSets>
            <a:dataSet id="sys400_sys_phone_msg_send_edit_ds" autoQuery="true" model="sys.SYS400.sys_phone_msg_send" queryUrl="${/request/@context_path}/autocrud/sys.SYS400.sys_phone_msg_send/query?phone_msg_id=${/parameter/@phone_msg_id}">
                <a:fields>
                    <!--  <a:field name="msg_code_desc" displayField="code_value_name" options="phone_msg_type_ds" returnField="msg_code" valueField="code_value" defaultValue="预警通知" readOnly="true"  />
                     -->
                    <a:field name="msg_code" defaultValue="消息模板名称" readOnly="true"/>
                    <a:field name="notice_way_desc" defaultValue="短信" displayField="code_value_name" options="notice_way_ds" readOnly="true" returnField="notice_way" valueField="code_value"/>
                    <a:field name="notice_way" defaultValue="PHONE_MSG"/>
                    <a:field name="status" defaultValue="NO"/>
                    <a:field name="send_sql" required="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:form Width="580" column="1" height="380" labelWidth="280" title="短信信息">
            <a:hBox labelWidth="280">
                <a:comboBox name="msg_code" bindTarget="sys400_sys_phone_msg_send_edit_ds" prompt="消息模板名称" width="150"/>
                <a:comboBox name="notice_way_desc" bindTarget="sys400_sys_phone_msg_send_edit_ds" prompt="通知方式" width="150"/>
            </a:hBox>
            <a:hBox>
                <a:textArea name="send_sql" bindTarget="sys400_sys_phone_msg_send_edit_ds" height="200" prompt="短信内容(SQL)" width="500"/>
            </a:hBox>
        </a:form>
        <a:screenTopToolbar>
            <a:gridButton click="sys_phone_msg_save2" text="HLS.SAVE"/>
            <a:gridButton click="sys_phone_msg_exit" text="HLS.EXIT"/>
        </a:screenTopToolbar>
        <div style="color:red;font-size:15px;text-align:left;width:100%;"><![CDATA[ 提示:手机号字段别名必须为phone,短信文本字段别名必须为msg,末尾不允许';'。]]></div>
    </a:view>
</a:screen>