资源描述:
《eas短信平台开发2》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、EAS短信平台使用介绍1.相关介绍。金蝶通讯平台主要为业务系统提供收发手机短信、电子邮件等提供底层的通讯支持。各个业务系统通过调用金蝶通讯平台相关接口或与金蝶通讯平台通信来实现这些消息的收发,金蝶通讯平台是一个独立的产品。EAS短信平台是eas系统中的一个模块,是通过接口与金蝶通讯平台相连接,实现在eas中短信包括邮件消息的收发、查看和管理功能的模块,eas的各业务系统可以调用此模块中的方法实现具体业务功能。2.数据表:发送短信的表:T_MO_SendMoMsg接受短信的表:T_MO_RecMoMsg4.消息发送工具类:MsgUtil说明:具体业务系统可以直接调用这个类中的如下方法实现短
2、信的发送以及回复。·msgGroupSend(Contextctx,Stringtitle,intpriority,booleanrevertible,Stringcontent,ListuserList,intmsgType,KDMessageAttachment[]attachment)说明:短信或邮件群发Ctx:上下文Title:短信或邮件标题Priority:优先级,分为低、一般、高,取法为AppMsgUtil.getPriorityEnum(priority)revertible:是否可回复content:消息内容userList:接收人的ID列表,List中存放的是接收人的I
3、D。Attachment:发邮件时的附件msgType:消息类型,分为邮件、短信等,从BOSMsgTypeEnu中取。·booleannewMsgMobile(Contextctx,booleanrevertible,Stringtitle,Stringcontent,intpriority,UserInforeceiveUserInfo,StringreceiveMoNumber)说明:短信发送receiveUserInfo:消息接收人对象,存放接收人相关信息receiveMoNumber:接收手机号码·voidmsgMoblieByUserMap(Contextctx,Mapmap,
4、intpriority,booleanrevertible)说明:短信发送,map中存放的是personId和信息内容·booleanmsgSend(Contextctx,Stringtitle,intpriority,booleanrevertible,Stringcontent,StringpersonId,intmsgType,KDMessageAttachment[]attachment,StringassignID)说明:发送短信或邮件msgType:BOSMsgTypeEnum类型的常量值personId:接收人IDassignID:工作流任务ID·booleanmobile
5、MsgSend(Contextctx,Stringtitle,intpriority,booleanrevertible,Stringcontent,StringreceiveMobileNumber,StringassignID)说明:短信发送receiveMobileNumber:接受手机号码·booleansendMail(Contextctx,Stringtitle,intpriority,booleanrevertible,Stringcontent,Stringaddress,KDMessageAttachment[]attachment,StringassignID)说明:
6、邮件发送Address:邮件接收地址·booleansendMobileMsg(Contextctx,Stringtitle,intpriority,booleanrevertible,Stringcontent,StringreceiveMobileNumber,StringassignID)说明:短信发送,没有判断通讯平台是否连接,用mobileMsgSend方法替代此方法。·booleannewMsgMobileDerect(Contextctx,booleancanback,Stringcontent,UserInforeceiveUserInfo)说明:手工发送短信,指定接收的
7、用户Canback:是否可回复booleannewMsgMobileDerect(Contextctx,booleancanback,Stringcontent,StringreceiveMobileNumber)说明:手工发送短信,指定接收的用户的手机号码·booleannewMsgMobileDerect(Contextctx,SendMessageParamInfomsgInfo)说明:发送短信msgInfo:SendMess