Esempio n. 1
0
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = BaPengembalian::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_Bab' => $this->ID_Bab, 'ID_PO' => $this->ID_PO, 'Tanggal_Surat' => $this->Tanggal_Surat, 'Tanggal_Terima' => $this->Tanggal_Terima, 'User_Id' => $this->User_Id]);
     $query->andFilterWhere(['like', 'No_Faktur', $this->No_Faktur])->andFilterWhere(['like', 'No_Surat_Jalan', $this->No_Surat_Jalan])->andFilterWhere(['like', 'Kondisi', $this->Kondisi]);
     return $dataProvider;
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBaPengembalians()
 {
     return $this->hasMany(BaPengembalian::className(), ['ID_PO' => 'ID_PO']);
 }
Esempio n. 3
0
 public function actionBapengembaliandelete($id)
 {
     $model = BaPengembalian::findOne($id)->delete();
     $this->layout = $this->CheckSession();
     return $this->redirect(['warehouse/bapengembalianindex']);
 }
Esempio n. 4
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use app\models\warehouse\BaPengembalian;
$roleModel = new BaPengembalian();
/* @var $this yii\web\View */
/* @var $searchModel app\models\BaPengembalianSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Berita Acara Barang Pengembalian';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="side">
    <div class="sub-sidebar-wrapper">
      <ul class="nav">
        <?php 
echo Nav::widget(['items' => [['label' => 'Berita Acara Masuk', 'url' => ['/warehouse/babmasukindex']], ['label' => 'Berita Acara Keluar', 'url' => ['warehouse/babkeluarindex']], ['label' => 'Berita Acara Pengembalian', 'url' => ['warehouse/bapengembalianindex']]]]);
?>
      </ul>
    </div>
</div>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
            <div class="widget-controls">
                <a href="#" class="widget-control widget-control-full-screen" data-toggle="tooltip" data-placement="top" title="" data-original-title="Full Screen"><i class="fa fa-expand"></i></a>
                <a href="#" class="widget-control widget-control-full-screen widget-control-show-when-full" data-toggle="tooltip" data-placement="left" title="" data-original-title="Exit Full Screen"><i class="fa fa-expand"></i></a>
                <a href="#" class="widget-control widget-control-refresh" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></a>
                <a href="#" class="widget-control widget-control-minimize" data-toggle="tooltip" data-placement="top" title="" data-original-title="Minimize"><i class="fa fa-minus-circle"></i></a>