【分享】移动业务审批交互提示处理说明
金蝶云社区-emily
emily
1人赞赏了该文章 2222次浏览 未经作者许可,禁止转载编辑于2018年08月29日 19:57:33

1、移动端审批只支持简单的交互提示,即警告提示和是否选择的交互提示。
2、其它交互方式,如需要输入密码等,不支持,并请把IOperationResult.InteractionContext.SupportMobile 设置为false。
3、交互内容要放在IOperationResult.InteractionContext中返回,移动审批处理程序解析上下文内容后,弹出交互框。
4、下面是移动端交互处理代码,供参考。
      if (iOpResult.IsSuccess)
            {
                //this.GoToList();
                this.View.Close();
            }
            else if (iOpResult.InteractionContext != null)
            {
                string message = iOpResult.InteractionContext.SimpleMessage;
                if (!iOpResult.InteractionContext.SupportMobile || string.IsNullOrWhiteSpace(message))
                {
                    message = ResManager.LoadKDString("存在移动端不支持的交互处理,请到PC端处理。", "002406030028103", SubSystemType.BOS);
                    this.View.ShowErrMessage(message);
                }
                else
                {
                    string formId = iOpResult.InteractionContext.InteractionFormId;
                    _provider.SetInteractionFlagSession(formId);
                    GoToInteractive(iOpResult);
                }
            }

赞 1