mode_leavehrAction.php 539 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * 此文件是流程模块【leavehr.考勤信息】对应接口文件。
  4. */
  5. class mode_leavehrClassAction extends inputAction{
  6. public function totalAjax()
  7. {
  8. $uid = (int)$this->post('uid','0');
  9. $start = $this->post('stime');
  10. $end = $this->post('etime');
  11. $kq = m('kaoqin');
  12. $sj = 0;
  13. $sbtime = $kq->getworktime($uid, $start); //一天上班小时
  14. return array($sj, '', $sbtime);
  15. }
  16. protected function saveafter($table, $cans, $id, $addbo){
  17. m('flow:leave')->updateenddt();
  18. }
  19. }
粤ICP备19079148号