public function followupPatientQuery($request, $response)
 {
     /*{{{*/
     $searchVars = $request->vars;
     if ('true' == $searchVars['search']) {
         $params = array();
         foreach ($searchVars as $k => $v) {
             if ('' != $v) {
                 $params[$k] = $v;
             }
         }
         $params['agreed'] = FollowupOwner::TERMS_AGREED_NO;
         $page = $request->getRequest('page', 1);
         $count = 15;
         $res = FollowupClient::getInstance()->getPatientSignin4Audit($page, $count, $params);
         $response->patientSigninList = $res['list'];
         $response->pagelink = '';
         if (false == empty($res['pageInfo'])) {
             $response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate('/followup/followuppatientquery?' . http_build_query(array('vars' => $searchVars)) . '&page='), $page, $count, $res['pageInfo']['total']);
         }
     } else {
         if ($this->auditor->isFollowupAuditor()) {
             $searchVars['auditorid'] = $this->auditor->id;
         } else {
             $searchVars['auditorid'] = '';
         }
         $searchVars['patientname'] = '';
         $searchVars['patientmobile'] = '';
         $searchVars['spacename'] = '';
         $searchVars['doctorpatientrefid'] = '';
         $searchVars['paystatus'] = '';
         $searchVars['diseaseid'] = '';
         $searchVars['servicePeriod'] = '';
         $searchVars['manageStage'] = '';
         $searchVars['manageStageStatus'] = '';
         $searchVars['manageStageStartDateBegin'] = '';
         $searchVars['manageStageStartDateEnd'] = '';
         $searchVars['lastDiaryDateBegin'] = '';
         $searchVars['lastDiaryDateEnd'] = '';
     }
     $response->searchVars = $searchVars;
     $response->followupAuditorList = FollowupOwner::getFollowupAuditors();
     $diseaseList = DAL::get()->find_all('NfsDisease');
     $response->diseaseList = $diseaseList;
 }
Exemplo n.º 2
0
 public function auditingTrackList($request, $response)
 {
     /*{{{*/
     $options = array();
     $customerName = $request->customerName;
     $options['customerName'] = trim($customerName);
     $response->customerName = $customerName;
     $executeAuditorId = $request->executeAuditorId;
     $response->executeAuditorId = $executeAuditorId;
     $options['executeAuditorId'] = DAL::get()->find_id_by_auditorid('FollowupAuditor', $executeAuditorId);
     $auditStatus = $request->auditStatus;
     $response->auditStatus = $auditStatus;
     $tracks = array();
     if ('yes' == $request->search) {
         if (Track::OVERDUE_UNAUDITED == $auditStatus) {
             $tracks = TrackClient::getInstance()->getOverDueAndUnAuditedTracks($options);
             $response->searchType = Track::OVERDUE_UNAUDITED;
         } elseif (Track::DONE_UNAUDITED == $auditStatus) {
             $tracks = TrackClient::getInstance()->getDoneAndUnAuditedTracks($options);
             $response->searchType = Track::DONE_UNAUDITED;
         } elseif (Track::OVERDUE_AUDITED == $auditStatus) {
             $tracks = TrackClient::getInstance()->getOverDueAndAuditedTracks($options);
             $response->searchType = Track::OVERDUE_AUDITED;
         } elseif (Track::DONE_AUDITED == $auditStatus) {
             $tracks = TrackClient::getInstance()->getDoneAndAuditedTracks($options);
             $response->searchType = Track::DONE_AUDITED;
         }
     }
     $response->tracks = $tracks;
     $response->followupAuditors = FollowupOwner::getFollowupAuditors();
 }
 public function ticketQuery($request, $response)
 {
     /*{{{*/
     $searchVars = $request->vars;
     if ('true' == $searchVars['search']) {
         $params = array();
         foreach ($searchVars as $k => $v) {
             if ('' != $v) {
                 $params[$k] = $v;
             }
         }
         // 如果以后查其它类型的工单,从界面传过来即可,现在只查健康日记工单
         $params['hostType'] = 'HealthDiary';
         $page = $request->getRequest('page', 1);
         $count = 15;
         $res = NfsAuditClient::getInstance()->getTicketList4Audit($page, $count, $params);
         $response->ticketList = $res['list'];
         $response->pagelink = '';
         if (false == empty($res['pageInfo'])) {
             $response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate('/healthrecord/ticketquery?' . http_build_query(array('vars' => $searchVars)) . '&page='), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
         }
     } else {
         $searchVars['passDateBegin'] = '';
         $searchVars['passDateEnd'] = '';
         $searchVars['auditorId'] = '';
         $searchVars['reviewAuditorId'] = '';
         $searchVars['reviewResult'] = '';
     }
     $response->searchVars = $searchVars;
     $response->followupAuditorList = FollowupOwner::getFollowupAuditors();
 }
Exemplo n.º 4
0
 public function vipOrFreeTaskList($request, $response)
 {
     /*{{{*/
     $payType = $request->paytype;
     $params['paytype'] = $payType;
     $response->payType = $payType;
     $userName = $request->username;
     $params['username'] = $userName;
     $response->userName = $userName;
     $taskModelId = $request->taskmodelid;
     $params['taskmodelid'] = $taskModelId;
     $response->taskModelId = $taskModelId;
     $serviceauditorid = $request->serviceauditorid;
     $params['serviceauditorid'] = $serviceauditorid;
     $response->serviceauditorid = $serviceauditorid;
     $statusArr = $request->getRequest('statusarr', array());
     if ($statusArr == array()) {
         echo '请返回并选择任务完成状态!<br />[<a href="javascript:history.back(-1);">返回</a>]';
         return parent::DIRECT_OUTPUT;
     }
     $params['statusarr'] = $statusArr;
     $response->statusArr = $statusArr;
     $deadline = $request->getRequest('deadline', XDateTime::today()->toShortString());
     $params['deadline'] = $deadline;
     $response->deadline = $deadline;
     $page = $request->getRequest('page', 1);
     $count = 15;
     $res = TaskClient::getInstance()->getHasNfsTaskOwnerList($page, $count, $params);
     $response->followupOwnerList = $res['list'];
     $response->pagelink = '';
     $response->taskModelList = TaskClient::getInstance()->getTaskModelList();
     if (false == empty($res['pageInfo'])) {
         $response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate('/task/viporfreetasklist?' . http_build_query($params) . '&page='), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
     }
     //负责任务备注栏的显示
     $ownerList = $res['list'];
     $firstTaskList = array();
     foreach ($ownerList as $owner) {
         if (false == $owner->user->isNull()) {
             $firstTaskList[$owner->user->name] = TaskClient::getInstance()->getOwnerFirstTask($owner->user->id);
         }
     }
     $response->serviceAuditorList = FollowupOwner::getFollowupAuditors();
     $response->firstTaskList = $firstTaskList;
 }