信呼OA版本v2.3.8
This commit is contained in:
25
webmain/flow/input/mode_hrpositiveAction.php
Normal file
25
webmain/flow/input/mode_hrpositiveAction.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
//转正
|
||||
class mode_hrpositiveClassAction extends inputAction{
|
||||
|
||||
|
||||
protected function savebefore($table, $arr, $id, $addbo)
|
||||
{
|
||||
$uid = $arr['uid'];
|
||||
if(m($table)->rows('id<>'.$id.' and `uid`='.$uid.' and `status` not in(5)')>0)return '您已申请过了';
|
||||
}
|
||||
|
||||
|
||||
protected function saveafter($table, $arr, $id, $addbo){
|
||||
|
||||
}
|
||||
|
||||
public function getuserinfoAjax()
|
||||
{
|
||||
$urs = m('admin')->getone($this->adminid,'ranking,workdate');
|
||||
$urs['syenddt'] = '';
|
||||
if(!isempt($urs['workdate']))$urs['syenddt'] = c('date')->adddate($urs['workdate'],'m',3);
|
||||
$this->returnjson($urs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user