public function showBingli($request, $response) { header('Content-Type: text/html; charset=gbk'); $domain = $request->getRequest('domain', URL_PREFIX.'zixun.haodf.com'); $type = $request->getRequest('type', 'qita'); $typeList = PatientAttachment::$typeList; $typeDetail = $typeList[$type]; $tplContent = ''; if($typeDetail['type'] == PatientAttachment::TYPE_HUAYANDAN) { $tplContent = BingLiTpl::getTplContent($type); } $response->typeDetail = $typeDetail; $response->tplContent = $tplContent; $response->type = $type; $response->domain = $domain; }
public function showBingli($request, $response) {/*{{{*/ header('Content-Type: text/html; charset=gbk'); $domain = $request->getRequest('domain', URL_PREFIX.'zixun.haodf.com'); $type = $request->getRequest('type', 'qita'); $typeList = PatientAttachment::$typeList; $typeDetail = $typeList[$type]; $tplContent = ''; if($typeDetail['type'] == PatientAttachment::TYPE_HUAYANDAN) { $tplContent = BingLiTpl::getTplContent($type); } $response->typeDetail = $typeDetail; $response->tplContent = $tplContent; $response->type = $type; $response->domain = $domain; //随访复查用 $questionCategoryId = ''; $questionCategoryId = $request->questionCategoryId; $response->questionCategoryId = $questionCategoryId; $response->userId = $request->userId; //多患者 $patientId = $request->patientId; $response->patientId = $patientId; if(false == empty($patientId)) { //传过来patient以后,要用patient的user $patient = DAL::get()->find('Patient', $patientId); $user = $patient->user; $response->userId = $user->id; } if(null != $request->hoskey) { $dateyear = $request->dateyear; $datemonth = $request->datemonth; $dateday = $request->dateday; $hosInfo = AskSessionInfo::getSinglePatientInfos(NodeObj::NODE_DEFINE_HOSPITAL, $request->hoskey); $date = AskSessionInfo::assembleDate($dateyear, $datemonth, $dateday); $response->date = $date; $response->hosKey = $request->hoskey; $itemName = $request->projectname; $response->itemName = $this->js_unescape($itemName); $response->hospitalName = isset($hosInfo->hospitalName)?$hosInfo->hospitalName:''; $response->facultyName = isset($hosInfo->facultyName)?$hosInfo->facultyName:''; } if($request->bingli4space) { return 'space'; } else { return 'default'; } }/*}}}*/