Beispiel #1
0
 public function actionAudit2()
 {
     $this->pageTitle = Yii::app()->name . '-' . "退款单审核";
     $model = OrderreturnService::papgetreturn();
     if (!$model) {
         $this->redirect(array('index'));
     }
     $models = new JpdReceiveAddress();
     $organID = Yii::app()->user->getOrganID();
     $firstaddress = JpdReceiveAddress::model()->findAll('OrganID=:organID and State=:State order by CreateTime DESC', array(':organID' => $organID, ':State' => '370000'));
     $address = JpdReceiveAddress::model()->findAll('OrganID=:organID and State!=:State order by CreateTime DESC', array(':organID' => $organID, ':State' => '370000'));
     $address = array_merge($firstaddress, $address);
     if ($model->Type == 1) {
         $this->render('orderinfos2', array('data' => $model, 'model' => $models));
     } elseif ($model->Type == 2) {
         $this->render('orderinfo2', array('data' => $model, 'address' => $address, 'model' => $models));
     }
 }