public function loadModel($id)
 {
     $model = Cuentacontable::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, Yii::t('app', 'The requested page does not exist.'));
     }
     return $model;
 }
示例#2
0
        'placeholder' => 'x',
        'model' => $model,
        'attribute' => 'cuit',
    ));

    echo "</div></div>";
    ?>
<?php echo $form->textFieldControlGroup($model, 'percepiibb', array('size' => 5, 'maxlength' => 5)); ?>

<?php echo $form->checkBoxControlGroup($model, 'arbanoactualiza'); ?>

<div class="mt40" >   
<?php echo $form->dropDownListControlGroup($model, 'idcategoriaiva', CHtml::listData(Categoriaiva::model()->findAll(array('order' => 'nombre')), 'idcategoriaiva', 'nombre')); ?>
</div>

<?php echo $form->dropDownListControlGroup($model, 'idctacontable', CHtml::listData(Cuentacontable::model()->findAll(array('order' => 'numero')), 'idctacontable', 'codigo')); ?>
<?php echo $form->textFieldControlGroup($model, 'clientegb', array('size' => 6, 'maxlength' => 10)); ?>


<?php echo TbHtml::labelTb('Domicilio Central', array('color' => TbHtml::LABEL_COLOR_WARNING,'style'=>'margin-top:20px;font-size:13px;padding:5px;')); ?>
<?php $this->renderPartial('//domicilio/_form_gral', array(
            'modelDomicilio'=>$modelDomicilio,'form'=>$form));?>




</fieldset>

<div class="form-actions">
    <?php
    echo TbHtml::submitButton(Yii::t('app', 'Save'), array(
示例#3
0
 public function getColumnas()
 {
     return array(array('name' => 'idosfacturacion', 'value' => 'isset($data->idosfacturacion)?$data->idosfacturacion:""', 'filter' => false, 'visible' => Yii::app()->user->categoria == Usuarios::SOFTWARE ? true : false), array('name' => 'nombre', 'value' => 'isset($data->nombre)?$data->nombre:""', 'filter' => false), array('name' => 'cuit', 'value' => 'isset($data->cuit)?$data->cuit:""', 'filter' => false), array('name' => 'percepiibb', 'value' => 'isset($data->percepiibb)?$data->percepiibb:""', 'filter' => false), array('name' => 'idcategoriaiva', 'value' => 'isset($data->idcategoriaiva0->nombre)?$data->idcategoriaiva0->nombre:""', 'filter' => CHtml::listData(Categoriaiva::model()->findAll(array('order' => 'nombre')), 'idcategoriaiva', 'nombre')), array('name' => 'idctacontable', 'value' => 'isset($data->idctacontable0->numero)?$data->idctacontable0->numero:""', 'filter' => CHtml::listData(Cuentacontable::model()->findAll(array('order' => 'numero')), 'idctacontable', 'numero')), array('name' => 'iddomicilio', 'value' => 'isset($data->iddomicilio0->calle)?$data->iddomicilio0->calle:""', 'filter' => CHtml::listData(Domicilio::model()->findAll(array('order' => 'calle')), 'iddomicilio', 'calle')));
 }
示例#4
0
                ),
        array(
                      'name'   => 'percepiibb',
                      'value'  => 'isset($data->percepiibb)?$data->percepiibb:""',
                      'filter' => false,
                      'visible'=>false,
                ),
        array(
                      'name'   => 'idcategoriaiva',
                      'value'  => 'isset($data->idcategoriaiva0->nombre)?$data->idcategoriaiva0->nombre:""',
                      'filter' => CHtml::listData(Categoriaiva::model()->findAll(array('order'=>'nombre')),'idcategoriaiva','nombre'),
                ),
        array(
                      'name'   => 'idctacontable',
                      'value'  => 'isset($data->idctacontable0->numero)?$data->idctacontable0->numero:""',
                      'filter' => CHtml::listData(Cuentacontable::model()->findAll(array('order'=>'numero')),'idctacontable','numero'),
                      'visible'=>false,  
            ),
        array(
                      'name'   => 'iddomicilio',
                      'value'  => 'isset($data->iddomicilio0->calle)?$data->iddomicilio0->calle:""',
                      'filter' => CHtml::listData(Domicilio::model()->findAll(array('order'=>'calle')),'iddomicilio','calle'),
                      'visible'=>false,
        ),
array(
    'class' => 'CButtonColumn',
    'viewButtonImageUrl' => Yii::app()->baseUrl . '/css/gridviewstyle/images/' . 'gr-view.png',
    'updateButtonImageUrl' => Yii::app()->baseUrl . '/css/gridviewstyle/images/' . 'gr-update.png',
    'deleteButtonImageUrl' => Yii::app()->baseUrl . '/css/gridviewstyle/images/' . 'gr-delete.png',
    'header' => Yii::t('app', 'Actions'),
        ),