public function ajaxSetDoctorCount($request, $response) { /*{{{*/ $request->convertToGbk(); $type = $request->type; $count = $request->count; DBC::requireNotEmptyString($type, 'type不能为空'); DBC::requireTrue(is_numeric($count), '医生数量必须是数值'); DBC::requireNotEmptyString($request->diseasePageId, 'diseasepageid不能为空'); DiseasePageClient::getInstance()->setDoctorCount($request->diseasePageId, $type, $count); echo 'ok'; return parent::DIRECT_OUTPUT; }
public function addPost($request, $response) { $code = $request->code; $params = array(); $params['title'] = $request->title; $params['content'] = $request->content; $params['remark'] = $request->remark; $params['begintime'] = $request->begintime; $params['endtime'] = $request->endtime; $fragmentId = DiseasePageClient::getInstance()->addFragment($code, $params); $msg = '新建定时碎片成功,code=' . $code . ",id={$fragmentId}"; $url = $response->router->urlfor('fragment/alllist', array('msg' => $msg)); $response->setRedirect($url); }
private function getNewDiseaseLabelList($diseasePage) {/*{{{*/ $cntList = array(); $rootLables = $diseasePage->oneLevelOfCnt(); $res = DiseasePageClient::getInstance()->getLableIdAndLableArticleCntOfDisease($this->disease->id); foreach ($res as $value) { if ($value['lableid'] == '501') continue; $cntList[$value['lableid']] = $value['cnt']; } return $cntList; }/*}}}*/