package model;

import java.time.LocalDateTime;

public class Goods {
    private String id;
    private String name;
    private String specification;
    private String unit;
    private double price;
    private String category;
    private int quantity;
    private String remark;
    private LocalDateTime inboundTime;
    private String operator;
    private String supplier;

    public Goods(String id, String name, String specification, String unit, double price, String category) {
        this.id = id;
        this.name = name;
        this.specification = specification;
        this.unit = unit;
        this.price = price;
        this.category = category;
        this.quantity = 0;
        this.remark = "";
        this.inboundTime = null;
        this.operator = "";
        this.supplier = "";
    }

    public Goods(String id, String name, String specification, String unit, double price, String category, int quantity, String remark) {
        this.id = id;
        this.name = name;
        this.specification = specification;
        this.unit = unit;
        this.price = price;
        this.category = category;
        this.quantity = quantity;
        this.remark = remark;
        this.inboundTime = null;
        this.operator = "";
        this.supplier = "";
    }

    public Goods(String id, String goodsName, int quantity, String remark) {
        this.id = id;
        this.name = goodsName;
        this.quantity = quantity;
        this.remark = remark;
        this.inboundTime = null;
        this.operator = "";
        this.supplier = "";
    }

    // Getters and Setters
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getSpecification() { return specification; }
    public void setSpecification(String specification) { this.specification = specification; }
    public String getUnit() { return unit; }
    public void setUnit(String unit) { this.unit = unit; }
    public double getPrice() { return price; }
    public void setPrice(double price) { this.price = price; }
    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }
    public int getQuantity() { return quantity; }
    public void setQuantity(int quantity) { this.quantity = quantity; }
    public String getRemark() { return remark; }
    public void setRemark(String remark) { this.remark = remark; }
    public LocalDateTime getInboundTime() { return inboundTime; }
    public void setInboundTime(LocalDateTime inboundTime) { this.inboundTime = inboundTime; }
    public String getOperator() { return operator; }
    public void setOperator(String operator) { this.operator = operator; }
    public String getSupplier() { return supplier; }
    public void setSupplier(String supplier) { this.supplier = supplier; }
}
