Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sirep
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julio Fabricio Jaramillo
sirep
Commits
0e91286e
Commit
0e91286e
authored
May 15, 2019
by
nicoss96
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cambios
parent
72503e0b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
72 additions
and
156 deletions
+72
-156
Mzgtbancoautores.php
protected/models/Mzgtbancoautores.php
+3
-3
Mzgttiposautores.php
protected/models/Mzgttiposautores.php
+0
-32
BaseMzgtbancoautores.php
protected/models/_base/BaseMzgtbancoautores.php
+2
-2
baseMzgttiposautores.php
protected/models/_base/baseMzgttiposautores.php
+0
-106
application.log
protected/runtime/application.log
+63
-0
_form.php
protected/views/mzgtbancoautores/_form.php
+1
-9
view.php
protected/views/mzgtbancoautores/view.php
+1
-1
_form.php
protected/views/mzgttipospublicaciones/_form.php
+1
-2
main.php
themes/classic/views/layouts/main.php
+1
-1
No files found.
protected/models/Mzgtbancoautores.php
View file @
0e91286e
...
...
@@ -28,9 +28,9 @@ class Mzgtbancoautores extends BaseMzgtbancoautores
return
array
(
array
(
'MZGTBANCOAUTORES_TRATO'
,
'length'
,
'max'
=>
100
),
array
(
'FK1_MZGTBANCOAUTORES_INV_MZGTINSTITUCIONES_PK'
,
'numerical'
,
'integerOnly'
=>
true
),
array
(
'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'
,
'numerical'
,
'integerOnly'
=>
true
),
array
(
'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'
,
'numerical'
,
'integerOnly'
=>
null
),
array
(
'MZGTBANCOAUTORES_APELLIDO_PATERNO, MZGTBANCOAUTORES_APELLIDO_MATERNO, MZGTBANCOAUTORES_PRIMER_NOMBRE, MZGTBANCOAUTORES_SEGUNDO_NOMBRE, MZGTBANCOAUTORES_CEDULA, MZGTBANCOAUTORES_PAIS, MZGTBANCOAUTORES_CODIGO'
,
'length'
,
'max'
=>
255
),
array
(
'FK1_MZGTBANCOAUTORES_INV_MZGTINSTITUCIONES_PK,
FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK,
MZGTBANCOAUTORES_TRATO, MZGTBANCOAUTORES_APELLIDO_PATERNO, MZGTBANCOAUTORES_PRIMER_NOMBRE, MZGTBANCOAUTORES_TIPODOCUMENTO, MZGTBANCOAUTORES_CEDULA'
,
'required'
),
array
(
'FK1_MZGTBANCOAUTORES_INV_MZGTINSTITUCIONES_PK, MZGTBANCOAUTORES_TRATO, MZGTBANCOAUTORES_APELLIDO_PATERNO, MZGTBANCOAUTORES_PRIMER_NOMBRE, MZGTBANCOAUTORES_TIPODOCUMENTO, MZGTBANCOAUTORES_CEDULA'
,
'required'
),
array
(
'MZGTBANCOAUTORES_TRATO, MZGTBANCOAUTORES_APELLIDO_MATERNO, MZGTBANCOAUTORES_SEGUNDO_NOMBRE, MZGTBANCOAUTORES_CEDULA, MZGTBANCOAUTORES_PAIS, MZGTBANCOAUTORES_CODIGO'
,
'default'
,
'setOnEmpty'
=>
true
,
'value'
=>
null
),
array
(
'PK_MZGTBANCOAUTORES, MZGTBANCOAUTORES_TRATO, MZGTBANCOAUTORES_APELLIDO_PATERNO, MZGTBANCOAUTORES_APELLIDO_MATERNO, MZGTBANCOAUTORES_PRIMER_NOMBRE, MZGTBANCOAUTORES_SEGUNDO_NOMBRE, MZGTBANCOAUTORES_CEDULA, MZGTBANCOAUTORES_PAIS, MZGTBANCOAUTORES_CODIGO'
,
'safe'
,
'on'
=>
'search'
),
);
...
...
@@ -50,7 +50,7 @@ class Mzgtbancoautores extends BaseMzgtbancoautores
'MZGTBANCOAUTORES_PAIS'
=>
Yii
::
t
(
'app'
,
'País'
),
'MZGTBANCOAUTORES_CODIGO'
=>
Yii
::
t
(
'app'
,
'Código'
),
'MZGTBANCOAUTORES_DEPARTAMENTO_CENTRO'
=>
Yii
::
t
(
'app'
,
'Departamento/Centro'
),
'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'
=>
Yii
::
t
(
'app'
,
'Tipo de autor'
),
);
}
...
...
protected/models/Mzgttiposautores.php
deleted
100644 → 0
View file @
72503e0b
<?php
Yii
::
import
(
'application.models._base.BaseMzgttiposautores'
);
class
Mzgttiposautores
extends
BaseMzgttiposautores
{
public
static
function
model
(
$className
=
__CLASS__
)
{
return
parent
::
model
(
$className
);
}
public
static
function
label
(
$n
=
1
)
{
return
Yii
::
t
(
'app'
,
'Tipo de autor|Tipos de autores'
,
$n
);
}
public
function
rules
()
{
return
array
(
array
(
'PK_MZGTTIPOSAUTORES'
,
'required'
),
array
(
'PK_MZGTTIPOSAUTORES'
,
'numerical'
,
'integerOnly'
=>
true
),
array
(
'MZGTTIPOSAUTORES_DESc'
,
'length'
,
'max'
=>
100
),
array
(
'PK_MZGTTIPOSAUTORES, MZGTTIPOSAUTORES_DESc'
,
'safe'
,
'on'
=>
'search'
),
);
}
public
function
attributeLabels
()
{
return
array
(
'PK_MZGTTIPOSAUTORES'
=>
Yii
::
t
(
'app'
,
'Tipo de autores'
),
'MZGTTIPOSAUTORES_DESc'
=>
Yii
::
t
(
'app'
,
'Descripción'
),
);
}
}
\ No newline at end of file
protected/models/_base/BaseMzgtbancoautores.php
View file @
0e91286e
...
...
@@ -97,7 +97,7 @@ abstract class BaseMzgtbancoautores extends GxActiveRecord
'MZGTBANCOAUTORES_PAIS'
=>
'Mzgtbancoautores Pais'
,
'MZGTBANCOAUTORES_CODIGO'
=>
'Mzgtbancoautores Codigo'
,
'MZGTBANCOAUTORES_DEPARTAMENTO_CENTRO'
=>
'Mzgtbancoautores Departamento Centro'
,
'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'
=>
'Fk1 Mzgtbancoautores Mzgttipoautores Pk'
,
);
}
...
...
@@ -131,7 +131,7 @@ abstract class BaseMzgtbancoautores extends GxActiveRecord
$criteria
->
compare
(
'MZGTBANCOAUTORES_PAIS'
,
$this
->
MZGTBANCOAUTORES_PAIS
,
true
);
$criteria
->
compare
(
'MZGTBANCOAUTORES_CODIGO'
,
$this
->
MZGTBANCOAUTORES_CODIGO
,
true
);
$criteria
->
compare
(
'MZGTBANCOAUTORES_DEPARTAMENTO_CENTRO'
,
$this
->
MZGTBANCOAUTORES_DEPARTAMENTO_CENTRO
,
true
);
$criteria
->
compare
(
'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'
,
$this
->
FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK
);
return
new
CActiveDataProvider
(
$this
,
array
(
'criteria'
=>
$criteria
,
...
...
protected/models/_base/baseMzgttiposautores.php
deleted
100644 → 0
View file @
72503e0b
<?php
/**
* This is the model class for table "mzgttiposautores".
*
* The followings are the available columns in table 'mzgttiposautores':
* @property integer $PK_MZGTTIPOSAUTORES
* @property string $MZGTTIPOSAUTORES_DESc
*
* The followings are the available model relations:
* @property Mzgtbancoautores[] $mzgtbancoautores
*/
abstract
class
BaseMzgttiposlibros
extends
GxActiveRecord
{
public
static
function
model
(
$className
=
__CLASS__
)
{
return
parent
::
model
(
$className
);
}
/**
* @return string the associated database table name
*/
public
function
tableName
()
{
return
'mzgttiposautores'
;
}
public
static
function
label
(
$n
=
1
)
{
return
Yii
::
t
(
'app'
,
'Mzgttiposautores|Mzgttiposautores'
,
$n
);
}
public
static
function
representingColumn
()
{
return
'MZGTTIPOSAUTORES_DESc'
;
}
/**
* @return array validation rules for model attributes.
*/
public
function
rules
()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return
array
(
array
(
'PK_MZGTTIPOSAUTORES'
,
'required'
),
array
(
'PK_MZGTTIPOSAUTORES'
,
'numerical'
,
'integerOnly'
=>
true
),
array
(
'MZGTTIPOSAUTORES_DESc'
,
'length'
,
'max'
=>
100
),
// The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array
(
'PK_MZGTTIPOSAUTORES, MZGTTIPOSAUTORES_DESc'
,
'safe'
,
'on'
=>
'search'
),
);
}
/**
* @return array relational rules.
*/
public
function
relations
()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return
array
(
'mzgtbancoautores'
=>
array
(
self
::
HAS_MANY
,
'Mzgtbancoautores'
,
'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'
),
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public
function
attributeLabels
()
{
return
array
(
'PK_MZGTTIPOSAUTORES'
=>
'Pk Mzgttiposautores'
,
'MZGTTIPOSAUTORES_DESc'
=>
'Mzgttiposautores Desc'
,
);
}
/**
* Retrieves a list of models based on the current search/filter conditions.
*
* Typical usecase:
* - Initialize the model fields with values from filter form.
* - Execute this method to get CActiveDataProvider instance which will filter
* models according to data in model fields.
* - Pass data provider to CGridView, CListView or any similar widget.
*
* @return CActiveDataProvider the data provider that can return the models
* based on the search/filter conditions.
*/
public
function
search
()
{
// @todo Please modify the following code to remove attributes that should not be searched.
$criteria
=
new
CDbCriteria
;
$criteria
->
compare
(
'PK_MZGTTIPOSAUTORES'
,
$this
->
PK_MZGTTIPOSAUTORES
);
$criteria
->
compare
(
'MZGTTIPOSAUTORES_DESc'
,
$this
->
MZGTTIPOSAUTORES_DESc
,
true
);
return
new
CActiveDataProvider
(
$this
,
array
(
'criteria'
=>
$criteria
,
));
}
/**
* Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants!
* @param string $className active record class name.
* @return baseMzgttiposautores the static model class
*/
}
protected/runtime/application.log
View file @
0e91286e
...
...
@@ -17883,3 +17883,66 @@ Stack trace:
REQUEST_URI=/sirep-2/mzgtpublicaciones/create.html
HTTP_REFERER=http://localhost/sirep-2/mzgtlibros/create.html
---
2019/05/15 14:12:38 [error] [exception.CException] CException: La propiedad "Mzgtpublicaciones"."FK8_MZGTPUBLICACIONES_INV_MZGTCAMPDETALLADOCINE_PK" no se encuentra definida. in C:\xampp\htdocs\sirep-2\yii\framework\base\CComponent.php:130
Stack trace:
#0 C:\xampp\htdocs\sirep-2\yii\framework\db\ar\CActiveRecord.php(145): CComponent->__get('FK8_MZGTPUBLICA...')
#1 C:\xampp\htdocs\sirep-2\yii\framework\web\helpers\CHtml.php(2747): CActiveRecord->__get('FK8_MZGTPUBLICA...')
#2 C:\xampp\htdocs\sirep-2\yii\framework\web\helpers\CHtml.php(1994): CHtml::resolveValue(Object(Mzgtpublicaciones), 'FK8_MZGTPUBLICA...')
#3 C:\xampp\htdocs\sirep-2\yii\framework\web\widgets\CActiveForm.php(914): CHtml::activeDropDownList(Object(Mzgtpublicaciones), 'FK8_MZGTPUBLICA...', Array, Array)
#4 C:\xampp\htdocs\sirep-2\protected\views\mzgtpublicaciones\_form.php(41): CActiveForm->dropDownList(Object(Mzgtpublicaciones), 'FK8_MZGTPUBLICA...', Array)
#5 C:\xampp\htdocs\sirep-2\yii\framework\web\CBaseController.php(126): require('C:\\xampp\\htdocs...')
#6 C:\xampp\htdocs\sirep-2\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\xampp\\htdocs...', Array, true)
#7 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(872): CBaseController->renderFile('C:\\xampp\\htdocs...', Array, true)
#8 C:\xampp\htdocs\sirep-2\protected\views\mzgtpublicaciones\create.php(21): CController->renderPartial('_form', Array)
#9 C:\xampp\htdocs\sirep-2\yii\framework\web\CBaseController.php(126): require('C:\\xampp\\htdocs...')
#10 C:\xampp\htdocs\sirep-2\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\xampp\\htdocs...', Array, true)
#11 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(872): CBaseController->renderFile('C:\\xampp\\htdocs...', Array, true)
#12 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(785): CController->renderPartial('create', Array, true)
#13 C:\xampp\htdocs\sirep-2\protected\controllers\MzgtpublicacionesController.php(43): CController->render('create', Array)
#14 C:\xampp\htdocs\sirep-2\yii\framework\web\actions\CInlineAction.php(49): MzgtpublicacionesController->actionCreate()
#15 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#16 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(286): CController->runAction(Object(CInlineAction))
#17 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 C:\xampp\htdocs\sirep-2\yii\framework\web\CWebApplication.php(282): CController->run('create')
#19 C:\xampp\htdocs\sirep-2\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('mzgtpublicacion...')
#20 C:\xampp\htdocs\sirep-2\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#21 C:\xampp\htdocs\sirep-2\index.php(15): CApplication->run()
#22 {main}
REQUEST_URI=/sirep-2/mzgtpublicaciones/create.html
HTTP_REFERER=http://localhost/sirep-2/mzgtpublicaciones/create.html
---
2019/05/15 15:14:39 [error] [exception.ParseError] ParseError: syntax error, unexpected 'safe' (T_STRING), expecting ')' in C:\xampp\htdocs\sirep-2\protected\models\_base\BaseMzgtbancoautores.php:59
Stack trace:
#0 [internal function]: YiiBase::autoload('BaseMzgtbancoau...')
#1 C:\xampp\htdocs\sirep-2\protected\models\Mzgtbancoautores.php(5): spl_autoload_call('BaseMzgtbancoau...')
#2 C:\xampp\htdocs\sirep-2\yii\framework\YiiBase.php(432): include('C:\\xampp\\htdocs...')
#3 [internal function]: YiiBase::autoload('Mzgtbancoautore...')
#4 C:\xampp\htdocs\sirep-2\protected\controllers\MzgtbancoautoresController.php(13): spl_autoload_call('Mzgtbancoautore...')
#5 C:\xampp\htdocs\sirep-2\yii\framework\web\actions\CInlineAction.php(49): MzgtbancoautoresController->actionCreate()
#6 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#7 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(286): CController->runAction(Object(CInlineAction))
#8 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#9 C:\xampp\htdocs\sirep-2\yii\framework\web\CWebApplication.php(282): CController->run('create')
#10 C:\xampp\htdocs\sirep-2\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('mzgtbancoautore...')
#11 C:\xampp\htdocs\sirep-2\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#12 C:\xampp\htdocs\sirep-2\index.php(15): CApplication->run()
#13 {main}
REQUEST_URI=/sirep-2/mzgtbancoautores/create.html
HTTP_REFERER=http://localhost/sirep-2/mzgtbancoautores/create.html
---
2019/05/15 15:45:49 [error] [exception.ParseError] ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in C:\xampp\htdocs\sirep-2\protected\models\Mzgtpublicaciones.php:70
Stack trace:
#0 [internal function]: YiiBase::autoload('Mzgtpublicacion...')
#1 C:\xampp\htdocs\sirep-2\protected\controllers\MzgtpublicacionesController.php(12): spl_autoload_call('Mzgtpublicacion...')
#2 C:\xampp\htdocs\sirep-2\yii\framework\web\actions\CInlineAction.php(49): MzgtpublicacionesController->actionCreate()
#3 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#4 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(286): CController->runAction(Object(CInlineAction))
#5 C:\xampp\htdocs\sirep-2\yii\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#6 C:\xampp\htdocs\sirep-2\yii\framework\web\CWebApplication.php(282): CController->run('create')
#7 C:\xampp\htdocs\sirep-2\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('mzgtpublicacion...')
#8 C:\xampp\htdocs\sirep-2\yii\framework\base\CApplication.php(185): CWebApplication->processRequest()
#9 C:\xampp\htdocs\sirep-2\index.php(15): CApplication->run()
#10 {main}
REQUEST_URI=/sirep-2/mzgtpublicaciones/create.html
HTTP_REFERER=http://localhost/sirep-2/mzgtbancoautores/363.html
---
protected/views/mzgtbancoautores/_form.php
View file @
0e91286e
...
...
@@ -46,10 +46,7 @@
<?php echo
$form->textField
(
$model
, 'MZGTBANCOAUTORES_CEDULA', array('maxlength' => 255)); ?>
<?php echo
$form->error
(
$model
,'MZGTBANCOAUTORES_CEDULA'); ?>
</div><!-- row -->
<div class="
row
">
<?php echo
$form->labelEx
(
$model
,'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'); ?>
</div><!-- row -->
<div class="
row
">
<?php echo
$form->labelEx
(
$model
,'MZGTBANCOAUTORES_TRATO'); ?>
<?php echo
$form->textField
(
$model
, 'MZGTBANCOAUTORES_TRATO', array('maxlength' => 5, 'size'=>5, 'style'=>'text-transform:uppercase;')); ?>
...
...
@@ -143,11 +140,6 @@
<?php
echo
$form
->
error
(
$model
,
'MZGTBANCOAUTORES_DEPARTAMENTO_CENTRO'
);
?>
</div>
<!-- row -->
<label>
<?php
//echo GxHtml::encode($model->getRelationLabel('mzgtpublicaciones')); ?></label>
<?
php
//echo $form->listBox($model, 'mzgtpublicaciones', GxHtml::encodeEx(GxHtml::listDataEx(Mzgtpublicaciones::model()->findAllAttributes(null, true)), false, true)); ?>
<
label
><?
php
//echo GxHtml::encode($model->getRelationLabel('mzgtlibroses')); ?></label>
<?
php
//echo $form->listBox($model, 'mzgtlibroses', GxHtml::encodeEx(GxHtml::listDataEx(Mzgtlibros::model()->findAllAttributes(null, true)), false, true)); ?>
<div
class=
"row"
>
<?php
echo
$form
->
labelEx
(
$model
,
'MZGTBANCOAUTORES_CODIGO'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'MZGTBANCOAUTORES_CODIGO'
,
array
(
'maxlength'
=>
255
));
?>
...
...
protected/views/mzgtbancoautores/view.php
View file @
0e91286e
...
...
@@ -31,7 +31,7 @@ $this->menu=array(
'MZGTBANCOAUTORES_PAIS'
,
'MZGTBANCOAUTORES_CODIGO'
,
'MZGTBANCOAUTORES_DEPARTAMENTO_CENTRO'
,
'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'
,
),
));
?>
...
...
protected/views/mzgttipospublicaciones/_form.php
View file @
0e91286e
...
...
@@ -29,8 +29,7 @@
<?php
echo
$form
->
error
(
$model
,
'MZGTTIPOSPUBLICACIONES_ESTADO'
);
?>
</div>
<!-- row -->
<label>
<?php
echo
GxHtml
::
encode
(
$model
->
getRelationLabel
(
'mzgtpublicaciones'
));
?>
</label>
<?php
echo
$form
->
checkBoxList
(
$model
,
'mzgtpublicaciones'
,
GxHtml
::
encodeEx
(
GxHtml
::
listDataEx
(
Mzgtpublicaciones
::
model
()
->
findAllAttributes
(
null
,
true
)),
false
,
true
));
?>
<?php
echo
GxHtml
::
submitButton
(
Yii
::
t
(
'app'
,
'Guardar'
));
...
...
themes/classic/views/layouts/main.php
View file @
0e91286e
...
...
@@ -106,7 +106,7 @@
array
(
'label'
=>
'Login'
,
'url'
=>
Yii
::
app
()
->
user
->
ui
->
loginUrl
,
'visible'
=>
Yii
::
app
()
->
user
->
isGuest
),
array
(
'label'
=>
'
Logout
('
.
Yii
::
app
()
->
user
->
name
.
')'
array
(
'label'
=>
'
Salir
('
.
Yii
::
app
()
->
user
->
name
.
')'
,
'url'
=>
Yii
::
app
()
->
user
->
ui
->
logoutUrl
,
'visible'
=>!
Yii
::
app
()
->
user
->
isGuest
),
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment