Exemplo n.º 1
0
if (!$dto->deleted) {
    ?>
            	<td class="t_top t_bg" width="5%">电话<br>核实</td>
                <?php 
}
?>
            	<td class="t_top t_bg" width="9%">操作</td>
            </tr>

 <?php 
foreach ($itemList as $key => $item) {
    /*{{{*/
    if ($dto->record) {
        $doctorComment = $item;
        if (isset($showtype) && $showtype) {
            $doctorComment = InspectorDoctorCommentListHelper::getDoctorComment($item);
        }
    } else {
        $doctorComment = $item;
    }
    if ($doctorComment->isNull()) {
        continue;
    }
    if (isset($spaceList[$doctorComment->userId]) && !$spaceList[$doctorComment->userId]->isNull()) {
        $space = $spaceList[$doctorComment->userId];
    } else {
        $space = new NullEntity();
    }
    $ip = $doctorComment->ip;
    $templ = XIpLocation::getLocation($ip);
    $ipLocation = "{$templ['country']} {$templ['area']}";
Exemplo n.º 2
0
 public function findList()
 {
     /*{{{*/
     $nowPage = $this->request->getRequest('page', 1);
     $group = DoctorCommentInspectRule::getDoctorCommentGroup();
     $groupId = $this->request->groupid ? $this->request->groupid : $group->id;
     if ($this->request->showtype) {
         $recordListAndPageInfo = InspectClient::getInstance()->getInspectorRecordList($nowPage, 50, $this->request->inspectorid, $groupId);
     } else {
         $recordListAndPageInfo = DoctorCommentClient::getInstance()->getDoctorCommentListForInspector($nowPage, self::PAGE_SIZE, $this->request->inspectorid, $groupId, $this->getOptions());
         self::$doctorCommentList = $recordListAndPageInfo['list'];
     }
     $this->res = $recordListAndPageInfo;
     $dcIds = array();
     foreach ($this->getDoctorCommentList() as $doctorComment) {
         $dcIds[] = $doctorComment->id;
     }
     if (false == empty($dcIds)) {
         $this->response->inspectResultInfos = InspectClient::getInstance()->getInspectResultInfos($dcIds);
     }
     return $this;
 }