📄 serviceform.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 ServiceForm extends ActionForm
{
private String id; //主键
private String serviceTypeId; //服务类型
private String beginTime; //开始时间
private String endTime; //结束时间
private String state; //服务状态
private String remark; //服务总结
private String clientId;
private String employeeId;
private String trouble;
private String solve;
/**
* FORM表单验证
*/
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if((serviceTypeId == null)||(serviceTypeId.length()<1)){
errors.add("serviceTypeId",new ActionMessage("sale.service.serviceTypeId"));
}
if((beginTime == null)||(beginTime.length()<1)){
errors.add("beginTime",new ActionMessage("sale.service.beginTime"));
}
if((endTime == null)||(endTime.length()<1)){
errors.add("endTime",new ActionMessage("sale.service.endTime"));
}
if((state == null)||(state.length()<1)){
errors.add("state",new ActionMessage("sale.service.state"));
}
if((remark == null)||(remark.length()<1)){
errors.add("remark",new ActionMessage("sale.service.remark"));
}
if((clientId == null)||(clientId.length()<1)){
errors.add("clientId",new ActionMessage("sale.service.clientId"));
}
if((employeeId == null)||(employeeId.length()<1)){
errors.add("employeeId",new ActionMessage("sale.service.employeeId"));
}
if((trouble == null)||(trouble.length()<1)){
errors.add("trouble",new ActionMessage("sale.service.trouble"));
}
if((solve == null)||(solve.length()<1)){
errors.add("solve",new ActionMessage("sale.service.solve"));
}
return errors;
}
/**
* @return the solve
*/
public String getSolve() {
return solve;
}
/**
* @param solve the solve to set
*/
public void setSolve(String solve) {
this.solve = solve;
}
/**
* @return the trouble
*/
public String getTrouble() {
return trouble;
}
/**
* @param trouble the trouble to set
*/
public void setTrouble(String trouble) {
this.trouble = trouble;
}
/**
* @return the beginTime
*/
public String getBeginTime() {
return beginTime;
}
/**
* @param beginTime the beginTime to set
*/
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
/**
* @return the clientId
*/
public String getClientId() {
return clientId;
}
/**
* @param clientId the clientId to set
*/
public void setClientId(String clientId) {
this.clientId = clientId;
}
/**
* @return the employeeId
*/
public String getEmployeeId() {
return employeeId;
}
/**
* @param employeeId the employeeId to set
*/
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
/**
* @return the endTime
*/
public String getEndTime() {
return endTime;
}
/**
* @param endTime the endTime to set
*/
public void setEndTime(String endTime) {
this.endTime = endTime;
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @return the remark
*/
public String getRemark() {
return remark;
}
/**
* @param remark the remark to set
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* @return the state
*/
public String getState() {
return state;
}
/**
* @param state the state to set
*/
public void setState(String state) {
this.state = state;
}
/**
* @return the serviceTypeId
*/
public String getServiceTypeId() {
return serviceTypeId;
}
/**
* @param serviceTypeId the serviceTypeId to set
*/
public void setServiceTypeId(String serviceTypeId) {
this.serviceTypeId = serviceTypeId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -