public bool checkExpiry() { bool Found; gcdao = new DAO.GiftCardDAO(); gcdao.expiry(Gc_cardno); Found = gcdao.expiry(Gc_cardno); return(Found); }
public Double askAmount() { Double amount = 0; gcdao = new DAO.GiftCardDAO(); gcdao.catchA(Gc_cardno); amount = gcdao.catchA(Gc_cardno); return(amount); }
public String[,] ReadGC() { gcdao = new DAO.GiftCardDAO(); Int32 count = gcdao.PositionCount(); String[,] xxx = new String[4, count]; gcdao.Read(); xxx = gcdao.Read(); return(xxx); }
public void DebitGC() { gcdao = new DAO.GiftCardDAO(); gcdao.Debit(Gc_amount, Gc_cardno); }
public void DeleteGC() { gcdao = new DAO.GiftCardDAO(); gcdao.Delete(Gc_cardno); }
public void AddGC() { gcdao = new DAO.GiftCardDAO(); gcdao.Add(Gc_cardno, Gc_amount, Gc_holder, Gc_validuntil); }