Commit f40d95f17bb8f493c2d2be5d2d606c5f3efc25bf
1 parent
aca9a4fcb2
Exists in
master
creada la solicitud de reconocimiento de antiguedad
Showing
6 changed files
with
293 additions
and
32 deletions
Show diff stats
app/Resources/views/base_app.html.twig
... | ... | @@ -51,8 +51,22 @@ |
51 | 51 | <div class="subnavbar-inner"> |
52 | 52 | <div class="container"> |
53 | 53 | <ul class="mainnav"> |
54 | - <li {% if (app.request.attributes.get('_route') == 'cea_index') %} class="active" {% endif %}><a href="{{path('cea_index')}}"><i class="fa fa-list"></i><span>Principal</span> </a> </li> | |
55 | - {% if is_granted('ROLE_COORDINADOR_NACIONAL') %} | |
54 | + <li {% if (app.request.attributes.get('_route') == 'cea_index') %} class="active" {% endif %}><a href="{{path('cea_index')}}"><i class="fa fa-list"></i><span>Principal</span> </a> </li> | |
55 | + {% if is_granted('ROLE_ADSCRITO') %} | |
56 | + <li class="dropdown"> | |
57 | + <a class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-dashboard"></i> | |
58 | + <span>Servicios Docente</span> <b class="caret"></b> | |
59 | + </a> | |
60 | + <ul class="dropdown-menu"> | |
61 | + <li><a href="{{ path('servicios_index') }}">Mis Servicios</a></li> | |
62 | + <li><a href="#">Solicitar Ascenso</a></li> | |
63 | + <li><a href="{{ path('cea_solicitudes_recocimiento_antiguedad') }}">Reconocimiento de Antiguedad</a></li> | |
64 | + </ul> | |
65 | + </li> | |
66 | + {% endif %} | |
67 | + </ul> | |
68 | + <ul class="pull-right"> | |
69 | + {% if is_granted('ROLE_COORDINADOR_NACIONAL') %} | |
56 | 70 | <li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-dashboard"></i><span>Ver Adscripciones</span> <b class="caret"></b></a> |
57 | 71 | <ul class="dropdown-menu"> |
58 | 72 | <li> <a data-toggle="modal" data-target="#buscarAdscripcion">Buscar Adscripcion</a></li> |
... | ... | @@ -70,21 +84,8 @@ |
70 | 84 | <li><a href="{{ path('cea_servicios', { 'tipo' : 'antiguedad', 'estatus': 3 })}}">Rechazadas</a></li> |
71 | 85 | </ul> |
72 | 86 | </li> |
73 | - | |
87 | + </ul> | |
74 | 88 | {% endif %} |
75 | - {% if is_granted('ROLE_ADSCRITO') %} | |
76 | - <li class="dropdown"> | |
77 | - <a class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-dashboard"></i> | |
78 | - <span>Solicitudes</span> <b class="caret"></b> | |
79 | - </a> | |
80 | - <ul class="dropdown-menu"> | |
81 | - <li><a href="icons.html">Adscripción</a></li> | |
82 | - <li><a href="faq.html">Ascenso</a></li> | |
83 | - <li><a href="{{ path('cea_solicitudes_recocimiento_antiguedad') }}">Reconocimiento de Antiguedad</a></li> | |
84 | - </ul> | |
85 | - </li> | |
86 | - {% endif %} | |
87 | - </ul> | |
88 | 89 | </div> |
89 | 90 | <!-- /container --> |
90 | 91 | </div> | ... | ... |
app/Resources/views/base_memo.html.twig
... | ... | @@ -6,25 +6,203 @@ |
6 | 6 | {% block stylesheets %} |
7 | 7 | <link rel="stylesheet" href="{{ asset('assets/vendor/bootstrap/dist/css/bootstrap.min.css') }}"> |
8 | 8 | <link rel="stylesheet" href="{{ asset('assets/vendor/font-awesome/css/font-awesome.min.css') }}"> |
9 | + <style> | |
10 | + p{ | |
11 | + padding: 0; | |
12 | + margin: 0; | |
13 | + } | |
14 | + | |
15 | + | |
16 | + .cuerpo-memo{ | |
17 | + line-height: 23px; | |
18 | + text-indent: 30px; | |
19 | + padding: 10px; | |
20 | + } | |
21 | + | |
22 | + header p{ | |
23 | + font-size: 12px; | |
24 | + } | |
25 | + | |
26 | + .firma{ | |
27 | + margin-top: 60px; | |
28 | + } | |
29 | + .firma p{ | |
30 | + | |
31 | + font-size: 10px; | |
32 | + } | |
33 | + | |
34 | + footer{ | |
35 | + margin-top:20px; | |
36 | + } | |
37 | + | |
38 | + footer p{ | |
39 | + font-size: 10px; | |
40 | + } | |
41 | + </style> | |
9 | 42 | {% endblock %} |
10 | 43 | <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> |
11 | 44 | </head> |
12 | 45 | <body > |
13 | - {% block encabezado %} | |
14 | - <header> | |
15 | - <div class="row"> | |
16 | - <div class="col-sm-4"> | |
17 | - <img src="{{ asset('bundles/framework/images/portal/ubv_logo.png')}}" /> | |
46 | + <div class="container"> | |
47 | + {% block encabezado %} | |
48 | + | |
49 | + <header> | |
50 | + <table> | |
51 | + <tr> | |
52 | + <td> | |
53 | + <div > | |
54 | + <img width="50%" src="{{ asset('bundles/framework/images/portal/logo_ubv.png')}}" /> | |
55 | + </div> | |
56 | + </td> | |
57 | + <td> | |
58 | + <div> | |
59 | + <p>República Bolivariana de Venezuela</p> | |
60 | + <p>Universidad Bolivariana de Venezuela</p> | |
61 | + <p>Rectorado</p> | |
62 | + <p>Dirección General de Apoyo Socio Administrativo</p> | |
63 | + </div> | |
64 | + </td> | |
65 | + </tr> | |
66 | + </table> | |
67 | + </header> | |
68 | + | |
69 | + {% endblock %} | |
70 | + | |
71 | + <div class="row"> | |
72 | + <div class="text-right"> | |
73 | + <p><strong>{%block numero %}CEA-N°-019-2016 {% endblock %}</strong></p> | |
74 | + </div> | |
75 | + </div> | |
76 | + | |
77 | + <div class="row"> | |
78 | + <div class="text-center"> | |
79 | + <p><strong>M E M O R A N D O</strong></p> | |
80 | + </div> | |
81 | + </div> | |
82 | + <div class="content" style="border-bottom: solid 2px;"> | |
83 | + <table > | |
84 | + <tr> | |
85 | + <td> | |
86 | + <p>Para: </p> | |
87 | + </td> | |
88 | + <td> | |
89 | + <p> {% block para %}{%endblock%} </p> | |
90 | + </td> | |
91 | + | |
92 | + </tr> | |
93 | + | |
94 | + <tr> | |
95 | + <td> | |
96 | + De: | |
97 | + </td> | |
98 | + <td> | |
99 | + {% block coordinador %}{%endblock%} | |
100 | + </td> | |
101 | + | |
102 | + </tr> | |
103 | + | |
104 | + <tr> | |
105 | + <td> | |
106 | + Asunto: | |
107 | + </td> | |
108 | + <td> | |
109 | + {% block asunto %}{%endblock%} | |
110 | + </td> | |
111 | + | |
112 | + </tr> | |
113 | + | |
114 | + <tr> | |
115 | + <td> | |
116 | + Fecha: | |
117 | + </td> | |
118 | + <td> | |
119 | + <p>{% block fecha %}{%endblock%} | |
120 | + </td> | |
121 | + | |
122 | + </tr> | |
123 | + | |
124 | + </table> | |
125 | + </div> | |
126 | + | |
127 | + <p class="text-justify cuerpo-memo">Reciba un cordial saludo bolivariano y revolucionario de parte del equipo | |
128 | + de trabajo de este Centro de Estudios Ambientales. La presente es para | |
129 | + informar que este Centro reconoce su antigüedad con fines de ascenso en | |
130 | + escalafones de la carrera universitaria en esta Institución tomando en cuenta | |
131 | + la resolución de Consejo Universitario <strong>Nº11-42-2015</strong> | |
132 | + de fecha 08/07/2015 que establece en su primer resuelve | |
133 | + <i>"Aprobar que la antigüedad administrativa total, acumulada en el lapso | |
134 | + transcurrido entre el primer contrato como trabajador académico y el | |
135 | + Concurso de Oposición, se reconoce a las y los trabajadores académicos de | |
136 | + la UBV, con fines académicos (ascenso en el Escalafón Docente), | |
137 | + por única vez, los años, los meses y los días faltantes para satisfacer | |
138 | + la permanencia legal exigida en el correspondiente escalafón que tuviese | |
139 | + el trabajador académico en el momento de hacer su solicitud de ascenso | |
140 | + inmediato".</i> | |
141 | + | |
142 | + <br> En tal sentido, tomando la información | |
143 | + suministrada por Usted se tiene que: </p> | |
144 | + | |
145 | + <table class="table table-bordered"> | |
146 | + <tr> | |
147 | + <td> | |
148 | + Fecha Primera Contratatación UBV | |
149 | + </td> | |
150 | + <td> | |
151 | + {% block fecha_contratacion %} {%endblock %} | |
152 | + </td> | |
153 | + </tr> | |
154 | + | |
155 | + <tr> | |
156 | + <td> | |
157 | + Fecha Aprobación Concurso de Oposición | |
158 | + </td> | |
159 | + <td> | |
160 | + {% block fecha_oposicion %} {%endblock %} | |
161 | + </td> | |
162 | + </tr> | |
163 | + </table> | |
164 | + <p class="text-justify"> Por lo tanto desde su primera contratación | |
165 | + en la UBV hasta el Concurso de Oposición <strong>se reconoce una antigüedad de | |
166 | + {%block antiguedad %}{%endblock%}</strong></p> | |
167 | + <p class="text-justify">Sin más a que hacer referencia, y dándole las gracias por su atención se despide. </p> | |
168 | + <div class="text-center firma"> | |
169 | + | |
170 | + <p>Mgs. Alexis Lozada</p> | |
171 | + <p>Director (E) del Centro de Estudios Ambientales </p> | |
172 | + <p>Resolución del Consejo Universitario N° CU-10-68.</p> | |
173 | + <p>Acta N° 10 de fecha 17 de junio de 2015</p> | |
174 | + | |
175 | + </div> | |
176 | + | |
177 | + {% block pie %} | |
178 | + | |
179 | + <footer> | |
180 | + <div class="row "> | |
181 | + | |
182 | + <div class="col-xs-10 text-right"> | |
183 | + <p>Av. Leonardo Da Vinci</p> | |
184 | + <p>Edif. Universidad Bolivariana de Venezuela</p> | |
185 | + <p>Piso 8. Los Chaguaramos</p> | |
186 | + <p>Telf. 0212- 606.3449</p> | |
187 | + <p>RIF. G - 20003773-3</p> | |
188 | + <p>www.ubv.edu.ve - @ubv</p> | |
189 | + <p class="text-center">"Sembramos Saberes Cosechamos Patria"</p> | |
18 | 190 | </div> |
19 | - <div class="col-sm-4 col-lg-offset-3"> | |
20 | - <p>República Bolivariana de Venezuela</p> | |
21 | - <p>Universidad Bolivariana de Venezuela</p> | |
22 | - <p>Rectorado</p> | |
23 | - <p>Dirección General de Apoyo Socio Administrativo</p> | |
191 | + <div class="col-xs-2 push-left"> | |
192 | + <img width="10%" src="{{ asset('bundles/framework/images/portal/logo_ubv.png')}}" /> | |
193 | + </div> | |
194 | + | |
195 | + | |
24 | 196 | </div> |
25 | - </div> | |
26 | - </header> | |
27 | - {% endblock %} | |
197 | + | |
198 | + | |
199 | + | |
200 | + </div> | |
201 | + </footer> | |
202 | + | |
203 | + {% endblock %} | |
204 | + | |
205 | + </div><!-- Containter --> | |
28 | 206 | {% block body %} |
29 | 207 | |
30 | 208 | {% block principal %} {% endblock %} | ... | ... |
app/Resources/views/memorando/antiguedad.html.twig
1 | 1 | {% extends 'base_memo.html.twig' %} |
2 | 2 | |
3 | +{% block para %} | |
4 | + {{adscripcion.idRolInstitucion.idRol.idPersona.primerNombre}} | |
5 | + {{adscripcion.idRolInstitucion.idRol.idPersona.segundoNombre}} | |
6 | + {{adscripcion.idRolInstitucion.idRol.idPersona.primerApellido}} | |
7 | + {{adscripcion.idRolInstitucion.idRol.idPersona.segundoApellido}} | |
8 | + ({{adscripcion.idRolInstitucion.idRol.idPersona.cedulaPasaporte}}) | |
9 | + <br>Trabajador Académico adscrito al Centro de Estudios Ambientales | |
10 | +{%endblock %} | |
3 | 11 | |
12 | +{% block coordinador %} | |
13 | + Prof. Alexis Lozada | |
14 | + <br>Director (E) Del Centro de Estudios Ambientales. | |
15 | +{% endblock %} | |
16 | + | |
17 | + | |
18 | +{% block asunto %} | |
19 | + Reconocimiento de Antiguedad | |
20 | +{%endblock%} | |
21 | + | |
22 | +{% block fecha %} | |
23 | + {{ "now"|date("d/m/Y") }} | |
24 | +{%endblock%} | |
25 | + | |
26 | + {% block fecha_contratacion %} | |
27 | + {{adscripcion.fechaIngreso | date("d-M-Y")}} | |
28 | + {%endblock %} | |
29 | + | |
30 | + | |
31 | + {% for e in escala %} | |
32 | + | |
33 | + {%if e.idTipoEscala == 1 %} | |
34 | + {% block fecha_oposicion %} | |
35 | + {{escala.fechaEscala | date("d-M-Y")}} | |
36 | + {%endblock %} | |
37 | + {% endif %} | |
38 | + | |
39 | + {%endfor %} | |
40 | + | |
41 | + {%block antiguedad %} | |
42 | + {{ diferencia }} | |
43 | + {%endblock%} | ... | ... |
app/Resources/views/solicitudes/index.html.twig
... | ... | @@ -10,6 +10,10 @@ |
10 | 10 | <div class="alert alert-warning">{{ message }}</div> |
11 | 11 | {%endfor %} |
12 | 12 | |
13 | + {% for message in app.session.flashBag.get('danger') %} | |
14 | + <div class="alert alert-danger">{{ message }}</div> | |
15 | + {%endfor %} | |
16 | + | |
13 | 17 | <div class="widget widget-table action-table"> |
14 | 18 | <div class="widget-header"> <i class="icon-th-list"></i> |
15 | 19 | <h3>Mis Servicios Solicitados</h3> | ... | ... |
src/AppBundle/Controller/AppController.php
... | ... | @@ -374,14 +374,52 @@ class AppController extends Controller { |
374 | 374 | * Muestra la página donde explica brevemente el reconocimiento de Antiguedad |
375 | 375 | * y permite realizar la solicitud |
376 | 376 | * |
377 | - * @Route("/mis_servicios/antiguedad/imprimir", name="servicio_antiguedad_imprimir") | |
377 | + * @Route("/mis_servicios/antiguedad/imprimir/{id}", name="servicio_antiguedad_imprimir") | |
378 | 378 | * @Method({"GET", "POST"}) |
379 | 379 | */ |
380 | 380 | public function solicitudesAntiguedadImprimirAction(){ |
381 | 381 | |
382 | - return $this->render('memorando/antiguedad.html.twig'); | |
382 | + $antiguedad = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneByIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | |
383 | + | |
384 | + if($antiguedad->getIdEstatus()->getId() == 1){ | |
385 | + $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($antiguedad->getIdRolInstitucion()); | |
386 | + $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findOneByIdRolInstitucion($antiguedad->getIdRolInstitucion()); | |
387 | + $idRol = $escala->getIdRolInstitucion()->getId(); | |
388 | + $stmt = $this->getDoctrine()->getManager() | |
389 | + ->getConnection() | |
390 | + ->prepare("select age(e.fecha_escala, a.fecha_ingreso), | |
391 | + date_part('year',age(e.fecha_escala, a.fecha_ingreso)) as anos, | |
392 | + date_part('month',age(e.fecha_escala, a.fecha_ingreso)) as meses, | |
393 | + date_part('day',age(e.fecha_escala, a.fecha_ingreso)) as dias | |
394 | + FROM docente_escala as e | |
395 | + INNER JOIN solicitud_adscripcion as a | |
396 | + ON a.id_rol_institucion = e.id_rol_institucion | |
397 | + WHERE e.id_tipo_escala = '1' AND a.id_rol_institucion = $idRol"); | |
398 | + $stmt->execute(); | |
399 | + $result = $stmt->fetchAll(); | |
400 | + $recon = $result[0]['anos'] . " años " . $result[0]['meses'] . " meses y " . $result[0]['dias'] . " días."; | |
401 | + | |
402 | + | |
403 | + return $this->render('memorando/antiguedad.html.twig', array( | |
404 | + 'antiguedad' => $antiguedad, | |
405 | + 'adscripcion' => $adscripcion, | |
406 | + 'escala' => $escala, | |
407 | + 'diferencia' => $recon | |
408 | + )); | |
409 | + }else{ | |
410 | + | |
411 | + } | |
412 | + | |
413 | + $this->addFlash('danger', 'No Puede Imprimir el reconocimiento de Antiguedad hasta que esté aprobado por el coordinador del CEA.'); | |
414 | + | |
415 | + $servicios = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findByIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | |
416 | + $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findByIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | |
383 | 417 | |
384 | 418 | |
419 | + return $this->render('solicitudes/index.html.twig', array( | |
420 | + 'servicios' => $servicios, | |
421 | + 'adscripcion' => $adscripcion | |
422 | + )); | |
385 | 423 | |
386 | 424 | } |
387 | 425 | ... | ... |
src/AppBundle/Entity/DocenteEscala.php
... | ... | @@ -65,7 +65,7 @@ class DocenteEscala |
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | - /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de obtencion de la escala"}) | |
68 | + /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de obtencion de la escala"}) | |
69 | 69 | /** |
70 | 70 | * @Assert\Date() |
71 | 71 | */ | ... | ... |