📄 assetlendform.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 AssetLendForm extends ActionForm {
private String id; // 编号
private String assetId;// 资产编号
private String code;// 资产代码
private String assetName;// 资产名称
private String lendDate;// 借出日期
private String givebackPlanDate;// 预计归还日期
private String lendEmployee;// 发放人编号 必须为当前系统的操作员
private String borrowMan;// 借用人
private String clientId;// 借用单位、
private String deptmentId;// 本部门借用对应单位号
private String givebackDate;// 归还日期
private String state;// 状态 1为借出 2 为归还、
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
// 借出日期、借用人 必须填写
if (lendDate == null || lendDate.trim().length() < 1) {
errors.add("lendDate", new ActionMessage(
"assetLendForm.lendDate.required"));
}
if (borrowMan == null || borrowMan.trim().length() < 1) {
errors.add("borrowMan", new ActionMessage(
"assetLendForm.borrowMan.required"));
}
return errors;
}
/**
* @return the code
*/
public String getCode() {
return code;
}
/**
* @param code
* the code to set
*/
public void setCode(String code) {
this.code = code;
}
/**
* @return the assetName
*/
public String getAssetName() {
return assetName;
}
/**
* @param assetName
* the assetName to set
*/
public void setAssetName(String assetName) {
this.assetName = assetName;
}
/**
* @return the deptmentId
*/
public String getDeptmentId() {
return deptmentId;
}
/**
* @param deptmentId
* the deptmentId to set
*/
public void setDeptmentId(String deptmentId) {
this.deptmentId = deptmentId;
}
/**
* @return the assetId
*/
public String getAssetId() {
return assetId;
}
/**
* @return the borrowMan
*/
public String getBorrowMan() {
return borrowMan;
}
/**
* @return the clientId
*/
public String getClientId() {
return clientId;
}
/**
* @return the givebackDate
*/
public String getGivebackDate() {
return givebackDate;
}
/**
* @return the givebackPlanDate
*/
public String getGivebackPlanDate() {
return givebackPlanDate;
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @return the lendDate
*/
public String getLendDate() {
return lendDate;
}
/**
* @return the lendEmployee
*/
public String getLendEmployee() {
return lendEmployee;
}
/**
* @return the state
*/
public String getState() {
return state;
}
/**
* @param assetId
* the assetId to set
*/
public void setAssetId(String assetId) {
this.assetId = assetId;
}
/**
* @param borrowMan
* the borrowMan to set
*/
public void setBorrowMan(String borrowMan) {
this.borrowMan = borrowMan;
}
/**
* @param clientId
* the clientId to set
*/
public void setClientId(String clientId) {
this.clientId = clientId;
}
/**
* @param givebackDate
* the givebackDate to set
*/
public void setGivebackDate(String givebackDate) {
this.givebackDate = givebackDate;
}
/**
* @param givebackPlanDate
* the givebackPlanDate to set
*/
public void setGivebackPlanDate(String givebackPlanDate) {
this.givebackPlanDate = givebackPlanDate;
}
/**
* @param id
* the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @param lendDate
* the lendDate to set
*/
public void setLendDate(String lendDate) {
this.lendDate = lendDate;
}
/**
* @param lendEmployee
* the lendEmployee to set
*/
public void setLendEmployee(String lendEmployee) {
this.lendEmployee = lendEmployee;
}
/**
* @param state
* the state to set
*/
public void setState(String state) {
this.state = state;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -