projectmodel.java.svn-base

来自「一个timesheet程序,用来统计开发人员的度量衡web在线程序.用于软件行业」· SVN-BASE 代码 · 共 55 行

SVN-BASE
55
字号
package com.nsi.components.project;


/**
 * @author Chris Ye, created on Sep 30, 2008
 *
 * ProjectModel
 */
public class ProjectModel
{
	private ProjectInfo info;
	/**
	 * constructor of ProjectModel
	 */
	public ProjectModel()
	{
		info = new ProjectInfo();
	}
	/**
	 * constructor of ProjectModel
	 * @param newInfo
	 */
	public ProjectModel(ProjectInfo info)
	{
		this.info = info;
	}
	public void copy(ProjectInfo otherInfo)
	{
		info.setProjectid(otherInfo.getProjectid());
		info.setProjectcode(otherInfo.getProjectcode());
		info.setProjectname(otherInfo.getProjectname());
		info.setShortname(otherInfo.getShortname());
		info.setStartdate(otherInfo.getStartdate());
		info.setEnddate(otherInfo.getEnddate());
		info.setProjstatusid(otherInfo.getProjstatusid());
		info.setGlobalind(otherInfo.getGlobalind());
		info.setProjectcodeprefix(otherInfo.getProjectcodeprefix());
		info.setClientid(otherInfo.getClientid());
	}
	public ProjectInfo getInfo()
	{
		return info;
	}
	public String getProjectid()
	{
		return info.getProjectid();
	}
	public String toString()
	{
		String re = "";
		re = "projectid = " + getProjectid() + "\n" + "project info = " + info.toString() + "\n";
		return re;
	}
}

⌨️ 快捷键说明

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