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