在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
public void SaveBaseInfo(string type, StationInfo info, int parentRegionId) { try { Action<int, StationInfo> AddRegionAndDevice = (scadaMapping, info2) => { }; AddRegionAndDevice = (regionId, stationInfo) => { regionId = UpdateDevice(type, stationInfo, regionId); if (stationInfo.Children != null && stationInfo.Children.Count != 0) { foreach (var item in stationInfo.Children) { AddRegionAndDevice(regionId,item); } } }; if (info.Children != null && info.Children.Count != 0) { foreach (StationInfo item2 in info.Children) { AddRegionAndDevice(parentRegionId, item2); } } } catch (Exception ex) { Program.Log.Error(ex); } }
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论