📄 updateclieatform.java
字号:
/*
* Created on 2006-6-27
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.funddeal.view.actionform.client;
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.funddeal.base.StringUtil;
/**
* @author Administrator
*/
public class UpdateClieatForm extends ActionForm {
/**
*
*/
private static final long serialVersionUID = 1L;
private String client_no;
private String client_name;
private String id_card_no;
private String sex;
private String phone;
private String addess;
private String email;
private String hobby;
public ActionErrors validate(ActionMapping mapping,HttpServletRequest request){
ActionErrors errors=new ActionErrors();
if(client_no.equals("") || client_name.equals("") || id_card_no.equals("") ||
sex.equals("") ||phone.equals("") || addess.equals("") ||
email.equals("") || hobby.equals(""))
errors.add("djsone",new ActionMessage("godine"));
return errors;
}
/**
* @return Returns the addess.
*/
public String getAddess() {
return addess;
}
/**
* @param addess The addess to set.
*/
public void setAddess(String addess) {
this.addess = addess;
}
/**
* @return Returns the client_name.
*/
public String getClient_name() {
return client_name;
}
/**
* @param client_name The client_name to set.
*/
public void setClient_name(String client_name) {
this.client_name = StringUtil.toGBK(client_name);
}
/**
* @return Returns the client_no.
*/
public String getClient_no() {
return client_no;
}
/**
* @param client_no The client_no to set.
*/
public void setClient_no(String client_no) {
this.client_no = client_no;
}
/**
* @return Returns the email.
*/
public String getEmail() {
return email;
}
/**
* @param email The email to set.
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return Returns the hobby.
*/
public String getHobby() {
return hobby;
}
/**
* @param hobby The hobby to set.
*/
public void setHobby(String hobby) {
this.hobby = hobby;
}
/**
* @return Returns the id_card_no.
*/
public String getId_card_no() {
return id_card_no;
}
/**
* @param id_card_no The id_card_no to set.
*/
public void setId_card_no(String id_card_no) {
this.id_card_no = id_card_no;
}
/**
* @return Returns the phone.
*/
public String getPhone() {
return phone;
}
/**
* @param phone The phone to set.
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
* @return Returns the sex.
*/
public String getSex() {
return sex;
}
/**
* @param sex The sex to set.
*/
public void setSex(String sex) {
this.sex = StringUtil.toGBK(sex);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -