移动平台第三方集成,支持区分消息类型:待办、传阅、节点消息,催办消息等;

8.2.0.20240104及以上版本,支持区分消息类型:待办、传阅、节点消息,催办消息等;
本知识,需要一定的基础,详细情况参考:
移动平台第三方系统集成方案V2.0 https://vip.kingdee.com/article/45809396501512192?productLineId=1&isKnowledge=2
第三方集成消息返回值:MobileMessage 新增属性OpenType;
/// <summary>
/// 消息类型
/// </summary>
public enum OpenType
{
/// <summary>
/// 待办类:催办、超时提醒
/// </summary>
assign,
/// <summary>
/// 流程类:节点消息
/// </summary>
procinst,
/// <summary>
/// 传阅类:传阅消息
/// </summary>
passround
} 当MobileMessage的属性SourceType 为wf时,表示待办任务;当SourceType为wf common message时,表示是普通消息,它包括待办类,流程类,传阅类等3中类型,详细参考上面的枚举;
不同的消息,打开时候,构造的url是不一样的,详细构造如下:
public MobileResponse Send(Context ctx, MobileMessage message)
{
//构造链接示例
string id = message.Id;
string sourceId = message.SourceId;
string sourceType = message.SourceType;
string opentype = message.OpenType.ToString();
string serverUrl = "http://localhost:1400/k3cloud";
string acctId = "60a32c51310884";
string lcId = "2052";
string sign64 = string.Empty;
string formId = "MOB_DistributionWFBill";
string formType = "mobile";
string url = string.Empty;
if (sourceType == "wf")
{
//待办任务
url = string.Format(@"{0}/xmobile/cloud.html?entryrole=oo&acctid={1}&lcid={2}&sign={3}&formid={4}&formtype={5}&pkid={6}", serverUrl, acctId, lcId, sign64, formId, formType, sourceId);
}
else if (sourceType == "wf common message")
{
if (opentype == "assign")
{
//待办类普通消息,如催办,超时提醒
url = string.Format(@"{0}/xmobile/cloud.html?entryrole=oo&acctid={1}&lcid={2}&sign={3}&formid={4}&formtype={5}&pkid={6}",移动平台第三方集成,支持区分消息类型:待办、传阅、节点消息,催办消息等;
8.2.0.20240104及以上版本,支持区分消息类型:待办、传阅、节点消息,催办消息等; 本知识,需要一定的基础,详细情况参考:...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇



