UserForm.java
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:5k
源码类别:
Jsp/Servlet
开发平台:
Java
- //Created by MyEclipse Struts
- // XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.1.0/xslt/JavaClass.xsl
- package com.oa.module.office.user;
- 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;
- /**
- * MyEclipse Struts Creation date: 01-17-2008
- *
- * XDoclet definition:
- *
- * @struts.form name="userForm"
- */
- public class UserForm extends ActionForm {
- private String uno;
- private String did;
- private String uname;
- private String upwd;
- private String usex;
- private String uarea;
- private String uwork;
- private String uphone;
- private String uemail;
- private String umobile;
- private String uaddress;
- private String uismarryed;
- private String uisonline;
- private String uislocked;
- private String umemo;
- private String uidcard;
- private String uaddtime;
- private String utruename;
- private String dname;
- private String pname;
- private String method;
- /**
- * Method validate
- *
- * @param mapping
- * @param request
- * @return ActionErrors
- */
- public ActionErrors validate(ActionMapping mapping,
- HttpServletRequest request) {
- ActionErrors errors = new ActionErrors();
- if (this.method != null && this.method.equals("add")
- && this.method.equals("update")) {
- if (this.uname == null || this.uname.trim().equals("")) {
- ActionMessage message = new ActionMessage("用户名为空!", false);
- errors.add("uname", message);
- }
- }
- return errors;
- }
- /**
- * Method reset
- *
- * @param mapping
- * @param request
- */
- public void reset(ActionMapping mapping, HttpServletRequest request) {
- this.method = "add";
- this.uismarryed="1";
- // this.did="2";
- // this.uwork="1";
- this.usex="1";
- // this.uarea="福建福州";
- // this.uphone="0591-12345678";
- // this.uemail="fz163@163.com";
- // this.umobile="13500000000";
- // this.uidcard="320123456789456870";
- // this.utruename="测试员";
- // this.umemo="备注说明";
- // this.uaddress="福建";
- }
- public String getDid() {
- return did;
- }
- public void setDid(String did) {
- this.did = did;
- }
- public String getMethod() {
- return method;
- }
- public void setMethod(String method) {
- this.method = method;
- }
- public String getUaddress() {
- return uaddress;
- }
- public void setUaddress(String uaddress) {
- this.uaddress = uaddress;
- }
- public String getUaddtime() {
- return uaddtime;
- }
- public void setUaddtime(String uaddtime) {
- this.uaddtime = uaddtime;
- }
- public String getUarea() {
- return uarea;
- }
- public void setUarea(String uarea) {
- this.uarea = uarea;
- }
- public String getUemail() {
- return uemail;
- }
- public void setUemail(String uemail) {
- this.uemail = uemail;
- }
- public String getUidcard() {
- return uidcard;
- }
- public void setUidcard(String uidcard) {
- this.uidcard = uidcard;
- }
- public String getUislocked() {
- return uislocked;
- }
- public void setUislocked(String uislocked) {
- this.uislocked = uislocked;
- }
- public String getUismarryed() {
- return uismarryed;
- }
- public void setUismarryed(String uismarryed) {
- this.uismarryed = uismarryed;
- }
- public String getUisonline() {
- return uisonline;
- }
- public void setUisonline(String uisonline) {
- this.uisonline = uisonline;
- }
- public String getUmemo() {
- return umemo;
- }
- public void setUmemo(String umemo) {
- this.umemo = umemo;
- }
- public String getUmobile() {
- return umobile;
- }
- public void setUmobile(String umobile) {
- this.umobile = umobile;
- }
- public String getUname() {
- return uname;
- }
- public void setUname(String uname) {
- this.uname = uname;
- }
- public String getUno() {
- return uno;
- }
- public void setUno(String uno) {
- this.uno = uno;
- }
- public String getUphone() {
- return uphone;
- }
- public void setUphone(String uphone) {
- this.uphone = uphone;
- }
- public String getUpwd() {
- return upwd;
- }
- public void setUpwd(String upwd) {
- this.upwd = upwd;
- }
- public String getUsex() {
- return usex;
- }
- public void setUsex(String usex) {
- this.usex = usex;
- }
- public String getUtruename() {
- return utruename;
- }
- public void setUtruename(String utruename) {
- this.utruename = utruename;
- }
- public String getUwork() {
- return uwork;
- }
- public void setUwork(String uwork) {
- this.uwork = uwork;
- }
- public String getDname() {
- return dname;
- }
- public void setDname(String dname) {
- this.dname = dname;
- }
- public String getPname() {
- return pname;
- }
- public void setPname(String pname) {
- this.pname = pname;
- }
- }