示例#1
0
echo $form->textArea($model, 'textolargo', array('columns' => 4, 'rows' => 6, 'disabled' => in_array($model->codmov, $model->campoeditable()['textolargo']) ? '' : 'disabled'));
?>
		<?php 
echo $form->error($model, 'textolargo');
?>
	</div>

	<?php 
if ($model->alkardex_almacendocs->cestadovale == ESTADO_EFECTUADO and $model->alkardex_almacendocs->almacenmovimientos->signo < 0) {
    ?>
		<div class="row">
			<?php 
    echo CHtml::label('Punto expedicion', 'lblpuntoexped');
    ?>
			<?php 
    $datos1 = CHtml::listData(Puntodespacho::model()->findAll(" codcen='" . $model->codcentro . "'"), 'id', 'nombrepunto');
    echo CHtml::DropDownList('cbopuntoexped', 'codtcentro', $datos1, array('empty' => '--Selecc pto expedicion--'));
    ?>


			<?php 
    echo CHtml::ajaxSubmitButton("Pick", array("almacendocs/expedicion"), array("type" => "POST", "data" => array("codiguito" => "js:cbopuntoexped.value", "identidad" => "js:Almacendocs_id.value", "responsable" => "js:cboresponsable.value"), "update" => "#zonadespacho"), array('onClick' => 'Loading.show();Loading.hide(); return false;'));
    ?>
		</div>

		<?php 
    if (is_null($model->alkardex_almacendocs->codtrabajador) or empty($model->alkardex_almacendocs->codtrabajador)) {
        ?>
			<div class="row">
				<?php 
        echo CHtml::label('Responsable', 'Responsable');
示例#2
0
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return Puntodespacho the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Puntodespacho::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }