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

📄 outstoreform.java

📁 客户关系管理系统主要管理新老客户的一些信息并可以发现潜在客户
💻 JAVA
字号:
/**
 * 
 */
package com.qrsx.qrsxcrm.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;

/**
 * @author Administrator
 *
 */
@SuppressWarnings("serial")
public class OutStoreForm extends ActionForm 
{
	private String id; // 主键
	private String outStoreId; // 出库单编号
	private String orderId; // 订单编号
	private String outStoreDate; // 出库日期
	/**
	 * FORM表单验证
	 */
	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
		
		ActionErrors errors = new ActionErrors();
		if((outStoreId == null)||(outStoreId.length()<1)){
			errors.add("outStoreId",new ActionMessage("storeroom.outstore.outstoreId"));
		}
		if((orderId == null)||(orderId.length()<1)){
			errors.add("orderId",new ActionMessage("storeroom.outstore.orderId"));
		}
		if((outStoreDate == null)||(outStoreDate.length()<1)){
			errors.add("outStoreDate",new ActionMessage("storeroom.outstore.outstoreDate"));
		}
		return errors;
	}
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the orderId
	 */
	public String getOrderId() {
		return orderId;
	}
	/**
	 * @param orderId the orderId to set
	 */
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	/**
	 * @return the outStoreDate
	 */
	public String getOutStoreDate() {
		return outStoreDate;
	}
	/**
	 * @param outStoreDate the outStoreDate to set
	 */
	public void setOutStoreDate(String outStoreDate) {
		this.outStoreDate = outStoreDate;
	}
	/**
	 * @return the outStoreId
	 */
	public String getOutStoreId() {
		return outStoreId;
	}
	/**
	 * @param outStoreId the outStoreId to set
	 */
	public void setOutStoreId(String outStoreId) {
		this.outStoreId = outStoreId;
	}
}

⌨️ 快捷键说明

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