Beispiel #1
0
        public bool checkExpiry()
        {
            bool Found;

            gcdao = new DAO.GiftCardDAO();
            gcdao.expiry(Gc_cardno);
            Found = gcdao.expiry(Gc_cardno);
            return(Found);
        }
Beispiel #2
0
        public Double askAmount()
        {
            Double amount = 0;

            gcdao = new DAO.GiftCardDAO();
            gcdao.catchA(Gc_cardno);
            amount = gcdao.catchA(Gc_cardno);
            return(amount);
        }
Beispiel #3
0
        public String[,] ReadGC()
        {
            gcdao = new DAO.GiftCardDAO();
            Int32 count = gcdao.PositionCount();

            String[,] xxx = new String[4, count];
            gcdao.Read();
            xxx = gcdao.Read();
            return(xxx);
        }
Beispiel #4
0
 public void DebitGC()
 {
     gcdao = new DAO.GiftCardDAO();
     gcdao.Debit(Gc_amount, Gc_cardno);
 }
Beispiel #5
0
 public void DeleteGC()
 {
     gcdao = new DAO.GiftCardDAO();
     gcdao.Delete(Gc_cardno);
 }
Beispiel #6
0
 public void AddGC()
 {
     gcdao = new DAO.GiftCardDAO();
     gcdao.Add(Gc_cardno, Gc_amount, Gc_holder, Gc_validuntil);
 }