public RisPhieuCdinhCtietCollection FetchAll()
 {
     RisPhieuCdinhCtietCollection coll = new RisPhieuCdinhCtietCollection();
     Query qry = new Query(RisPhieuCdinhCtiet.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
 public RisPhieuCdinhCtietCollection FetchByQuery(Query qry)
 {
     RisPhieuCdinhCtietCollection coll = new RisPhieuCdinhCtietCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader()); 
     return coll;
 }
 public RisPhieuCdinhCtietCollection FetchByID(object IdPhieuCtiet)
 {
     RisPhieuCdinhCtietCollection coll = new RisPhieuCdinhCtietCollection().Where("ID_PHIEU_CTIET", IdPhieuCtiet).Load();
     return coll;
 }