Exemple #1
0
        private void SynchronizeElectronicClockTime()
        {
            //查询所有的教室
            List <Z_Room> rooms = roomService.GetEntity(r => r.F_RoomType == "ClassRoom").ToList();

            foreach (var room in rooms)
            {
                Process(room.F_RoomNo, "00");
            }
        }
Exemple #2
0
 public void Execute(IJobExecutionContext context)
 {
     Thread.CurrentThread.IsBackground = true;
     try
     {
         List <Buildings> allBuilding = new List <Buildings>();
         var rooms = ZRoomService.GetEntity(u => u.F_RoomType == "Building").ToList();
         foreach (var room in rooms)
         {
             Buildings building = SearchBuildingAllRoomEquipmentInfo1(room.F_FullName, room);
             allBuilding.Add(building);
         }
         string allClassEquipmentInfoKey = AppSettingUtils.GetValue("allClassEquipmentInfo");
         Cache.SetCache(allClassEquipmentInfoKey, allBuilding, DateTime.Now.AddDays(7));
     }
     catch (Exception exception)
     {
         ExceptionHelper.AddException(exception);
     }
 }