public function refundTaskList($request, $response)
 {
     /*{{{*/
     $page = $request->page ? $request->page : 1;
     $response->page = $page;
     $pageSize = 100;
     $response->pageSize = $pageSize;
     $taskStatus = TelTask::transStatusOrTypeArray2String(TelTask::$telTaskStatus4Refund);
     $taskType = $request->taskType ? $request->taskType : TelTask::transStatusOrTypeArray2String(TelTask::$telTaskType4Refund);
     $timeField = "ctime";
     $params = array('taskStatus' => $taskStatus, 'taskType' => $taskType, 'timeField' => $timeField, 'sourceUserName' => $request->sourceUserName, 'searchBeginTime' => $request->searchBeginTime, 'searchEndTime' => $request->searchEndTime);
     $res = TelTaskClient::getInstance()->getTelTaskList($page, $pageSize, $params);
     $telTaskList = $res['tasklist'];
     $response->telTaskList = $telTaskList;
     $response->params = $params;
     if (false == empty($res['pageInfo'])) {
         $response->total = $res['pageInfo']['total'];
         $response->pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("refundtasklist?taskStatus={$taskStatus}&taskType={$taskType}&sourceUserName={$request->sourceUserName}&searchBeginTime={$request->searchBeginTime}&searchEndTime={$request->searchEndTime}&page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
     }
 }
Esempio n. 2
0
     <input type="text" name="userName" value="<?=isset($params['userName'])?$params['userName']:""?>" class="input110" />
     <span>任务电话</span>
     <input type="text" name="telNo" value="<?=isset($params['telNo'])?$params['telNo']:''?>" class="input110" />
     <input type="hidden" value="<?=$isForLeader?>" name="isForLeader">
     <input type="hidden" value="<?=$isForMember?>" name="isForMember">
     <input type="hidden" value="<?=$isAllForMember?>" name="isAllForMember">
 </div>
<?php if(false == $isForMember) 
{ ?>
 <div class="ml2">
     <span>任务状态<span>
     <select id="taskStatus" name="taskStatus">
     <?php if($isForLeader || $isForMember) { ?>
     <option value="<?=TelTask::STATUS_UN_FOLLOW.",".TelTask::STATUS_IN_FOLLOW?>" <?=$params['taskStatus']==(TelTask::STATUS_UN_FOLLOW.",".TelTask::STATUS_IN_FOLLOW)?'selected':''?>>全部</option>
     <option value="<?=TelTask::STATUS_UN_FOLLOW?>" <?=( $params['taskStatus']!=(TelTask::STATUS_UN_FOLLOW.",".TelTask::STATUS_IN_FOLLOW)&& TelTask::STATUS_UN_FOLLOW==$params['taskStatus'])?'selected':''?>><?=TelTask::getTaskStatusByValue(TelTask::STATUS_UN_FOLLOW)?></option>
     <option value="<?=TelTask::STATUS_IN_FOLLOW?>" <?=($params['taskStatus']!=(TelTask::STATUS_UN_FOLLOW.",".TelTask::STATUS_IN_FOLLOW) && TelTask::STATUS_IN_FOLLOW==$params['taskStatus'])?'selected':''?>><?=TelTask::getTaskStatusByValue(TelTask::STATUS_IN_FOLLOW)?></option>
     <?php }else{ ?>
     <option value="">全部</option>
     <?php foreach(TelTask::$telTaskStatusDesc as $key=>$title){?>
     <option value="<?=$key?>" <?=(''!=$params['taskStatus'] && $key==$params['taskStatus'])?'selected':''?>><?=$title?></option>
     <?php } ?>
     <?php } ?>
     </select>
     <span class="ml5">类型</span>
     <select name="taskType">
     <option value="" >全部</option>
     <?php foreach(TelTask::$telTaskType4Saler as $taskTypeKey=>$taskTypeValue) { ?>
     <option value="<?=$taskTypeKey?>" <?=($taskTypeKey == $taskType) ? 'selected':''?>><?=$taskTypeValue?></option>
     <?php } ?>
     </select>
    <span class="ml5">分组</span>
Esempio n. 3
0
<div>
  <div class="orderDetails-t" >
  <span>当前任务:<a href="<?=$router->urlfor('teltask/showteltask',array('taskid'=>$telTask->id))?>" title="点击可刷新页面"><?=$telTask->id?></a></span>
    <span class="mr10">电话:<span style="font-size:14px;color:red;font-weight:bold;"><?=$telTask->telNo?></span>
    <a href="http://callcenter.haodf.com/operator/index?phonenumber=<?=$telTask->telNo?>" target="_blank"><img title="呼叫" class="cp" src="http://i1.hdfimg.com/callcenter/images/icon01.png"></a></span>
    <span class="ml10">状态:<span class="fb"><?=$telTask->getTaskStatusTitle()?></span></span>
    <span class="ml10">类型:<span class="fb"><?=$telTask->getTaskTypeTitle()?></span></span>
    <span class="ml10">任务发起人:<?=$telTask->assignerUser->name?></span>
    <span class="ml10">建立时间:<?=$telTask->ctime->toString()?></span>
    <span class="fr f20">
    <?php if($canEdit){echo "<a href='".$router->urlfor('teltask/teltaskinfo',array('taskid'=>$telTask->id))."' target='_blank'>编辑</a>" ;}?>
    <input type="button" value="刷新" onclick="window.location.reload()" class="ml5"/>
    </span>
    <div>
    <span class="mr10">任务目的:<?=$telTask->getPurposeTitle()?></span>
    <span class="ml10">来源URL:<?=preg_replace($pregReg,$replaceReg,TelTask::getSrcUrl($telTask->taskSrcType, $telTask->sourceEntity))?></span>
    </div>
    <div>
    任务执行人:<span id="taskExeUserName"><?=$executerUserName?></span>
    <span class="ml10">下次联系时间:<span class="fb"><?=$telTask->getNextContactTimeTitle()?></span></span>
    <span class="ml10">过期时间:<span class="fb"><?=$telTask->expirationTime?></span></span>
    </div>
    <?php if($isLeader) { ?>
    <div>
    重新分配执行人:    
    <select name="exeUserName" id="exeUserName">
        <option value="">不改变</option>
        <?php foreach(PaymentInterceptor::$telTaskSaler as $sUserName=>$sRealName) { ?>
            <option value="<?=$sUserName?>"><?=$sRealName?></option>
        <?php } ?>
    </select>
 public function telTaskList4Presale($request,$response)
 {/*{{{*/
     if(false == in_array($this->curUser->name,PaymentInterceptor::$preSaleUser) 
         && false == in_array($this->curUser->name,PaymentInterceptor::$professionalUser))
     {
         echo "权限不足";
         exit;
     }
     $page =  $request->page ? $request->page : 1;
     $response->page = $page;
     $pageSize = 20;
     $response->pageSize = $pageSize;
     $taskStatus = (string)TelTask::STATUS_UN_FOLLOW;
     $professionalGroup = PaymentInterceptor::$preSaleUserGroup[$this->curUser->name];
     $taskType = $request->taskType?$request->taskType : TelTask::transStatusOrTypeArray2String(TelTask::$telTaskType4Saler);
     $response->taskType = $request->taskType;
     $params = array(
         'taskStatus'=> $taskStatus,
         'presaleUserId'=>(string)TelTask::SOLUTIONSTATUS_NONE,
         'telNo'=>$request->telNo,
         'taskType'=>$taskType,
         'professionalGroup'=>$professionalGroup
         );
     $res = TelTaskClient::getInstance()->getTelTaskList($page,$pageSize,$params);
     $telTaskList = $res['tasklist'];
     $response->telTaskList = $telTaskList;
     $response->action = $request->action;
     $response->params = $params;
     if (false == empty($res['pageInfo']))
     {
         $response->total = $res['pageInfo']['total'];
         $response->pageLink = PageNav::getNavLink(
             PageNav::getPageNavTemplate("teltasklist4presale?taskStatus=$taskStatus&telNo=$request->telNo&taskType=$request->taskType&page="),
             $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'],
             $res['pageInfo']['total']);
     }       
 }/*}}}*/
            }
        }
        else
        {
            $curExecuterTotal += $lineSum; 
        }
        $cntWaiting += $taskStatusInfo['waiting'];
        $cntDoing += $taskStatusInfo['doing'];
        $cntDone += $taskStatusInfo['done'];
?>
        <tr>
        <td width="100">
        <?=$curExecuterUserName ?>
        </td>
        <td width="100">
        <span><?=TelTask::getTaskTypeDesc($taskStatusInfo['tasktype']);?>:</span>
        </td>
        <td width="100">
        <span>未跟进 <?=$taskStatusInfo['waiting'];?></span>
        </td>
        <td width="100">
        <span>跟进中 <?=$taskStatusInfo['doing'];?></span>
        </td>
        <td width="100">
        <span>已处理 <?=$taskStatusInfo['done'];?></span>
        </td>
        <td width="100" class="green">
        <span><?=$lineSum?></span>
        </td>
        </tr>
    <?php } ?>