parroquia 1.1.19 → 1.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/parroquia/sacramentos/bautizo.rb +21 -21
- data/lib/parroquia/sacramentos/certificado_prebautismal.rb +10 -11
- data/lib/parroquia/sacramentos/permiso_bautismo.rb +10 -9
- data/lib/parroquia/sacramentos/permiso_prematrimonial.rb +12 -21
- data/lib/parroquia/sacramentos/resultados.rb +4 -1
- data/lib/parroquia/sacramentos/supletoria.rb +24 -30
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83b897de457b79933010a3a34e54219f099d0398076994bbf17db4d8990d56b4
|
4
|
+
data.tar.gz: 11ffc2e5fb866026fb6ea72cc484ab105c69de21c689e617df4573b57f8be46e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3505cca7a0abe4554c552dc773926e4f9cdb0a422790338e2519c0e74f366b05c9848be9a04506aff6c6477e32cb00bda78f68749cb8eaa37ab87279d751e8d
|
7
|
+
data.tar.gz: 9f6ecb98c2ce38a3a071dca72313e50da8cc4dcb739cb98dd65fbdc3852e8ecf1717db2a9fb8e737aa06638ec9d66989b80c5af07fdba2c1c016802e01a08de0
|
@@ -177,33 +177,33 @@ class Bautizo < FXMainWindow
|
|
177
177
|
|
178
178
|
# connect buttons
|
179
179
|
@btnsave.connect(SEL_COMMAND) do
|
180
|
-
tomo = @input_tomo.text
|
181
|
-
page = @input_page.text
|
182
|
-
number = @input_number.text
|
183
|
-
fecha = @input_fecha.text
|
180
|
+
tomo = @input_tomo.text.empty? ? nil : @input_tomo.text
|
181
|
+
page = @input_page.text.empty? ? nil : @input_page.text
|
182
|
+
number = @input_number.text.empty? ? nil : @input_number.text
|
183
|
+
fecha = @input_fecha.text.empty? ? nil : @input_fecha.text
|
184
184
|
sacramento = @input_sacramento.text
|
185
|
-
parroquia = @input_parroquia.text
|
186
|
-
sector = @input_sector.text
|
187
|
-
parroco = @input_parroco.text
|
188
|
-
ministro = @input_ministro.text
|
189
|
-
name = @input_name.text
|
190
|
-
apellidos = @input_apellidos.text
|
191
|
-
lugar_nacimiento = @input_lugar_nacimiento.text
|
192
|
-
fecha_nacimiento = @input_fecha_nacimiento.text
|
185
|
+
parroquia = @input_parroquia.text.empty? ? nil : @input_parroquia.text
|
186
|
+
sector = @input_sector.text.empty? ? nil : @input_sector.text
|
187
|
+
parroco = @input_parroco.text.empty? ? nil : @input_parroco.text
|
188
|
+
ministro = @input_ministro.text.empty? ? nil : @input_ministro.text
|
189
|
+
name = @input_name.text.empty? ? nil : @input_name.text
|
190
|
+
apellidos = @input_apellidos.text.empty? ? nil : @input_apellidos.text
|
191
|
+
lugar_nacimiento = @input_lugar_nacimiento.text.empty? ? nil : @input_lugar_nacimiento.text
|
192
|
+
fecha_nacimiento = @input_fecha_nacimiento.text.empty? ? nil : @input_fecha_nacimiento.text
|
193
193
|
cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
|
194
194
|
padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
|
195
195
|
madrina = @input_madrina.text.empty? ? nil : @input_madrina.text
|
196
196
|
padre = @input_padre.text.empty? ? nil : @input_padre.text
|
197
197
|
madre = @input_madre.text.empty? ? nil : @input_madre.text
|
198
|
-
certifica = @input_certifica.text
|
199
|
-
provincia_rc = @input_provincia_rc.text
|
200
|
-
canton_rc = @input_canton_rc.text
|
201
|
-
parroquia_rc = @input_parroquia_rc.text
|
202
|
-
anio_rc = @input_anio_rc.text
|
203
|
-
tomo_rc = @input_tomo_rc.text
|
204
|
-
pag_rc = @input_pag_rc.text
|
205
|
-
acta_rc = @input_acta_rc.text
|
206
|
-
date_rc = @input_date_rc.text
|
198
|
+
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
199
|
+
provincia_rc = @input_provincia_rc.text.empty? ? nil : @input_provincia_rc.text
|
200
|
+
canton_rc = @input_canton_rc.text.empty? ? nil : @input_canton_rc.text
|
201
|
+
parroquia_rc = @input_parroquia_rc.text.empty? ? nil : @input_parroquia_rc.text
|
202
|
+
anio_rc = @input_anio_rc.text.empty? ? nil : @input_anio_rc.text
|
203
|
+
tomo_rc = @input_tomo_rc.text.empty? ? nil : @input_tomo_rc.text
|
204
|
+
pag_rc = @input_pag_rc.text.empty? ? nil : @input_pag_rc.text
|
205
|
+
acta_rc = @input_acta_rc.text.empty? ? nil : @input_acta_rc.text
|
206
|
+
date_rc = @input_date_rc.text.empty? ? nil : @input_date_rc.text
|
207
207
|
|
208
208
|
# tables
|
209
209
|
# tabla libros (id, tomo, pagina, numero)
|
@@ -90,17 +90,17 @@ class PreBautismal < FXMainWindow
|
|
90
90
|
|
91
91
|
# connect buttons
|
92
92
|
@btnsave.connect(SEL_COMMAND) do
|
93
|
-
fecha = @input_fecha.text
|
93
|
+
fecha = @input_fecha.text.empty? ? nil : @input_fecha.text
|
94
94
|
sacramento = @input_sacramento.text
|
95
|
-
parroquia = @input_parroquia.text
|
96
|
-
sector = @input_sector.text
|
97
|
-
parroco = @input_parroco.text
|
98
|
-
name = @input_name.text
|
99
|
-
apellidos = @input_apellidos.text
|
95
|
+
parroquia = @input_parroquia.text.empty? ? nil : @input_parroquia.text
|
96
|
+
sector = @input_sector.text.empty? ? nil : @input_sector.text
|
97
|
+
parroco = @input_parroco.text.empty? ? nil : @input_parroco.text
|
98
|
+
name = @input_name.text.empty? ? nil : @input_name.text
|
99
|
+
apellidos = @input_apellidos.text.empty? ? nil : @input_apellidos.text
|
100
100
|
cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
|
101
101
|
padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
|
102
102
|
madrina = @input_madrina.text.empty? ? nil : @input_madrina.text
|
103
|
-
certifica = @input_certifica.text
|
103
|
+
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
104
104
|
|
105
105
|
# tables
|
106
106
|
# tabla libros (id, tomo, pagina, numero)
|
@@ -143,16 +143,15 @@ class PreBautismal < FXMainWindow
|
|
143
143
|
|
144
144
|
def clear_input_fields
|
145
145
|
@input_fecha.text = ''
|
146
|
+
@input_sacramento.text = ''
|
147
|
+
@input_parroquia.text = ''
|
148
|
+
@input_sector.text = ''
|
146
149
|
@input_parroco.text = ''
|
147
150
|
@input_name.text = ''
|
148
151
|
@input_apellidos.text = ''
|
149
|
-
@input_lugar_nacimiento.text = ''
|
150
|
-
@input_fecha_nacimiento.text = ''
|
151
152
|
@input_cedula.text = ''
|
152
153
|
@input_padrino.text = ''
|
153
154
|
@input_madrina.text = ''
|
154
|
-
@input_padre.text = ''
|
155
|
-
@input_madre.text = ''
|
156
155
|
@input_certifica.text = ''
|
157
156
|
end
|
158
157
|
end
|
@@ -100,19 +100,19 @@ class PermisoBautizo < FXMainWindow
|
|
100
100
|
|
101
101
|
# connect buttons
|
102
102
|
@btnsave.connect(SEL_COMMAND) do
|
103
|
-
fecha = @input_fecha.text
|
103
|
+
fecha = @input_fecha.text.empty? ? nil : @input_fecha.text
|
104
104
|
sacramento = @input_sacramento.text
|
105
|
-
parroquia = @input_parroquia.text
|
106
|
-
sector = @input_sector.text
|
107
|
-
parroco = @input_parroco.text
|
108
|
-
name = @input_name.text
|
109
|
-
apellidos = @input_apellidos.text
|
105
|
+
parroquia = @input_parroquia.text.empty? ? nil : @input_parroquia.text
|
106
|
+
sector = @input_sector.text.empty? ? nil : @input_sector.text
|
107
|
+
parroco = @input_parroco.text.empty? ? nil : @input_parroco.text
|
108
|
+
name = @input_name.text.empty? ? nil : @input_name.text
|
109
|
+
apellidos = @input_apellidos.text.empty? ? nil : @input_apellidos.text
|
110
110
|
cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
|
111
111
|
padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
|
112
112
|
madrina = @input_madrina.text.empty? ? nil : @input_madrina.text
|
113
113
|
padre = @input_padre.text.empty? ? nil : @input_padre.text
|
114
114
|
madre = @input_madre.text.empty? ? nil : @input_madre.text
|
115
|
-
certifica = @input_certifica.text
|
115
|
+
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
116
116
|
|
117
117
|
# tables
|
118
118
|
# tabla libros (id, tomo, pagina, numero)
|
@@ -155,11 +155,12 @@ class PermisoBautizo < FXMainWindow
|
|
155
155
|
|
156
156
|
def clear_input_fields
|
157
157
|
@input_fecha.text = ''
|
158
|
+
@input_sacramento.text = ''
|
159
|
+
@input_parroquia.text = ''
|
160
|
+
@input_sector.text = ''
|
158
161
|
@input_parroco.text = ''
|
159
162
|
@input_name.text = ''
|
160
163
|
@input_apellidos.text = ''
|
161
|
-
@input_lugar_nacimiento.text = ''
|
162
|
-
@input_fecha_nacimiento.text = ''
|
163
164
|
@input_cedula.text = ''
|
164
165
|
@input_padrino.text = ''
|
165
166
|
@input_madrina.text = ''
|
@@ -105,20 +105,20 @@ class PermisoMatrimonio < FXMainWindow
|
|
105
105
|
|
106
106
|
# connect buttons
|
107
107
|
@btnsave.connect(SEL_COMMAND) do
|
108
|
-
fecha = @input_fecha.text
|
108
|
+
fecha = @input_fecha.text.empty? ? nil : @input_fecha.text
|
109
109
|
sacramento = @input_sacramento.text
|
110
|
-
parroquia = @input_parroquia.text
|
111
|
-
sector = @input_sector.text
|
112
|
-
parroco = @input_parroco.text
|
113
|
-
name_novio = @input_name_novio.text
|
114
|
-
apellido_novio = @input_apellido_novio.text
|
110
|
+
parroquia = @input_parroquia.text.empty? ? nil : @input_parroquia.text
|
111
|
+
sector = @input_sector.text.empty? ? nil : @input_sector.text
|
112
|
+
parroco = @input_parroco.text.empty? ? nil : @input_parroco.text
|
113
|
+
name_novio = @input_name_novio.text.empty? ? nil : @input_name_novio.text
|
114
|
+
apellido_novio = @input_apellido_novio.text.empty? ? nil : @input_apellido_novio.text
|
115
115
|
cedula_novio = @input_cedula_novio.text.empty? ? nil : @input_cedula_novio.text
|
116
116
|
nombres_novia = @input_name_novia.text.empty? ? nil : @input_name_novia.text
|
117
117
|
apellidos_novia = @input_apellido_novia.text.empty? ? nil : @input_apellido_novia.text
|
118
118
|
cedula_novia = @input_cedula_novia.text.empty? ? nil : @input_cedula_novia.text
|
119
119
|
testigo_novio = @input_nombres_testigo_novio.text.empty? ? nil : @input_nombres_testigo_novio.text
|
120
120
|
testigo_novia = @input_nombres_testigo_novia.text.empty? ? nil : @input_nombres_testigo_novia.text
|
121
|
-
certifica = @input_certifica.text
|
121
|
+
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
122
122
|
|
123
123
|
# tables
|
124
124
|
# tabla libros (id, tomo, pagina, numero)
|
@@ -140,8 +140,8 @@ class PermisoMatrimonio < FXMainWindow
|
|
140
140
|
# Insertar en la tabla misas
|
141
141
|
@registro_misas = $conn.exec('INSERT INTO misas (intencion, fecha, hora) VALUES ($1, $2, $3)', [nil, nil, nil])
|
142
142
|
$conn.exec(
|
143
|
-
'INSERT INTO sacramentos (sacramento, fecha,
|
144
|
-
sacramento, fecha,
|
143
|
+
'INSERT INTO sacramentos (sacramento, fecha, certifica, testigo_novio, testigo_novia, nombres_novia, apellidos_novia, cedula_novia) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)', [
|
144
|
+
sacramento, fecha, certifica, testigo_novio, testigo_novia, nombres_novia, apellidos_novia, cedula_novia
|
145
145
|
]
|
146
146
|
)
|
147
147
|
$conn.exec('COMMIT')
|
@@ -155,12 +155,11 @@ class PermisoMatrimonio < FXMainWindow
|
|
155
155
|
end
|
156
156
|
|
157
157
|
def clear_input_fields
|
158
|
-
@input_tomo.text = ''
|
159
|
-
@input_page.text = ''
|
160
|
-
@input_number.text = ''
|
161
158
|
@input_fecha.text = ''
|
159
|
+
@input_sacramento.text = ''
|
160
|
+
@input_parroquia.text = ''
|
161
|
+
@input_sector.text = ''
|
162
162
|
@input_parroco.text = ''
|
163
|
-
@input_celebrante.text = ''
|
164
163
|
@input_name_novio.text = ''
|
165
164
|
@input_apellido_novio.text = ''
|
166
165
|
@input_cedula_novio.text = ''
|
@@ -170,14 +169,6 @@ class PermisoMatrimonio < FXMainWindow
|
|
170
169
|
@input_nombres_testigo_novio.text = ''
|
171
170
|
@input_nombres_testigo_novia.text = ''
|
172
171
|
@input_certifica.text = ''
|
173
|
-
@input_provincia_rc.text = ''
|
174
|
-
@input_canton_rc.text = ''
|
175
|
-
@input_parroquia_rc.text = ''
|
176
|
-
@input_anio_rc.text = ''
|
177
|
-
@input_tomo_rc.text = ''
|
178
|
-
@input_pag_rc.text = ''
|
179
|
-
@input_acta_rc.text = ''
|
180
|
-
@input_date_rc.text = ''
|
181
172
|
end
|
182
173
|
end
|
183
174
|
|
@@ -97,6 +97,9 @@ class ResultadosConsulta < FXMainWindow
|
|
97
97
|
|
98
98
|
# Cambiar el formato de la fecha de YYYY-MM-DD a DD de nombre_mes de YYYY
|
99
99
|
def cambiar_formato_fecha(fecha)
|
100
|
+
if fecha.nil?
|
101
|
+
return ''
|
102
|
+
end
|
100
103
|
# split "-" or "/"
|
101
104
|
fecha = fecha.split(%r{-|/})
|
102
105
|
# si el formato de fecha es YYYY-MM-DD o YYYY/MM/DD, sino si es DD-MM-YYYY o DD/MM/YYYY
|
@@ -438,7 +441,7 @@ class ResultadosConsulta < FXMainWindow
|
|
438
441
|
end
|
439
442
|
when 'Partida Supletoria del Bautismo'
|
440
443
|
pdf.move_down 20
|
441
|
-
pdf.text '
|
444
|
+
pdf.text 'PARTIDA SUPLETORIA DEL BAUTISMO', align: :center, size: 20, style: :bold,
|
442
445
|
color: 'FF0000'
|
443
446
|
pdf.move_down 20
|
444
447
|
registros_seleccionados.each do |registro|
|
@@ -176,33 +176,33 @@ class Supletoria < FXMainWindow
|
|
176
176
|
|
177
177
|
# connect buttons
|
178
178
|
@btnsave.connect(SEL_COMMAND) do
|
179
|
-
tomo = @input_tomo.text
|
180
|
-
page = @input_page.text
|
181
|
-
number = @input_number.text
|
182
|
-
fecha = @input_fecha.text
|
179
|
+
tomo = @input_tomo.text.empty? ? nil : @input_tomo.text
|
180
|
+
page = @input_page.text.empty? ? nil : @input_page.text
|
181
|
+
number = @input_number.text.empty? ? nil : @input_number.text
|
182
|
+
fecha = @input_fecha.text.empty? ? nil : @input_fecha.text
|
183
183
|
sacramento = @input_sacramento.text
|
184
|
-
parroquia = @input_parroquia.text
|
185
|
-
sector = @input_sector.text
|
186
|
-
parroco = @input_parroco.text
|
187
|
-
ministro = @input_ministro.text
|
188
|
-
name = @input_name.text
|
189
|
-
apellidos = @input_apellidos.text
|
190
|
-
lugar_nacimiento = @input_lugar_nacimiento.text
|
191
|
-
fecha_nacimiento = @input_fecha_nacimiento.text
|
184
|
+
parroquia = @input_parroquia.text.empty? ? nil : @input_parroquia.text
|
185
|
+
sector = @input_sector.text.empty? ? nil : @input_sector.text
|
186
|
+
parroco = @input_parroco.text.empty? ? nil : @input_parroco.text
|
187
|
+
ministro = @input_ministro.text.empty? ? nil : @input_ministro.text
|
188
|
+
name = @input_name.text.empty? ? nil : @input_name.text
|
189
|
+
apellidos = @input_apellidos.text.empty? ? nil : @input_apellidos.text
|
190
|
+
lugar_nacimiento = @input_lugar_nacimiento.text.empty? ? nil : @input_lugar_nacimiento.text
|
191
|
+
fecha_nacimiento = @input_fecha_nacimiento.text.empty? ? nil : @input_fecha_nacimiento.text
|
192
192
|
cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
|
193
193
|
padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
|
194
194
|
madrina = @input_madrina.text.empty? ? nil : @input_madrina.text
|
195
195
|
padre = @input_padre.text.empty? ? nil : @input_padre.text
|
196
196
|
madre = @input_madre.text.empty? ? nil : @input_madre.text
|
197
|
-
certifica = @input_certifica.text
|
198
|
-
provincia_rc = @input_provincia_rc.text
|
199
|
-
canton_rc = @input_canton_rc.text
|
200
|
-
parroquia_rc = @input_parroquia_rc.text
|
201
|
-
anio_rc = @input_anio_rc.text
|
202
|
-
tomo_rc = @input_tomo_rc.text
|
203
|
-
pag_rc = @input_pag_rc.text
|
204
|
-
acta_rc = @input_acta_rc.text
|
205
|
-
date_rc = @input_date_rc.text
|
197
|
+
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
198
|
+
provincia_rc = @input_provincia_rc.text.empty? ? nil : @input_provincia_rc.text
|
199
|
+
canton_rc = @input_canton_rc.text.empty? ? nil : @input_canton_rc.text
|
200
|
+
parroquia_rc = @input_parroquia_rc.text.empty? ? nil : @input_parroquia_rc.text
|
201
|
+
anio_rc = @input_anio_rc.text.empty? ? nil : @input_anio_rc.text
|
202
|
+
tomo_rc = @input_tomo_rc.text.empty? ? nil : @input_tomo_rc.text
|
203
|
+
pag_rc = @input_pag_rc.text.empty? ? nil : @input_pag_rc.text
|
204
|
+
acta_rc = @input_acta_rc.text.empty? ? nil : @input_acta_rc.text
|
205
|
+
date_rc = @input_date_rc.text.empty? ? nil : @input_date_rc.text
|
206
206
|
|
207
207
|
# tables
|
208
208
|
# tabla libros (id, tomo, pagina, numero)
|
@@ -215,23 +215,17 @@ class Supletoria < FXMainWindow
|
|
215
215
|
$conn.exec('INSERT INTO libros (tomo, pagina, numero) VALUES ($1, $2, $3)', [tomo, page, number])
|
216
216
|
$conn.exec(
|
217
217
|
'INSERT INTO creyentes (nombres, apellidos, lugar_nacimiento, fecha_nacimiento, cedula) VALUES ($1, $2, $3, $4, $5)', [
|
218
|
-
name, apellidos, lugar_nacimiento, fecha_nacimiento, cedula
|
219
|
-
]
|
220
|
-
)
|
218
|
+
name, apellidos, lugar_nacimiento, fecha_nacimiento, cedula])
|
221
219
|
$conn.exec('INSERT INTO parroquias (parroquia, sector, parroco) VALUES ($1, $2, $3)',
|
222
220
|
[parroquia, sector, parroco])
|
223
221
|
$conn.exec(
|
224
222
|
'INSERT INTO registros_civiles (provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)', [
|
225
|
-
provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pag_rc, acta_rc, date_rc
|
226
|
-
]
|
227
|
-
)
|
223
|
+
provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pag_rc, acta_rc, date_rc])
|
228
224
|
# Insertar en la tabla misas
|
229
225
|
@registro_misas = $conn.exec('INSERT INTO misas (intencion, fecha, hora) VALUES ($1, $2, $3)', [nil, nil, nil])
|
230
226
|
$conn.exec(
|
231
227
|
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica, padrino, madrina, padre, madre) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)', [
|
232
|
-
sacramento, fecha, ministro, certifica, padrino, madrina, padre, madre
|
233
|
-
]
|
234
|
-
)
|
228
|
+
sacramento, fecha, ministro, certifica, padrino, madrina, padre, madre])
|
235
229
|
# Confirmar la transacción
|
236
230
|
$conn.exec('COMMIT')
|
237
231
|
FXMessageBox.information(self, MBOX_OK, 'Información', 'Datos guardados correctamente')
|