package com.palmnest.model.estateserve;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 企业签约协议记录信息实体类
 *
 * @author xiemin
 */

@Entity
@Table(name = "tb_sign_contract")
public class SignContract implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 7889506815170258600L;

	private int        id;//主键ID
	private int        organizationId;//项目ID
	private int        virtualArchitectureId;//企业ID
	private int        status;//协议状态（0-待审核、1-生效、2-失效过期）
	private String     autograph;//客户签名信息
	private String     paymentMethod;//结算方式：0 月结，1 现付
	private int        serviceTypeInfoId;//服务内容ID
	private String     serviceTypeInCode;//服务编码
	@Column(name = "prepayment", length = 11, scale = 2)
	private BigDecimal prepayment = BigDecimal.valueOf(0);//预付费金额
	private String     pack;//协议详情
	private String     effectiveTime;//协议生效时间
	private String     startTime;//协议开始时间
	private String     endTime;//协议结束时间
	private String     signUserType;//签约用户状态： 0 前台用户，1 后台管理员
	private String     remarks;//备注
	private String     staffId;//项目员工ID
	private String     creator;//创建者
	private String     createTime;//创建时间
	private String     modifier;//修改者
	private String     modifyTime;//修改时间
	private String     isEnabled;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public int getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(int organizationId) {
		this.organizationId = organizationId;
	}

	public int getVirtualArchitectureId() {
		return virtualArchitectureId;
	}

	public void setVirtualArchitectureId(int virtualArchitectureId) {
		this.virtualArchitectureId = virtualArchitectureId;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getAutograph() {
		return autograph;
	}

	public void setAutograph(String autograph) {
		this.autograph = autograph;
	}

	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	public int getServiceTypeInfoId() {
		return serviceTypeInfoId;
	}

	public void setServiceTypeInfoId(int serviceTypeInfoId) {
		this.serviceTypeInfoId = serviceTypeInfoId;
	}

	public String getServiceTypeInCode() {
		return serviceTypeInCode;
	}

	public void setServiceTypeInCode(String serviceTypeInCode) {
		this.serviceTypeInCode = serviceTypeInCode;
	}

	public BigDecimal getPrepayment() {
		return prepayment;
	}

	public void setPrepayment(BigDecimal prepayment) {
		this.prepayment = prepayment;
	}

	public String getPack() {
		return pack;
	}

	public void setPack(String pack) {
		this.pack = pack;
	}

	public String getEffectiveTime() {
		return effectiveTime;
	}

	public void setEffectiveTime(String effectiveTime) {
		this.effectiveTime = effectiveTime;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getSignUserType() {
		return signUserType;
	}

	public void setSignUserType(String signUserType) {
		this.signUserType = signUserType;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(String isEnabled) {
		this.isEnabled = isEnabled;
	}

	public void setId(int id) {
		this.id = id;
	}

}
