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

📄 materialcheckbean.java

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

import imis_mate.DAO.MaterialTypeDAO;

import java.io.Serializable;
import java.sql.Date;

/*
 * 物品盘点表 对应表 Material_Check_Table
 * */
public class MaterialCheckBean implements Serializable{
	private int checkID; //盘点ID 主键
	private int materialNo; //库存ID
	private String materialName; //物品名称
	private String maModel; //型号
	private String maBrand; //品牌
	private String maMadeIn; //产地
	private String materialTypeNo; //物品类型
	private String materialTypeNoToString;
	private int outCount; //出库数量
	private int nowCount; //库存数量
	private int checkCount; //盘点数量
	private Date checkDate; //盘点日期
	private String checkBy; //核准人员
	private String remark; //备注
	
	public MaterialCheckBean() {
		
	}
	public MaterialCheckBean(int checkID, int materialNo, String materialName, String maModel, String maBrand, String maMadeIn, String materialTypeNo, int outCount, int nowCount, int checkCount, Date checkDate, String checkBy, String remark) {
		super();
		this.checkID = checkID;
		this.materialNo = materialNo;
		this.materialName = materialName;
		this.maModel = maModel;
		this.maBrand = maBrand;
		this.maMadeIn = maMadeIn;
		this.materialTypeNo = materialTypeNo;
		this.outCount = outCount;
		this.nowCount = nowCount;
		this.checkCount = checkCount;
		this.checkDate = checkDate;
		this.checkBy = checkBy;
		this.remark = remark;
	}
	public String getCheckBy() {
		return checkBy;
	}
	public void setCheckBy(String checkBy) {
		if(checkBy != null) {
			this.checkBy = checkBy.trim();
		}
	}
	public int getCheckCount() {
		return checkCount;
	}
	public void setCheckCount(int checkCount) {
		this.checkCount = checkCount;
	}
	public void setCheckCount(String checkCount) {
		//重载set方法 接受String 参数
		if(checkCount != null && (!checkCount.equals(""))) {
			this.checkCount = new Integer(checkCount.trim()).intValue();
		}
	}
	public Date getCheckDate() {
		return checkDate;
	}
	public String getCheckDateToString() {
		//重载get方法 返回String 类型数据
		if(checkDate!=null) {
			return checkDate.toString();
		} else {
			return null;
		}
	}
	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}
	public void setCheckDate(String checkDate) {
		//重载set方法 接受String 参数 日期
		if(checkDate != null && (!checkDate.equals(""))) {
			this.checkDate = Date.valueOf(checkDate);
		}
	}
	public int getCheckID() {
		return checkID;
	}
	public void setCheckID(int checkID) {
		this.checkID = checkID;
	}
	public void setCheckID(String checkID) {
		//重载set方法 接受String 参数
		if(checkID != null && (!checkID.equals(""))) {
			this.checkID = new Integer(checkID.trim()).intValue();
		}
	}
	public String getMaBrand() {
		return maBrand;
	}
	public void setMaBrand(String maBrand) {
		if(maBrand != null) {
			this.maBrand = maBrand.trim();
		}
	}
	public String getMaMadeIn() {
		return maMadeIn;
	}
	public void setMaMadeIn(String maMadeIn) {
		if(maMadeIn != null) {
			this.maMadeIn = maMadeIn.trim();
		}
	}
	public String getMaModel() {
		return maModel;
	}
	public void setMaModel(String maModel) {
		if(maModel != null) {
			this.maModel = maModel.trim();
		}
	}
	public String getMaterialName() {
		return materialName;
	}
	public void setMaterialName(String materialName) {
		if(materialName != null) {
			this.materialName = materialName.trim();	
		}
	}
	public int getMaterialNo() {
		return materialNo;
	}
	public void setMaterialNo(int materialNo) {
		this.materialNo = materialNo;
	}
	public void setMaterialNo(String materialNo) {
		//重载set方法 接受String 参数
		if(materialNo != null && (!materialNo.equals(""))) {
			this.materialNo = new Integer(materialNo.trim()).intValue();
		}
	}
	public String getMaterialTypeNo() {
		return materialTypeNo;
	}
	public void setMaterialTypeNo(String materialTypeNo) {
		if(materialTypeNo != null) {
			this.materialTypeNo = materialTypeNo.trim();
		}
	}
	public int getNowCount() {
		return nowCount;
	}
	public void setNowCount(int nowCount) {
		this.nowCount = nowCount;
	}
	public void setNowCount(String nowCount) {
		//重载set方法 接受String 参数
		if(nowCount != null && (!nowCount.equals(""))) {
			this.nowCount = new Integer(nowCount.trim()).intValue();
		}
	}
	public int getOutCount() {
		return outCount;
	}
	public void setOutCount(int outCount) {
		this.outCount = outCount;
	}
	public void setOutCount(String outCount) {
		//重载set 方法 接受String 参数
		if(outCount != null && (!outCount.equals(""))) {
			this.outCount = new Integer(outCount.trim()).intValue();
		}
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		if(remark != null) {
			this.remark = remark.trim();
		}
	}
	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;
	}

}

⌨️ 快捷键说明

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