public static CustomList <HouseKeepingValue> GetCompany()
        {
            ConnectionManager conManager = new ConnectionManager(ConnectionName.HR);
            CustomList <HouseKeepingValue> HouseKeepingValueCollection = new CustomList <HouseKeepingValue>();
            IDataReader reader = null;
            String      sql    = "Exec GetCompany";

            try
            {
                conManager.OpenDataReader(sql, out reader);
                while (reader.Read())
                {
                    HouseKeepingValue newHouseKeepingValue = new HouseKeepingValue();
                    newHouseKeepingValue.HKID   = reader.GetInt32("HKID");
                    newHouseKeepingValue.HKName = reader.GetString("HKName");
                    HouseKeepingValueCollection.Add(newHouseKeepingValue);
                }
                return(HouseKeepingValueCollection);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
            finally
            {
                if (reader != null && !reader.IsClosed)
                {
                    reader.Close();
                }
            }
        }
        public static CustomList <HouseKeepingValue> GetAllHouseKeepingValue()
        {
            ConnectionManager conManager = new ConnectionManager(ConnectionName.HR);
            CustomList <HouseKeepingValue> HouseKeepingValueCollection = new CustomList <HouseKeepingValue>();
            IDataReader reader = null;
            String      sql    = "select *from HouseKeepingValue ";

            try
            {
                conManager.OpenDataReader(sql, out reader);
                while (reader.Read())
                {
                    HouseKeepingValue newHouseKeepingValue = new HouseKeepingValue();
                    newHouseKeepingValue.SetData(reader);
                    HouseKeepingValueCollection.Add(newHouseKeepingValue);
                }
                HouseKeepingValueCollection.InsertSpName = "spInsertHouseKeepingValue";
                HouseKeepingValueCollection.UpdateSpName = "spUpdateHouseKeepingValue";
                HouseKeepingValueCollection.DeleteSpName = "spDeleteHouseKeepingValue";
                return(HouseKeepingValueCollection);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
            finally
            {
                if (reader != null && !reader.IsClosed)
                {
                    reader.Close();
                }
            }
        }
        public static CustomList <HouseKeepingValue> GetAllOfficialInfo()
        {
            ConnectionManager conManager = new ConnectionManager(ConnectionName.HR);
            CustomList <HouseKeepingValue> HouseKeepingValueCollection = new CustomList <HouseKeepingValue>();
            IDataReader reader = null;
            String      sql    = "Exec GetHouseKeepingValue";

            try
            {
                conManager.OpenDataReader(sql, out reader);
                while (reader.Read())
                {
                    HouseKeepingValue newHouseKeepingValue = new HouseKeepingValue();
                    newHouseKeepingValue.SetData(reader);
                    HouseKeepingValueCollection.Add(newHouseKeepingValue);
                }
                return(HouseKeepingValueCollection);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
            finally
            {
                if (reader != null && !reader.IsClosed)
                {
                    reader.Close();
                }
            }
        }
        public static CustomList <HouseKeepingValue> GetAllHouseKeepingValueForDropdown(Int32 parentID)
        {
            ConnectionManager conManager = new ConnectionManager(ConnectionName.HR);
            CustomList <HouseKeepingValue> HouseKeepingValueCollection = new CustomList <HouseKeepingValue>();
            IDataReader reader = null;
            String      sql    = "EXEC spGetChangeEventHouseKeepingValue '" + parentID + "'";

            try
            {
                conManager.OpenDataReader(sql, out reader);
                while (reader.Read())
                {
                    HouseKeepingValue newHouseKeepingValue = new HouseKeepingValue();
                    newHouseKeepingValue.SetDataForDropdown(reader);
                    HouseKeepingValueCollection.Add(newHouseKeepingValue);
                }
                return(HouseKeepingValueCollection);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
            finally
            {
                if (reader != null && !reader.IsClosed)
                {
                    reader.Close();
                }
            }
        }