show.jspx 4.76 KB
Newer Older
1
2
3
4
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:page="urn:jsptagdir:/WEB-INF/tags/form" version="2.0">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <jsp:output omit-xml-declaration="yes"/>
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    
    <script>
    	function getObjectId() {
    		id = document.URL.substring(document.URL.indexOf("ns/", 1) + 3, document.URL.length);
    		return id;
    	}
    	
    	function rewriteGeneratePdfLink() {
    		var cells = document.getElementsByTagName("a");
    		for (var i=0; i != cells.length; i++) {
    		    var href = cells[i].getAttribute("href");
    		    if (href.indexOf("/travelrequisitionpdf?id=") > 0) {
    		    	cells[i].setAttribute("href", href + getObjectId());
    		    }
    		    if (href.indexOf("/registrationrequisitionpdf?id=") > 0) {
    		    	cells[i].setAttribute("href", href + getObjectId());
    		    }
    		}	
    	}
    </script>
    
26
    <page:show id="ps_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition" object="${travelrequisition}" path="/travelrequisitions" z="user-managed">
27
28
29
30
31
32
33
    
    	<a href="./travelrequisitionpdf?id=">Gerar PDF</a>
    	<p/>
    	<a href="./registrationrequisitionpdf?id=">Requisição de inscrição</a>
    	<script>rewriteGeneratePdfLink();</script>
    	<p/>
    
34
35
36
37
		<b>Requirente</b>
		<p/>
		<field:display field="person" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_person" object="${travelrequisition}" z="user-managed"/>
		<field:display field="requesterKind" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_requesterKind" object="${travelrequisition}" z="user-managed"/>
38
		<field:display field="profession" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_profession" object="${travelrequisition}" z="user-managed"/>
39
40
41
42
43
44
45
46
47
48
49
    	
    	<br/>
    	<hr/>
        <b>Sobre a viagem</b>
		<p/>
		<field:display field="conference" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_conference" object="${travelrequisition}" z="user-managed"/>
		<field:display field="place" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_place" object="${travelrequisition}" z="user-managed"/>
		<field:display field="destinations" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_destinations" object="${travelrequisition}" z="user-managed"/>
		<field:display field="justification" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_justification" object="${travelrequisition}" z="user-managed"/>
    	<field:display field="tripKind" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_tripKind" object="${travelrequisition}" z="user-managed"/>
		<field:display field="dayNumber" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_dayNumber" object="${travelrequisition}" z="user-managed"/>
50
51
   		<field:display field="ticketStartDate" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_ticketStartDate" object="${travelrequisition}" z="user-managed"/>
		<field:display field="ticketEndDate" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_ticketEndDate" object="${travelrequisition}" z="user-managed"/>
52
53
54
55
56
		
		<br/>
		<hr/>
        <b>Datas</b>
		<p/>
57
58
    	<field:display date="true" dateTimePattern="dd/MM/yyyy" field="startDate" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_startDate" object="${travelrequisition}" z="user-managed"/>
	    <field:display date="true" dateTimePattern="dd/MM/yyyy" field="endDate" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_endDate" object="${travelrequisition}" z="user-managed"/>
59
60
61
62
63

		<br/>
		<hr/>
        <b>Valores</b>
		<p/>
64
		<field:display field="registrationValue" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_registrationValue" object="${travelrequisition}" z="user-managed"/>
65
66
67
    	<field:display field="ticketKind" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_ticketKind" object="${travelrequisition}" z="user-managed"/>
		<field:display field="ticketValue" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_ticketValue" object="${travelrequisition}" z="user-managed"/>
		<field:display field="totalValue" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_totalValue" object="${travelrequisition}" z="user-managed"/>
68
		<field:display field="ticketPurchasePrice" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_ticketPurchasePrice" object="${travelrequisition}" z="user-managed"/>
69
70
71
72
73
74
75
76
77
78

		<br/>
		<hr/>
        <b>Outros</b>
		<p/>
		
    	<field:display field="requestStatus" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_requestStatus" object="${travelrequisition}" z="user-managed"/>
    	<field:display field="observations" id="s_br_ufpr_c3sl_sapos_models_scholar_TravelRequisition_observations" object="${travelrequisition}" z="user-managed"/>
    </page:show>
</div>