OrderToSupplierDto.java 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /**
  2. *
  3. */
  4. package cn.com.lzt.purchase.dto;
  5. import java.math.BigDecimal;
  6. import java.util.Date;
  7. import org.jeecgframework.minidao.annotation.MiniDao;
  8. import org.jeecgframework.poi.excel.annotation.Excel;
  9. /**
  10. * @author xzx
  11. *
  12. * 2018年8月28日
  13. *
  14. */
  15. @MiniDao
  16. public class OrderToSupplierDto {
  17. /**主键*/
  18. private java.lang.String id;
  19. @Excel(name="序号",width=15)
  20. private int index;
  21. @Excel(name="产品名称",width=50)
  22. private String goodsName;
  23. @Excel(name="规格型号",width=50)
  24. private String specification;
  25. @Excel(name="单位",width=15)
  26. private String unit;
  27. @Excel(name="数量",width=15)
  28. private Double amount;
  29. @Excel(name="单价",width=15)
  30. private Double price;
  31. @Excel(name="金额",width=15)
  32. private Double money;
  33. @Excel(name="备注",width=15)
  34. private String description;
  35. /**供应商id*/
  36. private String supplierID;
  37. private String supplierName;
  38. private String orderID;
  39. private String createrName;
  40. private String goodsID;
  41. private String warehouseName;
  42. private String warehouseAddress;
  43. private String warehouseID;
  44. private String contacts;
  45. private String mobilePhone;
  46. private String shoujianren;
  47. private String shoujianrenPhone;
  48. private String handlePerson;
  49. private Date orderDate;
  50. public Date getOrderDate() {
  51. return orderDate;
  52. }
  53. public void setOrderDate(Date orderDate) {
  54. this.orderDate = orderDate;
  55. }
  56. public String getHandlePerson() {
  57. return handlePerson;
  58. }
  59. public void setHandlePerson(String handlePerson) {
  60. this.handlePerson = handlePerson;
  61. }
  62. public String getSpecification() {
  63. return specification;
  64. }
  65. public void setSpecification(String specification) {
  66. this.specification = specification;
  67. }
  68. public String getShoujianren() {
  69. return shoujianren;
  70. }
  71. public void setShoujianren(String shoujianren) {
  72. this.shoujianren = shoujianren;
  73. }
  74. public String getShoujianrenPhone() {
  75. return shoujianrenPhone;
  76. }
  77. public void setShoujianrenPhone(String shoujianrenPhone) {
  78. this.shoujianrenPhone = shoujianrenPhone;
  79. }
  80. public String getWarehouseName() {
  81. return warehouseName;
  82. }
  83. public void setWarehouseName(String warehouseName) {
  84. this.warehouseName = warehouseName;
  85. }
  86. public String getWarehouseAddress() {
  87. return warehouseAddress;
  88. }
  89. public void setWarehouseAddress(String warehouseAddress) {
  90. this.warehouseAddress = warehouseAddress;
  91. }
  92. public String getWarehouseID() {
  93. return warehouseID;
  94. }
  95. public void setWarehouseID(String warehouseID) {
  96. this.warehouseID = warehouseID;
  97. }
  98. public String getContacts() {
  99. return contacts;
  100. }
  101. public void setContacts(String contacts) {
  102. this.contacts = contacts;
  103. }
  104. public String getMobilePhone() {
  105. return mobilePhone;
  106. }
  107. public void setMobilePhone(String mobilePhone) {
  108. this.mobilePhone = mobilePhone;
  109. }
  110. public String getGoodsID() {
  111. return goodsID;
  112. }
  113. public void setGoodsID(String goodsID) {
  114. this.goodsID = goodsID;
  115. }
  116. public String getSupplierID() {
  117. return supplierID;
  118. }
  119. public void setSupplierID(String supplierID) {
  120. this.supplierID = supplierID;
  121. }
  122. public String getSupplierName() {
  123. return supplierName;
  124. }
  125. public void setSupplierName(String supplierName) {
  126. this.supplierName = supplierName;
  127. }
  128. public String getOrderID() {
  129. return orderID;
  130. }
  131. public void setOrderID(String orderID) {
  132. this.orderID = orderID;
  133. }
  134. public String getCreaterName() {
  135. return createrName;
  136. }
  137. public void setCreaterName(String createrName) {
  138. this.createrName = createrName;
  139. }
  140. public java.lang.String getId() {
  141. return id;
  142. }
  143. public void setId(java.lang.String id) {
  144. this.id = id;
  145. }
  146. public int getIndex() {
  147. return index;
  148. }
  149. public void setIndex(int index) {
  150. this.index = index;
  151. }
  152. public String getGoodsName() {
  153. return goodsName;
  154. }
  155. public void setGoodsName(String goodsName) {
  156. this.goodsName = goodsName;
  157. }
  158. public String getUnit() {
  159. return unit;
  160. }
  161. public void setUnit(String unit) {
  162. this.unit = unit;
  163. }
  164. public Double getAmount() {
  165. return amount;
  166. }
  167. public void setAmount(Double amount) {
  168. this.amount = amount;
  169. }
  170. public Double getPrice() {
  171. return price;
  172. }
  173. public void setPrice(Double price) {
  174. this.price = price;
  175. }
  176. public Double getMoney() {
  177. if(money == null) {
  178. return 0.0;
  179. }
  180. BigDecimal bdv = new BigDecimal(money);
  181. return bdv.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
  182. }
  183. public void setMoney(Double money) {
  184. this.money = money;
  185. }
  186. public String getDescription() {
  187. return description;
  188. }
  189. public void setDescription(String description) {
  190. this.description = description;
  191. }
  192. }