예제 #1
0
 public function doctorPatientThread($request, $response)
 {/*{{{*/
     $response->title = $response->topTitle = "";
     $askSpace = AskSessionInfo::getBindSpace();
     $patient = AskSessionInfo::getBindPatient();
     $threads = array();
     if(false == empty($askSpace) && false == $askSpace->isNull() && false == $patient->isNull())
     {
         $response->askSpace = $askSpace;
         $thread = DAL::get()->find('doctorpatientref', $request->id);
         if ($thread->isNull())
         {
             $statusArr= array(Thread::STATUS_VALID,Thread::STATUS_AUDITING);
             $statusStr = implode(',', $statusArr);
             $threads = DAL::get()->find_all_by_condition('thread', 'patientid=? and spaceid=? and status in ('.$statusStr.')', array($patient->id, $askSpace->id));
             XString::sortArray($threads, 'ctime');
         }
         else
         {
             $threads[] = $thread;
         }
     }
     $response->threads = $threads;
 }/*}}}*/
예제 #2
0
 public function askFinishPageNotTreated($request, $response)
 {/*{{{*/
     $this->checkStartMarkSession($response);
     $this->checkEmptyDiseaseInfos($response);
     $response->patient = AskSessionInfo::getBindPatient();
   //  $askInfo = AskSessionInfo::getAskInfo();
     $response->askInfo = isset($askInfo['notTreatedHospital'])?$askInfo['notTreatedHospital']:'';
     $response->threadTitle = AskSessionInfo::getThreadTitle();
     $response->bindConditionDescInfo = AskSessionInfo::getBindPatientInfos(NodeObj::NODE_DEFINE_CONDITIONDESC);
     $response->bindHopeHelpInfo = AskSessionInfo::getBindPatientInfos(NodeObj::NODE_DEFINE_HOPEHELP);
     $response->bindPatientDiseaseInfo   = AskSessionInfo::getBindPatientInfos(NodeObj::NODE_DEFINE_DISEASE);
 }/*}}}*/