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

📄 linkmanform.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;

import com.qrsx.qrsxcrm.model.Client;

public class LinkManForm extends ActionForm {
	private String id; 				// 主键
	private String linkManName; 	// 联系人姓名
	private String sex; 			// 性别
	private String clientId;	 	// 客户id
	private String mobilephone; 	// 联系人电话
	private String telephone; 		// 联系人固定电话
	private String birthday; 		// 联系人的生日
	private String address; 		// 联系人的地址
	private String email; 			// 联系人的email
	private String qq; 				// QQ
	private String msn; 			// MSN
	private String remark; 			// 备注
	private Client client; 			// 级联一个客户对象
	
	/**
	 * FORM表单验证
	 */
	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
		
		ActionErrors errors = new ActionErrors();
		if((linkManName == null)||(linkManName.length()<1)){
			errors.add("linkManName",new ActionMessage("client.linkMan.linkName"));
		}
		if((clientId == null)||(clientId.length()<1)){
			errors.add("clientId",new ActionMessage("client.linkMan.clientId"));
		}
		if((mobilephone == null)||(mobilephone.length()<1)){
			errors.add("mobilephone",new ActionMessage("client.linkMan.mobilephone"));
		}
		if((address == null)||(address.length()<1)){
			errors.add("address",new ActionMessage("client.linkMan.address"));
		}
		if((email == null)||(email.length()<1)){
			errors.add("email",new ActionMessage("client.linkMan.email"));
		}
		
		return errors;
	}
	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}
	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	/**
	 * @return the birthday
	 */
	public String getBirthday() {
		return birthday;
	}
	/**
	 * @param birthday the birthday to set
	 */
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	/**
	 * @return the client
	 */
	public Client getClient() {
		return client;
	}
	/**
	 * @param client the client to set
	 */
	public void setClient(Client client) {
		this.client = client;
	}
	/**
	 * @return the clientId
	 */
	public String getClientId() {
		return clientId;
	}
	/**
	 * @param clientId the clientId to set
	 */
	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the linkManName
	 */
	public String getLinkManName() {
		return linkManName;
	}
	/**
	 * @param linkManName the linkManName to set
	 */
	public void setLinkManName(String linkManName) {
		this.linkManName = linkManName;
	}
	/**
	 * @return the mobilephone
	 */
	public String getMobilephone() {
		return mobilephone;
	}
	/**
	 * @param mobilephone the mobilephone to set
	 */
	public void setMobilephone(String mobilephone) {
		this.mobilephone = mobilephone;
	}
	/**
	 * @return the msn
	 */
	public String getMsn() {
		return msn;
	}
	/**
	 * @param msn the msn to set
	 */
	public void setMsn(String msn) {
		this.msn = msn;
	}
	/**
	 * @return the qq
	 */
	public String getQq() {
		return qq;
	}
	/**
	 * @param qq the qq to set
	 */
	public void setQq(String qq) {
		this.qq = qq;
	}
	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}
	/**
	 * @param sex the sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}
	/**
	 * @return the telephone
	 */
	public String getTelephone() {
		return telephone;
	}
	/**
	 * @param telephone the telephone to set
	 */
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

}

⌨️ 快捷键说明

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