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

📄 assetform.java

📁 固定资产管理系统 资产的增删改查 借出 管理 自动报废 统计功能等等
💻 JAVA
字号:
/** *  */package com.qrsx.asset.form;import java.util.ArrayList;import java.util.List;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;/** * @author 马利永 * */public class AssetForm extends ActionForm{	private String id; //主键	private String  code; //代码	private String  name; //资产名称	private String assetTypeId ;//资产类型编号	private String  model;    //型号	private String client; //厂家	private String leaveFactoryDate ;//出场日期	private String buyDate; //购买日期	private String life; //预计使用年限	private String price;//价格	private String deptment; //使用部门	private String use1; //使用情况	private String storageId;//所属仓库	private String addType;//增加方式	private String employeeId; //使用员工	private String state;      //资产状态	private String disprice;//折旧价格		private List addTypes=new ArrayList();	//	private String[] employees =new String[]{};	/*	 * 表单验证		 */	public ActionErrors validate(ActionMapping mapping ,			HttpServletRequest request){		ActionErrors errors =new ActionErrors();		if((name==null)||name.trim().length()<1){			errors.add("assetName",				new ActionMessage("assetForm.name.required"));		}		if((assetTypeId==null)||(assetTypeId.length()<1)){			errors.add("assetTypeId",new ActionMessage("assetForm.assetTypeId.required"));		}		if((state==null)||(state.length()<1)){			errors.add("state",new ActionMessage("assetForm.state.required"));		}		return errors;	}	//get()与set()方法	public List getAddTypes() {		return addTypes;	}	public void setAddTypes(List addTypes) {		this.addTypes = addTypes;	}//	public String[] getEmployees() {//		if(employee!=null){//			employees=employee.split(",");//		}//		return employees;//	}////	public void setEmployees(String[] employees) {//		//		this.employees = employees;//		if(employees==null){//			return;//		}//		employee="";//		for(int i=0;i<employees.length;i++){//			if(employee.length()>0){//				employee=employee+ ",";//			}//			employee=employee+employees[i];//		}//	}	public String getId() {		return id;	}	public void setId(String id) {		this.id = id;	}	public String getCode() {		return code;	}	public void setCode(String code) {		this.code = code;	}	public String getName() {		return name;	}	public void setName(String name) {		this.name = name;	}	public String getAssetTypeId() {		return assetTypeId;	}	public void setAssetTypeId(String assetTypeId) {		this.assetTypeId = assetTypeId;	}	public String getModel() {		return model;	}	public void setModel(String model) {		this.model = model;	}	public String getClient() {		return client;	}	public void setClient(String client) {		this.client = client;	}	public String getLeaveFactoryDate() {		return leaveFactoryDate;	}	public void setLeaveFactoryDate(String leaveFactoryDate) {		this.leaveFactoryDate = leaveFactoryDate;	}	public String getBuyDate() {		return buyDate;	}	public void setBuyDate(String buyDate) {		this.buyDate = buyDate;	}	public String getLife() {		return life;	}	public void setLife(String life) {		this.life = life;	}	public String getPrice() {		return price;	}	public void setPrice(String price) {		this.price = price;	}	public String getDeptment() {		return deptment;	}	public void setDeptment(String deptment) {		this.deptment = deptment;	}	public String getUse1() {		return use1;	}	public void setUse1(String use1) {		this.use1 = use1;	}	public String getStorageId() {		return storageId;	}	public void setStorageId(String storageId) {		this.storageId = storageId;	}	public String getAddType() {		return addType;	}	public void setAddType(String addType) {		this.addType = addType;	}	/**	 * @return the employeeId	 */	public String getEmployeeId() {		return employeeId;	}	/**	 * @param employeeId the employeeId to set	 */	public void setEmployeeId(String employeeId) {		this.employeeId = employeeId;	}	/**	 * @return the state	 */	public String getState() {		return state;	}	/**	 * @param state the state to set	 */	public void setState(String state) {		this.state = state;	}	/**	 * @return the disprice	 */	public String getDisprice() {		return disprice;	}	/**	 * @param disprice the disprice to set	 */	public void setDisprice(String disprice) {		this.disprice = disprice;	}}

⌨️ 快捷键说明

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