-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwork.cpp
71 lines (56 loc) · 1.08 KB
/
work.cpp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
// work.cpp
// 腾飞科创Model
//
// Created by leavesyoung on 2018/5/2.
// Copyright © 2018年 leavesyoung. All rights reserved.
//
#include "work.h"
#include <cstdio>
using namespace std;
work::work(int WorkID,int TypeID,int WorkFlowID){
this->WorkID=WorkID;
this->TypeID=TypeID;
this->WorkFlowID=WorkFlowID;
this->PreWorkID=-1;
this->NextWorkID=-1;
this->WorkerID=-1;
this->Status=Waiting;
}
work::~work(){}
int work::GetWorkID(){
return WorkID;
}
int work::GetTypeID(){
return TypeID;
}
int work::GetWorkFlowID(){
return WorkFlowID;
}
int work::GetPreWorkID(){
return PreWorkID;
}
int work::GetNextWorkID(){
return NextWorkID;
}
void work::SetPreWorkID(int ID){
this->PreWorkID=ID;
}
void work::SetNextWorkID(int ID){
this->NextWorkID=ID;
}
bool work::IsTaken(){
return WorkerID!=-1;
}
void work::SetWorkerID(int ID){
this->WorkerID=ID;
}
void work::SetStatus(WorkingStatus status){
this->Status=status;
}
int work::GetWorkerID(){
return WorkerID;
}
WorkingStatus work::getStatus(){
return Status;
}