/** * SALES PO - View temp file. * Type =3 [salespo] * @author piter [ptr.nov@gmail.com] */ public function searchSalespo($params) { $query = TempData::find(); // add conditions that should always apply here $dataProvider = new ActiveDataProvider(['query' => $query, 'pagination' => ['pageSize' => 2000]]); $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; } // grid filtering conditions $query->andFilterWhere(['ID' => $this->ID, 'USER_ID' => $this->USER_ID, 'TGL' => $this->TGL, 'QTY_PCS' => $this->QTY_PCS, 'QTY_UNIT' => $this->QTY_UNIT, 'SO_TYPE' => 3, 'STATUS' => $this->STATUS]); $query->andFilterWhere(['like', 'CUST_KD', $this->CUST_KD])->andFilterWhere(['like', 'CUST_KD_ALIAS', $this->CUST_KD_ALIAS])->andFilterWhere(['like', 'CUST_NM', $this->CUST_NM])->andFilterWhere(['like', 'CUST_NM_ALIAS', $this->CUST_NM_ALIAS])->andFilterWhere(['like', 'ITEM_ID', $this->ITEM_ID])->andFilterWhere(['like', 'ITEM_ID_ALIAS', $this->ITEM_ID_ALIAS])->andFilterWhere(['like', 'ITEM_NM', $this->ITEM_NM])->andFilterWhere(['like', 'ITEM_NM_ALIAS', $this->ITEM_NM_ALIAS])->andFilterWhere(['like', 'DIS_REF', $this->DIS_REF])->andFilterWhere(['like', 'DIS_REF_NM', $this->DIS_REF_NM])->andFilterWhere(['like', 'POS', $this->POS]); return $dataProvider; }
public function actionAlias_prodak($id) { $AliasProdak = new AliasProdak(); $tempDataImport = TempData::find()->where(['ID' => $id])->one(); return $this->renderAjax('formAliasProdak', ['AliasProdak' => $AliasProdak, 'tempDataImport' => $tempDataImport, 'aryBrgID' => $this->aryBrgID()]); }
public function actionAlias_cust($id) { $AliasCustomer = new AliasCustomer(); $tempDataImport = TempData::find()->where(['ID' => $id])->one(); return $this->renderAjax('formAliasCustomer', ['AliasCustomer' => $AliasCustomer, 'tempDataImport' => $tempDataImport, 'aryCustID' => $this->aryCustID()]); }
/** * Finds the TempData model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param string $id * @return TempData the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = TempData::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }