parroquia 1.1.0 → 1.1.2

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: 4ea5c06bdbb7c5375317fd37858f54921c322f4863a643e1f05b07bf0ae4dfef
4
- data.tar.gz: 8800e7da2b4f632ab6ebe981b362aace06f74834b17d59fa0ca02de0ad578189
3
+ metadata.gz: 53f11910f422149ea2edeacbd771628e13647e8cb79553f56da05efbd5ec299b
4
+ data.tar.gz: 5433d9aa245fc352aa968d791dd136bbb65892857db793c83a7aa011ca115756
5
5
  SHA512:
6
- metadata.gz: 565ce53247b50e97af36eab68bba54ae1943c526c5e850c472026b7f16e220595adc7e48689c87373f41637828ab02cb315602bc76ee95b53dcf2f0609f5f0aa
7
- data.tar.gz: c3d82a0f87d920848dd3baca55edf2a32ca7750336fcd1fbf154113bcd83664efa4d7909bc003f8d172ac49c1a09da81d1a72c755e672d05bb1601a380839151
6
+ metadata.gz: 2f435e522644371f9e116a8ad1d351017b352ea92883f1a0d278dd1ca06f454f70d51fce658c1b4d76502810fc4530133172e4d8ff1a4b76444c9214322ed086
7
+ data.tar.gz: 76c55b678cf3b2939ca4d4209f525f697e068709d5f34d95995259f22dd1e2a4ba231266f13d53b393b927427bd0081d96107c36eb3ef157d0169a281cfb0296
@@ -4,105 +4,136 @@ include Fox
4
4
  class ActualizarBautismo < FXMainWindow
5
5
  def initialize(app, registro)
6
6
  super(app, "Editando Registro", :width => 1050, :height => 600)
7
+ self.backColor = FXRGB(3,187,133)
7
8
  @registro = registro
8
- # Verifica el type de registro
9
- puts "Registro: #{registro}"
10
-
11
- # create label
9
+ # Title
12
10
  @lbltitle = FXLabel.new(self, "Bienvenido a la Parroquia San Judas Tadeo", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 20)
13
- # create label
14
- @lblsubtitle = FXLabel.new(self, "ARQUIDIOSESIS DE QUITO - VICARIA NORTE SERVICIO PARROQUIAL DE SAN JUDAS TADEO", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 40)
15
-
16
- #create label
17
- @date = Time.now.strftime("%d/%m/%Y %H:%M:%S")
18
- @lbldate = FXLabel.new(self, "Fecha: #{@date}", :opts => LAYOUT_EXPLICIT|JUSTIFY_RIGHT, :width => 1000, :height => 20, :x => 0, :y => 60)
19
- #section libros
11
+ @lbltitle.font = FXFont.new(app, "Geneva", 16, FONTWEIGHT_BOLD)
12
+ @lbltitle.backColor = FXRGB(3,187,133)
13
+ # Subtitle
14
+ @lblsubtitle = FXLabel.new(self, "ARQUIDIOSESIS DE QUITO - SERVICIO PARROQUIAL DE SAN JUDAS TADEO", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 40)
15
+ @lblsubtitle.font = FXFont.new(app, "Geneva", 10, FONTWEIGHT_BOLD)
16
+ @lblsubtitle.backColor = FXRGB(3,187,133)
17
+ # Date
18
+ @date = Time.now.strftime("%d/%m/%Y")
19
+ @lbldate = FXLabel.new(self, "Fecha: #{cambiar_formato_fecha(@date)}", :opts => LAYOUT_EXPLICIT|JUSTIFY_RIGHT, :width => 1050, :height => 20, :x => 0, :y => 60, :padRight => 20)
20
+ @lbldate.font = FXFont.new(app, "Geneva", 12, FONTWEIGHT_BOLD)
21
+ @lbldate.backColor = FXRGB(3,187,133)
22
+ # section libros
20
23
  @lbl_tomo = FXLabel.new(self, "Tomo", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 50, :y => 100)
24
+ @lbl_tomo.backColor = FXRGB(3,187,133)
21
25
  # EL input tomoo debe tener el valor del campo "tomo" del registro
22
26
  @input_tomo = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 110, :y => 100)
23
27
  @input_tomo.text = registro[15]
24
28
 
25
29
  @lbl_page = FXLabel.new(self, "Pagina", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 170, :y => 100)
30
+ @lbl_page.backColor = FXRGB(3,187,133)
26
31
  @input_page = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 230, :y => 100)
27
32
  @input_page.text = registro[16]
28
33
  @lbl_number = FXLabel.new(self, "Numero", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 290, :y => 100)
34
+ @lbl_number.backColor = FXRGB(3,187,133)
29
35
  @input_number = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 350, :y => 100)
30
36
  @input_number.text = registro[17]
31
37
 
32
38
  #section datos
33
39
  @lbl_fecha = FXLabel.new(self, "Fecha de bautismo (AAAA/MM/DD): ", :opts => LAYOUT_EXPLICIT, :width => 250, :height => 20, :x => 10, :y => 150)
40
+ @lbl_fecha.backColor = FXRGB(3,187,133)
34
41
  @input_fecha = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 340, :y => 150)
35
42
  @input_fecha.text = registro[2]
36
43
  @lbl_sacramento = FXLabel.new(self, "Sacramento: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 150)
44
+ @lbl_sacramento.backColor = FXRGB(3,187,133)
37
45
  @input_sacramento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 150)
38
46
  @input_sacramento.text = registro[1]
39
47
  @lbl_parroquia = FXLabel.new(self, "Iglesia parroquial: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 180)
48
+ @lbl_parroquia.backColor = FXRGB(3,187,133)
40
49
  @input_parroquia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 180)
41
50
  @input_parroquia.text = registro[25]
42
51
  @lbl_sector = FXLabel.new(self, "Sector: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 180)
52
+ @lbl_sector.backColor = FXRGB(3,187,133)
43
53
  @input_sector = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 180)
44
54
  @input_sector.text = registro[26]
45
55
  @lbl_parroco = FXLabel.new(self, "Parroco: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 180)
56
+ @lbl_parroc.backColor = FXRGB(3,187,133)
46
57
  @input_parroco = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 180)
47
58
  @input_parroco.text = registro[27]
48
59
  @lbl_ministro = FXLabel.new(self, "Ministro: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 210)
60
+ @lbl_ministro.backColor = FXRGB(3,187,133)
49
61
  @input_ministro = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 210)
50
62
  @input_ministro.text = registro[3]
51
63
  @lbl_name = FXLabel.new(self, "Nombres: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 240)
64
+ @lbl_name.backColor = FXRGB(3,187,133)
52
65
  @input_name = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 240)
53
66
  @input_name.text = registro[19]
54
67
  @lbl_apellidos = FXLabel.new(self, "Apellidos: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 240)
68
+ @lbl_apellidos.backColor = FXRGB(3,187,133)
55
69
  @input_apellidos = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 240)
56
70
  @input_apellidos.text = registro[20]
57
71
  @lbl_cedula = FXLabel.new(self, "Cédula: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 270)
72
+ @lbl_cedula.backColor = FXRGB(3,187,133)
58
73
  @input_cedula = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 270)
59
74
  @input_cedula.text = registro[23]
60
75
  @lbl_lugar_nacimiento = FXLabel.new(self, "Lugar de nacimiento: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 300)
76
+ @lbl_lugar_nacimiento.backColor = FXRGB(3,187,133)
61
77
  @input_lugar_nacimiento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 300)
62
78
  @input_lugar_nacimiento.text = registro[21]
63
79
  @lbl_fecha_nacimiento = FXLabel.new(self, "Fecha de nacimiento (AAAA/MM/DD): ", :opts => LAYOUT_EXPLICIT, :width => 250, :height => 20, :x => 340, :y => 300)
80
+ @lbl_fecha_nacimiento.backColor = FXRGB(3,187,133)
64
81
  @input_fecha_nacimiento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 590, :y => 300)
65
82
  @input_fecha_nacimiento.text = registro[22]
66
83
  @lbl_padre = FXLabel.new(self, "Padre: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 330)
84
+ @lbl_padre.backColor = FXRGB(3,187,133)
67
85
  @input_padre = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 330)
68
86
  @input_padre.text = registro[9]
69
87
  @lbl_madre = FXLabel.new(self, "Madre: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 330)
88
+ @lbl_madre.backColor = FXRGB(3,187,133)
70
89
  @input_madre = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 330)
71
90
  @input_madre.text = registro[10]
72
91
  @lbl_padrino = FXLabel.new(self, "Padrino: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 360)
92
+ @lbl_padrino.backColor = FXRGB(3,187,133)
73
93
  @input_padrino = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 360)
74
94
  @input_padrino.text = registro[5]
75
95
  @lbl_madrina = FXLabel.new(self, "Madrina: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 360)
96
+ @lbl_madrina.backColor = FXRGB(3,187,133)
76
97
  @input_madrina = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 360)
77
98
  @input_madrina.text = registro[6]
78
99
  @lbl_certifica = FXLabel.new(self, "Certifica: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 390)
100
+ @lbl_certifica.backColor = FXRGB(3,187,133)
79
101
  @input_certifica = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 390)
80
102
  @input_certifica.text = registro[4]
81
103
 
82
104
  #section registro civil
83
105
  @lbl_reg_civ = FXLabel.new(self, "------------------------------------ REGISTRO CIVIL ------------------------------------", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 10, :y => 420)
106
+ @lbl_reg_civ.backColor = FXRGB(3,187,133)
84
107
  @lbl_provincia_rc = FXLabel.new(self, "Provincia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 450)
108
+ @lbl_provincia_rc.backColor = FXRGB(3,187,133)
85
109
  @input_provincia_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170,:y => 450)
86
110
  @input_provincia_rc.text = registro[29]
87
111
  @lbl_canton_rc = FXLabel.new(self, "Cantón: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 450)
112
+ @lbl_canton_rc.backColor = FXRGB(3,187,133)
88
113
  @input_canton_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y =>450)
89
114
  @input_canton_rc.text = registro[30]
90
115
  @lbl_parroquia_rc = FXLabel.new(self, "Parroquia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 450)
116
+ @lbl_parroquia_rc.backColor = FXRGB(3,187,133)
91
117
  @input_parroquia_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850,:y => 450)
92
118
  @input_parroquia_rc.text = registro[31]
93
119
  @lbl_anio_rc = FXLabel.new(self, "Año: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 50, :y => 480)
120
+ @lbl_anio_rc.backColor = FXRGB(3,187,133)
94
121
  @input_anio_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 110,:y => 480)
95
122
  @input_anio_rc.text = registro[32]
96
123
  @lbl_tomo_rc = FXLabel.new(self, "Tomo: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 170, :y => 480)
124
+ @lbl_tomo_rc.backColor = FXRGB(3,187,133)
97
125
  @input_tomo_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 230,:y => 480)
98
126
  @input_tomo_rc.text = registro[33]
99
127
  @lbl_pag_rc = FXLabel.new(self, "Página: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 290, :y => 480)
128
+ @lbl_pag_rc.backColor = FXRGB(3,187,133)
100
129
  @input_pag_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 350,:y => 480)
101
130
  @input_pag_rc.text = registro[34]
102
131
  @lbl_acta_rc = FXLabel.new(self, "Acta: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 410, :y => 480)
132
+ @lbl_acta_rc.backColor = FXRGB(3,187,133)
103
133
  @input_acta_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 470,:y => 480)
104
134
  @input_acta_rc.text = registro[35]
105
135
  @lbl_date_rc = FXLabel.new(self, "Fecha (AAAA/MM/DD): ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 510)
136
+ @lbl_date_rc.backColor = FXRGB(3,187,133)
106
137
  @input_date_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170,:y => 510)
107
138
  @input_date_rc.text = registro[36]
108
139
 
@@ -206,6 +237,38 @@ class ActualizarBautismo < FXMainWindow
206
237
  end
207
238
  end
208
239
 
240
+ # Nombre del mes
241
+ def nombre_mes(mes)
242
+ meses = {
243
+ "01" => "enero",
244
+ "02" => "febrero",
245
+ "03" => "marzo",
246
+ "04" => "abril",
247
+ "05" => "mayo",
248
+ "06" => "junio",
249
+ "07" => "julio",
250
+ "08" => "agosto",
251
+ "09" => "septiembre",
252
+ "10" => "octubre",
253
+ "11" => "noviembre",
254
+ "12" => "diciembre"
255
+ }
256
+ meses[mes]
257
+ end
258
+
259
+
260
+ # Cambiar el formato de la fecga de YYYY-MM-DD a DD de nombre_mes de YYYY
261
+ def cambiar_formato_fecha(fecha)
262
+ # split "-" or "/"
263
+ fecha = fecha.split(/-|\//)
264
+ # si el formato de fecha es YYYY-MM-DD o YYYY/MM/DD, sino si es DD-MM-YYYY o DD/MM/YYYY
265
+ if fecha[0].length == 4
266
+ "#{fecha[2]} de #{nombre_mes(fecha[1])} de #{fecha[0]}"
267
+ else
268
+ "#{fecha[0]} de #{nombre_mes(fecha[1])} de #{fecha[2]}"
269
+ end
270
+ end
271
+
209
272
  def create
210
273
  super
211
274
  show(PLACEMENT_SCREEN)
@@ -6,62 +6,86 @@ class ActualizarConfirmacion < FXMainWindow
6
6
  def initialize(app, registro)
7
7
  @registro = registro
8
8
  super(app, "Parroquia San Judas Tadeo", :width => 1050, :height => 450)
9
- # create label
9
+ self.backColor = FXRGB(3,187,133)
10
+ # Title
10
11
  @lbltitle = FXLabel.new(self, "Bienvenido a la Parroquia San Judas Tadeo", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 20)
11
- # create label
12
- @lblsubtitle = FXLabel.new(self, "ARQUIDIOSESIS DE QUITO - VICARIA NORTE SERVICIO PARROQUIAL DE SAN JUDAS TADEO", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 40)
12
+ @lbltitle.font = FXFont.new(app, "Geneva", 16, FONTWEIGHT_BOLD)
13
+ @lbltitle.backColor = FXRGB(3,187,133)
14
+ # Subtitle
15
+ @lblsubtitle = FXLabel.new(self, "ARQUIDIOSESIS DE QUITO - SERVICIO PARROQUIAL DE SAN JUDAS TADEO", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 40)
16
+ @lblsubtitle.font = FXFont.new(app, "Geneva", 10, FONTWEIGHT_BOLD)
17
+ @lblsubtitle.backColor = FXRGB(3,187,133)
18
+ # Date
19
+ @date = Time.now.strftime("%d/%m/%Y")
20
+ @lbldate = FXLabel.new(self, "Fecha: #{cambiar_formato_fecha(@date)}", :opts => LAYOUT_EXPLICIT|JUSTIFY_RIGHT, :width => 1050, :height => 20, :x => 0, :y => 60, :padRight => 20)
21
+ @lbldate.font = FXFont.new(app, "Geneva", 12, FONTWEIGHT_BOLD)
22
+ @lbldate.backColor = FXRGB(3,187,133)
23
+ # section libros
24
+ @lbl_tomo = FXLabel.new(self, "Tomo", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 50, :y => 100)
25
+ @lbl_tomo.backColor = FXRGB(3,187,133)
26
+ # EL input tomoo debe tener el valor del campo "tomo" del registro
27
+ @input_tomo = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 110, :y => 100)
28
+ @input_tomo.text = registro[15]
13
29
 
14
- #create label
15
- @date = Time.now.strftime("%d/%m/%Y %H:%M:%S")
16
- @lbldate = FXLabel.new(self, "Fecha: #{@date}", :opts => LAYOUT_EXPLICIT|JUSTIFY_RIGHT, :width => 1000, :height => 20, :x => 0, :y => 60)
17
- #section libros
18
- @lbl_tomo = FXLabel.new(self, "Tomo", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 10, :y => 100)
19
- @input_tomo = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 70, :y => 100)
20
- @input_tomo.text = @registro[15]
21
- @lbl_page = FXLabel.new(self, "Página", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 130, :y => 100)
22
- @input_page = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 190, :y => 100)
23
- @input_page.text = @registro[16]
24
- @lbl_number = FXLabel.new(self, "Numero", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 250, :y => 100)
25
- @input_number = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 310, :y => 100)
26
- @input_number.text = @registro[17]
30
+ @lbl_page = FXLabel.new(self, "Pagina", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 170, :y => 100)
31
+ @lbl_page.backColor = FXRGB(3,187,133)
32
+ @input_page = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 230, :y => 100)
33
+ @input_page.text = registro[16]
34
+ @lbl_number = FXLabel.new(self, "Numero", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 290, :y => 100)
35
+ @lbl_number.backColor = FXRGB(3,187,133)
36
+ @input_number = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 350, :y => 100)
37
+ @input_number.text = registro[17]
27
38
  #section datos
28
39
  @lbl_fecha = FXLabel.new(self, "Fecha de confirmación (AAAA/MM/DD): ", :opts => LAYOUT_EXPLICIT, :width => 250, :height => 20, :x => 10, :y => 150)
40
+ @lbl_fecha.backColor = FXRGB(3,187,133)
29
41
  @input_fecha = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 340, :y => 150)
30
42
  @input_fecha.text = @registro[2]
31
43
  @lbl_sacramento = FXLabel.new(self, "Sacramento: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 150)
44
+ @lbl_sacramento.backColor = FXRGB(3,187,133)
32
45
  @input_sacramento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 150)
33
46
  @input_sacramento.text = @registro[1]
34
47
  @lbl_parroquia = FXLabel.new(self, "Iglesia parroquial: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 180)
48
+ @lbl_parroquia.backColor = FXRGB(3,187,133)
35
49
  @input_parroquia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 180)
36
50
  @input_parroquia.text = @registro[25]
37
51
  @lbl_sector = FXLabel.new(self, "Sector: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 180)
52
+ @lbl_sector.backColor = FXRGB(3,187,133)
38
53
  @input_sector = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 180)
39
54
  @input_sector.text = @registro[26]
40
55
  @lbl_parroco = FXLabel.new(self, "Parroco: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 180)
56
+ @lbl_parroco.backColor = FXRGB(3,187,133)
41
57
  @input_parroco = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 180)
42
58
  @input_parroco.text = @registro[27]
43
59
  @lbl_celebrante = FXLabel.new(self, "Celebrante: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 210)
60
+ @lbl_celebrante.backColor = FXRGB(3,187,133)
44
61
  @input_celebrante = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 210)
45
62
  @input_celebrante.text = @registro[3]
46
63
  @lbl_name = FXLabel.new(self, "Nombres: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 240)
64
+ @lbl_name.backColor = FXRGB(3,187,133)
47
65
  @input_name = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 240)
48
66
  @input_name.text = @registro[19]
49
67
  @lbl_apellidos = FXLabel.new(self, "Apellidos: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 270)
68
+ @lbl_apellidos.backColor = FXRGB(3,187,133)
50
69
  @input_apellidos = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 270)
51
70
  @input_apellidos.text = @registro[20]
52
71
  @lbl_lugar_nacimiento = FXLabel.new(self, "Lugar de nacimiento: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 300)
72
+ @lbl_lugar_nacimiento.backColor = FXRGB(3,187,133)
53
73
  @input_lugar_nacimiento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 300)
54
74
  @input_lugar_nacimiento.text = @registro[21]
55
75
  @lbl_fecha_nacimiento = FXLabel.new(self, "Fecha de nacimiento (AAAA/MM/DD): ", :opts => LAYOUT_EXPLICIT, :width => 250, :height => 20, :x => 340, :y => 300)
76
+ @lbl_fecha_nacimiento.backColor = FXRGB(3,187,133)
56
77
  @input_fecha_nacimiento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 590, :y => 300)
57
78
  @input_fecha_nacimiento.text = @registro[22]
58
79
  @lbl_cedula = FXLabel.new(self, "Cédula: ", :opts => LAYOUT_EXPLICIT, :width => 80, :height => 20, :x => 750, :y => 300)
80
+ @lbl_cedula.backColor = FXRGB(3,187,133)
59
81
  @input_cedula = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x =>850, :y => 300)
60
82
  @input_cedula.text = @registro[23]
61
83
  @lbl_padrino = FXLabel.new(self, "Padrino: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 330)
84
+ @lbl_pdrino.backColor = FXRGB(3,187,133)
62
85
  @input_padrino = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 330)
63
86
  @input_padrino.text = @registro[5]
64
87
  @lbl_certifica = FXLabel.new(self, "Certifica: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 360)
88
+ @lbl_certifica.backColor = FXRGB(3,187,133)
65
89
  @input_certifica = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 360)
66
90
  @input_certifica.text = @registro[4]
67
91
  # create buttons
@@ -150,6 +174,38 @@ class ActualizarConfirmacion < FXMainWindow
150
174
  end
151
175
  end
152
176
 
177
+ # Nombre del mes
178
+ def nombre_mes(mes)
179
+ meses = {
180
+ "01" => "enero",
181
+ "02" => "febrero",
182
+ "03" => "marzo",
183
+ "04" => "abril",
184
+ "05" => "mayo",
185
+ "06" => "junio",
186
+ "07" => "julio",
187
+ "08" => "agosto",
188
+ "09" => "septiembre",
189
+ "10" => "octubre",
190
+ "11" => "noviembre",
191
+ "12" => "diciembre"
192
+ }
193
+ meses[mes]
194
+ end
195
+
196
+
197
+ # Cambiar el formato de la fecga de YYYY-MM-DD a DD de nombre_mes de YYYY
198
+ def cambiar_formato_fecha(fecha)
199
+ # split "-" or "/"
200
+ fecha = fecha.split(/-|\//)
201
+ # si el formato de fecha es YYYY-MM-DD o YYYY/MM/DD, sino si es DD-MM-YYYY o DD/MM/YYYY
202
+ if fecha[0].length == 4
203
+ "#{fecha[2]} de #{nombre_mes(fecha[1])} de #{fecha[0]}"
204
+ else
205
+ "#{fecha[0]} de #{nombre_mes(fecha[1])} de #{fecha[2]}"
206
+ end
207
+ end
208
+
153
209
  def create
154
210
  super
155
211
  show(PLACEMENT_SCREEN)
@@ -5,94 +5,129 @@ class ActualizarMatrimonio < FXMainWindow
5
5
  def initialize(app, registro)
6
6
  @registro = registro
7
7
  super(app, "Parroquia San Judas Tadeo", :width => 1050, :height => 530)
8
- # create label
8
+ self.backColor = FXRGB(3,187,133)
9
+ # Title
9
10
  @lbltitle = FXLabel.new(self, "Bienvenido a la Parroquia San Judas Tadeo", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 20)
10
- # create label
11
- @lblsubtitle = FXLabel.new(self, "ARQUIDIOSESIS DE QUITO - VICARIA NORTE SERVICIO PARROQUIAL DE SAN JUDAS TADEO", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 40)
12
-
13
- #create label
14
- @date = Time.now.strftime("%d/%m/%Y %H:%M:%S")
15
- @lbldate = FXLabel.new(self, "Fecha: #{@date}", :opts => LAYOUT_EXPLICIT|JUSTIFY_RIGHT, :width => 1000, :height => 20, :x => 0, :y => 60)
16
- #section libros
11
+ @lbltitle.font = FXFont.new(app, "Geneva", 16, FONTWEIGHT_BOLD)
12
+ @lbltitle.backColor = FXRGB(3,187,133)
13
+ # Subtitle
14
+ @lblsubtitle = FXLabel.new(self, "ARQUIDIOSESIS DE QUITO - SERVICIO PARROQUIAL DE SAN JUDAS TADEO", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 0, :y => 40)
15
+ @lblsubtitle.font = FXFont.new(app, "Geneva", 10, FONTWEIGHT_BOLD)
16
+ @lblsubtitle.backColor = FXRGB(3,187,133)
17
+ # Date
18
+ @date = Time.now.strftime("%d/%m/%Y")
19
+ @lbldate = FXLabel.new(self, "Fecha: #{cambiar_formato_fecha(@date)}", :opts => LAYOUT_EXPLICIT|JUSTIFY_RIGHT, :width => 1050, :height => 20, :x => 0, :y => 60, :padRight => 20)
20
+ @lbldate.font = FXFont.new(app, "Geneva", 12, FONTWEIGHT_BOLD)
21
+ @lbldate.backColor = FXRGB(3,187,133)
22
+ # section libros
17
23
  @lbl_tomo = FXLabel.new(self, "Tomo", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 50, :y => 100)
24
+ @lbl_tomo.backColor = FXRGB(3,187,133)
25
+ # EL input tomoo debe tener el valor del campo "tomo" del registro
18
26
  @input_tomo = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 110, :y => 100)
19
- @input_tomo.text = @registro[15]
27
+ @input_tomo.text = registro[15]
28
+
20
29
  @lbl_page = FXLabel.new(self, "Pagina", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 170, :y => 100)
30
+ @lbl_page.backColor = FXRGB(3,187,133)
21
31
  @input_page = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 230, :y => 100)
22
- @input_page.text = @registro[16]
32
+ @input_page.text = registro[16]
23
33
  @lbl_number = FXLabel.new(self, "Numero", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 290, :y => 100)
34
+ @lbl_number.backColor = FXRGB(3,187,133)
24
35
  @input_number = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 350, :y => 100)
25
- @input_number.text = @registro[17]
36
+ @input_number.text = registro[17]
26
37
  #section datos
27
38
  @lbl_fecha = FXLabel.new(self, "Fecha de matrimonio (AAAA/MM/DD): ", :opts => LAYOUT_EXPLICIT, :width => 250, :height => 20, :x => 10, :y => 150)
39
+ @lbl_fecha.backColor = FXRGB(3,187,133)
28
40
  @input_fecha = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 340, :y => 150)
29
41
  @input_fecha.text = @registro[2]
30
42
  @lbl_sacramento = FXLabel.new(self, "Sacramento: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 150)
43
+ @lbl_sacramento.backColor = FXRGB(3,187,133)
31
44
  @input_sacramento = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 150)
32
45
  @input_sacramento.text = @registro[1]
33
46
  @lbl_parroquia = FXLabel.new(self, "Iglesia parroquial: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 180)
47
+ @lbl_parroquia.backColor = FXRGB(3,187,133)
34
48
  @input_parroquia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 180)
35
49
  @input_parroquia.text = @registro[25]
36
50
  @lbl_sector = FXLabel.new(self, "Sector: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 180)
51
+ @lbl_sector.backColor = FXRGB(3,187,133)
37
52
  @input_sector = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 180)
38
53
  @input_sector.text = @registro[26]
39
54
  @lbl_parroco = FXLabel.new(self, "Parroco: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 180)
55
+ @lbl_parroco.backColor = FXRGB(3,187,133)
40
56
  @input_parroco = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 180)
41
57
  @input_parroco.text = @registro[27]
42
58
  @lbl_celebrante = FXLabel.new(self, "Celebrante: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 210)
59
+ @lbl_celebrante.backColor = FXRGB(3,187,133)
43
60
  @input_celebrante = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 210)
44
61
  @input_celebrante.text = @registro[3]
45
62
  @lbl_name_novio = FXLabel.new(self, "Nombres del novio: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 240)
63
+ @lbl_name_novio.backColor = FXRGB(3,187,133)
46
64
  @input_name_novio = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 240)
47
65
  @input_name_novio.text = @registro[19]
48
66
  @lbl_apellido_novio = FXLabel.new(self, "Apellidos del novio: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 240)
67
+ @lbl_apellido_novio.backColor = FXRGB(3,187,133)
49
68
  @input_apellido_novio = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 240)
50
69
  @input_apellido_novio.text = @registro[20]
51
70
  @lbl_cedula_novio = FXLabel.new(self, "Cédula del novio: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 240)
71
+ @lbl_cedula_novio.backColor = FXRGB(3,187,133)
52
72
  @input_cedula_novio = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 240)
53
73
  @input_cedula_novio.text = @registro[23]
54
74
  @lbl_name_novia = FXLabel.new(self, "Nombres de la novia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 270)
75
+ @lbl_name_novia.backColor = FXRGB(3,187,133)
55
76
  @input_name_novia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 270)
56
77
  @input_name_novia.text = @registro[11]
57
78
  @lbl_apellido_novia = FXLabel.new(self, "Apellidos de la novia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 270)
79
+ @lbl_apellido_novia.backColor = FXRGB(3,187,133)
58
80
  @input_apellido_novia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 270)
59
81
  @input_apellido_novia.text = @registro[12]
60
82
  @lbl_cedula_novia = FXLabel.new(self, "Cédula de la novia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 270)
83
+ @lbl_cedula_novia.backColor = FXRGB(3,187,133)
61
84
  @input_cedula_novia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 270)
62
85
  @input_cedula_novia.text = @registro[13]
63
86
  @lbl_testigo_novio = FXLabel.new(self, "Testigo del novio: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 300)
87
+ @lbl_testigo_novio.backColor = FXRGB(3,187,133)
64
88
  @input_nombres_testigo_novio = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170, :y => 300)
65
89
  @input_nombres_testigo_novio.text = @registro[7]
66
90
  @lbl_testigo_novia = FXLabel.new(self, "Testigo novia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 300)
91
+ @lbl_testigo_novia.backColor = FXRGB(3,187,133)
67
92
  @input_nombres_testigo_novia = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y => 300)
68
93
  @input_nombres_testigo_novia.text = @registro[8]
69
94
  @lbl_certifica = FXLabel.new(self, "Certifica: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 300)
95
+ @lbl_certifica.backColor = FXRGB(3,187,133)
70
96
  @input_certifica = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850, :y => 300)
71
97
  @input_certifica.text = @registro[4]
72
98
  #section registro civil
73
99
  @lbl_reg_civ = FXLabel.new(self, "------------------------------------ REGISTRO CIVIL ------------------------------------", :opts => LAYOUT_EXPLICIT|JUSTIFY_CENTER_X, :width => 1050, :height => 20, :x => 10, :y => 330)
100
+ @lbl_reg_civ.backColor = FXRGB(3,187,133)
74
101
  @lbl_provincia_rc = FXLabel.new(self, "Provincia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 360)
102
+ @lbl_provincia_rc.backColor = FXRGB(3,187,133)
75
103
  @input_provincia_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170,:y => 360)
76
104
  @input_provincia_rc.text = @registro[29]
77
105
  @lbl_canton_rc = FXLabel.new(self, "Cantón: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 340, :y => 360)
106
+ @lbl_canton_rc.backColor = FXRGB(3,187,133)
78
107
  @input_canton_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 510, :y =>360)
79
108
  @input_canton_rc.text = @registro[30]
80
109
  @lbl_parroquia_rc = FXLabel.new(self, "Parroquia: ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 680, :y => 360)
110
+ @lbl_parroquia_rc.backColor = FXRGB(3,187,133)
81
111
  @input_parroquia_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 850,:y => 360)
82
112
  @input_parroquia_rc.text = @registro[31]
83
113
  @lbl_anio_rc = FXLabel.new(self, "Año: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 50, :y => 390)
114
+ @lbl_anio_rc.backColor = FXRGB(3,187,133)
84
115
  @input_anio_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 110,:y => 390)
85
116
  @input_anio_rc.text = @registro[32]
86
117
  @lbl_tomo_rc = FXLabel.new(self, "Tomo: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 170, :y => 390)
118
+ @lbl_tomo_rc.backColor = FXRGB(3,187,133)
87
119
  @input_tomo_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 230,:y => 390)
88
120
  @input_tomo_rc.text = @registro[33]
89
121
  @lbl_pag_rc = FXLabel.new(self, "Página: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 290, :y => 390)
122
+ @lbl_pag_rc.backColor = FXRGB(3,187,133)
90
123
  @input_pag_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 350,:y => 390)
91
124
  @input_pag_rc.text = @registro[34]
92
125
  @lbl_acta_rc = FXLabel.new(self, "Acta: ", :opts => LAYOUT_EXPLICIT, :width => 50, :height => 20, :x => 410, :y => 390)
126
+ @lbl_acta_rc.backColor = FXRGB(3,187,133)
93
127
  @input_acta_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 50,:height => 20, :x => 470,:y => 390)
94
128
  @input_acta_rc.text = @registro[35]
95
129
  @lbl_date_rc = FXLabel.new(self, "Fecha (AAAA/MM/DD): ", :opts => LAYOUT_EXPLICIT, :width => 150, :height => 20, :x => 10, :y => 420)
130
+ @lbl_date_rc.backColor = FXRGB(3,187,133)
96
131
  @input_date_rc = FXTextField.new(self, 10, :opts => LAYOUT_EXPLICIT, :width => 150,:height => 20, :x => 170,:y => 420)
97
132
  @input_date_rc.text = @registro[36]
98
133
 
@@ -189,6 +224,38 @@ class ActualizarMatrimonio < FXMainWindow
189
224
  end
190
225
  end
191
226
 
227
+ # Nombre del mes
228
+ def nombre_mes(mes)
229
+ meses = {
230
+ "01" => "enero",
231
+ "02" => "febrero",
232
+ "03" => "marzo",
233
+ "04" => "abril",
234
+ "05" => "mayo",
235
+ "06" => "junio",
236
+ "07" => "julio",
237
+ "08" => "agosto",
238
+ "09" => "septiembre",
239
+ "10" => "octubre",
240
+ "11" => "noviembre",
241
+ "12" => "diciembre"
242
+ }
243
+ meses[mes]
244
+ end
245
+
246
+
247
+ # Cambiar el formato de la fecga de YYYY-MM-DD a DD de nombre_mes de YYYY
248
+ def cambiar_formato_fecha(fecha)
249
+ # split "-" or "/"
250
+ fecha = fecha.split(/-|\//)
251
+ # si el formato de fecha es YYYY-MM-DD o YYYY/MM/DD, sino si es DD-MM-YYYY o DD/MM/YYYY
252
+ if fecha[0].length == 4
253
+ "#{fecha[2]} de #{nombre_mes(fecha[1])} de #{fecha[0]}"
254
+ else
255
+ "#{fecha[0]} de #{nombre_mes(fecha[1])} de #{fecha[2]}"
256
+ end
257
+ end
258
+
192
259
  def create
193
260
  super
194
261
  show(PLACEMENT_SCREEN)