/// <summary>
 /// 当Dn为高密子服务器的DN时,需要更新整个管理板
 /// </summary>
 /// <param name="model">The model.</param>
 /// <param name="alarmSn">The alarm sn.</param>
 private void UpdateChildHighdensityServer(HWDeviceDetail model, int alarmSn)
 {
     try
     {
         logger.NotifyProcess.Info($"Start Update Child HighdensityServer:{model.DN} .[alarmSn:{alarmSn}]");
         //更新子刀片
         var server = new ChildHighdensity(this.ESightIp);
         server.MakeChildBladeDetail(model);
         HighdensityConnector.Instance.UpdateChildBoard(server, false);
     }
     catch (Exception ex)
     {
         logger.NotifyProcess.Error(ex, $"UpdateChildHighdensityServer Error.Dn:{model.DN} .[alarmSn:{alarmSn}] ");
     }
 }
 /// <summary>
 /// 更新高密子服务器
 /// </summary>
 /// <param name="model">The model.</param>
 public void UpdateChildHighdensityServer(HWDeviceDetail model)
 {
     try
     {
         var server = new ChildHighdensity();
         server.DN        = model.DN;
         server.Name      = model.Name;
         server.IpAddress = model.IpAddress;
         server.MakeChildBladeDetail(model);
         HighdensityConnector.Instance.UpdateChildBoard(server);
     }
     catch (Exception ex)
     {
         this.OnNotifyError($"UpdateChildHighdensityServer Error.eSight:{this.ESightIp} Dn:{model.DN}. ", ex);
     }
 }
        /// <summary>
        /// The reload.
        /// </summary>
        public void Reload()
        {
            var bladeMain       = this.GetMain("bladeList.js");
            var highdensityMain = this.GetMain("highdensityList.js");

            var bladeChildDetial = this.GetDetails("bladeChildDetial.js");
            var bladeDetial      = this.GetDetails("bladeDetial.js");

            var highdensityChildDetial = this.GetDetails("highdensityChildDetial.js");
            var highdensityDetial      = this.GetDetails("highdensityDetial.js");

            // var rackMain = this.GetMain("rackList.js");
            var rackDetail = this.GetDetails("rackDetail.js");

            // var kunLunMain = this.GetMain("kunlunList.js");
            var kunLunDetail = this.GetDetails("kunlunDetail.js");

            this.BladeTest = new BladeServer(bladeMain);
            bladeMain.ChildBlades.ForEach(
                m =>
            {
                var childBlade = new ChildBlade(m);
                childBlade.MakeChildBladeDetail(bladeChildDetial);
                this.BladeTest.ChildBlades.Add(childBlade);
            });
            this.BladeTest.MakeDetail(bladeDetial);

            this.HighTest = new HighdensityServer(highdensityMain);
            highdensityMain.ChildBlades.ForEach(
                m =>
            {
                var childHighdensity = new ChildHighdensity(m);
                childHighdensity.MakeChildBladeDetail(highdensityChildDetial);
                this.HighTest.ChildHighdensitys.Add(childHighdensity);
            });
            this.HighTest.MakeDetail(highdensityDetial);

            this.RackTest = new RackServer();
            this.RackTest.MakeDetail(rackDetail);

            this.KunLunTest = new KunLunServer();
            this.KunLunTest.MakeDetail(kunLunDetail);

            #region MyRegion
            var path = Application.StartupPath + "//..//..//..//..//..//..//..//..//mockNew//alarmData//alarmData.js";
            var data = File.ReadAllText(path).Replace("module.exports =", string.Empty);

            this.BladeEventData      = new EventData(JsonUtil.DeserializeObject <AlarmData>(data.Replace("rack", "blade")));
            this.ChildBladeEventData = new EventData(JsonUtil.DeserializeObject <AlarmData>(data.Replace("rack", "childeblade")));
            this.HighEventData       = new EventData(JsonUtil.DeserializeObject <AlarmData>(data.Replace("rack", "high")));
            this.ChildHighEventData  = new EventData(JsonUtil.DeserializeObject <AlarmData>(data.Replace("rack", "childhigh")));
            this.KunLunEventData     = new EventData(JsonUtil.DeserializeObject <AlarmData>(data.Replace("rack", "kunlun")));
            this.RackEventData       = new EventData(JsonUtil.DeserializeObject <AlarmData>(data.Replace("rack", "rack")));

            path = Application.StartupPath + "//..//..//..//..//..//..//..//..//mockNew//alarmData//deviceChangeData.js";
            data = File.ReadAllText(path).Replace("module.exports =", string.Empty);
            var daTemp = JsonUtil.DeserializeObject <NedeviceData>(data);
            this.DeviceChangeEventData = new DeviceChangeEventData(daTemp);

            #endregion
        }