📄 assignmentdto.java
字号:
package com.coshare.joyteam.projectMgr.dto;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.coshare.joyteam.util.ID;
public class AssignmentDTO implements Serializable {
private static final long serialVersionUID = 3257001051541549620L;
private ID holderId;
private ArrayList docResList;
private ArrayList orgResList;
public AssignmentDTO(ID holderId) {
this.holderId = holderId;
this.docResList = new ArrayList();
this.orgResList = new ArrayList();
}
public void addDocResource(String resId, int resType, int ioType, String theDescription) {
DocResource res = null;
if (holderId.getType() == ID.TYPE_WfInstance || holderId.getType() == ID.TYPE_WfTask) {
res = new InstResourceDocDTO();
}
else {
res = new TplResourceDocDTO();
}
res.setResId(resId);
res.setResType(resType);
res.setInputorOutput(ioType);
res.setTheDescription(theDescription);
this.addDocResource(res);
}
public void addDocResource(DocResource docResource) {
this.docResList.add(docResource);
}
public void addOrgResource(String resId, int type) {
OrgResource res = null;
if (holderId.getType() == ID.TYPE_WfInstance || holderId.getType() == ID.TYPE_WfTask) {
res = new InstResourceOrgDTO();
}
else {
res = new TplResourceOrgDTO();
}
res.setResId(resId);
res.setType(type);
this.addOrgResource(res);
}
public void addOrgResource(OrgResource orgResource) {
this.orgResList.add(orgResource);
}
public List getDocResources() {
return this.docResList;
}
public List getOrgResources() {
return this.orgResList;
}
/**
* @return Returns the holderId.
*/
public ID getHolderId() {
return holderId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -