1
0

mode_hrtransferAction.php 550 B

12345678910111213141516171819202122
  1. <?php
  2. //人事调动
  3. class mode_hrtransferClassAction extends inputAction{
  4. protected function savebefore($table, $arr, $id, $addbo){
  5. $tranuid = $arr['tranuid'];
  6. if(m($table)->rows("`tranuid`='$tranuid' and `id`<>'$id' and `status` not in(1,5)")>0)return '该人员已申请过了';
  7. }
  8. protected function saveafter($table, $arr, $id, $addbo){
  9. }
  10. public function chenguserAjax()
  11. {
  12. $sid = $this->post('sid','0');
  13. $rs = m('admin')->getone($sid, 'ranking,deptname,workdate');
  14. $this->returnjson($rs);
  15. }
  16. }
粤ICP备19079148号