Commit 46e91ec3 authored by didonet's avatar didonet

Added method for generating PDF for registration requests.

parent b5599972
package br.ufpr.c3sl.sapos.models.scholar;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import javax.persistence.ManyToOne;
import javax.servlet.http.HttpServletResponse;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;
import br.ufpr.c3sl.sapos.models.customization.Configuration;
import br.ufpr.c3sl.sapos.models.scholar.enums.LanguageKind;
import br.ufpr.c3sl.sapos.models.scholar.enums.RegistrationKind;
import br.ufpr.c3sl.sapos.models.util.ReportUtil;
import com.itextpdf.text.Chunk;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.Phrase;
@RooJavaBean
@RooToString
......@@ -58,6 +69,7 @@ public class RegistrationRequest {
private SectionPos sectionPos5;
public static List<RegistrationRequest> findRegistrationRequestByCPF(Long id, String CPF, Integer year, Integer period) {
String queryRequest = "SELECT * FROM registration_request " +
" where ";
......@@ -71,6 +83,152 @@ public class RegistrationRequest {
return entityManager().createNativeQuery(queryRequest, RegistrationRequest.class).getResultList();
}
private static void setSectionPos(SectionPos section, Document document){
if (section != null) {
try {
document.add(new Phrase("- ", ReportUtil.getTitleTextFont()));
document.add(new Phrase(section.getCode()+": "+section.getCourse().getName()+
": "+section.getProfessor().getName(), ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
} catch (DocumentException e) {
e.printStackTrace();
}
}
}
public static void registrationRequest (RegistrationRequest rr, HttpServletResponse response) {
response.setContentType("application/pdf");
//left,right,top,bottom margins
Document document = new Document(PageSize.A4, 80, 80, 80, 80);
try {
try {
ReportUtil.getPdfWriter(document,response);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
document.open();
ReportUtil.makeHeader(document,"Requisição de matrícula");
document.add(new Paragraph("Informações pessoais", ReportUtil.getTitleTextFont()));
document. add ( new Phrase("CPF: ", ReportUtil.getTitleTextFont()));
document. add ( new Phrase(rr.getCPF(), ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
document.add( new Phrase("Nome: ", ReportUtil.getTitleTextFont()));
document.add( new Phrase(rr.getName(), ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
document.add( new Phrase("Email: ", ReportUtil.getTitleTextFont()));
document.add( new Phrase(rr.getEmail(), ReportUtil.getNormalTextFont()));
document.add( new Phrase(" Telefone: ", ReportUtil.getTitleTextFont()));
document.add( new Phrase(rr.getPhone(), ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
document.add(Chunk.NEWLINE);
document.add(new Paragraph("Matrícula:", ReportUtil.getTitleTextFont()));
if (RegistrationRequest.findRegistrationRequestByCPF(null, rr.getCPF(),
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_YEAR)),
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_PERIOD))).size() > 1 ) {
document.add(new Phrase("Obs.:) Este CPF já efetuou uma requisição de matrícula. Será considerada apenas a última requisição realizada.", ReportUtil.getNormalTextFont()));
}
document.add(Chunk.NEWLINE);
document.add(new Phrase("Tipo: ", ReportUtil.getTitleTextFont()));
document.add(new Phrase(rr.getRequestKind().toString(), ReportUtil.getNormalTextFont()));
String translateBoolean = "não";
document.add( new Phrase(" Escrevendo tese/dissertação: ", ReportUtil.getTitleTextFont()));
translateBoolean = "não";
if (rr.getIsWritingThesis())
translateBoolean = "sim";
document.add( new Phrase(translateBoolean, ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
document.add(new Phrase("Data: ", ReportUtil.getTitleTextFont()));
document.add(new Phrase(rr.getRequestDate().toString(), ReportUtil.getNormalTextFont()));
document.add(new Phrase(" Nro: ", ReportUtil.getTitleTextFont()));
document.add(new Phrase(rr.getId().toString(), ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
document.add(Chunk.NEWLINE);
if (rr.getSectionPos1()!=null || rr.getSectionPos2()!=null || rr.getSectionPos3()!=null || rr.getSectionPos4()!=null || rr.getSectionPos5()!=null){
document.add(new Paragraph("Turmas:", ReportUtil.getTitleTextFont()));
setSectionPos(rr.getSectionPos1(), document);
setSectionPos(rr.getSectionPos2(), document);
setSectionPos(rr.getSectionPos3(), document);
setSectionPos(rr.getSectionPos4(), document);
setSectionPos(rr.getSectionPos5(), document);
}
document.add(Chunk.NEWLINE);
document.add(new Paragraph("Informações para bolsa", ReportUtil.getTitleTextFont()));
translateBoolean = "não";
document.add( new Phrase("Candidato à bolsa: ", ReportUtil.getTitleTextFont()));
translateBoolean = "não";
if (rr.getScholarshipCandidate())
translateBoolean = "sim";
document.add( new Phrase(translateBoolean, ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
document.add( new Phrase("Trabalhando: ", ReportUtil.getTitleTextFont()));
translateBoolean = "não";
if (rr.getIsWorking())
translateBoolean = "sim";
document.add( new Phrase(translateBoolean, ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
if (rr.getObservations().trim().length() > 0){
document.add( new Phrase("Observações: ", ReportUtil.getTitleTextFont()));
document.add( new Phrase(rr.getObservations(), ReportUtil.getNormalTextFont()));
}
document.add(Chunk.NEWLINE);
document.add(Chunk.NEWLINE);
document.add(Chunk.NEWLINE);
document.add( new Phrase(" Assinatura do aluno Nome e assinatura do orientador ", ReportUtil.getNormalTextFont()));
document.add(Chunk.NEWLINE);
document.add(Chunk.NEWLINE);
document.add(new Paragraph("Obs.:) O pedido só será validado após a entrega deste formulário na secretaria do PPGInf, assinado pelo aluno e orientador.", ReportUtil.getNormalTextFont()));
// document.add(new Paragraph("2) No caso de múltiplas requisições, será considerada apenas a última requisição feita.", ReportUtil.getNormalTextFont()));
document.close();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private static String convertDate (Date date){
return date.toString().substring(8)+"/"+date.toString().substring(5, 7)+"/"+date.toString().substring(0, 4);
}
private static String convertLanguagePT(LanguageKind language) {
switch (language) {
case Alemao:
return "Alemão";
case Ingles:
return "Inglês";
case Frances:
return "Francês";
default:
return language.toString();
}
}
}
......@@ -173,17 +173,7 @@ public class ReportUtil {
p.setAlignment(Element.ALIGN_RIGHT);
document.add(p);
// document.add(Chunk.NEWLINE);
// document.add(new Paragraph(""));
// document.add(Chunk.NEWLINE);
// document.add(new Paragraph(""));
// document.add(Chunk.NEWLINE);
// document.add(new Paragraph(""));
// document.add(Chunk.NEWLINE);
// document.add(new Paragraph(""));
/* document.add(Chunk.NEWLINE);
document.add(new Paragraph(""));
*/ document.add(Chunk.NEWLINE);
document.add(Chunk.NEWLINE);
document.add(new Paragraph(""));
document.add(Chunk.NEWLINE);
......
......@@ -5,6 +5,7 @@ import java.util.Calendar;
import java.util.Collection;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.joda.time.format.DateTimeFormat;
......@@ -43,7 +44,7 @@ public class RegistrationRequestController {
if (bindingResult.hasErrors()) {
uiModel.addAttribute("registrationrequest", regRequest);
addDateTimeFormatPatterns(uiModel);
return "/registrationrequests?newrequest";
return "redirect:/registrationrequests?newrequest";
}
uiModel.asMap().clear();
regRequest.setRequestDate(Calendar.getInstance().getTime());
......@@ -63,24 +64,51 @@ public class RegistrationRequestController {
return "registrations/list";
}
// @RequestMapping(value = "submitted", method = RequestMethod.GET)
// public void showrequest(
// @RequestParam(value = "id", required = true) Long id,
// @RequestParam(value = "cpf", required = true) String cpf,
// Model uiModel, HttpServletResponse response
// ) {
// addDateTimeFormatPatterns(uiModel);
//
// RegistrationRequest rr =
//// uiModel.addAttribute("registrationrequest",
// RegistrationRequest.findRegistrationRequestByCPF(id, cpf,
// new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_YEAR)),
// new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_PERIOD))).get(0);
//// RegistrationRequest.findRegistrationRequestByCPF(id, cpf,
//// new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_YEAR)),
//// new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_PERIOD))).get(0)); //shows the first occurrence
//
//// if (RegistrationRequest.findRegistrationRequestByCPF(null, cpf,
//// new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_YEAR)),
//// new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_PERIOD))).size() > 1 ) {
//// uiModel.addAttribute("existing", "Existing value.");
//// }
//
// RegistrationRequest.registrationRequest(rr, response);
//
//// return "registrationrequests/show";
// }
@RequestMapping(value = "submitted", method = RequestMethod.GET)
public String showrequest(
public void showrequest(
@RequestParam(value = "id", required = true) Long id,
@RequestParam(value = "cpf", required = true) String cpf,
Model uiModel
Model uiModel, HttpServletResponse response
) {
addDateTimeFormatPatterns(uiModel);
uiModel.addAttribute("registrationrequest",
RegistrationRequest rr =
// uiModel.addAttribute("registrationrequest",
RegistrationRequest.findRegistrationRequestByCPF(id, cpf,
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_YEAR)),
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_PERIOD))).get(0)); //shows the first occurrence
if (RegistrationRequest.findRegistrationRequestByCPF(null, cpf,
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_YEAR)),
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_PERIOD))).size() > 1 ) {
uiModel.addAttribute("existing", "Existing value.");
}
return "registrationrequests/show";
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_YEAR)),
new Integer(Configuration.findConfigValueByName(Configuration.CURRENT_PERIOD))).get(0);
RegistrationRequest.registrationRequest(rr, response);
}
@RequestMapping(params = "newrequest", method = RequestMethod.GET)
......
......@@ -6,10 +6,24 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<!-- HTTP security configurations -->
<http auto-config="true" use-expressions="true">
<intercept-url pattern="/registrationrequests/show**" access="permitAll" />
<intercept-url pattern="/registrationrequests/submitted**" access="permitAll" />
<intercept-url pattern="/registrationrequests/show" access="permitAll" />
<intercept-url pattern="/registrationrequests/submitted" access="permitAll" />
<intercept-url pattern="/registrationrequests**" access="permitAll" />
<intercept-url pattern="/registrationrequests/**" access="permitAll" />
<intercept-url pattern="/registrationrequests**/**" access="permitAll" />
<form-login login-processing-url="/resources/j_spring_security_check" login-page="/login" authentication-failure-url="/login?login_error=t"/>
<logout logout-url="/resources/j_spring_security_logout"/>
<!-- Configure these elements to secure URIs in your application -->
......@@ -25,10 +39,12 @@
<!-- <intercept-url pattern="/footer**" access="permitAll" /> -->
<!-- <intercept-url pattern="/menu**" access="permitAll" /> -->
<intercept-url pattern="/**" method="DELETE" access="hasAnyRole('Administrador', 'Funcionario')" />
<intercept-url pattern="/**" method="PUT" access="hasAnyRole('Administrador', 'Funcionario')" />
<intercept-url pattern="/**" method="POST" access="hasAnyRole('Administrador', 'Funcionario')" />
<intercept-url pattern="/professors**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
<intercept-url pattern="/students**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
<intercept-url pattern="/staffs**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
......@@ -46,10 +62,7 @@
<intercept-url pattern="/grantkinds**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
<intercept-url pattern="/configurations**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
<intercept-url pattern="/registrationrequests**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
<intercept-url pattern="/subscriptions**" access="permitAll" method="GET" />
<intercept-url pattern="/subscriptions**" access="permitAll" method="POST" />
<!-- <intercept-url pattern="/people**" access="permitAll" /> -->
<intercept-url pattern="/people**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
......@@ -58,11 +71,26 @@
<intercept-url pattern="/transcripts**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
<intercept-url pattern="/sectionposes**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" />
<!-- <intercept-url pattern="/**" access="hasAnyRole('Administrador', 'Funcionario', 'Professor')" /> -->
<intercept-url pattern="/registrationrequests**" access="permitAll" method="GET" />
<intercept-url pattern="/registrationrequests**" access="permitAll" method="POST" />
<intercept-url pattern="/registrationrequests/show**" access="permitAll" />
<intercept-url pattern="/registrationrequests/submitted**" access="permitAll" />
<intercept-url pattern="/registrationrequests/show" access="permitAll" />
<intercept-url pattern="/registrationrequests/submitted" access="permitAll" />
<intercept-url pattern="/registrationrequests**" access="permitAll" />
<intercept-url pattern="/registrationrequests/**" access="permitAll" />
<intercept-url pattern="/registrationrequests**/**" access="permitAll" />
<intercept-url pattern="/**" access="isAuthenticated()" />
<intercept-url pattern="/registrationrequests**" access="permitAll" />
<intercept-url pattern="/registrationrequests/submitted**" access="permitAll" />
</http>
......
......@@ -357,7 +357,7 @@ label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_requestdate=Request
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_iswritingthesis=Is Writing Thesis
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_scholarshipcandidate=Scholarship Candidate
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_isworking=Is Working
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_poscomp=PSCOMP
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_poscomp=POSCOMP
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_observations=Observations
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_sectionpos1=Section 1
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_sectionpos2=Section 2
......
......@@ -332,9 +332,9 @@ label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_email=Email
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_entryyear=Ano
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_entryperiod=Semestre
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_iswritingthesis=Elaborao de tese/dissertao
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_scholarshipcandidate=Candidato bolsa
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_scholarshipcandidate=Cand. bolsa
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_isworking=Trabalhando
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_poscomp=PSCOMP
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_poscomp=PosComp
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_observations=Observaes (afastamentos, vnculos, etc.)
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_requestkind=Tipo de matrcula
label_br_ufpr_c3sl_sapos_models_scholar_registrationrequest_requestdate=Data
......
......@@ -35,14 +35,16 @@ select_value=select one value
existing_registration_request=CPF already registered. The previous request was overwritten.
warning_registration_request=The request will only be valid after signature.
warning_registration_request=Registration request sent
personnal_information=Personnal information
registration=Registratino
registration=Registration
select_at_least_one_field=Select at least one value
scholarship_info=Scholarship info
student_signature=Student signature
advisor_signature=Advisor signature
registration_request_form=Registration request form
warning_signature=Only valid after signature
warning_double_requests=Only the last request will be considered
#welcome page
......
......@@ -34,14 +34,17 @@ select_value=selecione um valor
existing_registration_request=CPF j cadastrado. A requisio anterior foi sobrescrita.
warning_registration_request=Pedido de matrcula no PPGInf. \n O pedido s ser validado aps a entrega deste formulrio na secretaria do PPGInf, assinado pelo aluno e orientador.
warning_registration_request=Pedido de matrcula no PPGInf efetuado
personnal_information=Informaes pessoais
registration=Matrcula
select_at_least_one_field=Selecionar no mnimo um valor
scholarship_info=Informaes para bolsa
student_signature=Assinatura do aluno
advisor_signature=Assinatura do orientador
registration_request_form=Formulrio de pedido de matrcula no Programa de Ps Graduao em Informtica.
registration_request_form=Formulrio de pedido de matrcula no Programa de Ps Graduao em Informtica.
warning_signature=O pedido s ser validado aps a entrega deste formulrio na secretaria do PPGInf, assinado pelo aluno e orientador.
warning_double_requests=No caso de mltiplas requisies, ser considerada apenas a ltima requisio feita.
#welcome page
......
......@@ -7,8 +7,18 @@
<form:create id="fc_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest" modelAttribute="registrationrequest" path="/registrationrequests" render="${empty dependencies}" z="user-managed">
<spring:message code="personnal_information" var="personnal"/>
<spring:message code="registration" var="registration"/>
<spring:message code="select_at_least_one_field" var="one_field_select"/>
<spring:message code="scholarship_info" var="scholarship"/>
<spring:message code="student_signature" var="stu_signature"/>
<spring:message code="advisor_signature" var="ad_signature"/>
<spring:message code="warning_signature" var="warning_sig"/>
<spring:message code="warning_double_requests" var="warning_double"/>
<p/>
<b>Informações pessoais</b>
<b>${personnal}</b>
<p/>
<field:input field="CPF" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_CPF" cpfvalidator="true" required="true" validationRegex="\\d{11}" validationMessageCode="field_invalid_cpf" z="user-managed"/>
......@@ -22,14 +32,14 @@
<hr/>
<p/>
<b>Matrícula </b> <br/>
<b>${registration}</b> <br/>
<p/>
<field:select field="requestKind" required="true" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_requestKind" items="${registrationkinds}" path="registrationkinds" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<p/>
<b>Ao menos um campo abaixo deve ser escolhido/selecionado </b> <br/>
<b>${one_field_select}</b> <br/>
<p/>
......@@ -48,8 +58,10 @@
<p/>
<hr/>
<b>Informações para bolsa</b>
<b>${scholarship_info}</b>
<p/>
<field:checkbox field="scholarshipCandidate" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_scholarshipCandidate" z="user-managed"/>
<field:checkbox field="isWorking" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_isWorking" z="user-managed"/>
<field:input field="PosComp" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_PosComp" z="user-managed"/>
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:page="urn:jsptagdir:/WEB-INF/tags/form" xmlns:spring="http://www.springframework.org/tags" version="2.0">
xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:page="urn:jsptagdir:/WEB-INF/tags/form" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<jsp:output omit-xml-declaration="yes"/>
<spring:message code="welcome_simple" var="welcome"/>
<spring:message code="warning_registration_request" var="warning"/>
<h3>${warning}</h3>
<page:show id="ps_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest" create="false" delete="false" update="false" list="false" object="${registrationrequest}" path="/registrationrequests" z="FJravYtUvlQSBZGVLpow2v0rby4=">
<c:if test="${not empty existing}">
<spring:message code="existing_registration_request" var="existing_msg"/>
......@@ -22,64 +23,78 @@
<spring:message code="scholarship_info" var="scholarship"/>
<spring:message code="student_signature" var="stu_signature"/>
<spring:message code="advisor_signature" var="ad_signature"/>
<spring:message code="warning_signature" var="warning_sig"/>
<spring:message code="warning_double_requests" var="warning_double"/>
<p/>
<b>${personnal}</b>
<p/>
<b>${personnal}</b>
<table>
<field:display field="CPF" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_CPF" object="${registrationrequest}" z="user-managed"/>
<tr>
<td>
<field:display field="CPF" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_CPF" object="${registrationrequest}" z="user-managed"/>
</td>
<td>
<field:display field="phone" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_phone" object="${registrationrequest}" z="user-managed"/>
</td>
</tr>
<tr>
<td>
<field:display field="name" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_name" object="${registrationrequest}" z="user-managed"/>
</td>
<td>
<field:display field="email" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_email" object="${registrationrequest}" z="user-managed"/>
</td>
</tr>
</table>
<p/>
<b>${registration}</b>
<table>
<tr>
<td>
<field:display field="requestKind" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_requestKind" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
</td>
<td>
<field:display date="true" dateTimePattern=" dd/MM/yyyy - hh:mm:ss" field="requestDate" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_requestDate" object="${registrationrequest}" z="user-managed"/>
</td>
</tr>
<field:display field="name" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_name" object="${registrationrequest}" z="user-managed"/>
<field:display field="phone" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_phone" object="${registrationrequest}" z="user-managed"/>
<field:display field="email" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_email" object="${registrationrequest}" z="user-managed"/>
<hr/>
<tr><td> <field:display field="isWritingThesis" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_isWritingThesis" object="${registrationrequest}" z="user-managed"/> </td><td></td></tr>
<p/>
<b>${registration}</b> <br/>
</table>
<p/>
<field:display date="true" dateTimePattern=" dd/MM/yyyy - hh:mm:ss" field="requestDate" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_requestDate" object="${registrationrequest}" z="user-managed"/>
<field:display field="entryYear" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_entryYear" object="${registrationrequest}" z="user-managed"/>
<field:display field="entryPeriod" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_entryPeriod" object="${registrationrequest}" z="user-managed"/>
<field:display field="requestKind" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_requestKind" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<p/>
<b>${one_field_select}</b> <br/>
<p/>
<field:display field="isWritingThesis" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_isWritingThesis" object="${registrationrequest}" z="user-managed"/>
<field:display field="sectionPos1" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos1" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos2" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos2" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos3" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos3" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos4" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos4" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos1" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos1" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos2" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos2" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos3" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos3" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos4" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos4" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos5" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos5" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<field:display field="sectionPos5" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_sectionPos5" object="${registrationrequest}" z="QHL6MLE5411WNUa/F8UyTxE9H6w="/>
<p/>
<hr/>
<b>${scholarship_info}</b>
<b>${scholarship}</b>
<table>
<p/>
<field:display field="isWorking" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_isWorking" object="${registrationrequest}" z="user-managed"/>
<field:display field="PosComp" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_PosComp" object="${registrationrequest}" z="user-managed"/>
<tr>
<field:display field="observations" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_observations" object="${registrationrequest}" z="user-managed"/>
<td>
<field:display field="scholarshipCandidate" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_scholarshipCandidate" object="${registrationrequest}" z="user-managed"/>
</td>
<td>
<field:display field="isWorking" id="c_br_ufpr_c3sl_sapos_models_scholar_RegistrationRequest_isWorking" object="${registrationrequest}" z="user-managed"/>
</td>
</tr>
</page:show>
<table >
</table>
<table>
<td><p/><hr/>${stu_signature}</td><td><p/><hr/>${ad_signature}</td>
</table>
</table>
<hr/><p/>
1)<b>${warning_sig}</b><br/>
2)<b>${warning_double}</b><br/>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment