parroquia 1.1.17 → 1.1.19
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ee3cc3c2a2f6740622c5f3ffce22289f668e4c547db8aa36912f4ab540cc5d0
|
4
|
+
data.tar.gz: c4bd0926973d5656bf2d1143f3f8839b10d8b601906446d51903996a6dd74728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1afb8c8702fe64403c40b585176ceb28b5f1750edb124d768b48481f12582f8749ff3ddad81aae3e1f304d5c3ff26ed6e69f033b9c07d20b477f961fc5c1228
|
7
|
+
data.tar.gz: 75a8b42dab4f9a816c955439facc2cbd8d23d4e1943eebfa8e96b74668f9c339e74ccc6c4e468c0e1379da8473cf10eb8d585e6bdba05fd0e9f3353b887136d1
|
@@ -142,7 +142,6 @@ class ActualizarComunion < FXMainWindow
|
|
142
142
|
lugar_nacimiento = @input_lugar_nacimiento.text
|
143
143
|
fecha_nacimiento = @input_fecha_nacimiento.text
|
144
144
|
cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
|
145
|
-
padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
|
146
145
|
certifica = @input_certifica.text
|
147
146
|
|
148
147
|
# tables
|
@@ -177,8 +176,8 @@ class ActualizarComunion < FXMainWindow
|
|
177
176
|
|
178
177
|
# Actualizar la tabla sacramentos
|
179
178
|
$conn.exec(
|
180
|
-
'UPDATE sacramentos SET sacramento = $1, fecha = $2, celebrante = $3, certifica = $4
|
181
|
-
sacramento, fecha, celebrante, certifica,
|
179
|
+
'UPDATE sacramentos SET sacramento = $1, fecha = $2, celebrante = $3, certifica = $4 WHERE id = $6', [
|
180
|
+
sacramento, fecha, celebrante, certifica, registro[0]
|
182
181
|
]
|
183
182
|
)
|
184
183
|
|
@@ -125,7 +125,6 @@ class Comunion < FXMainWindow
|
|
125
125
|
lugar_nacimiento = @input_lugar_nacimiento.text
|
126
126
|
fecha_nacimiento = @input_fecha_nacimiento.text
|
127
127
|
cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
|
128
|
-
padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
|
129
128
|
certifica = @input_certifica.text
|
130
129
|
|
131
130
|
|
@@ -164,8 +163,8 @@ class Comunion < FXMainWindow
|
|
164
163
|
|
165
164
|
# Insertar en la tabla sacramentos
|
166
165
|
@registro_sacramentos = $conn.exec(
|
167
|
-
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica
|
168
|
-
fecha, celebrante, certifica
|
166
|
+
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica) VALUES ($1, $2, $3, $4)', [sacramento,
|
167
|
+
fecha, celebrante, certifica]
|
169
168
|
)
|
170
169
|
|
171
170
|
# Confirmar la transacción
|
@@ -191,7 +190,6 @@ class Comunion < FXMainWindow
|
|
191
190
|
@input_lugar_nacimiento.text = ''
|
192
191
|
@input_fecha_nacimiento.text = ''
|
193
192
|
@input_cedula.text = ''
|
194
|
-
@input_padrino.text = ''
|
195
193
|
@input_certifica.text = ''
|
196
194
|
end
|
197
195
|
end
|
@@ -178,9 +178,9 @@ class ResultadosConsulta < FXMainWindow
|
|
178
178
|
pdf.move_down 20
|
179
179
|
|
180
180
|
# Recorre todos los registros seleccionados y agrega sus horarios de misas
|
181
|
-
|
182
|
-
pdf.text 'Hora | Capilla | Sector | Intención'
|
181
|
+
pdf.text 'Hora | Capilla | Sector | Intención'
|
183
182
|
pdf.move_down 10
|
183
|
+
registros_seleccionados.each do |registro|
|
184
184
|
pdf.text "#{registro[selected_columns[40]]} | #{registro[selected_columns[25]]} | #{registro[selected_columns[26]]} | #{registro[selected_columns[38]]}"
|
185
185
|
pdf.move_down 10
|
186
186
|
end
|