Beispiel #1
0
        public PhieuThuePhongDTO[] LayDanhSachPhieuThuePhongTrangThai1Va2()
        {
            PhieuThuePhongDTO[]      phieuThuePhongs  = phieuThuePhongDAO.LayDanhSachPhieuThuePhong();
            List <PhieuThuePhongDTO> lsPhieuThuePhong = new List <PhieuThuePhongDTO>();

            int n = phieuThuePhongs.Length;

            for (int i = 0; i < n; i++)
            {
                if (phieuThuePhongs[i].TrangThai == 1 || phieuThuePhongs[i].TrangThai == 2)
                {
                    lsPhieuThuePhong.Add(phieuThuePhongs[i]);
                }
            }

            return(lsPhieuThuePhong.ToArray());
        }