package com.yihu.wlyy.entity.dict;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

/**
 * 基卫字典与系统参数，数据取自基卫
 */
@Entity
@Table(name = "tblsys_param")
public class FoundationMedicalSystemParam implements java.io.Serializable {
	private Integer codeid; //参数自动编码
	private String paramname;//参数英文名称
	private String code;//代码
	private Integer ord;//顺序号
	private String paramchina;//参数中文名称
	private String namespell;//拼音
	private String iscustom;//是否允许自定义自定义
	private String cancel;//注销
	private String paramdesc;
	private String canceldate;//注销时间
	private String classname;//分类名称
	private String bmlevel;//表码级别(1国家，2省，3市，4自定义)
	private String description;//描述

    public FoundationMedicalSystemParam(){}

	public FoundationMedicalSystemParam(String paramname, String code, Integer ord,
                                        String paramchina, String namespell, String iscustom,
                                        String cancel, String paramdesc, String canceldate,
                                        String classname, String bmlevel, String description) {
		this.paramname = paramname;
		this.code = code;
		this.ord = ord;
		this.paramchina = paramchina;
		this.namespell = namespell;
		this.iscustom = iscustom;
		this.cancel = cancel;
		this.paramdesc = paramdesc;
		this.canceldate = canceldate;
		this.classname = classname;
		this.bmlevel = bmlevel;
		this.description = description;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "CODEID", unique = true, nullable = false)
	public Integer getCodeid() {
		return this.codeid;
	}

	public void setCodeid(Integer codeid) {
		this.codeid = codeid;
	}

	@Column(name = "PARAMNAME", length = 20)
	public String getParamname() {
		return this.paramname;
	}

	public void setParamname(String paramname) {
		this.paramname = paramname;
	}

	@Column(name = "CODE", length = 12)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "ORD")
	public Integer getOrd() {
		return this.ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	@Column(name = "PARAMCHINA", length = 250)
	public String getParamchina() {
		return this.paramchina;
	}

	public void setParamchina(String paramchina) {
		this.paramchina = paramchina;
	}

	@Column(name = "NAMESPELL", length = 20)
	public String getNamespell() {
		return this.namespell;
	}

	public void setNamespell(String namespell) {
		this.namespell = namespell;
	}

	@Column(name = "ISCUSTOM", length = 1)
	public String getIscustom() {
		return this.iscustom;
	}

	public void setIscustom(String iscustom) {
		this.iscustom = iscustom;
	}

	@Column(name = "CANCEL", length = 1)
	public String getCancel() {
		return this.cancel;
	}

	public void setCancel(String cancel) {
		this.cancel = cancel;
	}

	@Column(name = "PARAMDESC", length = 30)
	public String getParamdesc() {
		return this.paramdesc;
	}

	public void setParamdesc(String paramdesc) {
		this.paramdesc = paramdesc;
	}

	@Column(name = "CANCELDATE", length = 8)
	public String getCanceldate() {
		return this.canceldate;
	}

	public void setCanceldate(String canceldate) {
		this.canceldate = canceldate;
	}

	@Column(name = "CLASSNAME", length = 20)
	public String getClassname() {
		return this.classname;
	}

	public void setClassname(String classname) {
		this.classname = classname;
	}

	@Column(name = "BMLEVEL", length = 1)
	public String getBmlevel() {
		return this.bmlevel;
	}

	public void setBmlevel(String bmlevel) {
		this.bmlevel = bmlevel;
	}

	@Column(name = "DESCRIPTION", length = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}