/**
  * passAuditSpaceMarkMonitor 
  * 审核通过 
  * @param mixed $request 
  * @param mixed $response 
  * @access public
  * @return void
  */
 public function passAuditSpaceMarkMonitor($request, $response)
 {
     /*{{{*/
     $inspector = $this->curInspector;
     $spaceMarkMonitorId = $request->spaceMarkMonitorId;
     $spaceMarkMonitor = DAL::get()->find('SpaceMarkMonitor', $spaceMarkMonitorId);
     $spaceId = $request->spaceId;
     $space = DAL::get()->find('Space', $spaceId);
     $doctorMark = DAL::get()->find_by_spaceid('DoctorMark', $space->id);
     if ($spaceMarkMonitor->status == SpaceMarkMonitor::STATUS_INIT) {
         S3LogClient::getInstance()->add($inspector, $spaceMarkMonitor->getLogable()->action(SpaceMarkMonitorLog::ACTION_AUDIT_SPACE_MARK_MONITOR, '审核通过'));
         DoctorMarkClient::getInstance()->SpaceMarkMonitorAudit($spaceMarkMonitor, $this->curInspector);
     }
     $url = $response->router->urlfor('nfsaudit/operatespacemonitor', array('spaceId' => $space->id, 'spaceMarkMonitorId' => $spaceMarkMonitor->id));
     $response->setRedirect($url);
 }
 public function ajaxModifySpaceMarkInfo($request, $response)
 {
     /*{{{*/
     $request->convertToGBK();
     if (false == $this->inspectorValidate($request, $response)) {
         echo 'nopermission';
         return parent::DIRECT_OUTPUT;
     }
     $spaceId = $request->spaceId;
     $space = DAL::get()->find('Space', $spaceId);
     $params = array();
     $params['isSeeCase'] = $request->isSeeCase;
     $params['bookingDifficulty'] = $request->bookingDifficulty;
     $params['answerQuality'] = $request->answerQuality;
     $params['answerCount'] = $request->getRequest('answerCount', '');
     $params['answerTime'] = $request->getRequest('answerTime', '');
     DoctorMarkClient::getInstance()->modifySpaceMarkInfo($this->curInspector, $space, $params);
     if ($space->isDoctor()) {
         RealTimeSearchClient::getInstance()->updateDoctorInfoByDoctorIds(array($space->host->id));
     }
     echo 'success';
     return parent::DIRECT_OUTPUT;
 }