DetailBean.java
3.48 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
package com.huaheng.mobilewms.bean;
import android.graphics.drawable.Drawable;
import com.huaheng.mobilewms.util.WMSUtils;
import java.math.BigDecimal;
public class DetailBean {
private Drawable drawable;
private String type;
private String name;
private String code;
private String referCode;
private String userDef1;
private String userDef2;
private boolean complete;
private BigDecimal amount;
private BigDecimal lastAmount;
private boolean needStation = false;
private String stationCode;
private boolean isNewTask = false;
private Integer taskId = -1;
public DetailBean(Drawable drawable, String type, String name, String code) {
this.drawable = drawable;
this.type = type;
this.name = name;
this.code = code;
this.complete = false;
amount = WMSUtils.newBigDecimal(0);
}
public DetailBean(Drawable drawable, String type, String name, String code, boolean complete) {
this.drawable = drawable;
this.type = type;
this.name = name;
this.code = code;
this.complete = complete;
amount = WMSUtils.newBigDecimal(0);
}
public Drawable getDrawable() {
return drawable;
}
public void setDrawable(Drawable drawable) {
this.drawable = drawable;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public boolean isComplete() {
return complete;
}
public void setComplete(boolean complete) {
this.complete = complete;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public BigDecimal getLastAmount() {
return lastAmount;
}
public void setLastAmount(BigDecimal lastAmount) {
this.lastAmount = lastAmount;
}
public String getReferCode() {
return referCode;
}
public void setReferCode(String referCode) {
this.referCode = referCode;
}
public String getUserDef1() {
return userDef1;
}
public void setUserDef1(String userDef1) {
this.userDef1 = userDef1;
}
public String getUserDef2() {
return userDef2;
}
public void setUserDef2(String userDef2) {
this.userDef2 = userDef2;
}
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public boolean isNewTask() {
return isNewTask;
}
public void setNewTask(boolean newTask) {
isNewTask = newTask;
}
public Integer getTaskId() {
return taskId;
}
public void setTaskId(Integer taskId) {
this.taskId = taskId;
}
public boolean isNeedStation() {
return needStation;
}
public void setNeedStation(boolean needStation) {
this.needStation = needStation;
}
public boolean needStationSelectAction(){
if(needStation){
if(WMSUtils.isEmpty(stationCode)){
return true;
}
}else{
return false;
}
return false;
}
}