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

📄 userform.java

📁 本人课程设计时做的一个用struts框架实现的基于cmmi2的项目管理系统的原型。还有部分功能尚未实现
💻 JAVA
字号:
// Created by Xslt generator for Eclipse.
// XSL :  not found (java.io.FileNotFoundException:  (The system cannot find the path specified))
// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xsl

package com.cmmi2pms.sa.user;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/** 
 * AdduserForm.java created by EasyStruts - XsltGen.
 * http://easystruts.sf.net
 * created on 04-12-2004
 * 
 * XDoclet definition:
 * @struts:form name="adduserForm"
 */
public class UserForm extends ActionForm {

	// --------------------------------------------------------- Instance Variables
//sql = "select userID,Username,Password,Permission,Name,departID,Position,Email,";
//sql += "Phone,Mobile from employee,department where employee.departID=department.departID";
//sql += " and IsAvailable > 0 order by userID";
	
	private int userID;
	
	private String userName;
	
	private String password;

	private String a_permission;
			
	private String name;
	
	private int departID;
	private String DepartName;
	private String position;
	
	private String email;

	private String phone;
	
	private String mobile;
	
	private int isAvailable;

	// --------------------------------------------------------- Methods

	/** 
	 * Method validate
	 * @param ActionMapping mapping
	 * @param HttpServletRequest request
	 * @return ActionErrors
	 */
	public ActionErrors validate(
		ActionMapping mapping,
		HttpServletRequest request) {

		ActionErrors errors = new ActionErrors();
		
	if ((userName == null) || (userName.length() < 1))
            errors.add("userName",
                new ActionError("error.userName.required"));
        
              
		return errors;
		//throw new UnsupportedOperationException("Generated method 'validate(...)' not implemented.");
	}

	/** 
	 * Returns the userID.
	 * @return String
	 */
	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	 public String getUsername() {
		 return userName;
	 }

	
	 public void setUsername(String userName) {
		 this.userName = userName;
	 }
	 
	public String getPassword() {
		return password;
	}

	
	public void setPassword(String password) {
		this.password = password;
	}

	public String getPermission() {
		return a_permission;
	}
	
	public void setPermission(String a_permission) {
		this.a_permission = a_permission;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getDepartID() {
		return departID;
	}

	
	public void setDepartID(int departID) {
		this.departID = departID;
	}

	public String getDepartName() {
		return DepartName;
	}

	
	public void setDepartName(String DepartName) {
		this.DepartName = DepartName;
	}

	public String getPosition() {
		return position;
	}

	
	public void setPosition(String position) {
		this.position = position;
	}

	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getPhone() {
		return phone;
	}

	
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getMobile() {
		return mobile;
	}
	
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public int getIsAvailable() {
		return isAvailable;
	}

	public void setIsAvailable(int isAvailable) {
		this.isAvailable = isAvailable;
	}
}

⌨️ 快捷键说明

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