amortization_handling_fees.lview 5.32 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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
<?xml version="1.0" encoding="UTF-8"?>

<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="basic.hls_lease_channel_for_lov" rootPath="con1290_lease_list"/>
        <a:model-query defaultWhereClause="t1.business_type in (&apos;LEASE&apos;,&apos;LEASEBACK&apos;)" fetchAll="true" model="basic.hls_business_type_for_lov" rootPath="business_type_path"/>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
        function hand_fees_query() {
            $('hand_fees_grid_ds').query();
        }

        function hand_fees_reset(){
            $('hand_fees_form_ds').reset();
        }

        function hand_fees_export() {
            $('source_to_grid')._export();
        }


        ]]></script>
        <a:dataSet id="contract_status_ds" lookupCode="CON500_CONTRACT_STATUS"/>
        <a:dataSet id="con1290_lease_channel_ds">
            <a:datas dataSource="/model/con1290_lease_list"/>
        </a:dataSet>
        <a:dataSet id="business_type_ds">
            <a:datas dataSource="/model/business_type_path"/>
        </a:dataSet>
        <a:dataSets>
            <a:dataSet id="hand_fees_form_ds">
                <a:fields>
                    <a:field name="lease_channel_n" displayField="description" options="con1290_lease_channel_ds"
                             returnField="lease_channel" valueField="lease_channel"/>
                    <a:field name="lease_channel" />
                    <a:field name="business_type_n" displayField="description" options="business_type_ds" returnField="business_type" valueField="business_type"/>
                    <a:field name="business_type" />
                    <a:field name="contract_status_n" displayField="code_value_name" options="contract_status_ds" returnField="contract_status" valueField="code_value"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="hand_fees_grid_ds"
                       model="cont.CON1320.amortization_handling_fees"
                       queryDataSet="hand_fees_form_ds" selectable="true" selectionModel="single">
            </a:dataSet>
        </a:dataSets>

        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="hand_fees_query" text="查询"/>
                <a:gridButton click="hand_fees_reset" text="重置"/>
                <a:gridButton click="hand_fees_export" text="导出"/>
            </a:screenTopToolbar>
            <a:form column="4" marginWidth="100" title="查询条件">
                <a:textField name="contract_number" bindTarget="hand_fees_form_ds" prompt="合同编号"/>
                <a:numberField name="internal_period_num" bindTarget="hand_fees_form_ds" prompt="查询年月" allowDecimals="false" emptyText="输入格式:yyyyMM"/>
                <a:textField name="bp_name" bindTarget="hand_fees_form_ds" prompt="代理商简称"/>
                <a:comboBox name="lease_channel_n" bindTarget="hand_fees_form_ds" prompt="商业模式" />
                <a:comboBox name="business_type_n" bindTarget="hand_fees_form_ds" prompt="业务类型" />
                <a:datePicker name="lease_execution_date_from" bindTarget="hand_fees_form_ds" prompt="执行日期从" />
                <a:datePicker name="lease_execution_date_to" bindTarget="hand_fees_form_ds" prompt="执行日期到" />
            </a:form>
            <a:grid id="source_to_grid" bindTarget="hand_fees_grid_ds" navBar="true" height="400" marginWidth="100">
                <a:columns>
                    <a:column name="contract_number" prompt="合同编号" width="130"/>
                    <a:column name="lease_channel_n" prompt="商业模式" width="100"/>
                    <a:column name="business_type_n"  prompt="业务类型" width="100" />
                    <a:column name="lease_execution_date"  prompt="执行日期" width="100" renderer="Leaf.formatDate"/>
                    <a:column name="lease_end_date"  prompt="到期日" width="100" renderer="Leaf.formatDate"/>
                    <a:column name="bp_name"  prompt="客户名称" width="100" />
                    <a:column name="lease_charge"  prompt="手续费总额" width="100" renderer="Leaf.formatMoney"/>
                    <a:column name="unearned_finance_income"  prompt="本期手续费分摊额(含税)" width="150" renderer="Leaf.formatMoney"/>
                    <a:column name="net_unearned_finance_income"  prompt="本期手续费分摊额(不含税)" width="150" renderer="Leaf.formatMoney"/>
                    <a:column name="vat_unearned_finance_income"  prompt="本期手续费分摊额(税金)" width="150" renderer="Leaf.formatMoney"/>
                    <a:column name="cumulative_unearned_finance"  prompt="累计分担额(含税)" width="150" renderer="Leaf.formatMoney"/>
                    <a:column name="cumulative_net_finance"  prompt="累计分担手续费手续费额(不含税)" width="200" renderer="Leaf.formatMoney"/>
                    <a:column name="not_unearned_finance"  prompt="待摊余额(含税)" width="150" renderer="Leaf.formatMoney"/>
                    <a:column name="not_net_unearned_finance"  prompt="待摊余额(不含税)" width="150" renderer="Leaf.formatMoney"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>