room.java

来自「一个KTV管理系统」· Java 代码 · 共 90 行

JAVA
90
字号
package vo;
     //  包间基本信息
public class Room {
	//  包间号
	private String roomNumber;
    //  包间类型
	private String roomType;
    //   包间价格
	private int roomPrice;
    //   包间名字
	private String roomName;
    //   包间情况
	private String roomStatement;
    //   包间是否被占用
	private int roomCapacity;
	//   开通该包间的服务员
	private long consumedId;
    //构造包间信息
	public Room(String roomNumber, String roomType, int roomPrice, String roomName, String roomStatement, int roomCapacity, long consumedId) {
		super();
		// TODO Auto-generated constructor stub
		this.roomNumber = roomNumber;
		this.roomType = roomType;
		this.roomPrice = roomPrice;
		this.roomName = roomName;
		this.roomStatement = roomStatement;
		this.roomCapacity = roomCapacity;
		this.consumedId = consumedId;
	}

     //  获得包间服务员
	public long getConsumedId() {
		return consumedId;
	}
     //   包间服务员
	public void setConsumedId(long consumedId) {
		this.consumedId = consumedId;
	}
    //   获知包间是否占用
	public int getRoomCapacity() {
		return roomCapacity;
	}
    //  包间是否被占用
	public void setRoomCapacity(int roomCapacity) {
		this.roomCapacity = roomCapacity;
	}
    //  获得包间别名
	public String getRoomName() {
		return roomName;
	}
    //  包间别名
	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
    //  获得包间号
	public String getRoomNumber() {
		return roomNumber;
	}
    //   包间号码
	public void setRoomNumber(String roomNumber) {
		this.roomNumber = roomNumber;
	}
    //   获得包间价格
	public int getRoomPrice() {
		return roomPrice;
	}
    //   包间价格
	public void setRoomPrice(int roomPrice) {
		this.roomPrice = roomPrice;
	}
    //   获得包间情况
	public String getRoomStatement() {
		return roomStatement;
	}
    //  包间情况
	public void setRoomStatement(String roomStatement) {
		this.roomStatement = roomStatement;
	}
    //  获得包间类型
	public String getRoomType() {
		return roomType;
	}
     //   包间类型
	public void setRoomType(String roomType) {
		this.roomType = roomType;
	}

	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?