信呼OA版本v2.3.8
This commit is contained in:
17
webmain/flow/input/mode_hrtrsalaryAction.php
Normal file
17
webmain/flow/input/mode_hrtrsalaryAction.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
//调薪申请
|
||||
class mode_hrtrsalaryClassAction extends inputAction{
|
||||
|
||||
protected function savebefore($table, $arr, $id, $addbo){
|
||||
$uid = $arr['uid'];
|
||||
$floats = (int)$arr['floats'];
|
||||
if($floats==0)return '调薪幅度不能为0';
|
||||
if(m($table)->rows("`uid`='$uid' and `id`<>'$id' and `status` not in(1,5)")>0)return '已有一单在申请中';
|
||||
}
|
||||
|
||||
|
||||
protected function saveafter($table, $arr, $id, $addbo){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user