package org.example.entity;

public class HospitalRoom {
    private String code;        // 病房代码
    private String outCode;     // 病房外部代码
    private String name;        // 病房名称
    private Integer bedCount;   // 额定床位
    private String belongDept;  // 所属科室
    private String belongWard;  // 所属病区
    private Integer sort;       // 排序号
    private Boolean enabled;    // 是否启用
    private String remark;      // 备注

    // Constructors
    public HospitalRoom() {}

    public HospitalRoom(String code, String outCode, String name, Integer bedCount, 
                       String belongDept, String belongWard, Integer sort, Boolean enabled, String remark) {
        this.code = code;
        this.outCode = outCode;
        this.name = name;
        this.bedCount = bedCount;
        this.belongDept = belongDept;
        this.belongWard = belongWard;
        this.sort = sort;
        this.enabled = enabled;
        this.remark = remark;
    }

    // Getters and Setters
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOutCode() {
        return outCode;
    }

    public void setOutCode(String outCode) {
        this.outCode = outCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getBedCount() {
        return bedCount;
    }

    public void setBedCount(Integer bedCount) {
        this.bedCount = bedCount;
    }

    public String getBelongDept() {
        return belongDept;
    }

    public void setBelongDept(String belongDept) {
        this.belongDept = belongDept;
    }

    public String getBelongWard() {
        return belongWard;
    }

    public void setBelongWard(String belongWard) {
        this.belongWard = belongWard;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "HospitalRoom{" +
                "code='" + code + '\'' +
                ", outCode='" + outCode + '\'' +
                ", name='" + name + '\'' +
                ", bedCount=" + bedCount +
                ", belongDept='" + belongDept + '\'' +
                ", belongWard='" + belongWard + '\'' +
                ", sort=" + sort +
                ", enabled=" + enabled +
                ", remark='" + remark + '\'' +
                '}';
    }
}