Commit 3b8c4173 authored by Jefferson Vinueza's avatar Jefferson Vinueza

Grid

parent 7f5e6760
......@@ -72,7 +72,7 @@ class Mzgtbancoautores extends BaseMzgtbancoautores
);
return CHtml::listData($this->findAll($criteria),'PK_MZGTBANCOAUTORES','MZGTBANCOAUTORES_APELLIDO_PATERNO');
}
Z
/**
* @param int $PK_MZGTPUBLICACIONES
* @return array for listbuilder (PK_MZGTBANCOAUTORES => name)
......
......@@ -11481,3 +11481,102 @@ Stack trace:
REQUEST_URI=/sirep/images/banner.jpg
HTTP_REFERER=http://localhost/sirep/mzgtlibros/create.html
---
2019/04/15 21:51:04 [error] [exception.CException] CException: Mzgtbancoautores y sus behaviors no tienen un método o closure llamado "findBancoAutoresPorLibro". in C:\xampp\htdocs\sirep\yii\framework\base\CComponent.php:266
Stack trace:
#0 C:\xampp\htdocs\sirep\yii\framework\db\ar\CActiveRecord.php(229): CComponent->__call('findBancoAutore...', Array)
#1 C:\xampp\htdocs\sirep\protected\views\mzgtlibros\_form.php(195): CActiveRecord->__call('findBancoAutore...', Array)
#2 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(126): require('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\xampp\\htdocs...', Array, true)
#4 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(872): CBaseController->renderFile('C:\\xampp\\htdocs...', Array, true)
#5 C:\xampp\htdocs\sirep\protected\views\mzgtlibros\create.php(20): CController->renderPartial('_form', Array)
#6 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(126): require('C:\\xampp\\htdocs...')
#7 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\xampp\\htdocs...', Array, true)
#8 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(872): CBaseController->renderFile('C:\\xampp\\htdocs...', Array, true)
#9 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(785): CController->renderPartial('create', Array, true)
#10 C:\xampp\htdocs\sirep\protected\controllers\MzgtlibrosController.php(30): CController->render('create', Array)
#11 C:\xampp\htdocs\sirep\yii\framework\web\actions\CInlineAction.php(49): MzgtlibrosController->actionCreate()
#12 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#13 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(286): CController->runAction(Object(CInlineAction))
#14 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#15 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(282): CController->run('create')
#16 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('mzgtlibros/crea...')
#17 C:\xampp\htdocs\sirep\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#18 C:\xampp\htdocs\sirep\index.php(15): CApplication->run()
#19 {main}
REQUEST_URI=/sirep/mzgtlibros/create.html
HTTP_REFERER=http://localhost/sirep/mzgtpublicaciones/create.html
---
2019/04/15 21:51:05 [error] [exception.CHttpException.404] CHttpException: No es posible resolver la solicitud "images/banner.jpg" in C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php:286
Stack trace:
#0 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('images/banner.j...')
#1 C:\xampp\htdocs\sirep\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#2 C:\xampp\htdocs\sirep\index.php(15): CApplication->run()
#3 {main}
REQUEST_URI=/sirep/images/banner.jpg
HTTP_REFERER=http://localhost/sirep/mzgtlibros/create.html
---
2019/04/15 22:07:11 [error] [system.db.CDbCommand] CDbCommand::fetchAll() falló: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mzgtautores.PK_MZGTLIBROS' in 'where clause'. La sentencia SQL ejecutada fue: SELECT t.PK_MZGTBANCOAUTORES, CONCAT(MZGTBANCOAUTORES_APELLIDO_PATERNO,' ',MZGTBANCOAUTORES_APELLIDO_MATERNO,' ',MZGTBANCOAUTORES_PRIMER_NOMBRE,' ',MZGTBANCOAUTORES_SEGUNDO_NOMBRE) as MZGTBANCOAUTORES_APELLIDO_PATERNO FROM `mzgtbancoautores` `t` JOIN mzgtautores ON mzgtautores.PK_MZGTBANCOAUTORES = t.PK_MZGTBANCOAUTORES WHERE mzgtautores.PK_MZGTLIBROS=0 ORDER BY MZGTBANCOAUTORES_APELLIDO_PATERNO.
2019/04/15 22:07:11 [error] [exception.CDbException] CDbException: CDbCommand falló al ejecutar la sentencia SQL: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mzgtautores.PK_MZGTLIBROS' in 'where clause' in C:\xampp\htdocs\sirep\yii\framework\db\CDbCommand.php:543
Stack trace:
#0 C:\xampp\htdocs\sirep\yii\framework\db\CDbCommand.php(396): CDbCommand->queryInternal('fetchAll', Array, Array)
#1 C:\xampp\htdocs\sirep\yii\framework\db\ar\CActiveRecord.php(1359): CDbCommand->queryAll()
#2 C:\xampp\htdocs\sirep\yii\framework\db\ar\CActiveRecord.php(1478): CActiveRecord->query(Object(CDbCriteria), true)
#3 C:\xampp\htdocs\sirep\protected\models\Mzgtbancoautores.php(83): CActiveRecord->findAll(Array)
#4 C:\xampp\htdocs\sirep\protected\views\mzgtlibros\_form.php(195): Mzgtbancoautores->findBancoAutoresPorLibro(0)
#5 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(126): require('C:\\xampp\\htdocs...')
#6 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\xampp\\htdocs...', Array, true)
#7 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(872): CBaseController->renderFile('C:\\xampp\\htdocs...', Array, true)
#8 C:\xampp\htdocs\sirep\protected\views\mzgtlibros\create.php(20): CController->renderPartial('_form', Array)
#9 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(126): require('C:\\xampp\\htdocs...')
#10 C:\xampp\htdocs\sirep\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\xampp\\htdocs...', Array, true)
#11 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(872): CBaseController->renderFile('C:\\xampp\\htdocs...', Array, true)
#12 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(785): CController->renderPartial('create', Array, true)
#13 C:\xampp\htdocs\sirep\protected\controllers\MzgtlibrosController.php(30): CController->render('create', Array)
#14 C:\xampp\htdocs\sirep\yii\framework\web\actions\CInlineAction.php(49): MzgtlibrosController->actionCreate()
#15 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#16 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(286): CController->runAction(Object(CInlineAction))
#17 C:\xampp\htdocs\sirep\yii\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(282): CController->run('create')
#19 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('mzgtlibros/crea...')
#20 C:\xampp\htdocs\sirep\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#21 C:\xampp\htdocs\sirep\index.php(15): CApplication->run()
#22 {main}
REQUEST_URI=/sirep/mzgtlibros/create.html
HTTP_REFERER=http://localhost/sirep/mzgtpublicaciones/create.html
---
2019/04/15 22:07:12 [error] [exception.CHttpException.404] CHttpException: No es posible resolver la solicitud "images/banner.jpg" in C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php:286
Stack trace:
#0 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('images/banner.j...')
#1 C:\xampp\htdocs\sirep\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#2 C:\xampp\htdocs\sirep\index.php(15): CApplication->run()
#3 {main}
REQUEST_URI=/sirep/images/banner.jpg
HTTP_REFERER=http://localhost/sirep/mzgtlibros/create.html
---
2019/04/15 22:10:26 [error] [exception.CHttpException.404] CHttpException: No es posible resolver la solicitud "images/banner.jpg" in C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php:286
Stack trace:
#0 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('images/banner.j...')
#1 C:\xampp\htdocs\sirep\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#2 C:\xampp\htdocs\sirep\index.php(15): CApplication->run()
#3 {main}
REQUEST_URI=/sirep/images/banner.jpg
HTTP_REFERER=http://localhost/sirep/mzgtlibros/create.html
---
2019/04/15 22:10:57 [error] [exception.CHttpException.404] CHttpException: No es posible resolver la solicitud "images/banner.jpg" in C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php:286
Stack trace:
#0 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('images/banner.j...')
#1 C:\xampp\htdocs\sirep\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#2 C:\xampp\htdocs\sirep\index.php(15): CApplication->run()
#3 {main}
REQUEST_URI=/sirep/images/banner.jpg
HTTP_REFERER=http://localhost/sirep/mzgtlibros/create.html
---
2019/04/15 22:11:07 [error] [exception.CHttpException.404] CHttpException: No es posible resolver la solicitud "images/banner.jpg" in C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php:286
Stack trace:
#0 C:\xampp\htdocs\sirep\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('images/banner.j...')
#1 C:\xampp\htdocs\sirep\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#2 C:\xampp\htdocs\sirep\index.php(15): CApplication->run()
#3 {main}
REQUEST_URI=/sirep/images/banner.jpg
HTTP_REFERER=http://localhost/sirep/mzgtlibros/create.html
---
......@@ -184,18 +184,18 @@
<h4 style="color: #C00; font-weight: bold; ">Seleccione en orden de autoría</h4>
<!-- Aquí va el grid de autores -->
<?php if (isset($model->PK_MZGTLIBROS))
$libro = $model->PK_MZGTLIBROS;
<?php if (isset($model->PK_MZGTPUBLICACIONES))
$publicacion = $model->PK_MZGTPUBLICACIONES;
else
$libro = 0;
$publicacion = 0;
$this->widget('ext.widgets.multiselects.XMultiSelects',array(
'leftTitle'=>'Actualmente en el libro',
'leftName'=>'Mzgtlibros[mzgtbancoautores][]',
'leftList'=> Mzgtbancoautores::model()->findBancoAutoresPorLibro($libro),
'leftTitle'=>'Actualmente en la publicación',
'leftName'=>'Mzgtpublicaciones[mzgtbancoautores][]',
'leftList'=> Mzgtbancoautores::model()->findBancoAutoresPorPublicacion($publicacion),
'rightTitle'=>'Banco de autores',
'rightName'=>'Mzgtbancoautores[mzgtlibros][]',
'rightList'=>Mzgtbancoautores::model()->findBancoAutoresPorNoLibros($libro),
'rightName'=>'Mzgtbancoautores[mzgtpublicaciones][]',
'rightList'=>Mzgtbancoautores::model()->findBancoAutoresPorNoPublicacion($publicacion),
'size'=>20,
'width'=>'300px',
));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment