package com.cf.imes.module.executor.util.fileConversion.admin.files.xml.VO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.xml.bind.annotation.*;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement(name = "Plate")
@XmlAccessorType(XmlAccessType.FIELD)
// 板材信息
public class PlateXmlVO implements Serializable {

    // 物料编码
    @XmlAttribute(name = "itemCode")
    private String itemCode;

    // 厂家
    @XmlAttribute(name = "manufacturer")
    private String manufacturer;

    // 品牌
    @XmlAttribute(name = "brand")
    private String brand;

    // 名称
    @XmlAttribute(name = "name")
    private String name;

    // 材质
    @XmlAttribute(name = "material")
    private String material;

    // 饰面类型——无、单面、双面
    @XmlAttribute(name = "coating")
    private String coating;

    // 有无纹理 有 无
    @XmlAttribute(name = "grained")
    private String grained;

    // 正面饰面颜色、无（空）
    @XmlAttribute(name = "coatingObverse")
    private String coatingObverse;

    // 反面饰面颜色、无（空）
    @XmlAttribute(name = "coatingReverse")
    private String coatingReverse;

    // 规格
    @XmlAttribute(name = "specs")
    private String specs;

    // 长
    @XmlAttribute(name = "length")
    private String length;

    // 宽
    @XmlAttribute(name = "width")
    private String width;

    // 厚
    @XmlAttribute(name = "thickness")
    private String thickness;

    // 是否余料
    @XmlAttribute(name = "oddment")
    private String oddment;

    // 余料长
    @XmlAttribute(name = "oddmentLength")
    private String oddmentLength;

    // 余料宽
    @XmlAttribute(name = "oddmentWidth")
    private String oddmentWidth;

    // 余料厚
    @XmlAttribute(name = "oddmentThickness")
    private String oddmentThickness;

    // 长度单位——默认mm毫米
    @XmlAttribute(name = "unitLength")
    private String unitLength;

    // 面积
    @XmlAttribute(name = "area")
    private String area;

    // 面积单位——默认m²平方米
    @XmlAttribute(name = "unitArea")
    private String unitArea;

    // 仓库
    @XmlAttribute(name = "warehouse")
    private String warehouse;

    // 货架
    @XmlAttribute(name = "shelf")
    private String shelf;

    // 余料编号
    @XmlAttribute(name = "oddmentNo")
    private String oddmentNo;

    // 备注信息
    @XmlAttribute(name = "memo")
    private String memo;

    // 数量
    @XmlAttribute(name = "count")
    private String count;

    @XmlElement(name = "Blocks")
    private BlockXmlVOS blockXmlVOS;
}
