Exemplo n.º 1
0
 public List<RoomExtStatusEN> GetListUsingRooms(DateTime Now)
 {
     try
     {
         List<RoomExtStatusEN> aListTemp = new List<RoomExtStatusEN>();
         RoomsBO aRoomsBO = new RoomsBO();
         Rooms aRooms = new Rooms();
         aListTemp = aRoomsBO.GetListStatusRoom(Now).Where(p => p.RoomStatus == 3).ToList();
         return aListTemp;
     }
     catch (Exception ex)
     {
         throw new Exception("UsingServiceTask.GetListUsingRooms\n" + ex.ToString());
     }
 }
Exemplo n.º 2
0
 //hiennv
 public List<RoomExtStatusEN> GetListUsingRooms_ByCode(DateTime Now ,string code)
 {
     try
     {
         List<RoomExtStatusEN> aListTemp = new List<RoomExtStatusEN>();
         RoomsBO aRoomsBO = new RoomsBO();
         Rooms aRooms = new Rooms();
         if (String.IsNullOrEmpty(code) == true)
         {
             aListTemp = aRoomsBO.GetListStatusRoom(Now).Where(p => p.RoomStatus == 3).ToList();
         }
         else
         {
             aListTemp = aRoomsBO.GetListStatusRoom(Now).Where(p => p.RoomStatus == 3).Where(p => p.Code == code).ToList();
         }
         return aListTemp;
     }
     catch (Exception ex)
     {
         throw new Exception("UsingServiceTask.GetListUsingRooms_ByCode\n" + ex.ToString());
     }
 }