예제 #1
0
        private int CountSoGheDaDat(Phim t, SuatChieu s)
        {
            int tt = 0;

            foreach (HoaDon i in listHoaDon)
            {
                if (i.MaPhim == t.MaPhim && s.MaSuatChieu == i.MaSuatChieu)
                {
                    tt += i.MaGhe.Count;
                }
            }
            return(tt);
        }
예제 #2
0
 public bool CheckSameSC(Phim t, SuatChieu s)
 {
     foreach (Phim i in listPhim)
     {
         foreach (SuatChieu j in i.ListSC)
         {
             if (s.MaPhong == j.MaPhong && CheckSameSC(s, t.ThoiLuong, j, i.ThoiLuong))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
예제 #3
0
        public List <Ghe> GetListGheFollowSC(Phim t, SuatChieu s)
        {
            List <Ghe>    lg      = FindPhong(s.MaPhong).ListGhe;
            List <string> lg_rved = new List <string>();

            foreach (HoaDon i in ListHoaDon)
            {
                if (i.MaPhim == t.MaPhim && i.MaSuatChieu == s.MaSuatChieu)
                {
                    foreach (string j in i.MaGhe)
                    {
                        SetTTDaDatForGhe(lg, j);
                    }
                }
            }
            return(lg);
        }