[Alba-desarrollo] SVN Alba r4240 - in prosistem/alba/trunk/alba: apps/principal/modules/informes/actions apps/principal/modules/informes/templates apps/principal/modules/informes/validate data/sql

commits en pressenter.com.ar commits en pressenter.com.ar
Vie Feb 16 19:45:34 CET 2007


Author: josx
Date: 2007-02-16 15:45:30 -0300 (Fri, 16 Feb 2007)
New Revision: 4240

Added:
   prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/ce=
rtificadoEstudiosBusquedaFormularioSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/ce=
rtificadoEstudiosFormularioSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/ce=
rtificadoEstudiosListadoSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/informes/validate/cer=
tificadoEstudiosListado.yml
Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/acti=
ons.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/al=
umnosPorDivisionFormularioSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/al=
umnosPorDivisionListadoSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/bo=
letinFormularioSuccess.php
   prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql
   prosistem/alba/trunk/alba/data/sql/datos_desde_cero.sql
Log:
Agregue el certificado de estudios

Modified: prosistem/alba/trunk/alba/apps/principal/modules/informes/actio=
ns/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/act=
ions.class.php	2007-02-16 17:50:42 UTC (rev 4239)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/act=
ions.class.php	2007-02-16 18:45:30 UTC (rev 4240)
@@ -319,5 +319,75 @@
     }
=20
=20
+
+    public function executeCertificadoEstudiosBusquedaFormulario() {
+        // inicializando variables
+        $optionsDivision =3D array();
+        $aAlumno  =3D array();       =20
+
+        // tomando los datos del formulario
+        $txt =3D $this->getRequestParameter('txt');
+
+        // llenando el combo de division segun establecimiento
+        $establecimiento_id =3D $this->getUser()->getAttribute('fk_estab=
lecimiento_id');
+      =20
+        if ($this->getRequest()->getMethod() =3D=3D sfRequest::POST) {
+            // buscando alumnos
+            $aAlumno =3D $this->_getTodosLosAlumnos($establecimiento_id,=
 $txt);   =20
+        }
+
+        // asignando variables para ser usadas en el template
+        $this->txt =3D $txt;
+        $this->aAlumno =3D $aAlumno;
+        $this->vista =3D "imprimir";
+    }
+
+    public function executeCertificadoEstudiosFormulario() {
+        $alumno =3D "";
+        $y =3D "";
+        $aAnio =3D array();
+       =20
+        $establecimiento_id =3D $this->getUser()->getAttribute('fk_estab=
lecimiento_id');
+        $alumno_id =3D $this->getRequestParameter('alumno_id');
+
+        $alumno =3D AlumnoPeer::retrieveByPK($alumno_id);
+        $y =3D date("Y");
+
+        $criteria =3D new Criteria();
+        $criteria->add(AnioPeer::FK_ESTABLECIMIENTO_ID, $establecimiento=
_id);
+        $anios =3D AnioPeer::doSelect($criteria);
+        $aAnio[""] =3D "";
+        foreach($anios as $anio) {
+            $aAnio[$anio->getDescripcion()] =3D $anio->getDescripcion();
+        }
+
+        $this->aAnio =3D $aAnio;
+        $this->d =3D date("d");
+        $this->m =3D date("m");
+        $this->y =3D $y;       =20
+        $this->anio_hasta =3D $y;
+        $this->alumno =3D $alumno;
+        $this->vista =3D "imprimir";
+    }
+
+    public function executeCertificadoEstudiosListado() {
+        $anio =3D $this->getRequestParameter('anio');
+        $grado =3D $this->getRequestParameter('grado');
+        $alumno_id =3D $this->getRequestParameter('alumno_id');
+        $establecimiento_id =3D $this->getUser()->getAttribute('fk_estab=
lecimiento_id');
+
+        $alumno =3D AlumnoPeer::retrieveByPK($alumno_id);
+        $establecimiento =3D EstablecimientoPeer::retrieveByPK($establec=
imiento_id);=20
+
+        $this->establecimiento =3D $establecimiento;
+        $this->anio =3D $anio;
+        $this->grado =3D $grado;
+        $this->alumno =3D $alumno;
+        $this->vista =3D "imprimir";
+    }
+
+    public function handleErrorCertificadoEstudiosListado() {
+        $this->forward('informes','certificadoEstudiosFormulario');
+    }
 }
 ?>
\ No newline at end of file


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/inf=
ormes/templates/alumnosPorDivisionFormularioSuccess.php
___________________________________________________________________
Name: svn:keywords
   - "Id Author URL Date Rev"
   + Id Date Author Rev URL


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/inf=
ormes/templates/alumnosPorDivisionListadoSuccess.php
___________________________________________________________________
Name: svn:keywords
   - "Id Author URL Date Rev"
   + Id Date Author Rev URL


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/inf=
ormes/templates/boletinFormularioSuccess.php
___________________________________________________________________
Name: svn:keywords
   - "Id Author URL Date Rev"
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/informes/template=
s/certificadoEstudiosBusquedaFormularioSuccess.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/c=
ertificadoEstudiosBusquedaFormularioSuccess.php	2007-02-16 17:50:42 UTC (=
rev 4239)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/c=
ertificadoEstudiosBusquedaFormularioSuccess.php	2007-02-16 18:45:30 UTC (=
rev 4240)
@@ -0,0 +1,57 @@
+<h1>Informe: Certificado de Estudios</h1>
+
+<?php echo form_tag('informes/certificadoEstudiosBusquedaFormulario', 'i=
d=3Dsf_admin_edit_form name=3Dsf_admin_edit_form multipart=3Dtrue') ?>
+
+<fieldset id=3D"sf_fieldset_none" class=3D"">
+    <div class=3D"form-row">
+        <?php echo label_for('Buscar', __('Buscar Alumnos:')) ?>
+        <?php echo input_tag('txt', $txt) ?>  =20
+    </div>
+</fieldset>
+
+ <ul class=3D"sf_admin_actions">
+  <li><?php echo submit_tag(__('Buscar'), array (
+  'name' =3D> 'Mostrar',
+  'class' =3D> 'sf_admin_action_save',
+)) ?></li>
+</ul>
+
+</form>
+
+
+<? if (count($aAlumno) > 0) {
+    if ($txt) { ?>
+    Ustde busco -<?=3D$txt?>-
+    <? } ?>
+<h1>Alumnos</h1>
+<table cellspacing=3D"0" class=3D"sf_admin_list">
+  <thead>
+  <tr>
+    <th id=3D"sf_admin_list_th_alumno"> Alumno</th>
+    <th id=3D"sf_admin_list_th_sf_actions">Ver Informe</th>
+  </tr>
+  </thead>
+
+  <tbody>
+<?
+    $i =3D 0;
+    foreach($aAlumno as $alumno){
+?>
+  <tr class=3D"sf_admin_row_0">
+    <td><?echo $alumno->alumno_apellido." ".$alumno->alumno_nombre; ?></=
td>
+    <td>
+    <ul class=3D"sf_admin_td_actions">
+     <li><?php echo link_to(image_tag('/sf/images/sf_admin/edit_icon.png=
', array('alt' =3D> 'editar', 'title' =3D> 'Editar')) , 'informes?action=3D=
certificadoEstudiosFormulario&alumno_id=3D'.$alumno->alumno_id); ?></li>
+    </ul>
+    </td>
+  </tr>
+  <? } ?>
+  </tbody>
+</table>
+
+<? } else {
+    if ($txt) { ?>
+        Su b&uacute;squeda por -<?=3D$txt?>- no ha encontrado alumnos.
+    <? }=20
+}=20
+?>
\ No newline at end of file


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/inf=
ormes/templates/certificadoEstudiosBusquedaFormularioSuccess.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/informes/template=
s/certificadoEstudiosFormularioSuccess.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/c=
ertificadoEstudiosFormularioSuccess.php	2007-02-16 17:50:42 UTC (rev 4239=
)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/c=
ertificadoEstudiosFormularioSuccess.php	2007-02-16 18:45:30 UTC (rev 4240=
)
@@ -0,0 +1,40 @@
+<h1>Informe: Certificado de Estudios para <?php echo $alumno->getApellid=
o().", ".$alumno->getNombre();?></h1>
+
+<?php if ($sf_request->hasErrors()) {?>
+<div class=3D"form-errors">
+<h2><?php echo __('There are some errors that prevent the form to valida=
te') ?></h2>
+<ul>
+<?php foreach ($sf_request->getErrorNames() as $name) { ?>
+  <li><?php echo $sf_request->getError($name) ?></li>
+<?php } ?>
+</ul>
+</div>
+<? } ?>=20
+
+<?php echo form_tag('informes/certificadoEstudiosListado', 'id=3Dsf_admi=
n_edit_form name=3Dsf_admin_edit_form multipart=3Dtrue') ?>
+<legend>Para generar el certificado de Estudios debe completar los sigui=
ente datos</legend>
+<fieldset id=3D"sf_fieldset_none" class=3D"">
+    <div class=3D"form-row">
+        <?php=20
+            echo label_for('anio', __('A&ntilde;o de Finalizaci&oacute;n=
:'));
+            echo select_year_tag('anio', '', 'include_custom=3DElija un =
a&ntilde;o year_end=3D'.$anio_hasta.' year_start=3D2005');
+        ?>
+    </div>
+    <div class=3D"form-row">
+        <?php echo label_for('estudios', __('A&ntilde;o de estudios:')) =
?>
+        <?php echo select_tag('grado', options_for_select($aAnio),0);?>
+    </div>
+</fieldset>
+
+<?php echo input_hidden_tag('alumno_id', $alumno->getId()) ?>
+
+ <ul class=3D"sf_admin_actions">
+  <li><?php echo submit_tag(__('Mostrar'), array (
+  'name' =3D> 'Mostrar',
+  'class' =3D> 'sf_admin_action_save',
+)) ?></li>
+</ul>
+
+</form>
+
+


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/inf=
ormes/templates/certificadoEstudiosFormularioSuccess.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/informes/template=
s/certificadoEstudiosListadoSuccess.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/c=
ertificadoEstudiosListadoSuccess.php	2007-02-16 17:50:42 UTC (rev 4239)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/templates/c=
ertificadoEstudiosListadoSuccess.php	2007-02-16 18:45:30 UTC (rev 4240)
@@ -0,0 +1,44 @@
+<?
+    use_helper('Misc');
+    $meses =3D Meses();
+?>
+<div style=3D"text-align: center;"><?=3Dimage_tag('small/escudo_bsas_chi=
co.jpg')?></div>
+<div style=3D"text-align: center;" class=3D"titulo">REP&Uacute;BLICA ARG=
ENTINA<br><br>
+<span style=3D"font-weight: bold;" class=3D"titulo">GOBIERNO DE LA CIUDA=
D DE BUENOS AIRES</span><br style=3D"font-weight: bold;">
+<span style=3D"font-weight: bold;" class=3D"titulo">SECRETAR&iacute;A DE=
 EDUCACION</span><br>
+<br>
+<span class=3D"subtitulo">CERTIFICADO DE ESTUDIOS</span><br>
+</div>
+<br>
+<br>
+
+<div class=3D"texto">
+Certifico que <?=3D$alumno->getApellido()?>, <?=3D$alumno->getNombre()?>=
  quien acredita identidad con <?=3D$alumno->getTipoDocumento()->getDescr=
ipcion()?> <br> N&deg; <?=3D$alumno->getNroDocumento()?> nacido  <?=3D($a=
lumno->getLugarNacimiento())?" en ".$alumno->getLugarNacimiento():"";?> e=
l <?=3Ddate("d",strtotime($alumno->getFechaNacimiento()))?> de <?=3D$mese=
s[date("n",strtotime($alumno->getFechaNacimiento()))]?> de  <?=3Ddate("Y"=
,strtotime($alumno->getFechaNacimiento()))?> aprob&oacute;  <?=3D$grado?>=
, como alumno <br>=20
+regular en <?=3Dstrtoupper($establecimiento->getNombre())?> en el a&ntil=
de;o <?=3D$anio?><br>
+<br>
+Se extiende el presente <span style=3D"font-weight: bold;">CERTIFICADO D=
E ESTUDIOS</span>, <br>
+en Buenos Aires, a los <?=3Ddate("d")?> d&iacute;as del mes de <?=3D$mes=
es[date("n")]?> del a&ntilde;o  <?=3Ddate("Y")?> <br>
+</div>
+
+<br>
+<br>
+<br>
+
+
+<table style=3D"text-align: left; width: 100%;" border=3D"0" cellpadding=
=3D"2" cellspacing=3D"2">
+  <tbody>
+    <tr>
+      <td style=3D"text-align: center;">................................=
..................<br>
+Firma del Maestro de Grado</td>
+      <td></td>
+      <td style=3D"text-align: center;">................................=
..................<br>
+Firma del Director de la Escuela</td>
+    </tr>
+    <tr>
+      <td></td>
+      <td style=3D"text-align: center;">................................=
..................<br>
+Firma del Supervisor</td>
+      <td></td>
+    </tr>
+  </tbody>
+</table>


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/inf=
ormes/templates/certificadoEstudiosListadoSuccess.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/informes/validate=
/certificadoEstudiosListado.yml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/validate/ce=
rtificadoEstudiosListado.yml	2007-02-16 17:50:42 UTC (rev 4239)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/validate/ce=
rtificadoEstudiosListado.yml	2007-02-16 18:45:30 UTC (rev 4240)
@@ -0,0 +1,15 @@
+methods:
+    post: [ alumno_id, anio, grado ]
+
+names:
+    grado:
+        required:     Yes
+        required_msg: El grado/a&ntilde;o es obligatorio
+
+    alumno_id:
+        required:     Yes
+        required_msg: El Alumno es obligatorio
+
+    anio:
+        required:     Yes
+        required_msg: El A&ntilde;o es obligatorio


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/inf=
ormes/validate/certificadoEstudiosListado.yml
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Modified: prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.s=
ql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql	200=
7-02-16 17:50:42 UTC (rev 4239)
+++ prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql	200=
7-02-16 18:45:30 UTC (rev 4240)
@@ -46,7 +46,7 @@
 (29, '-', '#', '', 10, 50, ''),
 (30, 'Salir', 'seguridad/logout', '', 1, 90, ''),
 (31, 'Definir Escala de notas', 'escalanota', 'escalanota', 84, 30, ''),
-(32, 'Definir Categor&iacute;=ADas del Bolet=C3&iacute;n de Concepto', '=
concepto', 'concepto', 84, 50, ''),
+(32, 'Definir Categor&iacute;as del Bolet=EF=BF=BDiacute;n de Concepto',=
 'concepto', 'concepto', 84, 50, ''),
 (33, 'Buscar Alumno para...', 'legajopedagogico', 'legajopedagogico', 4,=
 20, ''),
 (34, 'Tipos de entrada al legajo pedag&oacute;gico', 'legajocategoria', =
'legajocategoria', 84, 40, ''),
 (35, 'Ingresar Nuevo', 'alumno/create', 'alumno', 4, 0, ''),
@@ -96,8 +96,10 @@
 (88, 'Listar Todos', 'alumno/list', 'alumno', 4, 2, ''),
 (89, 'Tipo Documento', 'tipodocumento', '', 83, 40, ''),
 (90, 'Alumnos por divsi&oacute;n', 'informes/alumnosPorDivisionFormulari=
o?vista=3Dimprimir', 'informes', 9, 0, '_blank'),
-(91, 'Boletines', 'informes/boletinFormulario', 'informes', 9, 0, '_blan=
k');
+(91, 'Boletines', 'informes/boletinFormulario', 'informes', 9, 0, '_blan=
k'),
+(92, 'Certificado de Estudios', 'informes/certificadoEstudiosBusquedaFor=
mulario', 'informes', 9, 0, '_blank');
=20
+
 ALTER TABLE locacion ADD `principal` TINYINT(1) NOT NULL DEFAULT '0';
=20
 ALTER TABLE `alumno` ADD `lugar_nacimiento` VARCHAR( 128 ) NOT NULL AFTE=
R `id` ,

Modified: prosistem/alba/trunk/alba/data/sql/datos_desde_cero.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/data/sql/datos_desde_cero.sql	2007-02-16 17=
:50:42 UTC (rev 4239)
+++ prosistem/alba/trunk/alba/data/sql/datos_desde_cero.sql	2007-02-16 18=
:45:30 UTC (rev 4240)
@@ -219,8 +219,11 @@
 (88, 'Listar Todos', 'alumno/list', 'alumno', 4, 2, ''),
 (89, 'Tipo Documento', 'tipodocumento', '', 83, 40, ''),
 (90, 'Alumnos por divsi&oacute;n', 'informes/alumnosPorDivisionFormulari=
o?vista=3Dimprimir', 'informes', 9, 0, '_blank'),
-(91, 'Boletines', 'informes/boletinFormulario', 'informes', 9, 0, '_blan=
k');
+(91, 'Boletines', 'informes/boletinFormulario', 'informes', 9, 0, '_blan=
k')
+(92, 'Certificado de Estudios', 'informes/certificadoEstudiosBusquedaFor=
mulario', 'informes', '9', '0', '_blank'),
+);
=20
+
 --=20
 -- Volcar la base de datos para la tabla 'modulo'
 --=20




Más información sobre la lista de distribución Alba-desarrollo