Exemplo n.º 1
0
 public static function getDisOrdertype($id)
 {
     $OrganID = Yii::app()->user->getOrganID();
     $model = OrderDiscount::model()->find("OrganID={$OrganID} and ID={$id}")->attributes;
     if ($model['OrderType'] == 1) {
         return '商城订单';
     } else {
         if ($model['OrderType'] == 2) {
             return '询价单订单';
         } else {
             $model['OrderType'] == 3;
             return '报价单订单';
         }
     }
 }
Exemplo n.º 2
0
 public static function getDisOrdertype($id)
 {
     $model = OrderDiscount::model()->find("ID={$id}")->attributes;
     if ($model['OrderType'] == 1) {
         return '商城订单';
     } else {
         if ($model['OrderType'] == 2) {
             return '询价单订单';
         }
     }
 }