public function ajaxSchedule($request, $response)
	{/*{{{*/
		header('Content-Type: text/html; charset=GBK');
		$allScheduleTables = Schedule::buildAllTables(array($this->_newSpace->host));
		$allScheduleTable = $allScheduleTables[$this->_newSpace->host->primaryId];
		$response->AllScheduleTables = $allScheduleTable;
	}/*}}}*/
 public function ajaxSchedule($request, $response)
 {
     /*{{{*/
     $allScheduleTables = Schedule::buildAllTables(array($this->space->host));
     $response->allScheduleTables = $allScheduleTables[$this->space->host->primaryId];
 }
    public function showDetail($request, $response)
    {/*{{{*/
        $this->initialize($request, $response);
        $response->title =($this->doctor->hospitalfaculty->isNull()) ?  $this->doctor->name."_好大夫在线" : 
        $this->doctor->name."_".$this->doctor->hospitalfaculty->hospital->commonName.$this->doctor->hospitalfaculty->name."_好大夫在线";
        $response->topTitle = $this->doctor->name;

		$response->thankLetterCount = $this->doctor->getCureThankLetterCount();
        $response->processCount = $this->doctor->getCureExpCount();
		$diseaseList = DoctorCommentClient::getInstance()->queryCommentDiseaseGroup($this->doctor->getPrimaryDoctor());
		$response->VOTE_DISPLAY_LIMIT = self::VOTE_DISPLAY_LIMIT;
        
		//好评疾病
		$response->goodDiseaseList = DiseaseClient::getInstance()->getDiseaseDoctorList(array($this->doctor->primaryId), 50);

        //患者投票
        $response->diseaseDoctorList = DiseaseClient::getInstance()->getDiseaseDoctorList(array($this->doctor->primaryId));
        
        //文章列表
        if ($this->doctorSpaceIsOpened) 
        {
            $this->loadMoreArticle($request, $response);
        }

        //最新回复
        $this->getLatestFlow($request, $response);

        //加号
        $bookingCnt = 0;
        if ($this->doctorSpaceIsOpened) 
        {
            $res = BookingClient::getInstance()->getFinishOrderList4Space($this->space->id, 1,20);
            $orders = $res['list'];
    	    $bookingCnt = isset($res['pageInfo']['total']) ? $res['pageInfo']['total'] : 0;
            $response->bookingOrder = array_shift($orders);
        }
        $response->bookingCnt = $bookingCnt;
        
        //电话咨询订单
        $telOrderCnt = 0;
        if ($this->doctorSpaceIsOpened)
        {
            $telOwner = DAL::get()->find_by_relatedObject('telowner', $this->space->user);
            $res = TelOrderClient::getInstance()->getList(TelOrder::SEARCH_FINISHED_CLOSE, 1, 1, $telOwner->id);
            $telOrderCnt = $res['pageInfo']['total'];
            $response->telOrder = array_shift($res['list']);
        }
        $response->telOrderCnt = $telOrderCnt;

        $specialize = $this->doctor->specialize ? $this->doctor->specialize : "暂无医生擅长信息";
        $specialize = str_replace("\n", '', $specialize);
        $specialize = strip_tags(str_replace("\r", '', $specialize));
        $response->specialize = $specialize;
        $shortSpecialize = strlen($specialize) == 84 ? $specialize : XString::truncate($specialize, 84);
        $shortSpecialize = str_replace("\n", '', $shortSpecialize);
        $shortSpecialize = strip_tags(str_replace("\r", '', $shortSpecialize));
        $response->shortSpecialize = $shortSpecialize;


        $allScheduleTables = Schedule::buildAllTables(array($this->doctor));
        $allScheduleTable = $allScheduleTables[$this->doctor->primaryId];
        $shouldShowNoteDifferentMark = false;
        if (false == $this->space->isNull())
        {
            $shouldShowNoteDifferentMark = $this->space->shouldShowNoteDifferentMark();
        }
        if('' != trim($allScheduleTable['Remark']))
        {
            $shouldShowNoteDifferentMark = true;
        }
        $response->shouldShowNoteDifferentMark = $shouldShowNoteDifferentMark;
        $commentDoctor = $this->doctor->commentDoctor;
        $response->commentDoctor = $commentDoctor;
	$diseaseId = 0;
	$key = md5('haodf2014'.$this->space->id.$diseaseId);
    	$data = $this->space->id.'_'.$diseaseId.'_'.$key;  
	$response->patientSigninKey = $data;
    }/*}}}*/
	/** 我的出诊信息 */
	public function online($request, $response)
	{
		$allScheduleTables = Schedule::buildAllTables(array($this->_newSpace->host));
		$allScheduleTable = $allScheduleTables[$this->_newSpace->host->primaryId];
		$response->allScheduleTable = $allScheduleTable;
	}
 /** 出诊信息 */
 public function online($request, $response)
 {
     /*{{{*/
     $allScheduleTables = Schedule::buildAllTables(array($this->space->host));
     $response->allScheduleTable = $allScheduleTables[$this->space->host->primaryId];
     $response->subMenu = "online";
 }