-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwage_count.php
More file actions
51 lines (38 loc) · 904 Bytes
/
Copy pathwage_count.php
File metadata and controls
51 lines (38 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Created by PhpStorm.
* User: He.RO
* Date: 2017/5/23
* Time: 21:30
*/
require_once "query.php";
/* 计算职位工资 */
function count_position_wage($staff_number){
if($position_wage >= $title_wage){
return $position_wage;
} else {
return 0;
}
}
/* 计算职称工资 */
function count_title_wage() {
if($position_wage < $title_wage){
return $position_wage;
} else {
return 0;
}
}
function count_single_class_wage($course_number){
}
/* 计算单节课程工资 */
function count_single_course_wage($course_number){
}
/* 计算课程工资 */
function count_course_wage($course_number) {
/* 判断是否存在老师-课程对应关系 */
}
/* 计算总工资 */
function sum_wage($staff_number) {
return count_position_wage($staff_number)+count_course_wage($staff_number)+count_title_wage($staff_number);
}
?>