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

📄 projectform.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.xslpackage com.cmmi2pms.sa.project;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;/**  * AddprojectForm.java created by EasyStruts - XsltGen. * http://easystruts.sf.net * created on 04-12-2004 *  * XDoclet definition: * @struts:form name="addprojectForm" */public class ProjectForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	/** projectID property */	private String projectID;		private String projectCode;	/** description property */	private String description;	/** startTime property */	private String startDate;		private String endDate;	/** departID property */	private String departID;	/** stage property */	private String stage;	/** projectName property */	private String projectName;	/** PM property */	private String PM;		private String budget;	// --------------------------------------------------------- Methods	/** 	 * Method validate	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) {		ActionErrors errors = new ActionErrors();				if ((projectCode == null) || (projectCode.length() < 1))
            errors.add("projectCode",
                new ActionError("error.projectCode.required"));                        if ((projectName == null) || (projectName.length() < 1))
            errors.add("projectName",
                new ActionError("error.projectName.required"));                      		return errors;		//throw new UnsupportedOperationException("Generated method 'validate(...)' not implemented.");	}	/** 	 * Returns the projectID.	 * @return String	 */	public String getProjectID() {		return projectID;	}	/** 	 * Set the projectID.	 * @param projectID The projectID to set	 */	public void setProjectID(String projectID) {		this.projectID = projectID;	}	 public String getProjectCode() {
		 return projectCode;
	 }

	
	 public void setProjectCode(String projectCode) {
		 this.projectCode = projectCode;
	 }	 	public String getDescription() {		return description;	}	/** 	 * Set the description.	 * @param description The description to set	 */	public void setDescription(String description) {		this.description = description;	}	/** 	 * Returns the startTime.	 * @return String	 */	public String getStartDate() {		return startDate;	}	/** 	 * Set the startTime.	 * @param startTime The startTime to set	 */	public void setStartDate(String startDate) {		this.startDate = startDate;	}		public String getEndDate() {		return endDate;	}	/** 	 * Set the startTime.	 * @param startTime The startTime to set	 */	public void setEndDate(String endDate) {		this.endDate = endDate;	}	/** 	 * Returns the departID.	 * @return String	 */	public String getDepartID() {		return departID;	}	/** 	 * Set the departID.	 * @param departID The departID to set	 */	public void setDepartID(String departID) {		this.departID = departID;	}	/** 	 * Returns the stage.	 * @return String	 */	public String getStage() {		return stage;	}	/** 	 * Set the stage.	 * @param stage The stage to set	 */	public void setStage(String stage) {		this.stage = stage;	}	/** 	 * Returns the projectName.	 * @return String	 */	public String getProjectName() {		return projectName;	}	/** 	 * Set the projectName.	 * @param projectName The projectName to set	 */	public void setProjectName(String projectName) {		this.projectName = projectName;	}	/** 	 * Returns the PM.	 * @return String	 */	public String getPM() {		return PM;	}	/** 	 * Set the PM.	 * @param PM The PM to set	 */	public void setPM(String PM) {		this.PM = PM;	}		public String getBudget() {		return budget;	}	/** 	 * Set the PM.	 * @param PM The PM to set	 */	public void setBudget(String budget) {		this.budget = budget;	}}

⌨️ 快捷键说明

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