📄 work.java
字号:
package net.sf.pim.model.psp;
import net.sf.util.StringUtil;
import net.sf.util.persistence.AbstractEntry;
import net.sf.util.persistence.EntryTag;
/**
* 值对象
*/
public class Work extends AbstractEntry{
@EntryTag(desc="日期")
public String rq;
@EntryTag(desc="序号")
public String wid;
@EntryTag(desc="开始时间")
public String kssj;
@EntryTag(desc="结束时间")
public String jssj;
@EntryTag(desc="打断时间")
public String ddsj;
@EntryTag(desc="工作时间")
public String gzsj;
@EntryTag(desc="工作说明")
public String gzsm;
@EntryTag(desc="备注")
public String bz;
@EntryTag(desc="分类")
public String gzfl;
@EntryTag(desc="项目组")
public String xmz;
@EntryTag(desc="计划")
public String plan;
/**
* 空构造器
*/
public Work() {
super();
}
//一组存取器
public String getRq() {
return rq;
}
public String getWid() {
return wid;
}
public String getKssj() {
return kssj;
}
public String getJssj() {
return jssj;
}
public String getGzsm() {
return gzsm;
}
public String getGzfl() {
return gzfl;
}
public String getXmz() {
return xmz;
}
//一组设置器
public void setRq(String rq) {
this.rq = rq;
}
public void setWid(String wid) {
this.wid = wid;
}
public void setKssj(String kssj) {
this.kssj = kssj;
}
public void setJssj(String jssj) {
this.jssj = jssj;
}
public void setGzsm(String gzsm) {
this.gzsm = gzsm;
}
public void setGzfl(String gzfl) {
this.gzfl = gzfl;
}
public void setXmz(String xmz) {
this.xmz = xmz;
}
public String getDdsj() {
return ddsj;
}
public void setDdsj(String ddsj) {
this.ddsj = ddsj;
}
public String getGzsj() {
return gzsj;
}
public void setGzsj(String gzsj) {
this.gzsj = gzsj;
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getPlan() {
return plan;
}
public void setPlan(String plan) {
this.plan = plan;
}
public String toXML() {
return new String("<work rq=\"" + StringUtil.encodeXml(getRq()) + "\" wid=\"" + StringUtil.encodeXml(getWid()) + "\" kssj=\"" + StringUtil.encodeXml(getKssj()) + "\" jssj=\"" + StringUtil.encodeXml(getJssj()) + "\" ddsj=\"" + StringUtil.encodeXml(getDdsj()) + "\" gzsj=\"" + StringUtil.encodeXml(getGzsj()) + "\" gzsm=\"" + StringUtil.encodeXml(getGzsm()) + "\" bz=\"" + StringUtil.encodeXml(getBz()) + "\" gzfl=\"" + getGzfl() + "\" xmz=\"" + getXmz() + "\" plan=\"" + StringUtil.encodeXml(getPlan()) + "\"/>");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -