bool INoticeInfo <NoticeInfo> .ReadAllNotice(string noticerID, BusinessTypeSetting businessType) { bool result = false; int count = 0; string message = string.Empty; MiicConditionCollections conditions = new MiicConditionCollections(MiicDBLogicSetting.No); MiicCondition sourceCondition = new MiicCondition(Config.Attribute.GetSqlColumnNameByPropertyName <NoticeInfo, string>(o => o.Source), ((int)businessType).ToString(), DbType.String, MiicDBOperatorSetting.Equal); conditions.Add(new MiicConditionLeaf(MiicDBLogicSetting.No, sourceCondition)); MiicCondition noticerIDCondition = new MiicCondition(Config.Attribute.GetSqlColumnNameByPropertyName <NoticeInfo, string>(o => o.NoticerID), noticerID, DbType.String, MiicDBOperatorSetting.Equal); conditions.Add(new MiicConditionLeaf(noticerIDCondition)); try { result = dbService.UpdateConditions <NoticeInfo>(new NoticeInfo() { ReadStatus = ((int)MiicReadStatusSetting.Read).ToString() }, conditions, out count, out message); } catch (Exception ex) { Config.IlogicLogService.Write(new LogicLog() { AppName = Config.AppName, ClassName = ClassName, NamespaceName = NamespaceName, MethodName = MethodBase.GetCurrentMethod().Name, Message = ex.Message, Oper = Config.Oper }); } if (result == true) { items.RemoveAll(o => o.NoticerID == noticerID && o.Source == ((int)businessType).ToString()); } return(result); }
public bool ReadAllNotice(BusinessTypeSetting type) { return(InoticeInfo.ReadAllNotice(this.UserID, type)); }
public bool ReadAllNotice(string noticerID, BusinessTypeSetting type) { throw new NotImplementedException(); }