You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

248 rivejä
5.0 KiB

  1. /*******************************************************************************
  2. * Copyright 2013 2Fi Business Solutions Ltd.
  3. *
  4. * This code is part of the PCS project.
  5. *
  6. * This code is copyrighted. Under no circumstances should any party, people,
  7. * or organization should redistribute any portions of this code in any form,
  8. * either verbatim or through electronic media, to any third parties, unless
  9. * under explicit written permission by 2Fi Business Solutions Ltd.
  10. ******************************************************************************/
  11. package com.ffii.tbms.order;
  12. import java.util.Date;
  13. import javax.persistence.Column;
  14. import javax.persistence.Entity;
  15. import javax.persistence.Table;
  16. import com.ffii.core.BaseEntity;
  17. @Entity
  18. @Table(name = "orders")
  19. public class Order extends BaseEntity<Integer> {
  20. private static final long serialVersionUID = -6977390008376019654L;
  21. public static final Integer STATUS_IGNORE = -2;
  22. public static final Integer STATUS_CANCELLED = -1;
  23. public static final Integer STATUS_ON_HAND = 0;
  24. public static final Integer STATUS_COMPLETED = 1;
  25. public static final Integer WS_STATUS_BLANK = null;
  26. public static final Integer WS_STATUS_PENDING = 1;
  27. public static final Integer WS_STATUS_RECEIVED = 2;
  28. public static final Integer WS_STATUS_COMPLETED = 3;
  29. public static final Integer WS_WORK_STATUS_PENDING = 0;
  30. public static final Integer WS_WORK_STATUS_COMPLETED = 1;
  31. public static final Integer IN_OUT_STATUS_BLANK = null;
  32. public static final Integer IN_OUT_STATUS_PENDING = 1;
  33. public static final Integer IN_OUT_STATUS_RECEIVED = 2;
  34. @Column(columnDefinition = "varchar(50)")
  35. private String code;
  36. @Column(columnDefinition = "varchar(50)")
  37. private String type;
  38. @Column(columnDefinition = "int(11)")
  39. private Integer custId;
  40. @Column(columnDefinition = "int(11)")
  41. private Integer fileId;
  42. @Column(columnDefinition = "int(11)")
  43. private Integer ref;
  44. @Column(columnDefinition = "varchar(100)")
  45. private String refNo;
  46. @Column(columnDefinition = "date")
  47. private Date date;
  48. @Column(columnDefinition = "varchar(255)")
  49. private String remarks;
  50. @Column(columnDefinition = "int(11)")
  51. private Integer status;
  52. @Column(columnDefinition = "date")
  53. private Date outDate;
  54. @Column(columnDefinition = "date")
  55. private Date inDate;
  56. @Column(columnDefinition = "varchar(255)")
  57. private String outRemark;
  58. @Column(columnDefinition = "varchar(255)")
  59. private String inRemark;
  60. @Column(columnDefinition = "tinyint(1)")
  61. private Boolean ignoreC;
  62. @Column(columnDefinition = "int(11)")
  63. private Integer workshopStatus;
  64. @Column(columnDefinition = "date")
  65. private Date targetCompleteDate;
  66. @Column(columnDefinition = "int(11)")
  67. private Integer inStatus;
  68. @Column(columnDefinition = "int(11)")
  69. private Integer outStatus;
  70. public Order() {
  71. }
  72. public String getCode() {
  73. return code;
  74. }
  75. public void setCode(String code) {
  76. this.code = code;
  77. }
  78. public String getType() {
  79. return type;
  80. }
  81. public void setType(String type) {
  82. this.type = type;
  83. }
  84. public Integer getCustId() {
  85. return custId;
  86. }
  87. public void setCustId(Integer custId) {
  88. this.custId = custId;
  89. }
  90. public Integer getFileId() {
  91. return fileId;
  92. }
  93. public void setFileId(Integer fileId) {
  94. this.fileId = fileId;
  95. }
  96. public Integer getRef() {
  97. return ref;
  98. }
  99. public void setRef(Integer ref) {
  100. this.ref = ref;
  101. }
  102. public String getRefNo() {
  103. return refNo;
  104. }
  105. public void setRefNo(String refNo) {
  106. this.refNo = refNo;
  107. }
  108. public Date getDate() {
  109. return date;
  110. }
  111. public void setDate(Date date) {
  112. this.date = date;
  113. }
  114. public String getRemarks() {
  115. return remarks;
  116. }
  117. public void setRemarks(String remarks) {
  118. this.remarks = remarks;
  119. }
  120. public Integer getStatus() {
  121. return status;
  122. }
  123. public void setStatus(Integer status) {
  124. this.status = status;
  125. }
  126. public Date getOutDate() {
  127. return outDate;
  128. }
  129. public void setOutDate(Date outDate) {
  130. this.outDate = outDate;
  131. }
  132. public Date getInDate() {
  133. return inDate;
  134. }
  135. public void setInDate(Date inDate) {
  136. this.inDate = inDate;
  137. }
  138. public String getOutRemark() {
  139. return outRemark;
  140. }
  141. public void setOutRemark(String outRemark) {
  142. this.outRemark = outRemark;
  143. }
  144. public String getInRemark() {
  145. return inRemark;
  146. }
  147. public void setInRemark(String inRemark) {
  148. this.inRemark = inRemark;
  149. }
  150. public Boolean getIgnoreC() {
  151. return ignoreC;
  152. }
  153. public void setIgnoreC(Boolean ignoreC) {
  154. this.ignoreC = ignoreC;
  155. }
  156. public Integer getWorkshopStatus() {
  157. return workshopStatus;
  158. }
  159. public void setWorkshopStatus(Integer workshopStatus) {
  160. this.workshopStatus = workshopStatus;
  161. }
  162. public Date getTargetCompleteDate() {
  163. return targetCompleteDate;
  164. }
  165. public void setTargetCompleteDate(Date targetCompleteDate) {
  166. this.targetCompleteDate = targetCompleteDate;
  167. }
  168. public Integer getInStatus() {
  169. return inStatus;
  170. }
  171. public void setInStatus(Integer inStatus) {
  172. this.inStatus = inStatus;
  173. }
  174. public Integer getOutStatus() {
  175. return outStatus;
  176. }
  177. public void setOutStatus(Integer outStatus) {
  178. this.outStatus = outStatus;
  179. }
  180. }