Beispiel #1
0
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = TblUnidades::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     $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, 'id_institucion' => $this->id_institucion, 'padre' => $this->padre, 'haber_basico' => $this->haber_basico]);
     $query->andFilterWhere(['like', 'descrip', $this->descrip])->andFilterWhere(['like', 'cite', $this->cite])->andFilterWhere(['like', 'nombre_cargo', $this->nombre_cargo])->andFilterWhere(['like', 'categoria', $this->categoria])->andFilterWhere(['like', 'estado_cargo', $this->estado_cargo])->andFilterWhere(['like', 'clasificacion', $this->clasificacion]);
     return $dataProvider;
 }
Beispiel #2
0
">Nueva Funcionario</h3>
            
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                
                
                <div class="tbl-funcionario-form">
                
                   
                    <div class="row">
                    <?php 
if ($model->isNewRecord) {
    ?>
                        <div class="col-md-6"><?php 
    echo $form->field($model, 'id_unidad')->dropDownList(ArrayHelper::map(TblUnidades::find()->all(), 'id', 'descrip'), ["class" => "form-control", 'ng-change' => "onChangeUnidad()", "ng-model" => "unidad"]);
    ?>
</div>
                        <div class="col-md-6"><label class="control-label" >Item #:<div data-ng-bind-html='item'></div></label></div>
                      <?php 
}
?>

                    </div>
                    <div class="row">
                        
                        <div class="col-md-6"><?php 
echo $form->field($model, 'fech_ingreso')->textInput(["data-inputmask=" => "'alias':'yyyy/mm/dd'"]);
?>
</div>
                        <div class="col-md-6"><?php