tre_funds_reservation_contract.lview 7.82 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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
<?xml version="1.0" encoding="UTF-8"?>
<!--
	&author:zhangyu
	$date:2015/09/03
	$purpose:资金预约  for guozi
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <a:link id="tre_funds_reservation_detail_link_id" url="${/request/@context_path}/modules/tre/tre510/tre_funds_reservation_contract_detail.lview"/>
        <script type="text/javascript"><![CDATA[
        	function tre_query(){
        	    $('tre_reservation_contract_list_ds').query();
        	}
        	
        	function winOpen_reservation_render(project_id){
	          new Leaf.Window({
                    id: 'tre_funds_reservation_detail_winid',
                    params: {
                        project_id: project_id,
                        winid:'tre_funds_reservation_detail_winid'
                    },
                    url: $('tre_funds_reservation_detail_link_id').getUrl(),
                    title: '资金预约明细',
                    fullScreen:true
                }).on('close',tre_query);
	      }
        	
        	function reservation_render(value,record,name){
	          return '<a href="javascript:winOpen_reservation_render(\'' + record.get('project_id') + '\');">预约</a>';
	      }
	      
	      function tre_reset(){
	          $('tre_reservation_contract_query_ds').reset();
	      }
	      
	      function tre510_detail(){
	          var record=$('tre_reservation_contract_list_ds').getSelected();
	          var project_id = record[0].get('project_id');
	          winOpen_reservation_render(project_id);
	      }
		]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=PROJECT&amp;function_code=PRJ501"/>
        <a:dataSets>
            <a:dataSet id="contract_status_ds" lookupCode="CON500_CONTRACT_STATUS"/>
            <a:dataSet id="reserve_status_ds" lookupCode="RESERVE_STATUS"/>
            <a:dataSet id="coding_rule_doc_category_ds" loadData="true" model="tre.tre510.tre_document_category"/>
            <a:dataSet id="tre_reservation_contract_query_ds">
                <a:fields>
                    <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="contract_name"/>
                    <a:field name="bp_code" 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_code"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_name"/>
                    <a:field name="document_category_desc" displayField="description" options="coding_rule_doc_category_ds" returnField="document_category" valueField="document_category"/>
                    <a:field name="contract_status_desc" displayField="code_value_name" options="contract_status_ds" returnField="contract_status" valueField="code_value"/>
                    <a:field name="reserve_status_desc" displayField="code_value_name" options="reserve_status_ds" returnField="reserve_status" valueField="code_value"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="tre_reservation_contract_list_ds" autoPageSize="true" autoQuery="true" model="tre.tre510.tre_funds_reservation_contract" queryDataSet="tre_reservation_contract_query_ds" selectable="true" selectionModel="single">
                <a:fields>
                    <a:field name="inception_of_lease" datatype="date"/>
                    <a:field name="lease_start_date" datatype="date"/>
                </a:fields>
                <a:events>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="tre_query" text="查询"/>
                <a:gridButton click="tre_reset" text="重置"/>
                <a:gridButton click="tre510_detail" text="预约明细"/>
            </a:screenTopToolbar>
            <a:form column="4" labelSeparator=" " labelWidth="100" marginWidth="30" title="查询条件">
                <a:textField name="document_number" bindTarget="tre_reservation_contract_query_ds" prompt="合同编号"/>
                <a:textField name="document_name" bindTarget="tre_reservation_contract_query_ds" prompt="合同名称"/>
                <a:datePicker name="inception_of_lease_from" bindTarget="tre_reservation_contract_query_ds" prompt="预计起租日从"/>
                <a:datePicker name="inception_of_lease_to" bindTarget="tre_reservation_contract_query_ds" prompt="预计起租日到"/>
                <a:numberField name="reserve_amount_from" bindTarget="tre_reservation_contract_query_ds" prompt="已预约金额从"/>
                <a:numberField name="reserve_amount_to" bindTarget="tre_reservation_contract_query_ds" prompt="已预约金额到"/>
                <a:numberField name="finance_amount_from" bindTarget="tre_reservation_contract_query_ds" prompt="租赁物价款从"/>
                <a:numberField name="finance_amount_to" bindTarget="tre_reservation_contract_query_ds" prompt="租赁物价款到"/>
                <a:textField name="bp_name" bindTarget="tre_reservation_contract_query_ds" prompt="承租人名称"/>
                <a:comboBox name="document_category_desc" bindTarget="tre_reservation_contract_query_ds" prompt="单据类别"/>
            </a:form>
            <a:grid id="tre510_reservation_grid_id" bindTarget="tre_reservation_contract_list_ds" marginHeight="230" marginWidth="30" navBar="true">
                <a:columns>
                    <!-- <a:column name="contract_number" align="center" lock="true" prompt="放款编号" width="120"/> -->
                    <!-- <a:column name="contract_name" align="left" lock="true" prompt="合同名称" width="220"/> -->
                    <a:column name="document_number" lock="true" prompt="单据编号" width="150"/>
                    <a:column name="document_name" lock="true" prompt="单据名称" width="280"/>
                    <a:column name="document_category_desc" align="center" lock="true" prompt="单据类别" width="80"/>
                    <a:column name="bp_name" align="left" lock="true" prompt="承租人名称" width="220"/>
                    <a:column name="project_id" align="center" prompt="预约" renderer="reservation_render" width="80"/>
                    <a:column name="inception_of_lease" align="center" prompt="预计起租日" renderer="Leaf.formatDate" width="100"/>
                    <!-- <a:column name="lease_start_date" align="center" prompt="实际起租日" renderer="Leaf.formatDate" width="80"/> -->
                    <!-- <a:column name="contract_status_desc" align="center" prompt="合同状态" width="80"/> -->
                    <!-- <a:column name="reserve_status_desc" align="center" prompt="预约状态" width="80"/> -->
                    <a:column name="finance_amount" align="right" prompt="租赁物价款" renderer="Leaf.formatMoney" width="120"/>
                    <a:column name="reserve_amount" align="right" prompt="已预约金额" renderer="Leaf.formatMoney" width="120"/>
                    <!-- <a:column name="write_off_amount" align="right" prompt="已投放金额" renderer="Leaf.formatMoney" width="100"/> -->
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>