package com.qianwen.mdc.dto.account;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.qianwen.mdc.vallidate.AddGroup;
|
import com.qianwen.mdc.vallidate.UpdateGroup;
|
|
/**
|
* 设备台账新增编辑的数据对象
|
*/
|
|
public class MachineAccountEditDTO implements Serializable {
|
@NotNull(message = "id不能为空", groups = {UpdateGroup.class})
|
private Long id;
|
|
/**
|
*
|
*/
|
private Long machineId;
|
|
/**
|
* machine name
|
*/
|
//@Column(name = "machine_name")
|
@NotBlank(message = "名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
|
private String machineName;
|
|
/**
|
* machine uuid
|
*/
|
private String uuid;
|
|
/**
|
*规格
|
*/
|
private String specification;
|
|
/**
|
* 设备型号
|
*/
|
private String type;
|
|
/**
|
* 设备类型id,device_type.id
|
*/
|
private Long deviceTypeId;
|
|
/**
|
* 加工类型(立加/卧加/立卧转换/五轴/数控车/复合加工/数控磨/齿加工/电加工)
|
*/
|
private String category;
|
|
/**
|
* 数控系统
|
*/
|
private String cncSystem;
|
|
/**
|
* 账务属性(帐内/帐外)
|
*/
|
|
private String accountingAttribute;
|
|
/**
|
* 设备管理分类
|
*/
|
private String manageType;
|
|
|
/**
|
* location
|
*/
|
private String location;
|
|
/**
|
* 使用部门
|
*/
|
private Long department;
|
|
|
|
/**
|
* 电气复杂系数
|
*/
|
private Integer elecCompFactor;
|
|
/**
|
* 机械复杂系数
|
*/
|
private Integer mechCompFactor;
|
|
/**
|
* 国别
|
*/
|
private String country;
|
|
/**
|
* 制造商
|
*/
|
private String manufacturer;
|
|
/**
|
* 生产日期
|
*/
|
@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
|
private Date productionDate;
|
|
/**
|
* 设备原值
|
*/
|
private Float originalValue;
|
|
/**
|
* 设备净现值
|
*/
|
private Float presentValue;
|
|
/**
|
* 重量
|
*/
|
private Integer weight;
|
|
/**
|
* 图片
|
*/
|
private String pic;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
private static final long serialVersionUID = 1L;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getMachineId() {
|
return machineId;
|
}
|
|
public void setMachineId(Long machineId) {
|
this.machineId = machineId;
|
}
|
|
public String getMachineName() {
|
return machineName;
|
}
|
|
public void setMachineName(String machineName) {
|
this.machineName = machineName;
|
}
|
|
public String getUuid() {
|
return uuid;
|
}
|
|
public void setUuid(String uuid) {
|
this.uuid = uuid;
|
}
|
|
public String getSpecification() {
|
return specification;
|
}
|
|
public void setSpecification(String specification) {
|
this.specification = specification;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
|
public Long getDeviceTypeId() {
|
return deviceTypeId;
|
}
|
|
public void setDeviceTypeId(Long deviceTypeId) {
|
this.deviceTypeId = deviceTypeId;
|
}
|
|
public String getCategory() {
|
return category;
|
}
|
|
public void setCategory(String category) {
|
this.category = category;
|
}
|
|
public String getCncSystem() {
|
return cncSystem;
|
}
|
|
public void setCncSystem(String cncSystem) {
|
this.cncSystem = cncSystem;
|
}
|
|
public String getAccountingAttribute() {
|
return accountingAttribute;
|
}
|
|
public void setAccountingAttribute(String accountingAttribute) {
|
this.accountingAttribute = accountingAttribute;
|
}
|
|
|
public String getManageType() {
|
return manageType;
|
}
|
|
public void setManageType(String manageType) {
|
this.manageType = manageType;
|
}
|
|
|
public String getLocation() {
|
return location;
|
}
|
|
|
public void setLocation(String location) {
|
this.location = location;
|
}
|
|
|
public Long getDepartment() {
|
return department;
|
}
|
|
public void setDepartment(Long department) {
|
this.department = department;
|
}
|
|
public Integer getElecCompFactor() {
|
return elecCompFactor;
|
}
|
|
public void setElecCompFactor(Integer elecCompFactor) {
|
this.elecCompFactor = elecCompFactor;
|
}
|
|
public Integer getMechCompFactor() {
|
return mechCompFactor;
|
}
|
|
|
public void setMechCompFactor(Integer mechCompFactor) {
|
this.mechCompFactor = mechCompFactor;
|
}
|
|
public String getCountry() {
|
return country;
|
}
|
|
|
public void setCountry(String country) {
|
this.country = country;
|
}
|
|
public String getManufacturer() {
|
return manufacturer;
|
}
|
|
public void setManufacturer(String manufacturer) {
|
this.manufacturer = manufacturer;
|
}
|
|
public Date getProductionDate() {
|
return productionDate;
|
}
|
|
public void setProductionDate(Date productionDate) {
|
this.productionDate = productionDate;
|
}
|
|
public Float getOriginalValue() {
|
return originalValue;
|
}
|
|
|
public void setOriginalValue(Float originalValue) {
|
this.originalValue = originalValue;
|
}
|
|
public Float getPresentValue() {
|
return presentValue;
|
}
|
|
public void setPresentValue(Float presentValue) {
|
this.presentValue = presentValue;
|
}
|
|
public Integer getWeight() {
|
return weight;
|
}
|
|
public void setWeight(Integer weight) {
|
this.weight = weight;
|
}
|
|
|
public String getPic() {
|
return pic;
|
}
|
|
|
public void setPic(String pic) {
|
this.pic = pic;
|
}
|
|
public String getRemark() {
|
return remark;
|
}
|
|
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
}
|