/// <summary> /// 批量删除 /// </summary> /// <param name="ids">逗号分隔的字符串</param> public string Del(string ids) { StringBuilder str = new StringBuilder(); int[] userIds = CommonClass.StringHander.Common.GetIntArrayByStringArray(ids.Split(',')); if (userIds.Length > 0) { for (int i = 0; i < userIds.Length; i++) { if (userIds[i] <= 0) { continue; } else { Eastcom.Model.Sys_User_Info model = this.GetModel(userIds[i]); if (null != model) { model.IsDel = 1; if (!this.Update(model)) { str.AppendFormat("用户【{0}】删除失败!", model.RealName); } } } } } return(str.ToString()); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Eastcom.Model.Sys_User_Info model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Eastcom.Model.Sys_User_Info model) { return(dal.Add(model)); }