用友致远协同办公系统-开发手册
}
public String getName(Map
@Override
public String getIcon() { }
@Override
public Integer getTotal(Map
User user = CurrentUser.get(); Long memberId = user.getId();
List _agentModelList = MemberAgentBean.getInstance()
.getAgentModelList(memberId); .getAgentModelToList(memberId);
List _agentModelToList = MemberAgentBean.getInstance() List agentModelList = null; boolean agentToFlag = false; boolean isPloxy = false;
if (_agentModelList != null && !_agentModelList.isEmpty()) { }
Map
for (AgentModel agentModel : agentModelList) {
String agentOptionStr = agentModel.getAgentOption(); String[] agentOptions = agentOptionStr.split(\); for (String agentOption : agentOptions) {
int _agentOption = Integer.parseInt(agentOption);
if (_agentOption == ApplicationCategoryEnum.collaboration
.key()) {
.key(), agentModel);
agentModelMap.put(ApplicationCategoryEnum.collaboration
isPloxy = true;
agentModelList = _agentModelList; isPloxy = true;
agentModelList = _agentModelToList; agentToFlag = true; isPloxy = false; return null; return \;
} else if (_agentModelToList != null && !_agentModelToList.isEmpty()) {
} else {
} else if (_agentOption == ApplicationCategoryEnum.edoc
.key()) {
agentModel);
agentModelMap.put(ApplicationCategoryEnum.edoc.key(),
用友致远协同办公系统-开发手册
}
}
}
}
} else if (_agentOption == ApplicationCategoryEnum.meeting }
.key()) {
ApplicationCategoryEnum.meeting.key(), agentModel);
agentModelMap.put(
return affairManager.countPending(memberId, agentModelMap, null, null,
null, agentToFlag);
public BaseSectionTemplete projection(Map
MultiRowFourColumnTemplete c = new MultiRowFourColumnTemplete(); User user = CurrentUser.get(); Long memberId = user.getId(); Long proxyId = user.getAgentToId();
Pagination.setNeedCount(false); // 不需要分页 Pagination.setFirstResult(0); Pagination.setMaxResults(8); String url = \;
List _agentModelList = MemberAgentBean.getInstance()
.getAgentModelList(memberId); .getAgentModelToList(memberId);
List _agentModelToList = MemberAgentBean.getInstance() List agentModelList = null; boolean agentToFlag = false; boolean isPloxy = false;
if (_agentModelList != null && !_agentModelList.isEmpty()) { }
Map
for (AgentModel agentModel : agentModelList) {
String agentOptionStr = agentModel.getAgentOption(); String[] agentOptions = agentOptionStr.split(\); isPloxy = true;
agentModelList = _agentModelList; isPloxy = true;
agentModelList = _agentModelToList; agentToFlag = true; isPloxy = false;
} else if (_agentModelToList != null && !_agentModelToList.isEmpty()) {
} else {
用友致远协同办公系统-开发手册
}
}
for (String agentOption : agentOptions) { }
int _agentOption = Integer.parseInt(agentOption);
if (_agentOption == ApplicationCategoryEnum.collaboration }
.key()) {
.key(), agentModel);
agentModelMap.put(ApplicationCategoryEnum.collaboration
} else if (_agentOption == ApplicationCategoryEnum.edoc
.key()) {
agentModel);
agentModelMap.put(ApplicationCategoryEnum.edoc.key(),
} else if (_agentOption == ApplicationCategoryEnum.meeting
.key()) {
ApplicationCategoryEnum.meeting.key(), agentModel);
agentModelMap.put(
List affairs = affairManager.queryPendingList(memberId,
agentModelMap, null, null, null, agentToFlag);
if (affairs == null) { }
for (Affair affair : affairs) {
url = \;
MultiRowFourColumnTemplete.Row row = c.addRow(); String forwardMember = affair.getForwardMember(); Integer resentTime = affair.getResentTime();
String subject = ColHelper.mergeSubjectWithForwardMembers(affair
.getSubject(), forwardMember, resentTime, orgManager, null);
int app = affair.getApp();
Long objectId = affair.getObjectId(); row.setSubject(subject);
ApplicationCategoryEnum appEnum = ApplicationCategoryEnum
.valueOf(app);
switch (appEnum) { case collaboration:
row
.setLink(\
+ affair.getId());
return null;
用友致远协同办公系统-开发手册
row
.setCategory(app,
\);
break; row
.setLink(\
+ objectId);
case meeting:
row.setCategory(app, \); break;
case edocSend: case edocRec: case edocSign:
row
.setLink(\
+ affair.getId());
row.setCategory(app, EdocUtil
.getEdocCategroryPendingUrl(appEnum.getKey()));
break; row }
row.setCategory(app, url); break; row }
row.setCategory(app, url); break; row.setLink(
+ EdocEnum.edocType.recEdoc.ordinal() + \ + affair.getSubObjectId()
+ affair.getSubObjectId());
.setLink(\
+ affair.getSubObjectId());
case exSend:
if (MenuFunction.hasMenu(EdocUtil.getMenuIdByApp(appEnum
.getKey()))) {
url = \;
case exSign:
.setLink(\
if (MenuFunction.hasMenu(EdocUtil.getMenuIdByApp(appEnum
.getKey()))) {
url = \;
case edocRegister:
\
用友致远协同办公系统-开发手册
} }
}
+ \ + affair.getObjectId(),
BaseSectionTemplete.OPEN_TYPE.href); .getKey()))) {
if (MenuFunction.hasMenu(EdocUtil.getMenuIdByApp(appEnum
url =
\;
row.setCategory(app, url); break;
row.setLink(\
+ affair.getObjectId(), OPEN_TYPE.openWorkSpaceRight);
boolean isGroup = (affair.getSubObjectId().intValue() ==
.ordinal());
\
+ (isGroup ? 0 : 1) + \ + (isGroup ? \ : \));
case bulletin:
com.seeyon.v3x.bulletin.util.Constants.BulTypeSpaceType.group
row.setCategory(app,
break;
row.setLink(\
+ affair.getObjectId(), OPEN_TYPE.openWorkSpaceRight);
boolean isGroupNews = (affair.getSubObjectId().intValue() ==
.ordinal());
\
+ (isGroupNews ? 0 : 1) + \ + (isGroupNews ? \ : \));
case news:
com.seeyon.v3x.news.util.Constants.NewsTypeSpaceType.group
row.setCategory(app,
break;
row.setLink(\
+ objectId, OPEN_TYPE.openWorkSpaceRight);
row.setCategory(app, \); break;
row.setLink(\
+ objectId, OPEN_TYPE.openWorkSpaceRight);
row.setCategory(app, \);
case inquiry:
case meetingroom: {
V3xOrgMember member = null; try {