custfkdModel.php 785 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. //客户.付款单的应用
  3. class agent_custfkdClassModel extends agentModel
  4. {
  5. //状态显示替换
  6. protected function agentrows($rows, $rowd, $uid)
  7. {
  8. $statea = $this->flow->statearrf;
  9. foreach($rowd as $k=>$rs){
  10. $state = $rs['paystatus'];
  11. $ztarr = $statea[$state];
  12. $rows[$k]['statustext'] = $ztarr[0];
  13. $rows[$k]['statuscolor'] = $ztarr[1];
  14. $rows[$k]['modenum'] = 'custfinb';
  15. }
  16. return $rows;
  17. }
  18. public function gettotal()
  19. {
  20. $stotal = $this->getwdtotal($this->adminid);
  21. $titles = '';
  22. return array('stotal'=>$stotal,'titles'=> $titles);
  23. }
  24. private function getwdtotal($uid)
  25. {
  26. $where = '`uid`='.$uid.' and `type`=1 and `ispay`=0';
  27. $stotal = m('custfina')->rows($where);
  28. return $stotal;
  29. }
  30. }
粤ICP备19079148号