| 7613 |
amar.kumar |
1 |
package in.shop2020.warehouse.domain;
|
|
|
2 |
|
|
|
3 |
import java.util.Date;
|
|
|
4 |
|
|
|
5 |
public class InTransitInventory {
|
|
|
6 |
|
|
|
7 |
private long itemId;
|
|
|
8 |
private long originWarehouseId;
|
|
|
9 |
private long destinationWarehouseId;
|
|
|
10 |
private long quantity;
|
|
|
11 |
private Date dateOfTransfer;
|
| 10864 |
manish.sha |
12 |
private String brand;
|
|
|
13 |
private String modelName;
|
|
|
14 |
private String modelNumber;
|
|
|
15 |
private String color;
|
| 7613 |
amar.kumar |
16 |
|
|
|
17 |
public long getItemId() {
|
|
|
18 |
return itemId;
|
|
|
19 |
}
|
|
|
20 |
public void setItemId(long itemId) {
|
|
|
21 |
this.itemId = itemId;
|
|
|
22 |
}
|
|
|
23 |
public long getOriginWarehouseId() {
|
|
|
24 |
return originWarehouseId;
|
|
|
25 |
}
|
|
|
26 |
public void setOriginWarehouseId(long originWarehouseId) {
|
|
|
27 |
this.originWarehouseId = originWarehouseId;
|
|
|
28 |
}
|
|
|
29 |
public long getDestinationWarehouseId() {
|
|
|
30 |
return destinationWarehouseId;
|
|
|
31 |
}
|
|
|
32 |
public void setDestinationWarehouseId(long destinationWarehouseId) {
|
|
|
33 |
this.destinationWarehouseId = destinationWarehouseId;
|
|
|
34 |
}
|
|
|
35 |
public long getQuantity() {
|
|
|
36 |
return quantity;
|
|
|
37 |
}
|
|
|
38 |
public void setQuantity(long quantity) {
|
|
|
39 |
this.quantity = quantity;
|
|
|
40 |
}
|
|
|
41 |
public Date getDateOfTransfer() {
|
|
|
42 |
return dateOfTransfer;
|
|
|
43 |
}
|
|
|
44 |
public void setDateOfTransfer(Date dateOfTransfer) {
|
|
|
45 |
this.dateOfTransfer = dateOfTransfer;
|
|
|
46 |
}
|
|
|
47 |
|
| 10864 |
manish.sha |
48 |
public String getBrand() {
|
|
|
49 |
return brand;
|
|
|
50 |
}
|
|
|
51 |
public void setBrand(String brand) {
|
|
|
52 |
this.brand = brand;
|
|
|
53 |
}
|
|
|
54 |
public String getModelName() {
|
|
|
55 |
return modelName;
|
|
|
56 |
}
|
|
|
57 |
public void setModelName(String modelName) {
|
|
|
58 |
this.modelName = modelName;
|
|
|
59 |
}
|
|
|
60 |
public String getModelNumber() {
|
|
|
61 |
return modelNumber;
|
|
|
62 |
}
|
|
|
63 |
public void setModelNumber(String modelNumber) {
|
|
|
64 |
this.modelNumber = modelNumber;
|
|
|
65 |
}
|
|
|
66 |
public String getColor() {
|
|
|
67 |
return color;
|
|
|
68 |
}
|
|
|
69 |
public void setColor(String color) {
|
|
|
70 |
this.color = color;
|
|
|
71 |
}
|
| 7613 |
amar.kumar |
72 |
public in.shop2020.warehouse.InTransitInventory toThriftObject() {
|
|
|
73 |
in.shop2020.warehouse.InTransitInventory t_InTransitInventory = new in.shop2020.warehouse.InTransitInventory();
|
|
|
74 |
t_InTransitInventory.setItemId(this.itemId);
|
|
|
75 |
t_InTransitInventory.setOriginWarehouseId(this.originWarehouseId);
|
|
|
76 |
t_InTransitInventory.setDestinationWarehouseId(this.destinationWarehouseId);
|
|
|
77 |
t_InTransitInventory.setQuantity(this.quantity);
|
|
|
78 |
t_InTransitInventory.setTransferDate(this.dateOfTransfer.getTime());
|
| 10864 |
manish.sha |
79 |
t_InTransitInventory.setBrand(this.brand);
|
|
|
80 |
if(this.modelName!=null){
|
|
|
81 |
t_InTransitInventory.setModelName(this.modelName);
|
|
|
82 |
}
|
|
|
83 |
if(this.modelNumber!=null){
|
|
|
84 |
t_InTransitInventory.setModelNumber(this.modelNumber);
|
|
|
85 |
}
|
|
|
86 |
t_InTransitInventory.setColor(this.color);
|
| 7613 |
amar.kumar |
87 |
return t_InTransitInventory;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
}
|