电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

sHR二开之发送提醒消息给指定用户

来源:金蝶云社区作者:金蝶2024-09-1613

sHR二开之发送提醒消息给指定用户

二开场景:需要发送消息提醒给指定的用户,用户收到消息后可以点击跳转到具体业务单据。

适用版本:s-HR8.5及以上版本

适用对象:二开人员

步骤:创建message ,调用 DirectSenderAgent.getSenderAgent().sendMessage(message); 发送消息。



Message message = MessageFactory.newMessage();

message.setBooleanHeader("isSendCommon", Boolean.TRUE);

message.setLocaleStringHeader("title", bodySb1.toString(), LocaleUtils.locale_l1); message.setLocaleStringHeader("title", bodySb2.toString(), LocaleUtils.locale_l2); message.setLocaleStringHeader("title", bodySb3.toString(), LocaleUtils.locale_l3); message.setLocaleStringHeader("body", bodySb1.toString(), LocaleUtils.locale_l1); message.setLocaleStringHeader("body", bodySb2.toString(), LocaleUtils.locale_l2); message.setLocaleStringHeader("body", bodySb3.toString(), LocaleUtils.locale_l3); message.setLocaleStringHeader("sender",SHRServerResource.getString(Constants.COMMON_SERVICE_RESOURCE, "sys_auto_send",LocaleUtils.locale_l1), LocaleUtils.locale_l1);  //"系统自动发送" 

message.setLocaleStringHeader("sender",SHRServerResource.getString(Constants.COMMON_SERVICE_RESOURCE, "sys_auto_send",LocaleUtils.locale_l2), LocaleUtils.locale_l2);  //"系统自动发送" message.setLocaleStringHeader("sender",SHRServerResource.getString(Constants.COMMON_SERVICE_RESOURCE, "sys_auto_send",LocaleUtils.locale_l3), LocaleUtils.locale_l3);  //"系统自动发送" message.setLocaleStringHeader("initiatorName",SHRServerResource.getString(Constants.COMMON_SERVICE_RESOURCE, "sys_auto_send",LocaleUtils.locale_l1), LocaleUtils.locale_l1);  //"系统自动发送" message.setLocaleStringHeade

sHR二开之发送提醒消息给指定用户

二开场景:需要发送消息提醒给指定的用户,用户收到消息后可以点击跳转到具体业务单据。适用版本:s-HR8.5及以上版本适用对象:二开人员步...
点击下载文档文档为doc格式

声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

已经是第一篇
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信