ExportXls.php 44KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. <?php
  2. defined('BASEPATH') or exit('No direct script access allowed');
  3. use PhpOffice\PhpSpreadsheet\Spreadsheet;
  4. use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
  5. class ExportXls extends CI_Controller
  6. {
  7. private $filaDocumentoGeneral = 2;
  8. private $filaDocumentoTech = 2;
  9. private $filaDocumentoAdd = 2;
  10. private $filaDocumentoLegal = 2;
  11. private $filaProjectLot = 2;
  12. private $filaDatoLicitacion = 2;
  13. public function __construct()
  14. {
  15. parent::__construct();
  16. $this->load->model("Xlsexport_model");
  17. }
  18. public function index()
  19. {
  20. $licitaciones = $this->Xlsexport_model->getLicitaciones("HAVING LI.fecha_creacion_log = '2022-02-23 11:06:44'");
  21. insertBucleDuplicateOnKey($licitaciones['datos'], "vista_datos_licitacion", "");
  22. }
  23. public function exportDatosCompletos()
  24. {
  25. $licitacionesResult = $this->Xlsexport_model->getFullDatosUltimasInsertadas();
  26. $result = array();
  27. //$start = $this->starttime();
  28. if ($licitacionesResult['num_rows'] > 0) {
  29. $result = $this->mapearDatos($licitacionesResult);
  30. }
  31. $spreadsheet = new Spreadsheet();
  32. $spreadsheet->createSheet();
  33. $spreadsheet->createSheet();
  34. $spreadsheet->createSheet();
  35. $spreadsheet->createSheet();
  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 = $this->cabecerasOpenPlacspFirstSheet($spreadsheet);
  47. $spreadsheet = $this->cabecerasOpenPlacsBitacora($spreadsheet, 1);
  48. $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 11);
  49. $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 12);
  50. $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 13);
  51. $spreadsheet = $this->cabecerasOpenPlacspDocumentos($spreadsheet, 14);
  52. $spreadsheet = $this->datosCompletosHojaLicitacion($spreadsheet, $result['hoja1']);
  53. $spreadsheet = $this->datosCompletosHojaBitacora($spreadsheet, $result);
  54. $spreadsheet = $this->datosCompletosMediosPublicacion($spreadsheet, $result['validNoticeInfo']);
  55. $spreadsheet = $this->datosMedioPublicacion($spreadsheet, $result['validNoticeInfoDocumentos']);
  56. $spreadsheet = $this->datosCriterioAdjudicacion($spreadsheet, $result['tenderFinancial']);
  57. $spreadsheet = $this->datosCriterioEvaluacionFinanciera($spreadsheet, $result['tenderAwarding']);
  58. $spreadsheet = $this->datosCriterioEvaluacionTecnica($spreadsheet, $result['tenderTecnicos']);
  59. $spreadsheet = $this->datosRequisitosParticipacion($spreadsheet, $result['tenderQualification']);
  60. $spreadsheet = $this->datosCompletosDocumentosGenerales($spreadsheet, $result['generalDocs']);
  61. $spreadsheet = $this->datosCompletosDocumentosAdicionales($spreadsheet, $result['additDocs']);
  62. $spreadsheet = $this->datosCompletosDocumentosTecnicos($spreadsheet, $result['techDocs']);
  63. $spreadsheet = $this->datosCompletosDocumentosLegales($spreadsheet, $result['legalDocs']);
  64. $spreadsheet = $this->datosCompletosTipoProcedimiento($spreadsheet, $result['tenderProcess']);
  65. $spreadsheet = $this->datosCompletosOfertas($spreadsheet, $result['tenderingTerms']);
  66. $spreadsheet = $this->datosCompletosResultadoDelProcedimiento($spreadsheet, $result['tenderResult']);
  67. $nombreAchivo = 'test.xlsx';
  68. $ruta = FCPATH . 'uploads/' . $nombreAchivo;
  69. guardar_log("Excel", "Guardando Datos en excel--");
  70. $writer = new Xlsx($spreadsheet);
  71. $writer->save($ruta);
  72. // Write the Excel file to filename some_excel_file.xlsx in the current directory
  73. // Redirect output to a client’s web browser (Excel5)
  74. guardar_log("Excel", "Enviando Excel");
  75. header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
  76. header('Content-Disposition: attachment;filename=' . $nombreAchivo . '');
  77. header('Pragma: cache');
  78. header('Cache-Control: private');
  79. //$objWriter = PHPExcel_IOFactory::createWriter($spreadsheet, 'Excel2007');
  80. //$objWriter->save(FCPATH . 'uploads/' . $nombreAchivo);*/
  81. }
  82. public function starttime()
  83. {
  84. $r = explode(' ', microtime());
  85. $r = $r[1] + $r;
  86. return $r;
  87. }
  88. public function endtime($starttime)
  89. {
  90. $r = explode(' ', microtime());
  91. $r = $r[1] + $r;
  92. $r = round($r - $starttime, 4);
  93. return '<strong>Execution Time</strong>: ' . $r . ' seconds<br />';
  94. }
  95. public function mapearDatos($licitacionesResult): array
  96. {
  97. $result = array();
  98. guardar_log("Excel", "Montando array datos licitacion");
  99. foreach ($licitacionesResult['datos'] as $licitacion) {
  100. $result['hoja1'][$licitacion->id_licitacion]['licitacion'] = array(
  101. 'id_licitacion' => $licitacion->id_licitacion,
  102. "link_uri" => $licitacion->link_uri,
  103. "updated" => $licitacion->updated,
  104. );
  105. $result['hoja1'][$licitacion->id_licitacion]['contract'] = array(
  106. "descripcion" => $licitacion->contrato_status,
  107. "contractFolderStatusCode" => $licitacion->contractFolderStatusCode,
  108. "contractFolderID" => $licitacion->contractFolderID,
  109. );
  110. $result['hoja1'][$licitacion->id_licitacion]['locatedParty'] = array(
  111. "contractingPartyTypeCode" => $licitacion->contractingPartyTypeCode,
  112. "buyerProfileURIID" => $licitacion->buyerProfileURIID,
  113. "tipo_administracion" => $licitacion->tipo_administracion,
  114. "itemClassification_attr" => $licitacion->itemClassification_attr,
  115. );
  116. $result['hoja1'][$licitacion->id_licitacion]['party'] = array(
  117. "partyName" => $licitacion->partyName,
  118. "codpostal" => $licitacion->codpostal,
  119. "websiteURI" => $licitacion->websiteURI,
  120. "city" => $licitacion->city,
  121. "direccion" => $licitacion->direccion,
  122. "contact_name" => $licitacion->contact_name,
  123. "contact_email" => $licitacion->contact_email,
  124. "partyItem" => $licitacion->partyItem,
  125. "tipoIdParty" => $licitacion->tipoIdParty,
  126. );
  127. $result['hoja1'][$licitacion->id_licitacion]['project'] = array(
  128. "name" => $licitacion->nameProject,
  129. "estimatedOverallContractAmount" => $licitacion->estimatedOverallContractAmount,
  130. "taxExclusiveAmount" => $licitacion->taxExclusiveAmount,
  131. "totalAmount" => $licitacion->totalAmount,
  132. "tipo_contrato" => $licitacion->tipo_contrato,
  133. "countrySubentityCode" => $licitacion->countrySubentityCode,
  134. "countrySubentity" => $licitacion->countrySubentity,
  135. "durationMesure" => $licitacion->durationMesure,
  136. "medida" => $licitacion->medida,
  137. "duracion_inicio" => $licitacion->duracion_inicio,
  138. "duracion_fin" => $licitacion->duracion_fin,
  139. "contractExtension" => $licitacion->contractExtension,
  140. );
  141. $result['hoja1'][$licitacion->id_licitacion]['tenderProcess'] = array(
  142. "tipoTender" => $licitacion->tipoTender,
  143. "contrato_sistema" => $licitacion->contrato_sistema,
  144. "urgency" => $licitacion->urgency,
  145. "submision" => $licitacion->submision,
  146. );
  147. $result['hoja1'][$licitacion->id_licitacion]['tenderTerms'] = array(
  148. "procurementLegislationDocumentReference" => $licitacion->procurementLegislationDocumentReference,
  149. "allowedSubcontractTerms" => $licitacion->allowedSubcontractTerms,
  150. );
  151. }
  152. guardar_log("Excel", "Consulta Valid notice info");
  153. $result['validNoticeInfo'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_valid_notice_info");
  154. guardar_log("Excel", "Consulta Valid notice info documentos");
  155. $result['validNoticeInfoDocumentos'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_valid_notice_info_documento");
  156. /* guardar_log("Excel", "Consulta Valid notice info");
  157. $result['validNoticeInfo'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_valid_notice_fechas"); */
  158. guardar_log("Excel", "Consulta projectLot");
  159. $result['projectLot'] = $this->Xlsexport_model->getProjectLotItem();
  160. guardar_log("Excel", "Consulta documentos tecnicos");
  161. $result['techDocs'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_technical_documents");
  162. guardar_log("Excel", "Consulta documentos legales");
  163. $result['legalDocs'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_legal_documents");
  164. guardar_log("Excel", "Consulta documentos adicionales");
  165. $result['additDocs'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_additional_documents");
  166. guardar_log("Excel", "Consulta documentos generales");
  167. $result['generalDocs'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_general_documents");
  168. guardar_log("Excel", "Consulta tender process");
  169. $result['tenderProcess'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_process");
  170. guardar_log("Excel", "Consulta tender terms");
  171. $result['tenderingTerms'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_terms");
  172. guardar_log("Excel", "Consulta tender result");
  173. $result['tenderResult'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tender_result");
  174. guardar_log("Excel", "Consulta tender criterio financieros");
  175. $result['tenderFinancial'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_terms_financial_evaluation");
  176. guardar_log("Excel", "Consulta tender criterio adjudicacion");
  177. $result['tenderAwarding'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_terms_awarding_terms");
  178. guardar_log("Excel", "Consulta tender criterios tecnicos");
  179. $result['tenderTecnicos'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_terms_qualification_request");
  180. guardar_log("Excel", "Consulta tender requisitos participacion");
  181. $result['tenderQualification'] = $this->Xlsexport_model->getTablaByFechaLog("maestro_tendering_terms_qualification_request");
  182. return $result;
  183. }
  184. private function datosCompletosHojaLicitacion($spreadsheet, $datosLicitacion)
  185. {
  186. $sheet = $spreadsheet->getSheet(0);
  187. $sheet->setTitle("Datos Licitación");
  188. $styleArr = array(
  189. "font" => array(
  190. "bold" => true,
  191. "color" => array("rgb" => "22B9FF"),
  192. "size" => 13,
  193. ),
  194. );
  195. //Primera Publicacion
  196. $contador = 0;
  197. foreach ($datosLicitacion as $row) {
  198. guardar_log("Excel", "Escribir excel datos licitacion--" . $contador);
  199. $contador++;
  200. $primeraPublicacion = $this->primeraPublicacion($row['licitacion']['id_licitacion']);
  201. $updated = $this->formatFechas($row['licitacion']['updated']);
  202. $sheet->getStyle("A1:AJ1")->applyFromArray($styleArr);
  203. $sheet->setCellValue('A' . $this->filaDatoLicitacion, $row['licitacion']['id_licitacion']);
  204. $sheet->setCellValue('B' . $this->filaDatoLicitacion, $row['licitacion']['link_uri']);
  205. $sheet->setCellValue('C' . $this->filaDatoLicitacion, $updated);
  206. $sheet->getStyle('C' . $this->filaDatoLicitacion)
  207. ->getNumberFormat()
  208. ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DATETIME);
  209. $sheet->setCellValue('E' . $this->filaDatoLicitacion, $primeraPublicacion);
  210. $sheet->getStyle('E' . $this->filaDatoLicitacion)
  211. ->getNumberFormat()
  212. ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
  213. $sheet->setCellValue('F' . $this->filaDatoLicitacion, $row['contract']['descripcion']);
  214. $sheet->setCellValue('G' . $this->filaDatoLicitacion, $row['contract']['contractFolderID']);
  215. $sheet->setCellValue('H' . $this->filaDatoLicitacion, $row['project']['name']);
  216. $sheet->setCellValue('I' . $this->filaDatoLicitacion, $row['project']['estimatedOverallContractAmount']);
  217. $sheet->getStyle('I' . $this->filaDatoLicitacion)
  218. ->getNumberFormat()
  219. ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
  220. $sheet->setCellValue('J' . $this->filaDatoLicitacion, $row['project']['taxExclusiveAmount']);
  221. $sheet->getStyle('J' . $this->filaDatoLicitacion)
  222. ->getNumberFormat()
  223. ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_ACCOUNTING_EUR);
  224. $sheet->setCellValue('K' . $this->filaDatoLicitacion, $row['locatedParty']['itemClassification_attr']);
  225. $sheet->setCellValue('L' . $this->filaDatoLicitacion, $row['project']['tipo_contrato']);
  226. $sheet->setCellValue('M' . $this->filaDatoLicitacion, $row['project']['countrySubentityCode'] . " - " . $row['project']['countrySubentity']);
  227. $sheet->setCellValue('N' . $this->filaDatoLicitacion, $row['party']['partyName']);
  228. $sheet->setCellValue('O' . $this->filaDatoLicitacion, ($row['party']['tipoIdParty'] == "ID_PLATAFORMA") ? $row['party']['partyItem'] : "");
  229. $sheet->setCellValue('P' . $this->filaDatoLicitacion, ($row['party']['tipoIdParty'] == "NIF") ? $row['party']['partyItem'] : "");
  230. $sheet->setCellValue('Q' . $this->filaDatoLicitacion, ($row['party']['tipoIdParty'] == "DIR3") ? $row['party']['partyItem'] : "");
  231. $sheet->setCellValue('R' . $this->filaDatoLicitacion, $row['locatedParty']['buyerProfileURIID']);
  232. $sheet->setCellValue('S' . $this->filaDatoLicitacion, $row['locatedParty']['tipo_administracion']);
  233. $sheet->setCellValue('T' . $this->filaDatoLicitacion, $row['party']['codpostal']);
  234. $sheet->setCellValue('U' . $this->filaDatoLicitacion, $row['tenderProcess']['tipoTender']);
  235. $sheet->setCellValue('V' . $this->filaDatoLicitacion, $row['tenderProcess']['contrato_sistema']);
  236. $sheet->setCellValue('W' . $this->filaDatoLicitacion, $row['tenderProcess']['urgency']);
  237. $sheet->setCellValue('X' . $this->filaDatoLicitacion, $row['tenderProcess']['submision']);
  238. $sheet->setCellValue('ZY' . $this->filaDatoLicitacion, $row['tenderTerms']['procurementLegislationDocumentReference']);
  239. $sheet->setCellValue('Z' . $this->filaDatoLicitacion, $row['tenderTerms']['allowedSubcontractTerms']);
  240. $sheet->setCellValue('AA' . $this->filaDatoLicitacion, $row['project']['durationMesure']);
  241. $sheet->setCellValue('AB' . $this->filaDatoLicitacion, $row['project']['medida']);
  242. $sheet->setCellValue('AC' . $this->filaDatoLicitacion, $this->formatFechas($row['project']['duracion_inicio']));
  243. $sheet->getStyle('AC' . $this->filaDatoLicitacion)
  244. ->getNumberFormat()
  245. ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
  246. $sheet->setCellValue('AD' . $this->filaDatoLicitacion, $this->formatFechas($row['project']['duracion_fin']));
  247. $sheet->getStyle('AD' . $this->filaDatoLicitacion)
  248. ->getNumberFormat()
  249. ->setFormatCode(\PhpOffice\PhpSpreadsheet\Style\NumberFormat::FORMAT_DATE_DDMMYYYY);
  250. $sheet->setCellValue('AE' . $this->filaDatoLicitacion, $row['project']['contractExtension']);
  251. $sheet->setCellValue('AF' . $this->filaDatoLicitacion, $row['party']['websiteURI']);
  252. $sheet->setCellValue('AG' . $this->filaDatoLicitacion, $row['party']['city']);
  253. $sheet->setCellValue('AH' . $this->filaDatoLicitacion, $row['party']['direccion']);
  254. $sheet->setCellValue('AI' . $this->filaDatoLicitacion, $row['party']['contact_name']);
  255. $sheet->setCellValue('AJ' . $this->filaDatoLicitacion, $row['party']['contact_email']);
  256. $this->filaDatoLicitacion++;
  257. }
  258. return $spreadsheet;
  259. }
  260. private function formatFechas($fecha)
  261. {
  262. $fechaFinal = "";
  263. if ($fecha != "0000-00-00") {
  264. $fechaFormat = new DateTime($fecha);
  265. $fechaFinal = \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($fechaFormat);
  266. }
  267. return $fechaFinal;
  268. }
  269. private function primeraPublicacion($idLicitacion)
  270. {
  271. $result = "";
  272. $fechasPublicaciones = $this->Xlsexport_model->getFechasPublicadas($idLicitacion);
  273. if ($fechasPublicaciones['num_rows'] > 0) {
  274. $primeraFechaFormat = new Datetime($fechasPublicaciones['datos']->fecha);
  275. $result = \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($primeraFechaFormat);
  276. }
  277. return $result;
  278. }
  279. private function datosCompletosHojaBitacora($spreadsheet, $datosLicitacion)
  280. {
  281. $sheet = $spreadsheet->getSheet(1);
  282. $sheet->setTitle("Bitacora");
  283. $styleArr = array(
  284. "font" => array(
  285. "bold" => true,
  286. "color" => array("rgb" => "22B9FF"),
  287. "size" => 13,
  288. ),
  289. );
  290. $sheet->getStyle("A1:F1")->applyFromArray($styleArr);
  291. $contador = 0;
  292. foreach ($datosLicitacion['projectLot']['datos'] as $bitacora) {
  293. guardar_log("Excel", "Escribir bitacora--" . $contador);
  294. $contador++;
  295. $sheet->SetCellValue('A' . $this->filaProjectLot, $bitacora['id_ajena_licitacion']);
  296. $sheet->SetCellValue('B' . $this->filaProjectLot, $bitacora['name']);
  297. $sheet->setCellValue('C' . $this->filaProjectLot, $bitacora['idProcurementLot']);
  298. $sheet->SetCellValue('D' . $this->filaProjectLot, $bitacora['taxExclusiveAmount']);
  299. $sheet->SetCellValue('F' . $this->filaProjectLot, $bitacora['countrySubentity']);
  300. $sheet->SetCellValue('I' . $this->filaProjectLot, $bitacora['itemClassification_attr']);
  301. $this->filaProjectLot++;
  302. }
  303. return $spreadsheet;
  304. }
  305. private function datosCompletosMediosPublicacion($spreadsheet, $datos)
  306. {
  307. $spreadsheet->setActiveSheetIndex(2);
  308. $spreadsheet->getActiveSheet()->setTitle("Medios de publicación");
  309. if ($datos['num_rows'] > 0) {
  310. $contador = 0;
  311. $aux = 2;
  312. foreach ($datos['datos'] as $datos) {
  313. guardar_log("Excel", "Escribir datos medio publicacion--" . $contador);
  314. $contador++;
  315. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  316. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['noticeTypeCode']);
  317. $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['publicationMediaName']);
  318. $aux++;
  319. }
  320. }
  321. return $spreadsheet;
  322. }
  323. private function datosMedioPublicacion($spreadsheet, $datos)
  324. {
  325. $spreadsheet->setActiveSheetIndex(3);
  326. $spreadsheet->getActiveSheet()->setTitle("Documentos Medios Comm");
  327. if ($datos['num_rows'] > 0) {
  328. $aux = 2;
  329. $contador = 0;
  330. foreach ($datos['datos'] as $row) {
  331. guardar_log("Excel", "Escribir documentios medios comunicacion--" . $contador);
  332. $contador++;
  333. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $row['id_ajena_licitacion']);
  334. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $row['documento']);
  335. $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $row['filename']);
  336. $aux++;
  337. }
  338. }
  339. return $spreadsheet;
  340. }
  341. private function datosCompletosResultadoDelProcedimiento($spreadsheet, $datos)
  342. {
  343. $spreadsheet->setActiveSheetIndex(4);
  344. $spreadsheet->getActiveSheet()->setTitle("Resultado del Procedimiento");
  345. if ($datos['num_rows'] > 0) {
  346. $aux = 2;
  347. $contador = 0;
  348. foreach ($datos['datos'] as $datos) {
  349. guardar_log("Excel", "Escribir tender result--" . $contador);
  350. $contador++;
  351. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  352. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['resultCode']);
  353. $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['description']);
  354. $spreadsheet->getActiveSheet()->SetCellValue('D' . $aux, $datos['awardDate']);
  355. $spreadsheet->getActiveSheet()->SetCellValue('E' . $aux, $datos['receivedTenderQuantity']);
  356. $spreadsheet->getActiveSheet()->SetCellValue('F' . $aux, $datos['lowerTenderAmount']);
  357. $spreadsheet->getActiveSheet()->SetCellValue('G' . $aux, $datos['higherTenderAmount']);
  358. $spreadsheet->getActiveSheet()->SetCellValue('H' . $aux, $datos['startDate']);
  359. $spreadsheet->getActiveSheet()->SetCellValue('I' . $aux, $datos['smeawardedIndicator']);
  360. $spreadsheet->getActiveSheet()->SetCellValue('J' . $aux, $datos['contract_id']);
  361. $spreadsheet->getActiveSheet()->SetCellValue('K' . $aux, $datos['contract_issueDate']);
  362. $spreadsheet->getActiveSheet()->SetCellValue('L' . $aux, $datos['partyIdentification']);
  363. $spreadsheet->getActiveSheet()->SetCellValue('M' . $aux, $datos['partyName']);
  364. $spreadsheet->getActiveSheet()->SetCellValue('N' . $aux, $datos['TaxExclusiveAmount']);
  365. $spreadsheet->getActiveSheet()->SetCellValue('O' . $aux, $datos['PayableAmount']);
  366. $aux++;
  367. }
  368. }
  369. return $spreadsheet;
  370. }
  371. private function datosCompletosTipoProcedimiento($spreadsheet, $datos)
  372. {
  373. $spreadsheet->setActiveSheetIndex(5);
  374. $spreadsheet->getActiveSheet()->setTitle("Tipo Procedimiento");
  375. //$datos = $this->Xlsexport_model->getTenderProcessRelacion();
  376. if ($datos['num_rows'] > 0) {
  377. $aux = 2;
  378. $contador = 0;
  379. foreach ($datos['datos'] as $datos) {
  380. guardar_log("Excel", "Escribir tender process--" . $contador);
  381. $contador++;
  382. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  383. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['procedureCode']);
  384. $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['urgencyCode']);
  385. $spreadsheet->getActiveSheet()->SetCellValue('D' . $aux, $datos['contractingSystemCode']);
  386. $spreadsheet->getActiveSheet()->SetCellValue('E' . $aux, $datos['partPresentationCode']);
  387. $spreadsheet->getActiveSheet()->SetCellValue('F' . $aux, $datos['submissionMethodCode']);
  388. $spreadsheet->getActiveSheet()->SetCellValue('G' . $aux, $datos['maximumLotPresentationQuantity']);
  389. $spreadsheet->getActiveSheet()->SetCellValue('H' . $aux, $datos['maximumTendererAwardedLotsQuantity']);
  390. $spreadsheet->getActiveSheet()->SetCellValue('I' . $aux, $datos['lotsCombinationContractingAuthorityRights']);
  391. $spreadsheet->getActiveSheet()->SetCellValue('J' . $aux, $datos['deadLineEndDate']);
  392. $spreadsheet->getActiveSheet()->SetCellValue('K' . $aux, $datos['deadLineEndTime']);
  393. $spreadsheet->getActiveSheet()->SetCellValue('L' . $aux, $datos['deadLineDescription']);
  394. $spreadsheet->getActiveSheet()->SetCellValue('M' . $aux, $datos['auctionTerms']);
  395. $spreadsheet->getActiveSheet()->SetCellValue('N' . $aux, $datos['documentAvailablePeriod_EndDate']);
  396. $spreadsheet->getActiveSheet()->SetCellValue('O' . $aux, $datos['documentAvailablePeriod_EndTime']);
  397. $aux++;
  398. }
  399. }
  400. return $spreadsheet;
  401. }
  402. private function datosCompletosOfertas($spreadsheet, $datos)
  403. {
  404. $spreadsheet->setActiveSheetIndex(6);
  405. $spreadsheet->getActiveSheet()->setTitle("Ofertas");
  406. if ($datos['num_rows'] > 0) {
  407. $aux = 2;
  408. $contador = 0;
  409. foreach ($datos['datos'] as $datos) {
  410. guardar_log("Excel", "Escribir tender process--" . $contador);
  411. $contador++;
  412. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  413. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['requiredCurriculaIndicator']);
  414. $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['variantConstraintIndicator']);
  415. $spreadsheet->getActiveSheet()->SetCellValue('D' . $aux, $datos['fundingProgramCode']);
  416. $spreadsheet->getActiveSheet()->SetCellValue('E' . $aux, $datos['guaranteeTypeCode']);
  417. $spreadsheet->getActiveSheet()->SetCellValue('F' . $aux, $datos['requiredFinancialGuarantee_Amount']);
  418. $spreadsheet->getActiveSheet()->SetCellValue('G' . $aux, $datos['language']);
  419. $spreadsheet->getActiveSheet()->SetCellValue('H' . $aux, $datos['allowedSubcontractTerms']);
  420. $spreadsheet->getActiveSheet()->SetCellValue('I' . $aux, $datos['description']);
  421. $spreadsheet->getActiveSheet()->SetCellValue('J' . $aux, $datos['personalSituation']);
  422. $spreadsheet->getActiveSheet()->SetCellValue('K' . $aux, $datos['procurementLegislationDocumentReference']);
  423. $aux++;
  424. }
  425. }
  426. return $spreadsheet;
  427. }
  428. private function datosCriterioAdjudicacion($spreadsheet, $datos)
  429. {
  430. $spreadsheet->setActiveSheetIndex(7);
  431. $spreadsheet->getActiveSheet()->setTitle("Criterio Adjudicación");
  432. //$datos = $this->Xlsexport_model->getDatosRelacionadasTablaWithoutLicitacion("maestro_tendering_terms_awarding_terms", "maestro_tendering_terms", "id_ajena_tt");
  433. if ($datos['num_rows'] > 0) {
  434. $aux = 2;
  435. $contador = 0;
  436. foreach ($datos['datos'] as $datos) {
  437. guardar_log("Excel", "Escribir criterio adjucicacion--" . $contador);
  438. $contador++;
  439. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  440. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
  441. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['description']);
  442. $aux++;
  443. }
  444. }
  445. return $spreadsheet;
  446. }
  447. private function datosCriterioEvaluacionFinanciera($spreadsheet, $datos)
  448. {
  449. $spreadsheet->setActiveSheetIndex(8);
  450. $spreadsheet->getActiveSheet()->setTitle("CriteriosEvaluacionFinanciera");
  451. //$datos = $this->Xlsexport_model->getTenderingTermsCriteriosFinanciacion();
  452. if ($datos['num_rows'] > 0) {
  453. $aux = 2;
  454. $contador = 0;
  455. foreach ($datos['datos'] as $datos) {
  456. guardar_log("Excel", "Escribir criterios evaluacion financiera--" . $contador);
  457. $contador++;
  458. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  459. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
  460. $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['description']);
  461. $aux++;
  462. }
  463. }
  464. return $spreadsheet;
  465. }
  466. private function datosCriterioEvaluacionTecnica($spreadsheet, $datos)
  467. {
  468. $spreadsheet->setActiveSheetIndex(9);
  469. $spreadsheet->getActiveSheet()->setTitle("Criterios Evaluación Técnica");
  470. //$datos = $this->Xlsexport_model->getTenderingTermsCriteriosTecnicos();
  471. if ($datos['num_rows'] > 0) {
  472. $aux = 2;
  473. $contador = 0;
  474. foreach ($datos['datos'] as $datos) {
  475. guardar_log("Excel", "Escribir criterio evaluacion tecnica--" . $contador);
  476. $contador++;
  477. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  478. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
  479. $spreadsheet->getActiveSheet()->SetCellValue('C' . $aux, $datos['description']);
  480. $aux++;
  481. }
  482. }
  483. return $spreadsheet;
  484. }
  485. private function datosRequisitosParticipacion($spreadsheet, $datos)
  486. {
  487. $spreadsheet->setActiveSheetIndex(10);
  488. $spreadsheet->getActiveSheet()->setTitle("Requisitos Participación");
  489. //$datos = $this->Xlsexport_model->getTenderingTermsRequisitos();
  490. if ($datos['num_rows'] > 0) {
  491. $aux = 2;
  492. $contador = 0;
  493. foreach ($datos['datos'] as $datos) {
  494. guardar_log("Excel", "Escribir requisitos participacion--" . $contador);
  495. $contador++;
  496. $spreadsheet->getActiveSheet()->SetCellValue('A' . $aux, $datos['id_ajena_licitacion']);
  497. $spreadsheet->getActiveSheet()->SetCellValue('B' . $aux, $datos['evaluationCriteriaTypeCode']);
  498. $aux++;
  499. }
  500. }
  501. return $spreadsheet;
  502. }
  503. private function datosCompletosDocumentosGenerales($spreadsheet, $datosLicitacion)
  504. {
  505. $spreadsheet->setActiveSheetIndex(11);
  506. $spreadsheet->getActiveSheet()->setTitle("Documentos Generales");
  507. $contador = 0;
  508. foreach ($datosLicitacion['datos'] as $doc) {
  509. guardar_log("Excel", "Escribir documentos generales--" . $contador);
  510. $contador++;
  511. $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoGeneral, $doc['id_ajena_licitacion']);
  512. $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoGeneral, $doc['attachment']);
  513. $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoGeneral, $doc['fileName']);
  514. $spreadsheet->getActiveSheet()->SetCellValue('D' . $this->filaDocumentoGeneral, $doc['idDoc']);
  515. $this->filaDocumentoGeneral++;
  516. }
  517. return $spreadsheet;
  518. }
  519. private function datosCompletosDocumentosAdicionales($spreadsheet, $datosLicitacion)
  520. {
  521. $spreadsheet->setActiveSheetIndex(12);
  522. $spreadsheet->getActiveSheet()->setTitle("Documentos Adicionales");
  523. $contador = 0;
  524. foreach ($datosLicitacion['datos'] as $doc) {
  525. guardar_log("Excel", "Escribir documentos adicionales--" . $contador);
  526. $contador++;
  527. $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoAdd, $doc['id_ajena_licitacion']);
  528. $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoAdd, $doc['attachment']);
  529. $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoAdd, $doc['idDoc']);
  530. $spreadsheet->getActiveSheet()->SetCellValue('D' . $this->filaDocumentoAdd, $doc['documentHash']);
  531. $this->filaDocumentoAdd++;
  532. }
  533. return $spreadsheet;
  534. }
  535. private function datosCompletosDocumentosTecnicos($spreadsheet, $datosLicitacion)
  536. {
  537. $spreadsheet->setActiveSheetIndex(13);
  538. $spreadsheet->getActiveSheet()->setTitle("Documentos Técnicos");
  539. $contador = 0;
  540. foreach ($datosLicitacion['datos'] as $doc) {
  541. guardar_log("Excel", "Escribir documentos tecnicos--" . $contador);
  542. $contador++;
  543. $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoTech, $doc['id_ajena_licitacion']);
  544. $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoTech, $doc['attachment']);
  545. $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoTech, $doc['idDoc']);
  546. $spreadsheet->getActiveSheet()->SetCellValue('D' . $this->filaDocumentoTech, $doc['documentHash']);
  547. $this->filaDocumentoTech++;
  548. }
  549. return $spreadsheet;
  550. }
  551. private function datosCompletosDocumentosLegales($spreadsheet, $datosLicitacion)
  552. {
  553. $spreadsheet->setActiveSheetIndex(14);
  554. $spreadsheet->getActiveSheet()->setTitle("Documentos Legales");
  555. $contador = 0;
  556. foreach ($datosLicitacion['datos'] as $doc) {
  557. guardar_log("Excel", "Escribir documentos legales--" . $contador);
  558. $contador++;
  559. $spreadsheet->getActiveSheet()->SetCellValue('A' . $this->filaDocumentoLegal, $doc['id_ajena_licitacion']);
  560. $spreadsheet->getActiveSheet()->SetCellValue('B' . $this->filaDocumentoLegal, $doc['attachment']);
  561. $spreadsheet->getActiveSheet()->SetCellValue('C' . $this->filaDocumentoLegal, $doc['idDoc']);
  562. $spreadsheet->getActiveSheet()->SetCellValue('D' . $this->filaDocumentoLegal, $doc['documentHash']);
  563. $this->filaDocumentoLegal++;
  564. }
  565. return $spreadsheet;
  566. }
  567. private function cabecerasOpenPlacspFirstSheet($spreadsheet)
  568. {
  569. $spreadsheet->setActiveSheetIndex(0);
  570. $spreadsheet->getActiveSheet()->SetCellValue('A1', "Identificador");
  571. $spreadsheet->getActiveSheet()->SetCellValue('B1', "Link licitación");
  572. $spreadsheet->getActiveSheet()->SetCellValue('C1', "Fecha actualización");
  573. $spreadsheet->getActiveSheet()->SetCellValue('D1', "Vigente/Anulada/Archivada");
  574. $spreadsheet->getActiveSheet()->SetCellValue('E1', "Primera publicación");
  575. $spreadsheet->getActiveSheet()->SetCellValue('F1', "Estado");
  576. $spreadsheet->getActiveSheet()->SetCellValue('G1', "Número de expediente");
  577. $spreadsheet->getActiveSheet()->SetCellValue('H1', "Objeto del Contrato");
  578. $spreadsheet->getActiveSheet()->SetCellValue('I1', "Valor estimado del contrato");
  579. $spreadsheet->getActiveSheet()->SetCellValue('J1', "Presupuesto base sin impuestos");
  580. $spreadsheet->getActiveSheet()->SetCellValue('K1', "CPV");
  581. $spreadsheet->getActiveSheet()->SetCellValue('L1', "Tipo de contrato");
  582. $spreadsheet->getActiveSheet()->SetCellValue('M1', "Lugar de ejecución");
  583. $spreadsheet->getActiveSheet()->SetCellValue('N1', "Órgano de Contratación");
  584. $spreadsheet->getActiveSheet()->SetCellValue('O1', "ID OC en PLACSP");
  585. $spreadsheet->getActiveSheet()->SetCellValue('P1', "NIF OC");
  586. $spreadsheet->getActiveSheet()->SetCellValue('Q1', "DIR3");
  587. $spreadsheet->getActiveSheet()->SetCellValue('R1', "Enlace al Perfil de Contratante del OC");
  588. $spreadsheet->getActiveSheet()->SetCellValue('S1', "Tipo de Administración");
  589. $spreadsheet->getActiveSheet()->SetCellValue('T1', "Código Postal");
  590. $spreadsheet->getActiveSheet()->SetCellValue('U1', "Tipo de procedimiento");
  591. $spreadsheet->getActiveSheet()->SetCellValue('V1', "Sistema de contratación");
  592. $spreadsheet->getActiveSheet()->SetCellValue('W1', "Tramitación");
  593. $spreadsheet->getActiveSheet()->SetCellValue('X1', "Forma de presentación de la oferta");
  594. $spreadsheet->getActiveSheet()->SetCellValue('Y1', "Directiva de aplicación");
  595. $spreadsheet->getActiveSheet()->SetCellValue('Z1', "Subcontratación permitida");
  596. $spreadsheet->getActiveSheet()->SetCellValue('AA1', "Duración Contrato");
  597. $spreadsheet->getActiveSheet()->SetCellValue('AB1', "Tipo de duración");
  598. $spreadsheet->getActiveSheet()->SetCellValue('AC1', "Inicio contrato");
  599. $spreadsheet->getActiveSheet()->SetCellValue('AD1', "Fin contrato");
  600. $spreadsheet->getActiveSheet()->SetCellValue('AE1', "Extension Contrato");
  601. $spreadsheet->getActiveSheet()->SetCellValue('AF1', "URL Organo Contratación");
  602. $spreadsheet->getActiveSheet()->SetCellValue('AG1', "Ciudad Organo Contratación");
  603. $spreadsheet->getActiveSheet()->SetCellValue('AH1', "Dirección Organo Contratación");
  604. $spreadsheet->getActiveSheet()->SetCellValue('AI1', "Nombre Contacto Organo Contratación");
  605. $spreadsheet->getActiveSheet()->SetCellValue('AJ1', "Email contacto Organo Contratación");
  606. return $spreadsheet;
  607. }
  608. //Cabeceras
  609. private function cabecerasOpenPlacspDocumentos($spreadsheet, $hojaActiva)
  610. {
  611. $spreadsheet->setActiveSheetIndex($hojaActiva);
  612. $spreadsheet->getActiveSheet()->SetCellValue('A1', "Identificador");
  613. $spreadsheet->getActiveSheet()->SetCellValue('B1', "Link Documento");
  614. $spreadsheet->getActiveSheet()->SetCellValue('C1', "Nombre Documento");
  615. $spreadsheet->getActiveSheet()->SetCellValue('D1', "Hash Documento");
  616. return $spreadsheet;
  617. }
  618. private function cabecerasOpenPlacsBitacora($spreadsheet, $hojaActiva)
  619. {
  620. $spreadsheet->setActiveSheetIndex($hojaActiva);
  621. $spreadsheet->getActiveSheet()->SetCellValue('A1', "Identificador");
  622. $spreadsheet->getActiveSheet()->SetCellValue('B1', "Objeto del lote");
  623. $spreadsheet->getActiveSheet()->SetCellValue('C1', "Número de lote");
  624. $spreadsheet->getActiveSheet()->SetCellValue('D1', "Importe sin Impuestos");
  625. $spreadsheet->getActiveSheet()->SetCellValue('E1', "Importe con Impuestos");
  626. $spreadsheet->getActiveSheet()->SetCellValue('F1', "Lugar de ejecución del lote");
  627. return $spreadsheet;
  628. }
  629. private function cabeceraMediosComunicacion($spreadsheet)
  630. {
  631. $spreadsheet->setActiveSheetIndex(2);
  632. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  633. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo de anuncio');
  634. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Medio de publicación');
  635. return $spreadsheet;
  636. }
  637. private function cabeceraMediosComunicacionDocumentos($spreadsheet)
  638. {
  639. $spreadsheet->setActiveSheetIndex(3);
  640. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  641. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Documento');
  642. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Nombre Documento');
  643. return $spreadsheet;
  644. }
  645. private function cabeceraTenderResult($spreadsheet)
  646. {
  647. $spreadsheet->setActiveSheetIndex(4);
  648. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  649. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo de resultado');
  650. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Motivación adjudicación');
  651. $spreadsheet->getActiveSheet()->SetCellValue('D1', 'Fecha del acuerdo');
  652. $spreadsheet->getActiveSheet()->SetCellValue('E1', 'Número de licitadores participadores');
  653. $spreadsheet->getActiveSheet()->SetCellValue('F1', 'Importe Oferta mas baja');
  654. $spreadsheet->getActiveSheet()->SetCellValue('G1', 'Importe Oferta mas alta');
  655. $spreadsheet->getActiveSheet()->SetCellValue('H1', 'Fecha de entrada en vigor');
  656. $spreadsheet->getActiveSheet()->SetCellValue('I1', 'Identifica si es una PYME');
  657. $spreadsheet->getActiveSheet()->SetCellValue('J1', 'Identificador del contrato');
  658. $spreadsheet->getActiveSheet()->SetCellValue('K1', 'Fecha de formalización');
  659. $spreadsheet->getActiveSheet()->SetCellValue('L1', 'Adjudicatario CIF');
  660. $spreadsheet->getActiveSheet()->SetCellValue('M1', 'Nombre Adjudicatario');
  661. $spreadsheet->getActiveSheet()->SetCellValue('N1', 'Importe de adjudicación sin impuestos');
  662. $spreadsheet->getActiveSheet()->SetCellValue('O1', 'Importe de adjudicación con impuestos');
  663. return $spreadsheet;
  664. }
  665. private function cabeceraTipoProcedimiento($spreadsheet)
  666. {
  667. $spreadsheet->setActiveSheetIndex(5);
  668. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  669. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo de Procedimiento');
  670. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Tipo de Tramitación');
  671. $spreadsheet->getActiveSheet()->SetCellValue('D1', 'Sistema de Contratación');
  672. $spreadsheet->getActiveSheet()->SetCellValue('E1', 'Número de lotes a los que se debe ofertar');
  673. $spreadsheet->getActiveSheet()->SetCellValue('F1', 'Presentación de la oferta');
  674. $spreadsheet->getActiveSheet()->SetCellValue('G1', 'Número de lotes a los que se puede ofertar');
  675. $spreadsheet->getActiveSheet()->SetCellValue('H1', 'Número máximo de lotes que se puede adjudicar un licitador');
  676. $spreadsheet->getActiveSheet()->SetCellValue('I1', 'El poder adjudicador se reserva el derecho de adjudicar contratos que combinen lotes');
  677. $spreadsheet->getActiveSheet()->SetCellValue('J1', 'Fecha limite para la presentación de ofertas');
  678. $spreadsheet->getActiveSheet()->SetCellValue('K1', 'Tiempo limite para la presentación de ofertas');
  679. $spreadsheet->getActiveSheet()->SetCellValue('L1', 'Texto descriptivo de fecha limite de presentación de ofertas');
  680. $spreadsheet->getActiveSheet()->SetCellValue('M1', 'Usa subasta electronica');
  681. $spreadsheet->getActiveSheet()->SetCellValue('N1', 'Fecha límite para obtener los pliegos');
  682. $spreadsheet->getActiveSheet()->SetCellValue('O1', 'Hora límite para obtener los pliegos');
  683. return $spreadsheet;
  684. }
  685. private function cabeceraTenderingTerms($spreadsheet)
  686. {
  687. $spreadsheet->setActiveSheetIndex(6);
  688. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  689. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Se requiere la presentación de Curriculum Vitae de las personas que realizarán el proyecto');
  690. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Indica que se pueden ofertar variantes');
  691. $spreadsheet->getActiveSheet()->SetCellValue('D1', 'Código descriptivo del tipo de programas que financian este contrato');
  692. $spreadsheet->getActiveSheet()->SetCellValue('E1', 'Tipo de garantia');
  693. $spreadsheet->getActiveSheet()->SetCellValue('F1', 'Porcentaje de la garantíaa');
  694. $spreadsheet->getActiveSheet()->SetCellValue('G1', 'Idioma');
  695. $spreadsheet->getActiveSheet()->SetCellValue('H1', 'Porcentaje de subcontratación máximo especificado para este contrato.');
  696. $spreadsheet->getActiveSheet()->SetCellValue('I1', 'Descripción del objeto de la subcontratación');
  697. $spreadsheet->getActiveSheet()->SetCellValue('J1', 'Descripción textual de los requisitos específicos del operador económico para poder participar en la licitación');
  698. $spreadsheet->getActiveSheet()->SetCellValue('K1', 'Contrato sujeto a regulación armonizadaF');
  699. return $spreadsheet;
  700. }
  701. private function cabeceraCriterioADjudicacion($spreadsheet)
  702. {
  703. $spreadsheet->setActiveSheetIndex(7);
  704. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  705. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo criterio de adjudicación');
  706. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Descripción textual del criterio de adjudicación');
  707. return $spreadsheet;
  708. }
  709. private function cabeceraCriteriosFinancieros($spreadsheet)
  710. {
  711. $spreadsheet->setActiveSheetIndex(8);
  712. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  713. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo criterio de evaluación financiera');
  714. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Descripción textual del criterio de evaluación financiera');
  715. return $spreadsheet;
  716. }
  717. private function cabeceraCriteriosTecnicos($spreadsheet)
  718. {
  719. $spreadsheet->setActiveSheetIndex(9);
  720. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  721. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo criterio de evaluación técnica');
  722. $spreadsheet->getActiveSheet()->SetCellValue('C1', 'Descripción textual del criterio de evaluación técnica');
  723. return $spreadsheet;
  724. }
  725. private function cabeceraRequisitosParticipacion($spreadsheet)
  726. {
  727. $spreadsheet->setActiveSheetIndex(10);
  728. $spreadsheet->getActiveSheet()->SetCellValue('A1', 'Identificador');
  729. $spreadsheet->getActiveSheet()->SetCellValue('B1', 'Tipo Requisitos Participacion');
  730. return $spreadsheet;
  731. }
  732. }
  733. /* End of file ExportXls.php */
  734. /* Location: ./application/controllers/ExportXls.php */