private function doOrderExecuteOnConf($request, $response) {/*{{{*/ $orderid = $request->orderid; $order = DAL::get()->find('telorder', $orderid); $this->returnConditionDesc($response, $order->id); $owner = $order->executer; $patient = $order->patient; $doctor = $order->executer->relatedObject->space->host; $curOwner = $this->currentOwner;//这个是管理员 $adminTelephone = DAL::get()->find_by_ownerid('AdminTelephone',$curOwner->id); DBC::requireFalse($adminTelephone->isNull(), '请绑定坐席电话'); $response->order = $order;//订单 $response->patient = $patient;//患者 $response->owner = $owner;//医生 $response->doctor = $doctor;//医生信息 $response->curOwner = $curOwner;//管理员 $response->adminTelephone = $adminTelephone; $phones = $this->filterEmptyPhone(array($adminTelephone->telselected, $order->patientPhone, $order->patient->mobile, $patient->phone, $patient->backupPhone, $owner->getSpaceExt()->phone1, $owner->getSpaceExt()->phone2, $owner->getSpaceExt()->phone3)); $admin = new NullEntity(); $partner1 = new NullEntity(); $partner2 = new NullEntity(); $teleconf = phoneConferenceClient::getInstance()->getInitPhoneConf($order->id); $response->teleconf = $teleconf; $this->checkConfCanExecute($order->id, $teleconf, $request, $response); $consultConf = new ConsultPhoneConference($teleconf); $controlButton = TeleconfControlButton::init($consultConf); if (false == $teleconf->isNull()) { $admin = $consultConf->getPartnerByRole(ConferenceMember::ADMIN); $partner1 = $consultConf->getPartnerByRole(ConferenceMember::PARTNER1); $partner2 = $consultConf->getPartnerByRole(ConferenceMember::PARTNER2); } $response->admin = $admin; $response->partner1 = $partner1; $response->partner2 = $partner2; $response->controlButton = $controlButton; $errorMsgs = array(); $errorMsgs = $this->checkPhoneNumber($phones, $errorMsgs); $response->errorMsgs = $errorMsgs; $phoneStatus = DAL::get()->queryPhoneStatus('ConferenceMember',$phones); $response->phoneStatus = $phoneStatus; $response->disease = $order->diseaseDesc; $infos = BingLiDtoClient::getInstance()->getBingLiByRelatedObj($order->notification->proposal); $attachmentIds = array(); if (false == empty($infos->patientAttachment)) { foreach ($infos->patientAttachment as $pa) { $attachmentIds[] = $pa->patientAttachmentId; } } $response->attachmentIds = $attachmentIds; }/*}}}*/
public function orderDetail4TeleConf($order, $request, $response) {/*{{{*/ $response->teleConfProviderList = DAL::get()->find_all_by_apptype('teleconfprovider', TeleConfProvider::APPTYPE_CONF); $response->createdTeleconf = phoneConferenceClient::getInstance()->getInitPhoneConf($order->id); $orderExecuteInfo = DAL::get()->find_by_orderid('TelOrderExecuteInfo', $order->id); $orderExecutedConfType = ""; if(false == $orderExecuteInfo->isNull()) { $orderExecutedConfType = "(".implode($orderExecuteInfo->getExecuteConfTypeList(), ",").")"; } $response->orderExecutedConfType = $orderExecutedConfType; $owner = DAL::get()->find_by_relatedobjectid('TelOwner', $this->curUser->id); $admintelephone = DAL::get()->find_by_ownerid('admintelephone', $owner->id); $response->adminPhone = $admintelephone->telselected; }/*}}}*/