📄 00c5c283c72f001d15b3d293b7672d16
字号:
/**
*
*/
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 InStoreForm extends ActionForm
{
private String id; //主键
private String inStoreId; //入库单号
private String stockId; //采购单号 Stock
private String inStoreDate; //入库日期
/**
* FORM表单验证
*/
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if((inStoreId == null)||(inStoreId.length()<1)){
errors.add("inStoreId",new ActionMessage("入库单号不能为空!"));
}
if((stockId == null)||(stockId.length()<1)){
errors.add("stockId",new ActionMessage("采购单号不能为空!"));
}
if((inStoreDate == null)||(inStoreDate.length()<1)){
errors.add("inStoreDate",new ActionMessage("入库日期不能为空!"));
}
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 inStoreDate
*/
public String getInStoreDate() {
return inStoreDate;
}
/**
* @param inStoreDate the inStoreDate to set
*/
public void setInStoreDate(String inStoreDate) {
this.inStoreDate = inStoreDate;
}
/**
* @return the inStoreId
*/
public String getInStoreId() {
return inStoreId;
}
/**
* @param inStoreId the inStoreId to set
*/
public void setInStoreId(String inStoreId) {
this.inStoreId = inStoreId;
}
/**
* @return the stockId
*/
public String getStockId() {
return stockId;
}
/**
* @param stockId the stockId to set
*/
public void setStockId(String stockId) {
this.stockId = stockId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -