projectModel.php 624 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. //项目的应用
  3. class agent_projectClassModel extends agentModel
  4. {
  5. public function gettotal()
  6. {
  7. $stotal = $this->getwdtotal($this->adminid);
  8. $titles = '';
  9. return array('stotal'=>$stotal,'titles'=> $titles);
  10. }
  11. private function getwdtotal($uid)
  12. {
  13. $to = m('flow')->initflow('project')->getflowrows($uid,'wwc', 0);
  14. return $to;
  15. }
  16. //显示页面未完成数量
  17. protected function agenttotals($uid){
  18. return array(
  19. 'wwc' => $this->getwdtotal($uid)
  20. );
  21. }
  22. protected function agentrows($rows, $rowd, $uid){
  23. return $this->agentrows_status($rows, $rowd);
  24. }
  25. }
粤ICP备19079148号