Subversion Repository Public Repository

ramani

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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head/>
    <h:body>
        <ui:composition template="../template.xhtml">
            <ui:define name="caminho">
                <h:outputLabel value="#{msg['graficoLinhaAfiliacao.Caminho']}"
                               style="font-weight: bold"/>
            </ui:define>

            <ui:define name="conteudoCentro">
                <p:layout>
                    <h:form id="form">
                        <p:layoutUnit position="center">                           
                            <p:wizard 
                                backLabel="Anterior"
                                nextLabel="Proximo">  

                                <p:tab id="autor" title="#{msg['graficoLinhaAfiliacao.Afiliacao']}">  
                                    <p:growl showDetail="true" showSummary="true" autoUpdate="true" />
                                    <p:panel header="#{msg['graficoLinhaAfiliacao.SelecioneAfiliacoes']}">  

                                        <h:panelGrid id="afiliacaoSelecao" columns="3" columnClasses="label, value" style="margin: 0 auto" >  

                                            <h:outputText value="#{msg['graficoLinhaAfiliacao.NomeAfiliacao']}"/>
                                            <p:autoComplete
                                                id="autoCompleteAfiliacao"
                                                forceSelection="true"
                                                minQueryLength="6"
                                                value="#{graficoLinhaBean.afiliacao}"
                                                converter="AfiliacaoConverter"
                                                completeMethod="#{graficoLinhaBean.autoCompleteAfiliacao}"
                                                var="afiliacaoComplete"
                                                itemLabel="#{afiliacaoComplete.nome}"
                                                itemValue="#{afiliacaoComplete}"/>


                                            <p:commandButton
                                                value="#{msg['graficoLinhaAfiliacao.Adicionar']}"
                                                action="#{graficoLinhaBean.adiconarAfiliacao()}"
                                                update="afiliacaoSelecao,dtAfiliacao"
                                                />

                                            <p:dataTable 
                                                id="dtAfiliacao"
                                                value="#{graficoLinhaBean.afiliacoesSelecionadas}"
                                                var="afiliacaoS">
                                                <p:column headerText="#{msg['graficoLinhaAfiliacao.Nome']}">
                                                    <h:outputText value="#{afiliacaoS.nome}"/>
                                                </p:column>

                                                <p:column headerText="#{msg['graficoLinhaAfiliacao.Remover']}">
                                                    <p:commandButton
                                                        id="cbRemoverAfiliacaor"
                                                        ajax="false"
                                                        icon="ui-icon-trash"
                                                        action="#{graficoLinhaBean.removerAfiliaca()}"                                                        
                                                        >
                                                        <f:setPropertyActionListener
                                                            target="#{graficoLinhaBean.afiliacao}"
                                                            value="#{afiliacaoS}"/>
                                                    </p:commandButton>
                                                </p:column>

                                            </p:dataTable>



                                        </h:panelGrid>  
                                    </p:panel>  
                                </p:tab>


                                <p:tab id="periodo" title="#{msg['graficoLinhaAfiliacao.Periodo']}">  

                                    <p:panel header="#{msg['graficoLinhaAfiliacao.SelecionePeriodoProducao']}">  

                                        <h:panelGrid columns="2" columnClasses="label, value" style="margin: 0 auto">

                                            <h:outputLabel value="#{msg['graficoLinhaAfiliacao.Inicio']}"
                                                           style="font-size: 15px; font-weight: bold; text-align: center"/>

                                            <h:outputLabel value="#{msg['graficoLinhaAfiliacao.Fim']}"
                                                           style="font-size: 15px; font-weight: bold; text-align: center"/>


                                            <p:selectOneMenu value="#{graficoLinhaBean.edicaoIncio}" converter="javax.faces.Integer" >  
                                                <f:selectItems value="#{graficoLinhaBean.anoEdicoes}"
                                                               var="edicao"
                                                               itemLabel="#{edicao}"
                                                               />  
                                            </p:selectOneMenu> 


                                            <p:selectOneMenu value="#{graficoLinhaBean.edicaoFim}" converter="javax.faces.Integer">   
                                                <f:selectItems value="#{graficoLinhaBean.anoEdicoes}"
                                                               var="edicao2"
                                                               itemLabel="#{edicao2}"
                                                               />  
                                            </p:selectOneMenu>  

                                        </h:panelGrid>  
                                    </p:panel>  
                                </p:tab>




                                <p:tab id="linhaAfiliacao" title="#{msg['graficoLinhaAfiliacao.Grafico']}">  

                                    <p:panel >  

                                        <h:panelGrid style="margin: 0 auto" >  
                                            <f:ajax render="afilicao">

                                                <p:lineChart id="afilicao" value="#{graficoLinhaBean.chPeriodoAfiliacao}" legendPosition="e"  
                                                             title="#{msg['graficoLinhaAfiliacao.PublicacoesPeriodoDe']} #{graficoLinhaBean.edicaoIncio} {msg['graficoLinhaAfiliacao.A']} #{graficoLinhaBean.edicaoFim}"
                                                             animate="true" minY="0" maxY="#{graficoLinhaBean.maxY}" style="height:300px; width: 900px; margin: 0 auto"/>  
                                            </f:ajax>
                                        </h:panelGrid>  
                                    </p:panel>  
                                </p:tab>


                            </p:wizard>  








                        </p:layoutUnit>


                    </h:form>



                </p:layout>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

Commits for ramani/Ramani/web/restrito/graficoLinhaAfiliacao.xhtml

Diff revisions: vs.
Revision Author Commited Message
568 Diff Diff heartle picture heartle Mon 15 Dec, 2014 03:35:05 +0000
561 Diff Diff heartle picture heartle Mon 01 Dec, 2014 14:52:08 +0000
559 Diff Diff heartle picture heartle Sun 30 Nov, 2014 15:23:10 +0000
518 Diff Diff masahiro.arthur picture masahiro.arthur Mon 14 Jul, 2014 19:07:34 +0000
425 Diff Diff heartle picture heartle Sat 19 Apr, 2014 15:41:03 +0000
422 Diff Diff heartle picture heartle Wed 16 Apr, 2014 05:27:24 +0000
421 heartle picture heartle Tue 15 Apr, 2014 15:50:08 +0000