public bool Contains(system_user value) { return(List.Contains(value)); }
public void Remove(system_user value) { List.Remove(value); }
public void Insert(int index, system_user value) { List.Insert(index, value); }
public int IndexOf(system_user value) { return(List.IndexOf(value)); }
public int Add(system_user value) { return(List.Add(value)); }
public system_UsersCollection Getlist(string stextsarch) { Data objData; if (objDataAccess == null) { objData = new Data(); } else { objData = objDataAccess; } system_UsersCollection col = null; try { if (objData.GetConnection() == null || objData.GetConnection().State == ConnectionState.Closed) { objData.Connect(); } objData.CreateNewStoredProcedure("sproc_sys_User_Getlist"); objData.AddParameter("@TextSearch", stextsarch); IDataReader reader = objData.ExecStoreToDataReader(); while (reader.Read()) { if (col == null) { col = new system_UsersCollection(); } system_user obj = new system_user(); if (!Convert.IsDBNull(reader["ID"])) { obj.ID = Convert.ToInt32(reader["ID"]); } if (!Convert.IsDBNull(reader["UserName"])) { obj.UserName = Convert.ToString(reader["UserName"]); } if (!Convert.IsDBNull(reader["Passwords"])) { obj.Passwords = Convert.ToString(reader["Passwords"]); } if (!Convert.IsDBNull(reader["InputTime"])) { obj.InputTime = Convert.ToDateTime(reader["InputTime"]); } col.Add(obj); } reader.Close(); reader.Dispose(); } catch (Exception objEx) { throw new Exception("Getlist() Error " + objEx.Message.ToString()); } finally { if (objDataAccess == null) { objData.DeConnect(); } } return(col); }