custplanModel.php 789 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. //客户.跟进计划
  3. class agent_custplanClassModel extends agentModel
  4. {
  5. //状态显示替换
  6. protected function agentrows($rows, $rowd, $uid)
  7. {
  8. $ztarr = $this->flow->getstatusarr();
  9. foreach($rowd as $k=>$rs){
  10. $ztarra = $ztarr[$rs['statusval']];
  11. $rows[$k]['statustext'] = $ztarra[0];
  12. $rows[$k]['statuscolor'] = $ztarra[1];
  13. }
  14. return $rows;
  15. }
  16. public function gettotal()
  17. {
  18. $stotal = $this->gettotalss($this->adminid);
  19. $titles = '';
  20. return array('stotal'=>$stotal,'titles'=> $titles);
  21. }
  22. private function gettotalss($uid)
  23. {
  24. $to = m('custplan')->rows('`uid`='.$uid.' and `status`=0');
  25. return $to;
  26. }
  27. protected function agenttotals($uid)
  28. {
  29. return array(
  30. 'mywwc' => $this->gettotalss($uid)
  31. );
  32. }
  33. }
粤ICP备19079148号