package com.yuchen.saas.park.api.vo.work;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.util.Date;

@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(12)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints = 9)
@ExcelIgnoreUnannotated
public class SaasWorkOrderAlarmOperationExcelVo {

    @ApiModelProperty(name = "id", value = "主键ID")
    private Long id;
    @ApiModelProperty(name = "dispatchNo", value = "派工单号")
    @ExcelProperty(value = {"告警运维工单表", "派工单号"}, index = 1)
    private String dispatchNo;

    @ApiModelProperty(name = "dispatchTime", value = "派工时间")
    @ExcelProperty(value = {"告警运维工单表", "派工时间"}, index = 2)
    private Date dispatchTime;

    @ApiModelProperty(name = "workOrderStatus", value = "工单状态(1:待开始 2:处理中 3:待确认 4:已关闭)")
    private Integer workOrderStatus;
    @ApiModelProperty(name = "workOrderStatusStr", value = "工单状态(1:待开始 2:处理中 3:待确认 4:已关闭)")
    @ExcelProperty(value = {"告警运维工单表", "工单状态"}, index = 3)
    private String workOrderStatusStr;

    @ApiModelProperty(name = "alarmId", value = "告警ID")
    @ExcelProperty(value = {"告警运维工单表", "告警ID"}, index = 4)
    private Long alarmId;

    @ApiModelProperty(name = "alarmCategory", value = "告警分类")
    @ExcelProperty(value = {"告警运维工单表", "告警分类"}, index = 5)
    private Integer alarmCategory;

    @ApiModelProperty(name = "alarmContent", value = "告警内容")
    @ExcelProperty(value = {"告警运维工单表", "告警内容"}, index = 6)
    private String alarmContent;

    @ApiModelProperty(name = "alarmLevel", value = "告警等级")
    @ExcelProperty(value = {"告警运维工单表", "告警等级"}, index = 7)
    private Integer alarmLevel;

    @ApiModelProperty(name = "alarmTime", value = "告警时间")
    @ExcelProperty(value = {"告警运维工单表", "告警时间"}, index = 8)
    private Date alarmTime;

    @ApiModelProperty(name = "dispatchUserNames", value = "指派人")
    @ExcelProperty(value = {"告警运维工单表", "运维人员"}, index = 9)
    private String dispatchUserNames;

    @ApiModelProperty(name = "dispatchRemark", value = "派工备注")
    @ExcelProperty(value = {"告警运维工单表", "派工备注"}, index = 10)
    private String dispatchRemark;

    @ApiModelProperty(name = "timeLimitId", value = "工单时限ID")
    private Long timeLimitId;

    @ApiModelProperty(name = "timeLimitName", value = "工单时限名称")
    @ExcelProperty(value = {"告警运维工单表", "工单时限"}, index = 11)
    private String timeLimitName;

    @ApiModelProperty(name = "workOrderTypeId", value = "工单类型ID")
    private Long workOrderTypeId;

    @ApiModelProperty(name = "workOrderTypeName", value = "工单类型名称")
    @ExcelProperty(value = {"告警运维工单表", "工单类型"}, index = 12)
    private String workOrderTypeName;

    @ApiModelProperty(name = "workOrderCategory", value = "工单大类(1:报事报修 2:设备报修 3:告警运维)")
    private Integer workOrderCategory;

    @ApiModelProperty(name = "workOrderCategoryStr", value = "工单大类(1:报事报修 2:设备报修 3:告警运维)")
    @ExcelProperty(value = {"告警运维工单表", "工单大类"}, index = 13)
    private String workOrderCategoryStr;

    @ApiModelProperty(name = "startTime", value = "开始时间")
    @ExcelProperty(value = {"告警运维工单表", "开始时间"}, index = 14)
    private Date startTime;

    @ApiModelProperty(name = "finishTime", value = "完成时间")
    @ExcelProperty(value = {"告警运维工单表", "完成时间"}, index = 15)
    private Date finishTime;

    @ApiModelProperty(name = "handleResult", value = "处理结果(1:问题已解决 2:问题未解决 3:无需处理)")
    private Integer handleResult;
    @ApiModelProperty(name = "handleResultStr", value = "处理结果(1:问题已解决 2:问题未解决 3:无需处理)")
    @ExcelProperty(value = {"告警运维工单表", "处理结果"}, index = 16)
    private String handleResultStr;

    @ApiModelProperty(name = "confirmResult", value = "确认结果(1:驳回再处理 2:确认已完成并关闭工单 3:确认未完成并关闭工单)")
    private Integer confirmResult;
    @ApiModelProperty(name = "confirmResultStr", value = "确认结果(1:驳回再处理 2:确认已完成并关闭工单 3:确认未完成并关闭工单)")
    @ExcelProperty(value = {"告警运维工单表", "确认结果"}, index = 17)
    private String confirmResultStr;

    @ApiModelProperty(name = "closeTime", value = "关闭时间")
    @ExcelProperty(value = {"告警运维工单表", "关闭时间"}, index = 18)
    private Date closeTime;

    @ApiModelProperty(name = "closeReason", value = "关闭原因(1:工单重复 2:无需处理 3:其他)")
    private Integer closeReason;
    @ApiModelProperty(name = "closeReasonStr", value = "关闭原因(1:工单重复 2:无需处理 3:其他)")
    @ExcelProperty(value = {"告警运维工单表", "关闭原因"}, index = 19)
    private String closeReasonStr;

    @ApiModelProperty(name = "projectId", value = "项目ID")
    private Long projectId;

    @ApiModelProperty(name = "projectName", value = "项目名称")
    @ExcelProperty(value = {"告警运维工单表", "项目名称"}, index = 20)
    private String projectName;

}
