parroquia 1.1.26 → 1.1.28
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_bautismo.rb +19 -19
- data/lib/parroquia/sacramentos/actualizar_certificado_prebautismal.rb +58 -31
- data/lib/parroquia/sacramentos/actualizar_comunion.rb +16 -22
- data/lib/parroquia/sacramentos/actualizar_confirmacion.rb +8 -8
- data/lib/parroquia/sacramentos/actualizar_licencia_matrimonio.rb +16 -30
- data/lib/parroquia/sacramentos/actualizar_matrimonio.rb +17 -17
- data/lib/parroquia/sacramentos/actualizar_misa.rb +7 -7
- data/lib/parroquia/sacramentos/actualizar_permiso_prebautismal.rb +62 -36
- data/lib/parroquia/sacramentos/actualizar_permiso_prematrimonial.rb +27 -27
- data/lib/parroquia/sacramentos/actualizar_supletoria.rb +19 -19
- data/lib/parroquia/sacramentos/certificado_prebautismal.rb +45 -22
- data/lib/parroquia/sacramentos/licencia_matrimonio.rb +26 -38
- data/lib/parroquia/sacramentos/permiso_bautismo.rb +55 -28
- data/lib/parroquia/sacramentos/permiso_prematrimonial.rb +21 -22
- data/lib/parroquia/sacramentos/resultados.rb +83 -80
- metadata +2 -2
@@ -5,7 +5,7 @@ include Fox
|
|
5
5
|
|
6
6
|
class PreBautismal < FXMainWindow
|
7
7
|
def initialize(app)
|
8
|
-
super(app, 'Parroquia San Judas Tadeo', width: 1050, height:
|
8
|
+
super(app, 'Parroquia San Judas Tadeo', width: 1050, height: 430)
|
9
9
|
self.backColor = FXRGB(3, 187, 133)
|
10
10
|
# create label
|
11
11
|
# Title
|
@@ -55,40 +55,60 @@ class PreBautismal < FXMainWindow
|
|
55
55
|
@input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
56
56
|
y: 180)
|
57
57
|
@lbl_name = FXLabel.new(self, 'Nombres: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
58
|
-
y:
|
58
|
+
y: 210)
|
59
59
|
@lbl_name.backColor = FXRGB(3, 187, 133)
|
60
|
-
@input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170, y:
|
60
|
+
@input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170, y: 210)
|
61
61
|
@lbl_apellidos = FXLabel.new(self, 'Apellidos: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
62
|
-
x: 340, y:
|
62
|
+
x: 340, y: 210)
|
63
63
|
@lbl_apellidos.backColor = FXRGB(3, 187, 133)
|
64
64
|
@input_apellidos = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
65
|
-
y:
|
66
|
-
@lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
67
|
-
y:
|
65
|
+
y: 210)
|
66
|
+
@lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
|
67
|
+
y: 210)
|
68
68
|
@lbl_cedula.backColor = FXRGB(3, 187, 133)
|
69
|
-
@input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
70
|
-
y:
|
69
|
+
@input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
70
|
+
y: 210)
|
71
|
+
@lbl_padre = FXLabel.new(self, 'Padre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
72
|
+
y: 240)
|
73
|
+
@lbl_padre.backColor = FXRGB(3, 187, 133)
|
74
|
+
@input_padre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
75
|
+
y: 240)
|
76
|
+
@lbl_madre = FXLabel.new(self, 'Madre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
|
77
|
+
y: 240)
|
78
|
+
@lbl_madre.backColor = FXRGB(3, 187, 133)
|
79
|
+
@input_madre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
80
|
+
y: 240)
|
71
81
|
@lbl_padrino = FXLabel.new(self, 'Padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
72
|
-
y:
|
82
|
+
y: 270)
|
73
83
|
@lbl_padrino.backColor = FXRGB(3, 187, 133)
|
74
84
|
@input_padrino = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
75
|
-
y:
|
76
|
-
@
|
77
|
-
|
85
|
+
y: 270)
|
86
|
+
@lbl_cedula_padrino = FXLabel.new(self, 'Cédula del padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
|
87
|
+
y: 270)
|
88
|
+
@lbl_cedula_padrino.backColor = FXRGB(3, 187, 133)
|
89
|
+
@input_cedula_padrino = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
90
|
+
y: 270)
|
91
|
+
@lbl_madrina = FXLabel.new(self, 'Madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
92
|
+
y: 300)
|
78
93
|
@lbl_madrina.backColor = FXRGB(3, 187, 133)
|
79
|
-
@input_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
80
|
-
y:
|
94
|
+
@input_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
95
|
+
y: 300)
|
96
|
+
@lbl_cedula_madrina = FXLabel.new(self, 'Cédula de la madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
|
97
|
+
y: 300)
|
98
|
+
@lbl_cedula_madrina.backColor = FXRGB(3, 187, 133)
|
99
|
+
@input_cedula_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
100
|
+
y: 300)
|
81
101
|
@lbl_certifica = FXLabel.new(self, 'Certifica: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
82
|
-
y:
|
102
|
+
y: 330)
|
83
103
|
@lbl_certifica.backColor = FXRGB(3, 187, 133)
|
84
104
|
@input_certifica = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
85
|
-
y:
|
105
|
+
y: 330)
|
86
106
|
|
87
107
|
# create buttons
|
88
108
|
@btnsave = FXButton.new(self, 'Guardar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
89
|
-
x: 790, y:
|
109
|
+
x: 790, y: 360)
|
90
110
|
@btncancel = FXButton.new(self, 'Cancelar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
91
|
-
x: 900, y:
|
111
|
+
x: 900, y: 360)
|
92
112
|
|
93
113
|
# connect buttons
|
94
114
|
@btnsave.connect(SEL_COMMAND) do
|
@@ -100,8 +120,12 @@ class PreBautismal < FXMainWindow
|
|
100
120
|
name = @input_name.text.empty? ? nil : @input_name.text
|
101
121
|
apellidos = @input_apellidos.text.empty? ? nil : @input_apellidos.text
|
102
122
|
cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
|
123
|
+
padre = @input_padre.text.empty? ? nil : @input_padre.text
|
124
|
+
madre = @input_madre.text.empty? ? nil : @input_madre.text
|
103
125
|
padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
|
104
126
|
madrina = @input_madrina.text.empty? ? nil : @input_madrina.text
|
127
|
+
cedula_padrino = @input_cedula_padrino.text.empty? ? nil : @input_cedula_padrino.text
|
128
|
+
cedula_madrina = @input_cedula_madrina.text.empty? ? nil : @input_cedula_madrina.text
|
105
129
|
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
106
130
|
|
107
131
|
# tables
|
@@ -128,8 +152,8 @@ class PreBautismal < FXMainWindow
|
|
128
152
|
# Insertar en la tabla misas
|
129
153
|
@registro_misas = $conn.exec('INSERT INTO misas (intencion, fecha, hora) VALUES ($1, $2, $3)', [nil, nil, nil])
|
130
154
|
$conn.exec(
|
131
|
-
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica, padrino, madrina, padre, madre) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)', [
|
132
|
-
sacramento, fecha, nil, certifica, padrino, madrina,
|
155
|
+
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica, padrino, madrina, padre, madre, cedula_padrino, cedula_madrina) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)', [
|
156
|
+
sacramento, fecha, nil, certifica, padrino, madrina, padre, madre, cedula_padrino, cedula_madrina
|
133
157
|
]
|
134
158
|
)
|
135
159
|
# Confirmar la transacción
|
@@ -145,7 +169,6 @@ class PreBautismal < FXMainWindow
|
|
145
169
|
|
146
170
|
def clear_input_fields
|
147
171
|
@input_fecha.text = ''
|
148
|
-
@input_sacramento.text = ''
|
149
172
|
@input_parroquia.text = ''
|
150
173
|
@input_sector.text = ''
|
151
174
|
@input_parroco.text = ''
|
@@ -99,20 +99,10 @@ class LicenciaMatrimonio < FXMainWindow
|
|
99
99
|
@lbl_cedula_novia.backColor = FXRGB(3, 187, 133)
|
100
100
|
@input_cedula_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
101
101
|
y: 270)
|
102
|
-
@lbl_testigo_novio = FXLabel.new(self, 'Testigo del novio: ', opts: LAYOUT_EXPLICIT, width: 150,
|
103
|
-
height: 20, x: 10, y: 300)
|
104
|
-
@lbl_testigo_novio.backColor = FXRGB(3, 187, 133)
|
105
|
-
@input_nombres_testigo_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
106
|
-
x: 170, y: 300)
|
107
|
-
@lbl_testigo_novia = FXLabel.new(self, 'Testigo novia: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
108
|
-
x: 340, y: 300)
|
109
|
-
@lbl_testigo_novia.backColor = FXRGB(3, 187, 133)
|
110
|
-
@input_nombres_testigo_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
111
|
-
x: 510, y: 300)
|
112
102
|
@lbl_certifica = FXLabel.new(self, 'Certifica: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
113
|
-
x:
|
103
|
+
x: 10, y: 300)
|
114
104
|
@lbl_certifica.backColor = FXRGB(3, 187, 133)
|
115
|
-
@input_certifica = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
105
|
+
@input_certifica = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
116
106
|
y: 300)
|
117
107
|
|
118
108
|
# section registro civil
|
@@ -169,32 +159,30 @@ class LicenciaMatrimonio < FXMainWindow
|
|
169
159
|
|
170
160
|
# connect buttons
|
171
161
|
@btnsave.connect(SEL_COMMAND) do
|
172
|
-
tomo = @input_tomo.text
|
173
|
-
page = @input_page.text
|
174
|
-
number = @input_number.text
|
175
|
-
fecha = @input_fecha.text
|
176
|
-
sacramento = @input_sacramento.text
|
177
|
-
parroquia = @input_parroquia.text
|
178
|
-
sector = @input_sector.text
|
179
|
-
parroco = @input_parroco.text
|
180
|
-
celebrante = @input_celebrante.text
|
181
|
-
name_novio = @input_name_novio.text
|
182
|
-
apellido_novio = @input_apellido_novio.text
|
162
|
+
tomo = @input_tomo.text.empty? ? nil : @input_tomo.text
|
163
|
+
page = @input_page.text.empty? ? nil : @input_page.text
|
164
|
+
number = @input_number.text.empty? ? nil : @input_number.text
|
165
|
+
fecha = @input_fecha.text.empty? ? nil : @input_fecha.text
|
166
|
+
sacramento = @input_sacramento.text.empty? ? nil : @input_sacramento.text
|
167
|
+
parroquia = @input_parroquia.text.empty? ? nil : @input_parroquia.text
|
168
|
+
sector = @input_sector.text.empty? ? nil : @input_sector.text
|
169
|
+
parroco = @input_parroco.text.empty? ? nil : @input_parroco.text
|
170
|
+
celebrante = @input_celebrante.text.empty? ? nil : @input_celebrante.text
|
171
|
+
name_novio = @input_name_novio.text.empty? ? nil : @input_name_novio.text
|
172
|
+
apellido_novio = @input_apellido_novio.text.empty? ? nil : @input_apellido_novio.text
|
183
173
|
cedula_novio = @input_cedula_novio.text.empty? ? nil : @input_cedula_novio.text
|
184
174
|
nombres_novia = @input_name_novia.text.empty? ? nil : @input_name_novia.text
|
185
175
|
apellidos_novia = @input_apellido_novia.text.empty? ? nil : @input_apellido_novia.text
|
186
176
|
cedula_novia = @input_cedula_novia.text.empty? ? nil : @input_cedula_novia.text
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
acta_rc = @input_acta_rc.text
|
197
|
-
fecha_rc = @input_date_rc.text
|
177
|
+
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
178
|
+
provincia_rc = @input_provincia_rc.text.empty? ? nil : @input_provincia_rc.text
|
179
|
+
canton_rc = @input_canton_rc.text.empty? ? nil : @input_canton_rc.text
|
180
|
+
parroquia_rc = @input_parroquia_rc.text.empty? ? nil : @input_parroquia_rc.text
|
181
|
+
anio_rc = @input_anio_rc.text.empty? ? nil : @input_anio_rc.text
|
182
|
+
tomo_rc = @input_tomo_rc.text.empty? ? nil : @input_tomo_rc.text
|
183
|
+
pagina_rc = @input_pag_rc.text.empty? ? nil : @input_pag_rc.text
|
184
|
+
acta_rc = @input_acta_rc.text.empty? ? nil : @input_acta_rc.text
|
185
|
+
fecha_rc = @input_date_rc.text.empty? ? nil : @input_date_rc.text
|
198
186
|
|
199
187
|
# tables
|
200
188
|
# tabla libros (id, tomo, pagina, numero)
|
@@ -216,8 +204,8 @@ class LicenciaMatrimonio < FXMainWindow
|
|
216
204
|
# Insertar en la tabla misas
|
217
205
|
@registro_misas = $conn.exec('INSERT INTO misas (intencion, fecha, hora) VALUES ($1, $2, $3)', [nil, nil, nil])
|
218
206
|
$conn.exec(
|
219
|
-
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica,
|
220
|
-
sacramento, fecha, celebrante, certifica,
|
207
|
+
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica, nombres_novia, apellidos_novia, cedula_novia) VALUES ($1, $2, $3, $4, $5, $6, $7)', [
|
208
|
+
sacramento, fecha, celebrante, certifica, nombres_novia, apellidos_novia, cedula_novia
|
221
209
|
]
|
222
210
|
)
|
223
211
|
$conn.exec('COMMIT')
|
@@ -235,6 +223,8 @@ class LicenciaMatrimonio < FXMainWindow
|
|
235
223
|
@input_page.text = ''
|
236
224
|
@input_number.text = ''
|
237
225
|
@input_fecha.text = ''
|
226
|
+
@input_parroquia.text = ''
|
227
|
+
@input_sector.text = ''
|
238
228
|
@input_parroco.text = ''
|
239
229
|
@input_celebrante.text = ''
|
240
230
|
@input_name_novio.text = ''
|
@@ -243,8 +233,6 @@ class LicenciaMatrimonio < FXMainWindow
|
|
243
233
|
@input_name_novia.text = ''
|
244
234
|
@input_apellido_novia.text = ''
|
245
235
|
@input_cedula_novia.text = ''
|
246
|
-
@input_nombres_testigo_novio.text = ''
|
247
|
-
@input_nombres_testigo_novia.text = ''
|
248
236
|
@input_certifica.text = ''
|
249
237
|
@input_provincia_rc.text = ''
|
250
238
|
@input_canton_rc.text = ''
|
@@ -5,7 +5,7 @@ include Fox
|
|
5
5
|
|
6
6
|
class PermisoBautizo < FXMainWindow
|
7
7
|
def initialize(app)
|
8
|
-
super(app, 'Parroquia San Judas Tadeo', width: 1050, height:
|
8
|
+
super(app, 'Parroquia San Judas Tadeo', width: 1050, height: 430)
|
9
9
|
self.backColor = FXRGB(3, 187, 133)
|
10
10
|
# create label
|
11
11
|
# Title
|
@@ -55,50 +55,70 @@ class PermisoBautizo < FXMainWindow
|
|
55
55
|
@input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
56
56
|
y: 180)
|
57
57
|
@lbl_name = FXLabel.new(self, 'Nombres: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
58
|
-
y:
|
58
|
+
y: 210)
|
59
59
|
@lbl_name.backColor = FXRGB(3, 187, 133)
|
60
|
-
@input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170, y:
|
60
|
+
@input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170, y: 210)
|
61
61
|
@lbl_apellidos = FXLabel.new(self, 'Apellidos: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
62
|
-
x: 340, y:
|
62
|
+
x: 340, y: 210)
|
63
63
|
@lbl_apellidos.backColor = FXRGB(3, 187, 133)
|
64
64
|
@input_apellidos = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
65
|
-
y:
|
66
|
-
@lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
67
|
-
y:
|
65
|
+
y: 210)
|
66
|
+
@lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
|
67
|
+
y: 210)
|
68
68
|
@lbl_cedula.backColor = FXRGB(3, 187, 133)
|
69
|
-
@input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
70
|
-
y:
|
69
|
+
@input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
70
|
+
y: 210)
|
71
71
|
@lbl_padre = FXLabel.new(self, 'Padre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
72
|
-
y:
|
72
|
+
y: 240)
|
73
73
|
@lbl_padre.backColor = FXRGB(3, 187, 133)
|
74
74
|
@input_padre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
75
|
-
y:
|
76
|
-
@
|
77
|
-
|
75
|
+
y: 240)
|
76
|
+
@lbl_cedula_padre = FXLabel.new(self, 'Cédula del Padre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
|
77
|
+
y: 240)
|
78
|
+
@lbl_cedula_padre.backColor = FXRGB(3, 187, 133)
|
79
|
+
@input_cedula_padre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
80
|
+
y: 240)
|
81
|
+
@lbl_madre = FXLabel.new(self, 'Madre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
82
|
+
y: 270)
|
78
83
|
@lbl_madre.backColor = FXRGB(3, 187, 133)
|
79
|
-
@input_madre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
80
|
-
y:
|
84
|
+
@input_madre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
85
|
+
y: 270)
|
86
|
+
@lbl_cedula_madre = FXLabel.new(self, 'Cédula de la Madre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
|
87
|
+
y: 270)
|
88
|
+
@lbl_cedula_madre.backColor = FXRGB(3, 187, 133)
|
89
|
+
@input_cedula_madre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
90
|
+
y: 270)
|
81
91
|
@lbl_padrino = FXLabel.new(self, 'Padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
82
|
-
y:
|
92
|
+
y: 300)
|
83
93
|
@lbl_padrino.backColor = FXRGB(3, 187, 133)
|
84
94
|
@input_padrino = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
85
|
-
y:
|
86
|
-
@
|
87
|
-
|
95
|
+
y: 300)
|
96
|
+
@lbl_cedula_padrino = FXLabel.new(self, 'Cédula del Padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
|
97
|
+
y: 300)
|
98
|
+
@lbl_cedula_padrino.backColor = FXRGB(3, 187, 133)
|
99
|
+
@input_cedula_padrino = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
100
|
+
y: 300)
|
101
|
+
@lbl_madrina = FXLabel.new(self, 'Madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
102
|
+
y: 330)
|
88
103
|
@lbl_madrina.backColor = FXRGB(3, 187, 133)
|
89
|
-
@input_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x:
|
90
|
-
y:
|
104
|
+
@input_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
105
|
+
y: 330)
|
106
|
+
@lbl_cedula_madrina = FXLabel.new(self, 'Cédula de la Madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
|
107
|
+
y: 330)
|
108
|
+
@lbl_cedula_madrina.backColor = FXRGB(3, 187, 133)
|
109
|
+
@input_cedula_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
110
|
+
y: 330)
|
91
111
|
@lbl_certifica = FXLabel.new(self, 'Autoriza: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
|
92
|
-
y:
|
112
|
+
y: 360)
|
93
113
|
@lbl_certifica.backColor = FXRGB(3, 187, 133)
|
94
114
|
@input_certifica = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
95
|
-
y:
|
115
|
+
y: 360)
|
96
116
|
|
97
117
|
# create buttons
|
98
118
|
@btnsave = FXButton.new(self, 'Guardar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
99
|
-
x: 790, y:
|
119
|
+
x: 790, y: 390)
|
100
120
|
@btncancel = FXButton.new(self, 'Cancelar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
101
|
-
x: 900, y:
|
121
|
+
x: 900, y: 390)
|
102
122
|
|
103
123
|
# connect buttons
|
104
124
|
@btnsave.connect(SEL_COMMAND) do
|
@@ -114,6 +134,10 @@ class PermisoBautizo < FXMainWindow
|
|
114
134
|
madrina = @input_madrina.text.empty? ? nil : @input_madrina.text
|
115
135
|
padre = @input_padre.text.empty? ? nil : @input_padre.text
|
116
136
|
madre = @input_madre.text.empty? ? nil : @input_madre.text
|
137
|
+
cedula_padre = @input_cedula_padre.text.empty? ? nil : @input_cedula_padre.text
|
138
|
+
cedula_madre = @input_cedula_madre.text.empty? ? nil : @input_cedula_madre.text
|
139
|
+
cedula_padrino = @input_cedula_padrino.text.empty? ? nil : @input_cedula_padrino.text
|
140
|
+
cedula_madrina = @input_cedula_madrina.text.empty? ? nil : @input_cedula_madrina.text
|
117
141
|
certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
|
118
142
|
|
119
143
|
# tables
|
@@ -140,8 +164,8 @@ class PermisoBautizo < FXMainWindow
|
|
140
164
|
# Insertar en la tabla misas
|
141
165
|
@registro_misas = $conn.exec('INSERT INTO misas (intencion, fecha, hora) VALUES ($1, $2, $3)', [nil, nil, nil])
|
142
166
|
$conn.exec(
|
143
|
-
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica, padrino, madrina, padre, madre) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)', [
|
144
|
-
sacramento, fecha, nil, certifica, padrino, madrina, padre, madre
|
167
|
+
'INSERT INTO sacramentos (sacramento, fecha, celebrante, certifica, padrino, madrina, padre, madre, cedula_padre, cedula_madre, cedula_padrino, cedula_madrina) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)', [
|
168
|
+
sacramento, fecha, nil, certifica, padrino, madrina, padre, madre, cedula_padre, cedula_madre, cedula_padrino, cedula_madrina
|
145
169
|
]
|
146
170
|
)
|
147
171
|
# Confirmar la transacción
|
@@ -157,7 +181,6 @@ class PermisoBautizo < FXMainWindow
|
|
157
181
|
|
158
182
|
def clear_input_fields
|
159
183
|
@input_fecha.text = ''
|
160
|
-
@input_sacramento.text = ''
|
161
184
|
@input_parroquia.text = ''
|
162
185
|
@input_sector.text = ''
|
163
186
|
@input_parroco.text = ''
|
@@ -168,6 +191,10 @@ class PermisoBautizo < FXMainWindow
|
|
168
191
|
@input_madrina.text = ''
|
169
192
|
@input_padre.text = ''
|
170
193
|
@input_madre.text = ''
|
194
|
+
@input_cedula_padre.text = ''
|
195
|
+
@input_cedula_madre.text = ''
|
196
|
+
@input_cedula_padrino.text = ''
|
197
|
+
@input_cedula_madrina.text = ''
|
171
198
|
@input_certifica.text = ''
|
172
199
|
end
|
173
200
|
end
|
@@ -5,7 +5,7 @@ include Fox
|
|
5
5
|
|
6
6
|
class PermisoMatrimonio < FXMainWindow
|
7
7
|
def initialize(app)
|
8
|
-
super(app, 'Parroquia San Judas Tadeo', width: 1050, height:
|
8
|
+
super(app, 'Parroquia San Judas Tadeo', width: 1050, height: 360)
|
9
9
|
self.backColor = FXRGB(3, 187, 133)
|
10
10
|
# Title
|
11
11
|
@lbltitle = FXLabel.new(self, 'Bienvenido a la Parroquia San Judas Tadeo',
|
@@ -53,57 +53,57 @@ class PermisoMatrimonio < FXMainWindow
|
|
53
53
|
@input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
54
54
|
y: 180)
|
55
55
|
@lbl_name_novio = FXLabel.new(self, 'Nombres del novio: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
56
|
-
x: 10, y:
|
56
|
+
x: 10, y: 210)
|
57
57
|
@lbl_name_novio.backColor = FXRGB(3, 187, 133)
|
58
58
|
@input_name_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
59
|
-
y:
|
59
|
+
y: 210)
|
60
60
|
@lbl_apellido_novio = FXLabel.new(self, 'Apellidos del novio: ', opts: LAYOUT_EXPLICIT, width: 150,
|
61
|
-
height: 20, x: 340, y:
|
61
|
+
height: 20, x: 340, y: 210)
|
62
62
|
@lbl_apellido_novio.backColor = FXRGB(3, 187, 133)
|
63
63
|
@input_apellido_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
64
|
-
y:
|
64
|
+
y: 210)
|
65
65
|
@lbl_cedula_novio = FXLabel.new(self, 'Cédula del novio: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
66
|
-
x: 680, y:
|
66
|
+
x: 680, y: 210)
|
67
67
|
@lbl_cedula_novio.backColor = FXRGB(3, 187, 133)
|
68
68
|
@input_cedula_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
69
|
-
y:
|
69
|
+
y: 210)
|
70
70
|
@lbl_name_novia = FXLabel.new(self, 'Nombres de la novia: ', opts: LAYOUT_EXPLICIT, width: 150,
|
71
|
-
height: 20, x: 10, y:
|
71
|
+
height: 20, x: 10, y: 240)
|
72
72
|
@lbl_name_novia.backColor = FXRGB(3, 187, 133)
|
73
73
|
@input_name_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
|
74
|
-
y:
|
74
|
+
y: 240)
|
75
75
|
@lbl_apellido_novia = FXLabel.new(self, 'Apellidos de la novia: ', opts: LAYOUT_EXPLICIT, width: 150,
|
76
|
-
height: 20, x: 340, y:
|
76
|
+
height: 20, x: 340, y: 240)
|
77
77
|
@lbl_apellido_novia.backColor = FXRGB(3, 187, 133)
|
78
78
|
@input_apellido_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
|
79
|
-
y:
|
79
|
+
y: 240)
|
80
80
|
@lbl_cedula_novia = FXLabel.new(self, 'Cédula de la novia: ', opts: LAYOUT_EXPLICIT, width: 150,
|
81
|
-
height: 20, x: 680, y:
|
81
|
+
height: 20, x: 680, y: 240)
|
82
82
|
@lbl_cedula_novia.backColor = FXRGB(3, 187, 133)
|
83
83
|
@input_cedula_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
84
|
-
y:
|
84
|
+
y: 240)
|
85
85
|
@lbl_testigo_novio = FXLabel.new(self, 'Testigo del novio: ', opts: LAYOUT_EXPLICIT, width: 150,
|
86
|
-
height: 20, x: 10, y:
|
86
|
+
height: 20, x: 10, y: 270)
|
87
87
|
@lbl_testigo_novio.backColor = FXRGB(3, 187, 133)
|
88
88
|
@input_nombres_testigo_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
89
|
-
x: 170, y:
|
89
|
+
x: 170, y: 270)
|
90
90
|
@lbl_testigo_novia = FXLabel.new(self, 'Testigo novia: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
91
|
-
x: 340, y:
|
91
|
+
x: 340, y: 270)
|
92
92
|
@lbl_testigo_novia.backColor = FXRGB(3, 187, 133)
|
93
93
|
@input_nombres_testigo_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
94
|
-
x: 510, y:
|
94
|
+
x: 510, y: 270)
|
95
95
|
@lbl_certifica = FXLabel.new(self, 'Certifica: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
|
96
|
-
x: 680, y:
|
96
|
+
x: 680, y: 270)
|
97
97
|
@lbl_certifica.backColor = FXRGB(3, 187, 133)
|
98
98
|
@input_certifica = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
|
99
|
-
y:
|
99
|
+
y: 270)
|
100
100
|
|
101
101
|
|
102
102
|
# create buttons
|
103
103
|
@btnsave = FXButton.new(self, 'Guardar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
104
|
-
x: 790, y:
|
104
|
+
x: 790, y: 300)
|
105
105
|
@btncancel = FXButton.new(self, 'Cancelar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
|
106
|
-
x: 900, y:
|
106
|
+
x: 900, y: 300)
|
107
107
|
|
108
108
|
# connect buttons
|
109
109
|
@btnsave.connect(SEL_COMMAND) do
|
@@ -158,7 +158,6 @@ class PermisoMatrimonio < FXMainWindow
|
|
158
158
|
|
159
159
|
def clear_input_fields
|
160
160
|
@input_fecha.text = ''
|
161
|
-
@input_sacramento.text = ''
|
162
161
|
@input_parroquia.text = ''
|
163
162
|
@input_sector.text = ''
|
164
163
|
@input_parroco.text = ''
|