<?php MiFactoria::titulo('Kardex del material ' . $modelo->codart . ' ' . $modelo->maestro->descripcion, 'Cast'); ?> <?php $this->widget('ext.groupgridview.GroupGridView', array('id' => 'alkardex-grid', 'dataProvider' => $proveedor, 'mergeColumns' => array('numvale', 'movimiento'), 'columns' => array(array('name' => 'numvale', 'header' => 'Vale', 'type' => 'raw', 'value' => 'CHtml::link($data->numvale,Yii::app()->createurl(\'/almacendocs/update\', array(\'id\'=> $data->hidvale ) ))'), 'movimiento', 'codart', array('name' => '.', 'header' => '.', 'type' => 'raw', 'value' => '($data->cant <0)?CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."salida.png","hola"):CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."entrada.png","hola")'), array('name' => 'desum', 'htmlOptions' => array('width' => 10)), 'cant', array('name' => 'fecha', 'header' => 'Fec', 'value' => 'date("d.m.Y", strtotime($data->fecha))', 'htmlOptions' => array('width' => '50')), 'codcentro', 'alemi', 'desdocu', array('name' => 'numdocref', 'header' => 'Referencia', 'type' => 'raw', 'value' => '$data->numdocref'))));
<?php /* @var $this GrupoccController */ /* @var $model Grupocc */ $this->breadcrumbs = array('Grupoccs' => array('index'), 'Manage'); $this->menu = array(array('label' => 'CreaR Grupo', 'url' => array('create'))); Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#grupocc-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <?php MiFactoria::titulo('Grupos de Colectores', 'package'); ?> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'grupocc-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('codgrupo', 'codclase', 'desgrupo', array('class' => 'CButtonColumn'))));
<?php /* @var $this AlmacendocsController */ /* @var $model Almacendocs */ /* @var $form CActiveForm */ MiFactoria::titulo("Documento de Almacen :" . $model->numvale . " ( " . yii::app()->user->um->loadUserById($model->iduser)->username . " )", 'package'); ?> <div class="division"> <div class="wide form"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'almacendocs-form', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <?php // echo "<br><br><br><br> ".($model->isnewRecord)?"ES NUEVO - EN EL FORM ":"YA NO ES NUVEO EN EL FOMRN"; ?> <div class="row"> <?php $botones = array('go' => array('type' => 'A', 'ruta' => array(), 'visiblex' => array(ESTADO_PREVIO, NUll)), 'save' => array('type' => 'A', 'ruta' => array(), 'visiblex' => array(ESTADO_CREADO, ESTADO_EFECTUADO)), 'print' => array('type' => 'B', 'ruta' => array($this->id . '/imprimir', array('id' => $model->id)), 'visiblex' => array(ESTADO_EFECTUADO)), 'add' => array('type' => 'C', 'ruta' => array($this->id . '/creadetalle', array('idcabeza' => $model->id, "cest" => '01', "asDialog" => 1, "gridId" => 'detalle-grid')), 'dialog' => 'cru-dialogdetalle', 'frame' => 'cru-detalle', 'visiblex' => array(ESTADO_CREADO)), 'out' => array('type' => 'B', 'ruta' => array($this->id . '/salir', array('id' => $model->id)), 'visiblex' => array(ESTADO_PREVIO, ESTADO_CREADO, ESTADO_EFECTUADO))); $this->widget('ext.toolbar.Barra', array('botones' => $botones, 'size' => 24, 'extension' => 'png', 'status' => $model->{$this->campoestado})); ?>
<?php $this->breadcrumbs = array('Cotis' => array('index'), 'Manage'); $this->menu = array(array('label' => 'Crear Oc', 'url' => array('CreaDocumento')), array('label' => 'Listado', 'url' => array('admin'))); ?> <?php MiFactoria::titulo('Liberar Compras', 'check'); ?> <?php $this->widget('ext.groupgridview.GroupGridView', array('id' => 'grid1', 'dataProvider' => $proveedor, 'mergeColumns' => array('numcot', 'despro'), 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'extraRowColumns' => array('numcot'), 'extraRowTotals' => function ($data, $row, &$totals) { if (!isset($totals['sum_totalneto'])) { $totals['sum_totalneto'] = 0; } $totals['sum_totalneto'] += $data['totalneto']; }, 'extraRowExpression' => '"<span style=\\"font-weight: bold;color: orangered;font-size:13px;\\"> Total Oc : ".MiFactoria::decimal($totals["sum_totalneto"],2)." </span>"', 'extraRowPos' => 'below', 'columns' => array(array('name' => 'numcot', 'header' => 'Numero', 'type' => 'raw', 'value' => 'CHTml::link($data->numcot,Yii::app()->createurl("ocompra/editadocumento", array("id"=> $data->idguia ) ))'), array('name' => 'numcot', 'header' => '', 'type' => 'raw', 'value' => 'CHTml::AjaxLink(CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."Cast.png"), Yii::app()->createurl("ocompra/procesardocumento", array("id"=> $data->idguia,"ev"=>65) ), array( "data" => array(), "type" => "GET", "success" => "js:function(data) { $.fn.yiiGridView.update(\\"grid1\\"); return false; }" )
<?php /* @var $this AlkardexController */ /* @var $model Alkardex */ $this->breadcrumbs = array('Alkardexes' => array('index'), 'Manage'); $this->menu = array(); Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#alkardex-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); MiFactoria::titulo('Documentos de Material', 'Cast'); ?> <?php $this->renderPartial('_search', array('model' => $model)); ?> <div class="division"> <?php $this->widget('ext.groupgridview.GroupGridView', array('id' => 'alkardex-grid', 'dataProvider' => $model->search(), 'mergeColumns' => array('numvale', 'movimiento'), 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'columns' => array(array('name' => 'numvale', 'header' => 'Vale', 'type' => 'raw', 'value' => 'CHtml::link($data->numvale,Yii::app()->createurl(\'/almacendocs/update\', array(\'id\'=> $data->hidvale ) ))'), 'movimiento', 'codart', array('name' => '.', 'header' => '.', 'type' => 'raw', 'value' => '($data->cant <0)?CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."salida.png","hola"):CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."entrada.png","hola")'), array('name' => 'desum', 'htmlOptions' => array('width' => 10)), 'cant', array('name' => 'descripcion', 'htmlOptions' => array('width' => 250)), array('name' => 'fecha', 'header' => 'Fec', 'value' => 'date("d.m.Y", strtotime($data->fecha))', 'htmlOptions' => array('width' => '50')), 'codcentro', 'alemi', 'desdocu', array('name' => 'numdocref', 'header' => 'Referencia', 'type' => 'raw', 'value' => '$data->numdocref')))); ?> </div>
<?php /* @var $this TMonedaController */ /* @var $model TMoneda */ /* @var $form CActiveForm */ ?> <?php MiFactoria::titulo("Cambio de " . $model->monedaref . " a " . $model->codmon2, "package"); ?> <div class="division"> <div class="wide form"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'tmoneda-form', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <div class="row"> <?php echo $form->labelEx($model, 'compra'); ?> <?php echo $form->textField($model, 'compra', array('size' => 3, 'maxlength' => 6)); ?>
<?php /* @var $this GrupoccController */ /* @var $model Grupocc */ $this->breadcrumbs = array('Grupoccs' => array('index'), $model->codgrupo => array('view', 'id' => $model->codgrupo), 'Update'); $this->menu = array(array('label' => 'Crear', 'url' => array('create')), array('label' => 'Listado', 'url' => array('admin'))); ?> <?php MiFactoria::titulo('Actualizar grupo', 'update'); ?> <?php $this->renderPartial('_form', array('model' => $model));