Exemplo n.º 1
0
 public function actionInfo()
 {
     $this->pageTitle = Yii::app()->name . '-' . "我的保证金";
     $ID = Yii::app()->request->getParam('id');
     $cashinfo = CashdepositService::cashgetcash($ID);
     if ($cashinfo->Item == '2') {
         $model = OrderreturnService::nogetreturn($cashinfo->BusinessNO);
         if (!$model) {
             $this->redirect(array('index'));
         }
         $returnaddress = OrderService::getreturnship($model->ID);
         $this->render('returninfo', array('data' => $model, 'cashinfo' => $cashinfo, 'returnaddress' => $returnaddress));
     }
 }
Exemplo n.º 2
0
 public function actionOrderinfo2()
 {
     $this->pageTitle = Yii::app()->name . '-' . "退款单详情";
     $model = ReturnorderService::getorderinfo();
     if (!$model) {
         $this->redirect(array('index'));
     }
     $ID = Yii::app()->request->getParam('ID');
     $ReturnNO = PapReturnOrder::model()->findByPk($ID);
     $reuslt = self::getcomplaininfo($ReturnNO['ReturnNO']);
     if ($model->Type == 1) {
         $this->render('orderinfon2', array('data' => $model, 'reuslt' => $reuslt));
     } elseif ($model->Type == 2) {
         $returnaddress = OrderService::getreturnship($ID);
         $this->render('orderinfo2', array('data' => $model, 'reuslt' => $reuslt, 'returnaddress' => $returnaddress));
     }
 }
Exemplo n.º 3
0
 public function actionOrderinfo2()
 {
     $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);
     $ID = Yii::app()->request->getParam('ID');
     $ReturnNO = PapReturnOrder::model()->findByPk($ID);
     $reuslt = self::getcomplaininfo($ReturnNO['ReturnNO']);
     if ($model->Type == 1) {
         $this->render('orderinfos2', array('data' => $model, 'reuslt' => $reuslt, 'model' => $models));
     } elseif ($model->Type == 2) {
         $returnaddress = OrderService::getreturnship($ID);
         $this->render('orderinfo2', array('data' => $model, 'reuslt' => $reuslt, 'address' => $address, 'model' => $models, 'returnaddress' => $returnaddress));
     }
 }