Invoice.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. package com.bus.model;
  2. import java.util.Date;
  3. import java.util.List;
  4. import flexjson.JSON;
  5. import flexjson.JSONDeserializer;
  6. import flexjson.JSONSerializer;
  7. import org.joda.time.DateTime;
  8. /**
  9. * 发票管理
  10. * @author Liuhj
  11. */
  12. public class Invoice {
  13. /**发票id**/
  14. private Long invoiceId;
  15. /**发票号**/
  16. private String invoiceNumb;
  17. /**发票代码**/
  18. private String invoiceCode;
  19. /**总金额**/
  20. private Float totalAmount;
  21. /**税额**/
  22. private Float taxAmount;
  23. /**开票时间**/
  24. private Date billingTime;
  25. /**开票人**/
  26. private String billingUser;
  27. /**开票信息**/
  28. private String invoiceInfo;
  29. private List<InvoiceInfo> infoList;
  30. /**发票状态(1、正常 2、作废)**/
  31. private Integer state;
  32. /**备注**/
  33. private String remarks;
  34. /**
  35. * 发票抬头(购买方名称)
  36. */
  37. private String orgName;
  38. /**
  39. * 纳税人识别号
  40. */
  41. private String taxpayerNumber;
  42. /**
  43. * 开户行及账号
  44. */
  45. private String bankAccount;
  46. /**
  47. * 地址及电话
  48. */
  49. private String addressPhone;
  50. public Long getInvoiceId() {
  51. return invoiceId;
  52. }
  53. public void setInvoiceId(Long invoiceId) {
  54. this.invoiceId = invoiceId;
  55. }
  56. public String getInvoiceNumb() {
  57. return invoiceNumb;
  58. }
  59. public void setInvoiceNumb(String invoiceNumb) {
  60. this.invoiceNumb = invoiceNumb;
  61. }
  62. public String getInvoiceCode() {
  63. return invoiceCode;
  64. }
  65. public void setInvoiceCode(String invoiceCode) {
  66. this.invoiceCode = invoiceCode;
  67. }
  68. public Float getTotalAmount() {
  69. return totalAmount;
  70. }
  71. public void setTotalAmount(Float totalAmount) {
  72. this.totalAmount = totalAmount;
  73. }
  74. public Float getTaxAmount() {
  75. return taxAmount;
  76. }
  77. public void setTaxAmount(Float taxAmount) {
  78. this.taxAmount = taxAmount;
  79. }
  80. public Date getBillingTime() {
  81. return billingTime;
  82. }
  83. public void setBillingTime(Date billingTime) {
  84. this.billingTime = billingTime;
  85. }
  86. public String getBillingUser() {
  87. return billingUser;
  88. }
  89. public void setBillingUser(String billingUser) {
  90. this.billingUser = billingUser;
  91. }
  92. public String getInvoiceInfo() {
  93. return invoiceInfo;
  94. }
  95. public void setInvoiceInfo(String invoiceInfo) {
  96. this.invoiceInfo = invoiceInfo;
  97. }
  98. public Integer getState() {
  99. return state;
  100. }
  101. public void setState(Integer state) {
  102. this.state = state;
  103. }
  104. public List<InvoiceInfo> getInfoList() {
  105. if (this.invoiceInfo!=null && !this.invoiceInfo.equalsIgnoreCase("") && infoList==null){
  106. infoList = new JSONDeserializer<List<InvoiceInfo>>().deserialize(this.invoiceInfo);
  107. }
  108. return infoList;
  109. }
  110. public void setInfoList(List<InvoiceInfo> infoList) {
  111. if (infoList!=null && infoList.size()>0){
  112. this.invoiceInfo = new JSONSerializer().deepSerialize(infoList);
  113. }
  114. this.infoList = infoList;
  115. }
  116. public String getRemarks() {
  117. return remarks;
  118. }
  119. public void setRemarks(String remarks) {
  120. this.remarks = remarks;
  121. }
  122. public String getOrgName() {
  123. return orgName;
  124. }
  125. public void setOrgName(String orgName) {
  126. this.orgName = orgName;
  127. }
  128. public String getTaxpayerNumber() {
  129. return taxpayerNumber;
  130. }
  131. public void setTaxpayerNumber(String taxpayerNumber) {
  132. this.taxpayerNumber = taxpayerNumber;
  133. }
  134. public String getBankAccount() {
  135. return bankAccount;
  136. }
  137. public void setBankAccount(String bankAccount) {
  138. this.bankAccount = bankAccount;
  139. }
  140. public String getAddressPhone() {
  141. return addressPhone;
  142. }
  143. public void setAddressPhone(String addressPhone) {
  144. this.addressPhone = addressPhone;
  145. }
  146. }