/**
* Copyright © 2015-2020 JeePlus All rights reserved.
*/
package com.jeeplus.modules.signuserreg.entity;
import org.hibernate.validator.constraints.Length;
import com.jeeplus.modules.sys.entity.Office;
import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
/**
* 签到用户卡注册Entity
* @author jinlong
* @version 2016-04-19
*/
public class Formsignuser extends DataEntity {
private static final long serialVersionUID = 1L;
private String suserid; // 学号
private String suername; // 姓名
private String cardid; // 一卡通编号
private String susersex; // 性别
private Office office; // 部门/年级
private String susertype; // 类型
private String suserstatus; // 状态
private String suserother; // 其他信息
public Formsignuser() {
super();
}
public Formsignuser(String id){
super(id);
}
@Length(min=0, max=64, message="学号长度必须介于 0 和 64 之间")
@ExcelField(title="学号", align=2, sort=7)
public String getSuserid() {
return suserid;
}
public void setSuserid(String suserid) {
this.suserid = suserid;
}
@Length(min=0, max=64, message="姓名长度必须介于 0 和 64 之间")
@ExcelField(title="姓名", align=2, sort=8)
public String getSuername() {
return suername;
}
public void setSuername(String suername) {
this.suername = suername;
}
@Length(min=0, max=64, message="一卡通编号长度必须介于 0 和 64 之间")
@ExcelField(title="一卡通编号", align=2, sort=9)
public String getCardid() {
return cardid;
}
public void setCardid(String cardid) {
this.cardid = cardid;
}
@Length(min=0, max=64, message="性别长度必须介于 0 和 64 之间")
@ExcelField(title="性别", dictType="sex", align=2, sort=10)
public String getSusersex() {
return susersex;
}
public void setSusersex(String susersex) {
this.susersex = susersex;
}
@ExcelField(title="部门/年级", fieldType=Office.class, value="office.name", align=2, sort=11)
public Office getOffice() {
return office;
}
public void setOffice(Office office) {
this.office = office;
}
@Length(min=0, max=64, message="类型长度必须介于 0 和 64 之间")
@ExcelField(title="类型", dictType="user_type", align=2, sort=12)
public String getSusertype() {
return susertype;
}
public void setSusertype(String susertype) {
this.susertype = susertype;
}
@Length(min=0, max=64, message="状态长度必须介于 0 和 64 之间")
@ExcelField(title="状态", dictType="user_status", align=2, sort=13)
public String getSuserstatus() {
return suserstatus;
}
public void setSuserstatus(String suserstatus) {
this.suserstatus = suserstatus;
}
@Length(min=0, max=64, message="其他信息长度必须介于 0 和 64 之间")
@ExcelField(title="其他信息", align=2, sort=14)
public String getSuserother() {
return suserother;
}
public void setSuserother(String suserother) {
this.suserother = suserother;
}
}