예제 #1
0
 /**
  * _prepare
  * 
  * @return void
  */
 protected function _prepare()
 {
     if (empty(static::$_oattrs)) {
         static::$_oattrs[getOrderAttrNameByCode(ORDER_ATTR_YXHF)] = ORDER_ATTR_YXHF;
     }
     if (empty(static::$_status)) {
         static::$_status[getOrderStatusNameByCode(ORDER_STATUS_YD)] = ORDER_STATUS_YD;
         static::$_status[getOrderStatusNameByCode(ORDER_STATUS_BL)] = ORDER_STATUS_BL;
         static::$_status[getOrderStatusNameByCode(ORDER_STATUS_ZZ)] = ORDER_STATUS_ZZ;
         static::$_status[getOrderStatusNameByCode(ORDER_STATUS_YJS)] = ORDER_STATUS_YJS;
         static::$_status[getOrderStatusNameByCode(ORDER_STATUS_YQX)] = ORDER_STATUS_YQX;
     }
     if (empty(static::$_rtstat)) {
         static::$_rtstat[getOrderRealTimeStatusNameByCode(ORDER_REALTIME_STATUS_YRZ)] = ORDER_REALTIME_STATUS_YRZ;
         static::$_rtstat[getOrderRealTimeStatusNameByCode(ORDER_REALTIME_STATUS_YTF)] = ORDER_REALTIME_STATUS_YTF;
         static::$_rtstat[getOrderRealTimeStatusNameByCode(ORDER_REALTIME_STATUS_YZWZ)] = ORDER_REALTIME_STATUS_YZWZ;
         static::$_rtstat[getOrderRealTimeStatusNameByCode(ORDER_REALTIME_STATUS_YTWT)] = ORDER_REALTIME_STATUS_YTWT;
         static::$_rtstat[getOrderRealTimeStatusNameByCode(ORDER_REALTIME_STATUS_GQWZ)] = ORDER_REALTIME_STATUS_GQWZ;
         static::$_rtstat[getOrderRealTimeStatusNameByCode(ORDER_REALTIME_STATUS_FTCT)] = ORDER_REALTIME_STATUS_FTCT;
     }
     if (empty(static::$_action)) {
         static::$_action[ORDER_ACTION_BLDD] = array('name' => getOrderActionNameByCode(ORDER_ACTION_BLDD), 'code' => ORDER_ACTION_BLDD);
         static::$_action[ORDER_ACTION_QXDD] = array('name' => getOrderActionNameByCode(ORDER_ACTION_QXDD), 'code' => ORDER_ACTION_QXDD);
         static::$_action[ORDER_ACTION_BLRZ] = array('name' => getOrderActionNameByCode(ORDER_ACTION_BLRZ), 'code' => ORDER_ACTION_BLRZ);
         static::$_action[ORDER_ACTION_BLTF] = array('name' => getOrderActionNameByCode(ORDER_ACTION_BLTF), 'code' => ORDER_ACTION_BLTF);
         static::$_action[ORDER_ACTION_BLHF] = array('name' => getOrderActionNameByCode(ORDER_ACTION_BLHF), 'code' => ORDER_ACTION_BLHF);
     }
 }
예제 #2
0
 /**
  * getNewUpdateStatusLog
  * 
  * @param array $oper
  * @param array $order
  * @param array $
  * @return array
  */
 public function getNewUpdateStatusLog(array $oper, array $order_old, array $order_new)
 {
     return $this->getNewLog('update_status', $order_old['o_hid'], $order_old['o_id'], '', $oper['u_id'], $oper['u_realname'], getOrderStatusNameByCode($order_old['o_status']) . '=>' . getOrderStatusNameByCode($order_new['o_status']), array($order_old, $order_new));
 }