f4483c34c27565db1a5fe859f5f9348eb5915d9d.svn-base 4.75 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.entity.bus;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.xml.JaxbDateAdapter;

/**
 * 收费信息维护Entity
 * @author xuyg
 * @version 2016-04-04
 */
@XmlRootElement(name="DJF_DJ_SF")
public class RegBusSf extends DataEntity<RegBusSf> {
	//xml ZKHYSJE="折扣后应收金额" YSJE="应收金额"SSJE="实收金额" SFLX="收费类型" SFKMMC="收费科目名称"? QXDM="区县代码"?SFEWSF="是否额外收费"?SFJS="收费基数"?
	private static final long serialVersionUID = 1L;
	private String ywh;		// 业务号
	private String ysdm;		// 要素代码
	private String jfry;		// 计费人员
	private Date jfrq;		// 计费日期
	private String sfry;		// 收费人员
	private Date sfrq;		// 收费日期
	private String fff;		// 付费方
	private String sjffr;		// 实际付费人
	private String sfdw;		// 收费单位
	private String sfkmmc;		
	private String sfewsf;		
	private Double sfjs;		
	private String sflx;	
	private Double ysje;	
	private Double zkhysje;		
	private Double ssje;
	
	
	private List<RegBusSfSub> regBusSfSubList = Lists.newArrayList();		// 子表列表
	
	public RegBusSf() {
		super();
	}

	public RegBusSf(String id){
		super(id);
	}

	@XmlAttribute(name="YWH")
	@Length(min=0, max=20, message="业务号长度必须介于 0 和 20 之间")
	public String getYwh() {
		return ywh;
	}

	public void setYwh(String ywh) {
		this.ywh = ywh;
	}
	
	public String getSfkmmc() {
		return sfkmmc;
	}

	public void setSfkmmc(String sfkmmc) {
		this.sfkmmc = sfkmmc;
	}

	public String getSfewsf() {
		return sfewsf;
	}

	public void setSfewsf(String sfewsf) {
		this.sfewsf = sfewsf;
	}

	public Double getSfjs() {
		return sfjs;
	}

	public void setSfjs(Double sfjs) {
		this.sfjs = sfjs;
	}

	public String getSflx() {
		return sflx;
	}

	public void setSflx(String sflx) {
		this.sflx = sflx;
	}

	public Double getYsje() {
		return ysje;
	}

	public void setYsje(Double ysje) {
		this.ysje = ysje;
	}

	public Double getZkhysje() {
		return zkhysje;
	}

	public void setZkhysje(Double zkhysje) {
		this.zkhysje = zkhysje;
	}

	public Double getSsje() {
		return ssje;
	}

	public void setSsje(Double ssje) {
		this.ssje = ssje;
	}

	@XmlAttribute(name="YSDM")
	@Length(min=0, max=10, message="要素代码长度必须介于 0 和 10 之间")
	public String getYsdm() {
		return ysdm;
	}

	public void setYsdm(String ysdm) {
		this.ysdm = ysdm;
	}
	
	@XmlAttribute(name="JFRY")
	@Length(min=1, max=50, message="计费人员长度必须介于 1 和 50 之间")
	public String getJfry() {
		return jfry;
	}

	public void setJfry(String jfry) {
		this.jfry = jfry;
	}
	

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="计费日期不能为空")
	@XmlAttribute(name="JFRQ")
	@XmlJavaTypeAdapter(JaxbDateAdapter.class)
	public Date getJfrq() {
		return jfrq;
	}

	public void setJfrq(Date jfrq) {
		this.jfrq = jfrq;
	}
	
	@XmlAttribute(name="SFRY")
	@Length(min=1, max=50, message="收费人员长度必须介于 1 和 50 之间")
	public String getSfry() {
		return sfry;
	}

	public void setSfry(String sfry) {
		this.sfry = sfry;
	}
	

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="收费日期不能为空")
	@XmlAttribute(name="SFRQ")
	@XmlJavaTypeAdapter(JaxbDateAdapter.class)
	public Date getSfrq() {
		return sfrq;
	}

	public void setSfrq(Date sfrq) {
		this.sfrq = sfrq;
	}
	
	@XmlAttribute(name="FFF")
	@Length(min=0, max=2, message="付费方长度必须介于 0 和 2 之间")
	public String getFff() {
		return fff;
	}

	public void setFff(String fff) {
		this.fff = fff;
	}
	
	@XmlAttribute(name="SJFFR")
	@Length(min=1, max=50, message="实际付费人长度必须介于 1 和 50 之间")
	public String getSjffr() {
		return sjffr;
	}

	public void setSjffr(String sjffr) {
		this.sjffr = sjffr;
	}
	
	@XmlAttribute(name="SFDW")
	@Length(min=0, max=50, message="收费单位长度必须介于 0 和 50 之间")
	public String getSfdw() {
		return sfdw;
	}

	public void setSfdw(String sfdw) {
		this.sfdw = sfdw;
	}
	
	@XmlTransient
	public List<RegBusSfSub> getRegBusSfSubList() {
		return regBusSfSubList;
	}

	public void setRegBusSfSubList(List<RegBusSfSub> regBusSfSubList) {
		this.regBusSfSubList = regBusSfSubList;
	}
}