1运行效果:

SNF开发平台WinForm之十四-站内发送系统信息-SNF快速开发平台3.3-Spring.Net.Framework-LMLPHP

2开发实现:

、组装站内信息发送实体对象。
SNFService SNFService = new SNFService();
if (this.ucUser.SelectedIds != null)
{
// 发送信息
BaseMessageEntity messageEntity = new BaseMessageEntity();
messageEntity.Id = BusinessLogic.NewGuid();
messageEntity.FunctionCode = MessageFunction.UserMessage.ToString();
messageEntity.Contents = stringBuilder.ToString();
messageEntity.IsNew = ;
messageEntity.ReadCount = ;
messageEntity.Enabled = ;
messageEntity.DeletionStateCode = ;
SNFService.MessageService.BatchSend(UserInfo, this.ucUser.SelectedIds, null, null, messageEntity);
}
else
{
if (this.ucUser.SelectedId != null)
{
//单个信息发送给某人-可以调用这个方法
SNFService.MessageService.Send(UserInfo, this.ucUser.SelectedId, stringBuilder.ToString());
}
}
if (SNFService.MessageService is ICommunicationObject)
{
((ICommunicationObject)SNFService.MessageService).Close();
}
、站内信息分类,业务上常规是:Remind
消息功能分类枚举MessageFunction:
Message = , // 0 消息。
Remind = , // 1 提示。
SystemPush = // 10 系统自动推送的消息

这个系列教程文档,欢迎转载:

SNF开发平台WinForm之五-高级查询使用说明-http://www.cnblogs.com/spring_wang/p/6116640.html

SNF开发平台WinForm之四-开发-主细表管理页面-http://www.cnblogs.com/spring_wang/p/6116626.html

SNF开发平台WinForm之三-开发-单表选择控件创建-http://www.cnblogs.com/spring_wang/p/6116592.html

SNF开发平台WinForm之二-开发-单表表单管理页面-http://www.cnblogs.com/spring_wang/p/6116572.html

SNF开发平台WinForm之一-开发-单表表格编辑管理页面-http://www.cnblogs.com/spring_wang/p/6116523.html

Winform开发框架之图表报表在线设计器2-图表-SNF.EasyQuery项目--SNF快速开发平台3.3-Spring.Net.Framework

Winform开发框架之图表报表在线设计器-报表-SNF.EasyQuery项目--SNF快速开发平台3.3-Spring.Net.Framework

Winform开发框架之通用附件管理模块 --SNF快速开发平台3.3-Spring.Net.Framework

SNFAutoupdater通用自动升级组件V2.0-WinForm

SNF快速开发平台3.2之--.Net可扩展的单据编号生成器-SNF.CodeRule

SNF快速开发平台3.1之--审核流(3)低调奢华,简单不凡,实例演示-SNF.WorkFlow

SNF快速开发平台3.1之--审核流(2)流程设计-SNF.WorkFlow功能使用说明

SNF快速开发平台3.1之--审核流(1)SNF.WorkFlow审核流简介

SNF快速开发平台3.0之--完美的代码生成器SNF.CodeGenerator-快速开发者的利器

基于MVC4+EasyUI的Web开发框架--Spring.Net.FrameworkV3.0总体介绍

SNF快速开发平台3.0之--MVC 打印解决方案

SNF快速开发平台3.0之--文件批量上传-统一附件管理器-在线预览文件(有互联网和没有两种)

SNF快速开发平台3.0之--asp.net mvc4 强大的导出和不需要上传文件的批量导入EXCEL

SNF快速开发平台3.0之MVC通用控件库展示-Asp.net+MVC4.0+WebAPI+EasyUI+Knockout

SNF快速开发平台3.0之BS页面展示和九大优点-部分页面显示效果-Asp.net+MVC4.0+WebAPI+EasyUI +Knockout

SNF快速开发平台3.0之-界面个性化配置+10种皮肤+7种菜单-Asp.net+MVC4.0+WebAPI+EasyUI+Knockout

SNF快速开发平台3.0之-CS页面-Asp.net+Spring.Net.Framework

SNF快速开发平台3.0之--系统里广播的作用--迅速及时、简明扼要的把信息发送给接收者

04-17 03:03