<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: jack  
    $Date: 2014-11-20 下午4:29:18  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <a:link id="sys_home_page_link" url="${/request/@context_path}/home_page.lview"/>
        <script type="text/javascript"><![CDATA[
          function this_exit(){
               location.href = $('sys_home_page_link').getUrl();
          }
         
          function interface_logs_query(){
              $('interface_logs_ds').query();
          }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="journal_num"/>
                    <a:field name="external_itfc_num"/>
                    <a:field name="start_date"/>
                    <a:field name="end_date"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="interface_logs_ds" autoPageSize="true" autoQuery="true" model="hls.HLS540.yonda_interface_logs" queryDataSet="query_ds">
                <a:fields>
                    <a:field name="interface_deal_message" readOnly="true"/>
                    <a:field name="itfc_exception" readOnly="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <!-- <a:gridButton click="this_exit" text="退出"/> -->
                <a:gridButton click="interface_logs_query" text="HLS.QUERY"/>
            </a:screenTopToolbar>
            <a:form title="查询条件">
                <a:hBox marginWidth="80">
                    <a:textField name="journal_num" bindTarget="query_ds" prompt="凭证号"/>
                    <a:textField name="external_itfc_num" bindTarget="query_ds" prompt="金蝶回传凭证号"/>
                    <a:datePicker name="start_date" bindTarget="query_ds" prompt="起始时间"/>
                    <a:datePicker name="end_date" bindTarget="query_ds" prompt="结束时间"/>
                </a:hBox>
            </a:form>
            <a:grid bindTarget="interface_logs_ds" marginHeight="250" marginWidth="72" navBar="true">
                <a:columns>
                    <a:column name="journal_num" prompt="凭证号" width="120"/>
                    <a:column name="interface_deal_message" editor="textArea_id" prompt="返回代码" width="300"/>
                    <a:column name="itfc_exception" editor="textArea_id" prompt="返回描述" width="400"/>
                    <a:column name="external_itfc_num" prompt="金蝶回传凭证号" width="150"/>
                    <a:column name="interface_date" align="center" prompt="记录时间" width="149"/>
                </a:columns>
                <a:editors>
                    <a:textArea id="textArea_id"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
