resourcemodel.java.svn-base

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

SVN-BASE
67
字号
package com.nsi.components.resource;


/**
 * @author Chris Ye, created on Sep 30, 2008
 *
 * ResourceModel
 */
public class ResourceModel
{
	private ResourceInfo info;
	/**
	 * constructor of ResourceModel
	 */
	public ResourceModel()
	{
		info = new ResourceInfo();
	}
	/**
	 * constructor of ResourceModel
	 * @param info
	 */
	public ResourceModel(ResourceInfo info)
	{
		this.info = info;
	}
	public void copy(ResourceInfo otherInfo)
	{
		info.setResourceid(otherInfo.getResourceid());
		info.setLastname(otherInfo.getLastname());
		info.setFirstname(otherInfo.getFirstname());
		info.setMiddlename(otherInfo.getMiddlename());
		info.setEmployeenum(otherInfo.getEmployeenum());
		info.setAddress(otherInfo.getAddress());
		info.setCity(otherInfo.getCity());
		info.setProvince(otherInfo.getProvince());
		info.setPostalcode(otherInfo.getPostalcode());
		info.setHomephone(otherInfo.getHomephone());
		info.setOfficephone(otherInfo.getOfficephone());
		info.setPager(otherInfo.getPager());
		info.setMobilephone(otherInfo.getMobilephone());
		info.setFax(otherInfo.getFax());
		info.setEmail(otherInfo.getEmail());
		info.setEmpltypeid(otherInfo.getEmpltypeid());
		info.setActive(otherInfo.getActive());
		info.setRemarks(otherInfo.getRemarks());
		//20070524
		info.setStartdate(otherInfo.getStartdate());
		info.setEnddate(otherInfo.getEnddate());
		info.setAgencyid(otherInfo.getAgencyid());
	}
	public ResourceInfo getInfo()
	{
		return info;
	}
	public String getResourceid()
	{
		return info.getResourceid();
	}
	public String toString()
	{
		String re = "";
		re = "resourceid = " + getResourceid() + "\n" + "resource info = " + info.toString() + "\n";
		return re;
	}
}

⌨️ 快捷键说明

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