Esempio n. 1
0
        public static DataTable GetDataTableRoomGenderGroupBy(int gender)
        {
            string cmd = "select roomName from Room where gender=" + gender;

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 2
0
        public static DataTable GetDataTableBedNoStatus(string roomName)
        {
            string cmd = "select bedNo from Bed where status = 0 AND roomName='" + roomName + "'";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 3
0
        public static DataTable GetDataTableRoomBeds()
        {
            string cmd = "select Room.roomName,Room.gender,Bed.bedNo,Bed.status from Room,Bed where Room.roomName=Bed.roomName";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 4
0
        //them nha
        public static DataTable GetDataTableRoomGroupBy()
        {
            string cmd = "select roomName from Room group by roomName";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 5
0
        public static DataTable GetDataTableByStuID(string stuID)
        {
            string cmd = "select * from Request where stuID = '" + stuID + "'";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 6
0
        public static DataTable GetDataTableRoom()
        {
            string cmd = "select * from Room";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 7
0
        public static DataTable GetDataTable()
        {
            string cmd = "select * from Request";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 8
0
        public static DataTable GetDataTableByRoom(string roomName)
        {
            string cmd = "select * from ElectricityWaterBills where roomName = '" + roomName + "'";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 9
0
        public static DataTable GetDataTableByStuId(string stuId)
        {
            string cmd = "select * from HistoryPayment where stuID = '" + stuId + "'";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 10
0
        public static DataTable GetDataTable()
        {
            string cmd = "select top 1 * from AvailibleBookingTime";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 11
0
        public static DataTable GetDataTable()
        {
            string cmd = "select * from HistoryPayment";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 12
0
        public static DataTable GetDataTableByUsername(string username)
        {
            string cmd = "select * from Manager where username = '******'";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 13
0
        public static DataTable GetDataTable()
        {
            string cmd = "select * from Manager";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 14
0
        } // -------------

        public static DataTable GetDataTableBedNoByRoomName(string roomName)  // Minh them
        {
            string cmd = "select bedNo from Bed where roomName = '" + roomName + "'";

            return(DAO.GetDataTable(cmd));
        } // -------------
Esempio n. 15
0
        public static DataTable GetDataTableByRequestID(int requestID)
        {
            string cmd = "select * from Request where requestID = " + requestID;

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 16
0
        public static DataTable GetDataTableByRoomName(string room)
        {
            string cmd = "select Room.roomName,Room.gender,Bed.bedNo,Bed.status from Room,Bed where Room.roomName=Bed.roomName AND  Room.roomName = '" + room + "'";

            return(DAO.GetDataTable(cmd));
        }
Esempio n. 17
0
        public static DataTable GetDataTable()
        {
            string cmd = "select * from ElectricityWaterBills";

            return(DAO.GetDataTable(cmd));
        }