<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: lpc 9874
    $Date: 2017/11/20 14:35:56 $
    $Revision: 1.0 $
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure><![CDATA[     
    ]]></a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
             function masterDs_grid_query() {
                $('con_contract_result_ds').query();
            }
            
            function masterDs_grid_reset() {
                $('allConditionDs').reset();
            }
            
             function masterDs_grid_save() {
                $('con_contract_result_ds').submit();
            }
            
            function con_contract_submitsuccess(ds) {
                $('con_contract_result_ds').query();
            }
            
        ]]></script>
        <a:dataSets>
            <a:dataSet id="allConditionDs" autoCreate="true">
                <a:fields>
                    <a:field name="contract_number"/>
                    <a:field name="project_number"/>
                    <a:field name="bp_name"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con_contract_result_ds" autoQuery="true" fetchAll="false" model="cont.CON800.con_contract_modify" pageSize="15" queryDataSet="allConditionDs" selectable="true" submitUrl="${/request/@context_path}/modules/cont/CON800/con_contract_update.lsc">
                <a:fields>
                    <a:field name="bp_id_tenant"/>
                    <a:field name="contract_id"/>
                    <a:field name="bp_name"/>
                    <a:field name="contract_number"/>
                    <a:field name="project_number"/>
                    <a:field name="kingdee_contract_number"/>
                    <a:field name="kingdee_bp_code"/>
                </a:fields>
                <a:events>
                    <a:event name="submitsuccess" handler="con_contract_submitsuccess"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="masterDs_grid_query" text="HLS.QUERY"/>
                <a:gridButton click="masterDs_grid_reset" text="重置条件"/>
                <a:gridButton click="masterDs_grid_save" text="HLS.SAVE"/>
            </a:screenTopToolbar>
            <a:form column="4" marginWidth="30" title="查询条件">
                <a:textField name="contract_number" bindTarget="allConditionDs" prompt="支付表编号"/>
                <a:textField name="project_number" bindTarget="allConditionDs" prompt="申请编号"/>
                <a:textField name="bp_name" bindTarget="allConditionDs" prompt="商业伙伴名称"/>
            </a:form>
            <a:grid bindTarget="con_contract_result_ds" marginHeight="200" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="contract_number" prompt="支付表编号" width="200"/>
                    <a:column name="kingdee_contract_number" editor="textDs_tf" prompt="金蝶支付表编号" width="200"/>
                    <a:column name="project_number" prompt="申请编号" width="150"/>
                    <a:column name="bp_name" prompt="商业伙伴名称" width="200"/>
                    <a:column name="kingdee_bp_code" editor="textDs_tf" prompt="金蝶客户编码" width="150"/>
                </a:columns>
                <a:editors>
                    <a:textField id="textDs_tf"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
