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;
 }
Esempio n. 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 
 /**
  * Finds the EstadoRceExamen model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return EstadoRceExamen the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = EstadoRceExamen::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
Esempio n. 4
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;
 }
Esempio n. 5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEstadoRceExamen()
 {
     $estado = EstadoRceExamen::find()->where(['id' => $this->estado_rce_examen_id])->one();
     return $estado->descripcion;
 }