* ajax拉取信息 * * ajaxGet 规范: ajaxId为该模块的ID; */ public function getInfo_Action() { $model = $this->getInput['model']; switch ($model) { case 'project': $baseInfo = control_baseMoney::getBaseInfo(intval($this->getInput['ajaxId'])); showmsg(control_returnCode::ALWAYS_TRUE, array('baseName' => $baseInfo[control_baseMoney::TABLE_KEYNAME], 'baseMoney' => $baseInfo[control_baseMoney::TABLE_BASEMONEY], 'runMoney' => $baseInfo[control_baseMoney::TABLE_RUNMONEY])); break; case 'projectlog': list($total, $baseLogInfo) = control_baseMoney::getLogList(intval($this->getInput['ajaxId']), 1, 10); $this->defaultTemplate = 'admin/project/log'; $this->modelDisplay(array('baseLogInfo' => $baseLogInfo)); break; case 'searchClient': $query = $this->getInput['query']; list($total, $list) = control_user::getListByKeyword($query, 1, 10); foreach ($list as $user) { $jsonList[] = array('keyName' => $user[control_user::TABLE_REALNAME], 'key' => (string) $user[control_user::TABLE_UNIONKEY]); } echo json_encode($jsonList); break; default:
public function clientlist_Action() { $baseId = intval($this->getInput['baseId']); $baseInfo = control_baseMoney::getBaseInfo($baseId); list(, $clientList) = control_userBase::getPlanUserHaveList($baseId); foreach ($clientList as $client) { $uids[] = $client[control_userBase::TABLE_USERID]; } $clientMoreInfoList = control_user::getUserListByIds($uids); $this->modelDisplay(array('baseId' => $baseId, 'baseInfo' => $baseInfo, 'clientList' => $clientList, 'clientInfo' => $clientMoreInfoList)); }