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

📄 depreciationform.java

📁 struts做得固定资产管理系统 带毕业论文完整版
💻 JAVA
字号:
package com.qrsx.appcam.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class DepreciationForm extends ActionForm {

	private String id;// 编号 主键

	private String assetId;// 对应资产ID

	private String assetCode;// 资产代码

	private String assetName;// 资产名称

	private String price;// 资产价格

	private String buyDate;// 购买时间

	private String life;// 资产使用年限

	private String arithmetic;// 折旧算法

	private String everyMonthSum;// 每月折旧金额

	private String everyYearSum;// 每年折旧金额

	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();

		// 算法必须填写
		if (arithmetic == null || arithmetic.length() < 1) {

			errors.add("arithmetic", new ActionMessage(
					"error.arithmetic.required"));
		}
		return errors;
	}

	
	/**
	 * @return the everyMonthSum
	 */
	public String getEveryMonthSum() {
		return everyMonthSum;
	}


	/**
	 * @param everyMonthSum the everyMonthSum to set
	 */
	public void setEveryMonthSum(String everyMonthSum) {
		this.everyMonthSum = everyMonthSum;
	}


	/**
	 * @return the everyYearSum
	 */
	public String getEveryYearSum() {
		return everyYearSum;
	}


	/**
	 * @param everyYearSum the everyYearSum to set
	 */
	public void setEveryYearSum(String everyYearSum) {
		this.everyYearSum = everyYearSum;
	}


	/**
	 * @return the buyDate
	 */
	public String getBuyDate() {
		return buyDate;
	}

	/**
	 * @param buyDate
	 *            the buyDate to set
	 */
	public void setBuyDate(String buyDate) {
		this.buyDate = buyDate;
	}

	/**
	 * @return the life
	 */
	public String getLife() {
		return life;
	}

	/**
	 * @param life
	 *            the life to set
	 */
	public void setLife(String life) {
		this.life = life;
	}

	/**
	 * @return the price
	 */
	public String getPrice() {
		return price;
	}

	/**
	 * @param price
	 *            the price to set
	 */
	public void setPrice(String price) {
		this.price = price;
	}

	/**
	 * @return the assetCode
	 */
	public String getAssetCode() {
		return assetCode;
	}

	/**
	 * @param assetCode
	 *            the assetCode to set
	 */
	public void setAssetCode(String assetCode) {
		this.assetCode = assetCode;
	}

	/**
	 * @return the assetName
	 */
	public String getAssetName() {
		return assetName;
	}

	/**
	 * @param assetName
	 *            the assetName to set
	 */
	public void setAssetName(String assetName) {
		this.assetName = assetName;
	}

	/**
	 * @return the arithmetic
	 */
	public String getArithmetic() {
		return arithmetic;
	}

	/**
	 * @param arithmetic
	 *            the arithmetic to set
	 */
	public void setArithmetic(String arithmetic) {
		this.arithmetic = arithmetic;
	}

	/**
	 * @return the assetId
	 */
	public String getAssetId() {
		return assetId;
	}

	/**
	 * @param assetId
	 *            the assetId to set
	 */
	public void setAssetId(String assetId) {
		this.assetId = assetId;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

}

⌨️ 快捷键说明

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