/**
  * 删除库房
  * @param $id
  * @return boolean
  */
 public function deleted($data)
 {
     try {
         $storeage = new StorageDao();
         //检查仓库是否已经使用
         $storageName = $data["storageName"];
         $stocks = new CurrentStocksDao();
         $count = $stocks->getCount("place='{$storageName}' or station = '{$storageName}'");
         if ($count > 0) {
             $this->setError("该" . $data['stype'] . "含有库存,不能删除!");
             return false;
         }
         $id = $data["id"];
         $result = $storeage->deleteById($id);
     } catch (Exception $e) {
         system_out("StorageAction delete exception:" . $e);
         throw new Exception($e);
     }
     return $result;
 }