/**
  * 通过表架号获取表架参数
  *
  * @param string $structno
  * @return arrray
  */
 public function getStructparmBySingle($structno)
 {
     $storage = new StorageAction();
     $result = $storage->findByCondition("storageName = '{$structno}'");
     if (!$result) {
         return false;
     }
     return $result[0];
 }
Example #2
0
 /**
  * 删除
  * @parm $id
  * @return boolean
  */
 public function deleted($data)
 {
     $storage = new StorageAction();
     $result = $storage->deleted($data);
     if (!$result) {
         if ($storage->getError() != '') {
             throw new Exception($storage->getError());
         } else {
             throw new Exception("删除仓库出错!");
         }
     }
     return $result;
 }