package com.mvc.model.alarm;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mvc.model.ReqPageGeeker;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class TAlarmRecordModel extends ReqPageGeeker {
    private Integer id;

    private String stationCode;

    private BigDecimal actualUsage;

    private BigDecimal planUsage;

    private Integer alarmNoticeId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yy-MM-dd HH:mm", timezone="GMT+8",locale="zh")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yy-MM-dd HH:mm", timezone="GMT+8",locale="zh")
    private Date endTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8",locale="zh")
    private Date alarmTime;

    private Integer alarmType;

    private Integer alarmStatus;

    /**
     * 单位编号(站点所属的单位编号)
     */
    private String unitCode;

    //对应的报通知对象
    private TAlarmNoticeModel alarmNoticeModel;

    //遥测站名
    private String stationName;

    //报警令牌,前台展示的文本
    private String alarmInfo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode == null ? null : stationCode.trim();
    }

    public BigDecimal getActualUsage() {
        return actualUsage;
    }

    public void setActualUsage(BigDecimal actualUsage) {
        this.actualUsage = actualUsage;
    }

    public BigDecimal getPlanUsage() {
        return planUsage;
    }

    public void setPlanUsage(BigDecimal planUsage) {
        this.planUsage = planUsage;
    }

    public Integer getAlarmNoticeId() {
        return alarmNoticeId;
    }

    public void setAlarmNoticeId(Integer alarmNoticeId) {
        this.alarmNoticeId = alarmNoticeId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(Date alarmTime) {
        this.alarmTime = alarmTime;
    }

    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    public Integer getAlarmStatus() {
        return alarmStatus;
    }

    public void setAlarmStatus(Integer alarmStatus) {
        this.alarmStatus = alarmStatus;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode == null ? null : unitCode.trim();
    }

    public TAlarmNoticeModel getAlarmNoticeModel() {
        return alarmNoticeModel;
    }

    public void setAlarmNoticeModel(TAlarmNoticeModel alarmNoticeModel) {
        this.alarmNoticeModel = alarmNoticeModel;
    }


    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getAlarmInfo() {
        return alarmInfo;
    }

    public void setAlarmInfo(String alarmInfo) {
        this.alarmInfo = alarmInfo;
    }
}