cus_reports.lview 7.93 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: nyl  
    $Date: 2015-3-13 上午10:30:25  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="cont.CON620.get_sysdate" rootPath="sysdate"/>
    </a:init-procedure>
    <a:view>
        <a:link id="con_contract_update_link_id" url="${/request/@context_path}/modules/cont/CON501N/con_contract_modify.lview"/>
        <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <script type="text/javascript"><![CDATA[

            
            function cus318_con_contract_return() {
                history.go(-1);
            }
            
            function cus318_con_contract_query() {
                $('cus318_contract_result_ds').query();
            }
            
            function cus318_con_contract_reset(){
                $('cus318_contract_query_ds').reset();
            }
            
            function cus318_con_contract_export(){
                $('con501_con_contract_grid_ds')._export();
            }
 
            function init(){

                var record = $('cus318_contract_query_ds').getAt(0);
                record.set('end_date','${/model/sysdate/record/@sys_date_c}');
            }
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
        <!--         <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=cus318"/> -->
        <a:dataSets>
            <a:dataSet id="con301_division_name_ds" loadData="true" model="basic.hls_division_for_lov"/>
            <a:dataSet id="cus318_contract_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="bp_id_tenant_c" autoComplete="true" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov?bp_category=TENANT" lovWidth="500" title="HLS.BP_TITLE">
                        <a:mapping>
                            <a:map from="bp_code" to="bp_id_tenant_c"/>
                            <a:map from="bp_name" to="bp_id_tenant_n"/>
                            <a:map from="bp_id" to="bp_id_tenant"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="contract_number" autoComplete="true" autoCompleteField="contract_number" lovGridHeight="300" lovHeight="450" lovService="cont.CON500.con_contract_number_lov" lovWidth="500" title="HLS.CONTRACT_NUMBER">
                        <a:mapping>
                            <a:map from="contract_number" to="contract_number"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_id_tenant"/>
                    <a:field name="bp_id_tenant_n"/>
                    <a:field name="division_desc" displayField="description" options="con301_division_name_ds" returnField="division" valueField="division"/>
                    <a:field name="search_term_1"/>
                    <a:field name="division"/>
                    <a:field name="serial_number"/>
                    <a:field name="end_date" required="true"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="cus318_contract_result_ds" autoPageSize="true" model="cus.CUS318.cus_con_contact_ar_detail_lv" queryDataSet="cus318_contract_query_ds" selectable="true">
                <!--    <a:events> 
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events> --><![CDATA[
                
                
                
             
            ]]></a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="cus318_con_contract_return" text="HLS.RETURN"/>
                <a:gridButton click="cus318_con_contract_query" text="HLS.QUERY"/>
                <a:gridButton click="cus318_con_contract_reset" text="HLS.RESET"/>
                <a:gridButton click="cus318_con_contract_export" text="导出"/>
            </a:screenTopToolbar>
            <a:form column="3" labelSeparator=" " labelWidth="100" marginWidth="30" title="CON301.CONTRACT_QUERY">
                <a:lov name="bp_id_tenant_c" bindTarget="cus318_contract_query_ds" prompt="客户编码"><![CDATA[
                 ]]></a:lov>
                <a:textField name="bp_id_tenant_n" bindTarget="cus318_contract_query_ds" prompt="客户名称"/>
                <a:comboBox name="division_desc" bindTarget="cus318_contract_query_ds" prompt="产品线"/>
                <a:textField name="serial_number" bindTarget="cus318_contract_query_ds" prompt="设备编号"/>
                <a:datePicker name="end_date" bindTarget="cus318_contract_query_ds" prompt="收款日期"/>
            </a:form>
            <a:grid id="con501_con_contract_grid_ds" bindTarget="cus318_contract_result_ds" marginHeight="200" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="contract_number" align="left" prompt="合同序号" width="100"/>
                    <a:column name="search_term_1" align="left" prompt="合同号" width="100"/>
                    <a:column name="bp_id_tenant_n" align="left" prompt="承租人" width="100"/>
                    <a:column name="serial_number" align="left" prompt="设备编号" width="100"/>
                    <a:column name="pay_type_n" align="left" prompt="付款方式" width="100"/>
                    <a:column name="dd_bank_account_num" align="left" prompt="扣款卡号" width="100"/>
                    <a:column name="inception_of_lease" align="right" prompt="起租日" renderer="Leaf.formatDate" width="100"/>
                    <a:column name="lease_end_date" align="right" prompt="到期日" renderer="Leaf.formatDate" width="100"/>
                    <a:column name="due_amount_all" align="right" prompt="月还款金额(计划)" showTitle="true" width="100"/>
                    <a:column name="due_amount_current" align="right" prompt="本月应收租金" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="due_amount_old" align="right" prompt="陈欠租金" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="due_amount_now" align="right" prompt="当前应收租金" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="penalty_1" align="right" prompt="第一期罚息" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="penalty_sum" align="right" prompt="总罚息" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="lease_mgt_fee" align="right" prompt="管理费" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="lease_charge" align="right" prompt="手续费" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="deposit" align="right" prompt="保证金" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="insurance_fee" align="right" prompt="保险费" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="notarial_fee" align="right" prompt="公证费" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="legal_fee" align="right" prompt="法律费用" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="contract_status_n" align="left" prompt="合同状态" width="100"/>
                    <a:column name="ar_description" align="right" prompt="备注" width="100"/>
                    <!-- <a:column name="transition_date" align="right"  renderer="Leaf.formatDate"  prompt="收款日期" width="100"/> -->
                </a:columns>
            </a:grid>
        </a:screenBody>
        <script type="text/javascript"><![CDATA[
        init();
    ]]></script>
    </a:view>
</a:screen>