-
Notifications
You must be signed in to change notification settings - Fork 0
/
encuestaFuncionariosTres.html
executable file
·384 lines (363 loc) · 21.4 KB
/
encuestaFuncionariosTres.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
<!DOCTYPE html>
<html lang="es">
<head >
<!-- Favicons -->
<link rel="apple-touch-icon" href="https://www.cfn.fin.ec/wp-content/themes/cfn/img/favicon.png"/>
<link rel="icon" href="https://www.cfn.fin.ec/wp-content/themes/cfn/img/favicon.png"/>
<link rel="icon" href="https://www.cfn.fin.ec/wp-content/themes/cfn/img/favicon.ico"/>
<title>CFN - Juega</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- BootstrapCDN 4 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- bootstrap 4 js -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" ></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" ></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" ></script>
<!-- iconos -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fontawesome.com/v4.7.0/assets/css/site.css">
<!-- mi estilo animacion -->
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
<!-- animación css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<!-- Mi estilos -->
<link rel="stylesheet" href="css/fuente.css">
<link rel="stylesheet" href="css/estilo.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col cabeceraFormulario">
<p>
<img src="images/logo.svg" alt="corporacion financiera nacional" style="width: 200px;">
</p>
<h1 style="padding: 0px;margin: 0px;">
VALORACIÓN EXPERIMENTAL DE PROYECTOS
</h1>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col">
<h2>
<strong> Proyecto 3: Construcción de nueva ala de 315 m2 para un hostal</strong>
</h2>
<h3>
Ubicación: Otavalo, Imbabura <br>
</h3>
<p>
<b>Capacidad:</b>
Con la nueva infraestructura que contempla 3 pisos y una terraza se tendría una capacidad operativa total de 72 huéspedes (construcción antigua y nueva) distribuida de la siguiente manera:
</p>
<ul>
<li>
Nuevas: 15 hab dobles (30 pax); 6 hab triples (18 pax)
</li>
<li>
Existentes: 5 hab cuádruples (20 pax); 2 hab dobles (4 pax) (300 m2)
</li>
</ul>
<p>
Para el primer año se estima que las ventas sean de USD 156 mil, para el segundo año $161 mil y para el tercer año $167 mil desde donde se estima estabilidad en ventas.
</p>
<p>
<b>Especificaciones y Valoración:</b> A continuación elige el valor que consideres adecuado para cada rubro a partir de tus conocimientos, experiencia o estimación personal. Mientras más te acerques al valor real, mayor será tu puntaje.
</p>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-12">
<form class="estadisticaFuncionarios" action="" method="POST">
<div class="contenedores">
<p>
<b>Terreno: </b>
630 m2 en Otavalo, sector céntrico.
</p>
<div id="alinearTypeRadios1" onclick="todosLosSeleccionados(this.getElementsByTagName('input'),this.id)">
<label><input type="radio" name="maquinaria" id="a1" data-valor1="0" data-valor2="35" value="a) menos de $35 mil" required > a) menos de $35 mil</label>
<label><input type="radio" name="maquinaria" id="a2" data-valor1="35" data-valor2="45" value="b) entre $35 mil y $45 mil" > b) entre $35 mil y $45 mil</label>
<label><input type="radio" name="maquinaria" id="a3" data-valor1="45" data-valor2="55" value="c) entre $45 mil y $55 mil" > c) entre $45 mil y $55 mil</label>
<label><input type="radio" name="maquinaria" id="a4" data-valor1="55" data-valor2="65" value="d) entre $55 mil y $65 mil" > d) entre $55 mil y $65 mil</label>
<label><input type="radio" name="maquinaria" id="a5" data-valor1="65" data-valor2="0" value="e) más de $65 mil" > e) más de $65 mil</label>
</div>
</div>
<div class="contenedores">
<p></p>
<p>
<b>Construcción: </b>
construcción de 3 plantas + 1 terraza con 15 habitaciones dobles y 6 habitaciones triples, teniendo una capacidad para 48 personas en 315 m2; remodelación de acabados de 5 habitaciones cuádruples y 2 habitaciones dobles en 200 m2.
</p>
<div id="alinearTypeRadios2" onclick="todosLosSeleccionados(this.getElementsByTagName('input'),this.id)">
<label><input type="radio" name="capital" id="b1" data-valor1="0" data-valor2="100" value="a) menos de $100 mil" required > a) menos de $100 mil</label>
<label><input type="radio" name="capital" id="b2" data-valor1="100" data-valor2="200" value="b) entre $100 mil y $200 mil" > b) entre $100 mil y $200 mil</label>
<label><input type="radio" name="capital" id="b3" data-valor1="200" data-valor2="300" value="c) entre $200 mil y $300 mil" > c) entre $200 mil y $300 mil</label>
<label><input type="radio" name="capital" id="b4" data-valor1="300" data-valor2="400" value="d) entre $300 mil y $400 mil" > d) entre $300 mil y $400 mil</label>
<label><input type="radio" name="capital" id="b5" data-valor1="400" data-valor2="0" value="e) más de $400 mil" > e) más de $400 mil</label>
</div>
</div>
<div class="contenedores">
<p></p>
<p>
<b>Muebles y enseres:</b>
21 camas de 2 plazas, 6 camas de 1 ½ plazas, 21 muebles de baño, 1 mueble para cocina.
</p>
<div id="alinearTypeRadios3" onclick="todosLosSeleccionados(this.getElementsByTagName('input'),this.id)">
<label><input type="radio" name="mueble" id="c1" data-valor1="0" data-valor2="5" value="a) menos de $5 mil" required > a) menos de $5 mil</label>
<label><input type="radio" name="mueble" id="c2" data-valor1="5" data-valor2="10" value="b) entre $5 mil y $10 mil" > b) entre $5 mil y $10 mil</label>
<label><input type="radio" name="mueble" id="c3" data-valor1="10" data-valor2="15" value="c) entre $10 mil y $15 mil" > c) entre $10 mil y $15 mil</label>
<label><input type="radio" name="mueble" id="c4" data-valor1="15" data-valor2="20" value="d) entre $15 mil y $20 mil" > d) entre $15 mil y $20 mil</label>
<label><input type="radio" name="mueble" id="c5" data-valor1="20" data-valor2="0" value="e) más de $20 mil" > e) más de $20 mil</label>
</div>
</div>
<div class="contenedores">
<p></p>
<p>
<b>Equipos:</b>
22 televisores Prima de 32’’ LED, 22 lámparas LED XTRATECH recargable USB, teléfono Panasonic inalámbrico, Kit DVR 8 canales con 4 cámaras de seguridad 2.0 mp alcance 20 metros, 1 impresora multifunción EPSON, 1 disco duro 1 TB, 1 flat panel SAMSUNG 24’’ LED, 1 flat panel 19.5’’ LED, 1 regulador de voltaje de 1000 VA 6 tomas, y 1 laptop XTRATECH i.5-7400 Procesador/3.0 GHz/8GB/1TB.
</p>
<div id="alinearTypeRadios4" onclick="todosLosSeleccionados(this.getElementsByTagName('input'),this.id)">
<label><input type="radio" name="equipos" id="d1" data-valor1="0" data-valor2="5" value="a) menos de $5 mil" required > a) menos de $5 mil</label>
<label><input type="radio" name="equipos" id="d2" data-valor1="5" data-valor2="10" value="b) entre $5 mil y $10 mil" > b) entre $5 mil y $10 mil</label>
<label><input type="radio" name="equipos" id="d3" data-valor1="10" data-valor2="15" value="c) entre $10 mil y $15 mil" > c) entre $10 mil y $15 mil</label>
<label><input type="radio" name="equipos" id="d4" data-valor1="15" data-valor2="20" value="d) entre $15 mil y $20 mil" > d) entre $15 mil y $20 mil</label>
<label><input type="radio" name="equipos" id="d5" data-valor1="20" data-valor2="0" value="e) más de $20 mil" > e) más de $20 mil</label>
</div>
</div>
<div class="contenedores">
<p></p>
<p>
<b>Menaje de 506 piezas: </b>
88 Sábanas Planas de 250 hilos y 88 Fundas de Edredones Jacquard (32 de 1 ½ plazas de cada uno, 52 de 2 plazas de cada uno, 4 de 2 ½ plazas de cada uno)
</p>
<p>
44 Edredones Sierra y 44 Protectores Impermeables para Colchón (16 de 1 ½ plazas de cada uno, 26 de 2 plazas de cada uno, 2 de 2 ½ plazas de cada uno)
</p>
<p>
70 Toallas Deluxe y 28 Alfombras (28 toallas mano (0.70 x 0.40), 42 toallas cuerpo (1.40 x 0.70), 28 alfombras 800 gramos (0.60 x 2.05))
</p>
<p>
72 Almohadas Suave Estándar (0.70x0.50) y 72 Protectores Impermeables de Almohadas
</p>
<div id="alinearTypeRadios5" onclick="todosLosSeleccionados(this.getElementsByTagName('input'),this.id)">
<label><input type="radio" name="menaje" id="e1" data-valor1="0" data-valor2="5" value="a) menos de $5 mil" required > a) menos de $5 mil</label>
<label><input type="radio" name="menaje" id="e2" data-valor1="5" data-valor2="10" value="b) entre $5 mil y $10 mil" > b) entre $5 mil y $10 mil</label>
<label><input type="radio" name="menaje" id="e3" data-valor1="10" data-valor2="15" value="c) entre $10 mil y $15 mil" > c) entre $10 mil y $15 mil</label>
<label><input type="radio" name="menaje" id="e4" data-valor1="15" data-valor2="20" value="d) entre $15 mil y $20 mil" > d) entre $15 mil y $20 mil</label>
<label><input type="radio" name="menaje" id="e5" data-valor1="20" data-valor2="0" value="e) más de $20 mil" > e) más de $20 mil</label>
</div>
</div>
<div class="contenedores">
<p></p>
<p>
<b> Capital de Trabajo Operativo/Administrativo:</b>
suministros y servicios (agua, electricidad, telefonía, combustible, insumos de limpieza e internet); mano de obra directa (personal de limpieza, cocina); mano de obra indirecta (recepcionista); mantenimiento y seguros (activos fijos operativos); otros (uniformes), etc. Se considera un factor caja de 39 días.
</p>
<div id="alinearTypeRadios6" onclick="todosLosSeleccionados(this.getElementsByTagName('input'),this.id)">
<label><input type="radio" name="trabajo" id="f1" data-valor1="0" data-valor2="5" value="a) menos de $5 mil" required> a) menos de $5 mil</label>
<label><input type="radio" name="trabajo" id="f2" data-valor1="5" data-valor2="6" value="b) entre $5 mil y $6 mil" > b) entre $5 mil y $6 mil</label>
<label><input type="radio" name="trabajo" id="f3" data-valor1="6" data-valor2="7" value="c) entre $6 mil y $7 mil" > c) entre $6 mil y $7 mil</label>
<label><input type="radio" name="trabajo" id="f4" data-valor1="7" data-valor2="8" value="d) entre $7 mil y $8 mil" > d) entre $7 mil y $8 mil</label>
<label><input type="radio" name="trabajo" id="f5" data-valor1="8" data-valor2="0" value="e) más de $8 mil" > e) más de $8 mil</label>
</div>
</div>
<div class="content-btn">
<button type="button" class="btn btn-primary btn-lg btn-block" onclick="guardarenLocaleirasiguiente()"><i class="fa fa-gamepad" aria-hidden="true"></i> SIGUIENTE</button>
</div>
</form>
</div>
</div>
</div>
<div style="width: 100%;height:100px"></div>
<div class="resultado">
<p style="background-color: white;"> VALOR TOTAL</p>
<input type='text' value='0' disabled id="sumando">
<p style="background-color: white;"> TEMPORIZADOR</p>
<input type='text' value='03:00:00' disabled id="temporizador">
</div>
<script >
//ids por modulos
let idArray = ['alinearTypeRadios1', 'alinearTypeRadios2', 'alinearTypeRadios3', 'alinearTypeRadios4','alinearTypeRadios5','alinearTypeRadios6'];
//valor por modulo, cada input seleccionado inicia sus dos lados en 0
let idValor1 = [0,0];
let idValor2 = [0,0];
let idValor3 = [0,0];
let idValor4 = [0,0];
let idValor5 = [0,0];
let idValor6 = [0,0];
// id selecionados por modulo
let selecIds1 = '';
let selecIds2 = '';
let selecIds3 = '';
let selecIds4 = '';
let selecIds5 = '';
let selecIds6 = '';
// id de sumas
let sumando = document.getElementById('sumando');
let temporizador = document.getElementById('temporizador');
function sumaTotal(v1,v2)
{
var textoDelate = 'Entre $';
var textoEnmedio = ' mil y $';
var textoFinal = ' mil';
if(
((selecIds1 == 'a2' || selecIds1 == 'a3' || selecIds1 == 'a4') ||
(selecIds2 == 'b2' || selecIds2 == 'b3' || selecIds2 == 'b4') ||
(selecIds3 == 'c2' || selecIds3 == 'c3' || selecIds3 == 'c4') ||
(selecIds4 == 'd2' || selecIds4 == 'd3' || selecIds4 == 'd4') ||
(selecIds5 == 'e2' || selecIds5 == 'e3' || selecIds5 == 'e4') ||
(selecIds6 == 'f2' || selecIds6 == 'f3' || selecIds6 == 'f4')) &&
(selecIds1 != 'a5' && selecIds2 != 'b5' && selecIds3 != 'c5' && selecIds4 != 'd5' && selecIds5 != 'e5' && selecIds6 != 'f5')
)
{
sumando.value = textoDelate + v1 + textoEnmedio + v2 + textoFinal;
}
else if((selecIds1 == 'a1' && selecIds2 == 'b1' && selecIds3 == 'c1' && selecIds4 == 'd1' && selecIds5 == 'e1' && selecIds6 == 'f1') || v1 == 0)
{
sumando.value = 'Menos de $' + v2 + ' mil';
}
else
{
sumando.value = 'Más de $' + v1 + ' mil';
}
}
function irSumando(e,id)
{
var idVl1 = 0;
var idVl2 = 0;
var v1 = parseInt(e.dataset.valor1);
var v2 = parseInt(e.dataset.valor2);
switch (id) {
case idArray[0]:
idValor1 = [v1,v2];
idVl1 = idValor1[0] + idValor2[0] + idValor3[0] + idValor4[0] + idValor5[0] + idValor6[0];
idVl2 = idValor1[1] + idValor2[1] + idValor3[1] + idValor4[1] + idValor5[1] + idValor6[1];
console.log('este es el id: ' + e.id);
selecIds1 = e.id;
sumaTotal(idVl1,idVl2);
break;
case idArray[1]:
idValor2 = [v1,v2];
idVl1 = idValor1[0] + idValor2[0] + idValor3[0] + idValor4[0] + idValor5[0] + idValor6[0];
idVl2 = idValor1[1] + idValor2[1] + idValor3[1] + idValor4[1] + idValor5[1] + idValor6[1];
console.log('este es el id: ' + e.id);
selecIds2 = e.id;
sumaTotal(idVl1,idVl2);
break;
case idArray[2]:
idValor3 = [v1,v2];
idVl1 = idValor1[0] + idValor2[0] + idValor3[0] + idValor4[0] + idValor5[0] + idValor6[0];
idVl2 = idValor1[1] + idValor2[1] + idValor3[1] + idValor4[1] + idValor5[1] + idValor6[1];
console.log('este es el id: ' + e.id);
selecIds3 = e.id;
sumaTotal(idVl1,idVl2);
break;
case idArray[3]:
idValor4 = [v1,v2];
idVl1 = idValor1[0] + idValor2[0] + idValor3[0] + idValor4[0] + idValor5[0] + idValor6[0];
idVl2 = idValor1[1] + idValor2[1] + idValor3[1] + idValor4[1] + idValor5[1] + idValor6[1];
console.log('este es el id: ' + e.id);
selecIds4 = e.id;
sumaTotal(idVl1,idVl2);
break;
case idArray[4]:
idValor4 = [v1,v2];
idVl1 = idValor1[0] + idValor2[0] + idValor3[0] + idValor4[0] + idValor5[0] + idValor6[0];
idVl2 = idValor1[1] + idValor2[1] + idValor3[1] + idValor4[1] + idValor5[1] + idValor6[1];
console.log('este es el id: ' + e.id);
selecIds5 = e.id;
sumaTotal(idVl1,idVl2);
break;
case idArray[5]:
idValor4 = [v1,v2];
idVl1 = idValor1[0] + idValor2[0] + idValor3[0] + idValor4[0] + idValor5[0] + idValor6[0];
idVl2 = idValor1[1] + idValor2[1] + idValor3[1] + idValor4[1] + idValor5[1] + idValor6[1];
console.log('este es el id: ' + e.id);
selecIds6 = e.id;
sumaTotal(idVl1,idVl2);
break;
default:
console.log('aun no hay valores');
}
}
function todosLosSeleccionados(inputs,idMadre)
{
for(var j = 0; j < inputs.length; j++ )
{
if(inputs[j].checked)
{
irSumando(inputs[j],idMadre);
}
}
}
/***************TEMPORIZADOR*************************/
var tiempoGlobo = 0;
var min = 2;
var seg = 59;
var mils = 59;
cronometro();
function cronometro()
{
if(tiempoGlobo==0)
{
ejecutaCronometro();
}
else
{
tiempoGlobo = 0;
}
}
/*++++++++++++++++++++++++Funcion que hace que los***************************/
function ejecutaCronometro()
{
if(mils < 0)
{
--seg;
mils = 59;
}
else if (seg < 0)
{
--min;
seg = 59;
}
else if(min == 0 && seg == 0 && mils == 0)
{
clearTimeout(tiempoGlobo);
guardarenLocaleirasiguiente();
return;
}
else{
--mils;
}
temporizador.value = LeadingZero(min) + ':' + LeadingZero(seg) + ':' + LeadingZero(mils);
tiempoGlobo = setTimeout("ejecutaCronometro()", 15);//15 es el tiempo de milesegundos para que cuando llegue a sesenta marque un segundo
}
function LeadingZero(Time) {
return (Time < 10) ? "0" + Time : + Time;
}
/////////////////////////////////////////////////
function guardarenLocaleirasiguiente()
{
// id de sumas
var idSenalados = [selecIds1,selecIds2,selecIds3,selecIds4,selecIds5,selecIds6,'sumando','temporizador'];
var valoresFormulario = ['Encuesta3-valor1','Encuesta3-valor2','Encuesta3-valor3','Encuesta3-valor4','Encuesta3-valor5','Encuesta3-valor6','Encuesta3-sumaTotal','Encuesta3-temporizador'];
for (var i = 0; i < idSenalados.length; i++)
{
if (idSenalados[i] != '')
{
localStorage.setItem(valoresFormulario[i], document.getElementById(idSenalados[i]).value);
}
else
{
localStorage.setItem(valoresFormulario[i], 'vacio');
}
}
window.location = "encuestaFuncionariosCuatro.html";
}
</script>
</body>
</html>