public TPhieuXuatthuocBenhnhanChitietCollection FetchByQuery(Query qry)
        {
            TPhieuXuatthuocBenhnhanChitietCollection coll = new TPhieuXuatthuocBenhnhanChitietCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public TPhieuXuatthuocBenhnhanChitietCollection FetchAll()
        {
            TPhieuXuatthuocBenhnhanChitietCollection coll = new TPhieuXuatthuocBenhnhanChitietCollection();
            Query qry = new Query(TPhieuXuatthuocBenhnhanChitiet.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public TPhieuXuatthuocBenhnhanChitietCollection FetchByID(object IdPhieuChitiet)
        {
            TPhieuXuatthuocBenhnhanChitietCollection coll = new TPhieuXuatthuocBenhnhanChitietCollection().Where("id_phieu_chitiet", IdPhieuChitiet).Load();

            return(coll);
        }