Exemplo n.º 1
0
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = Docstatus::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]);
     $query->andFilterWhere(['like', 'docStatusName', $this->docStatusName])->andFilterWhere(['like', 'docStatusDesc', $this->docStatusDesc]);
     return $dataProvider;
 }
Exemplo n.º 2
0
    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'document_id')->textInput();
?>
	
	
	<?php 
echo $form->field($model, 'user_receive')->dropDownList(ArrayHelper::map(\backend\models\UserAdmin::find()->all(), 'id', 'FPname'), ['prompt' => 'Receiver']);
?>

	<?php 
echo $form->field($model, 'docStatus_id')->dropDownList(ArrayHelper::map(\common\models\Docstatus::find()->all(), 'id', 'docStatusName'), ['prompt' => 'Document Status']);
?>

    <?php 
echo $form->field($model, 'docWorkflowComment')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'timeAccepted')->textInput();
?>

    <?php 
echo $form->field($model, 'timeRelease')->textInput();
?>

    <?php