Commit 6b791ccd47c3fae2a1370b9aff235de8b582018f

Authored by Lucas Schmoeller da Silva
2 parents aeeca8be 0cc95a3d
Exists in master

Merge pull request #77 from ieducativa/corrige-ficha-aluno

Corrigido relatório ficha do aluno para exibir a foto do aluno.
ieducar/modules/Reports/ReportSources/portabilis_ficha_aluno.jrxml
... ... @@ -230,7 +230,9 @@
230 230 pmieducar.escola
231 231 where escola.ref_idpes = ps.idpes AND
232 232 ps.idpes = juridica .idpes AND
233   - escola.cod_escola = $P{escola}),(SELECT nm_escola FROM pmieducar.escola_complemento where ref_cod_escola = $P{escola}))) AS nm_escola
  233 + escola.cod_escola = $P{escola}),(SELECT nm_escola FROM pmieducar.escola_complemento where ref_cod_escola = $P{escola}))) AS nm_escola,
  234 +
  235 +(SELECT caminho FROM cadastro.fisica_foto WHERE idpes = aluno.ref_idpes) AS foto
234 236  
235 237 FROM pmieducar.instituicao,
236 238 pmieducar.aluno,
... ... @@ -313,6 +315,7 @@
313 315 <field name="sigla_uf_responsavel" class="java.lang.String"/>
314 316 <field name="bairro_responsavel" class="java.lang.String"/>
315 317 <field name="nm_escola" class="java.lang.String"/>
  318 + <field name="foto" class="java.lang.String"/>
316 319 <background>
317 320 <band splitType="Stretch"/>
318 321 </background>
... ... @@ -692,17 +695,25 @@
692 695 <text><![CDATA[PAÍS DE ORIGEM:]]></text>
693 696 </staticText>
694 697 <rectangle>
695   - <reportElement uuid="cf30196d-7da5-4de3-a72c-47d98d7b73d3" x="471" y="6" width="72" height="90"/>
  698 + <reportElement uuid="cf30196d-7da5-4de3-a72c-47d98d7b73d3" x="471" y="6" width="68" height="90">
  699 + <printWhenExpression><![CDATA[$F{foto} == null]]></printWhenExpression>
  700 + </reportElement>
696 701 <graphicElement>
697 702 <pen lineWidth="0.25"/>
698 703 </graphicElement>
699 704 </rectangle>
  705 + <image hAlign="Center" vAlign="Middle">
  706 + <reportElement uuid="3a409d0f-1fbc-460e-9a20-b99f8b06a595" x="471" y="6" width="68" height="90"/>
  707 + <imageExpression><![CDATA[$F{foto}]]></imageExpression>
  708 + </image>
700 709 <staticText>
701   - <reportElement uuid="c2713064-d203-4433-b086-70d4dcb2557e" x="483" y="42" width="44" height="12"/>
702   - <textElement textAlignment="Center">
  710 + <reportElement uuid="c2713064-d203-4433-b086-70d4dcb2557e" x="471" y="6" width="68" height="90">
  711 + <printWhenExpression><![CDATA[$F{foto} == null]]></printWhenExpression>
  712 + </reportElement>
  713 + <textElement textAlignment="Center" verticalAlignment="Middle">
703 714 <font fontName="DejaVu Sans" size="8"/>
704 715 </textElement>
705   - <text><![CDATA[FOTO 3X4]]></text>
  716 + <text><![CDATA[Foto 3x4]]></text>
706 717 </staticText>
707 718 <textField isBlankWhenNull="true">
708 719 <reportElement uuid="9e7414a4-ac32-4387-86c9-ff256081e3a5" x="46" y="25" width="251" height="12"/>
... ...