|
@@ -0,0 +1,931 @@
|
|
1
|
+<?php
|
|
2
|
+
|
|
3
|
+defined('BASEPATH') or exit('No direct script access allowed');
|
|
4
|
+
|
|
5
|
+use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
|
6
|
+use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
|
7
|
+
|
|
8
|
+class ExportXls
|
|
9
|
+{
|
|
10
|
+ protected $CI;
|
|
11
|
+ private $filaDocumentoGeneral = 2;
|
|
12
|
+ private $filaDocumentoTech = 2;
|
|
13
|
+ private $filaDocumentoAdd = 2;
|
|
14
|
+ private $filaDocumentoLegal = 2;
|
|
15
|
+ private $filaProjectLot = 2;
|
|
16
|
+ private $filaDatoLicitacion = 2;
|
|
17
|
+
|
|
18
|
+ public function __construct()
|
|
19
|
+ {
|
|
20
|
+ $this->CI = &get_instance();
|
|
21
|
+ $this->CI->load->model("Xlsexport_model");
|
|
22
|
+ }
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+ public function exportDatosCompletos()
|
|
26
|
+ {
|
|
27
|
+ $licitacionesResult = $this->CI->Xlsexport_model->getFullDatosUltimasInsertadas();
|
|
28
|
+
|
|
29
|
+ $result = array();
|
|
30
|
+
|
|
31
|
+ //$start = $this->starttime();
|
|
32
|
+ if ($licitacionesResult['num_rows'] > 0) {
|
|
33
|
+ $result = $this->mapearDatos($licitacionesResult);
|
|
34
|
+ }
|
|
35
|
+ $spreadsheet = new Spreadsheet();
|
|
36
|
+ $spreadsheet->createSheet();
|
|
37
|
+ $spreadsheet->createSheet();
|
|
38
|
+ $spreadsheet->createSheet();
|
|
39
|
+ $spreadsheet->createSheet();
|
|
40
|
+ $spreadsheet->createSheet();
|
|
41
|
+ $spreadsheet->createSheet();
|
|
42
|
+ $spreadsheet->createSheet();
|
|
43
|
+ $spreadsheet->createSheet();
|
|
44
|
+ $spreadsheet->createSheet();
|
|
45
|
+ $spreadsheet->createSheet();
|
|
46
|
+ $spreadsheet->createSheet();
|
|
47
|
+ $spreadsheet->createSheet();
|
|
48
|
+ $spreadsheet->createSheet();
|
|
49
|
+ $spreadsheet->createSheet();
|
|
50
|
+
|
|
51
|
+ $spreadsheet = $this->cabecerasOpenPlacspFirstSheet($spreadsheet);
|
|
52
|
+ $spreadsheet = $this->cabecerasOpenPlacsBitacora($spreadsheet, 1);
|
|
53
|
+ $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 11);
|
|
54
|
+ $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 12);
|
|
55
|
+ $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 13);
|
|
56
|
+ $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 14);
|
|
57
|
+ $spreadsheet = $this->cabeceraMediosComunicacion($spreadsheet);
|
|
58
|
+ $spreadsheet = $this->cabeceraMediosComunicacionDocumentos($spreadsheet);
|
|
59
|
+ $spreadsheet = $this->cabeceraTenderResult($spreadsheet);
|
|
60
|
+ $spreadsheet = $this->cabeceraTipoProcedimiento($spreadsheet);
|
|
61
|
+ $spreadsheet = $this->cabeceraTenderingTerms($spreadsheet);
|
|
62
|
+ $spreadsheet = $this->cabeceraCriterioADjudicacion($spreadsheet);
|
|
63
|
+ $spreadsheet = $this->cabeceraCriteriosFinancieros($spreadsheet);
|
|
64
|
+ $spreadsheet = $this->cabeceraCriteriosTecnicos($spreadsheet);
|
|
65
|
+ $spreadsheet = $this->cabeceraRequisitosParticipacion($spreadsheet);
|
|
66
|
+
|
|
67
|
+ $spreadsheet = $this->datosCompletosHojaLicitacion($spreadsheet, $result['hoja1']);
|
|
68
|
+ $spreadsheet = $this->datosCompletosHojaBitacora($spreadsheet, $result);
|
|
69
|
+ $spreadsheet = $this->datosCompletosMediosPublicacion($spreadsheet, $result['validNoticeInfo']);
|
|
70
|
+ $spreadsheet = $this->datosMedioPublicacion($spreadsheet, $result['validNoticeInfoDocumentos']);
|
|
71
|
+ $spreadsheet = $this->datosCriterioAdjudicacion($spreadsheet, $result['tenderAwarding']);
|
|
72
|
+ $spreadsheet = $this->datosCriterioEvaluacionFinanciera($spreadsheet, $result['tenderFinancial']);
|
|
73
|
+ $spreadsheet = $this->datosCriterioEvaluacionTecnica($spreadsheet, $result['tenderTecnicos']);
|
|
74
|
+ $spreadsheet = $this->datosRequisitosParticipacion($spreadsheet, $result['tenderQualification']);
|
|
75
|
+
|
|
76
|
+ $spreadsheet = $this->datosCompletosDocumentosGenerales($spreadsheet, $result['generalDocs']);
|
|
77
|
+ $spreadsheet = $this->datosCompletosDocumentosAdicionales($spreadsheet, $result['additDocs']);
|
|
78
|
+ $spreadsheet = $this->datosCompletosDocumentosTecnicos($spreadsheet, $result['techDocs']);
|
|
79
|
+ $spreadsheet = $this->datosCompletosDocumentosLegales($spreadsheet, $result['legalDocs']);
|
|
80
|
+ $spreadsheet = $this->datosCompletosTipoProcedimiento($spreadsheet, $result['tenderProcess']);
|
|
81
|
+ $spreadsheet = $this->datosCompletosOfertas($spreadsheet, $result['tenderingTerms']);
|
|
82
|
+ $spreadsheet = $this->datosCompletosResultadoDelProcedimiento($spreadsheet, $result['tenderResult']);
|
|
83
|
+
|
|
84
|
+ $nombreAchivo = 'Licitaciones_' . date("d-m-Y") . '.xlsx';
|
|
85
|
+ $ruta = FCPATH . 'uploads/' . $nombreAchivo;
|
|
86
|
+
|
|
87
|
+ $writer = new Xlsx($spreadsheet);
|
|
88
|
+
|
|
89
|
+ $writer->save($ruta);
|
|
90
|
+ emailEnvioExcel();
|
|
91
|
+ // Write the Excel file to filename some_excel_file.xlsx in the current directory
|
|
92
|
+ // Redirect output to a client’s web browser (Excel5)
|
|
93
|
+ header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
94
|
+ header('Content-Disposition: attachment;filename=' . $nombreAchivo . '');
|
|
95
|
+ header('Pragma: cache');
|
|
96
|
+ header('Cache-Control: private');
|
|
97
|
+ //$objWriter = PHPExcel_IOFactory::createWriter($spreadsheet, 'Excel2007');
|
|
98
|
+ //$objWriter->save(FCPATH . 'uploads/' . $nombreAchivo);*/
|
|
99
|
+ }
|
|
100
|
+
|
|
101
|
+ public function starttime()
|
|
102
|
+ {
|
|
103
|
+ $r = explode(' ', microtime());
|
|
104
|
+ $r = $r[1] + $r;
|
|
105
|
+ return $r;
|
|
106
|
+ }
|
|
107
|
+
|
|
108
|
+ public function endtime($starttime)
|
|
109
|
+ {
|
|
110
|
+ $r = explode(' ', microtime());
|
|
111
|
+ $r = $r[1] + $r;
|
|
112
|
+ $r = round($r - $starttime, 4);
|
|
113
|
+ return '<strong>Execution Time</strong>: ' . $r . ' seconds<br />';
|
|
114
|
+ }
|
|
115
|
+
|
|
116
|
+ public function mapearDatos($licitacionesResult): array
|
|
117
|
+ {
|
|
118
|
+ $result = array();
|
|
119
|
+
|
|
120
|
+ foreach ($licitacionesResult['datos'] as $licitacion) {
|
|
121
|
+
|
|
122
|
+ $result['hoja1'][$licitacion->id_licitacion]['licitacion'] = array(
|
|
123
|
+ 'id_licitacion' => $licitacion->id_licitacion,
|
|
124
|
+ "link_uri" => $licitacion->link_uri,
|
|
125
|
+ "updated" => $licitacion->updated,
|
|
126
|
+ 'estadoLicitacion' => $licitacion->estadoLicitacion,
|
|
127
|
+ );
|
|
128
|
+ $result['hoja1'][$licitacion->id_licitacion]['contract'] = array(
|
|
129
|
+ "descripcion" => $licitacion->contrato_status,
|
|
130
|
+ "contractFolderStatusCode" => $licitacion->contractFolderStatusCode,
|
|
131
|
+ "contractFolderID" => $licitacion->contractFolderID,
|
|
132
|
+ );
|
|
133
|
+ $result['hoja1'][$licitacion->id_licitacion]['locatedParty'] = array(
|
|
134
|
+ "contractingPartyTypeCode" => $licitacion->contractingPartyTypeCode,
|
|
135
|
+ "buyerProfileURIID" => $licitacion->buyerProfileURIID,
|
|
136
|
+ "tipo_administracion" => $licitacion->tipo_administracion,
|
|
137
|
+ "itemClassification_attr" => $licitacion->itemClassification_attr,
|
|
138
|
+ );
|
|
139
|
+ $result['hoja1'][$licitacion->id_licitacion]['party'] = array(
|
|
140
|
+ "partyName" => $licitacion->partyName,
|
|
141
|
+ "codpostal" => $licitacion->codpostal,
|
|
142
|
+ "websiteURI" => $licitacion->websiteURI,
|
|
143
|
+ "city" => $licitacion->city,
|
|
144
|
+ "direccion" => $licitacion->direccion,
|
|
145
|
+ "contact_name" => $licitacion->contact_name,
|
|
146
|
+ "contact_email" => $licitacion->contact_email,
|
|
147
|
+ "partyItem" => $licitacion->partyItem,
|
|
148
|
+ "tipoIdParty" => $licitacion->tipoIdParty,
|
|
149
|
+ );
|
|
150
|
+ $result['hoja1'][$licitacion->id_licitacion]['project'] = array(
|
|
151
|
+ "name" => $licitacion->nameProject,
|
|
152
|
+ "estimatedOverallContractAmount" => $licitacion->estimatedOverallContractAmount,
|
|
153
|
+ "taxExclusiveAmount" => $licitacion->taxExclusiveAmount,
|
|
154
|
+ "totalAmount" => $licitacion->totalAmount,
|
|
155
|
+ "tipo_contrato" => $licitacion->tipo_contrato,
|
|
156
|
+ "countrySubentityCode" => $licitacion->countrySubentityCode,
|
|
157
|
+ "countrySubentity" => $licitacion->countrySubentity,
|
|
158
|
+ "durationMesure" => $licitacion->durationMesure,
|
|
159
|
+ "medida" => $licitacion->medida,
|
|
160
|
+ "duracion_inicio" => $licitacion->duracion_inicio,
|
|
161
|
+ "duracion_fin" => $licitacion->duracion_fin,
|
|
162
|
+ "contractExtension" => $licitacion->contractExtension,
|
|
163
|
+
|
|
164
|
+ );
|
|
165
|
+ $result['hoja1'][$licitacion->id_licitacion]['tenderProcess'] = array(
|
|
166
|
+ "tipoTender" => $licitacion->tipoTender,
|
|
167
|
+ "contrato_sistema" => $licitacion->contrato_sistema,
|
|
168
|
+ "urgency" => $licitacion->urgency,
|
|
169
|
+ "submision" => $licitacion->submision,
|
|
170
|
+ );
|
|
171
|
+ $result['hoja1'][$licitacion->id_licitacion]['tenderTerms'] = array(
|
|
172
|
+ "procurementLegislationDocumentReference" => $licitacion->procurementLegislationDocumentReference,
|
|
173
|
+ "allowedSubcontractTerms" => $licitacion->allowedSubcontractTerms,
|
|
174
|
+ );
|
|
175
|
+ }
|
|
176
|
+
|
|
177
|
+ $result['validNoticeInfo'] = $this->CI->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("global_valid_notice_info", "codice_valid_notice_info", "code", "noticeTypeCode");
|
|
178
|
+
|
|
179
|
+ $result['validNoticeInfoDocumentos'] = $this->CI->Xlsexport_model->getTablaByFechaLog("global_valid_notice_info_documento");
|
|
180
|
+
|
|
181
|
+ $result['projectLot'] = $this->CI->Xlsexport_model->getProjectLotItem();
|
|
182
|
+
|
|
183
|
+ $result['techDocs'] = $this->CI->Xlsexport_model->getTablaByFechaLog("global_technical_documents");
|
|
184
|
+
|
|
185
|
+ $result['legalDocs'] = $this->CI->Xlsexport_model->getTablaByFechaLog("global_legal_documents");
|
|
186
|
+
|
|
187
|
+ $result['additDocs'] = $this->CI->Xlsexport_model->getTablaByFechaLog("global_additional_documents");
|
|
188
|
+
|
|
189
|
+ $result['generalDocs'] = $this->CI->Xlsexport_model->getTablaByFechaLog("global_general_documents");
|
|
190
|
+
|
|
191
|
+ $result['tenderProcess'] = $this->CI->Xlsexport_model->getTenderingTermsCodes();
|
|
192
|
+
|
|
193
|
+ $result['tenderingTerms'] = $this->CI->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("global_tendering_terms", "codice_codigo_tipo_garantia", "code", "guaranteeTypeCode");
|
|
194
|
+
|
|
195
|
+ $result['tenderResult'] = $this->CI->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("global_tender_result", "codice_tender_result", "code", "resultCode");
|
|
196
|
+
|
|
197
|
+ $result['tenderFinancial'] = $this->CI->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("global_tendering_terms_financial_evaluation", "codice_tendering_terms_financial", "code", "evaluationCriteriaTypeCode");
|
|
198
|
+
|
|
199
|
+ $result['tenderAwarding'] = $this->CI->Xlsexport_model->getTablaByFechaLog("global_tendering_terms_awarding_terms");
|
|
200
|
+
|
|
201
|
+ $result['tenderTecnicos'] = $this->CI->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("global_tendering_terms_qualification_request", "codice_tendering_terms_qualification_request", "code", "evaluationCriteriaTypeCode");
|
|
202
|
+
|
|
203
|
+ $result['tenderQualification'] = $this->CI->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("global_tendering_terms_specific_terms", "codice_tendering_terms_specific_terms", "code", "evaluationCriteriaTypeCode");
|
|
204
|
+
|
|
205
|
+ return $result;
|
|
206
|
+ }
|
|
207
|
+
|
|
208
|
+ private function datosCompletosHojaLicitacion($spreadsheet, $datosLicitacion)
|
|
209
|
+ {
|
|
210
|
+
|
|
211
|
+ $sheet = $spreadsheet->getSheet(0);
|
|
212
|
+ $sheet->setTitle("Datos Licitación");
|
|
213
|
+ $styleArr = array(
|
|
214
|
+ "font" => array(
|
|
215
|
+ "bold" => true,
|
|
216
|
+ "color" => array("rgb" => "22B9FF"),
|
|
217
|
+ "size" => 13,
|
|
218
|
+ ),
|
|
219
|
+ );
|
|
220
|
+
|
|
221
|
+ //Primera Publicacion
|
|
222
|
+ $contador = 0;
|
|
223
|
+ foreach ($datosLicitacion as $row) {
|
|
224
|
+ $contador++;
|
|
225
|
+ $primeraPublicacion = $this->primeraPublicacion($row['licitacion']['id_licitacion']);
|
|
226
|
+
|
|
227
|
+ $updated = $this->formatFechas($row['licitacion']['updated']);
|
|
228
|
+
|
|
229
|
+ $sheet->getStyle("A1:AJ1")->applyFromArray($styleArr);
|
|
230
|
+ $sheet->setCellValue('A' . $this->filaDatoLicitacion, $row['licitacion']['id_licitacion']);
|
|
231
|
+ $sheet->setCellValue('B' . $this->filaDatoLicitacion, $row['licitacion']['link_uri']);
|
|
232
|
+ $sheet->setCellValue('C' . $this->filaDatoLicitacion, $updated);
|
|
233
|
+ $sheet->getStyle('C' . $this->filaDatoLicitacion)
|
|
234
|
+ ->getNumberFormat()
|
|
235
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DATETIME);
|
|
236
|
+ $sheet->setCellValue('D' . $this->filaDatoLicitacion, $row['licitacion']['estadoLicitacion']);
|
|
237
|
+ $sheet->setCellValue('E' . $this->filaDatoLicitacion, $primeraPublicacion);
|
|
238
|
+ $sheet->getStyle('E' . $this->filaDatoLicitacion)
|
|
239
|
+ ->getNumberFormat()
|
|
240
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
|
241
|
+ $sheet->setCellValue('F' . $this->filaDatoLicitacion, $row['contract']['descripcion']);
|
|
242
|
+ $sheet->setCellValue('G' . $this->filaDatoLicitacion, $row['contract']['contractFolderID']);
|
|
243
|
+ $sheet->setCellValue('H' . $this->filaDatoLicitacion, $row['project']['name']);
|
|
244
|
+ $sheet->setCellValue('I' . $this->filaDatoLicitacion, $row['project']['estimatedOverallContractAmount']);
|
|
245
|
+ $sheet->getStyle('I' . $this->filaDatoLicitacion)
|
|
246
|
+ ->getNumberFormat()
|
|
247
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
|
|
248
|
+ $sheet->setCellValue('J' . $this->filaDatoLicitacion, $row['project']['taxExclusiveAmount']);
|
|
249
|
+ $sheet->getStyle('J' . $this->filaDatoLicitacion)
|
|
250
|
+ ->getNumberFormat()
|
|
251
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
|
|
252
|
+
|
|
253
|
+ $sheet->setCellValue('K' . $this->filaDatoLicitacion, $row['locatedParty']['itemClassification_attr']);
|
|
254
|
+ $sheet->setCellValue('L' . $this->filaDatoLicitacion, $row['project']['tipo_contrato']);
|
|
255
|
+ $sheet->setCellValue('M' . $this->filaDatoLicitacion, $row['project']['countrySubentity']);
|
|
256
|
+ $sheet->setCellValue('N' . $this->filaDatoLicitacion, $row['party']['partyName']);
|
|
257
|
+ $sheet->setCellValue('O' . $this->filaDatoLicitacion, ($row['party']['tipoIdParty'] == "DIR3") ? $row['party']['partyItem'] : "");
|
|
258
|
+ $sheet->setCellValue('P' . $this->filaDatoLicitacion, $row['locatedParty']['buyerProfileURIID']);
|
|
259
|
+ $sheet->setCellValue('Q' . $this->filaDatoLicitacion, $row['locatedParty']['tipo_administracion']);
|
|
260
|
+ $sheet->setCellValue('R' . $this->filaDatoLicitacion, $row['party']['codpostal']);
|
|
261
|
+ $sheet->setCellValue('S' . $this->filaDatoLicitacion, $row['tenderProcess']['tipoTender']);
|
|
262
|
+ $sheet->setCellValue('T' . $this->filaDatoLicitacion, $row['tenderProcess']['contrato_sistema']);
|
|
263
|
+ $sheet->setCellValue('U' . $this->filaDatoLicitacion, $row['tenderProcess']['urgency']);
|
|
264
|
+ $sheet->setCellValue('V' . $this->filaDatoLicitacion, $row['tenderProcess']['submision']);
|
|
265
|
+ $sheet->setCellValue('W' . $this->filaDatoLicitacion, $row['tenderTerms']['procurementLegislationDocumentReference']);
|
|
266
|
+ $sheet->setCellValue('X' . $this->filaDatoLicitacion, $row['tenderTerms']['allowedSubcontractTerms']);
|
|
267
|
+ $sheet->setCellValue('Y' . $this->filaDatoLicitacion, $row['project']['durationMesure']);
|
|
268
|
+ $sheet->setCellValue('Z' . $this->filaDatoLicitacion, $row['project']['medida']);
|
|
269
|
+ $sheet->setCellValue('AA' . $this->filaDatoLicitacion, $this->formatFechas($row['project']['duracion_inicio']));
|
|
270
|
+ $sheet->getStyle('AA' . $this->filaDatoLicitacion)
|
|
271
|
+ ->getNumberFormat()
|
|
272
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
|
273
|
+ $sheet->setCellValue('AB' . $this->filaDatoLicitacion, $this->formatFechas($row['project']['duracion_fin']));
|
|
274
|
+ $sheet->getStyle('AB' . $this->filaDatoLicitacion)
|
|
275
|
+ ->getNumberFormat()
|
|
276
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
|
277
|
+ $sheet->setCellValue('AC' . $this->filaDatoLicitacion, $row['project']['contractExtension']);
|
|
278
|
+ $sheet->setCellValue('AD' . $this->filaDatoLicitacion, $row['party']['websiteURI']);
|
|
279
|
+ $sheet->setCellValue('AE' . $this->filaDatoLicitacion, $row['party']['city']);
|
|
280
|
+ $sheet->setCellValue('AF' . $this->filaDatoLicitacion, $row['party']['direccion']);
|
|
281
|
+ $sheet->setCellValue('AG' . $this->filaDatoLicitacion, $row['party']['contact_name']);
|
|
282
|
+ $sheet->setCellValue('AH' . $this->filaDatoLicitacion, $row['party']['contact_email']);
|
|
283
|
+ $this->filaDatoLicitacion++;
|
|
284
|
+ }
|
|
285
|
+
|
|
286
|
+ return $spreadsheet;
|
|
287
|
+ }
|
|
288
|
+
|
|
289
|
+ private function formatFechas($fecha)
|
|
290
|
+ {
|
|
291
|
+ $fechaFinal = "";
|
|
292
|
+
|
|
293
|
+ if ($fecha != "0000-00-00" && $fecha != "0000-00-00 00:00:00") {
|
|
294
|
+ $fechaFormat = new DateTime($fecha);
|
|
295
|
+ $fechaFinal = \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($fechaFormat);
|
|
296
|
+ } else if ($fecha === "0000-00-00") {
|
|
297
|
+ //$fechaFinal = "00/00/0000";
|
|
298
|
+ $fechaFinal = "";
|
|
299
|
+ } else if ($fecha === "0000-00-00 00:00:00") {
|
|
300
|
+ //$fechaFinal = "00/00/0000 00:00";
|
|
301
|
+ $fechaFinal = "";
|
|
302
|
+ }
|
|
303
|
+
|
|
304
|
+ return $fechaFinal;
|
|
305
|
+ }
|
|
306
|
+
|
|
307
|
+ private function primeraPublicacion($idLicitacion)
|
|
308
|
+ {
|
|
309
|
+ $result = "";
|
|
310
|
+
|
|
311
|
+ $fechasPublicaciones = $this->CI->Xlsexport_model->getFechasPublicadas($idLicitacion);
|
|
312
|
+
|
|
313
|
+ if ($fechasPublicaciones['num_rows'] > 0) {
|
|
314
|
+ $primeraFechaFormat = new Datetime($fechasPublicaciones['datos']->fecha);
|
|
315
|
+ $result = \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($primeraFechaFormat);
|
|
316
|
+ }
|
|
317
|
+ return $result;
|
|
318
|
+ }
|
|
319
|
+
|
|
320
|
+ private function datosCompletosHojaBitacora($spreadsheet, $datosLicitacion)
|
|
321
|
+ {
|
|
322
|
+ $sheet = $spreadsheet->getSheet(1);
|
|
323
|
+ $sheet->setTitle("Bitacora");
|
|
324
|
+ $styleArr = array(
|
|
325
|
+ "font" => array(
|
|
326
|
+ "bold" => true,
|
|
327
|
+ "color" => array("rgb" => "22B9FF"),
|
|
328
|
+ "size" => 13,
|
|
329
|
+ ),
|
|
330
|
+ );
|
|
331
|
+ $sheet->getStyle("A1:F1")->applyFromArray($styleArr);
|
|
332
|
+ $contador = 0;
|
|
333
|
+ foreach ($datosLicitacion['projectLot']['datos'] as $bitacora) {
|
|
334
|
+ $contador++;
|
|
335
|
+ $sheet->SetCellValue('A' . $this->filaProjectLot, $bitacora['id_ajena_licitacion']);
|
|
336
|
+ $sheet->SetCellValue('B' . $this->filaProjectLot, $bitacora['name']);
|
|
337
|
+ $sheet->setCellValue('C' . $this->filaProjectLot, $bitacora['idProcurementLot']);
|
|
338
|
+ $sheet->SetCellValue('D' . $this->filaProjectLot, $bitacora['taxExclusiveAmount']);
|
|
339
|
+ $sheet->SetCellValue('E' . $this->filaProjectLot, $bitacora['countrySubentity']);
|
|
340
|
+ $sheet->SetCellValue('F' . $this->filaProjectLot, $bitacora['itemClassification_attr']);
|
|
341
|
+ $this->filaProjectLot++;
|
|
342
|
+ }
|
|
343
|
+ return $spreadsheet;
|
|
344
|
+ }
|
|
345
|
+
|
|
346
|
+ private function datosCompletosMediosPublicacion($spreadsheet, $datos)
|
|
347
|
+ {
|
|
348
|
+ $sheet = $spreadsheet->getSheet(2);
|
|
349
|
+ $sheet->setTitle("Medios de publicación");
|
|
350
|
+
|
|
351
|
+ if ($datos['num_rows'] > 0) {
|
|
352
|
+ $contador = 0;
|
|
353
|
+ $aux = 2;
|
|
354
|
+ foreach ($datos['datos'] as $datos) {
|
|
355
|
+ $contador++;
|
|
356
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
357
|
+ $sheet->SetCellValue('B' . $aux, $datos['code_desc']);
|
|
358
|
+ $sheet->SetCellValue('C' . $aux, $datos['publicationMediaName']);
|
|
359
|
+ $aux++;
|
|
360
|
+ }
|
|
361
|
+ }
|
|
362
|
+
|
|
363
|
+ return $spreadsheet;
|
|
364
|
+ }
|
|
365
|
+
|
|
366
|
+ private function datosMedioPublicacion($spreadsheet, $datos)
|
|
367
|
+ {
|
|
368
|
+ $sheet = $spreadsheet->getSheet(3);
|
|
369
|
+ $sheet->setTitle("Documentos Medios Comm");
|
|
370
|
+
|
|
371
|
+ if ($datos['num_rows'] > 0) {
|
|
372
|
+ $aux = 2;
|
|
373
|
+ $contador = 0;
|
|
374
|
+ foreach ($datos['datos'] as $row) {
|
|
375
|
+ $contador++;
|
|
376
|
+ $sheet->SetCellValue('A' . $aux, $row['id_ajena_licitacion']);
|
|
377
|
+ $sheet->SetCellValue('B' . $aux, $row['documento']);
|
|
378
|
+ $sheet->SetCellValue('C' . $aux, $row['filename']);
|
|
379
|
+
|
|
380
|
+ $aux++;
|
|
381
|
+ }
|
|
382
|
+ }
|
|
383
|
+ return $spreadsheet;
|
|
384
|
+ }
|
|
385
|
+
|
|
386
|
+ private function datosCompletosResultadoDelProcedimiento($spreadsheet, $datos)
|
|
387
|
+ {
|
|
388
|
+ $sheet = $spreadsheet->getSheet(4);
|
|
389
|
+ $sheet->setTitle("Resultado del Procedimiento");
|
|
390
|
+
|
|
391
|
+ if ($datos['num_rows'] > 0) {
|
|
392
|
+ $aux = 2;
|
|
393
|
+ $contador = 0;
|
|
394
|
+ foreach ($datos['datos'] as $datos) {
|
|
395
|
+ $contador++;
|
|
396
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
397
|
+ $sheet->SetCellValue('B' . $aux, $datos['code_desc']);
|
|
398
|
+ $sheet->SetCellValue('C' . $aux, $datos['description']);
|
|
399
|
+ $sheet->SetCellValue('D' . $aux, $this->formatFechas($datos['awardDate']));
|
|
400
|
+ $sheet->getStyle('D' . $aux)
|
|
401
|
+ ->getNumberFormat()
|
|
402
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
|
403
|
+ $sheet->SetCellValue('E' . $aux, $datos['receivedTenderQuantity']);
|
|
404
|
+ $sheet->SetCellValue('F' . $aux, $datos['lowerTenderAmount']);
|
|
405
|
+ $sheet->getStyle('F' . $aux)
|
|
406
|
+ ->getNumberFormat()
|
|
407
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
|
|
408
|
+ $sheet->SetCellValue('G' . $aux, $datos['higherTenderAmount']);
|
|
409
|
+ $sheet->getStyle('G' . $aux)
|
|
410
|
+ ->getNumberFormat()
|
|
411
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
|
|
412
|
+ $sheet->SetCellValue('H' . $aux, $datos['abnormallyLowTendersIndicator']);
|
|
413
|
+ //$sheet->SetCellValue('I' . $aux, $datos['startDate']);
|
|
414
|
+ $sheet->SetCellValue('I' . $aux, $this->formatFechas($datos['startDate']));
|
|
415
|
+ $sheet->getStyle('I' . $aux)
|
|
416
|
+ ->getNumberFormat()
|
|
417
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DATETIME);
|
|
418
|
+ $sheet->SetCellValue('J' . $aux, $datos['smeawardedIndicator']);
|
|
419
|
+ $sheet->SetCellValue('K' . $aux, $datos['contract_id']);
|
|
420
|
+ $sheet->SetCellValue('L' . $aux, $this->formatFechas($datos['contract_issueDate']));
|
|
421
|
+ $sheet->getStyle('L' . $aux)
|
|
422
|
+ ->getNumberFormat()
|
|
423
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DATETIME);
|
|
424
|
+ $sheet->SetCellValue('M' . $aux, $datos['partyIdentification']);
|
|
425
|
+ $sheet->SetCellValue('N' . $aux, $datos['partyName']);
|
|
426
|
+ $sheet->SetCellValue('O' . $aux, $datos['TaxExclusiveAmount']);
|
|
427
|
+ $sheet->getStyle('O' . $aux)
|
|
428
|
+ ->getNumberFormat()
|
|
429
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
|
|
430
|
+
|
|
431
|
+ $aux++;
|
|
432
|
+ }
|
|
433
|
+ }
|
|
434
|
+ return $spreadsheet;
|
|
435
|
+ }
|
|
436
|
+
|
|
437
|
+ private function datosCompletosTipoProcedimiento($spreadsheet, $datos)
|
|
438
|
+ {
|
|
439
|
+ $sheet = $spreadsheet->getSheet(5);
|
|
440
|
+ $sheet->setTitle("Tipo Procedimiento");
|
|
441
|
+
|
|
442
|
+ //$datos = $this->Xlsexport_model->getTenderProcessRelacion();
|
|
443
|
+ if ($datos['num_rows'] > 0) {
|
|
444
|
+ $aux = 2;
|
|
445
|
+ $contador = 0;
|
|
446
|
+ foreach ($datos['datos'] as $datos) {
|
|
447
|
+
|
|
448
|
+ $contador++;
|
|
449
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
450
|
+ $sheet->SetCellValue('B' . $aux, $datos['tipoTender']);
|
|
451
|
+ $sheet->SetCellValue('C' . $aux, $datos['urgency']);
|
|
452
|
+ $sheet->SetCellValue('D' . $aux, $datos['contrato_sistema']);
|
|
453
|
+ $sheet->SetCellValue('E' . $aux, $datos['partPresentationCode']);
|
|
454
|
+ $sheet->SetCellValue('F' . $aux, $datos['submision']);
|
|
455
|
+ $sheet->SetCellValue('G' . $aux, $datos['maximumLotPresentationQuantity']);
|
|
456
|
+ $sheet->SetCellValue('H' . $aux, $datos['maximumTendererAwardedLotsQuantity']);
|
|
457
|
+ $sheet->SetCellValue('I' . $aux, $datos['lotsCombinationContractingAuthorityRights']);
|
|
458
|
+ $sheet->SetCellValue('J' . $aux, $this->formatFechas($datos['deadLineEndDate']));
|
|
459
|
+ $sheet->getStyle('J' . $aux)
|
|
460
|
+ ->getNumberFormat()
|
|
461
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
|
462
|
+ $sheet->SetCellValue('K' . $aux, $datos['deadLineEndTime']);
|
|
463
|
+ $sheet->SetCellValue('L' . $aux, $datos['deadLineDescription']);
|
|
464
|
+ $sheet->SetCellValue('M' . $aux, $datos['auctionTerms']);
|
|
465
|
+ $sheet->SetCellValue('N' . $aux, $this->formatFechas($datos['documentAvailablePeriod_EndDate']));
|
|
466
|
+ $sheet->getStyle('N' . $aux)
|
|
467
|
+ ->getNumberFormat()
|
|
468
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
|
469
|
+ $sheet->SetCellValue('O' . $aux, $datos['documentAvailablePeriod_EndTime']);
|
|
470
|
+ $sheet->getStyle('O' . $aux)
|
|
471
|
+ ->getNumberFormat()
|
|
472
|
+ ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
|
|
473
|
+
|
|
474
|
+ $aux++;
|
|
475
|
+ }
|
|
476
|
+ }
|
|
477
|
+
|
|
478
|
+ return $spreadsheet;
|
|
479
|
+ }
|
|
480
|
+
|
|
481
|
+ private function datosCompletosOfertas($spreadsheet, $datos)
|
|
482
|
+ {
|
|
483
|
+ $sheet = $spreadsheet->getSheet(6);
|
|
484
|
+ $sheet->setTitle("Ofertas");
|
|
485
|
+
|
|
486
|
+ if ($datos['num_rows'] > 0) {
|
|
487
|
+ $aux = 2;
|
|
488
|
+ $contador = 0;
|
|
489
|
+ foreach ($datos['datos'] as $datos) {
|
|
490
|
+
|
|
491
|
+ $contador++;
|
|
492
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
493
|
+ $sheet->SetCellValue('B' . $aux, $datos['variantConstraintIndicator']);
|
|
494
|
+ $sheet->SetCellValue('C' . $aux, $datos['code_desc']);
|
|
495
|
+ $sheet->SetCellValue('D' . $aux, $datos['requiredFinancialGuarantee_Amount']);
|
|
496
|
+ $sheet->SetCellValue('E' . $aux, $datos['allowedSubcontractTerms']);
|
|
497
|
+ $sheet->SetCellValue('F' . $aux, $datos['description']);
|
|
498
|
+ $sheet->SetCellValue('G' . $aux, $datos['personalSituation']);
|
|
499
|
+ $sheet->SetCellValue('H' . $aux, $datos['procurementLegislationDocumentReference']);
|
|
500
|
+ $aux++;
|
|
501
|
+ }
|
|
502
|
+ }
|
|
503
|
+
|
|
504
|
+ return $spreadsheet;
|
|
505
|
+ }
|
|
506
|
+
|
|
507
|
+ private function datosCriterioAdjudicacion($spreadsheet, $datos)
|
|
508
|
+ {
|
|
509
|
+ $sheet = $spreadsheet->getSheet(7);
|
|
510
|
+ $sheet->setTitle("Criterio Adjudicación");
|
|
511
|
+
|
|
512
|
+ if ($datos['num_rows'] > 0) {
|
|
513
|
+ $aux = 2;
|
|
514
|
+ $contador = 0;
|
|
515
|
+ foreach ($datos['datos'] as $datos) {
|
|
516
|
+
|
|
517
|
+ $contador++;
|
|
518
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
519
|
+ $sheet->SetCellValue('B' . $aux, $datos['description']);
|
|
520
|
+ $sheet->SetCellValue('C' . $aux, $datos['evaluationCriteriaTypeCode']);
|
|
521
|
+ $aux++;
|
|
522
|
+ }
|
|
523
|
+ }
|
|
524
|
+
|
|
525
|
+ return $spreadsheet;
|
|
526
|
+ }
|
|
527
|
+
|
|
528
|
+ private function datosCriterioEvaluacionFinanciera($spreadsheet, $datos)
|
|
529
|
+ {
|
|
530
|
+ $sheet = $spreadsheet->getSheet(8);
|
|
531
|
+ $sheet->setTitle("CriteriosEvaluacionFinanciera");
|
|
532
|
+
|
|
533
|
+ if ($datos['num_rows'] > 0) {
|
|
534
|
+ $aux = 2;
|
|
535
|
+ $contador = 0;
|
|
536
|
+ foreach ($datos['datos'] as $datos) {
|
|
537
|
+
|
|
538
|
+ $contador++;
|
|
539
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
540
|
+ $sheet->SetCellValue('B' . $aux, $datos['code_desc']);
|
|
541
|
+ $sheet->SetCellValue('C' . $aux, $datos['description']);
|
|
542
|
+ $aux++;
|
|
543
|
+ }
|
|
544
|
+ }
|
|
545
|
+ return $spreadsheet;
|
|
546
|
+ }
|
|
547
|
+
|
|
548
|
+ private function datosCriterioEvaluacionTecnica($spreadsheet, $datos)
|
|
549
|
+ {
|
|
550
|
+ $sheet = $spreadsheet->getSheet(9);
|
|
551
|
+ $sheet->setTitle("Criterios Evaluación Técnica");
|
|
552
|
+
|
|
553
|
+ if ($datos['num_rows'] > 0) {
|
|
554
|
+ $aux = 2;
|
|
555
|
+ $contador = 0;
|
|
556
|
+ foreach ($datos['datos'] as $datos) {
|
|
557
|
+
|
|
558
|
+ $contador++;
|
|
559
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
560
|
+ $sheet->SetCellValue('B' . $aux, $datos['code_desc']);
|
|
561
|
+ $sheet->SetCellValue('C' . $aux, $datos['description']);
|
|
562
|
+ $aux++;
|
|
563
|
+ }
|
|
564
|
+ }
|
|
565
|
+
|
|
566
|
+ return $spreadsheet;
|
|
567
|
+ }
|
|
568
|
+
|
|
569
|
+ private function datosRequisitosParticipacion($spreadsheet, $datos)
|
|
570
|
+ {
|
|
571
|
+ $sheet = $spreadsheet->getSheet(10);
|
|
572
|
+ $sheet->setTitle("Requisitos Participación");
|
|
573
|
+
|
|
574
|
+ if ($datos['num_rows'] > 0) {
|
|
575
|
+ $aux = 2;
|
|
576
|
+ $contador = 0;
|
|
577
|
+ foreach ($datos['datos'] as $datos) {
|
|
578
|
+
|
|
579
|
+ $contador++;
|
|
580
|
+ $sheet->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
|
|
581
|
+ $sheet->SetCellValue('B' . $aux, $datos['code_desc']);
|
|
582
|
+ $aux++;
|
|
583
|
+ }
|
|
584
|
+ }
|
|
585
|
+ return $spreadsheet;
|
|
586
|
+ }
|
|
587
|
+
|
|
588
|
+ private function datosCompletosDocumentosGenerales($spreadsheet, $datosLicitacion)
|
|
589
|
+ {
|
|
590
|
+ $sheet = $spreadsheet->getSheet(11);
|
|
591
|
+ $sheet->setTitle("Documentos Generales");
|
|
592
|
+ $contador = 0;
|
|
593
|
+ foreach ($datosLicitacion['datos'] as $doc) {
|
|
594
|
+
|
|
595
|
+ $contador++;
|
|
596
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoGeneral, $doc['id_ajena_licitacion']);
|
|
597
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoGeneral, $doc['attachment']);
|
|
598
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoGeneral, $doc['fileName']);
|
|
599
|
+
|
|
600
|
+ $this->filaDocumentoGeneral++;
|
|
601
|
+ }
|
|
602
|
+
|
|
603
|
+ return $spreadsheet;
|
|
604
|
+ }
|
|
605
|
+
|
|
606
|
+ private function datosCompletosDocumentosAdicionales($spreadsheet, $datosLicitacion)
|
|
607
|
+ {
|
|
608
|
+ $sheet = $spreadsheet->getSheet(12);
|
|
609
|
+ $sheet->setTitle("Documentos Adicionales");
|
|
610
|
+ $contador = 0;
|
|
611
|
+ foreach ($datosLicitacion['datos'] as $doc) {
|
|
612
|
+
|
|
613
|
+ $contador++;
|
|
614
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoAdd, $doc['id_ajena_licitacion']);
|
|
615
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoAdd, $doc['attachment']);
|
|
616
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoAdd, $doc['idDoc']);
|
|
617
|
+
|
|
618
|
+ $this->filaDocumentoAdd++;
|
|
619
|
+ }
|
|
620
|
+ return $spreadsheet;
|
|
621
|
+ }
|
|
622
|
+
|
|
623
|
+ private function datosCompletosDocumentosTecnicos($spreadsheet, $datosLicitacion)
|
|
624
|
+ {
|
|
625
|
+ $sheet = $spreadsheet->getSheet(13);
|
|
626
|
+ $sheet->setTitle("Documentos Técnicos");
|
|
627
|
+ $contador = 0;
|
|
628
|
+ foreach ($datosLicitacion['datos'] as $doc) {
|
|
629
|
+
|
|
630
|
+ $contador++;
|
|
631
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoTech, $doc['id_ajena_licitacion']);
|
|
632
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoTech, $doc['attachment']);
|
|
633
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoTech, $doc['idDoc']);
|
|
634
|
+
|
|
635
|
+ $this->filaDocumentoTech++;
|
|
636
|
+ }
|
|
637
|
+ return $spreadsheet;
|
|
638
|
+ }
|
|
639
|
+
|
|
640
|
+ private function datosCompletosDocumentosLegales($spreadsheet, $datosLicitacion)
|
|
641
|
+ {
|
|
642
|
+ $sheet = $spreadsheet->getSheet(14);
|
|
643
|
+ $sheet->setTitle("Documentos Legales");
|
|
644
|
+ $contador = 0;
|
|
645
|
+ foreach ($datosLicitacion['datos'] as $doc) {
|
|
646
|
+
|
|
647
|
+ $contador++;
|
|
648
|
+ $sheet->SetCellValue('A' . $this->filaDocumentoLegal, $doc['id_ajena_licitacion']);
|
|
649
|
+ $sheet->SetCellValue('B' . $this->filaDocumentoLegal, $doc['attachment']);
|
|
650
|
+ $sheet->SetCellValue('C' . $this->filaDocumentoLegal, $doc['idDoc']);
|
|
651
|
+
|
|
652
|
+ $this->filaDocumentoLegal++;
|
|
653
|
+ }
|
|
654
|
+ return $spreadsheet;
|
|
655
|
+ }
|
|
656
|
+
|
|
657
|
+ private function cabecerasOpenPlacspFirstSheet($spreadsheet)
|
|
658
|
+ {
|
|
659
|
+ $spreadsheet->setActiveSheetIndex(0);
|
|
660
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', "Identificador");
|
|
661
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', "Link licitación");
|
|
662
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', "Fecha actualización");
|
|
663
|
+ $spreadsheet->getActiveSheet()->SetCellValue('D1', "Vigente/Anulada/Archivada");
|
|
664
|
+ $spreadsheet->getActiveSheet()->SetCellValue('E1', "Primera publicación");
|
|
665
|
+ $spreadsheet->getActiveSheet()->SetCellValue('F1', "Estado");
|
|
666
|
+ $spreadsheet->getActiveSheet()->SetCellValue('G1', "Número de expediente");
|
|
667
|
+ $spreadsheet->getActiveSheet()->SetCellValue('H1', "Objeto del Contrato");
|
|
668
|
+ $spreadsheet->getActiveSheet()->SetCellValue('I1', "Valor estimado del contrato");
|
|
669
|
+ $spreadsheet->getActiveSheet()->SetCellValue('J1', "Presupuesto base sin impuestos");
|
|
670
|
+ $spreadsheet->getActiveSheet()->SetCellValue('K1', "CPV");
|
|
671
|
+ $spreadsheet->getActiveSheet()->SetCellValue('L1', "Tipo de contrato");
|
|
672
|
+ $spreadsheet->getActiveSheet()->SetCellValue('M1', "Lugar de ejecución");
|
|
673
|
+ $spreadsheet->getActiveSheet()->SetCellValue('N1', "Órgano de Contratación");
|
|
674
|
+ $spreadsheet->getActiveSheet()->SetCellValue('O1', "DIR3");
|
|
675
|
+ $spreadsheet->getActiveSheet()->SetCellValue('P1', "Enlace al Perfil de Contratante del OC");
|
|
676
|
+ $spreadsheet->getActiveSheet()->SetCellValue('Q1', "Tipo de Administración");
|
|
677
|
+ $spreadsheet->getActiveSheet()->SetCellValue('R1', "Código Postal");
|
|
678
|
+ $spreadsheet->getActiveSheet()->SetCellValue('S1', "Tipo de procedimiento");
|
|
679
|
+ $spreadsheet->getActiveSheet()->SetCellValue('T1', "Sistema de contratación");
|
|
680
|
+ $spreadsheet->getActiveSheet()->SetCellValue('U1', "Tramitación");
|
|
681
|
+ $spreadsheet->getActiveSheet()->SetCellValue('V1', "Forma de presentación de la oferta");
|
|
682
|
+ $spreadsheet->getActiveSheet()->SetCellValue('W1', "Directiva de aplicación");
|
|
683
|
+ $spreadsheet->getActiveSheet()->SetCellValue('X1', "Subcontratación permitida");
|
|
684
|
+ $spreadsheet->getActiveSheet()->SetCellValue('Y1', "Duración Contrato");
|
|
685
|
+ $spreadsheet->getActiveSheet()->SetCellValue('Z1', "Tipo de duración");
|
|
686
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AA1', "Inicio contrato");
|
|
687
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AB1', "Fin contrato");
|
|
688
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AC1', "Extension Contrato");
|
|
689
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AD1', "URL Organo Contratación");
|
|
690
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AE1', "Ciudad Organo Contratación");
|
|
691
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AF1', "Dirección Organo Contratación");
|
|
692
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AG1', "Nombre Contacto Organo Contratación");
|
|
693
|
+ $spreadsheet->getActiveSheet()->SetCellValue('AH1', "Email contacto Organo Contratación");
|
|
694
|
+ return $spreadsheet;
|
|
695
|
+ }
|
|
696
|
+
|
|
697
|
+ //Cabeceras
|
|
698
|
+ private function cabecerasOpenPlacspDocumentos($spreadsheet, $hojaActiva)
|
|
699
|
+ {
|
|
700
|
+ $sheet = $spreadsheet->getSheet($hojaActiva);
|
|
701
|
+ $styleArr = array(
|
|
702
|
+ "font" => array(
|
|
703
|
+ "bold" => true,
|
|
704
|
+ "color" => array("rgb" => "22B9FF"),
|
|
705
|
+ "size" => 13,
|
|
706
|
+ ),
|
|
707
|
+ );
|
|
708
|
+ $sheet->getStyle("A1:D1")->applyFromArray($styleArr);
|
|
709
|
+ $spreadsheet->setActiveSheetIndex($hojaActiva);
|
|
710
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', "Identificador");
|
|
711
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', "Link Documento");
|
|
712
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', "Nombre Documento");
|
|
713
|
+
|
|
714
|
+ return $spreadsheet;
|
|
715
|
+ }
|
|
716
|
+
|
|
717
|
+ private function cabecerasOpenPlacsBitacora($spreadsheet, $hojaActiva)
|
|
718
|
+ {
|
|
719
|
+ $sheet = $spreadsheet->getSheet($hojaActiva);
|
|
720
|
+ $styleArr = array(
|
|
721
|
+ "font" => array(
|
|
722
|
+ "bold" => true,
|
|
723
|
+ "color" => array("rgb" => "22B9FF"),
|
|
724
|
+ "size" => 13,
|
|
725
|
+ ),
|
|
726
|
+ );
|
|
727
|
+ $sheet->getStyle("A1:F1")->applyFromArray($styleArr);
|
|
728
|
+ $spreadsheet->setActiveSheetIndex($hojaActiva);
|
|
729
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', "Identificador");
|
|
730
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', "Objeto del lote");
|
|
731
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', "Número de lote");
|
|
732
|
+ $spreadsheet->getActiveSheet()->SetCellValue('D1', "Importe sin Impuestos");
|
|
733
|
+ $spreadsheet->getActiveSheet()->SetCellValue('E1', "Lugar de ejecución del lote");
|
|
734
|
+ $spreadsheet->getActiveSheet()->SetCellValue('F1', "CPV");
|
|
735
|
+
|
|
736
|
+ return $spreadsheet;
|
|
737
|
+ }
|
|
738
|
+
|
|
739
|
+ private function cabeceraMediosComunicacion($spreadsheet)
|
|
740
|
+ {
|
|
741
|
+ $sheet = $spreadsheet->getSheet(2);
|
|
742
|
+ $styleArr = array(
|
|
743
|
+ "font" => array(
|
|
744
|
+ "bold" => true,
|
|
745
|
+ "color" => array("rgb" => "22B9FF"),
|
|
746
|
+ "size" => 13,
|
|
747
|
+ ),
|
|
748
|
+ );
|
|
749
|
+ $sheet->getStyle("A1:C1")->applyFromArray($styleArr);
|
|
750
|
+ $spreadsheet->setActiveSheetIndex(2);
|
|
751
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
752
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo de anuncio');
|
|
753
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Medio de publicación');
|
|
754
|
+
|
|
755
|
+ return $spreadsheet;
|
|
756
|
+ }
|
|
757
|
+
|
|
758
|
+ private function cabeceraMediosComunicacionDocumentos($spreadsheet)
|
|
759
|
+ {
|
|
760
|
+ $sheet = $spreadsheet->getSheet(3);
|
|
761
|
+ $styleArr = array(
|
|
762
|
+ "font" => array(
|
|
763
|
+ "bold" => true,
|
|
764
|
+ "color" => array("rgb" => "22B9FF"),
|
|
765
|
+ "size" => 13,
|
|
766
|
+ ),
|
|
767
|
+ );
|
|
768
|
+ $sheet->getStyle("A1:C1")->applyFromArray($styleArr);
|
|
769
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
770
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Documento');
|
|
771
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Nombre Documento');
|
|
772
|
+
|
|
773
|
+ return $spreadsheet;
|
|
774
|
+ }
|
|
775
|
+
|
|
776
|
+ private function cabeceraTenderResult($spreadsheet)
|
|
777
|
+ {
|
|
778
|
+ $sheet = $spreadsheet->getSheet(4);
|
|
779
|
+ $styleArr = array(
|
|
780
|
+ "font" => array(
|
|
781
|
+ "bold" => true,
|
|
782
|
+ "color" => array("rgb" => "22B9FF"),
|
|
783
|
+ "size" => 13,
|
|
784
|
+ ),
|
|
785
|
+ );
|
|
786
|
+ $sheet->getStyle("A1:O1")->applyFromArray($styleArr);
|
|
787
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
788
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo de resultado');
|
|
789
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Motivación adjudicación');
|
|
790
|
+ $spreadsheet->getActiveSheet()->SetCellValue('D1', 'Fecha del acuerdo');
|
|
791
|
+ $spreadsheet->getActiveSheet()->SetCellValue('E1', 'Número de licitadores participadores');
|
|
792
|
+ $spreadsheet->getActiveSheet()->SetCellValue('F1', 'Importe Oferta mas baja');
|
|
793
|
+ $spreadsheet->getActiveSheet()->SetCellValue('G1', 'Importe Oferta mas alta');
|
|
794
|
+ $spreadsheet->getActiveSheet()->SetCellValue('H1', 'Ofertas Temerarias Descartadas');
|
|
795
|
+ $spreadsheet->getActiveSheet()->SetCellValue('I1', 'Fecha de entrada en vigor');
|
|
796
|
+ $spreadsheet->getActiveSheet()->SetCellValue('J1', 'Identifica si es una PYME');
|
|
797
|
+ $spreadsheet->getActiveSheet()->SetCellValue('K1', 'Identificador del contrato');
|
|
798
|
+ $spreadsheet->getActiveSheet()->SetCellValue('L1', 'Fecha de formalización');
|
|
799
|
+ $spreadsheet->getActiveSheet()->SetCellValue('M1', 'Adjudicatario CIF');
|
|
800
|
+ $spreadsheet->getActiveSheet()->SetCellValue('N1', 'Nombre Adjudicatario');
|
|
801
|
+ $spreadsheet->getActiveSheet()->SetCellValue('O1', 'Importe de adjudicación sin impuestos');
|
|
802
|
+ return $spreadsheet;
|
|
803
|
+ }
|
|
804
|
+
|
|
805
|
+ private function cabeceraTipoProcedimiento($spreadsheet)
|
|
806
|
+ {
|
|
807
|
+ $sheet = $spreadsheet->getSheet(5);
|
|
808
|
+ $styleArr = array(
|
|
809
|
+ "font" => array(
|
|
810
|
+ "bold" => true,
|
|
811
|
+ "color" => array("rgb" => "22B9FF"),
|
|
812
|
+ "size" => 13,
|
|
813
|
+ ),
|
|
814
|
+ );
|
|
815
|
+ $sheet->getStyle("A1:O1")->applyFromArray($styleArr);
|
|
816
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
817
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo de Procedimiento');
|
|
818
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Tipo de Tramitación');
|
|
819
|
+ $spreadsheet->getActiveSheet()->SetCellValue('D1', 'Sistema de Contratación');
|
|
820
|
+ $spreadsheet->getActiveSheet()->SetCellValue('E1', 'Número de lotes a los que se debe ofertar');
|
|
821
|
+ $spreadsheet->getActiveSheet()->SetCellValue('F1', 'Presentación de la oferta');
|
|
822
|
+ $spreadsheet->getActiveSheet()->SetCellValue('G1', 'Número de lotes a los que se puede ofertar');
|
|
823
|
+ $spreadsheet->getActiveSheet()->SetCellValue('H1', 'Número máximo de lotes que se puede adjudicar un licitador');
|
|
824
|
+ $spreadsheet->getActiveSheet()->SetCellValue('I1', 'El poder adjudicador se reserva el derecho de adjudicar contratos que combinen lotes');
|
|
825
|
+ $spreadsheet->getActiveSheet()->SetCellValue('J1', 'Fecha limite para la presentación de ofertas');
|
|
826
|
+ $spreadsheet->getActiveSheet()->SetCellValue('K1', 'Tiempo limite para la presentación de ofertas');
|
|
827
|
+ $spreadsheet->getActiveSheet()->SetCellValue('L1', 'Texto descriptivo de fecha limite de presentación de ofertas');
|
|
828
|
+ $spreadsheet->getActiveSheet()->SetCellValue('M1', 'Usa subasta electronica');
|
|
829
|
+ $spreadsheet->getActiveSheet()->SetCellValue('N1', 'Fecha límite para obtener los pliegos');
|
|
830
|
+ $spreadsheet->getActiveSheet()->SetCellValue('O1', 'Hora límite para obtener los pliegos');
|
|
831
|
+
|
|
832
|
+ return $spreadsheet;
|
|
833
|
+ }
|
|
834
|
+
|
|
835
|
+ private function cabeceraTenderingTerms($spreadsheet)
|
|
836
|
+ {
|
|
837
|
+ $sheet = $spreadsheet->getSheet(6);
|
|
838
|
+ $styleArr = array(
|
|
839
|
+ "font" => array(
|
|
840
|
+ "bold" => true,
|
|
841
|
+ "color" => array("rgb" => "22B9FF"),
|
|
842
|
+ "size" => 13,
|
|
843
|
+ ),
|
|
844
|
+ );
|
|
845
|
+ $sheet->getStyle("A1:K1")->applyFromArray($styleArr);
|
|
846
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
847
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Indica que se pueden ofertar variantes');
|
|
848
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Tipo de garantia');
|
|
849
|
+ $spreadsheet->getActiveSheet()->SetCellValue('D1', 'Porcentaje de la garantíaa');
|
|
850
|
+ $spreadsheet->getActiveSheet()->SetCellValue('E1', 'Porcentaje de subcontratación máximo especificado para este contrato.');
|
|
851
|
+ $spreadsheet->getActiveSheet()->SetCellValue('F1', 'Descripción del objeto de la subcontratación');
|
|
852
|
+ $spreadsheet->getActiveSheet()->SetCellValue('G1', 'Descripción textual de los requisitos específicos del operador económico para poder participar en la licitación');
|
|
853
|
+ $spreadsheet->getActiveSheet()->SetCellValue('H1', 'Contrato sujeto a regulación armonizadaF');
|
|
854
|
+
|
|
855
|
+ return $spreadsheet;
|
|
856
|
+ }
|
|
857
|
+
|
|
858
|
+ private function cabeceraCriterioADjudicacion($spreadsheet)
|
|
859
|
+ {
|
|
860
|
+ $sheet = $spreadsheet->getSheet(7);
|
|
861
|
+ $styleArr = array(
|
|
862
|
+ "font" => array(
|
|
863
|
+ "bold" => true,
|
|
864
|
+ "color" => array("rgb" => "22B9FF"),
|
|
865
|
+ "size" => 13,
|
|
866
|
+ ),
|
|
867
|
+ );
|
|
868
|
+ $sheet->getStyle("A1:C1")->applyFromArray($styleArr);
|
|
869
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
870
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Descripción textual del criterio de adjudicación');
|
|
871
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Ponderación');
|
|
872
|
+
|
|
873
|
+ return $spreadsheet;
|
|
874
|
+ }
|
|
875
|
+
|
|
876
|
+ private function cabeceraCriteriosFinancieros($spreadsheet)
|
|
877
|
+ {
|
|
878
|
+ $sheet = $spreadsheet->getSheet(8);
|
|
879
|
+ $styleArr = array(
|
|
880
|
+ "font" => array(
|
|
881
|
+ "bold" => true,
|
|
882
|
+ "color" => array("rgb" => "22B9FF"),
|
|
883
|
+ "size" => 13,
|
|
884
|
+ ),
|
|
885
|
+ );
|
|
886
|
+ $sheet->getStyle("A1:C1")->applyFromArray($styleArr);
|
|
887
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
888
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo criterio de evaluación financiera');
|
|
889
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Descripción textual del criterio de evaluación financiera');
|
|
890
|
+
|
|
891
|
+ return $spreadsheet;
|
|
892
|
+ }
|
|
893
|
+
|
|
894
|
+ private function cabeceraCriteriosTecnicos($spreadsheet)
|
|
895
|
+ {
|
|
896
|
+ $sheet = $spreadsheet->getSheet(9);
|
|
897
|
+ $styleArr = array(
|
|
898
|
+ "font" => array(
|
|
899
|
+ "bold" => true,
|
|
900
|
+ "color" => array("rgb" => "22B9FF"),
|
|
901
|
+ "size" => 13,
|
|
902
|
+ ),
|
|
903
|
+ );
|
|
904
|
+ $sheet->getStyle("A1:C1")->applyFromArray($styleArr);
|
|
905
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
906
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo criterio de evaluación técnica');
|
|
907
|
+ $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Descripción textual del criterio de evaluación técnica');
|
|
908
|
+
|
|
909
|
+ return $spreadsheet;
|
|
910
|
+ }
|
|
911
|
+
|
|
912
|
+ private function cabeceraRequisitosParticipacion($spreadsheet)
|
|
913
|
+ {
|
|
914
|
+ $sheet = $spreadsheet->getSheet(10);
|
|
915
|
+ $styleArr = array(
|
|
916
|
+ "font" => array(
|
|
917
|
+ "bold" => true,
|
|
918
|
+ "color" => array("rgb" => "22B9FF"),
|
|
919
|
+ "size" => 13,
|
|
920
|
+ ),
|
|
921
|
+ );
|
|
922
|
+ $sheet->getStyle("A1:B1")->applyFromArray($styleArr);
|
|
923
|
+ $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
|
|
924
|
+ $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo Requisitos Participacion');
|
|
925
|
+
|
|
926
|
+ return $spreadsheet;
|
|
927
|
+ }
|
|
928
|
+}
|
|
929
|
+
|
|
930
|
+/* End of file ExportXls.php */
|
|
931
|
+/* Location: ./application/controllers/ExportXls.php */
|