ast_car_gps.lview 3.96 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
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <a:link id="ast510_gps_attach_downloadfile_link" url="${/request/@context_path}/downloadFile.lview"/>
        <script type="text/javascript"><![CDATA[
        	function gps_attachment_renderer(val,rec,name){
        	   return '<a href=javascript:open_gps_attachment_window('+rec.get('ast_car_gps_id')+')>附件查看</a>';
        	}
        	
		    function open_gps_attachment_window(record_id){
        	    var url = $('ast510_gps_attach_downloadfile_link').getUrl() + '?table_name=AST_CAR_GPS&header_id=' + record_id;
                var win = new Leaf.Window({
                    url: url,
                    title: '${l:HLS.SUPPORTING_DOCUMENT}',
                    id: 'ast510_license_downloadfile_window',
                    width: 850,
                    height: 400
                });
                win.on('close', function() {
                });
        	}        	
		]]></script>
        <!-- <a:dataSets>
            <a:dataSet id="ast_car_gps_result_ds" model="ast.AST510.ast_car_gps" selectable="true" submitUrl="${/request/@context_path}/modules/ast/AST510/ast_car_gps.lsc">
                <a:fields>
                    <a:field name="enabled_flag" checkedValue="Y" uncheckedValue="N"/>
                    <a:field name="gps_provider_desc" lovHeight="400" lovService="ast.AST510.hls_bp_master_lov" lovWidth="600">
                        <a:mapping>
                            <a:map from="bp_id" to="gps_provider"/>
                            <a:map from="bp_name" to="gps_provider_desc"/>
                        </a:mapping>
                    </a:field>
                </a:fields>
            </a:dataSet>
        </a:dataSets> -->
        <a:grid id="ast_car_gps_grid_id" bindTarget="ast_car_gps_result_ds" height="400" marginWidth="80" navBar="true">
            <a:columns>
                <a:column name="install_date" prompt="GPS安装时间" renderer="Leaf.formatDate" width="80"/>
                <a:column name="gps_provider_desc" prompt="GPS供应商" width="100"/>
                <a:column name="install_address" prompt="安装地址" width="120"/>
                <a:column name="imei" prompt="设备号" width="120"/>
                <a:column name="install_location" prompt="安装位置" width="120"/>
                <a:column name="gps_fee" align="right" prompt="GPS支出" renderer="Leaf.formatMoney" width="80"/>
                <!-- <a:column name="procurement_price" align="right" editor="ast_car_gps_nf" prompt="采购价格" renderer="Leaf.formatMoney" width="80"/> -->
                <a:column name="remove_date" prompt="拆除时间" renderer="Leaf.formatDate" width="80"/>
                <a:column name="contactor" prompt="联系人" width="80"/>
                <a:column name="phone" prompt="联系方式" width="120"/>
                <a:column name="description" prompt="备注" width="150"/>
                <a:column name="enabled_flag" prompt="启用" width="50"/>
                <a:column align="center" prompt="附件上传" renderer="gps_attachment_renderer" width="80"/>
                <!-- <a:column name="install_fee" align="right" editor="ast_car_gps_nf" prompt="安装杂费" renderer="Leaf.formatMoney" width="80"/>
                <a:column name="gps_fee" align="right" editor="ast_car_gps_nf" prompt="GPS年费" renderer="Leaf.formatMoney" width="80"/>
                <a:column name="remove_date" editor="ast_car_gps_dp" prompt="拆除时间" renderer="Leaf.formatDate" width="80"/>
                <a:column name="gps_fee_back" align="right" editor="ast_car_gps_nf" prompt="GPS费用退还" renderer="Leaf.formatMoney" width="80"/>
                <a:column name="description" editor="ast_car_gps_tf" prompt="备注" width="150"/>
                <a:column name="enabled_flag" editor="ast_car_gps_cb" prompt="启用" width="50"/> -->
            </a:columns>
        </a:grid>
        <a:hBox/>
    </a:view>
</a:screen>