Ejemplo n.º 1
0
        public static TuVanTinhTrangCollection SelectAll()
        {
            var List = new TuVanTinhTrangCollection();

            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "sp_tblSpaMgr_TuVanTinhTrang_Select_SelectAll_linhnx"))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }
Ejemplo n.º 2
0
        public static TuVanTinhTrangCollection SelectByTvId(string TV_ID)
        {
            var List = new TuVanTinhTrangCollection();
            var obj  = new SqlParameter[1];

            obj[0] = new SqlParameter("TV_ID", TV_ID);
            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "sp_tblSpaMgr_TuVanTinhTrang_Select_SelectByTvId_linhnx", obj))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }