123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- package com.bus.model;
- import java.util.Date;
- import java.util.List;
- import flexjson.JSON;
- import flexjson.JSONDeserializer;
- import flexjson.JSONSerializer;
- import org.joda.time.DateTime;
- /**
- * 发票管理
- * @author Liuhj
- */
- public class Invoice {
- /**发票id**/
- private Long invoiceId;
- /**发票号**/
- private String invoiceNumb;
- /**发票代码**/
- private String invoiceCode;
- /**总金额**/
- private Float totalAmount;
- /**税额**/
- private Float taxAmount;
- /**开票时间**/
- private Date billingTime;
- /**开票人**/
- private String billingUser;
- /**开票信息**/
- private String invoiceInfo;
- private List<InvoiceInfo> infoList;
- /**发票状态(1、正常 2、作废)**/
- private Integer state;
- /**备注**/
- private String remarks;
- /**
- * 发票抬头(购买方名称)
- */
- private String orgName;
- /**
- * 纳税人识别号
- */
- private String taxpayerNumber;
- /**
- * 开户行及账号
- */
- private String bankAccount;
- /**
- * 地址及电话
- */
- private String addressPhone;
- public Long getInvoiceId() {
- return invoiceId;
- }
- public void setInvoiceId(Long invoiceId) {
- this.invoiceId = invoiceId;
- }
- public String getInvoiceNumb() {
- return invoiceNumb;
- }
- public void setInvoiceNumb(String invoiceNumb) {
- this.invoiceNumb = invoiceNumb;
- }
- public String getInvoiceCode() {
- return invoiceCode;
- }
- public void setInvoiceCode(String invoiceCode) {
- this.invoiceCode = invoiceCode;
- }
- public Float getTotalAmount() {
- return totalAmount;
- }
- public void setTotalAmount(Float totalAmount) {
- this.totalAmount = totalAmount;
- }
- public Float getTaxAmount() {
- return taxAmount;
- }
- public void setTaxAmount(Float taxAmount) {
- this.taxAmount = taxAmount;
- }
- public Date getBillingTime() {
- return billingTime;
- }
- public void setBillingTime(Date billingTime) {
- this.billingTime = billingTime;
- }
- public String getBillingUser() {
- return billingUser;
- }
- public void setBillingUser(String billingUser) {
- this.billingUser = billingUser;
- }
- public String getInvoiceInfo() {
- return invoiceInfo;
- }
- public void setInvoiceInfo(String invoiceInfo) {
- this.invoiceInfo = invoiceInfo;
- }
- public Integer getState() {
- return state;
- }
- public void setState(Integer state) {
- this.state = state;
- }
- public List<InvoiceInfo> getInfoList() {
- if (this.invoiceInfo!=null && !this.invoiceInfo.equalsIgnoreCase("") && infoList==null){
- infoList = new JSONDeserializer<List<InvoiceInfo>>().deserialize(this.invoiceInfo);
- }
- return infoList;
- }
- public void setInfoList(List<InvoiceInfo> infoList) {
- if (infoList!=null && infoList.size()>0){
- this.invoiceInfo = new JSONSerializer().deepSerialize(infoList);
- }
- this.infoList = infoList;
- }
- public String getRemarks() {
- return remarks;
- }
- public void setRemarks(String remarks) {
- this.remarks = remarks;
- }
- public String getOrgName() {
- return orgName;
- }
- public void setOrgName(String orgName) {
- this.orgName = orgName;
- }
- public String getTaxpayerNumber() {
- return taxpayerNumber;
- }
- public void setTaxpayerNumber(String taxpayerNumber) {
- this.taxpayerNumber = taxpayerNumber;
- }
- public String getBankAccount() {
- return bankAccount;
- }
- public void setBankAccount(String bankAccount) {
- this.bankAccount = bankAccount;
- }
- public String getAddressPhone() {
- return addressPhone;
- }
- public void setAddressPhone(String addressPhone) {
- this.addressPhone = addressPhone;
- }
- }
|