Subversion Repository Public Repository

ramani

Diff Revisions 571 vs 572 for /Ramani/web/cadastros/criarSelecaoSnowballingInterativoVarios.xhtml

Diff revisions: vs.
  @@ -132,9 +132,10 @@
132 132
133 133 <p:tab id="executandoTab" title="Processar">
134 134 <p:panel id="panelProc">
135 + <p:growl showDetail="true" showSummary="true"/>
135 136 <p:toolbar>
136 137
137 - <p:toolbarGroup style="margin-left: 25%" id="toolm">
138 + <p:toolbarGroup style="margin-left: 35%" id="toolm">
138 139 <p:commandButton value="#{msg['criarSelecaoSnowballingInterativoVarios.Executar']}"
139 140 title="#{msg['criarSelecaoSnowballingInterativoVarios.ExecutarSnowballing']}"
140 141 action="#{snowballingBean.iniciarProcessoInterativoVariosResultados()}"
  @@ -151,27 +152,48 @@
151 152 iconPos="right"
152 153 disabled="#{snowballingBean.desabilitarBotaoContinuar}"
153 154 update="panelProc,selecInt"
155 + async="true"
154 156 ajax="true"/>
155 157
156 158 <p:commandButton value="#{msg['criarSelecaoSnowballingInterativoVarios.Finalizar']}"
157 159 title="#{msg['criarSelecaoSnowballingInterativoVarios.FinalizarProcessamento']}"
158 160 action="#{snowballingBean.finalizarProcessoInterativo()}"
159 161 icon="ui-icon-seek-end"
160 - disabled="#{snowballingBean.desabilitarBotaoConcluir}"
161 - update="panelProc,selecInt"
162 - ajax="true"
163 - iconPos="right"/>
164 -
165 - <p:commandButton value="#{msg['criarSelecaoSnowballingInterativoVarios.Cancelar']}"
166 - title="#{msg['criarSelecaoSnowballingInterativoVarios.CancelarOperacao']}"
167 - action="#{snowballingBean.interromperProcessoInterativo()}"
168 - icon="ui-icon-cancel"
169 - iconPos="right"/>
162 + disabled="#{snowballingBean.desabilitarBotaoConcluir}"
163 + ajax="false"
164 + iconPos="right"/>
170 165 </p:toolbarGroup>
171 166 </p:toolbar>
172 167
168 + <p:panel toggleable="true" header="Artigo Selecionados" closable="true" style="text-align: center; "
169 + rendered="#{snowballingBean.rendereizacao}">
170 + <p:dataTable id="diagSel"
171 + value="#{snowballingBean.selecoesEscolhidas}"
172 + var="selecta">
173 + <p:column headerText="Remover">
174 + <p:commandButton title="#{msg['criarSelecaoSnowballingInterativoVarios.RemoverSelecao']}"
175 + action="#{snowballingBean.removerSelecao}"
176 + update="diagSel"
177 + ajax="true"
178 + icon="ui-icon-minusthick">
179 + <f:setPropertyActionListener value="#{selecta}"
180 + target="#{snowballingBean.selecao}" />
181 + </p:commandButton>
182 + </p:column>
183 + <p:column headerText="Artigo">
184 + <p:outputLabel value="Titulo: " style="font-weight: bold"/>
185 + <p:outputLabel value="#{selecta.artigo.titulo}"/>
186 + <br/>
187 + <p:outputLabel value="Justificativa " style="font-weight: bold"/>
188 + <br/>
189 + <p:outputLabel value="#{selecta.justificativa}" style="font-weight: bold; color: blue"/>
190 + </p:column>
191 + </p:dataTable>
192 + </p:panel>
193 +
194 +
173 195 <br/>
174 - <p:dataTable id="selecInt" value="#{snowballingBean.selecoes}" var="sel">
196 + <p:dataTable id="selecInt" value="#{snowballingBean.selecoes}" var="sel" rendered="#{snowballingBean.rendereizacao}" >
175 197 <p:column headerText="Selecionar">
176 198 <p:commandButton title="#{msg['criarSelecaoSnowballingInterativoVarios.SelecionarArtigo']}"
177 199 action="#{snowballingBean.escolherSelecao}"
  @@ -184,28 +206,82 @@
184 206 </p:column>
185 207
186 208 <p:column headerText="Artigo">
209 + <p:outputLabel value="Titulo: " style="font-weight: bold"/>
187 210 <p:outputLabel value="#{sel.artigo.titulo}"/>
211 + <br/>
212 + <p:outputLabel value="Resumo: " style="font-weight: bold"/>
213 + <p:outputLabel value="#{sel.artigo.abstract1}"/>
214 + <br/>
215 + <p:outputLabel value="Justificativa: " style="font-weight: bold"/>
216 + <p:inputTextarea value="#{sel.justificativa}"
217 + rows="3"
218 + autoResize="false"
219 + style="width: 100%"/>
188 220 </p:column>
189 221 </p:dataTable>
190 222
191 223 <p:ajaxStatus onstart="PF('statusDialog').show()" onsuccess="PF('statusDialog').hide()" />
192 224
193 - <p:dialog widgetVar="statusDialog" modal="true" draggable="false" closable="false" resizable="false" showHeader="false">
225 + <!-- Dialog Processar-->
226 + <p:dialog widgetVar="statusDialog"
227 + appendToBody="true"
228 + width="650"
229 + modal="true"
230 + draggable="false"
231 + closable="false"
232 + header="Selecionando"
233 + resizable="false"
234 + showHeader="true">
194 235 <p:panel>
195 - <h:outputLabel value="#{msg['criarSelecaoSnowballingInterativoVarios.InterromperProcesso']}"
196 - style="font-weight: bold"/>
197 - <p:graphicImage name="loadingC.gif" />
236 +
237 + <h:outputLabel value="#{msg['criarSelecaoSnowballingInterativoVarios.ClicandoEm']}"
238 + style="color: blue; font-weight: bold"/>
239 + <h:outputText value="#{msg['criarSelecaoSnowballingInterativoVarios.InterromperProcessoSalvar']}"
240 + style="color: blue"/>
241 + <h:outputText value="#{msg['criarSelecaoSnowballingInterativoVarios.InterrompeProcessoSalva']}"
242 + style="color: blue; font-weight: bold"/>
243 + <h:outputText value="#{msg['criarSelecaoSnowballingInterativoVarios.InterromperProcessoDescartar']}"
244 + style="color: blue"/>
245 + <h:outputText value="#{msg['criarSelecaoSnowballingInterativoVarios.InterrompeProcessoDescarta']}"
246 + style="color: blue; font-weight: bold"/>
247 + <br/>
248 + <br/>
249 + <center>
250 + <p:graphicImage name="loadingC.gif" />
251 + </center>
252 + <br/>
253 + <p:commandButton value="#{msg['criarSelecaoSnowballingInterativoVarios.DescartarDados']}"
254 + title="#{msg['criarSelecaoSnowballingInterativoVarios.InterromperProcessoNaoSalvarDados']}"
255 + ajax="true"
256 + process="@this"
257 + immediate="true"
258 + update="panelProc"
259 + action="#{snowballingBean.interromperProcessoInterativo()}"
260 + style="width: 100%"
261 + icon="ui-icon-stop"
262 + async="true"
263 + iconPos="right"
264 + />
265 +
266 + <p:commandButton value="#{msg['criarSelecaoSnowballingInterativoVarios.SalvarDados']}"
267 + title="#{msg['criarSelecaoSnowballingInterativoVarios.InterrompeProcessoCheckpoint']}"
268 + ajax="true"
269 + process="@this"
270 + immediate="true"
271 + update="panelProc"
272 + action="#{snowballingBean.interromperProcessoInterativoESalvar()}"
273 + icon="ui-icon-video"
274 + iconPos="right"/>
275 +
198 276 </p:panel>
199 - </p:dialog>
277 + </p:dialog>
278 +
200 279 </p:panel>
201 280 </p:tab>
202 281
203 282 </p:wizard>
204 283 </p:panel>
205 284 </h:form>
206 -
207 -
208 -
209 285 </p:layoutUnit>
210 286 </p:layout>
211 287 </ui:define>