private function saveHopeHelpInfoNotTreated($request, $response)
 {/*{{{*/
     if(XString::getLengthOfGBKString($_REQUEST['hopeHelp'])<10 || XString::getLengthOfGBKString($_REQUEST['hopeHelp'])>1000)
     {
         throw new BizException('请控制需要得到的帮助在10~1000字之间');
     }
     $hopeHelp = BingLiDto::createHopeHelpDto(ltrim($request->hopeHelp));
     $hopeHelpKey = AskSessionInfo::addPatientInfo(BingLiDto::NODE_DEFINE_HOPEHELP, $hopeHelp);
     $this->bindHopeHelp($hopeHelpKey);
 }/*}}}*/
 private function saveMedicineExperience($request, $response)
 {/*{{{*/
     $request->medicineName = $request->medname;
     $request->medicineDesc = $request->meddesc;
     $medicine = $this->collectMedicineInfo($request, $response); 
     $response->medicineName = $request->medicineName;
     $response->medicineDesc = $request->medicineDesc;
     $medicineKey = AskSessionInfo::addPatientInfo(NodeObj::NODE_DEFINE_MEDICINE, $medicine);
     $response->medicineKey = $medicineKey;
 }/*}}}*/
	public function addAttach($request, $response)
	{/*{{{*/
		if (isset($_FILES['attach'])) {
            $file = $_FILES['attach'];
            if ($file['error']==0) {
                $file['name'] = XString::convertToGbk($file['name']);
                $file['name'] = TuClient::getInstance()->checkFileSuffixName($file);
                $filePath = TuClient::getInstance()->uploadAttach($file);
                if(empty($filePath))
                {
                    exit();
                }
                if($this->_newUser->isNull())
                {
                    $this->_newUser = DAL::get()->find('user',PatientAttachment::DEFAULT_USERID);
                }
                $attach = AttachClient::getInstance()->addAttach($this->_newUser->id, $file['name'], $filePath, $file['type'], $file['size'], Attachment::TYPE_JPG, '', '');
                // 传入默认的patientid
                $user = $this->_newUser;
                $patientId = $request->patientId;
                if(empty($patientId) || $patientId == "all")
                {
                    $patientId = PatientAttachment::DEFAULT_PATIENTID;
                } else
                {
                    //传过来patient以后,要用patient的user
                    $patient = DAL::get()->find('Patient', $patientId);
                    $user = $patient->user;
                }
                $checkTime = $request->date;
                $hospitalId = $request->hoskey;
                $hospitalName = $request->hospitalName;
                $facultyName = $request->facultyName;
                $itemName = $request->itemName;
                $hospitalId   = isset($hospitalId)?$hospitalId:'';
                $checkTime    = isset($checkTime)?$checkTime:'';
                $hospitalName = isset($hospitalName)?$hospitalName:'';
                $facultyName  = isset($facultyName)?$facultyName:'';
                $itemName     = isset($itemName)?$itemName:'';
				$bingLi = BingLiClient::getInstance()->addBingLi($user->id, $patientId, '', PatientAttachment::TYPE_PIC, 0, '', $checkTime, $attach->id, $hospitalName, $facultyName, $itemName, $hospitalId);
                $patientAttachment = BingLiDto::createPatientAttachmentDto($bingLi->id, $hospitalId, $patientId);
                AskSessionInfo::addPatientInfo(NodeObj::NODE_DEFINE_ATTACHMENT, $patientAttachment);

                //随访复查报告
                $ticketId= $request->ticketid;
                if(isset($ticketId))
                {
                    if(CheckupTicket::NONE_TICKETID != $ticketId)
                    {
                        echo "<script>parent.addCheckupReportLeft($ticketId,$bingLi->id)</script>";
                    }
                    else
                    {//无指定复查直接上传附件
                        echo "<script>parent.afterUpload();</script>";
                    }
                }
                else
                {
                    echo "<script>parent.tb_remove();parent.showMyAttach('el_my_attachment', 0, '".$bingLi->id."');</script>";
                }
			}
		}
        return parent::DIRECT_OUTPUT;
	}/*}}}*/