parroquia 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/parroquia +2 -0
- data/lib/parroquia/actualizar_bautismo.rb +15 -36
- data/lib/parroquia/actualizar_confirmacion.rb +15 -25
- data/lib/parroquia/actualizar_matrimonio.rb +13 -33
- data/lib/parroquia/resultados.rb +1 -0
- 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: 120dca8cc9e00979ee01a8033ff1da8d642eacd0a5d7c683d4bb22f9e9983494
|
4
|
+
data.tar.gz: aae111025c3fd61edcabdaa72d062bb0d732d26e722361e4aa121fc7cdfbdc0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41c56c7cba11c96ed4b5dc8189b5e053135fb4bd2cbadea62643453a02d971ea7fe0f05fd39ecdd0d61be82955dc258ecd405536e530bac771c819fdae09a6d0
|
7
|
+
data.tar.gz: 93875268ea43b239959d0ac01799df4474585a65d60544af774ab42b7ca773ea2c7f9379b1993be2e246a2e2d66467c732e3238c92775443d28b2b604aec36f6
|
data/bin/parroquia
CHANGED
@@ -44,6 +44,7 @@ class ActualizarBautismo < FXMainWindow
|
|
44
44
|
@lbl_sacramento.backColor = FXRGB(3,187,133)
|
45
45
|
@input_sacramento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 150)
|
46
46
|
@input_sacramento.text = registro[1]
|
47
|
+
@input_sacramento.disable
|
47
48
|
@lbl_parroquia = FXLabel.new(self, "Iglesia parroquial: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 180)
|
48
49
|
@lbl_parroquia.backColor = FXRGB(3,187,133)
|
49
50
|
@input_parroquia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 180)
|
@@ -53,7 +54,7 @@ class ActualizarBautismo < FXMainWindow
|
|
53
54
|
@input_sector = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 180)
|
54
55
|
@input_sector.text = registro[26]
|
55
56
|
@lbl_parroco = FXLabel.new(self, "Parroco: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 180)
|
56
|
-
@
|
57
|
+
@lbl_parroco.backColor = FXRGB(3,187,133)
|
57
58
|
@input_parroco = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 180)
|
58
59
|
@input_parroco.text = registro[27]
|
59
60
|
@lbl_ministro = FXLabel.new(self, "Ministro: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 210)
|
@@ -187,10 +188,17 @@ class ActualizarBautismo < FXMainWindow
|
|
187
188
|
$conn.exec('UPDATE creyentes SET nombres = $1, apellidos = $2, lugar_nacimiento = $3, fecha_nacimiento = $4, cedula = $5 WHERE id = $6', [name, apellidos, lugar_nacimiento, fecha_nacimiento, cedula, registro[18]])
|
188
189
|
$conn.exec('UPDATE parroquias SET parroquia = $1, sector = $2, parroco = $3 WHERE id = $4', [parroquia, sector, parroco, registro[24]])
|
189
190
|
$conn.exec('UPDATE registros_civiles SET provincia_rc = $1, canton_rc = $2, parroquia_rc = $3, anio_rc = $4, tomo_rc = $5, pagina_rc = $6, acta_rc = $7, fecha_rc = $8 WHERE id = $9', [provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pag_rc, acta_rc, date_rc, registro[28]])
|
190
|
-
|
191
|
-
|
192
|
-
FXMessageBox.
|
193
|
-
|
191
|
+
|
192
|
+
# ¿Desea guardar los cambios? SI: commit msg: datos actualizados correctamente, NO: rollback, close
|
193
|
+
if FXMessageBox.question(self, MBOX_YES_NO, "Pregunta", "¿Desea guardar los cambios?") == MBOX_CLICKED_YES
|
194
|
+
# Confirmar la transacción
|
195
|
+
$conn.exec("COMMIT")
|
196
|
+
FXMessageBox.information(self, MBOX_OK, "Información", "Datos actualizados correctamente")
|
197
|
+
close
|
198
|
+
else
|
199
|
+
$conn.exec("ROLLBACK")
|
200
|
+
close
|
201
|
+
end
|
194
202
|
end
|
195
203
|
|
196
204
|
rescue PG::Error => e
|
@@ -203,37 +211,8 @@ class ActualizarBautismo < FXMainWindow
|
|
203
211
|
end
|
204
212
|
|
205
213
|
@btncancel.connect(SEL_COMMAND) do
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
def clear_input_fields
|
210
|
-
@input_tomo.text = ""
|
211
|
-
@input_page.text = ""
|
212
|
-
@input_number.text = ""
|
213
|
-
@input_fecha.text = ""
|
214
|
-
@input_sacramento.text = ""
|
215
|
-
@input_parroquia.text = ""
|
216
|
-
@input_sector.text = ""
|
217
|
-
@input_parroco.text = ""
|
218
|
-
@input_ministro.text = ""
|
219
|
-
@input_name.text = ""
|
220
|
-
@input_apellidos.text = ""
|
221
|
-
@input_lugar_nacimiento.text = ""
|
222
|
-
@input_fecha_nacimiento.text = ""
|
223
|
-
@input_cedula.text = ""
|
224
|
-
@input_padrino.text = ""
|
225
|
-
@input_madrina.text = ""
|
226
|
-
@input_padre.text = ""
|
227
|
-
@input_madre.text = ""
|
228
|
-
@input_certifica.text = ""
|
229
|
-
@input_provincia_rc.text = ""
|
230
|
-
@input_canton_rc.text = ""
|
231
|
-
@input_parroquia_rc.text = ""
|
232
|
-
@input_anio_rc.text = ""
|
233
|
-
@input_tomo_rc.text = ""
|
234
|
-
@input_pag_rc.text = ""
|
235
|
-
@input_acta_rc.text = ""
|
236
|
-
@input_date_rc.text = ""
|
214
|
+
FXMessageBox.warning(self, MBOX_OK, "Advertencia", "No se guardarán los cambios")
|
215
|
+
close
|
237
216
|
end
|
238
217
|
end
|
239
218
|
|
@@ -44,6 +44,7 @@ class ActualizarConfirmacion < FXMainWindow
|
|
44
44
|
@lbl_sacramento.backColor = FXRGB(3,187,133)
|
45
45
|
@input_sacramento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 150)
|
46
46
|
@input_sacramento.text = @registro[1]
|
47
|
+
@input_sacramento.disable
|
47
48
|
@lbl_parroquia = FXLabel.new(self, "Iglesia parroquial: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 180)
|
48
49
|
@lbl_parroquia.backColor = FXRGB(3,187,133)
|
49
50
|
@input_parroquia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 180)
|
@@ -81,7 +82,7 @@ class ActualizarConfirmacion < FXMainWindow
|
|
81
82
|
@input_cedula = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x =>850, :y => 300)
|
82
83
|
@input_cedula.text = @registro[23]
|
83
84
|
@lbl_padrino = FXLabel.new(self, "Padrino: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 330)
|
84
|
-
@
|
85
|
+
@lbl_padrino.backColor = FXRGB(3,187,133)
|
85
86
|
@input_padrino = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 330)
|
86
87
|
@input_padrino.text = @registro[5]
|
87
88
|
@lbl_certifica = FXLabel.new(self, "Certifica: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 360)
|
@@ -135,10 +136,17 @@ class ActualizarConfirmacion < FXMainWindow
|
|
135
136
|
# Actualizar la tabla sacramentos
|
136
137
|
$conn.exec('UPDATE sacramentos SET sacramento = $1, fecha = $2, celebrante = $3, certifica = $4, padrino = $5 WHERE id = $6', [sacramento, fecha, celebrante, certifica, padrino, registro[0]])
|
137
138
|
|
138
|
-
|
139
|
-
|
140
|
-
FXMessageBox.
|
141
|
-
|
139
|
+
|
140
|
+
# ¿Desea guardar los cambios? SI: commit msg: datos actualizados correctamente, NO: rollback, close
|
141
|
+
if FXMessageBox.question(self, MBOX_YES_NO, "Pregunta", "¿Desea guardar los cambios?") == MBOX_CLICKED_YES
|
142
|
+
# Confirmar la transacción
|
143
|
+
$conn.exec("COMMIT")
|
144
|
+
FXMessageBox.information(self, MBOX_OK, "Información", "Datos actualizados correctamente")
|
145
|
+
close
|
146
|
+
else
|
147
|
+
$conn.exec("ROLLBACK")
|
148
|
+
close
|
149
|
+
end
|
142
150
|
end
|
143
151
|
rescue PG::Error => e
|
144
152
|
# En caso de error, se realizará automáticamente un rollback
|
@@ -151,26 +159,8 @@ class ActualizarConfirmacion < FXMainWindow
|
|
151
159
|
end
|
152
160
|
|
153
161
|
@btncancel.connect(SEL_COMMAND) do
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
def clear_input_fields
|
158
|
-
@input_tomo.text = ""
|
159
|
-
@input_page.text = ""
|
160
|
-
@input_number.text = ""
|
161
|
-
@input_fecha.text = ""
|
162
|
-
@input_sacramento.text = ""
|
163
|
-
@input_parroquia.text = ""
|
164
|
-
@input_sector.text = ""
|
165
|
-
@input_parroco.text = ""
|
166
|
-
@input_celebrante.text = ""
|
167
|
-
@input_name.text = ""
|
168
|
-
@input_apellidos.text = ""
|
169
|
-
@input_lugar_nacimiento.text = ""
|
170
|
-
@input_fecha_nacimiento.text = ""
|
171
|
-
@input_cedula.text = ""
|
172
|
-
@input_padrino.text = ""
|
173
|
-
@input_certifica.text = ""
|
162
|
+
FXMessageBox.warning(self, MBOX_OK, "Advertencia", "No se guardarán los cambios")
|
163
|
+
close
|
174
164
|
end
|
175
165
|
end
|
176
166
|
|
@@ -43,6 +43,7 @@ class ActualizarMatrimonio < FXMainWindow
|
|
43
43
|
@lbl_sacramento.backColor = FXRGB(3,187,133)
|
44
44
|
@input_sacramento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 150)
|
45
45
|
@input_sacramento.text = @registro[1]
|
46
|
+
@input_sacramento.disable
|
46
47
|
@lbl_parroquia = FXLabel.new(self, "Iglesia parroquial: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 180)
|
47
48
|
@lbl_parroquia.backColor = FXRGB(3,187,133)
|
48
49
|
@input_parroquia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 180)
|
@@ -177,9 +178,16 @@ class ActualizarMatrimonio < FXMainWindow
|
|
177
178
|
$conn.exec('UPDATE creyentes SET nombres = $1, apellidos = $2, cedula = $3 WHERE id = $4', [name_novio, apellido_novio, cedula_novio, registro[18]])
|
178
179
|
$conn.exec('UPDATE parroquias SET parroquia = $1, sector = $2, parroco = $3 WHERE id = $4', [parroquia, sector, parroco, registro[24]])
|
179
180
|
$conn.exec('UPDATE registros_civiles SET provincia_rc = $1, canton_rc = $2, parroquia_rc = $3, anio_rc = $4, tomo_rc = $5, pagina_rc = $6, acta_rc = $7, fecha_rc = $8 WHERE id = $9', [provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc, registro[28]])
|
180
|
-
|
181
|
-
|
182
|
-
|
181
|
+
|
182
|
+
# ¿Desea guardar los cambios? SI: commit msg: datos actualizados correctamente, NO: rollback, close
|
183
|
+
if FXMessageBox.question(self, MBOX_YES_NO, "Pregunta", "¿Desea guardar los cambios?") == MBOX_CLICKED_YES
|
184
|
+
$conn.exec("COMMIT")
|
185
|
+
FXMessageBox.information(self, MBOX_OK, "Información", "Datos actualizados correctamente")
|
186
|
+
close
|
187
|
+
else
|
188
|
+
$conn.exec("ROLLBACK")
|
189
|
+
close
|
190
|
+
end
|
183
191
|
end
|
184
192
|
rescue PG::Error => e
|
185
193
|
FXMessageBox.error(self, MBOX_OK, "Error", "Error al guardar los datos")
|
@@ -191,36 +199,8 @@ class ActualizarMatrimonio < FXMainWindow
|
|
191
199
|
end
|
192
200
|
|
193
201
|
@btncancel.connect(SEL_COMMAND) do
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
def clear_input_fields
|
198
|
-
@input_tomo.text = ""
|
199
|
-
@input_page.text = ""
|
200
|
-
@input_number.text = ""
|
201
|
-
@input_fecha.text = ""
|
202
|
-
@input_sacramento.text = ""
|
203
|
-
@input_parroquia.text = ""
|
204
|
-
@input_sector.text = ""
|
205
|
-
@input_parroco.text = ""
|
206
|
-
@input_celebrante.text = ""
|
207
|
-
@input_name_novio.text = ""
|
208
|
-
@input_apellido_novio.text = ""
|
209
|
-
@input_cedula_novio.text = ""
|
210
|
-
@input_name_novia.text = ""
|
211
|
-
@input_apellido_novia.text = ""
|
212
|
-
@input_cedula_novia.text = ""
|
213
|
-
@input_nombres_testigo_novio.text = ""
|
214
|
-
@input_nombres_testigo_novia.text = ""
|
215
|
-
@input_certifica.text = ""
|
216
|
-
@input_provincia_rc.text = ""
|
217
|
-
@input_canton_rc.text = ""
|
218
|
-
@input_parroquia_rc.text = ""
|
219
|
-
@input_anio_rc.text = ""
|
220
|
-
@input_tomo_rc.text = ""
|
221
|
-
@input_pag_rc.text = ""
|
222
|
-
@input_acta_rc.text = ""
|
223
|
-
@input_date_rc.text = ""
|
202
|
+
FXMessageBox.warning(self, MBOX_OK, "Advertencia", "No se guardarán los cambios")
|
203
|
+
close
|
224
204
|
end
|
225
205
|
end
|
226
206
|
|
data/lib/parroquia/resultados.rb
CHANGED