Beispiel #1
0
        public List <PhongTro> ThongKePhongNo(DateTime now)
        {
            ThongKeDAL      dal     = new ThongKeDAL();
            List <PhongTro> dsphong = dal.ThongKePhongNo(now);

            return(dsphong);
        }
Beispiel #2
0
        public List <PhongTro> ThongKePhongTrong()
        {
            ThongKeDAL      dal     = new ThongKeDAL();
            List <PhongTro> dsphong = dal.ThongKePhongTrong();

            return(dsphong);
        }
Beispiel #3
0
        public void Test_ss()
        {
            ThongKeDAL thongKeDAL = new ThongKeDAL();
            OrderTour  orderTour  = new OrderTour();

            Assert.IsTrue(thongKeDAL.ss());
        }
Beispiel #4
0
        public void Test_thongke()
        {
            ThongKeDAL thongKeDAL = new ThongKeDAL();
            OrderTour  orderTour  = new OrderTour();

            Assert.IsNotNull(thongKeDAL.InsertThongKe());
        }
Beispiel #5
0
 public bool conSach(int id)
 {
     int TongSoSach = sachDAL.getSachById(id).SoLuong;
     ThongKeDAL thongke = new ThongKeDAL();
     int DangChoMuon = thongke.SoSachDangChoMuon(id);
     if (TongSoSach > DangChoMuon) return true;
     return false;
 }
Beispiel #6
0
 public ThongKeBUSImpl()
 {
     this.thongKeDAL = ThongKeDALImpl.Instance;
 }