public function taskList($request, $response) { /*{{{*/ $page = $request->getRequest('page', 1); $pageSize = 20; $response->buParentGroupList = DAL::get()->find_all_parent('buinspectgroup'); $response->initialParentGroupList = DAL::get()->find_all_parent('initialinspectgroup'); $response->saleParentGroupList = DAL::get()->find_all_parent('saleinspectgroup'); $dto = $this->getTaskDto($request); $res = SearchIndexClient::getInstance()->getIntentionTaskList($dto, $page, $pageSize); $response->taskDtoList = $res['list']; $response->pageInfo = $res['pageInfo']; $response->pageLink = $this->getTaskListPageLink($res, $request); $response->status = $request->status; $response->groupName = $request->groupname; $response->groupType = $request->grouptype; $response->userName = $request->username; $response->mobile = $request->mobile; $response->src = $request->tasksrc; $response->inspectorName = $request->inspectorname; $response->bindTime = $request->bindtime; $response->createInspectorName = $request->createinspectorname; $curGroup = NullEntity::create(); $groupName = $request->groupname; $groupType = $request->grouptype; if (false == empty($groupName) && false == empty($groupType)) { $curGroup = DAL::get()->find_by_name_and_type('inspectgroup', $groupName, $groupType); } $response->curGroup = $curGroup; }
public function showDownloadContactDoctorTaskList($request, $response) { /*{{{*/ $this->delContactDoctorTaskParams($request, $response); $nowPage = (int) $request->getRequest('p', 1); $pageSize = 100; $paramStr = $this->httpBuildQuery($request, $response); $inspectorName = $request->inspectorname; $inspectorIds = array(); if (false == empty($inspectorName)) { $inspectorIds = DAL::get()->find_id_byRealNameOrUserName('inspector', $inspectorName); if (empty($inspectorIds)) { $inspectorIds = array(-1); } } $dto = $this->getHospitalContactDoctorTaskDto($request, $response, $inspectorIds); $res = SearchIndexClient::getInstance()->getHospitalContactDoctorTaskList($dto, $nowPage, $pageSize); if (empty($res['pageInfo']) == false) { $url = "/doctormanager/showdownloadcontactdoctortasklist?{$paramStr}"; $pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate($url . "&p="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']); } $response->searchIndex = $res['list']; $response->pageLink = $pageLink; $response->pageInfo = $res['pageInfo']; $response->isForSearch = true; $response->searchDoctor = true; $response->searchDistrict = true; $response->search4Status = HospitalContactDoctorTask::getAllStatus(); }