Beispiel #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));
     }
 }
Beispiel #2
0
 public function actionAuditok()
 {
     $model = OrderreturnService::papgoodsget();
     echo json_encode($model);
 }
Beispiel #3
0
        echo $v['GoodsID'];
        ?>
"  href="<?php 
        echo Yii::app()->CreateUrl('pap/dealergoods/goodsinfo', array('goods' => $v['GoodsID']));
        ?>
" target="_blank"  title="<?php 
        echo $goods['GoodsInfo']['Name'];
        ?>
" ><?php 
        echo $goods['GoodsInfo']['Name'];
        ?>
</a>

                                </p>
                                <p style="float: right;font-size: 12px;width: 150px;height: 18px;line-height: 18px;">订单编号:<?php 
        echo OrderreturnService::orderIDgetorder($v['OrderID'], 'OrderSN');
        ?>
</p>
                            </span>
                            <p class="m-top5" style="clear: both;width: 400px;">商品编号:<span class="zwq_color"><?php 
        echo $goods['GoodsInfo']['GoodsNO'];
        ?>
</span> | 品牌:<span><?php 
        echo $goods['GoodsInfo']['Brand'];
        ?>
</span></p>
                            <p class="m-top5" style="width:300px;height: 18px;white-space: nowrap;overflow: hidden; text-overflow: ellipsis;">标准名称:<span><?php 
        echo $goods['GoodsInfo']['StandCodeName'];
        ?>
</span> | 拼音代码:<span><?php 
        echo $goods['GoodsInfo']['Pinyin'];
Beispiel #4
0
                            <td> <span class="zwq_color"><?php 
        echo $v->Price;
        ?>
</span></td> 
                            <td><span ><?php 
        echo $v->Amount;
        ?>
</span></td>    
                            <?php 
        if ($k == 0) {
            ?>
                                <td rowspan="<?php 
            echo $count;
            ?>
"> <span><?php 
            echo OrderreturnService::showOrderStatus($data->Status);
            ?>
</span></td>               
                                <td rowspan="<?php 
            echo $count;
            ?>
">  <div class="zwq_color"><?php 
            echo $data->Price;
            ?>
</div></td>
                            <?php 
        }
        ?>
                        </tr>
                        <?php 
    }
Beispiel #5
0
                    <input type="text" name="qty_item_1" value="1" id="qty_item" class="text" onBlur="setAmount(this);"/>
                    <a class="add_num" href="javascript:void(0)"> +</a>
                </div>
            </div>
            <p class="gm" goodsid="<?php 
echo $r['GoodsID'];
?>
"><button class="addgwc">加入购物车</button>
                <button class="ljgm" id="quickbuy" goodsid="<?php 
echo $r['GoodsID'];
?>
">立即购买</button></p>
        </div>
        <!--content1b结束-->
        <?php 
$Organinfo = OrderreturnService::idgetorgan(Yii::app()->user->getOrganID(), 'all');
?>
        <div class="content1c float_l">
            <p class="shop_name">卖家:<span class="lanse"><?php 
echo $Organinfo->OrganName;
?>
</span></p>
            <p class="shop_pf">综合评分:<span class="shop_zhpf"></span><span class="font">9.7分</span></p>
            <div class="shop_info">
                <p>评分明细<span class="compare">与同行业相比</span></p>
                <ul>
                    <li>商品评分:<em>9.82分</em><span class="rate-icon"><em>31.8%</em></span></li>
                    <li>服务评分:<em>9.63分</em><span class="rate-icon"><em>0.94%</em></span></li>
                    <li>时效评分:<em>9.80分</em><span class="rate-icon"><em>13.4%</em></span></li>
                </ul>
            </div>
Beispiel #6
0
 public static function getrecords($Item)
 {
     $OrganID = Yii::app()->user->getOrganID();
     $time = Yii::app()->request->getParam('time');
     $criteria = new CDbCriteria();
     if ($Item == 1) {
         $criteria->addCondition("Item = 1 or Item = 3", "AND");
         $criteria->addCondition("OrganID=" . $OrganID, "AND");
     } elseif ($Item == 0) {
         $criteria->addCondition("Item = 0 or Item = 2", "AND");
         $criteria->addCondition("OrganID =" . $OrganID, "AND");
     }
     if (strtotime(Yii::app()->request->getParam('starttime'))) {
         $StartTime = Yii::app()->request->getParam('starttime');
     }
     if (strtotime(Yii::app()->request->getParam('endtime'))) {
         $endtime = Yii::app()->request->getParam('endtime');
     }
     if (Yii::app()->request->getParam('time')) {
         $Time = Yii::app()->request->getParam('time');
     }
     if ($StartTime && $EndTime) {
         $StartTime = strtotime($StartTime);
         $EndTime = (int) (strtotime($EndTime) + 60 * 60 * 24);
         $criteria->addBetweenCondition('CreateTime', "{$StartTime}", "{$EndTime}", "AND");
     } elseif ($StartTime) {
         $StartTime = strtotime($StartTime);
         $criteria->addCondition("CreateTime >= " . $StartTime);
     } elseif ($EndTime) {
         $EndTime = (int) (strtotime($EndTime) + 60 * 60 * 24);
         $criteria->addCondition("CreateTime <= " . $EndTime, "AND");
     }
     if ($Time && !$StartTime && !$EndTime) {
         $newtime = time();
         $datetime = strtotime(date("Y-m-d", $newtime));
         if ($Time == 1) {
             $criteria->addBetweenCondition('CreateTime', "{$datetime}", "{$newtime}", "AND");
         } elseif ($Time == 2) {
             $oldtime = (int) ($datetime - 60 * 60 * 24 * 30);
             $criteria->addBetweenCondition('CreateTime', "{$oldtime}", "{$newtime}", "AND");
         } elseif ($Time == 3) {
             $oldtime = (int) ($datetime - 60 * 60 * 24 * 30 * 3);
             $criteria->addBetweenCondition('CreateTime', "{$oldtime}", "{$newtime}", "AND");
         }
     }
     //        $criteria->addCondition('OrganID =' . $OrganID, 'AND');
     //        $criteria->addCondition('Item =' . $Item, 'AND');
     //  $criteria->order = 'ID desc';
     $dataProvider = new CActiveDataProvider('PapTransactionRecords', array('criteria' => $criteria));
     $datas = $dataProvider->getData();
     foreach ($datas as $v) {
         if ($v->Item == '2') {
             $v->Item = '买方退货:' . $v->BusinessNO;
             $v->OrganID = OrderreturnService::idgetname($v->GetID);
             $v->view = "<a class='view' href='" . Yii::app()->createUrl('pap/Cashdeposit/info', array('id' => $v->ID)) . "' title='详情'>查看详情</a>";
         }
         if ($v->Item == '0') {
             $v->Item = '充值';
             $v->OrganID = '北京嘉配科技有限公司';
             $v->view = '';
         }
         if ($v->Item == '1') {
             $v->Item = '充值';
             $v->OrganID = OrderreturnService::idgetname($v->OrganID);
             $v->view = '';
         }
         if ($v->Item == '3') {
             $v->Item = '违规处罚';
             $v->OrganID = CashdepositService::idgetunion($v->GetID);
             $v->view = "<a class='view' href='" . Yii::app()->createUrl('pap/Cashdeposit/infos', array('id' => $v->ID)) . "' title='详情'>查看详情</a>";
         }
     }
     $dataProvider->setData($datas);
     return $dataProvider;
 }
Beispiel #7
0
 /**
  *    改变订单状态
  *
  *    @author    Garbin
  *    @param     int $order_id
  *    @param     array  $notify_result
  *    @return    void
  */
 function _change_order_status($order_id, $notify_result)
 {
     /* 响应通知 */
     //JporderService::respondNotify($order_id, $notify_result);
     OrderreturnService::respondNotify($order_id, $notify_result);
 }
Beispiel #8
0
 public function actionHiderecord()
 {
     $organID = Commonmodel::getOrganID();
     $sql = "select * from pap_inquiry a" . " where a.Status=0 and a.DealerID  like  '%,{$organID},%' ";
     $result = Yii::app()->papdb->createCommand($sql)->queryAll();
     $quotions = count($result);
     //$waitpay=  PapOrder::model()->count('Status=1 and SellerID ='.$organID);
     $Shipping = PapOrder::model()->count(array('condition' => "Status = 2 and SellerID = {$organID}"));
     $Abnormal = PapOrder::model()->count(array('condition' => " IsUnusual != 0 and Status =9 and SellerID = {$organID}"));
     //待付款的订单
     //$waitpay=  PapOrder::model()->count('Status=1 and SellerID ='.$organID);
     //待买家收货的订单
     //$buyerwaitreceipt=  PapOrder::model()->count('Status=3 and SellerID ='.$organID);
     //待同意退货的订单
     $waitcheckreturn = PapOrder::model()->count('Status=11 and SellerID =' . $organID);
     //待买家退货的订单
     //$waitreturn= PapOrder::model()->count('Status=12 and SellerID ='.$organID);
     //退货待收货
     $sellerwaitreceipt = PapOrder::model()->count('Status=13 and SellerID =' . $organID);
     //待审核的退货单
     $returnaudit = OrderreturnService::papreturnstatus('1');
     //            echo json_encode(array('quotions'=>$quotions,'shipping'=>$Shipping,'abnormal'=>$Abnormal,'waitpay'=>$waitpay,
     //                             'buyerwaitreceipt'=>$buyerwaitreceipt,'waitcheckreturn'=>$waitcheckreturn,'waitreturn'=>$waitreturn,
     //                               'sellerwaitreceipt'=>$sellerwaitreceipt));
     echo json_encode(array('quotions' => $quotions, 'shipping' => $Shipping, 'abnormal' => $Abnormal, 'waitcheckreturn' => $waitcheckreturn, 'sellerwaitreceipt' => $sellerwaitreceipt, 'returnaudit' => $returnaudit));
 }