信呼OA版本v2.3.8
This commit is contained in:
38
webmain/model/agent/custplanModel.php
Normal file
38
webmain/model/agent/custplanModel.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
//客户.跟进计划
|
||||
class agent_custplanClassModel extends agentModel
|
||||
{
|
||||
|
||||
|
||||
//状态显示替换
|
||||
protected function agentrows($rows, $rowd, $uid)
|
||||
{
|
||||
$ztarr = $this->flow->getstatusarr();
|
||||
foreach($rowd as $k=>$rs){
|
||||
$ztarra = $ztarr[$rs['statusval']];
|
||||
$rows[$k]['statustext'] = $ztarra[0];
|
||||
$rows[$k]['statuscolor'] = $ztarra[1];
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
||||
public function gettotal()
|
||||
{
|
||||
$stotal = $this->gettotalss($this->adminid);
|
||||
$titles = '';
|
||||
return array('stotal'=>$stotal,'titles'=> $titles);
|
||||
}
|
||||
|
||||
private function gettotalss($uid)
|
||||
{
|
||||
$to = m('custplan')->rows('`uid`='.$uid.' and `status`=0');
|
||||
return $to;
|
||||
}
|
||||
|
||||
protected function agenttotals($uid)
|
||||
{
|
||||
return array(
|
||||
'mywwc' => $this->gettotalss($uid)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user