parroquia 1.1.14 → 1.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parroquia/sacramentos/actualizar_misa.rb +18 -18
- data/lib/parroquia/sacramentos/resultados.rb +22 -31
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b8c5ec1b5541215316be18e8cd9e3a224a77d671fa0a6df81822b8ce3ef6a2d
|
4
|
+
data.tar.gz: a9b2eba679c7afce7e338aec3b5e39db4312179344f15a1e1f3918d8f1b974eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe5b13de6e918d58bbe0b903f05f105a271dd2d847edac568dc98c434fda2cc0377878bfd9daddb890ac74ce66fe5975080d6115e7c65d9f54637f2539ddfb03
|
7
|
+
data.tar.gz: ff89ec28c1f73806e21819f5ccb8d9fc5629cffa44e6ff5ea3d6ecc794f13c6eed3c9975f4a9b3a4d8e04952525ae30b98f4a5b0c8586682d18bfc29f63bb1f7
|
@@ -5,29 +5,29 @@ include Fox
|
|
5
5
|
class ActualizarMisa < FXMainWindow
|
6
6
|
def initialize(app, registro)
|
7
7
|
@registro = registro
|
8
|
-
super(app, 'Parroquia San Judas Tadeo', width:
|
8
|
+
super(app, 'Parroquia San Judas Tadeo', width: 700, height: 370)
|
9
9
|
self.backColor = FXRGB(3, 187, 133)
|
10
10
|
# Title
|
11
11
|
@lbltitle = FXLabel.new(self, 'Bienvenido a la Parroquia San Judas Tadeo',
|
12
|
-
opts: LAYOUT_EXPLICIT | JUSTIFY_CENTER_X, width:
|
12
|
+
opts: LAYOUT_EXPLICIT | JUSTIFY_CENTER_X, width: 700, height: 20, x: 0, y: 20)
|
13
13
|
@lbltitle.font = FXFont.new(app, 'Geneva', 16, FONTWEIGHT_BOLD)
|
14
14
|
@lbltitle.backColor = FXRGB(3, 187, 133)
|
15
15
|
# Subtitle
|
16
16
|
@lblsubtitle = FXLabel.new(self, 'ARQUIDIOSESIS DE QUITO - SERVICIO PARROQUIAL DE SAN JUDAS TADEO',
|
17
|
-
opts: LAYOUT_EXPLICIT | JUSTIFY_CENTER_X, width:
|
17
|
+
opts: LAYOUT_EXPLICIT | JUSTIFY_CENTER_X, width: 700, height: 20, x: 0, y: 40)
|
18
18
|
@lblsubtitle.font = FXFont.new(app, 'Geneva', 10, FONTWEIGHT_BOLD)
|
19
19
|
@lblsubtitle.backColor = FXRGB(3, 187, 133)
|
20
20
|
# Date
|
21
21
|
@date = Time.now.strftime('%d/%m/%Y')
|
22
22
|
@lbldate = FXLabel.new(self, "Fecha: #{cambiar_formato_fecha(@date)}", opts: LAYOUT_EXPLICIT | JUSTIFY_RIGHT,
|
23
|
-
width:
|
23
|
+
width: 700, height: 20, x: 0, y: 60, padRight: 20)
|
24
24
|
@lbldate.font = FXFont.new(app, 'Geneva', 12, FONTWEIGHT_BOLD)
|
25
25
|
@lbldate.backColor = FXRGB(3, 187, 133)
|
26
26
|
# section datos
|
27
27
|
@lbl_sacramento = FXLabel.new(self, 'Sacramento: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
28
|
-
x:
|
28
|
+
x: 10, y: 150)
|
29
29
|
@lbl_sacramento.backColor = FXRGB(3, 187, 133)
|
30
|
-
@input_sacramento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
30
|
+
@input_sacramento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
31
31
|
y: 150)
|
32
32
|
@input_sacramento.text = @registro[1]
|
33
33
|
@input_sacramento.disable
|
@@ -37,17 +37,17 @@ class ActualizarMisa < FXMainWindow
|
|
37
37
|
@input_parroquia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
38
38
|
y: 180)
|
39
39
|
@input_parroquia.text = @registro[25]
|
40
|
-
@lbl_sector = FXLabel.new(self, 'Sector: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
40
|
+
@lbl_sector = FXLabel.new(self, 'Sector: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 330,
|
41
41
|
y: 180)
|
42
42
|
@lbl_sector.backColor = FXRGB(3, 187, 133)
|
43
|
-
@input_sector = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
43
|
+
@input_sector = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 490,
|
44
44
|
y: 180)
|
45
45
|
@input_sector.text = @registro[26]
|
46
46
|
@lbl_parroco = FXLabel.new(self, 'Celebranteo: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
47
|
-
x:
|
47
|
+
x: 10, y: 210)
|
48
48
|
@lbl_parroco.backColor = FXRGB(3, 187, 133)
|
49
|
-
@input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
50
|
-
y:
|
49
|
+
@input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
50
|
+
y: 210)
|
51
51
|
@input_parroco.text = @registro[27]
|
52
52
|
@lbl_intencion = FXLabel.new(self, 'Intención: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
53
53
|
y: 240)
|
@@ -56,23 +56,23 @@ class ActualizarMisa < FXMainWindow
|
|
56
56
|
y: 240)
|
57
57
|
@input_intencion.text = @registro[38]
|
58
58
|
@lbl_fecha = FXLabel.new(self, 'Fecha de la misa (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT, width: 250,
|
59
|
-
height: 20, x:
|
59
|
+
height: 20, x: 10, y: 300)
|
60
60
|
@lbl_fecha.backColor = FXRGB(3, 187, 133)
|
61
|
-
@input_fecha = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
62
|
-
y:
|
61
|
+
@input_fecha = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 280,
|
62
|
+
y: 270)
|
63
63
|
@input_fecha.text = @registro[39]
|
64
|
-
@lbl_hora = FXLabel.new(self, 'Hora (HH:MM): ', opts: LAYOUT_EXPLICIT, width:
|
64
|
+
@lbl_hora = FXLabel.new(self, 'Hora (HH:MM): ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
65
65
|
y: 300)
|
66
66
|
@lbl_hora.backColor = FXRGB(3, 187, 133)
|
67
|
-
@input_hora = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
67
|
+
@input_hora = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
68
68
|
y: 300)
|
69
69
|
@input_hora.text = @registro[40]
|
70
70
|
|
71
71
|
# create buttons
|
72
72
|
@btnupdate = FXButton.new(self, 'Actualizar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
73
|
-
x:
|
73
|
+
x: 480, y: 330)
|
74
74
|
@btncancel = FXButton.new(self, 'Cancelar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
75
|
-
x:
|
75
|
+
x: 590, y: 330)
|
76
76
|
|
77
77
|
# connect buttons
|
78
78
|
@btnupdate.connect(SEL_COMMAND) do
|
@@ -210,13 +210,13 @@ class ResultadosConsulta < FXMainWindow
|
|
210
210
|
FXMessageBox.warning(self, MBOX_OK, 'Advertencia', 'Debe seleccionar al menos un registro')
|
211
211
|
else
|
212
212
|
# Genera el archivo PDF
|
213
|
-
Prawn::Document.generate(@archivo_pdf, margin: [
|
213
|
+
Prawn::Document.generate(@archivo_pdf, margin: [100, 100, 100, 100]) do |pdf|
|
214
214
|
pdf.font 'Helvetica'
|
215
215
|
pdf.font_size 12
|
216
216
|
# Definir tres casos en los que se puede imprimir el certificado y los distintos formatos para bautismo, confirmación y matrimonio
|
217
217
|
# Bautismo
|
218
218
|
# Encabezado
|
219
|
-
pdf.image File.join(File.dirname(__FILE__), '../assets/images/arquidiocesisquito.png'), height:
|
219
|
+
pdf.image File.join(File.dirname(__FILE__), '../assets/images/arquidiocesisquito.png'), height: 80,
|
220
220
|
position: :absolute, at: [-60, 680]
|
221
221
|
pdf.text_box 'Arquidiócesis de Quito', align: :center, size: 16, style: :bold, at: [10, 670],
|
222
222
|
width: pdf.bounds.width
|
@@ -224,12 +224,13 @@ class ResultadosConsulta < FXMainWindow
|
|
224
224
|
at: [10, 650], width: pdf.bounds.width
|
225
225
|
pdf.text_box "Jaime Roldós Aguilera, calle Oe13A y N82\nEl Condado, Quito - Ecuador\nTeléfono: 02496446",
|
226
226
|
align: :center, size: 10, at: [10, 630], width: pdf.bounds.width
|
227
|
-
pdf.image File.join(File.dirname(__FILE__), '../assets/images/sanjudastadeo.png'), height:
|
227
|
+
pdf.image File.join(File.dirname(__FILE__), '../assets/images/sanjudastadeo.png'), height: 80,
|
228
228
|
position: :absolute, at: [430, 680]
|
229
229
|
|
230
230
|
case registros_seleccionados[0][1]
|
231
231
|
when 'Bautismo'
|
232
232
|
# Título del certificado en color rojo
|
233
|
+
pdf.move_down 20
|
233
234
|
pdf.text 'CERTIFICADO DE BAUTISMO', align: :center, size: 20, style: :bold, color: 'FF0000'
|
234
235
|
pdf.move_down 20
|
235
236
|
registros_seleccionados.each do |registro|
|
@@ -274,7 +275,7 @@ class ResultadosConsulta < FXMainWindow
|
|
274
275
|
pdf.text "CERTIFICA: #{registro[4]}.", align: :justify
|
275
276
|
pdf.move_down 10
|
276
277
|
# Registro civil
|
277
|
-
pdf.text 'REGISTRO CIVIL', align: :center, size:
|
278
|
+
pdf.text 'REGISTRO CIVIL', align: :center, size: 14, style: :bold
|
278
279
|
pdf.move_down 10
|
279
280
|
pdf.text "Provincia: #{registro[29]}, Cantón: #{registro[30]}, Parroquia: #{registro[31]}",
|
280
281
|
align: :justify
|
@@ -284,18 +285,16 @@ class ResultadosConsulta < FXMainWindow
|
|
284
285
|
pdf.move_down 10
|
285
286
|
# Datos tomados fielmente de original
|
286
287
|
pdf.text 'Datos tomados fielmente del original', align: :center
|
287
|
-
pdf.move_down
|
288
|
+
pdf.move_down 30
|
288
289
|
# Firma del párroco
|
289
290
|
pdf.text '_______________________________', align: :center
|
290
|
-
pdf.move_down 10
|
291
291
|
# Nombre del párroco
|
292
292
|
pdf.text (registro[27]).to_s, align: :center
|
293
|
-
pdf.move_down 10
|
294
293
|
# Parroco
|
295
294
|
pdf.text 'Párroco', align: :center
|
296
|
-
pdf.move_down 10
|
297
295
|
end
|
298
296
|
when 'Comunión'
|
297
|
+
pdf.move_down 20
|
299
298
|
pdf.text 'CERTIFICADO DE PRIMERA COMUNIÓN', align: :center, size: 20, style: :bold,
|
300
299
|
color: 'FF0000'
|
301
300
|
pdf.move_down 20
|
@@ -330,18 +329,17 @@ class ResultadosConsulta < FXMainWindow
|
|
330
329
|
pdf.move_down 10
|
331
330
|
# Datos tomados fielmente de original
|
332
331
|
pdf.text 'Datos tomados fielmente del original', align: :center
|
333
|
-
pdf.move_down
|
332
|
+
pdf.move_down 40
|
334
333
|
# Firma del párroco
|
335
334
|
pdf.text '_______________________________', align: :center
|
336
335
|
pdf.move_down 10
|
337
336
|
# Nombre del párroco
|
338
337
|
pdf.text (registro[27]).to_s, align: :center
|
339
|
-
pdf.move_down 10
|
340
338
|
# Parroco
|
341
339
|
pdf.text 'Párroco', align: :center
|
342
|
-
pdf.move_down 10
|
343
340
|
end
|
344
341
|
when 'Confirmación'
|
342
|
+
pdf.move_down 20
|
345
343
|
pdf.text 'CERTIFICADO DE CONFIRMACIÓN', align: :center, size: 20, style: :bold, color: 'FF0000'
|
346
344
|
pdf.move_down 20
|
347
345
|
registros_seleccionados.each do |registro|
|
@@ -367,18 +365,17 @@ class ResultadosConsulta < FXMainWindow
|
|
367
365
|
pdf.move_down 10
|
368
366
|
# Datos tomados fielmente de original
|
369
367
|
pdf.text 'Datos tomados fielmente del original', align: :center
|
370
|
-
pdf.move_down
|
368
|
+
pdf.move_down 40
|
371
369
|
# Firma del párroco
|
372
370
|
pdf.text '_______________________________', align: :center
|
373
371
|
pdf.move_down 10
|
374
372
|
# Nombre del párroco
|
375
373
|
pdf.text (registro[27]).to_s, align: :center
|
376
|
-
pdf.move_down 10
|
377
374
|
# Parroco
|
378
375
|
pdf.text 'Párroco', align: :center
|
379
|
-
pdf.move_down 10
|
380
376
|
end
|
381
377
|
when 'Matrimonio'
|
378
|
+
pdf.move_down 20
|
382
379
|
pdf.text 'CERTIFICADO DE MATRIMONIO', align: :center, size: 20, style: :bold, color: 'FF0000'
|
383
380
|
pdf.move_down 20
|
384
381
|
registros_seleccionados.each do |registro|
|
@@ -420,7 +417,7 @@ class ResultadosConsulta < FXMainWindow
|
|
420
417
|
pdf.text "CERTIFICA: #{registro[4]}.", align: :justify
|
421
418
|
pdf.move_down 10
|
422
419
|
# Registro civil
|
423
|
-
pdf.text 'REGISTRO CIVIL', align: :center, size:
|
420
|
+
pdf.text 'REGISTRO CIVIL', align: :center, size: 14, style: :bold
|
424
421
|
pdf.move_down 10
|
425
422
|
pdf.text "Provincia: #{registro[29]}, Cantón: #{registro[30]}, Parroquia: #{registro[31]}",
|
426
423
|
align: :justify
|
@@ -430,18 +427,17 @@ class ResultadosConsulta < FXMainWindow
|
|
430
427
|
pdf.move_down 10
|
431
428
|
# Datos tomados fielmente de original
|
432
429
|
pdf.text 'Datos tomados fielmente del original', align: :center
|
433
|
-
pdf.move_down
|
430
|
+
pdf.move_down 30
|
434
431
|
# Firma del párroco
|
435
432
|
pdf.text '_______________________________', align: :center
|
436
433
|
pdf.move_down 10
|
437
434
|
# Nombre del párroco
|
438
435
|
pdf.text (registro[27]).to_s, align: :center
|
439
|
-
pdf.move_down 10
|
440
436
|
# Parroco
|
441
437
|
pdf.text 'Párroco', align: :center
|
442
|
-
pdf.move_down 10
|
443
438
|
end
|
444
439
|
when 'Partida Supletoria del Bautismo'
|
440
|
+
pdf.move_down 20
|
445
441
|
pdf.text 'CERTIFICADO DE PARTIDA SUPLETORIA DEL BAUTISMO', align: :center, size: 20, style: :bold,
|
446
442
|
color: 'FF0000'
|
447
443
|
pdf.move_down 20
|
@@ -469,7 +465,7 @@ class ResultadosConsulta < FXMainWindow
|
|
469
465
|
pdf.text "Fueron sus padrinos: #{registro[5]} y #{registro[6]}.", align: :justify
|
470
466
|
pdf.move_down 10
|
471
467
|
# Registro civil
|
472
|
-
pdf.text 'REGISTRO CIVIL', align: :center, size:
|
468
|
+
pdf.text 'REGISTRO CIVIL', align: :center, size: 14, style: :bold
|
473
469
|
pdf.move_down 10
|
474
470
|
pdf.text "Provincia: #{registro[29]}, Cantón: #{registro[30]}, Parroquia: #{registro[31]}",
|
475
471
|
align: :justify
|
@@ -488,18 +484,17 @@ class ResultadosConsulta < FXMainWindow
|
|
488
484
|
pdf.text 'TESTIGO 1): ................................... FIRMA: __________________', align: :center
|
489
485
|
pdf.move_down 10
|
490
486
|
pdf.text 'TESTIGO 2): ................................... FIRMA: __________________', align: :center
|
491
|
-
pdf.move_down
|
487
|
+
pdf.move_down 30
|
492
488
|
# Firma del párroco
|
493
489
|
pdf.text '_______________________________', align: :center
|
494
490
|
pdf.move_down 10
|
495
491
|
# Nombre del párroco
|
496
492
|
pdf.text (registro[27]).to_s, align: :center
|
497
|
-
pdf.move_down 10
|
498
493
|
# Parroco
|
499
494
|
pdf.text 'Párroco', align: :center
|
500
|
-
pdf.move_down 10
|
501
495
|
end
|
502
496
|
when 'Curso Prebautismal'
|
497
|
+
pdf.move_down 20
|
503
498
|
pdf.text 'CERTIFICADO DEL CURSO PREBAUTISMAL', align: :center, size: 20, style: :bold,
|
504
499
|
color: 'FF0000'
|
505
500
|
pdf.move_down 20
|
@@ -528,18 +523,17 @@ class ResultadosConsulta < FXMainWindow
|
|
528
523
|
align: :justify
|
529
524
|
pdf.move_down 10
|
530
525
|
pdf.text 'En Dios y María Santísima.', align: :justify
|
531
|
-
pdf.move_down
|
526
|
+
pdf.move_down 30
|
532
527
|
# Firma del párroco
|
533
528
|
pdf.text '_______________________________', align: :center
|
534
529
|
pdf.move_down 10
|
535
530
|
# Nombre del párroco
|
536
531
|
pdf.text (registro[4]).to_s, align: :center
|
537
|
-
pdf.move_down 10
|
538
532
|
# Parroco
|
539
533
|
pdf.text 'Párroco', align: :center
|
540
|
-
pdf.move_down 10
|
541
534
|
end
|
542
535
|
when 'Permiso de Bautismo'
|
536
|
+
pdf.move_down 20
|
543
537
|
pdf.text 'PERMISO DE BAUTISMO', align: :center, size: 20, style: :bold, color: 'FF0000'
|
544
538
|
pdf.move_down 20
|
545
539
|
registros_seleccionados.each do |registro|
|
@@ -566,18 +560,17 @@ class ResultadosConsulta < FXMainWindow
|
|
566
560
|
pdf.move_down 10
|
567
561
|
# Despedida
|
568
562
|
pdf.text 'En Dios y María Santísima.', align: :justify
|
569
|
-
pdf.move_down
|
563
|
+
pdf.move_down 30
|
570
564
|
# Firma del párroco
|
571
565
|
pdf.text '_______________________________', align: :center
|
572
566
|
pdf.move_down 10
|
573
567
|
# Nombre del párroco
|
574
568
|
pdf.text (registro[4]).to_s, align: :center
|
575
|
-
pdf.move_down 10
|
576
569
|
# Parroco
|
577
570
|
pdf.text 'Párroco', align: :center
|
578
|
-
pdf.move_down 10
|
579
571
|
end
|
580
572
|
when 'Permiso de Matrimonio'
|
573
|
+
pdf.move_down 20
|
581
574
|
pdf.text 'PERMISO DE MATRIMONIO', align: :center, size: 20, style: :bold, color: 'FF0000'
|
582
575
|
pdf.move_down 20
|
583
576
|
registros_seleccionados.each do |registro|
|
@@ -606,16 +599,14 @@ class ResultadosConsulta < FXMainWindow
|
|
606
599
|
pdf.text 'Es todo cuanto puedo certificar en honor a la verdad.', align: :justify
|
607
600
|
pdf.move_down 10
|
608
601
|
pdf.text 'En Dios y María Santísima.', align: :justify
|
609
|
-
pdf.move_down
|
602
|
+
pdf.move_down 30
|
610
603
|
# Firma del párroco
|
611
604
|
pdf.text '_______________________________', align: :center
|
612
605
|
pdf.move_down 10
|
613
606
|
# Nombre del párroco
|
614
607
|
pdf.text (registro[4]).to_s, align: :center
|
615
|
-
pdf.move_down 10
|
616
608
|
# Parroco
|
617
609
|
pdf.text 'Párroco', align: :center
|
618
|
-
pdf.move_down 10
|
619
610
|
end
|
620
611
|
end
|
621
612
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parroquia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Javier Borja Lobato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fxruby
|