Esempio n. 1
0
 public bool Contains(system_user value)
 {
     return(List.Contains(value));
 }
Esempio n. 2
0
 public void Remove(system_user value)
 {
     List.Remove(value);
 }
Esempio n. 3
0
 public void Insert(int index, system_user value)
 {
     List.Insert(index, value);
 }
Esempio n. 4
0
 public int IndexOf(system_user value)
 {
     return(List.IndexOf(value));
 }
Esempio n. 5
0
 public int Add(system_user value)
 {
     return(List.Add(value));
 }
Esempio n. 6
0
        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);
        }