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

📄 resourcemodel.java.svn-base

📁 一个timesheet程序,用来统计开发人员的度量衡web在线程序.用于软件行业
💻 SVN-BASE
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -