package imis_mate.bean;

import java.io.Serializable;

/*
 * 物品类型 对应表 Material_Type
 * */
public class MaterialTypeBean implements Serializable{
	private String materialTypeNo;	//物品类型号 主键
	private String materialTypeName;	//物品类型名称
	private String materialPaTypeNo;	//物品父类型号
	private String maUnit;	//物品类型单位
	private int inMin;	//库存底限
	private int inMax;	//库存上限
	private String reMark;	//备注
	private int materialSQ;
	
	public MaterialTypeBean() {
		
	}
	
	public MaterialTypeBean(String materialTypeNo, String materialTypeName, String materialPaTypeNo, String maUnit, int inMin, int inMax, String reMark) {
		super();
		this.materialTypeNo = materialTypeNo;
		this.materialTypeName = materialTypeName;
		this.materialPaTypeNo = materialPaTypeNo;
		this.maUnit = maUnit;
		this.inMin = inMin;
		this.inMax = inMax;
		this.reMark = reMark;
	}
	
	public int getInMax() {
		return inMax;
	}
	public void setInMax(int inMax) {
		this.inMax = inMax;
	}
	public void setInMax(String inMax) {
		//重载set方法 接受String 参数
		if(inMax != null && inMax.equals("") == false) {
			this.inMax = new Integer(inMax.trim()).intValue();
		}
	}
	public int getInMin() {
		return inMin;
	}
	public void setInMin(int inMin) {
		this.inMin = inMin;
	}
	public void setInMin(String inMin) {
		//重载set方法 接受String 参数
		if(inMin != null && inMin.equals("") == false) {
			this.inMin = new Integer(inMin.trim()).intValue();
		}
	}
	public String getMaterialPaTypeNo() {
		return materialPaTypeNo;
	}
	public void setMaterialPaTypeNo(String materialPaTypeNo) {
		if(materialPaTypeNo != null) {
			this.materialPaTypeNo = materialPaTypeNo.trim();
		}
		else{
			this.materialPaTypeNo="-1";
		}
	}
	public String getMaterialTypeName() {
		return materialTypeName;
	}
	public void setMaterialTypeName(String materialTypeName) {
		if(materialTypeName != null) {
			this.materialTypeName = materialTypeName.trim();
		}
	}
	public String getMaterialTypeNo() {
		return materialTypeNo;
	}
	public void setMaterialTypeNo(String materialTypeNo) {
		if(materialTypeNo != null) {
			this.materialTypeNo = materialTypeNo.trim();
		}
	}
	public String getMaUnit() {
		return maUnit;
	}
	public void setMaUnit(String maUnit) {
		if(maUnit != null) {
			this.maUnit = maUnit.trim();
		}
	}
	public String getReMark() {
		return reMark;
	}
	public void setReMark(String reMark) {
		if(reMark != null) {
			this.reMark = reMark.trim();
		}
	}

	public int getMaterialSQ() {
		return materialSQ;
	}

	public void setMaterialSQ(int materialSQ) {
		this.materialSQ = materialSQ;
	}
}