⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 materialbuydetailbean.java

📁 JSP移动商品管理平台源代码.........
💻 JAVA
字号:
/**
 * 
 */
package imis_mate.bean;

import imis_mate.DAO.MaterialTypeDAO;

import java.io.Serializable;

/**
 * @author Administrator
 * 
 */
public class MaterialBuyDetailBean implements Serializable {
	

	private int buyId;
	private String buyNo;
	private String materialTypeName;
	private String maModel;
	private String maBrand;
	private String maMadeIn;
	private String materialTypeNo;
	private String materialTypeNoToString; //
	private double priceUnit;
	private int inCount;
	private String flag;
	private String reFlag;

	/**
	 * @return the bubId
	 */
	public int getBuyId() {
		return buyId;
	}

	/**
	 * @return the buyNo
	 */
	public String getBuyNo() {
		return buyNo;
	}

	/**
	 * @return the flag
	 */
	public String getFlag() {
		return flag;
	}

	/**
	 * @return the inCount
	 */
	public int getInCount() {
		return inCount;
	}

	/**
	 * @return the maBrand
	 */
	public String getMaBrand() {
		return maBrand;
	}

	/**
	 * @return the maMadeIn
	 */
	public String getMaMadeIn() {
		return maMadeIn;
	}

	/**
	 * @return the maModel
	 */
	public String getMaModel() {
		return maModel;
	}

	/**
	 * @return the materialTypeName
	 */
	public String getMaterialTypeName() {
		return materialTypeName;
	}

	/**
	 * @return the materialTypeNo
	 */
	public String getMaterialTypeNo() {
		return materialTypeNo;
	}

	/**
	 * @return the priceUnit
	 */
	public double getPriceUnit() {
		return priceUnit;
	}

	/**
	 * @return the reFlag
	 */
	public String getReFlag() {
		return reFlag;
	}

	/**
	 * @param bubId the bubId to set
	 */
	public void setBuyId(int buyId) {
		this.buyId = buyId;
	}
	public void setBuyId(String buyId) {
		//重载set
		if(buyId != null && buyId.equals("") != true) {
			this.buyId = Integer.parseInt(buyId.trim());
		}
	}

	/**
	 * @param buyNo the buyNo to set
	 */
	public void setBuyNo(String buyNo) {
		if(buyNo != null) {
			this.buyNo = buyNo.trim();
		}
	}

	/**
	 * @param flag the flag to set
	 */
	public void setFlag(String flag) {
		if(flag != null) {
			this.flag = flag.trim();
		}
	}

	/**
	 * @param inCount the inCount to set
	 */
	public void setInCount(int inCount) {
		this.inCount = inCount;
	}
	public void setInCount(String inCount) {
		//重载set
		if(inCount != null && inCount.equals("") != true) {
			this.inCount = Integer.parseInt(inCount.trim());
		}
	}

	/**
	 * @param maBrand the maBrand to set
	 */
	public void setMaBrand(String maBrand) {
		if(maBrand != null) {
			this.maBrand = maBrand.trim();
		}
	}

	/**
	 * @param maMadeIn the maMadeIn to set
	 */
	public void setMaMadeIn(String maMadeIn) {
		if(maMadeIn != null) {
			this.maMadeIn = maMadeIn.trim();
		}
	}

	/**
	 * @param maModel the maModel to set
	 */
	public void setMaModel(String maModel) {
		if(maModel != null) {
			this.maModel = maModel.trim();
		}
	}

	/**
	 * @param materialTypeName the materialTypeName to set
	 */
	public void setMaterialTypeName(String materialTypeName) {
		if(materialTypeName != null && materialTypeName.equals("") != true) {
			this.materialTypeName = materialTypeName.trim();
		}
		
	}

	/**
	 * @param materialTypeNo the materialTypeNo to set
	 */
	public void setMaterialTypeNo(String materialTypeNo) {
		if(materialTypeNo != null) {
			this.materialTypeNo = materialTypeNo.trim();
		}
	}

	/**
	 * @param priceUnit the priceUnit to set
	 */
	public void setPriceUnit(double priceUnit) {
		this.priceUnit = priceUnit;
	}
	public void setPriceUnit(String priceUnit) {
		if(priceUnit != null && priceUnit.equals("") != true) {
			this.priceUnit = Double.parseDouble(priceUnit.trim());
		}
	}
	
	/**
	 * @param reFlag the reFlag to set
	 */
	public void setReFlag(String reFlag) {
		if(reFlag != null) {
			this.reFlag = reFlag.trim();
		}else {
			this.reFlag = "";
		}	
	}
	public String getMaterialTypeNoToString() throws Exception {
		MaterialTypeDAO mtd = new MaterialTypeDAO();
		this.materialTypeNoToString = mtd.getMaterialTypeName(this.materialTypeNo);
		return materialTypeNoToString;
	}
	public void setMaterialTypeNoToString(String materialTypeNoToString) {
		this.materialTypeNoToString = materialTypeNoToString;
	}

	/**
	 * @param bubId
	 * @param buyNo
	 * @param materialTypeName
	 * @param maModel
	 * @param maBrand
	 * @param maMadeIn
	 * @param materialTypeNo
	 * @param priceUnit
	 * @param inCount
	 * @param flag
	 * @param reFlag
	 */
	public MaterialBuyDetailBean(int buyId, String buyNo, String materialTypeName, String maModel, String maBrand, String maMadeIn, String materialTypeNo, double priceUnit, int inCount, String flag, String reFlag) {
		super();
		this.buyId = buyId;
		this.buyNo = buyNo;
		this.materialTypeName = materialTypeName;
		this.maModel = maModel;
		this.maBrand = maBrand;
		this.maMadeIn = maMadeIn;
		this.materialTypeNo = materialTypeNo;
		this.priceUnit = priceUnit;
		this.inCount = inCount;
		this.flag = flag;
		this.reFlag = reFlag;
	}

	public MaterialBuyDetailBean() {
		// TODO Auto-generated constructor stub
	}

	

}

⌨️ 快捷键说明

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