//发送公告 public void SendSysMsg(string msgContent) { starweibo.BLL.chatInfo SysMsg = new starweibo.BLL.chatInfo(); starweibo.Model.chatInfo molMsg = new starweibo.Model.chatInfo(); List <starweibo.Model.userInfo> SSM = new List <starweibo.Model.userInfo>(); starweibo.BLL.userInfo bllSSM = new starweibo.BLL.userInfo(); SSM = bllSSM.GetModelList("1=1"); foreach (starweibo.Model.userInfo onessm in SSM) { if (onessm.id != 44) { molMsg.receiverId = onessm.id; molMsg.msgContent = msgContent; molMsg.senderId = 44; molMsg.msgState = "noread"; SysMsg.Add(molMsg); } } }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(starweibo.Model.chatInfo model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(starweibo.Model.chatInfo model) { return(dal.Add(model)); }