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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5beb0356a40008f9da8b0843aa31e6dfb847edb6d65c19e6e26d76abb6cf2e66
4
- data.tar.gz: 4f7d7ed16df02792951905be43d7361f055f65b774a15d03fcf8da7f1e699a4c
3
+ metadata.gz: dc36e890fb4700a4c5bef2ebb6e32797b2d3f118c5b191b54ceaf392a83caa77
4
+ data.tar.gz: efccf0d83261360314548f37a5e23939ec4ac78d873e0b89e05ed84f873188bc
5
5
  SHA512:
6
- metadata.gz: c2e043878a6d0b41097d1a5964db368eebb51e0ccb72e21cf508739eb4e6ac8f935a2e3c87eb46950adfb538ae543886b4b4866fa1fcf318c7df314866e42b47
7
- data.tar.gz: fdd0fe6fa889ba2affbf66a769437cf5c70cf58ee036b16bad7ab5c1f2e86d4bb1632054ed11be1a4f5e0f2c2647b10ff984932666ec5256357d617eb931f809
6
+ metadata.gz: 3ba5ebba38e1f7518e53f930d7fac866b1d5a68debd6fe03e0d7e163ec3e1e8e418c2902a90e24c1837bc8134561ddd9d81516159318e4c9ee77b1309a57942b
7
+ data.tar.gz: 69b384476b8471a17977b2a32fa49a33cfe433162486d0a729dc9917036a5cef892902149b0c72f7afbc8678ecd396f7005842a1b67230a343f04398ce27b347
@@ -29,18 +29,18 @@ class ActualizarBautismo < FXMainWindow
29
29
  @lbl_tomo.backColor = FXRGB(3, 187, 133)
30
30
  # EL input tomoo debe tener el valor del campo "tomo" del registro
31
31
  @input_tomo = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 110, y: 100)
32
- @input_tomo.text = registro[15]
32
+ @input_tomo.text = registro[19]
33
33
 
34
34
  @lbl_page = FXLabel.new(self, 'Pagina', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 170, y: 100)
35
35
  @lbl_page.backColor = FXRGB(3, 187, 133)
36
36
  @input_page = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 230, y: 100)
37
- @input_page.text = registro[16]
37
+ @input_page.text = registro[20]
38
38
  @lbl_number = FXLabel.new(self, 'Numero', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 290,
39
39
  y: 100)
40
40
  @lbl_number.backColor = FXRGB(3, 187, 133)
41
41
  @input_number = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 350,
42
42
  y: 100)
43
- @input_number.text = registro[17]
43
+ @input_number.text = registro[21]
44
44
 
45
45
  # section datos
46
46
  @lbl_fecha = FXLabel.new(self, 'Fecha de bautismo (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT, width: 250,
@@ -61,19 +61,19 @@ class ActualizarBautismo < FXMainWindow
61
61
  @lbl_parroquia.backColor = FXRGB(3, 187, 133)
62
62
  @input_parroquia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
63
63
  y: 180)
64
- @input_parroquia.text = registro[25]
64
+ @input_parroquia.text = registro[29]
65
65
  @lbl_sector = FXLabel.new(self, 'Sector: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
66
66
  y: 180)
67
67
  @lbl_sector.backColor = FXRGB(3, 187, 133)
68
68
  @input_sector = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
69
69
  y: 180)
70
- @input_sector.text = registro[26]
70
+ @input_sector.text = registro[30]
71
71
  @lbl_parroco = FXLabel.new(self, 'Parroco: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
72
72
  y: 180)
73
73
  @lbl_parroco.backColor = FXRGB(3, 187, 133)
74
74
  @input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
75
75
  y: 180)
76
- @input_parroco.text = registro[27]
76
+ @input_parroco.text = registro[31]
77
77
  @lbl_ministro = FXLabel.new(self, 'Ministro: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
78
78
  y: 210)
79
79
  @lbl_ministro.backColor = FXRGB(3, 187, 133)
@@ -85,31 +85,31 @@ class ActualizarBautismo < FXMainWindow
85
85
  @lbl_name.backColor = FXRGB(3, 187, 133)
86
86
  @input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
87
87
  y: 240)
88
- @input_name.text = registro[19]
88
+ @input_name.text = registro[23]
89
89
  @lbl_apellidos = FXLabel.new(self, 'Apellidos: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
90
90
  x: 340, y: 240)
91
91
  @lbl_apellidos.backColor = FXRGB(3, 187, 133)
92
92
  @input_apellidos = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
93
93
  y: 240)
94
- @input_apellidos.text = registro[20]
94
+ @input_apellidos.text = registro[24]
95
95
  @lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
96
96
  y: 270)
97
97
  @lbl_cedula.backColor = FXRGB(3, 187, 133)
98
98
  @input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
99
99
  y: 270)
100
- @input_cedula.text = registro[23]
100
+ @input_cedula.text = registro[27]
101
101
  @lbl_lugar_nacimiento = FXLabel.new(self, 'Lugar de nacimiento: ', opts: LAYOUT_EXPLICIT, width: 150,
102
102
  height: 20, x: 10, y: 300)
103
103
  @lbl_lugar_nacimiento.backColor = FXRGB(3, 187, 133)
104
104
  @input_lugar_nacimiento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
105
105
  x: 170, y: 300)
106
- @input_lugar_nacimiento.text = registro[21]
106
+ @input_lugar_nacimiento.text = registro[25]
107
107
  @lbl_fecha_nacimiento = FXLabel.new(self, 'Fecha de nacimiento (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT,
108
108
  width: 250, height: 20, x: 340, y: 300)
109
109
  @lbl_fecha_nacimiento.backColor = FXRGB(3, 187, 133)
110
110
  @input_fecha_nacimiento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
111
111
  x: 590, y: 300)
112
- @input_fecha_nacimiento.text = registro[22]
112
+ @input_fecha_nacimiento.text = registro[26]
113
113
  @lbl_padre = FXLabel.new(self, 'Padre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
114
114
  y: 330)
115
115
  @lbl_padre.backColor = FXRGB(3, 187, 133)
@@ -150,49 +150,49 @@ class ActualizarBautismo < FXMainWindow
150
150
  @lbl_provincia_rc.backColor = FXRGB(3, 187, 133)
151
151
  @input_provincia_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
152
152
  y: 450)
153
- @input_provincia_rc.text = registro[29]
153
+ @input_provincia_rc.text = registro[33]
154
154
  @lbl_canton_rc = FXLabel.new(self, 'Cantón: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
155
155
  y: 450)
156
156
  @lbl_canton_rc.backColor = FXRGB(3, 187, 133)
157
157
  @input_canton_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
158
158
  y: 450)
159
- @input_canton_rc.text = registro[30]
159
+ @input_canton_rc.text = registro[34]
160
160
  @lbl_parroquia_rc = FXLabel.new(self, 'Parroquia: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
161
161
  x: 680, y: 450)
162
162
  @lbl_parroquia_rc.backColor = FXRGB(3, 187, 133)
163
163
  @input_parroquia_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
164
164
  y: 450)
165
- @input_parroquia_rc.text = registro[31]
165
+ @input_parroquia_rc.text = registro[35]
166
166
  @lbl_anio_rc = FXLabel.new(self, 'Año: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 50,
167
167
  y: 480)
168
168
  @lbl_anio_rc.backColor = FXRGB(3, 187, 133)
169
169
  @input_anio_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 110,
170
170
  y: 480)
171
- @input_anio_rc.text = registro[32]
171
+ @input_anio_rc.text = registro[36]
172
172
  @lbl_tomo_rc = FXLabel.new(self, 'Tomo: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 170,
173
173
  y: 480)
174
174
  @lbl_tomo_rc.backColor = FXRGB(3, 187, 133)
175
175
  @input_tomo_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 230,
176
176
  y: 480)
177
- @input_tomo_rc.text = registro[33]
177
+ @input_tomo_rc.text = registro[37]
178
178
  @lbl_pag_rc = FXLabel.new(self, 'Página: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 290,
179
179
  y: 480)
180
180
  @lbl_pag_rc.backColor = FXRGB(3, 187, 133)
181
181
  @input_pag_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 350,
182
182
  y: 480)
183
- @input_pag_rc.text = registro[34]
183
+ @input_pag_rc.text = registro[38]
184
184
  @lbl_acta_rc = FXLabel.new(self, 'Acta: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 410,
185
185
  y: 480)
186
186
  @lbl_acta_rc.backColor = FXRGB(3, 187, 133)
187
187
  @input_acta_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 470,
188
188
  y: 480)
189
- @input_acta_rc.text = registro[35]
189
+ @input_acta_rc.text = registro[39]
190
190
  @lbl_date_rc = FXLabel.new(self, 'Fecha (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
191
191
  x: 10, y: 510)
192
192
  @lbl_date_rc.backColor = FXRGB(3, 187, 133)
193
193
  @input_date_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
194
194
  y: 510)
195
- @input_date_rc.text = registro[36]
195
+ @input_date_rc.text = registro[40]
196
196
 
197
197
 
198
198
  # create buttons
@@ -3,9 +3,9 @@
3
3
  require 'fox16'
4
4
  include Fox
5
5
 
6
- class ActualizarPreBautismoal < FXMainWindow
6
+ class ActualizarPreBautismal < FXMainWindow
7
7
  def initialize(app, registro)
8
- super(app, 'Editando Registro', width: 1050, height: 600)
8
+ super(app, 'Editando Registro', width: 1050, height: 400)
9
9
  self.backColor = FXRGB(3, 187, 133)
10
10
  @registro = registro
11
11
  # Title
@@ -44,61 +44,85 @@ class ActualizarPreBautismoal < FXMainWindow
44
44
  @lbl_parroquia.backColor = FXRGB(3, 187, 133)
45
45
  @input_parroquia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
46
46
  y: 180)
47
- @input_parroquia.text = registro[25]
47
+ @input_parroquia.text = registro[29]
48
48
  @lbl_sector = FXLabel.new(self, 'Sector: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
49
49
  y: 180)
50
50
  @lbl_sector.backColor = FXRGB(3, 187, 133)
51
51
  @input_sector = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
52
52
  y: 180)
53
- @input_sector.text = registro[26]
53
+ @input_sector.text = registro[30]
54
54
  @lbl_parroco = FXLabel.new(self, 'Parroco: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
55
55
  y: 180)
56
56
  @lbl_parroco.backColor = FXRGB(3, 187, 133)
57
57
  @input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
58
58
  y: 180)
59
- @input_parroco.text = registro[27]
59
+ @input_parroco.text = registro[31]
60
60
  @lbl_name = FXLabel.new(self, 'Nombres: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
61
- y: 240)
61
+ y: 210)
62
62
  @lbl_name.backColor = FXRGB(3, 187, 133)
63
- @input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170, y: 240)
64
- @input_name.text = registro[19]
63
+ @input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170, y: 210)
64
+ @input_name.text = registro[23]
65
65
  @lbl_apellidos = FXLabel.new(self, 'Apellidos: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
66
- x: 340, y: 240)
66
+ x: 340, y: 210)
67
67
  @lbl_apellidos.backColor = FXRGB(3, 187, 133)
68
68
  @input_apellidos = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
69
- y: 240)
70
- @input_apellidos.text = registro[20]
71
- @lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
72
- y: 270)
69
+ y: 210)
70
+ @input_apellidos.text = registro[24]
71
+ @lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
72
+ y: 210)
73
73
  @lbl_cedula.backColor = FXRGB(3, 187, 133)
74
- @input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
75
- y: 270)
76
- @input_cedula.text = registro[23]
74
+ @input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
75
+ y: 210)
76
+ @input_cedula.text = registro[27]
77
+ @lbl_padre = FXLabel.new(self, 'Padre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
78
+ y: 240)
79
+ @lbl_padre.backColor = FXRGB(3, 187, 133)
80
+ @input_padre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
81
+ y: 240)
82
+ @input_padre.text = registro[9]
83
+ @lbl_madre = FXLabel.new(self, 'Madre: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
84
+ y: 240)
85
+ @lbl_madre.backColor = FXRGB(3, 187, 133)
86
+ @input_madre = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
87
+ y: 240)
88
+ @input_madre.text = registro[10]
77
89
  @lbl_padrino = FXLabel.new(self, 'Padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
78
- y: 360)
90
+ y: 270)
79
91
  @lbl_padrino.backColor = FXRGB(3, 187, 133)
80
92
  @input_padrino = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
81
- y: 360)
93
+ y: 270)
82
94
  @input_padrino.text = registro[5]
83
- @lbl_madrina = FXLabel.new(self, 'Madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
84
- y: 360)
95
+ @lbl_cedula_padrino = FXLabel.new(self, 'Cédula del padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
96
+ y: 270)
97
+ @lbl_cedula_padrino.backColor = FXRGB(3, 187, 133)
98
+ @input_cedula_padrino = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
99
+ y: 270)
100
+ @input_cedula_padrino.text = registro[14]
101
+ @lbl_madrina = FXLabel.new(self, 'Madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
102
+ y: 300)
85
103
  @lbl_madrina.backColor = FXRGB(3, 187, 133)
86
- @input_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
87
- y: 360)
104
+ @input_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
105
+ y: 300)
88
106
  @input_madrina.text = registro[6]
107
+ @lbl_cedula_madrina = FXLabel.new(self, 'Cédula de la madrina: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
108
+ y: 300)
109
+ @lbl_cedula_madrina.backColor = FXRGB(3, 187, 133)
110
+ @input_cedula_madrina = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
111
+ y: 300)
112
+ @input_cedula_madrina.text = registro[15]
89
113
  @lbl_certifica = FXLabel.new(self, 'Certifica: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
90
- y: 390)
114
+ y: 330)
91
115
  @lbl_certifica.backColor = FXRGB(3, 187, 133)
92
116
  @input_certifica = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
93
- y: 390)
117
+ y: 330)
94
118
  @input_certifica.text = registro[4]
95
119
 
96
120
 
97
121
  # create buttons
98
122
  @btnupdate = FXButton.new(self, 'Actualizar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
99
- x: 790, y: 540)
123
+ x: 790, y: 360)
100
124
  @btncancel = FXButton.new(self, 'Cancelar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
101
- x: 900, y: 540)
125
+ x: 900, y: 360)
102
126
 
103
127
  # connect buttons
104
128
  @btnupdate.connect(SEL_COMMAND) do
@@ -111,7 +135,11 @@ class ActualizarPreBautismoal < FXMainWindow
111
135
  apellidos = @input_apellidos.text.empty? ? nil : @input_apellidos.text
112
136
  cedula = @input_cedula.text.empty? ? nil : @input_cedula.text
113
137
  padrino = @input_padrino.text.empty? ? nil : @input_padrino.text
114
- madrina = @input_madrina.text.empty? ? nil : @input_madrina.text
138
+ cedula_padrino = @input_cedula_padrino.text.empty? ? nil : @input_cedula_padrino.text
139
+ madrina = @input_madrina.text.empty? ? nil : @input_madrina.
140
+ cedula_madrina = @input_cedula_madrina.text.empty? ? nil : @input_cedula_madrina.text
141
+ certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
142
+
115
143
 
116
144
  # tables
117
145
  # tabla libros (id, tomo, pagina, numero)
@@ -122,10 +150,9 @@ class ActualizarPreBautismoal < FXMainWindow
122
150
  # Iniciar una transacción
123
151
  $conn.transaction do
124
152
  $conn.exec(
125
- 'UPDATE sacramentos SET fecha = $1, sacramento = $2, certifica = $3, padrino = $4, madrina = $5 WHERE id = $9', [fecha,
126
- sacramento, certifica, padrino, madrina, registro[0]]
127
- )
128
- $conn.exec('UPDATE creyentes SET nombres = $1, apellidos = $2, cedula = $3 WHERE id = $6',
153
+ 'UPDATE sacramentos SET fecha = $1, sacramento = $2, certifica = $3, padrino = $4, madrina = $5, cedula_padrino = $6, cedula_madrina = $7 WHERE id = $8',
154
+ [fecha, sacramento, certifica, padrino, madrina, cedula_padrino, cedula_madrina, registro[0]])
155
+ $conn.exec('UPDATE creyentes SET nombres = $1, apellidos = $2, cedula = $3 WHERE id = $4',
129
156
  [name, apellidos, cedula, registro[18]])
130
157
  $conn.exec('UPDATE parroquias SET parroquia = $1, sector = $2, parroco = $3 WHERE id = $4',
131
158
  [parroquia, sector, parroco, registro[24]])
@@ -7,7 +7,7 @@ include Fox
7
7
  class ActualizarComunion < FXMainWindow
8
8
  def initialize(app, registro)
9
9
  @registro = registro
10
- super(app, 'Parroquia San Judas Tadeo', width: 1050, height: 450)
10
+ super(app, 'Parroquia San Judas Tadeo', width: 1050, height: 430)
11
11
  self.backColor = FXRGB(3, 187, 133)
12
12
  # Title
13
13
  @lbltitle = FXLabel.new(self, 'Bienvenido a la Parroquia San Judas Tadeo',
@@ -30,18 +30,18 @@ class ActualizarComunion < FXMainWindow
30
30
  @lbl_tomo.backColor = FXRGB(3, 187, 133)
31
31
  # EL input tomoo debe tener el valor del campo "tomo" del registro
32
32
  @input_tomo = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 110, y: 100)
33
- @input_tomo.text = registro[15]
33
+ @input_tomo.text = registro[19]
34
34
 
35
35
  @lbl_page = FXLabel.new(self, 'Pagina', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 170, y: 100)
36
36
  @lbl_page.backColor = FXRGB(3, 187, 133)
37
37
  @input_page = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 230, y: 100)
38
- @input_page.text = registro[16]
38
+ @input_page.text = registro[20]
39
39
  @lbl_number = FXLabel.new(self, 'Numero', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 290,
40
40
  y: 100)
41
41
  @lbl_number.backColor = FXRGB(3, 187, 133)
42
42
  @input_number = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 350,
43
43
  y: 100)
44
- @input_number.text = registro[17]
44
+ @input_number.text = registro[21]
45
45
  # section datos
46
46
  @lbl_fecha = FXLabel.new(self, 'Fecha de la 1ra comunión (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT, width: 250,
47
47
  height: 20, x: 10, y: 150)
@@ -61,19 +61,19 @@ class ActualizarComunion < FXMainWindow
61
61
  @lbl_parroquia.backColor = FXRGB(3, 187, 133)
62
62
  @input_parroquia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
63
63
  y: 180)
64
- @input_parroquia.text = @registro[25]
64
+ @input_parroquia.text = @registro[29]
65
65
  @lbl_sector = FXLabel.new(self, 'Sector: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
66
66
  y: 180)
67
67
  @lbl_sector.backColor = FXRGB(3, 187, 133)
68
68
  @input_sector = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
69
69
  y: 180)
70
- @input_sector.text = @registro[26]
70
+ @input_sector.text = @registro[30]
71
71
  @lbl_parroco = FXLabel.new(self, 'Parroco: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
72
72
  y: 180)
73
73
  @lbl_parroco.backColor = FXRGB(3, 187, 133)
74
74
  @input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
75
75
  y: 180)
76
- @input_parroco.text = @registro[27]
76
+ @input_parroco.text = @registro[31]
77
77
  @lbl_celebrante = FXLabel.new(self, 'Celebrante: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
78
78
  x: 10, y: 210)
79
79
  @lbl_celebrante.backColor = FXRGB(3, 187, 133)
@@ -85,48 +85,42 @@ class ActualizarComunion < FXMainWindow
85
85
  @lbl_name.backColor = FXRGB(3, 187, 133)
86
86
  @input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
87
87
  y: 240)
88
- @input_name.text = @registro[19]
88
+ @input_name.text = @registro[23]
89
89
  @lbl_apellidos = FXLabel.new(self, 'Apellidos: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
90
90
  y: 270)
91
91
  @lbl_apellidos.backColor = FXRGB(3, 187, 133)
92
92
  @input_apellidos = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
93
93
  y: 270)
94
- @input_apellidos.text = @registro[20]
94
+ @input_apellidos.text = @registro[24]
95
95
  @lbl_lugar_nacimiento = FXLabel.new(self, 'Lugar de nacimiento: ', opts: LAYOUT_EXPLICIT, width: 150,
96
96
  height: 20, x: 10, y: 300)
97
97
  @lbl_lugar_nacimiento.backColor = FXRGB(3, 187, 133)
98
98
  @input_lugar_nacimiento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
99
99
  x: 170, y: 300)
100
- @input_lugar_nacimiento.text = @registro[21]
100
+ @input_lugar_nacimiento.text = @registro[25]
101
101
  @lbl_fecha_nacimiento = FXLabel.new(self, 'Fecha de nacimiento (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT,
102
102
  width: 250, height: 20, x: 340, y: 300)
103
103
  @lbl_fecha_nacimiento.backColor = FXRGB(3, 187, 133)
104
104
  @input_fecha_nacimiento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
105
105
  x: 590, y: 300)
106
- @input_fecha_nacimiento.text = @registro[22]
106
+ @input_fecha_nacimiento.text = @registro[26]
107
107
  @lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 80, height: 20, x: 750,
108
108
  y: 300)
109
109
  @lbl_cedula.backColor = FXRGB(3, 187, 133)
110
110
  @input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
111
111
  y: 300)
112
- @input_cedula.text = @registro[23]
113
- @lbl_padrino = FXLabel.new(self, 'Padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
114
- y: 330)
115
- @lbl_padrino.backColor = FXRGB(3, 187, 133)
116
- @input_padrino = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
117
- y: 330)
118
- @input_padrino.text = @registro[5]
112
+ @input_cedula.text = @registro[27]
119
113
  @lbl_certifica = FXLabel.new(self, 'Certifica: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
120
- y: 360)
114
+ y: 330)
121
115
  @lbl_certifica.backColor = FXRGB(3, 187, 133)
122
116
  @input_certifica = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
123
- y: 360)
117
+ y: 330)
124
118
  @input_certifica.text = @registro[4]
125
119
  # create buttons
126
120
  @btnupdate = FXButton.new(self, 'Actualizar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
127
- x: 790, y: 400)
121
+ x: 790, y: 360)
128
122
  @btncancel = FXButton.new(self, 'Cancelar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
129
- x: 900, y: 400)
123
+ x: 900, y: 360)
130
124
 
131
125
  # connect buttons
132
126
  @btnupdate.connect(SEL_COMMAND) do
@@ -61,19 +61,19 @@ class ActualizarConfirmacion < FXMainWindow
61
61
  @lbl_parroquia.backColor = FXRGB(3, 187, 133)
62
62
  @input_parroquia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
63
63
  y: 180)
64
- @input_parroquia.text = @registro[25]
64
+ @input_parroquia.text = @registro[29]
65
65
  @lbl_sector = FXLabel.new(self, 'Sector: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
66
66
  y: 180)
67
67
  @lbl_sector.backColor = FXRGB(3, 187, 133)
68
68
  @input_sector = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
69
69
  y: 180)
70
- @input_sector.text = @registro[26]
70
+ @input_sector.text = @registro[30]
71
71
  @lbl_parroco = FXLabel.new(self, 'Parroco: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
72
72
  y: 180)
73
73
  @lbl_parroco.backColor = FXRGB(3, 187, 133)
74
74
  @input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
75
75
  y: 180)
76
- @input_parroco.text = @registro[27]
76
+ @input_parroco.text = @registro[31]
77
77
  @lbl_celebrante = FXLabel.new(self, 'Celebrante: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
78
78
  x: 10, y: 210)
79
79
  @lbl_celebrante.backColor = FXRGB(3, 187, 133)
@@ -85,31 +85,31 @@ class ActualizarConfirmacion < FXMainWindow
85
85
  @lbl_name.backColor = FXRGB(3, 187, 133)
86
86
  @input_name = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
87
87
  y: 240)
88
- @input_name.text = @registro[19]
88
+ @input_name.text = @registro[23]
89
89
  @lbl_apellidos = FXLabel.new(self, 'Apellidos: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
90
90
  y: 270)
91
91
  @lbl_apellidos.backColor = FXRGB(3, 187, 133)
92
92
  @input_apellidos = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
93
93
  y: 270)
94
- @input_apellidos.text = @registro[20]
94
+ @input_apellidos.text = @registro[24]
95
95
  @lbl_lugar_nacimiento = FXLabel.new(self, 'Lugar de nacimiento: ', opts: LAYOUT_EXPLICIT, width: 150,
96
96
  height: 20, x: 10, y: 300)
97
97
  @lbl_lugar_nacimiento.backColor = FXRGB(3, 187, 133)
98
98
  @input_lugar_nacimiento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
99
99
  x: 170, y: 300)
100
- @input_lugar_nacimiento.text = @registro[21]
100
+ @input_lugar_nacimiento.text = @registro[25]
101
101
  @lbl_fecha_nacimiento = FXLabel.new(self, 'Fecha de nacimiento (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT,
102
102
  width: 250, height: 20, x: 340, y: 300)
103
103
  @lbl_fecha_nacimiento.backColor = FXRGB(3, 187, 133)
104
104
  @input_fecha_nacimiento = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
105
105
  x: 590, y: 300)
106
- @input_fecha_nacimiento.text = @registro[22]
106
+ @input_fecha_nacimiento.text = @registro[26]
107
107
  @lbl_cedula = FXLabel.new(self, 'Cédula: ', opts: LAYOUT_EXPLICIT, width: 80, height: 20, x: 750,
108
108
  y: 300)
109
109
  @lbl_cedula.backColor = FXRGB(3, 187, 133)
110
110
  @input_cedula = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
111
111
  y: 300)
112
- @input_cedula.text = @registro[23]
112
+ @input_cedula.text = @registro[27]
113
113
  @lbl_padrino = FXLabel.new(self, 'Padrino: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 10,
114
114
  y: 330)
115
115
  @lbl_padrino.backColor = FXRGB(3, 187, 133)
@@ -60,19 +60,19 @@ class ActualizarLicenciaMatrimonio < FXMainWindow
60
60
  @lbl_parroquia.backColor = FXRGB(3, 187, 133)
61
61
  @input_parroquia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
62
62
  y: 180)
63
- @input_parroquia.text = @registro[25]
63
+ @input_parroquia.text = @registro[29]
64
64
  @lbl_sector = FXLabel.new(self, 'Sector: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
65
65
  y: 180)
66
66
  @lbl_sector.backColor = FXRGB(3, 187, 133)
67
67
  @input_sector = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
68
68
  y: 180)
69
- @input_sector.text = @registro[26]
69
+ @input_sector.text = @registro[30]
70
70
  @lbl_parroco = FXLabel.new(self, 'Parroco: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 680,
71
71
  y: 180)
72
72
  @lbl_parroco.backColor = FXRGB(3, 187, 133)
73
73
  @input_parroco = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
74
74
  y: 180)
75
- @input_parroco.text = @registro[27]
75
+ @input_parroco.text = @registro[31]
76
76
  @lbl_celebrante = FXLabel.new(self, 'Celebrante: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
77
77
  x: 10, y: 210)
78
78
  @lbl_celebrante.backColor = FXRGB(3, 187, 133)
@@ -84,19 +84,19 @@ class ActualizarLicenciaMatrimonio < FXMainWindow
84
84
  @lbl_name_novio.backColor = FXRGB(3, 187, 133)
85
85
  @input_name_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
86
86
  y: 240)
87
- @input_name_novio.text = @registro[19]
87
+ @input_name_novio.text = @registro[23]
88
88
  @lbl_apellido_novio = FXLabel.new(self, 'Apellidos del novio: ', opts: LAYOUT_EXPLICIT, width: 150,
89
89
  height: 20, x: 340, y: 240)
90
90
  @lbl_apellido_novio.backColor = FXRGB(3, 187, 133)
91
91
  @input_apellido_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
92
92
  y: 240)
93
- @input_apellido_novio.text = @registro[20]
93
+ @input_apellido_novio.text = @registro[24]
94
94
  @lbl_cedula_novio = FXLabel.new(self, 'Cédula del novio: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
95
95
  x: 680, y: 240)
96
96
  @lbl_cedula_novio.backColor = FXRGB(3, 187, 133)
97
97
  @input_cedula_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
98
98
  y: 240)
99
- @input_cedula_novio.text = @registro[23]
99
+ @input_cedula_novio.text = @registro[27]
100
100
  @lbl_name_novia = FXLabel.new(self, 'Nombres de la novia: ', opts: LAYOUT_EXPLICIT, width: 150,
101
101
  height: 20, x: 10, y: 270)
102
102
  @lbl_name_novia.backColor = FXRGB(3, 187, 133)
@@ -115,18 +115,6 @@ class ActualizarLicenciaMatrimonio < FXMainWindow
115
115
  @input_cedula_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
116
116
  y: 270)
117
117
  @input_cedula_novia.text = @registro[13]
118
- @lbl_testigo_novio = FXLabel.new(self, 'Testigo del novio: ', opts: LAYOUT_EXPLICIT, width: 150,
119
- height: 20, x: 10, y: 300)
120
- @lbl_testigo_novio.backColor = FXRGB(3, 187, 133)
121
- @input_nombres_testigo_novio = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
122
- x: 170, y: 300)
123
- @input_nombres_testigo_novio.text = @registro[7]
124
- @lbl_testigo_novia = FXLabel.new(self, 'Testigo novia: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
125
- x: 340, y: 300)
126
- @lbl_testigo_novia.backColor = FXRGB(3, 187, 133)
127
- @input_nombres_testigo_novia = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20,
128
- x: 510, y: 300)
129
- @input_nombres_testigo_novia.text = @registro[8]
130
118
  @lbl_certifica = FXLabel.new(self, 'Certifica: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
131
119
  x: 680, y: 300)
132
120
  @lbl_certifica.backColor = FXRGB(3, 187, 133)
@@ -142,49 +130,49 @@ class ActualizarLicenciaMatrimonio < FXMainWindow
142
130
  @lbl_provincia_rc.backColor = FXRGB(3, 187, 133)
143
131
  @input_provincia_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
144
132
  y: 360)
145
- @input_provincia_rc.text = @registro[29]
133
+ @input_provincia_rc.text = @registro[33]
146
134
  @lbl_canton_rc = FXLabel.new(self, 'Cantón: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 340,
147
135
  y: 360)
148
136
  @lbl_canton_rc.backColor = FXRGB(3, 187, 133)
149
137
  @input_canton_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 510,
150
138
  y: 360)
151
- @input_canton_rc.text = @registro[30]
139
+ @input_canton_rc.text = @registro[34]
152
140
  @lbl_parroquia_rc = FXLabel.new(self, 'Parroquia: ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
153
141
  x: 680, y: 360)
154
142
  @lbl_parroquia_rc.backColor = FXRGB(3, 187, 133)
155
143
  @input_parroquia_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 850,
156
144
  y: 360)
157
- @input_parroquia_rc.text = @registro[31]
145
+ @input_parroquia_rc.text = @registro[35]
158
146
  @lbl_anio_rc = FXLabel.new(self, 'Año: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 50,
159
147
  y: 390)
160
148
  @lbl_anio_rc.backColor = FXRGB(3, 187, 133)
161
149
  @input_anio_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 110,
162
150
  y: 390)
163
- @input_anio_rc.text = @registro[32]
151
+ @input_anio_rc.text = @registro[36]
164
152
  @lbl_tomo_rc = FXLabel.new(self, 'Tomo: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 170,
165
153
  y: 390)
166
154
  @lbl_tomo_rc.backColor = FXRGB(3, 187, 133)
167
155
  @input_tomo_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 230,
168
156
  y: 390)
169
- @input_tomo_rc.text = @registro[33]
157
+ @input_tomo_rc.text = @registro[37]
170
158
  @lbl_pag_rc = FXLabel.new(self, 'Página: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 290,
171
159
  y: 390)
172
160
  @lbl_pag_rc.backColor = FXRGB(3, 187, 133)
173
161
  @input_pag_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 350,
174
162
  y: 390)
175
- @input_pag_rc.text = @registro[34]
163
+ @input_pag_rc.text = @registro[38]
176
164
  @lbl_acta_rc = FXLabel.new(self, 'Acta: ', opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 410,
177
165
  y: 390)
178
166
  @lbl_acta_rc.backColor = FXRGB(3, 187, 133)
179
167
  @input_acta_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 50, height: 20, x: 470,
180
168
  y: 390)
181
- @input_acta_rc.text = @registro[35]
169
+ @input_acta_rc.text = @registro[39]
182
170
  @lbl_date_rc = FXLabel.new(self, 'Fecha (AAAA/MM/DD): ', opts: LAYOUT_EXPLICIT, width: 150, height: 20,
183
171
  x: 10, y: 420)
184
172
  @lbl_date_rc.backColor = FXRGB(3, 187, 133)
185
173
  @input_date_rc = FXTextField.new(self, 10, opts: LAYOUT_EXPLICIT, width: 150, height: 20, x: 170,
186
174
  y: 420)
187
- @input_date_rc.text = @registro[36]
175
+ @input_date_rc.text = @registro[40]
188
176
 
189
177
  # create buttons
190
178
  @btnupdate = FXButton.new(self, 'Actualizar', opts: LAYOUT_EXPLICIT | BUTTON_NORMAL, width: 100, height: 30,
@@ -209,8 +197,6 @@ class ActualizarLicenciaMatrimonio < FXMainWindow
209
197
  nombres_novia = @input_name_novia.text.empty? ? nil : @input_name_novia.text
210
198
  apellidos_novia = @input_apellido_novia.text.empty? ? nil : @input_apellido_novia.text
211
199
  cedula_novia = @input_cedula_novia.text.empty? ? nil : @input_cedula_novia.text
212
- testigo_novio = @input_nombres_testigo_novio.text.empty? ? nil : @input_nombres_testigo_novio.text
213
- testigo_novia = @input_nombres_testigo_novia.text.empty? ? nil : @input_nombres_testigo_novia.text
214
200
  certifica = @input_certifica.text.empty? ? nil : @input_certifica.text
215
201
  provincia_rc = @input_provincia_rc.text.empty? ? nil : @input_provincia_rc.text
216
202
  canton_rc = @input_canton_rc.text.empty? ? nil : @input_canton_rc.text
@@ -231,8 +217,8 @@ class ActualizarLicenciaMatrimonio < FXMainWindow
231
217
  $conn.exec('UPDATE libros SET tomo = $1, pagina = $2, numero = $3 WHERE id = $4',
232
218
  [tomo, page, number, registro[14]])
233
219
  $conn.exec(
234
- 'UPDATE sacramentos SET sacramento = $1, fecha = $2, celebrante = $3, certifica = $4, testigo_novio = $5, testigo_novia = $6, nombres_novia = $7, apellidos_novia = $8, cedula_novia = $9 WHERE id = $10', [
235
- sacramento, fecha, celebrante, certifica, testigo_novio, testigo_novia, nombres_novia, apellidos_novia, cedula_novia, registro[0]
220
+ 'UPDATE sacramentos SET sacramento = $1, fecha = $2, celebrante = $3, certifica = $4, nombres_novia = $5, apellidos_novia = $6, cedula_novia = $7 WHERE id = $8', [
221
+ sacramento, fecha, celebrante, certifica, nombres_novia, apellidos_novia, cedula_novia, registro[0]
236
222
  ]
237
223
  )
238
224
  $conn.exec('UPDATE creyentes SET nombres = $1, apellidos = $2, cedula = $3 WHERE id = $4',