acr_invoice_bill_query.lview 4.12 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR  
    $Date: 2013-7-18 上午09:34:43  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
    <a:init-procedure><![CDATA[
    ]]></a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
            function billQueryDs_query() {
                $('billQueryDs').query();
            }
            
            function para_billQueryDs_reset() {
                $('para_billQueryDs').reset();
            }
            
            function billQueryDs_export()
        	{
        	    $('billQueryDs_grid')._export(null,'待开票清单');
        	}
    
        ]]></script>
        <a:dataSets>
            <a:dataSet id="invoiceKindDs" lookupCode="ACR510_INVOICE_KIND"/>
            <a:dataSet id="para_billQueryDs" autoCreate="true" model="acr.ACR311.acr_invoice_bill_v">
                <a:fields>
                    <a:field name="invoice_kind_desc" displayField="code_value_name" options="invoiceKindDs" returnField="invoice_kind" valueField="code_value"/>
                    <a:field name="cf_type_desc" lovGridHeight="340" lovHeight="500" lovService="hls.HLS005.hls_cashflow_type_v_lov" lovWidth="500" title="现金流类型">
                        <a:mapping>
                            <a:map from="description" to="cf_type_desc"/>
                            <a:map from="cf_type" to="cf_type"/>
                        </a:mapping>
                    </a:field>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="billQueryDs" autoPageSize="true" model="acr.ACR311.acr_invoice_bill_v" queryDataSet="para_billQueryDs" selectable="true"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="billQueryDs_query" text="HLS.QUERY"/>
                <a:gridButton click="para_billQueryDs_reset" text="HLS.RESET"/>
                <a:gridButton click="billQueryDs_export" text="HLS.EXPORT"/>
            </a:screenTopToolbar>
            <a:form column="4" marginWidth="30">
                <a:textField name="contract_number" bindTarget="para_billQueryDs" prompt="合同编号"/>
                <a:datePicker name="due_date_from" bindTarget="para_billQueryDs" prompt="应收日期从"/>
                <a:datePicker name="due_date_to" bindTarget="para_billQueryDs" prompt="应收日期到"/>
                <a:textField name="project_number" bindTarget="para_billQueryDs" prompt="项目编号"/>
                <a:textField name="bp_name" bindTarget="para_billQueryDs" prompt="承租人"/>
                <a:lov name="cf_type_desc" bindTarget="para_billQueryDs" prompt="现金流类型"/>
                <a:comboBox name="invoice_kind_desc" bindTarget="para_billQueryDs" prompt="发票类型"/>
            </a:form>
            <a:grid id="billQueryDs_grid" bindTarget="billQueryDs" marginHeight="200" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="contract_number" prompt="合同编号" width="120"/>
                    <a:column name="contract_name" lock="true" prompt="合同名称" width="150"/>
                    <a:column name="bp_name" width="150"/>
                    <a:column name="times" width="50"/>
                    <a:column name="cf_item_desc"/>
                    <a:column name="due_date" renderer="Leaf.formatDate" width="80"/>
                    <a:column name="full_write_off_date" renderer="Leaf.formatDate" width="80"/>
                    <a:column name="invoice_kind_desc"/>
                    <a:column name="due_amount" align="right" renderer="Leaf.formatMoney" width="110"/>
                    <a:column name="billing_amount" align="right" renderer="Leaf.formatMoney" width="110"/>
                    <a:column name="not_billing_amount" align="right" renderer="Leaf.formatMoney" width="110"/>
                    <a:column name="taxpayer_type_desc"/>
                    <a:column name="project_number" width="120"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>