parroquia 1.1.26 → 1.1.27

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.
@@ -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: 600)
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: 240)
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: 240)
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: 240)
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: 240)
66
- @lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
67
- y: 270)
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: 170,
70
- y: 270)
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: 360)
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: 360)
76
- @lbl_madrina = FXLabel.new(self, 'Madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
77
- y: 360)
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: 510,
80
- y: 360)
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: 390)
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: 390)
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: 540)
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: 540)
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, nil, nil
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
@@ -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: 680, y: 300)
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: 850,
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
- testigo_novio = @input_nombres_testigo_novio.text.empty? ? nil : @input_nombres_testigo_novio.text
188
- testigo_novia = @input_nombres_testigo_novia.text.empty? ? nil : @input_nombres_testigo_novia.text
189
- certifica = @input_certifica.text
190
- provincia_rc = @input_provincia_rc.text
191
- canton_rc = @input_canton_rc.text
192
- parroquia_rc = @input_parroquia_rc.text
193
- anio_rc = @input_anio_rc.text
194
- tomo_rc = @input_tomo_rc.text
195
- pagina_rc = @input_pag_rc.text
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, testigo_novio, testigo_novia, nombres_novia, apellidos_novia, cedula_novia) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)', [
220
- sacramento, fecha, celebrante, certifica, testigo_novio, testigo_novia, nombres_novia, apellidos_novia, cedula_novia
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: 600)
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: 240)
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: 240)
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: 240)
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: 240)
66
- @lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
67
- y: 270)
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: 170,
70
- y: 270)
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: 330)
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: 330)
76
- @lbl_madre = FXLabel.new(self, 'Madre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
77
- y: 330)
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: 510,
80
- y: 330)
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: 360)
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: 360)
86
- @lbl_madrina = FXLabel.new(self, 'Madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
87
- y: 360)
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: 510,
90
- y: 360)
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: 390)
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: 390)
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: 540)
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: 540)
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
@@ -168,6 +192,10 @@ class PermisoBautizo < FXMainWindow
168
192
  @input_madrina.text = ''
169
193
  @input_padre.text = ''
170
194
  @input_madre.text = ''
195
+ @input_cedula_padre.text = ''
196
+ @input_cedula_madre.text = ''
197
+ @input_cedula_padrino.text = ''
198
+ @input_cedula_madrina.text = ''
171
199
  @input_certifica.text = ''
172
200
  end
173
201
  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: 530)
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: 240)
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: 240)
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: 240)
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: 240)
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: 240)
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: 240)
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: 270)
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: 270)
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: 270)
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: 270)
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: 270)
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: 270)
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: 300)
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: 300)
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: 300)
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: 300)
94
+ x: 510, y: 270)
95
95
  @lbl_certifica = FXLabel.new(self, 'Certifica: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
96
- x: 680, y: 300)
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: 300)
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: 480)
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: 480)
106
+ x: 900, y: 300)
107
107
 
108
108
  # connect buttons
109
109
  @btnsave.connect(SEL_COMMAND) do