A8接口和增值开发手册(4)

2019-01-18 18:08

用友致远协同办公系统-开发手册

}

public String getName(Map preference) { }

@Override

public String getIcon() { }

@Override

public Integer getTotal(Map preference) {

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 agentModelMap = new HashMap(); if (isPloxy) {

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 preference) {

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 agentModelMap = new HashMap(); if (isPloxy) {

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 {


A8接口和增值开发手册(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:无痛引产怎么样

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: