?? resourcemodel.java.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 + -