|
@@ -201,13 +201,13 @@ class ExportXls extends CI_Controller
|
201
|
201
|
$result['generalDocs'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_general_documents");
|
202
|
202
|
|
203
|
203
|
guardar_log("Excel", "Consulta tender process");
|
204
|
|
- $result['tenderProcess'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_process");
|
|
204
|
+ $result['tenderProcess'] = $this->Xlsexport_model->getTenderingTermsCodes();
|
205
|
205
|
|
206
|
206
|
guardar_log("Excel", "Consulta tender terms");
|
207
|
|
- $result['tenderingTerms'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_terms");
|
|
207
|
+ $result['tenderingTerms'] = $this->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("maestro_tendering_terms", "relacionada_codigo_tipo_garantia", "code", "guaranteeTypeCode");
|
208
|
208
|
|
209
|
209
|
guardar_log("Excel", "Consulta tender result");
|
210
|
|
- $result['tenderResult'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tender_result");
|
|
210
|
+ $result['tenderResult'] = $this->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("maestro_tender_result", "relacionada_tender_result", "code", "resultCode");
|
211
|
211
|
|
212
|
212
|
guardar_log("Excel", "Consulta tender criterio financieros");
|
213
|
213
|
$result['tenderFinancial'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_terms_financial_evaluation");
|
|
@@ -312,9 +312,11 @@ class ExportXls extends CI_Controller
|
312
|
312
|
{
|
313
|
313
|
$fechaFinal = "";
|
314
|
314
|
|
315
|
|
- if ($fecha != "0000-00-00") {
|
|
315
|
+ if ($fecha != "0000-00-00" && $fecha != "0000-00-00 00:00:00") {
|
316
|
316
|
$fechaFormat = new DateTime($fecha);
|
317
|
317
|
$fechaFinal = \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($fechaFormat);
|
|
318
|
+ } else {
|
|
319
|
+ $fechaFinal = "00/00/0000";
|
318
|
320
|
}
|
319
|
321
|
|
320
|
322
|
return $fechaFinal;
|
|
@@ -362,8 +364,8 @@ class ExportXls extends CI_Controller
|
362
|
364
|
|
363
|
365
|
private function datosCompletosMediosPublicacion($spreadsheet, $datos)
|
364
|
366
|
{
|
365
|
|
- $spreadsheet->setActiveSheetIndex(2);
|
366
|
|
- $spreadsheet->getActiveSheet()->setTitle("Medios de publicación");
|
|
367
|
+ $sheet = $spreadsheet->getSheet(2);
|
|
368
|
+ $sheet->setTitle("Medios de publicación");
|
367
|
369
|
|
368
|
370
|
if ($datos['num_rows'] > 0) {
|
369
|
371
|
$contador = 0;
|
|
@@ -371,9 +373,9 @@ class ExportXls extends CI_Controller
|
371
|
373
|
foreach ($datos['datos'] as $datos) {
|
372
|
374
|
guardar_log("Excel", "Escribir datos medio publicacion--" . $contador);
|
373
|
375
|
$contador++;
|
374
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
375
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['noticeTypeCode']);
|
376
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['publicationMediaName']);
|
|
376
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
377
|
+ $sheet->SetCellValue('B' . $aux, $datos['noticeTypeCode']);
|
|
378
|
+ $sheet->SetCellValue('C' . $aux, $datos['publicationMediaName']);
|
377
|
379
|
$aux++;
|
378
|
380
|
}
|
379
|
381
|
}
|
|
@@ -383,8 +385,8 @@ class ExportXls extends CI_Controller
|
383
|
385
|
|
384
|
386
|
private function datosMedioPublicacion($spreadsheet, $datos)
|
385
|
387
|
{
|
386
|
|
- $spreadsheet->setActiveSheetIndex(3);
|
387
|
|
- $spreadsheet->getActiveSheet()->setTitle("Documentos Medios Comm");
|
|
388
|
+ $sheet = $spreadsheet->getSheet(3);
|
|
389
|
+ $sheet->setTitle("Documentos Medios Comm");
|
388
|
390
|
|
389
|
391
|
if ($datos['num_rows'] > 0) {
|
390
|
392
|
$aux = 2;
|
|
@@ -392,9 +394,9 @@ class ExportXls extends CI_Controller
|
392
|
394
|
foreach ($datos['datos'] as $row) {
|
393
|
395
|
guardar_log("Excel", "Escribir documentios medios comunicacion--" . $contador);
|
394
|
396
|
$contador++;
|
395
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $row['id_ajena_licitacion']);
|
396
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $row['documento']);
|
397
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $row['filename']);
|
|
397
|
+ $sheet->SetCellValue('A' . $aux, $row['id_ajena_licitacion']);
|
|
398
|
+ $sheet->SetCellValue('B' . $aux, $row['documento']);
|
|
399
|
+ $sheet->SetCellValue('C' . $aux, $row['filename']);
|
398
|
400
|
|
399
|
401
|
$aux++;
|
400
|
402
|
}
|
|
@@ -404,8 +406,8 @@ class ExportXls extends CI_Controller
|
404
|
406
|
|
405
|
407
|
private function datosCompletosResultadoDelProcedimiento($spreadsheet, $datos)
|
406
|
408
|
{
|
407
|
|
- $spreadsheet->setActiveSheetIndex(4);
|
408
|
|
- $spreadsheet->getActiveSheet()->setTitle("Resultado del Procedimiento");
|
|
409
|
+ $sheet = $spreadsheet->getSheet(4);
|
|
410
|
+ $sheet->setTitle("Resultado del Procedimiento");
|
409
|
411
|
|
410
|
412
|
if ($datos['num_rows'] > 0) {
|
411
|
413
|
$aux = 2;
|
|
@@ -413,30 +415,38 @@ class ExportXls extends CI_Controller
|
413
|
415
|
foreach ($datos['datos'] as $datos) {
|
414
|
416
|
guardar_log("Excel", "Escribir tender result--" . $contador);
|
415
|
417
|
$contador++;
|
416
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
417
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['resultCode']);
|
418
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['description']);
|
419
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('D' . $aux, $this->formatFechas($datos['awardDate']));
|
420
|
|
- $spreadsheet->getStyle('D' . $aux)
|
|
418
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
419
|
+ $sheet->SetCellValue('B' . $aux, $datos['code_desc']);
|
|
420
|
+ $sheet->SetCellValue('C' . $aux, $datos['description']);
|
|
421
|
+ $sheet->SetCellValue('D' . $aux, $this->formatFechas($datos['awardDate']));
|
|
422
|
+ $sheet->getStyle('D' . $aux)
|
421
|
423
|
->getNumberFormat()
|
422
|
424
|
->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
423
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('E' . $aux, $datos['receivedTenderQuantity']);
|
424
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('F' . $aux, $datos['lowerTenderAmount']);
|
425
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('G' . $aux, $datos['higherTenderAmount']);
|
426
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('H' . $aux, $datos['abnormallyLowTendersIndicator']);
|
427
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('I' . $aux, $this->formatFechas($datos['startDate']));
|
428
|
|
- $spreadsheet->getStyle('I' . $aux)
|
|
425
|
+ $sheet->SetCellValue('E' . $aux, $datos['receivedTenderQuantity']);
|
|
426
|
+ $sheet->SetCellValue('F' . $aux, $datos['lowerTenderAmount']);
|
|
427
|
+ $sheet->getStyle('F' . $aux)
|
429
|
428
|
->getNumberFormat()
|
430
|
|
- ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
431
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('J' . $aux, $datos['smeawardedIndicator']);
|
432
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('K' . $aux, $datos['contract_id']);
|
433
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('L' . $aux, $this->formatFechas($datos['contract_issueDate']));
|
434
|
|
- $spreadsheet->getStyle('L' . $aux)
|
|
429
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
|
|
430
|
+ $sheet->SetCellValue('G' . $aux, $datos['higherTenderAmount']);
|
|
431
|
+ $sheet->getStyle('G' . $aux)
|
435
|
432
|
->getNumberFormat()
|
436
|
|
- ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
437
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('M' . $aux, $datos['partyIdentification']);
|
438
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('N' . $aux, $datos['partyName']);
|
439
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('O' . $aux, $datos['TaxExclusiveAmount']);
|
|
433
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
|
|
434
|
+ $sheet->SetCellValue('H' . $aux, $datos['abnormallyLowTendersIndicator']);
|
|
435
|
+ //$sheet->SetCellValue('I' . $aux, $datos['startDate']);
|
|
436
|
+ $sheet->SetCellValue('I' . $aux, $this->formatFechas($datos['startDate']));
|
|
437
|
+ $sheet->getStyle('I' . $aux)
|
|
438
|
+ ->getNumberFormat()
|
|
439
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DATETIME);
|
|
440
|
+ $sheet->SetCellValue('J' . $aux, $datos['smeawardedIndicator']);
|
|
441
|
+ $sheet->SetCellValue('K' . $aux, $datos['contract_id']);
|
|
442
|
+ $sheet->SetCellValue('L' . $aux, $datos['contract_issueDate']);
|
|
443
|
+ $sheet->SetCellValue('L' . $aux, $this->formatFechas($datos['contract_issueDate']));
|
|
444
|
+ $sheet->getStyle('L' . $aux)
|
|
445
|
+ ->getNumberFormat()
|
|
446
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DATETIME);
|
|
447
|
+ $sheet->SetCellValue('M' . $aux, $datos['partyIdentification']);
|
|
448
|
+ $sheet->SetCellValue('N' . $aux, $datos['partyName']);
|
|
449
|
+ $sheet->SetCellValue('O' . $aux, $datos['TaxExclusiveAmount']);
|
440
|
450
|
|
441
|
451
|
$aux++;
|
442
|
452
|
}
|
|
@@ -446,8 +456,8 @@ class ExportXls extends CI_Controller
|
446
|
456
|
|
447
|
457
|
private function datosCompletosTipoProcedimiento($spreadsheet, $datos)
|
448
|
458
|
{
|
449
|
|
- $spreadsheet->setActiveSheetIndex(5);
|
450
|
|
- $spreadsheet->getActiveSheet()->setTitle("Tipo Procedimiento");
|
|
459
|
+ $sheet = $spreadsheet->getSheet(5);
|
|
460
|
+ $sheet->setTitle("Tipo Procedimiento");
|
451
|
461
|
|
452
|
462
|
//$datos = $this->Xlsexport_model->getTenderProcessRelacion();
|
453
|
463
|
if ($datos['num_rows'] > 0) {
|
|
@@ -456,30 +466,30 @@ class ExportXls extends CI_Controller
|
456
|
466
|
foreach ($datos['datos'] as $datos) {
|
457
|
467
|
guardar_log("Excel", "Escribir tender process--" . $contador);
|
458
|
468
|
$contador++;
|
459
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
460
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['procedureCode']);
|
461
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['urgencyCode']);
|
462
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('D' . $aux, $datos['contractingSystemCode']);
|
463
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('E' . $aux, $datos['partPresentationCode']);
|
464
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('F' . $aux, $datos['submissionMethodCode']);
|
465
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('G' . $aux, $datos['maximumLotPresentationQuantity']);
|
466
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('H' . $aux, $datos['maximumTendererAwardedLotsQuantity']);
|
467
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('I' . $aux, $datos['lotsCombinationContractingAuthorityRights']);
|
468
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('J' . $aux, $this->formatFechas($datos['deadLineEndDate']));
|
469
|
|
- $spreadsheet->getStyle('J' . $aux)
|
|
469
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
470
|
+ $sheet->SetCellValue('B' . $aux, $datos['tipoTender']);
|
|
471
|
+ $sheet->SetCellValue('C' . $aux, $datos['urgency']);
|
|
472
|
+ $sheet->SetCellValue('D' . $aux, $datos['contrato_sistema']);
|
|
473
|
+ $sheet->SetCellValue('E' . $aux, $datos['partPresentationCode']);
|
|
474
|
+ $sheet->SetCellValue('F' . $aux, $datos['submision']);
|
|
475
|
+ $sheet->SetCellValue('G' . $aux, $datos['maximumLotPresentationQuantity']);
|
|
476
|
+ $sheet->SetCellValue('H' . $aux, $datos['maximumTendererAwardedLotsQuantity']);
|
|
477
|
+ $sheet->SetCellValue('I' . $aux, $datos['lotsCombinationContractingAuthorityRights']);
|
|
478
|
+ $sheet->SetCellValue('J' . $aux, $this->formatFechas($datos['deadLineEndDate']));
|
|
479
|
+ $sheet->getStyle('J' . $aux)
|
470
|
480
|
->getNumberFormat()
|
471
|
481
|
->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
472
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('K' . $aux, $this->formatFechas($datos['deadLineEndTime']));
|
473
|
|
- $spreadsheet->getStyle('K' . $aux)
|
|
482
|
+ $sheet->SetCellValue('K' . $aux, $this->formatFechas($datos['deadLineEndTime']));
|
|
483
|
+ $sheet->getStyle('K' . $aux)
|
474
|
484
|
->getNumberFormat()
|
475
|
485
|
->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
476
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('L' . $aux, $datos['deadLineDescription']);
|
477
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('M' . $aux, $datos['auctionTerms']);
|
478
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('N' . $aux, $this->formatFechas($datos['documentAvailablePeriod_EndDate']));
|
479
|
|
- $spreadsheet->getStyle('N' . $aux)
|
|
486
|
+ $sheet->SetCellValue('L' . $aux, $datos['deadLineDescription']);
|
|
487
|
+ $sheet->SetCellValue('M' . $aux, $datos['auctionTerms']);
|
|
488
|
+ $sheet->SetCellValue('N' . $aux, $this->formatFechas($datos['documentAvailablePeriod_EndDate']));
|
|
489
|
+ $sheet->getStyle('N' . $aux)
|
480
|
490
|
->getNumberFormat()
|
481
|
491
|
->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
482
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('O' . $aux, $datos['documentAvailablePeriod_EndTime']);
|
|
492
|
+ $sheet->SetCellValue('O' . $aux, $datos['documentAvailablePeriod_EndTime']);
|
483
|
493
|
|
484
|
494
|
$aux++;
|
485
|
495
|
}
|
|
@@ -490,8 +500,8 @@ class ExportXls extends CI_Controller
|
490
|
500
|
|
491
|
501
|
private function datosCompletosOfertas($spreadsheet, $datos)
|
492
|
502
|
{
|
493
|
|
- $spreadsheet->setActiveSheetIndex(6);
|
494
|
|
- $spreadsheet->getActiveSheet()->setTitle("Ofertas");
|
|
503
|
+ $sheet = $spreadsheet->getSheet(6);
|
|
504
|
+ $sheet->setTitle("Ofertas");
|
495
|
505
|
|
496
|
506
|
if ($datos['num_rows'] > 0) {
|
497
|
507
|
$aux = 2;
|
|
@@ -499,14 +509,14 @@ class ExportXls extends CI_Controller
|
499
|
509
|
foreach ($datos['datos'] as $datos) {
|
500
|
510
|
guardar_log("Excel", "Escribir tender process--" . $contador);
|
501
|
511
|
$contador++;
|
502
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
503
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['variantConstraintIndicator']);
|
504
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['guaranteeTypeCode']);
|
505
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('D' . $aux, $datos['requiredFinancialGuarantee_Amount']);
|
506
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('E' . $aux, $datos['allowedSubcontractTerms']);
|
507
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('F' . $aux, $datos['description']);
|
508
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('G' . $aux, $datos['personalSituation']);
|
509
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('H' . $aux, $datos['procurementLegislationDocumentReference']);
|
|
512
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
513
|
+ $sheet->SetCellValue('B' . $aux, $datos['variantConstraintIndicator']);
|
|
514
|
+ $sheet->SetCellValue('C' . $aux, $datos['code_desc']);
|
|
515
|
+ $sheet->SetCellValue('D' . $aux, $datos['requiredFinancialGuarantee_Amount']);
|
|
516
|
+ $sheet->SetCellValue('E' . $aux, $datos['allowedSubcontractTerms']);
|
|
517
|
+ $sheet->SetCellValue('F' . $aux, $datos['description']);
|
|
518
|
+ $sheet->SetCellValue('G' . $aux, $datos['personalSituation']);
|
|
519
|
+ $sheet->SetCellValue('H' . $aux, $datos['procurementLegislationDocumentReference']);
|
510
|
520
|
$aux++;
|
511
|
521
|
}
|
512
|
522
|
}
|
|
@@ -516,8 +526,8 @@ class ExportXls extends CI_Controller
|
516
|
526
|
|
517
|
527
|
private function datosCriterioAdjudicacion($spreadsheet, $datos)
|
518
|
528
|
{
|
519
|
|
- $spreadsheet->setActiveSheetIndex(7);
|
520
|
|
- $spreadsheet->getActiveSheet()->setTitle("Criterio Adjudicación");
|
|
529
|
+ $sheet = $spreadsheet->getSheet(7);
|
|
530
|
+ $sheet->setTitle("Criterio Adjudicación");
|
521
|
531
|
|
522
|
532
|
if ($datos['num_rows'] > 0) {
|
523
|
533
|
$aux = 2;
|
|
@@ -525,9 +535,9 @@ class ExportXls extends CI_Controller
|
525
|
535
|
foreach ($datos['datos'] as $datos) {
|
526
|
536
|
guardar_log("Excel", "Escribir criterio adjucicacion--" . $contador);
|
527
|
537
|
$contador++;
|
528
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
529
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
530
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['description']);
|
|
538
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
539
|
+ $sheet->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
|
540
|
+ $sheet->SetCellValue('B' . $aux, $datos['description']);
|
531
|
541
|
$aux++;
|
532
|
542
|
}
|
533
|
543
|
}
|
|
@@ -537,8 +547,8 @@ class ExportXls extends CI_Controller
|
537
|
547
|
|
538
|
548
|
private function datosCriterioEvaluacionFinanciera($spreadsheet, $datos)
|
539
|
549
|
{
|
540
|
|
- $spreadsheet->setActiveSheetIndex(8);
|
541
|
|
- $spreadsheet->getActiveSheet()->setTitle("CriteriosEvaluacionFinanciera");
|
|
550
|
+ $sheet = $spreadsheet->getSheet(8);
|
|
551
|
+ $sheet->setTitle("CriteriosEvaluacionFinanciera");
|
542
|
552
|
|
543
|
553
|
if ($datos['num_rows'] > 0) {
|
544
|
554
|
$aux = 2;
|
|
@@ -546,9 +556,9 @@ class ExportXls extends CI_Controller
|
546
|
556
|
foreach ($datos['datos'] as $datos) {
|
547
|
557
|
guardar_log("Excel", "Escribir criterios evaluacion financiera--" . $contador);
|
548
|
558
|
$contador++;
|
549
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
550
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
551
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['description']);
|
|
559
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
560
|
+ $sheet->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
|
561
|
+ $sheet->SetCellValue('C' . $aux, $datos['description']);
|
552
|
562
|
$aux++;
|
553
|
563
|
}
|
554
|
564
|
}
|
|
@@ -557,8 +567,8 @@ class ExportXls extends CI_Controller
|
557
|
567
|
|
558
|
568
|
private function datosCriterioEvaluacionTecnica($spreadsheet, $datos)
|
559
|
569
|
{
|
560
|
|
- $spreadsheet->setActiveSheetIndex(9);
|
561
|
|
- $spreadsheet->getActiveSheet()->setTitle("Criterios Evaluación Técnica");
|
|
570
|
+ $sheet = $spreadsheet->getSheet(9);
|
|
571
|
+ $sheet->setTitle("Criterios Evaluación Técnica");
|
562
|
572
|
|
563
|
573
|
if ($datos['num_rows'] > 0) {
|
564
|
574
|
$aux = 2;
|
|
@@ -566,9 +576,9 @@ class ExportXls extends CI_Controller
|
566
|
576
|
foreach ($datos['datos'] as $datos) {
|
567
|
577
|
guardar_log("Excel", "Escribir criterio evaluacion tecnica--" . $contador);
|
568
|
578
|
$contador++;
|
569
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
570
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
571
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['description']);
|
|
579
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
580
|
+ $sheet->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
|
581
|
+ $sheet->SetCellValue('C' . $aux, $datos['description']);
|
572
|
582
|
$aux++;
|
573
|
583
|
}
|
574
|
584
|
}
|
|
@@ -578,8 +588,8 @@ class ExportXls extends CI_Controller
|
578
|
588
|
|
579
|
589
|
private function datosRequisitosParticipacion($spreadsheet, $datos)
|
580
|
590
|
{
|
581
|
|
- $spreadsheet->setActiveSheetIndex(10);
|
582
|
|
- $spreadsheet->getActiveSheet()->setTitle("Requisitos Participación");
|
|
591
|
+ $sheet = $spreadsheet->getSheet(10);
|
|
592
|
+ $sheet->setTitle("Requisitos Participación");
|
583
|
593
|
|
584
|
594
|
if ($datos['num_rows'] > 0) {
|
585
|
595
|
$aux = 2;
|
|
@@ -587,8 +597,8 @@ class ExportXls extends CI_Controller
|
587
|
597
|
foreach ($datos['datos'] as $datos) {
|
588
|
598
|
guardar_log("Excel", "Escribir requisitos participacion--" . $contador);
|
589
|
599
|
$contador++;
|
590
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
591
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
|
600
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
601
|
+ $sheet->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
|
592
|
602
|
$aux++;
|
593
|
603
|
}
|
594
|
604
|
|
|
@@ -598,16 +608,15 @@ class ExportXls extends CI_Controller
|
598
|
608
|
|
599
|
609
|
private function datosCompletosDocumentosGenerales($spreadsheet, $datosLicitacion)
|
600
|
610
|
{
|
601
|
|
-
|
602
|
|
- $spreadsheet->setActiveSheetIndex(11);
|
603
|
|
- $spreadsheet->getActiveSheet()->setTitle("Documentos Generales");
|
|
611
|
+ $sheet = $spreadsheet->getSheet(11);
|
|
612
|
+ $sheet->setTitle("Documentos Generales");
|
604
|
613
|
$contador = 0;
|
605
|
614
|
foreach ($datosLicitacion['datos'] as $doc) {
|
606
|
615
|
guardar_log("Excel", "Escribir documentos generales--" . $contador);
|
607
|
616
|
$contador++;
|
608
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoGeneral, $doc['id_ajena_licitacion']);
|
609
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoGeneral, $doc['attachment']);
|
610
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoGeneral, $doc['fileName']);
|
|
617
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoGeneral, $doc['id_ajena_licitacion']);
|
|
618
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoGeneral, $doc['attachment']);
|
|
619
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoGeneral, $doc['fileName']);
|
611
|
620
|
|
612
|
621
|
$this->filaDocumentoGeneral++;
|
613
|
622
|
}
|
|
@@ -617,15 +626,15 @@ class ExportXls extends CI_Controller
|
617
|
626
|
|
618
|
627
|
private function datosCompletosDocumentosAdicionales($spreadsheet, $datosLicitacion)
|
619
|
628
|
{
|
620
|
|
- $spreadsheet->setActiveSheetIndex(12);
|
621
|
|
- $spreadsheet->getActiveSheet()->setTitle("Documentos Adicionales");
|
|
629
|
+ $sheet = $spreadsheet->getSheet(12);
|
|
630
|
+ $sheet->setTitle("Documentos Adicionales");
|
622
|
631
|
$contador = 0;
|
623
|
632
|
foreach ($datosLicitacion['datos'] as $doc) {
|
624
|
633
|
guardar_log("Excel", "Escribir documentos adicionales--" . $contador);
|
625
|
634
|
$contador++;
|
626
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoAdd, $doc['id_ajena_licitacion']);
|
627
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoAdd, $doc['attachment']);
|
628
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoAdd, $doc['idDoc']);
|
|
635
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoAdd, $doc['id_ajena_licitacion']);
|
|
636
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoAdd, $doc['attachment']);
|
|
637
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoAdd, $doc['idDoc']);
|
629
|
638
|
|
630
|
639
|
$this->filaDocumentoAdd++;
|
631
|
640
|
}
|
|
@@ -634,15 +643,15 @@ class ExportXls extends CI_Controller
|
634
|
643
|
|
635
|
644
|
private function datosCompletosDocumentosTecnicos($spreadsheet, $datosLicitacion)
|
636
|
645
|
{
|
637
|
|
- $spreadsheet->setActiveSheetIndex(13);
|
638
|
|
- $spreadsheet->getActiveSheet()->setTitle("Documentos Técnicos");
|
|
646
|
+ $sheet = $spreadsheet->getSheet(13);
|
|
647
|
+ $sheet->setTitle("Documentos Técnicos");
|
639
|
648
|
$contador = 0;
|
640
|
649
|
foreach ($datosLicitacion['datos'] as $doc) {
|
641
|
650
|
guardar_log("Excel", "Escribir documentos tecnicos--" . $contador);
|
642
|
651
|
$contador++;
|
643
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoTech, $doc['id_ajena_licitacion']);
|
644
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoTech, $doc['attachment']);
|
645
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoTech, $doc['idDoc']);
|
|
652
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoTech, $doc['id_ajena_licitacion']);
|
|
653
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoTech, $doc['attachment']);
|
|
654
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoTech, $doc['idDoc']);
|
646
|
655
|
|
647
|
656
|
$this->filaDocumentoTech++;
|
648
|
657
|
}
|
|
@@ -651,15 +660,15 @@ class ExportXls extends CI_Controller
|
651
|
660
|
|
652
|
661
|
private function datosCompletosDocumentosLegales($spreadsheet, $datosLicitacion)
|
653
|
662
|
{
|
654
|
|
- $spreadsheet->setActiveSheetIndex(14);
|
655
|
|
- $spreadsheet->getActiveSheet()->setTitle("Documentos Legales");
|
|
663
|
+ $sheet = $spreadsheet->getSheet(14);
|
|
664
|
+ $sheet->setTitle("Documentos Legales");
|
656
|
665
|
$contador = 0;
|
657
|
666
|
foreach ($datosLicitacion['datos'] as $doc) {
|
658
|
667
|
guardar_log("Excel", "Escribir documentos legales--" . $contador);
|
659
|
668
|
$contador++;
|
660
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoLegal, $doc['id_ajena_licitacion']);
|
661
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoLegal, $doc['attachment']);
|
662
|
|
- $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoLegal, $doc['idDoc']);
|
|
669
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoLegal, $doc['id_ajena_licitacion']);
|
|
670
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoLegal, $doc['attachment']);
|
|
671
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoLegal, $doc['idDoc']);
|
663
|
672
|
|
664
|
673
|
$this->filaDocumentoLegal++;
|
665
|
674
|
}
|