Files
EPCMS/src/main/java/com/vverp/entity/PrintSetting.java
2024-04-29 17:04:35 +08:00

135 lines
2.4 KiB
Java

package com.vverp.entity;
import com.vverp.annotation.Module;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
/**
* 打印设置
*
* @author dealsky
* @date 2020/4/23 5:17 下午
*/
@Entity
@Table(name = "t_print_setting")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "seq_print_setting")
@Module(name = "打印设置", generate = false)
public class PrintSetting extends BaseEntity<Long> {
/**
* 纸张类型
*/
public enum PaperType {
A4("A4"),
A5("A5");
String name;
PaperType(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
/**
* 打印方向
*/
public enum PrintDirection {
VERTICAL("纵向打印"),
HORIZONTAL("横向打印");
String name;
PrintDirection(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
/**
* 名称
*/
private String name;
/**
* 纸张类型
*/
private PaperType paperType;
/**
* 打印方向
*/
private PrintDirection printDirection;
/**
* 打印份数
*/
private Integer count;
/**
* 表头列数
*/
private Integer headerColCount;
/**
* 标题
*/
private String title;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public PaperType getPaperType() {
return paperType;
}
public void setPaperType(PaperType paperType) {
this.paperType = paperType;
}
public PrintDirection getPrintDirection() {
return printDirection;
}
public void setPrintDirection(PrintDirection printDirection) {
this.printDirection = printDirection;
}
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public Integer getHeaderColCount() {
return headerColCount;
}
public void setHeaderColCount(Integer headerColCount) {
this.headerColCount = headerColCount;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}