|
@@ -151,16 +151,17 @@ $buttonAll = $('<button/>',{
|
151
|
151
|
'id':"buttonForAll"
|
152
|
152
|
|
153
|
153
|
}).html('Export whole year');
|
|
154
|
+/*
|
154
|
155
|
$buttonForInform = $('<button/>', {
|
155
|
156
|
'class':'btn btn-secondary',
|
156
|
157
|
'type':'button',
|
157
|
158
|
'data-toggle':'modal',
|
158
|
159
|
'data-target':'#modal_inform'
|
159
|
160
|
|
160
|
|
-}).html('Report annual plan');
|
|
161
|
+}).html('Report annual plan');*/
|
161
|
162
|
$('#here2').html($buttonAll);
|
162
|
|
-$('#here2').append("<br><br>");
|
163
|
|
-$('#here2').append($buttonForInform);
|
|
163
|
+$('#here2').append("<br><br>"); /*
|
|
164
|
+$('#here2').append($buttonForInform);*/
|
164
|
165
|
|
165
|
166
|
|
166
|
167
|
|
|
@@ -291,14 +292,22 @@ $('#here2').append($buttonForInform);
|
291
|
292
|
var objHTML = '<strong> '+nextLetter+'. '+theObj.text+'</strong>';
|
292
|
293
|
nextLetter = nextChar(nextLetter);
|
293
|
294
|
var courseHTML = '';
|
|
295
|
+ var courseTAhtml ='';
|
294
|
296
|
|
295
|
297
|
for(course in json.first.courses[theObj.id]){
|
296
|
298
|
|
297
|
299
|
var theCourse = json.first.courses[theObj.id][course];
|
298
|
300
|
courseHTML+= '• '+theCourse.code + " "+ theCourse.number +'\n\n\n<br>';
|
299
|
|
- for(criterion in json.first.criteria[theObj.id][theCourse.course_id]){
|
300
|
|
- theCrit = json.first.criteria[theObj.id][theCourse.course_id][criterion];
|
|
301
|
+ courseTAhtml += '• '+theCourse.code + " "+ theCourse.number +'\n\n\n<br>';
|
|
302
|
+
|
|
303
|
+ for(criterion in json.first.criteria[theObj.id][theCourse.typ_course_id]){
|
|
304
|
+ theCrit = json.first.criteria[theObj.id][theCourse.typ_course_id][criterion];
|
301
|
305
|
courseHTML += '\t '+(parseInt(criterion)+1)+". "+theCrit.name+'\n<br>';
|
|
306
|
+
|
|
307
|
+ }
|
|
308
|
+ for(trans in json.first.trans_actions[theObj.id][theCourse.typ_course_id]){
|
|
309
|
+ theTA = json.first.trans_actions[theObj.id][theCourse.typ_course_id][trans]
|
|
310
|
+ courseTAhtml +='\t '+(parseInt(trans)+1)+". "+theTA.at_text+'\n<br>';
|
302
|
311
|
}
|
303
|
312
|
}
|
304
|
313
|
//courseHTML += '</ul>';
|
|
@@ -309,7 +318,7 @@ $('#here2').append($buttonForInform);
|
309
|
318
|
// criteriaHTML += '• '+crit.name+'\n<br>';
|
310
|
319
|
//}
|
311
|
320
|
|
312
|
|
- var trans_html ='';
|
|
321
|
+ /*var trans_html ='';
|
313
|
322
|
number = 1;
|
314
|
323
|
amount_of_TA_per_objective[index_per_objective]= [];
|
315
|
324
|
for(trans in json.first.trans_actions[theObj.id]){
|
|
@@ -344,20 +353,20 @@ $('#here2').append($buttonForInform);
|
344
|
353
|
|
345
|
354
|
theTypId = json.first.typ_objective_id[theObj.id].id;
|
346
|
355
|
|
347
|
|
- for(fill_info in json.fill_info[theTypId]){
|
|
356
|
+ /*for(fill_info in json.fill_info[theTypId]){
|
348
|
357
|
theInfo = json.fill_info[theTypId][fill_info];
|
349
|
358
|
$('#hizo-trans-'+fill_info+'_typ-'+theTypId+'-'+((theInfo.cycle_of_life)-1)).prop("checked", true);
|
350
|
359
|
$('#logro-trans-'+fill_info+'_typ-'+theTypId+'-'+theInfo.accomplished).prop("checked", true);
|
351
|
360
|
continuedSem = 1;
|
352
|
361
|
if(!theInfo.semester_continue) continuedSem =0;
|
353
|
362
|
$('#continued-trans-'+fill_info+'_typ-'+theTypId+'-'+continuedSem).prop("checked", true);
|
354
|
|
- }
|
355
|
|
-
|
|
363
|
+ }*/
|
|
364
|
+ /*
|
356
|
365
|
amount_of_TA_per_objective[index_per_objective].push(counter);
|
357
|
366
|
|
358
|
367
|
counter+=1;
|
359
|
368
|
|
360
|
|
- }
|
|
369
|
+ }*/
|
361
|
370
|
|
362
|
371
|
|
363
|
372
|
//$('#theReport').append()
|
|
@@ -365,7 +374,7 @@ $('#here2').append($buttonForInform);
|
365
|
374
|
$table.row.add([
|
366
|
375
|
objHTML,
|
367
|
376
|
courseHTML,
|
368
|
|
- trans_html
|
|
377
|
+ courseTAhtml
|
369
|
378
|
]);
|
370
|
379
|
|
371
|
380
|
index_per_objective +=1;
|
|
@@ -425,18 +434,27 @@ $('#here2').append($buttonForInform);
|
425
|
434
|
var objHTML = '<strong> '+nextLetter+'. '+theObj.text+'</strong>';
|
426
|
435
|
nextLetter = nextChar(nextLetter);
|
427
|
436
|
var courseHTML = '';
|
|
437
|
+ var courseTAhtml ='';
|
428
|
438
|
|
429
|
439
|
for(course in json.second.courses[theObj.id]){
|
430
|
440
|
|
431
|
441
|
var theCourse = json.second.courses[theObj.id][course];
|
432
|
442
|
courseHTML+= '•'+theCourse.code + " "+ theCourse.number +'\n\n\n<br>';
|
433
|
|
- for(criterion in json.second.criteria[theObj.id][theCourse.course_id]){
|
434
|
|
- theCrit = json.second.criteria[theObj.id][theCourse.course_id][criterion];
|
|
443
|
+ courseTAhtml += '• '+theCourse.code + " "+ theCourse.number +'\n\n\n<br>';
|
|
444
|
+ for(criterion in json.second.criteria[theObj.id][theCourse.typ_course_id]){
|
|
445
|
+ theCrit = json.second.criteria[theObj.id][theCourse.typ_course_id][criterion];
|
435
|
446
|
courseHTML += ' '+(parseInt(criterion)+1)+". "+theCrit.name+'\n<br>';
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+ }
|
|
450
|
+
|
|
451
|
+ for(trans in json.second.trans_actions[theObj.id][theCourse.typ_course_id]){
|
|
452
|
+ theTA = json.second.trans_actions[theObj.id][theCourse.typ_course_id][trans]
|
|
453
|
+ courseTAhtml +='\t '+(parseInt(trans)+1)+". "+theTA.at_text+'\n<br>';
|
436
|
454
|
}
|
437
|
455
|
}
|
438
|
456
|
//courseHTML += '</ul>';
|
439
|
|
- var criteriaHTML = '';
|
|
457
|
+ /*var criteriaHTML = '';
|
440
|
458
|
|
441
|
459
|
for(criterion in json.second.criteria[theObj.id]){
|
442
|
460
|
crit = json.second.criteria[theObj.id][criterion];
|
|
@@ -475,7 +493,7 @@ $('#here2').append($buttonForInform);
|
475
|
493
|
$('#theReport').append(form);
|
476
|
494
|
|
477
|
495
|
theTypId = json.second.typ_objective_id[theObj.id].id;
|
478
|
|
-
|
|
496
|
+ /*
|
479
|
497
|
for(fill_info in json.fill_info[theTypId]){
|
480
|
498
|
theInfo = json.fill_info[theTypId][fill_info];
|
481
|
499
|
$('#hizo-trans-'+fill_info+'_typ-'+theTypId+'-'+((theInfo.cycle_of_life)-1)).prop("checked", true);
|
|
@@ -489,14 +507,14 @@ $('#here2').append($buttonForInform);
|
489
|
507
|
amount_of_TA_per_objective[index_per_objective].push(counter);
|
490
|
508
|
|
491
|
509
|
counter+=1;
|
492
|
|
- }
|
|
510
|
+ }*/
|
493
|
511
|
index_per_objective +=1;
|
494
|
512
|
|
495
|
513
|
$table.row.add([
|
496
|
514
|
objHTML,
|
497
|
515
|
courseHTML,
|
498
|
516
|
|
499
|
|
- trans_html
|
|
517
|
+ courseTAhtml
|
500
|
518
|
]);
|
501
|
519
|
}
|
502
|
520
|
|