package com.key.dwsurvey.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.key.common.base.entity.IdEntity;
import com.key.common.CheckType;

/**
 * 单选题选项
 * @author keyuan
 *
 * https://github.com/wkeyuan/DWSurvey
 * http://dwsurvey.net
 */
@Entity
@Table(name="t_qu_radio")
public class QuRadio extends IdEntity{

	//所属题
	private String quId;
	//选项标题
	private String optionTitle;
	//选项内容
	private String optionName;
	//是否带说明  0否  1是
	private Integer isNote=0;
	//说明的验证方式
	private CheckType checkType;
	//说明内容是否必填
	private Integer isRequiredFill=0;
	//排序ID
	private Integer orderById;
	//是否显示  0不显示 
	private Integer visibility=1;
	
	public String getQuId() {
		return quId;
	}
	public void setQuId(String quId) {
		this.quId = quId;
	}
	public String getOptionTitle() {
		return optionTitle;
	}
	public void setOptionTitle(String optionTitle) {
		this.optionTitle = optionTitle;
	}
	public String getOptionName() {
		return optionName;
	}
	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}
	public Integer getOrderById() {
		return orderById;
	}
	public void setOrderById(Integer orderById) {
		this.orderById = orderById;
	}
	public Integer getIsNote() {
		return isNote;
	}
	public void setIsNote(Integer isNote) {
		this.isNote = isNote;
	}
	public CheckType getCheckType() {
		return checkType;
	}
	public void setCheckType(CheckType checkType) {
		this.checkType = checkType;
	}
	
	public Integer getVisibility() {
		return visibility;
	}
	public void setVisibility(Integer visibility) {
		this.visibility = visibility;
	}

	public Integer getIsRequiredFill() {
		return isRequiredFill;
	}
	public void setIsRequiredFill(Integer isRequiredFill) {
		this.isRequiredFill = isRequiredFill;
	}

	private Integer anCount=0;
	@Transient
	public Integer getAnCount() {
		return anCount;
	}
	public void setAnCount(Integer anCount) {
		this.anCount = anCount;
	}
	
}
