acr_invoice_loaction_reg.lview 4.23 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
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
    <a:view>
        <a:link id="acr524_excel_import" url="${/request/@context_path}/modules/acr/ACR524/acr_excel_import.lview"/>
        <script type="text/javascript"><![CDATA[
    	    
    	    function acr524_add(){
    	        $('acr_invoice_location_ds').create();
    	    }
    	    
    	    function acr524_import(){
    	        new Leaf.Window({
                    id: 'acr_upload_window',
                    param :{winid :'acr524_upload_window'},
                    url: $('acr524_excel_import').getUrl(),
                    title: '${l:HLS.IMPORT}',
                    width: 420,
                    height: 275
                });
    	    }
    	    
    	    function acr524_query(){
    	        $('acr_invoice_location_ds').query();
    	    }
    	    
    	    function acr524_save(){
    	        $('acr_invoice_location_ds').submit();
    	    }
    	    
    	    function acr524_delete(){
    	        var records = $('acr_invoice_location_ds').getSelected();
    	        if (!records.length) {
                    Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录');
                    return;
                } 
                for(i=0;i<records.length;i++){
    	        	$('acr_invoice_location_ds').remove(records[i]);
                } 
    	    }
    	    
    	    function acr524_export(){
    	        $('acr524_grid_id')._export();
    	    }
    	    
    	]]></script>
        <a:dataSets>
            <a:dataSet id="acr_invoice_query_ds">
                <a:fields>
                    <a:field name="chest_number"/>
                    <a:field name="chest_floors"/>
                    <a:field name="contract_number_from"/>
                    <a:field name="contract_number_to"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="acr_invoice_location_ds" autoPageSize="true" autoQuery="true" model="acr.ACR524.acr_invoice_location" queryDataSet="acr_invoice_query_ds" selectable="true"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="acr524_add" text="新增"/>
                <a:gridButton click="acr524_delete" text="删除"/>
                <a:gridButton click="acr524_export" text="导出"/>
                <a:gridButton click="acr524_import" text="导入"/>
                <a:gridButton click="acr524_query" text="HAP_QUERY"/>
                <a:gridButton click="acr524_save" text="HLS.SAVE"/>
            </a:screenTopToolbar>
            <a:form column="4" title="ACR524.INVOICE_LOCATION_QUERY">
                <a:textField name="chest_number" bindTarget="acr_invoice_query_ds" prompt="柜子编号"/>
                <a:textField name="chest_floors" bindTarget="acr_invoice_query_ds" prompt="层数"/>
                <a:textField name="contract_number_from" bindTarget="acr_invoice_query_ds" prompt="合同号从"/>
                <a:textField name="contract_number_to" bindTarget="acr_invoice_query_ds" prompt="合同号到"/>
            </a:form>
            <a:grid id="acr524_grid_id" bindTarget="acr_invoice_location_ds" marginHeight="170" navBar="true" width="932">
                <a:columns>
                    <a:column name="storage" editor="acr524_grid_tf" prompt="仓库" width="120"/>
                    <a:column name="chest_number" editor="acr524_grid_tf" prompt="柜子编号" width="120"/>
                    <a:column name="chest_floors" editor="acr524_grid_nf" prompt="层数" width="80"/>
                    <a:column name="contract_number_from" editor="acr524_grid_tf" prompt="合同号从" width="150"/>
                    <a:column name="contract_number_to" editor="acr524_grid_tf" prompt="合同号到" width="150"/>
                    <a:column name="note" editor="acr524_grid_ta" prompt="备注" width="250"/>
                </a:columns>
                <a:editors>
                    <a:textField id="acr524_grid_tf"/>
                    <a:textArea id="acr524_grid_ta"/>
                    <a:numberField id="acr524_grid_nf" allowDecimals="false"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>