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

📄 dailyform.java

📁 客户关系管理系统主要管理新老客户的一些信息并可以发现潜在客户
💻 JAVA
字号:
/** *  */package com.qrsx.qrsxcrm.form;import java.util.Date;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;import com.qrsx.qrsxcrm.model.User;/** * @author Administrator *  */public class DailyForm extends ActionForm {	public ActionErrors validate(ActionMapping mapping,			HttpServletRequest request) {		ActionErrors errors = new ActionErrors();		if (title == null || title.length() < 1) {			System.out.println("--------执行2------" + title);			errors.add("title", new ActionMessage(					"title.required"));		}		if (beginTime == null || beginTime.trim().length() < 1) {			System.out.println("--------执行3------" + beginTime);			errors.add("beginTime", new ActionMessage(					"beginTime.required"));		}		if (endTime == null || endTime.trim().length() < 1) {			System.out.println("--------执行4------" + endTime);			errors.add("endTime", new ActionMessage(					"endTime.required"));		}		if(contents == null|| contents.trim().length()<1){			errors.add("contents", new ActionMessage(			"contents.required"));		}		return errors;	}	private String id;	private String title;	private String beginTime;	private String endTime;	private String contents;	private String userId;	private User user;	public String getContents() {		return contents;	}	public String getBeginTime() {		return beginTime;	}	public void setBeginTime(String beginTime) {		this.beginTime = beginTime;	}	public String getEndTime() {		return endTime;	}	public void setEndTime(String endTime) {		this.endTime = endTime;	}	public void setContents(String contents) {		this.contents = contents;	}	public String getId() {		return id;	}	public void setId(String id) {		this.id = id;	}	public String getTitle() {		return title;	}	public void setTitle(String title) {		this.title = title;	}	public User getUser() {		return user;	}	public void setUser(User user) {		this.user = user;	}	public String getUserId() {		return userId;	}	public void setUserId(String userId) {		this.userId = userId;	}}

⌨️ 快捷键说明

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