示例#1
0
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = LgApprove::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(['kode' => $this->kode, 'id_order' => $this->id_order, 'tgl_pengiriman' => $this->tgl_pengiriman, 'tgl_terima' => $this->tgl_terima, 'kendaraan' => $this->kendaraan, 'kurir' => $this->kurir, 'status_approve' => $this->status_approve, 'status_pengiriman' => $this->status_pengiriman, 'ongkir' => $this->ongkir]);
     return $dataProvider;
 }
示例#2
0
 protected function findModelApprove($id)
 {
     if (($model = LgApprove::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
示例#3
0
文件: view.php 项目: tiyolab/autocom
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use app\models\logistic\LgApprove;
use app\models\logistic\LgApproveSearch;
$findapprove = new LgApprove();
/* @var $this yii\web\View */
/* @var $model app\models\logistic\LgPengiriman */
$this->title = 'Approve Pengiriman: ' . ' ' . $model->kode;
$this->params['breadcrumbs'][] = ['label' => 'Lg Approve', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="col-md-12">
<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>
            </div>
            <h3><i class="fa fa-ok-circle"></i><?php 
echo Html::encode($this->title);
?>
</h3>
        </div>
            <div class="widget-content">
                <div class="row">
                    <div class="col-md-12">
示例#4
0
文件: index.php 项目: tiyolab/autocom
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use app\models\logistic\LgApprove;
use app\models\logistic\LgApproveSearch;
/* @var $this yii\web\View */
/* @var $searchModel app\models\logistic\LgPengirimanSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Logistik Approval';
$this->params['breadcrumbs'][] = $this->title;
$findapprove = new LgApprove();
?>
<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>
            </div>
            <h3><i class="fa fa-ok-circle"></i><?php 
echo Html::encode($this->title);
?>
</h3>
        </div>
            <div class="widget-content">
                <div class="row">
                    <div class="col-md-12">
                        <table class="table">