예제 #1
0
 public function excel($params)
 {
     $query = EstadoRceExamen::find();
     $dataProvider = new ActiveDataProvider(['query' => $query, 'pagination' => array('pageSize' => 10000)]);
     $this->load($params);
     if (!$this->validate()) {
         // uncomment the following line if you do not want to return any records when validation fails
         // $query->where('0=1');
         return $dataProvider;
     }
     $query->andFilterWhere(['id' => $this->id]);
     $query->andFilterWhere(['like', 'descripcion', $this->descripcion]);
     return $dataProvider;
 }
예제 #2
0
                            <button type="button" class="add-item3 btn btn-success btn-xs"><i class="glyphicon glyphicon-plus"></i></button>
                            <button type="button" class="remove-item3 btn btn-danger btn-xs"><i class="glyphicon glyphicon-minus"></i></button>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="panel-body">
                        <?php 
    // necessary for update action.
    if (!$modelBitacora->isNewRecord) {
        echo Html::activeHiddenInput($modelBitacora, "[{$i}]id");
    }
    ?>
                        <div class="row">
                            <div class="col-sm-6">
                                <?php 
    echo $form->field($modelBitacora, "[{$i}]estado_rce_examen_id")->dropDownList(ArrayHelper::map(EstadoRceExamen::find()->all(), 'id', 'descripcion'), ['prompt' => 'Seleccionar Estado RCE Examen', 'style' => 'width:300px']);
    ?>
                            </div>
                            <div class="col-sm-6">
                                <?php 
    echo $form->field($modelBitacora, "[{$i}]observacion")->textInput(['maxlength' => true]);
    ?>
                            </div>
                        </div><!-- .row -->
                    </div>
                </div>
            <?php 
}
?>
            </div>
            <?php 
예제 #3
0
 public function getEstadoRCE()
 {
     $bitacora = Bitacora::find()->where(['rce_examen_id' => $this->id])->one();
     $EstadoRCE = EstadoRceExamen::find()->where(['id' => $bitacora->estado_rce_examen_id])->one();
     return $EstadoRCE->descripcion;
 }
예제 #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEstadoRceExamen()
 {
     $estado = EstadoRceExamen::find()->where(['id' => $this->estado_rce_examen_id])->one();
     return $estado->descripcion;
 }