public static TinhTrangDichVuCollection SelectAll()
        {
            var List = new TinhTrangDichVuCollection();

            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "sp_tblSpaMgr_TinhTrangDichVu_Select_SelectAll_linhnx"))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }
        public static TinhTrangDichVuCollection SelectByTvId(SqlConnection con, string TV_ID)
        {
            var List = new TinhTrangDichVuCollection();
            var obj  = new SqlParameter[1];

            if (!string.IsNullOrEmpty(TV_ID))
            {
                obj[0] = new SqlParameter("TV_ID", TV_ID);
            }
            else
            {
                obj[0] = new SqlParameter("TV_ID", DBNull.Value);
            }
            using (IDataReader rd = SqlHelper.ExecuteReader(con, CommandType.StoredProcedure, "sp_tblSpaMgr_TinhTrangDichVu_Select_SelectByTvId_linhnx", obj))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }