package com.yeejoin.equipmanage.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yeejoin.equipmanage.utils.ExplicitConstraint;
import com.yeejoin.equipmanage.utils.RoleNameExplicitConstraint;
import lombok.Data;

import java.util.Date;

@Data
public class EquipDataDto {


    @Excel(name = "器材名称", width = 30, orderNum = "1")
    private String name;


    @Excel(name = "器材编码（从装备定义中获取）", width = 30, orderNum = "2")
    private String code;


    @Excel(name = "规格型号", width = 30, orderNum = "3")
    private String standard;


    @Excel(name = "品牌", width = 30, orderNum = "4")
    private String brand;


    @Excel(name = "生产厂家名称", width = 30, orderNum = "5")
    private String manufacturerName;


    @Excel(name = "设备编码", width = 30, orderNum = "6")
    private String systemCode;


    @Excel(name = "物联编码", width = 30, orderNum = "7")
    private String iotCode;


    @Excel(name = "存放位置（货位编码）", width = 30, orderNum = "8")
    private String warehouseStructCode;

    @Excel(name = "位置信息", width = 30, orderNum = "9")
    private String description;

    @Excel(name = "消防系统编码", width = 30, orderNum = "10")
    private String fightingSysCodes;

    //动态下拉内容

    @Excel(name = "所属单位",width = 30,orderNum = "11")
    private String companyName;

//    @ExcelProperty(value = "报废年限", index = 13)
//    //@Excel(name = "品牌", width = 30, orderNum = "4")
//    private String expiryDate;
//
//    @ExcelProperty(value = "维保周期", index = 14)
//    //@Excel(name = "品牌", width = 30, orderNum = "4")
//    private BigDecimal maintenanceCycle ;

    @Excel(name = "生产日期", width = 30, orderNum = "12")
    private Date productionDate;

    @Excel(name = "投运日期", width = 30, orderNum = "13")
    //@Excel(name = "品牌", width = 30, orderNum = "4")
    private Date deliveryDate;



    //动态下拉内容
//    @ExplicitConstraint(indexNum = 16, sourceClass = RoleNameExplicitConstraint.class,method="getFireSystemList") //动态下拉内容
//    @ExcelProperty(value = "所属系统", index = 16)
//    //@Excel(name = "所属单位",width = 30,orderNum = "12")
//    private String systemName;
}
