<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <script type="text/javascript"><![CDATA[
        function resetFunction() {
                $('con_contract_income_detail_query_ds').reset();
            }
        
		function queryFunction(){
				$('con_contract_income_detail_result_ds').query();
				 }	
				 	 
		  ]]></script>
        <a:dataSets>
            <a:dataSet id="con_contract_income_detail_query_ds">
                <a:fields>
                    <a:field name="contract_number"/>
                    <a:field name="search_term_1"/>
                    <a:field name="internal_period_num"/>
                    <a:field name="calc_start_date"/>
                    <a:field name="calc_end_date"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con_contract_income_detail_result_ds" autoPageSize="true" autoQuery="true" model="cont.CON399.con_contract_income_detail_query" queryDataSet="con_contract_income_detail_query_ds"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="queryFunction" text="HAP_QUERY"/>
                <a:gridButton click="resetFunction" text="HLS.RESET"/>
            </a:screenTopToolbar>
            <a:form column="4" height="80" title="查询条件" width="1000">
                <a:textField name="contract_number" bindTarget="con_contract_income_detail_query_ds" prompt="合同序号"/>
                <a:textField name="internal_period_num" bindTarget="con_contract_income_detail_query_ds" prompt="期间"/>
                <a:datePicker name="calc_start_date" bindTarget="con_contract_income_detail_query_ds" prompt="起始日"/>
                <a:datePicker name="calc_end_date" bindTarget="con_contract_income_detail_query_ds" prompt="结束日"/>
            </a:form>
            <a:grid bindTarget="con_contract_income_detail_result_ds" marginHeight="180" marginWidth="30" navBar="true">
                <a:toolBar>
                    <a:button type="excel"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="contract_number" prompt="合同编号" sortable="true" width="180"/>
                    <a:column name="business_type_n" align="right" prompt="业务状态"/>
                    <a:column name="contract_status_n" align="right" prompt="合同状态"/>
                    <a:column name="internal_period_num" align="right" prompt="期间" sortable="true"/>
                    <a:column name="calc_start_date" align="right" prompt="起始日" renderer="Leaf.formatDate" sortable="true" width="120"/>
                    <a:column name="calc_end_date" align="right" prompt="结束日" renderer="Leaf.formatDate" width="120"/>
                    <a:column name="times" align="right" prompt="租赁期"/>
                    <a:column name="unearned_finance_income" align="right" prompt="收入"/>
                    <a:column name="finance_income_recognized" align="center" prompt="确认标志"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
