public function showBestSpaceUnnormalList($request, $response)
 {
     /*{{{*/
     $nowPage = (int) $request->getRequest('page', 1);
     $pageSize = 100;
     $day = $request->day;
     // $infos = DAL::get()->queryUnnormalSpaceInfos('bestspaceunnormal', $day);
     $res = DzoneClient::getInstance()->queryUnnormalSpaceInfos($day, $nowPage, $pageSize);
     $infos = DAL::get()->find('space', $res['ids']);
     $response->pagelink = '';
     if (false == empty($res['pageInfo'])) {
         $response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate('/doctormanager/showbestspaceunnormallist?day=' . $day . '&page='), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
     }
     $response->infos = $infos;
     $response->day = $day;
 }
Ejemplo n.º 2
0
    public function modifyFundPercent($request, $response)
    {/*{{{*/
        $percent = $request->percent;
        $space = DAL::get()->find("space", $request->spaceId);
        $fundApply = DAL::get()->find_by_spaceid("fundApply", $space->id);
        if($fundApply->status != FundApply::STATUS_AUDITING && false == empty($percent))
        {
            DBC::requireTrue($percent < 100 && $percent >= 0, '请输入0至99的整数!');
            DzoneClient::getInstance()->updatePercent($space->id, $percent, $this->curUser);
        }
		$response->setRedirect($response->router->urlfor('account/fundupdatepercent', array('spaceId'=>$space->id)));
    }/*}}}*/