public function before($context)
 {
     parent::before($context);
     DBC::requireTrue(DataInspectGroup::among($context->response->curInspector), '你没有权限访问');
 }
 public function before($context)
 {
     parent::before($context);
     $group = DataInspectGroup::getPreDoctorGroup();
     DBC::requireTrue($group->isIn($context->response->curInspector), '你没有权限访问');
 }
 public function reAuditPredoctor($request, $response)
 {
     /*{{{*/
     $preDoctorId = $request->id;
     $preDoctor = DAL::get()->find('predoctor', $preDoctorId);
     DBC::requireFalse($preDoctor->isNull(), '医生不存在');
     $preDoctorGroup = DataInspectGroup::getPreDoctorGroup();
     InspectClient::getInstance()->releaseMyTicketsByGroup($this->curInspector, $preDoctorGroup);
     $ret = (bool) InspectClient::getInstance()->bindTicket2Group($this->curInspector, $preDoctor, $preDoctorGroup, '');
     if (false == $ret) {
         echo "提交重审失败,请稍后重试";
         return parent::DIRECT_OUTPUT;
     } else {
         S3LogClient::getInstance()->add($this->curInspector, $preDoctor->getLogable()->action(PreDoctorLog::TYPE_REAUDIT, ''));
         $url = $response->router->urlfor('outpatienttool/preDoctordetail', array('id' => $preDoctorId));
         $response->setRedirect($url);
     }
 }