sys_sms_server.lview 2.09 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
	&author:DJ
	$date:2013/11/12
	$purpose:短信账户定义
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query defaultWhereClause="t1.server_id = 1" model="sys.SYS403.sys_sms_server" rootPath="sms_server_record"/>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
	        
	        function smsServerDs_save()
	        {
	            var ds = $('smsServerDs');
	            if (!ds.validate())
	            {
	                return;
	            }
	            ds.submit();
	        }
        	
		]]></script>
        <a:dataSets>
            <a:dataSet id="smsServerDs" model="sys.SYS403.sys_sms_server">
                <a:datas dataSource="/model/sms_server_record"/>
                <a:fields>
                    <a:field name="account_id" required="true"/>
                    <a:field name="serviceid" required="true"/>
                    <a:field name="password" required="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="smsServerDs_save" text="HLS.SAVE"/>
            </a:screenTopToolbar>
            <a:form title=" ">
                <a:textField name="account_id" bindTarget="smsServerDs" prompt="账户"/>
                <!--<a:textField name="serviceid" bindTarget="smsServerDs" prompt="serviceid"/>-->
                <!--<a:passWord name="password" bindTarget="smsServerDs" prompt="密码"/>-->
                <a:textField name="password" bindTarget="smsServerDs" prompt="密码"/>
                <!--<a:textField name="server_code" bindTarget="smsServerDs" prompt="server_code"/>-->
                <a:textField name="server_url" bindTarget="smsServerDs" prompt="地址"/>
                <a:textField name="subcode" bindTarget="smsServerDs" prompt="子号码"/>
                <a:textField name="sign" bindTarget="smsServerDs" prompt="签名"/>
            </a:form>
        </a:screenBody>
    </a:view>
</a:screen>