123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?php
- namespace pdf\controllers;
- use app\models\OficialiaPartesManifiestoDocumento;
- use pdf\web\Controller;
- use v1\models\FondoLegislativo;
- use v1\models\OficialiaPartesDocumento;
- use v1\models\OficialiaPartesDocumentoResponsable;
- use v1\models\OficialiaPartesManifiesto;
- use v1\models\RequisicionResponsable;
- use v1\models\Solicitud;
- use v1\models\Usuario;
- class IncompetenciaSujetoController extends Controller {
- public function actionIndex() {
- $idSolicitud = trim($this->req->get('solicitud', ''));
- $solicitud = null;
- if ($idSolicitud === '') {
- throw new \yii\web\NotFoundHttpException("No se encontró la solicitud");
- }
- $solicitud = Solicitud::find()
- ->andWhere(['id' => $idSolicitud])
- ->andWhere(['eliminado' => null])
- ->one();
- if ($solicitud === null) {
- throw new \yii\web\NotFoundHttpException("No se encontró la solicitud");
- }
- $request = \Yii::$app->request;
- $configuracion = [
- 'mode' => 'utf-8',
- 'format' => 'letter',
- 'margin_top' => '50',
- ];
- $view = new \yii\web\View();
- $htmlPDF = $view->render("@app/modules/pdf/views/incompetencia-sujeto/oficio", [
- "solicitud" => $solicitud,
- "recursoRevision" => [],
- ]);
- if ($request->get('header'))
- $header = $view->render("@app/modules/pdf/views/header/oficio-landing", [
- "titulo" => "ACUSE DE SOLICITUD DE INFORMACIÓN PÚBLICA",
- ]);
- else
- $header = $view->render("@app/modules/pdf/views/header/oficio", [
- "titulo" => "ACUSE DE SOLICITUD DE INFORMACIÓN PÚBLICA",
- ]);
- $pdf = self::crearPDF(
- 'AS-ISTAIAS-03',
- $htmlPDF,
- $configuracion,
- false,
- $header,
- '',
- ''
- );
- }
- public function actionFormato() {
- //$request = \Yii::$app->request;
- $configuracion = [
- 'mode' => 'utf-8',
- 'format' => 'letter',
- 'margin_top' => '36',
- ];
- $view = new \yii\web\View();
- $htmlPDF = $view->render("@app/modules/pdf/views/requerimiento-aclaracion/formato", [
- "recursoRevision" => [],
- ]);
- $header = $view->render("@app/modules/pdf/views/header/formato", [
- "titulo" => "ACUSE DE SOLICITUD DE INFORMACIÓN PÚBLICA",
- ]);
- $pdf = self::crearPDF(
- 'RA-ISTAIAS-02',
- $htmlPDF,
- $configuracion,
- false,
- $header,
- '',
- ''
- );
- }
- public function actionOficio() {
- $request = \Yii::$app->request;
- $configuracion = [
- 'mode' => 'utf-8',
- 'format' => 'letter',
- 'margin_top' => '50',
- ];
- $view = new \yii\web\View();
- $htmlPDF = $view->render("@app/modules/pdf/views/requerimiento-aclaracion/oficio", [
- "recursoRevision" => [],
- ]);
- if ($request->get('header'))
- $header = $view->render("@app/modules/pdf/views/header/oficio-landing", [
- "titulo" => "ACUSE DE SOLICITUD DE INFORMACIÓN PÚBLICA",
- ]);
- else
- $header = $view->render("@app/modules/pdf/views/header/oficio", [
- "titulo" => "ACUSE DE SOLICITUD DE INFORMACIÓN PÚBLICA",
- ]);
- $pdf = self::crearPDF(
- 'AS-ISTAIAS-03',
- $htmlPDF,
- $configuracion,
- false,
- $header,
- '',
- ''
- );
- }
- }
|